/*
Theme Name: CDA Journal
Description: Рецензируемый научный журнал «Современный дискурс-анализ» (ISSN 2687-0975)
Author: CDA Editorial Team
*/


:root {
    --font-ui: 'Onest', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-reading: 'Literata', Georgia, 'PT Serif', serif;
    --cda-ruby: #943634;
    --cda-ruby-hover: #7b2a28;
    --text-primary: #1D1D1F;
    --text-secondary: #48484A;
    --text-muted: #86868B;
    --glass-bg: #FFFFFF;
    --glass-card-bg: #FFFFFF;
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    --radius-card: 16px;
    --radius-sm: 8px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: #F8F9FA;
    color: var(--text-primary);
    font-family: var(--font-ui);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--cda-ruby);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Индикатор чтения */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--cda-ruby);
    z-index: 999999;
    transition: width 0.08s linear;
}

/* Шапка */
.site-header {
    background: #FFFFFF;
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Коррекция при активной админ-панели WP */
body.admin-bar .site-header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    position: relative;
}

.cda-mobile-toggle {
    display: none;
}

.header-brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    text-decoration: none;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s ease;
}
.brand-logo-badge:hover {
    transform: scale(1.06);
}
.brand-logo-svg {
    display: block;
    width: 46px;
    height: 46px;
}

.brand-titles { display: flex; flex-direction: column; gap: 2px; }
.brand-name { font-size: 17px; font-weight: 700; color: var(--text-primary); text-decoration: none; letter-spacing: -0.01em; font-family: var(--font-ui); }
.brand-issn { font-size: 11.5px; color: var(--text-muted); font-family: var(--font-ui); }

.cda-main-nav ul {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.cda-main-nav li { list-style: none; margin: 0; padding: 0; }
.cda-main-nav a {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-ui);
}
.cda-main-nav a:hover { color: var(--cda-ruby); }

/* Макет статьи */
.glass-card,
.glass-panel,
.sidebar-box {
    background: #FFFFFF;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 36px;
    box-shadow: var(--glass-shadow);
    margin-bottom: 24px;
}

.article-reading-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    padding-top: 36px;
    padding-bottom: 60px;
}

.article-reading-card {
    min-width: 0; /* Предотвращает распирание карточки широким контентом */
}

.reading-breadcrumbs {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
    font-family: var(--font-ui);
}
.reading-breadcrumbs a:hover { color: var(--cda-ruby); }

.reading-title {
    font-family: var(--font-ui);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.abstract-callout {
    background: #FAFAFA;
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--cda-ruby);
    border-radius: 4px var(--radius-sm) var(--radius-sm) 4px;
    padding: 18px 22px;
    margin-bottom: 32px;
}
.abs-kicker {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--cda-ruby);
    margin-bottom: 8px;
}
.abs-text { font-family: var(--font-ui); font-size: 15px; line-height: 1.6; color: var(--text-secondary); margin-bottom: 10px; }
.abs-keys { font-family: var(--font-ui); font-size: 13px; color: var(--text-muted); }
.abs-keys strong { color: var(--text-primary); }

/* ── Преамбула статьи (сноски о публикации, грантах, подзаголовки) ── */
.article-meta-notice {
    font-family: var(--font-ui);
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.018);
    border-left: 3px solid var(--glass-border);
    padding: 10px 16px;
    margin-bottom: 24px;
    border-radius: 0 4px 4px 0;
    font-style: italic;
}

/* ── Эпиграф / журнальный лид ── */
.article-subtitle-lead {
    font-family: var(--font-reading);
    font-size: 18px;
    font-weight: 400;
    font-style: italic;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.55;
    margin: 0 auto 32px auto;
    max-width: 620px;
    padding: 0 8px;
}

/* ── Текст статьи: каноническая полоса чтения ── */
.article-content-flow {
    font-family: var(--font-reading);
    font-size: 17px;
    line-height: 1.75;
    color: #212124;
    max-width: 700px;
    margin: 0 auto;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.article-content-flow p {
    margin-bottom: 1.45em;
    text-align: left;
    text-indent: 0;
}

/* ── Буквица ── */
.article-content-flow.has-drop-cap > p:first-of-type::first-letter {
    font-family: var(--font-reading);
    font-size: 3.85em;
    float: left;
    line-height: 0.72;
    margin: 0.04em 0.14em 0 0;
    padding-top: 0.02em;
    color: var(--cda-ruby);
    font-weight: 700;
}

/* Изображения внутри статьи */
.article-content-flow img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 28px auto;
    border-radius: 6px;
}

/* ==========================================
   АДАПТИВНЫЙ ГОРИЗОНТАЛЬНЫЙ СКРОЛЛ ТАБЛИЦ (.Post)
   ========================================== */
.table-scroll-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0 32px 0;
    background: #FFFFFF;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

table.Post,
.article-content-flow table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-family: var(--font-ui);
    font-size: 14.5px;
    line-height: 1.55;
    margin: 0;
    border: none;
}

table.Post td,
table.Post th,
.article-content-flow td,
.article-content-flow th {
    padding: 12px 16px;
    border: 1px solid var(--glass-border);
    vertical-align: top;
    text-align: left;
}

table.Post tr:first-child td,
table.Post th {
    background-color: #F8F9FA;
    font-weight: 700;
    color: var(--text-primary);
}

table.Post td p,
.article-content-flow table td p {
    margin: 0 0 6px 0;
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 1.5;
}
table.Post td p:last-child {
    margin-bottom: 0;
}

/* Сноски */
.cda-glass-tip-wrapper {
    position: relative;
    display: inline-block;
    cursor: help;
}
.cda-tip-trigger {
    font-family: var(--font-ui);
    color: var(--cda-ruby);
    font-weight: 700;
    padding: 0 2px;
}
.cda-glass-tip-bubble {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    max-width: 85vw;
    background: #FFFFFF;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-family: var(--font-ui);
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-secondary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s;
    z-index: 1000;
    pointer-events: none;
}
.cda-glass-tip-wrapper:hover .cda-glass-tip-bubble {
    opacity: 1;
    visibility: visible;
}

/* Сайдбар статьи */
.article-reading-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}
.sidebar-glass-panel { padding: 24px; }
.side-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--cda-ruby);
    margin-bottom: 12px;
}
.side-author-card-name { font-size: 16px; font-weight: 700; margin: 0 0 6px 0; font-family: var(--font-ui); }
.side-author-card-bio { font-size: 13.5px; line-height: 1.5; color: var(--text-muted); font-family: var(--font-ui); }
.side-author-email-link { margin-top: 10px; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.side-author-email-link a { color: var(--cda-ruby); }
/* Соавторы (статьи с несколькими авторами): каждый автор — отдельным блоком,
   разделённым тонкой линией, иначе карточки визуально слипаются */
.side-coauthor-entry + .side-coauthor-entry {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--glass-border);
}
.side-coauthor-entry .side-author-card-bio { margin-bottom: 0; }



.btn-copy-cite, .btn-issue-full-pdf {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 11px 14px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-sizing: border-box;
}
.btn-copy-cite { background: #F8F9FA; border: 1px solid var(--glass-border); color: var(--text-primary); }
.btn-copy-cite:hover { background: #EEEEEE; }
.btn-copy-cite.is-copied { background: #E8F5E9; border-color: #81C784; color: #2E7D32; }

.btn-issue-full-pdf { background: var(--cda-ruby); color: #FFFFFF; justify-content: center; }
.btn-issue-full-pdf:hover { background: var(--cda-ruby-hover); }

.side-title { font-size: 16px; font-weight: 700; margin: 0 0 12px 0; font-family: var(--font-ui); }
.side-sub-kicker { font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 10px; font-family: var(--font-ui); }
.side-articles-stack { display: flex; flex-direction: column; gap: 12px; }
.side-article-headline { font-size: 14px; font-weight: 600; margin: 0 0 4px 0; line-height: 1.35; }
.side-author-name { font-size: 12px; color: var(--text-muted); }

/* Футер */
.site-footer {
    border-top: 1px solid var(--glass-border);
    background: #FFFFFF;
    padding: 24px 0;
    margin-top: 40px;
}
.footer-inner { text-align: center; }
.footer-copy { font-size: 13px; color: #595959; line-height: 1.6; }
.footer-copy .footer-admin-link { color: inherit; text-decoration: none; }
.footer-copy .footer-admin-link:focus-visible {
    outline: 2px solid var(--cda-ruby);
    outline-offset: 3px;
}

/* Кнопка наверх */
.btn-scroll-top-google {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #FFFFFF;
    color: var(--cda-ruby);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.2s ease;
    padding: 0;
}
.btn-scroll-top-google.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.btn-scroll-top-google:hover {
    background-color: var(--cda-ruby);
    color: #FFFFFF;
}

/* ==========================================
   МОБИЛЬНАЯ АДАПТАЦИЯ (СМАРТФОНЫ И ПЛАНШЕТЫ)
   ========================================== */
@media screen and (max-width: 860px) {
    .container {
        padding: 0 16px;
    }

    /* На мобильных шапка находится в общем потоке (не sticky), исключая наплыв на контент */
    .site-header {
        position: relative;
        top: 0;
    }
    body.admin-bar .site-header {
        top: 0;
    }

    .header-container {
        height: 58px;
        justify-content: flex-start;
        gap: 12px;
    }

    .cda-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        background: #F5F5F7;
        border: 1px solid var(--glass-border);
        border-radius: 8px;
        cursor: pointer;
        padding: 0;
        flex-shrink: 0;
    }

    .cda-toggle-icon {
        width: 18px;
        height: 14px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .cda-toggle-icon span {
        display: block;
        height: 2px;
        width: 100%;
        background-color: var(--text-primary);
        border-radius: 2px;
    }

    .brand-logo-badge {
        width: 38px;
        height: 38px;
    }
    .brand-logo-svg {
        width: 38px;
        height: 38px;
    }

    .brand-name {
        font-size: 15px;
        line-height: 1.2;
    }
    .brand-issn {
        display: none;
    }

    /* Выпадающее мобильное меню */
    .cda-main-nav {
        position: absolute;
        top: 58px;
        left: 0;
        right: 0;
        width: 100%;
        background: #FFFFFF;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
        padding: 12px 16px 16px 16px;
        display: none;
        z-index: 99999;
    }

    .cda-main-nav.is-open {
        display: block;
    }

    .cda-main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .cda-main-nav a {
        display: block;
        font-size: 15px;
        font-weight: 600;
        padding: 10px 14px;
        background: #F8F9FA;
        border-radius: 8px;
    }

    /* Карточки: компактные внутренние отступы */
    .glass-card {
        padding: 18px 14px;
        border-radius: 12px;
    }

    /* ВАЖНО: правила для .article-reading-layout, .reading-title,
       .article-content-flow, .issue-archive-layout, .issue-hero-card,
       .issue-hero-theme, .issue-article-entry, .entry-headline и
       .sidebar-glass-panel вынесены в мобильный блок В КОНЦЕ файла.
       Причина: их базовые описания находятся ниже по тексту файла и при
       равной специфичности перекрывали эти значения по порядку каскада. */

    .btn-scroll-top-google {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* === ISSUE CATEGORY HUB — ЕДИНАЯ ОБЛОЖКА ВЫПУСКА === */
.issue-archive-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    padding-top: 36px;
    padding-bottom: 60px;
}

.issue-main-column,
.issue-sidebar-column {
    min-width: 0;
}

/* Hero-карточка выпуска */
.issue-hero-card {
    padding: 32px 36px;
    margin-bottom: 28px;
}

.issue-hero-body {
    margin-top: 20px;
    text-align: center;
}

.issue-hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cda-ruby);
    color: #FFFFFF;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.issue-hero-num {
    line-height: 1;
}

.issue-hero-theme {
    font-family: var(--font-reading);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    letter-spacing: -0.005em;
}

.issue-hero-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    color: var(--cda-ruby);
    text-decoration: none;
    padding: 8px 18px;
    border: 1.5px solid var(--cda-ruby);
    border-radius: 20px;
    margin-top: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

.issue-hero-pdf-btn:hover {
    background: var(--cda-ruby);
    color: #FFFFFF;
}

/* Список статей выпуска */
.issue-articles-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.issue-article-entry {
    padding: 22px 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.issue-article-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
}

/* Строка: номер статьи + автор */
.entry-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-family: var(--font-ui);
}

.entry-index {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--cda-ruby);
    background: rgba(148, 54, 52, 0.07);
    padding: 3px 9px;
    border-radius: 4px;
}

.entry-author {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Заголовок статьи в списке */
.entry-headline {
    font-family: var(--font-ui);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 8px 0;
}

.entry-headline a {
    color: var(--text-primary);
    text-decoration: none;
}

.entry-headline a:hover {
    color: var(--cda-ruby);
}

/* Анонс-дека */
.entry-dek {
    font-family: var(--font-reading);
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
}

/* === ГЛАВНАЯ СТРАНИЦА: СЕТКА И КАРТОЧКИ === */
.hero-split-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 28px;
    margin-bottom: 40px;
    align-items: stretch;
}

@media (max-width: 900px) {
    .hero-split-grid {
        grid-template-columns: 1fr;
    }
}

.hero-lead-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.badge-ruby {
    background: rgba(148, 54, 52, 0.1);
    color: #943634;
    font-weight: 600;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-label {
    font-size: 14px;
    font-weight: 600;
    color: #2b2b2b;
}

.lead-headline {
    font-size: 26px;
    line-height: 1.35;
    margin: 0 0 16px 0;
}

.lead-headline a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.lead-headline a:hover {
    color: #943634;
}

.lead-excerpt p {
    font-family: 'Literata', Georgia, serif;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 24px;
}

.btn-apple-ruby {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #943634;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 8px rgba(148, 54, 52, 0.25);
}

.btn-apple-ruby:hover {
    background: #7b2a28;
    transform: translateY(-1px);
}

/* Сайдбар текущего выпуска */
.hero-passport-compact {
    display: flex;
    flex-direction: column;
}

.glass-badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.05);
    color: #555;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.passport-title-compact {
    font-size: 22px;
    margin: 0 0 8px 0;
}

.passport-metrics-row {
    display: flex;
    gap: 16px;
    margin-top: auto;
    padding-top: 16px;
    margin-bottom: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.metric-pill {
    display: flex;
    flex-direction: column;
}

.m-val {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.m-lbl {
    font-size: 12px;
    color: #777;
    text-transform: uppercase;
}

.btn-compact-toc {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: rgba(0, 0, 0, 0.04);
    color: #333;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-compact-toc:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* === ОГЛАВЛЕНИЕ ВЫПУСКА (СОДЕРЖАНИЕ) === */
.section-title-wrap {
    margin: 40px 0 20px;
}

.section-heading {
    font-size: 22px;
    font-weight: 700;
    color: #212124;
    margin: 0;
}

.section-glow-line {
    height: 2px;
    background: linear-gradient(90deg, #943634 0%, rgba(148, 54, 52, 0.1) 60%, transparent 100%);
    margin-top: 8px;
    border-radius: 2px;
}

.toc-academic-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 12px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.toc-article-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 0.15s ease;
}

.toc-article-row:last-child {
    border-bottom: none;
}

.toc-article-row:hover .toc-article-title a {
    color: #943634;
}

.toc-num {
    font-size: 18px;
    font-weight: 700;
    color: #943634;
    font-variant-numeric: tabular-nums;
    min-width: 32px;
}

.toc-body {
    flex: 1;
}

.toc-author-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.toc-author-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #555;
}

.badge-mini-lead {
    background: rgba(148, 54, 52, 0.1);
    color: #943634;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.toc-article-title {
    font-size: 16px;
    line-height: 1.45;
    margin: 0;
    font-weight: 600;
}

.toc-article-title a {
    color: #212124;
    text-decoration: none;
    transition: color 0.15s ease;
}

.toc-action {
    margin-left: auto;
}

.toc-arrow-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.03);
    color: #444;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.2s ease;
}

.toc-article-row:hover .toc-arrow-link {
    background: #943634;
    color: #ffffff;
    transform: translateX(4px);
}

/* === СЕТКА АРХИВА ВЫПУСКОВ === */
.archive-glass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.archive-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.archive-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.archive-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.badge-count {
    font-size: 12px;
    font-weight: 600;
    color: #888;
}

.archive-card-title {
    font-size: 18px;
    margin: 0 0 6px 0;
}

.archive-card-title a {
    color: #212124;
    text-decoration: none;
}

.archive-card-link {
    margin-top: auto;
    font-size: 13.5px;
    font-weight: 600;
    color: #943634;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.archive-card-link:hover {
    text-decoration: underline;
}

/* === ОФОРМЛЕНИЕ СТАТИЧЕСКИХ СТРАНИЦ И САЙДБАРА (О ЖУРНАЛЕ, РЕДКОЛЛЕГИЯ, АВТОРАМ) === */
.article-reading-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
    margin-top: 24px;
    margin-bottom: 60px;
}

@media (max-width: 960px) {
    .article-reading-layout {
        grid-template-columns: 1fr;
    }
}

.article-reading-card {
    padding: 36px 40px;
}

.reading-breadcrumbs {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

.reading-breadcrumbs a {
    color: #888;
    text-decoration: none;
}

.reading-breadcrumbs a:hover {
    color: #943634;
}

.reading-title {
    font-size: 32px;
    font-weight: 700;
    color: #212124;
    margin: 0 0 24px 0;
    line-height: 1.25;
}

/* Сайдбар */
.article-reading-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-glass-panel {
    padding: 24px;
}

.side-title {
    font-size: 18px;
    font-weight: 700;
    color: #212124;
    margin-bottom: 18px;
    border-bottom: 2px solid rgba(148, 54, 52, 0.2);
    padding-bottom: 8px;
}

/* Блок метрик и статуса (табличный вид) */
.sidebar-about-metrics {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-metric-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 13.5px;
}

.about-metric-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.am-label {
    color: #666;
    flex: 1;
}

.am-val {
    color: #212124;
    text-align: right;
}

.am-val a {
    color: #943634;
    text-decoration: none;
}

.am-val a:hover {
    text-decoration: underline;
}

/* Карточки контактов редакции */
.sidebar-contact-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-person-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-person-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-role {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #943634;
}

.contact-name {
    font-size: 14.5px;
    color: #212124;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    margin-top: 2px;
}

.contact-email svg {
    stroke: #943634;
    flex-shrink: 0;
}

.contact-email:hover {
    color: #943634;
    text-decoration: underline;
}

/* Списки направлений */
.cda-features-list,
.author-requirements-list {
    margin: 16px 0 24px 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 15px;
    line-height: 1.6;
}

.author-requirements-list li strong {
    display: block;
    color: #212124;
    margin-bottom: 2px;
}

/* === СПИСОК РЕДКОЛЛЕГИИ === */
.editorial-members-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

.editorial-member-card {
    padding: 16px 20px;
    background: #fbfbfc;
    border-left: 3px solid #943634;
    border-radius: 0 10px 10px 0;
    transition: background 0.15s ease;
}

.editorial-member-card:hover {
    background: #f4f5f7;
}

.member-name {
    font-size: 17px;
    font-weight: 700;
    color: #212124;
    margin: 0 0 4px 0;
}

.member-degree {
    font-size: 13.5px;
    font-weight: 600;
    color: #943634;
    margin: 0 0 4px 0;
}

.member-affil {
    font-size: 14px;
    line-height: 1.45;
    color: #555;
    margin: 0;
}

/* 1. СЛУЖЕБНЫЕ СТРАНИЦЫ (О журнале, Авторам, Редколлегия) — строгий Onest */
body.page .article-reading-card .article-content-flow {
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: #2b2b2b;
}

body.page .article-reading-card .article-content-flow h2 {
    font-family: 'Onest', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 32px;
    margin-bottom: 14px;
}

body.page .article-reading-card .article-content-flow p {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

body.page .author-requirements-list li {
    font-family: 'Onest', sans-serif;
    font-size: 14.5px;
    line-height: 1.6;
    color: #444;
}

/* 2. ТЕКСТЫ НАУЧНЫХ СТАТЕЙ — академическая антиква Literata
   Блок КОНСОЛИДИРОВАН. Ранее те же свойства задавались двумя наборами правил,
   причём верхний (селектор с .article-reading-card) перебивал нижний по
   специфичности — из-за этого в абзацах фактически работало выравнивание по ширине,
   вопреки §4 регламента. Один блок = один источник истины. */
body.single-post .article-content-flow {
    font-family: 'Literata', Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.75;
    color: #1e1e1e;
    text-align: left;
}

body.single-post .article-content-flow p {
    margin-top: 0;
    margin-bottom: 1.4em;
    font-family: 'Literata', Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.75;
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
}

/* Заголовки внутри текста статьи — интерфейсный Onest */
body.single-post .article-content-flow h2,
body.single-post .article-content-flow h3 {
    font-family: 'Onest', sans-serif;
    color: #111;
    font-weight: 700;
}

/* Служебная преамбула (сноска о первой публикации) */
body.single-post .article-content-flow .article-preamble,
body.single-post .article-content-flow p[align="center"]:first-of-type {
    font-family: 'Onest', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
    text-align: center;
    margin: 1.5em auto 2.5em;
    max-width: 580px;
}

/* Внутренние подзаголовки разделов из архива */
body.single-post .article-content-flow p[align="center"] em,
body.single-post .article-content-flow p[align="center"] i,
body.single-post .article-content-flow h3.section-subhead {
    display: block;
    font-family: 'Literata', Georgia, serif;
    font-style: italic;
    font-size: 18px;
    line-height: 1.5;
    text-align: center;
    color: #1a1a1a;
    margin: 2.2em 0 1.2em;
}

/* ==========================================
   ПОДВАЛ СТАТЬИ: «Следующая статья номера»
   (классы .next-* ранее не были описаны в CSS,
    поэтому блок выглядел «голой» ссылкой)
   ========================================== */
.article-reading-footer {
    margin-top: 44px;
    padding-top: 4px;
}

.next-article-card {
    display: block;
    position: relative;
    padding: 22px 26px 24px;
    background: #FAFAFA;
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--cda-ruby);
    border-radius: 4px var(--radius-card) var(--radius-card) 4px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.next-article-card:hover {
    background: #FFFFFF;
    border-color: rgba(148, 54, 52, 0.28);
    transform: translateY(-2px);
    box-shadow: var(--glass-shadow);
}

.next-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.next-kicker {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--cda-ruby);
}

.next-meta svg {
    color: var(--cda-ruby);
    flex-shrink: 0;
    transition: transform 0.15s ease;
}
.next-article-card:hover .next-meta svg { transform: translateX(4px); }

.next-author {
    font-family: var(--font-ui);
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.next-title {
    font-family: var(--font-ui);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin: 0;
    transition: color 0.15s ease;
}
.next-article-card:hover .next-title { color: var(--cda-ruby); }

/* Последняя статья выпуска — нейтральный вариант (переход к оглавлению) */
.next-article-card.is-issue-end {
    border-left-color: var(--glass-border);
}
.next-article-card.is-issue-end .next-meta svg { color: var(--text-muted); }
.next-article-card.is-issue-end:hover .next-title { color: var(--text-primary); }

@media (max-width: 600px) {
    .next-article-card { padding: 18px 18px 20px; }
    .next-title { font-size: 17px; }
}

/* ==========================================
   ЧИТАБЕЛЬНОСТЬ: распределение переносов строк
   text-wrap поддерживается не всеми браузерами;
   где не поддерживается — правила просто игнорируются
   (прогрессивное улучшение, без риска регрессии).
   ========================================== */
.article-content-flow p {
    text-wrap: pretty;
}

.reading-title,
.lead-headline,
.section-heading,
.toc-article-title,
.archive-card-title,
.next-title {
    text-wrap: balance;
}


/* ==========================================
   МОБИЛЬНАЯ АДАПТАЦИЯ — ЕДИНЫЙ ФИНАЛЬНЫЙ БЛОК
   Блок стоит последним в файле: при равной специфичности
   выигрывает по порядку каскада (директива важности не нужна).
   Покрывает: страницу выпуска (category.php)
   и полосу чтения статьи (single.php).
   ========================================== */
@media screen and (max-width: 860px) {

    /* --- Общие карточки: идёт первым, далее — уточнения --- */
    .glass-card,
    .sidebar-glass-panel {
        padding: 18px 14px;
        border-radius: 12px;
    }

    /* --- Статья (single.php): компактная полоса чтения --- */
    .article-reading-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-top: 16px;
        padding-bottom: 36px;
        margin-top: 8px;
        margin-bottom: 36px;
    }

    .article-reading-card {
        padding: 18px 16px;
    }

    .reading-breadcrumbs {
        font-size: 12.5px;
        margin-bottom: 14px;
    }

    .reading-title {
        font-size: 21px;
        line-height: 1.3;
        letter-spacing: -0.01em;
        margin-bottom: 14px;
    }

    .abstract-callout {
        padding: 14px 16px;
        margin-bottom: 24px;
    }

    .abs-text {
        font-size: 14.5px;
        line-height: 1.55;
    }

    .abs-keys {
        font-size: 12.5px;
        line-height: 1.5;
    }

    .article-meta-notice {
        font-size: 12.5px;
        line-height: 1.5;
        padding: 9px 12px;
        margin-bottom: 18px;
    }

    .article-subtitle-lead {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 22px;
    }

    /* Мобильная полоса чтения: кегль 16px (в пределах канона §4),
       интерлиньяж и межабзацные отступы плотнее канонных 1.75/1.4em —
       на узком экране телефона канонная «воздушность» выглядела рваной.
       Desktop-канон (700px, 17px/1.75) не затронут. */
    body.single-post .article-content-flow {
        font-size: 16px;
        line-height: 1.65;
    }

    body.single-post .article-content-flow p {
        font-size: 16px;
        line-height: 1.65;
        margin-bottom: 1.15em;
    }

    body.single-post .article-content-flow h2,
    body.single-post .article-content-flow h3 {
        font-size: 17px;
    }

    body.single-post .article-content-flow .article-preamble,
    body.single-post .article-content-flow p[align="center"]:first-of-type {
        font-size: 13px;
        line-height: 1.5;
        margin: 1.2em auto 1.8em;
    }

    body.single-post .article-content-flow p[align="center"] em,
    body.single-post .article-content-flow p[align="center"] i,
    body.single-post .article-content-flow h3.section-subhead {
        font-size: 16px;
        line-height: 1.45;
        margin: 1.6em 0 0.9em;
    }

    .article-reading-footer {
        margin-top: 28px;
    }

    /* --- Страница выпуска (category.php): одна колонка --- */
    .issue-archive-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-top: 16px;
        padding-bottom: 36px;
    }

    .issue-hero-card {
        padding: 20px 16px;
        margin-bottom: 20px;
    }

    .issue-hero-body {
        margin-top: 14px;
    }

    .issue-hero-badge {
        font-size: 12px;
        padding: 5px 14px;
        margin-bottom: 12px;
    }

    .issue-hero-theme {
        font-size: 22px;
        line-height: 1.3;
    }

    .issue-articles-list {
        gap: 12px;
    }

    .issue-article-entry {
        padding: 16px 14px;
    }

    .entry-headline {
        font-size: 15.5px;
        line-height: 1.35;
    }

    .entry-dek {
        font-size: 14px;
        line-height: 1.55;
    }
}

/* CDA: настройка чтения статьи CHAT GPT*/
body.single-post .article-content-flow {
    font-size: 18px;
    line-height: 30px;
}
body.single-post .article-content-flow p {
    font-size: inherit;
    line-height: inherit;
    margin-bottom: 20px;
}
body.single-post .reading-title {
    font-size: 32px;
    line-height: 38px;
    margin-bottom: 24px;
}
body.single-post .article-content-flow h2,
body.single-post .article-content-flow h3 {
    font-family: var(--font-ui);
    font-size: 23px;
    line-height: 30px;
    margin: 32px 0 16px;
}

body.single-post .abs-text {
    font-size: 16px;
    line-height: 25px;
}
body.single-post .abs-keys {
    font-size: 14px;
    line-height: 21px;
    color: var(--text-secondary);
}
body.single-post .side-author-card-bio {
    font-size: 15px;
    line-height: 23px;
    color: var(--text-secondary);
}
body.single-post .side-article-headline {
    font-size: 15px;
    line-height: 22px;
}
body.single-post .side-author-name {
    font-size: 13px;
    line-height: 20px;
    color: var(--text-secondary);
}

body.single-post .article-content-flow .article-meta-notice {
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 22px;
    color: var(--text-secondary);
    margin: 0 0 24px;
}
body.single-post .article-content-flow .article-subtitle-lead {
    font-family: var(--font-reading);
    font-size: 18px;
    line-height: 28px;
    text-align: left;
    margin: 0 0 28px;
}

@media screen and (max-width: 860px) {
    body.single-post .article-reading-layout {
        padding-left: 8px;
        padding-right: 8px;
    }
    body.single-post .reading-title {
        font-size: 24px;
        line-height: 30px;
        margin-bottom: 20px;
    }
    body.single-post .article-content-flow {
        font-size: 16px;
        line-height: 26px;
    }
    body.single-post .article-content-flow p { margin-bottom: 18px; }
    body.single-post .abstract-callout {
        padding: 14px 12px;
        margin-bottom: 28px;
    }
    body.single-post .article-content-flow h2,
    body.single-post .article-content-flow h3 {
        font-size: 21px;
        line-height: 28px;
    }
}

/* CDA: карточки архива на главной */
.archive-glass-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 24px;
}
.archive-glass-grid .archive-card {
    margin-bottom: 0;
    padding: 24px;
}
.archive-issue-label {
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--cda-ruby);
    margin-bottom: 12px;
}
.archive-glass-grid .archive-card-title {
    font-family: var(--font-ui);
    font-size: 21px;
    line-height: 28px;
    font-weight: 600;
    margin: 0 0 24px;
    overflow-wrap: anywhere;
}

.archive-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}
.archive-card-footer .badge-count {
    font-size: 13px;
    color: var(--text-secondary);
}
.archive-card-footer .archive-card-link {
    margin-top: 0;
    font-size: 14px;
    line-height: 20px;
}
@media screen and (max-width: 860px) {
    .archive-glass-grid .archive-card { padding: 20px; }
    .archive-glass-grid .archive-card-title {
        font-size: 20px;
        line-height: 27px;
    }
}

/* CDA: шапка текущего выпуска */
.current-issue-header {
    padding: 28px 0 8px;
}
.current-issue-header + .section-title-wrap {
    margin-top: 24px;
}
.current-issue-kicker {
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
    color: var(--cda-ruby);
    margin-bottom: 16px;
}
.current-issue-title {
    font-family: var(--font-ui);
    font-size: 38px;
    line-height: 46px;
    font-weight: 700;
    letter-spacing: -0.02em;
    max-width: 960px;
    margin: 0 0 24px;
    text-wrap: balance;
    overflow-wrap: break-word;
}

.current-issue-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    font-family: var(--font-ui);
    font-size: 15px;
    line-height: 24px;
    color: var(--text-secondary);
}
.current-issue-actions a {
    color: var(--cda-ruby);
    font-weight: 600;
    padding: 8px 0;
}
.current-issue-actions a:hover { text-decoration: underline; }
.toc-academic-card .toc-body { min-width: 0; }
.toc-academic-card .toc-author-line { flex-wrap: wrap; }
.toc-academic-card .toc-article-title {
    font-size: 19px;
    line-height: 27px;
    overflow-wrap: break-word;
}

@media screen and (max-width: 860px) {
    .current-issue-header { padding: 28px 0 24px; }
    .current-issue-title {
        font-size: 28px;
        line-height: 35px;
        margin-bottom: 16px;
    }
    .current-issue-actions { gap: 8px 20px; }
    .toc-academic-card .toc-article-row {
        align-items: flex-start;
        gap: 12px;
    }
    .toc-academic-card .toc-num {
        min-width: 24px;
        font-size: 15px;
    }
    .toc-academic-card .toc-article-title {
        font-size: 18px;
        line-height: 25px;
    }
    .toc-academic-card .toc-action { display: none; }
}

/* CDA: типографическая веб-обложка */
.current-issue-header {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    column-gap: 40px;
    align-content: center;
}
.issue-web-cover {
    grid-column: 1;
    grid-row: 1 / span 3;
    aspect-ratio: 3 / 4;
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--cda-ruby);
    color: white;
    font-family: var(--font-ui);
    box-shadow: var(--glass-shadow);
}
.current-issue-kicker,
.current-issue-title,
.current-issue-actions { grid-column: 2; }
.current-issue-title { font-size: 32px; line-height: 40px; }

.cover-journal { font-size: 19px; line-height: 24px; font-weight: 700; }
.cover-number {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid currentColor;
    font-size: 72px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.04em;
}
.cover-theme {
    margin-top: 12px;
    font-size: 16px;
    line-height: 22px;
    overflow-wrap: break-word;
}
.cover-signature { margin-top: auto; padding-top: 20px; font-size: 10px; }
@media screen and (max-width: 860px) {
    .current-issue-header { grid-template-columns: 1fr; gap: 20px; }
    .issue-web-cover { grid-column: 1; grid-row: auto; width: 210px; }
    .current-issue-kicker,
    .current-issue-title,
    .current-issue-actions { grid-column: 1; }
    .current-issue-title { font-size: 28px; line-height: 35px; }
}

/* Собранная композиция шапки номера */
@media screen and (min-width: 861px) {
    .current-issue-header {
        grid-template-rows: auto auto 1fr;
        align-items: start;
    }
    .current-issue-kicker { margin: 0 0 16px; }
    .current-issue-title { margin: 0 0 24px; }
    .current-issue-actions { align-self: start; }
}
.cover-theme {
    font-size: 14px;
    line-height: 20px;
}

@media screen and (max-width: 860px) {
    .current-issue-header .issue-web-cover {
        display: none;
    }
    .current-issue-header {
        gap: 12px;
        padding: 24px 0 8px;
    }
    .current-issue-header .current-issue-kicker {
        margin-bottom: 0;
    }
    .current-issue-header .current-issue-title {
        margin-bottom: 8px;
    }
}
/* Утверждённая монограмма и шапка СДА, 30.10.2026 */
.site-header.cda-masthead .header-container { height: 88px; gap: 28px; }
.cda-masthead .header-brand-block { gap: 20px; min-width: 0; }
.cda-masthead .brand-logo-badge { width: 112px; height: 48px; overflow: visible; border-radius: 0; }
.cda-masthead .brand-logo-badge:hover { transform: none; }
.cda-masthead .brand-logo-svg { width: 100%; height: auto; }
.cda-masthead .brand-titles { gap: 5px; min-width: 0; }
.cda-masthead .brand-name { font-size: 18px; line-height: 1.2; }
.cda-masthead .brand-issn { font-size: 12px; line-height: 1.4; }
.cda-masthead .cda-main-nav { margin-left: auto; }
.cda-masthead .cda-main-nav ul { gap: 24px; }
.cda-masthead .cda-main-nav a { white-space: nowrap; }
.cda-masthead a:focus-visible, .cda-masthead button:focus-visible { outline: 2px solid var(--cda-ruby); outline-offset: 5px; }
@media (max-width: 1100px) and (min-width: 861px) {
    .cda-masthead .header-brand-block { gap: 14px; }
    .cda-masthead .brand-logo-badge { width: 90px; }
    .cda-masthead .brand-name { font-size: 16px; }
    .cda-masthead .brand-issn { font-size: 10px; }
    .cda-masthead .cda-main-nav ul { gap: 16px; }
    .cda-masthead .cda-main-nav a { font-size: 13px; }
}
@media (max-width: 860px) {
    .site-header.cda-masthead .header-container { height: 76px; gap: 12px; }
    .cda-masthead .header-brand-block { flex: 1; gap: 12px; }
    .cda-masthead .brand-logo-badge { width: 76px; height: 34px; }
    .cda-masthead .brand-name { font-size: 15px; line-height: 1.25; max-width: 210px; }
    .cda-masthead .brand-issn { display: none; }
    .cda-masthead .cda-mobile-toggle { width: 40px; height: 40px; background: transparent; border-color: transparent; }
    .cda-masthead .cda-main-nav { top: 100%; margin-left: 0; }
}
@media (max-width: 360px) {
    .cda-masthead .brand-logo-badge { width: 64px; }
    .cda-masthead .brand-name { font-size: 14px; }
    .cda-masthead .header-brand-block { gap: 10px; }
}
