/* ---------------------------
   Типографика статей
   Контент внутри <div class="article-content">
--------------------------- */

/* Заголовки */

div.article-content h2 {
    font-size: 1.35rem !important;
    line-height: 1.3 !important;
    margin: 2em 0 0em !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
}

div.article-content h3 {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
    margin: 2em 0 0em !important;
    font-weight: 600 !important;
    text-transform: none !important;
}

div.article-content h4 {
    font-size: 1.1rem !important;
    line-height: 1.35 !important;
    margin: 1.6em 0 0em !important;
    font-weight: 600 !important;
    text-transform: none !important;
}

/* Абзацы */

div.article-content p {
    margin: 0.8em 0 0.4em !important;
    line-height: 1.6 !important;
    font-size: 0.875rem !important; /* примерно 14px при базовом 16px */
}

/* Маркированные списки — кастомный маркер */

div.article-content ul {
    list-style: none !important;
    margin: 0.8em 0 !important;
    padding-left: 1.2em !important;
}

div.article-content ul li {
    position: relative;
    margin: 0.3em 0 !important;
    line-height: 1.2 !important;
    font-size: 0.875rem !important;
}

div.article-content ul li::before {
    content: "–";
    position: absolute;
    left: 0;
    top: 0em;
    font-weight: normal;
    color: #000;
    line-height: 1.2;
}

/* Нумерованные списки — кастомный маркер */

div.article-content ol {
    list-style: none !important;
    counter-reset: custom-counter;
    margin: 0.8em 0 !important;
    padding-left: 1.2em !important;
}

div.article-content ol li {
    counter-increment: custom-counter;
    position: relative;
    margin: 0.3em 0 !important;
    line-height: 1.2 !important;
    font-size: 0.875rem !important;
}

div.article-content ol li::before {
    content: counter(custom-counter) ".";
    position: absolute;
    left: 0;
    top: 0em;
    font-weight: normal;
    color: #000 !important;
    font-size: 0.875em;
    line-height: 1.2;
}

/* ---------------------------
   Кастомные блоки
--------------------------- */

div.article-content .alert-warning {
    background-color: #f0f0f0; /* светло-серый фон */
    color: #ff0000; /* красный текст */
    padding: 0.6em 1em;
    margin: 0.8em 0;
    font-size: 0.8rem;
    line-height: 1.4;
}

div.article-content .alert-tip {
    background-color: #d1ecf1;
    padding: 0.6em 1em;
    margin: 0.8em 0;
    font-size: 0.8rem;
    line-height: 1.4;
}

div.article-content .alert-note {
    background-color: #e2e3e5;
    padding: 0.6em 1em;
    margin: 0.8em 0;
    font-size: 0.8rem;
    line-height: 1.4;
}

div.article-content .alert-command {
    background-color: #f0f0f0;
    padding: 0.6em 1em;
    margin: 0.8em 0;
    font-family: monospace;
    font-size: 0.8rem;
    line-height: 1.4;
}
