/* ============================================================
   UNIVERSAL ACADEMIC JOURNAL TEMPLATE
   Themes: navy-gold (default) | emerald (body[data-theme="emerald"])
   Switch journal branding: change data-theme + journal meta in HTML.
   ============================================================ */

:root,
body[data-theme="navy-gold"] {
    --ac-primary: #0F1B29;
    --ac-primary-2: #1A2E46;
    --ac-secondary: #5C6A79;
    --ac-accent: #D4AF37;
    --ac-accent-hover: #C19B2D;
    --ac-accent-ink: #0F1B29;
    --ac-bg: #FDFDFD;
    --ac-surface: #FFFFFF;
    --ac-surface-alt: #F7F8FA;
    --ac-text: #1A1A1A;
    --ac-text-muted: #5C6A79;
    --ac-border: #E2E8F0;
    --ac-danger: #B02A1F;
    --ac-serif: 'Lora', 'PT Serif', Georgia, serif;
    --ac-sans: 'Inter', 'PT Sans', Arial, sans-serif;
    --ac-mono: 'JetBrains Mono', 'Courier New', monospace;
}

body[data-theme="emerald"] {
    --ac-primary: #00492b;
    --ac-primary-2: #15463A;
    --ac-secondary: #55635D;
    --ac-accent: #C9A227;
    --ac-accent-hover: #B08E1F;
    --ac-surface-alt: #F5F7F6;
    --ac-text-muted: #55635D;
}

html {
    scroll-behavior: smooth;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

body {
    font-family: var(--ac-sans);
    background: var(--ac-bg);
    color: var(--ac-text);
    font-size: 15.5px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background: var(--ac-accent);
    color: var(--ac-primary);
}

a {
    color: var(--ac-primary);
    transition: color .2s ease;
}

a:hover {
    color: var(--ac-accent-hover);
}

h1,
h2,
h3,
h4,
.serif {
    font-family: var(--ac-serif);
}

/* Grain overlay */
.grain {
    position: fixed;
    inset: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 2000;
    opacity: .028;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grainShift 9s steps(6) infinite;
}

@keyframes grainShift {

    0%,
    100% {
        transform: translate(0, 0);
    }

    20% {
        transform: translate(-2%, 1%);
    }

    40% {
        transform: translate(1%, -2%);
    }

    60% {
        transform: translate(-1%, 2%);
    }

    80% {
        transform: translate(2%, -1%);
    }
}

/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .9s cubic-bezier(.22, 1, .36, 1), transform .9s cubic-bezier(.22, 1, .36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.reveal-d1 {
    transition-delay: .08s;
}

.reveal-d2 {
    transition-delay: .16s;
}

.reveal-d3 {
    transition-delay: .24s;
}

.reveal-d4 {
    transition-delay: .32s;
}

/* ============ TOP MINI BAR ============ */
.topbar {
    background: var(--ac-primary);
    color: rgba(255, 255, 255, .82);
    font-size: 12.5px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.topbar a {
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
}

.topbar a:hover {
    color: var(--ac-accent);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.lang-switch a {
    padding: 2px 9px;
    font-weight: 500;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .55);
    position: relative;
}

.lang-switch a+a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 11px;
    background: rgba(255, 255, 255, .2);
    transform: translateY(-50%);
}

.lang-switch a.active,
.lang-switch a:hover {
    color: var(--ac-accent);
}

.topbar .search-box {
    position: relative;
}

.topbar .search-box input {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 12.5px;
    height: 30px;
    width: 190px;
    padding: 0 30px 0 12px;
    border-radius: 0;
    transition: width .35s cubic-bezier(.22, 1, .36, 1), border-color .2s ease, background .2s ease;
}

.topbar .search-box input:focus {
    outline: none;
    width: 260px;
    border-color: var(--ac-accent);
    background: rgba(255, 255, 255, .12);
    box-shadow: none;
}

.topbar .search-box input::placeholder {
    color: rgba(255, 255, 255, .4);
}

.topbar .search-box .fa-magnifying-glass {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, .45);
    font-size: 12px;
    pointer-events: none;
}

.topbar .auth-links a {
    font-weight: 500;
    letter-spacing: .02em;
}

.topbar .auth-links .divider {
    color: rgba(255, 255, 255, .25);
    margin: 0 6px;
}

/* ============ MAIN HEADER ============ */
.site-header {
    background: var(--ac-surface);
    border-bottom: 1px solid var(--ac-border);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.brand-mark {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    background: var(--ac-primary);
    color: var(--ac-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ac-serif);
    font-weight: 700;
    font-size: 21px;
    position: relative;
    transition: background .25s ease;
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(212, 175, 55, .45);
    pointer-events: none;
}

.brand:hover .brand-mark {
    background: var(--ac-primary-2);
}

.brand {
    text-decoration: none;
}

.brand-title {
    font-family: var(--ac-serif);
    font-weight: 700;
    color: var(--ac-primary);
    font-size: 1.22rem;
    line-height: 1.2;
}

.brand-meta {
    font-size: 11.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ac-text-muted);
}

.main-nav .nav-link {
    color: var(--ac-primary);
    font-weight: 500;
    font-size: 14.5px;
    padding: 13px 15px;
    position: relative;
    letter-spacing: .01em;
    white-space: nowrap;
}

.main-nav .nav-item:first-child .nav-link {
    padding-left: 0;
}

.main-nav .nav-item:first-child .nav-link::after {
    left: 0;
}

.main-nav .nav-item:first-child .nav-link:hover::after,
.main-nav .nav-item:first-child .nav-link.active::after {
    right: 0;
}

.main-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 100%;
    bottom: 4px;
    height: 2px;
    background: var(--ac-accent);
    transition: right .3s cubic-bezier(.22, 1, .36, 1);
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
    right: 13px;
}

.main-nav .nav-link.active {
    color: var(--ac-accent-hover);
}

.btn-submit {
    background: var(--ac-accent);
    color: var(--ac-accent-ink);
    border: none;
    border-radius: 0;
    font-weight: 600;
    font-size: 13.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 12px 22px;
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.btn-submit:hover {
    background: var(--ac-accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -10px rgba(15, 27, 41, .5);
}

.btn-submit .fa-solid {
    transition: transform .25s ease;
}

.btn-submit:hover .fa-solid {
    transform: translateX(4px);
}

/* ============ HERO ============ */
.hero {
    background:
            radial-gradient(1100px 500px at 85% -10%, rgba(212, 175, 55, .14), transparent 60%),
            radial-gradient(800px 500px at -10% 110%, rgba(255, 255, 255, .05), transparent 55%),
            var(--ac-primary);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11.5px;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--ac-accent);
    font-weight: 600;
}

.hero-kicker::before {
    content: "";
    width: 42px;
    height: 1px;
    background: var(--ac-accent);
}

.hero-title {
    font-family: var(--ac-serif);
    font-weight: 700;
    font-size: clamp(2.3rem, 5.2vw, 4rem);
    line-height: 1.08;
    letter-spacing: -.015em;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .line-inner {
    display: block;
    transform: translateY(110%);
    animation: lineUp 1.05s cubic-bezier(.22, 1, .36, 1) forwards;
}

.hero-title .line:nth-child(1) .line-inner {
    animation-delay: .15s;
}

.hero-title .line:nth-child(2) .line-inner {
    animation-delay: .3s;
}

.hero-title .line:nth-child(3) .line-inner {
    animation-delay: .45s;
}

@keyframes lineUp {
    to {
        transform: translateY(0);
    }
}

.hero-title .gold {
    color: var(--ac-accent);
    font-style: italic;
}

.hero-sub {
    color: rgba(255, 255, 255, .68);
    font-size: 1rem;
    max-width: 560px;
}

.hero-sub .fa-quote-left {
    color: var(--ac-accent);
    opacity: .7;
    margin-right: 8px;
}

.hero-stats {
    display: flex;
    gap: 44px;
    flex-wrap: wrap;
}

.hero-stat .num {
    font-family: var(--ac-serif);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--ac-accent);
    line-height: 1;
}

.hero-stat .lbl {
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
    margin-top: 6px;
}

/* Cover */
.cover-wrap {
    perspective: 1100px;
}

.cover {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    background: var(--ac-primary-2);
    border: 1px solid rgba(212, 175, 55, .35);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65), 0 0 0 6px rgba(255, 255, 255, .03);
    transform-style: preserve-3d;
    transition: transform .18s ease-out;
    will-change: transform;
}

.cover::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    background: radial-gradient(240px 240px at var(--mx, 50%) var(--my, 20%), rgba(255, 244, 214, .22), transparent 70%);
    opacity: 0;
    transition: opacity .3s ease;
}

.cover:hover::before {
    opacity: 1;
}

.cover-inner {
    padding: 26px 24px 22px;
    position: relative;
    z-index: 2;
}

.cover-rule {
    height: 1px;
    background: linear-gradient(90deg, var(--ac-accent), transparent);
    margin: 14px 0;
}

.cover-series {
    font-size: 10px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--ac-accent);
    font-weight: 600;
}

.cover-name {
    font-family: var(--ac-serif);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 10px 0 0;
}

.cover-img {
    height: 400px;
    margin: 18px 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, .14);
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.cover-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.75) contrast(1.05);
    transition: transform 6s ease;
}

.cover:hover .cover-img img {
    transform: scale(1.07);
}

.cover-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 27, 41, .25), rgba(15, 27, 41, 0) 40%, rgba(15, 27, 41, .45));
}

.cover-vol {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.cover-vol .t {
    font-family: var(--ac-serif);
    font-size: 1.05rem;
    font-weight: 600;
}

.cover-vol .i {
    font-size: 10.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
    text-align: right;
}

.hero .scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .4);
    font-size: 10.5px;
    letter-spacing: .3em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-cue .bar {
    width: 1px;
    height: 34px;
    background: linear-gradient(180deg, var(--ac-accent), transparent);
    animation: cueDrop 2.2s ease-in-out infinite;
    transform-origin: top;
}

@keyframes cueDrop {
    0% {
        transform: scaleY(0);
    }

    45% {
        transform: scaleY(1);
    }

    100% {
        transform: scaleY(1);
        opacity: 0;
    }
}

/* ============ MARQUEE ============ */
.marquee-band {
    background: var(--ac-surface);
    border-bottom: 1px solid var(--ac-border);
    overflow: hidden;
    padding: 16px 0;
    position: relative;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 46s linear infinite;
}

.marquee-band:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-track span {
    display: inline-flex;
    align-items: center;
    gap: 26px;
    padding-right: 26px;
    font-size: 12px;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--ac-text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.marquee-track .dot {
    color: var(--ac-accent);
    font-size: 9px;
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

/* ============ CHAPTERS / SECTIONS ============ */
.chapter-head {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 8px;
}

.chapter-no {
    font-family: var(--ac-serif);
    font-size: clamp(2.6rem, 4vw, 3.6rem);
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px var(--ac-accent);
    line-height: 1;
}

.chapter-title {
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    font-weight: 700;
    color: var(--ac-primary);
}

.chapter-rule {
    flex: 1;
    height: 1px;
    background: var(--ac-border);
    align-self: center;
}

.page-section {
    padding: 72px 0 24px;
}

.section-eyebrow {
    font-size: 11px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--ac-accent-hover);
    font-weight: 600;
    margin-bottom: 10px;
}

/* ============ ARTICLE LIST ============ */
.article-item {
    padding: 30px 0 30px;
    border-bottom: 1px solid var(--ac-border);
    position: relative;
    transition: background .25s ease, padding-left .35s cubic-bezier(.22, 1, .36, 1);
}

.article-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 30px;
    bottom: 30px;
    width: 3px;
    background: var(--ac-accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

.article-item:hover {
    padding-left: 16px;
}

.article-item:hover::before {
    transform: scaleY(1);
}

.article-title {
    font-family: var(--ac-serif);
    font-size: 1.22rem;
    font-weight: 600;
    color: var(--ac-primary);
    line-height: 1.4;
    text-decoration: none;
    display: inline-block;
}

.article-title:hover {
    color: var(--ac-accent-hover);
}

.article-authors {
    font-size: .93rem;
    margin-top: 8px;
    color: var(--ac-text);
}

.article-authors .lead-author {
    font-weight: 600;
}

.article-authors sup {
    color: var(--ac-accent-hover);
    font-size: .72em;
}

.article-affils {
    font-size: .82rem;
    font-style: italic;
    color: var(--ac-text-muted);
    margin-top: 4px;
    line-height: 1.55;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 12px;
    font-size: .84rem;
    align-items: center;
}

.article-meta .doi {
    font-family: var(--ac-mono);
    font-size: .78rem;
    color: var(--ac-secondary);
    text-decoration: none;
}

.article-meta .doi:hover {
    color: var(--ac-accent-hover);
}

.article-meta .pages {
    color: var(--ac-text-muted);
}

.article-meta .pages .fa-solid {
    font-size: .75rem;
    margin-right: 5px;
    color: var(--ac-accent-hover);
}

.btn-pdf {
    border: 1px solid var(--ac-danger);
    color: var(--ac-danger);
    background: transparent;
    border-radius: 0;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 6px 14px;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.btn-pdf:hover {
    background: var(--ac-danger);
    color: #fff;
    transform: translateY(-1px);
}

.abstract-toggle {
    background: none;
    border: none;
    padding: 6px 0;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ac-secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: color .2s ease;
}

.abstract-toggle:hover {
    color: var(--ac-accent-hover);
    background-color: white;
}

.abstract-toggle .chev {
    transition: transform .3s cubic-bezier(.22, 1, .36, 1);
    font-size: .7rem;
}

.abstract-toggle[aria-expanded="true"] .chev {
    transform: rotate(180deg);
}

.abstract-body {
    font-size: .88rem;
    color: var(--ac-text-muted);
    background: var(--ac-surface-alt);
    border-left: 3px solid var(--ac-accent);
    padding: 16px 20px;
    margin-top: 12px;
    line-height: 1.7;
}

.abstract-body .kw {
    display: block;
    margin-top: 10px;
    font-size: .8rem;
}

.abstract-body .kw b {
    color: var(--ac-primary);
    font-weight: 600;
}

/* ============ SIDEBAR ============ */
.side-block {
    background: var(--ac-surface-alt);
    border-top: 3px solid var(--ac-primary);
    padding: 26px;
    margin-bottom: 30px;
}

.side-block.gold-top {
    border-top-color: var(--ac-accent);
}

.side-heading {
    font-family: var(--ac-serif);
    font-size: .95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ac-primary);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.side-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ac-border);
}

.badge-index {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--ac-surface);
    border: 1px solid var(--ac-border);
    padding: 7px 13px;
    font-size: .8rem;
    font-weight: 500;
    color: var(--ac-text);
    margin: 0 6px 8px 0;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.badge-index:hover {
    border-color: var(--ac-accent);
    color: var(--ac-accent-hover);
    transform: translateY(-2px);
}

.badge-index .fa-solid {
    color: var(--ac-accent-hover);
    font-size: .75rem;
}

.badge-index-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff; /* Белый фон обязателен для логотипов */
    border: 1px solid var(--ac-border);
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.2s ease;
    height: 50px; /* Фиксируем высоту плашек */
}

.badge-index-logo img {
    max-height: 100%;
    width: auto;
    object-fit: contain; /* Чтобы логотип не сплющило */
    /*filter: grayscale(100%); !* Делаем черно-белыми для стиля *!*/
    opacity: 0.7;
    transition: all 0.3s ease;
}

.badge-index-logo:hover {
    border-color: var(--ac-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.badge-index-logo:hover img {
    filter: grayscale(0%); /* При наведении возвращаем родные цвета */
    opacity: 1;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 9px 0;
    border-bottom: 1px dashed var(--ac-border);
    font-size: .86rem;
}

.metric-row:last-child {
    border-bottom: none;
}

.metric-row .v {
    font-family: var(--ac-serif);
    font-weight: 700;
    color: var(--ac-primary);
}

.metric-row .lbl {
    color: var(--ac-text-muted);
}

.side-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-list li a {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    padding: 9px 0;
    font-size: .9rem;
    color: var(--ac-text);
    border-bottom: 1px solid var(--ac-border);
    transition: color .2s ease, padding-left .25s ease;
}

.side-list li:last-child a {
    border-bottom: none;
}

.side-list li a:hover {
    color: var(--ac-accent-hover);
    padding-left: 6px;
}

.side-list .fa-solid {
    color: var(--ac-accent-hover);
    font-size: .8rem;
    width: 16px;
}

.editor-photo {
    width: 180px;
    height: 200px;
    object-fit: cover;
    border: 2px solid var(--ac-surface);
    outline: 1px solid var(--ac-accent);
    margin-bottom: 14px;
    filter: grayscale(.15);
}

.editor-mono {
    width: 88px;
    height: 88px;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--ac-primary);
    color: var(--ac-accent);
    font-family: var(--ac-serif);
    font-weight: 700;
    font-size: 1.6rem;
    border: 2px solid var(--ac-surface);
    outline: 1px solid var(--ac-accent);
    margin-bottom: 14px;
}

.editor-name {
    font-family: var(--ac-serif);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ac-primary);
    margin-bottom: 2px;
}

.editor-role {
    font-size: .8rem;
    color: var(--ac-text-muted);
    font-style: italic;
}

.editor-contacts {
    margin-top: 12px;
    font-size: .84rem;
}

.editor-contacts a {
    display: flex;
    gap: 10px;
    align-items: center;
    text-decoration: none;
    padding: 4px 0;
    color: var(--ac-text);
}

.editor-contacts a:hover {
    color: var(--ac-accent-hover);
}

.editor-contacts .fa-solid {
    color: var(--ac-accent-hover);
    width: 15px;
    font-size: .78rem;
}

/* ============ FOOTER ============ */
.site-footer {
    background: var(--ac-primary);
    color: rgba(255, 255, 255, .68);
    padding: 64px 0 0;
    margin-top: 80px;
    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ac-accent), transparent 60%);
}

.footer-heading {
    color: #fff;
    font-family: var(--ac-serif);
    font-size: .95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 20px;
}

.site-footer a {
    color: rgba(255, 255, 255, .68);
    text-decoration: none;
    font-size: .88rem;
}

.site-footer a:hover {
    color: var(--ac-accent);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 9px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 11px;
    font-size: .88rem;
}

.footer-contact .fa-solid {
    color: var(--ac-accent);
    margin-top: 5px;
    font-size: .8rem;
}

.cc-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, .2);
    padding: 10px 16px;
    margin-top: 8px;
    transition: border-color .25s ease;
}

.cc-badge:hover {
    border-color: var(--ac-accent);
}

.cc-badge .fa-brands {
    font-size: 1.3rem;
    color: var(--ac-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 48px;
    padding: 22px 0;
    font-size: .8rem;
    color: rgba(255, 255, 255, .42);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991.98px) {
    .cover {
        margin: 36px auto 0;
        max-width: 280px;
    }

    .hero {
        padding-bottom: 84px;
    }

    .topbar .search-box input {
        width: 130px;
    }

    .topbar .search-box input:focus {
        width: 170px;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 14.5px;
    }

    .hero-stats {
        gap: 26px;
    }

    .article-meta {
        gap: 8px 14px;
    }

    .topbar .auth-links {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero-title .line-inner {
        transform: none;
        animation: none;
    }
}

/* ============ INNER PAGE HERO ============ */
.page-hero {
    background:
            radial-gradient(900px 400px at 90% -20%, rgba(212, 175, 55, .12), transparent 60%),
            var(--ac-primary);
    color: #fff;
    padding: 60px 0 52px;
    position: relative;
    overflow: hidden;
}

.page-hero h1 {
    font-family: var(--ac-serif);
    font-weight: 700;
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    letter-spacing: -.01em;
}

.page-hero-sub {
    color: rgba(255, 255, 255, .66);
    max-width: 640px;
    margin: 12px 0 0;
    font-size: .98rem;
}

.breadcrumb-ac {
    font-size: 11.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumb-ac a {
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
}

.breadcrumb-ac a:hover {
    color: var(--ac-accent);
}

.breadcrumb-ac .fa-angle-right {
    color: var(--ac-accent);
    font-size: 9px;
}

.breadcrumb-ac span {
    color: var(--ac-accent);
    font-weight: 600;
}

/* ============ ARCHIVE ============ */
.archive-acc .accordion-item {
    border: none;
    border-bottom: 1px solid var(--ac-border);
    background: transparent;
}

.archive-acc .accordion-button {
    background: transparent;
    box-shadow: none;
    padding: 22px 4px;
    font-family: var(--ac-serif);
    font-weight: 700;
    color: var(--ac-primary);
    font-size: 1.2rem;
    gap: 16px;
    align-items: baseline;
}

.archive-acc .accordion-button:focus {
    box-shadow: none;
    border: none;
}

.archive-acc .accordion-button:not(.collapsed) {
    color: var(--ac-accent-hover);
    background: transparent;
}

.archive-acc .accordion-button::after {
    background-image: none;
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .8rem;
    color: var(--ac-accent-hover);
    width: auto;
    height: auto;
    transition: transform .3s cubic-bezier(.22, 1, .36, 1);
    align-self: center;
}

.archive-acc .accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

.year-count {
    font-family: var(--ac-sans);
    font-size: .78rem;
    font-weight: 500;
    color: var(--ac-text-muted);
    letter-spacing: .04em;
}

.issue-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 15px 4px;
    border-bottom: 1px dashed var(--ac-border);
    transition: padding-left .3s cubic-bezier(.22, 1, .36, 1), background .2s ease;
}

.issue-row:last-child {
    border-bottom: none;
}

.issue-row:hover {
    padding-left: 12px;
    background: var(--ac-surface-alt);
}

.issue-link {
    font-family: var(--ac-serif);
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--ac-primary);
    text-decoration: none;
}

.issue-link:hover {
    color: var(--ac-accent-hover);
}

.issue-meta {
    font-size: .82rem;
    color: var(--ac-text-muted);
    margin-top: 3px;
}

.badge-current {
    background: var(--ac-accent);
    color: var(--ac-accent-ink);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 10px;
}

.search-side {
    display: flex;
    gap: 8px;
}

.search-side .form-control {
    border-radius: 0;
    border-color: var(--ac-border);
    font-size: .9rem;
    padding: 10px 14px;
}

.search-side .form-control:focus {
    border-color: var(--ac-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .15);
}

.form-select {
    border-radius: 0;
    border-color: var(--ac-border);
    font-size: .85rem;
}

.form-select:focus {
    border-color: var(--ac-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .15);
}

/* ============ BOARD ============ */
.chief-card {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    background: var(--ac-surface-alt);
    border-top: 3px solid var(--ac-accent);
    padding: 34px;
}

.chief-photo {
    width: 150px;
    height: 190px;
    object-fit: cover;
    outline: 1px solid var(--ac-accent);
    outline-offset: 4px;
    filter: grayscale(.1);
}

.chief-photo-wrap {
    flex: 0 0 auto;
}

.chief-mono {
    width: 150px;
    height: 190px;
    font-size: 3rem;
    margin-bottom: 0;
}

.chief-name {
    font-family: var(--ac-serif);
    font-weight: 700;
    font-size: 1.55rem;
    color: var(--ac-primary);
    margin: 6px 0 4px;
}

.side-eyebrow {
    font-size: 11px;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--ac-accent-hover);
    font-weight: 600;
}

.member-card {
    background: var(--ac-surface);
    border: 1px solid var(--ac-border);
    border-top: 3px solid var(--ac-primary);
    padding: 26px;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -20px rgba(15, 27, 41, .28);
    border-top-color: var(--ac-accent);
}

.member-card.gold-card {
    border-top-color: var(--ac-accent);
    background: var(--ac-surface-alt);
}

.member-mono {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--ac-primary);
    color: var(--ac-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ac-serif);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 16px;
    border: 1px solid rgba(212, 175, 55, .4);
}

.member-mono.mono-gold {
    background: var(--ac-accent);
    color: var(--ac-primary);
}

.member-name {
    font-family: var(--ac-serif);
    font-weight: 700;
    font-size: 1.06rem;
    color: var(--ac-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.member-degree {
    font-size: .82rem;
    font-style: italic;
    color: var(--ac-accent-hover);
    margin-bottom: 8px;
}

.member-affil {
    font-size: .85rem;
    color: var(--ac-text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.member-links {
    display: flex;
    gap: 16px;
}

.member-links a {
    font-size: .82rem;
    text-decoration: none;
    color: var(--ac-secondary);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.member-links a:hover {
    color: var(--ac-accent-hover);
}

.member-links .fa-orcid {
    color: #A6CE39;
}

/* ============ ARTICLE PAGE ============ */
.a-badge {
    background: rgba(212, 175, 55, .14);
    color: var(--ac-accent);
    border: 1px solid rgba(212, 175, 55, .4);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 7px 14px;
}

.a-title {
    font-family: var(--ac-serif);
    font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    line-height: 1.25;
    letter-spacing: -.01em;
    max-width: 880px;
}

.a-authors {
    margin: 18px 0 4px;
    font-size: 1.02rem;
}

.a-authors a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 175, 55, .4);
}

.a-authors a:hover {
    color: var(--ac-accent);
}

.a-authors a.lead {
    font-weight: 600;
}

.a-authors sup,
.a-affils sup {
    color: var(--ac-accent);
}

.a-affils {
    font-size: .85rem;
    font-style: italic;
    color: rgba(255, 255, 255, .6);
    max-width: 820px;
}

.a-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 26px;
    font-size: .83rem;
    color: rgba(255, 255, 255, .62);
    margin-top: 20px;
}

.a-meta-row .fa-solid,
.a-meta-row .fa-regular {
    color: var(--ac-accent);
}

.a-doi {
    font-family: var(--ac-mono);
    font-size: .8rem;
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
}

.a-doi:hover {
    color: var(--ac-accent);
}

.fulltext p {
    line-height: 1.85;
    margin-bottom: 16px;
}

.ft-h {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ac-primary);
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 18px;
}

.ft-h .n {
    font-size: .8rem;
    color: var(--ac-accent-hover);
    letter-spacing: .2em;
    font-family: var(--ac-sans);
    font-weight: 600;
}

.kw-badge {
    border: 1px solid var(--ac-border);
    background: var(--ac-surface);
    padding: 5px 12px;
    font-size: .78rem;
    color: var(--ac-text-muted);
}

.ref-list {
    padding-left: 0;
    counter-reset: ref;
    list-style: none;
}

.ref-list li {
    counter-increment: ref;
    position: relative;
    padding: 10px 0 10px 44px;
    border-bottom: 1px dashed var(--ac-border);
    font-size: .9rem;
    line-height: 1.65;
    color: var(--ac-text);
}

.ref-list li::before {
    content: counter(ref, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 12px;
    font-family: var(--ac-serif);
    font-weight: 700;
    font-size: .85rem;
    color: var(--ac-accent-hover);
}

.cite-box {
    background: var(--ac-surface-alt);
    border-top: 3px solid var(--ac-accent);
    padding: 28px;
}

.cite-tabs {
    border-bottom: 1px solid var(--ac-border);
    gap: 4px;
}

.cite-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--ac-text-muted);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .1em;
    padding: 8px 16px;
    transition: color .2s ease, border-color .2s ease;
}

.cite-tabs .nav-link:hover {
    color: var(--ac-accent-hover);
}

.cite-tabs .nav-link.active {
    color: var(--ac-primary);
    border-bottom-color: var(--ac-accent);
    background: transparent;
}

.cite-text {
    background: var(--ac-surface);
    border: 1px solid var(--ac-border);
    border-left: 3px solid var(--ac-accent);
    padding: 16px 18px;
    font-size: .86rem;
    line-height: 1.7;
}

.cite-text.font-mono {
    font-family: var(--ac-mono);
    font-size: .76rem;
    white-space: pre-wrap;
}

.btn-copy {
    background: transparent;
    border: 1px solid var(--ac-primary);
    color: var(--ac-primary);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 0;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.btn-copy:hover {
    background: var(--ac-primary);
    color: #fff;
}

.btn-copy.copied {
    background: #2E7D32;
    border-color: #2E7D32;
    color: #fff;
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--ac-border);
    background: var(--ac-surface);
    padding: 8px 14px;
    font-size: .82rem;
    color: var(--ac-text-muted);
}

.stat-chip b {
    color: var(--ac-primary);
    font-family: var(--ac-serif);
}

.stat-chip .fa-solid,
.stat-chip .fa-regular {
    color: var(--ac-accent-hover);
}

/* ============ AUTH PAGES ============ */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-header {
    background: var(--ac-surface);
    border-bottom: 1px solid var(--ac-border);
}

.auth-back {
    font-size: .85rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--ac-secondary);
}

.auth-back:hover {
    color: var(--ac-accent-hover);
}

.auth-main {
    flex: 1;
    display: flex;
}

.auth-promo {
    width: 42%;
    flex: 0 0 42%;
    color: #fff;
    background:
            radial-gradient(700px 420px at 90% -10%, rgba(212, 175, 55, .16), transparent 60%),
            radial-gradient(500px 400px at 0% 110%, rgba(255, 255, 255, .05), transparent 55%),
            var(--ac-primary);
    padding: 72px 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
}

.auth-promo-title {
    font-family: var(--ac-serif);
    font-weight: 700;
    font-size: clamp(1.8rem, 2.6vw, 2.5rem);
    line-height: 1.15;
}

.auth-promo-title .gold {
    color: var(--ac-accent);
    font-style: italic;
}

.auth-promo-sub {
    color: rgba(255, 255, 255, .66);
    max-width: 420px;
    font-size: .95rem;
}

.auth-promo-quote {
    font-size: .85rem;
    font-style: italic;
    color: rgba(255, 255, 255, .55);
    margin: 0;
}

.auth-promo-quote .fa-quote-left {
    color: var(--ac-accent);
}

.auth-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-benefits li {
    display: flex;
    gap: 14px;
    align-items: baseline;
    font-size: .93rem;
    color: rgba(255, 255, 255, .8);
}

.auth-benefits .fa-circle-check {
    color: var(--ac-accent);
}

.auth-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 28px;
    background: var(--ac-bg);
}

.auth-card {
    width: 100%;
    max-width: 460px;
}

.auth-card-wide {
    max-width: 720px;
}

.auth-title {
    font-family: var(--ac-serif);
    font-weight: 700;
    font-size: 1.85rem;
    color: var(--ac-primary);
    margin-bottom: 4px;
}

.auth-subtitle {
    color: var(--ac-text-muted);
    font-size: .92rem;
    margin-bottom: 28px;
}

.form-label-ac {
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--ac-primary);
    margin-bottom: 7px;
}

.req {
    color: var(--ac-danger);
}

.ac-input-group .input-group-text {
    background: var(--ac-surface);
    border: 1px solid var(--ac-border);
    border-right: none;
    border-radius: 0;
    color: var(--ac-text-muted);
    font-size: .85rem;
}

.ac-input-group .form-control {
    border-radius: 0;
    border-color: var(--ac-border);
    border-left: none;
    padding: 12px 14px 12px 10px;
    font-size: .93rem;
}

.ac-input-group .form-control:focus {
    border-color: var(--ac-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .15);
}

.ac-input-group .form-control:focus+.pwd-toggle,
.ac-input-group:focus-within .input-group-text {
    border-color: var(--ac-accent);
}

.auth-card .form-control:not(.ac-input-group .form-control),
.auth-card .form-select,
.auth-card textarea.form-control {
    border-radius: 0;
    border-color: var(--ac-border);
    padding: 12px 14px;
    font-size: .93rem;
}

.auth-card .form-control:focus,
.auth-card .form-select:focus {
    border-color: var(--ac-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .15);
}

.pwd-toggle {
    border: 1px solid var(--ac-border);
    border-left: none;
    background: var(--ac-surface);
    color: var(--ac-text-muted);
    padding: 0 16px;
    transition: color .2s ease;
}

.pwd-toggle:hover {
    color: var(--ac-accent-hover);
}

.ac-check .form-check-input {
    border-radius: 0;
    border-color: var(--ac-secondary);
    width: 17px;
    height: 17px;
    margin-top: 2px;
}

.ac-check .form-check-input:checked {
    background-color: var(--ac-accent);
    border-color: var(--ac-accent);
}

.ac-check .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .18);
}

.ac-check .form-check-label {
    font-size: .86rem;
    color: var(--ac-text);
}

.link-gold {
    color: var(--ac-accent-hover);
    font-size: .86rem;
    text-decoration: none;
}

.link-gold:hover {
    color: var(--ac-primary);
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 26px 0 16px;
    color: var(--ac-text-muted);
    font-size: .78rem;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ac-border);
}

.auth-switch {
    text-align: center;
    font-size: .9rem;
    color: var(--ac-text-muted);
    margin: 0;
}

.alert-demo {
    border-radius: 0;
    border: 1px solid rgba(212, 175, 55, .5);
    border-left: 3px solid var(--ac-accent);
    background: rgba(212, 175, 55, .08);
    color: var(--ac-primary);
    font-size: .85rem;
}

.form-section {
    border: none;
    padding: 0;
    margin: 0 0 30px;
}

.form-section-head {
    font-family: var(--ac-serif);
    font-weight: 700;
    font-size: 1.08rem;
    color: var(--ac-primary);
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ac-border);
    width: 100%;
    float: none;
}

.form-section-head .fsn {
    font-family: var(--ac-sans);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .2em;
    color: var(--ac-accent-hover);
}

.form-hint {
    font-size: .78rem;
    color: var(--ac-text-muted);
    margin-top: 6px;
}

.role-card {
    display: block;
    border: 1px solid var(--ac-border);
    background: var(--ac-surface);
    padding: 20px 22px;
    cursor: pointer;
    position: relative;
    height: 100%;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.role-card:hover {
    transform: translateY(-2px);
    border-color: var(--ac-accent);
}

.role-card .form-check-input {
    position: absolute;
    top: 18px;
    right: 18px;
    border-radius: 0;
    width: 17px;
    height: 17px;
}

.role-card .form-check-input:checked {
    background-color: var(--ac-accent);
    border-color: var(--ac-accent);
}

.role-card:has(.form-check-input:checked) {
    border-color: var(--ac-accent);
    background: rgba(212, 175, 55, .06);
}

.role-icon {
    color: var(--ac-accent-hover);
    font-size: 1.15rem;
    display: block;
    margin-bottom: 10px;
}

.role-name {
    display: block;
    font-family: var(--ac-serif);
    font-weight: 700;
    color: var(--ac-primary);
    font-size: 1.02rem;
}

.role-desc {
    display: block;
    font-size: .82rem;
    color: var(--ac-text-muted);
    margin-top: 4px;
    line-height: 1.5;
    padding-right: 22px;
}

.auth-footer {
    border-top: 1px solid var(--ac-border);
    font-size: .8rem;
    color: var(--ac-text-muted);
}

.auth-footer a {
    color: var(--ac-text-muted);
}

.auth-footer a:hover {
    color: var(--ac-accent-hover);
}

@media (max-width: 991.98px) {
    .auth-promo {
        display: none;
    }

    .chief-card {
        flex-direction: column;
    }

    .page-hero {
        padding: 44px 0 38px;
    }
}

/* ============ NAV DROPDOWNS ============ */
.main-nav .dropdown-toggle::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .58rem;
    margin-left: 7px;
    color: var(--ac-accent-hover);
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    height: auto;
    background: none;
    transition: transform .25s cubic-bezier(.22, 1, .36, 1);
    border-top: none;
}

.main-nav .dropdown:hover .dropdown-toggle::after,
.main-nav .dropdown-toggle.show::after {
    transform: rotate(180deg);
}

.main-nav .dropdown-menu {
    border-radius: 0;
    border: 1px solid var(--ac-border);
    border-top: 3px solid var(--ac-accent);
    box-shadow: 0 24px 48px -20px rgba(15, 27, 41, .28);
    padding: 8px 0;
    min-width: 250px;
    margin-top: 0;
    background: var(--ac-surface);
}

.main-nav .dropdown-item {
    font-size: .88rem;
    padding: 10px 22px;
    color: var(--ac-text);
    transition: padding-left .2s ease, color .2s ease, background-color .2s ease;
}

.main-nav .dropdown-item:hover,
.main-nav .dropdown-item:focus {
    background: var(--ac-surface-alt);
    color: var(--ac-accent-hover);
    padding-left: 28px;
}

.main-nav .dropdown-divider {
    border-top-color: var(--ac-border);
    margin: 6px 0;
}

@media (min-width: 992px) {
    .main-nav .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(12px);
        pointer-events: none;
        transition: opacity .25s ease, transform .25s cubic-bezier(.22, 1, .36, 1), visibility .25s;
    }

    .main-nav .dropdown:hover>.dropdown-menu,
    .main-nav .dropdown>.dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

/* Mobile offcanvas dropdowns */
.offcanvas .dropdown {
    width: 100%;
}

.offcanvas .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offcanvas .dropdown-toggle::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    border: none;
    font-size: .62rem;
    color: var(--ac-accent-hover);
    transition: transform .25s ease;
}

.offcanvas .dropdown-toggle.show::after {
    transform: rotate(180deg);
}

.offcanvas .dropdown-menu {
    position: static !important;
    transform: none !important;
    border: none;
    border-left: 2px solid var(--ac-accent);
    border-radius: 0;
    background: transparent;
    margin: 0 0 6px 16px;
    padding: 2px 0;
    box-shadow: none;
}

.offcanvas .dropdown-item {
    padding: 9px 16px;
    font-size: .9rem;
    white-space: normal;
    color: var(--ac-text);
}

.offcanvas .dropdown-item:hover,
.offcanvas .dropdown-item:focus {
    background: transparent;
    color: var(--ac-accent-hover);
}

/* Nav row below brand */
.nav-row {
    border-top: 1px solid var(--ac-border);
}

.main-nav .dropdown-toggle {
    display: inline-flex;
    align-items: center;
}

.share-links {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.share-links .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}


.share-links .share-tg { color: #0088cc; }
.share-links .share-wa { color: #25D366; }
.share-links .share-in { color: #0A66C2; }
.share-links .share-fb { color: #1877F2; }
.share-links .share-x  { color: #000000; }

.share-links .share-btn:hover {
    transform: translateY(-3px) scale(1.15);
    opacity: 0.8;
}

.share-links .share-btn:focus:not(:focus-visible) {
    outline: none;
}

/* =========================================================
   PDF Viewer
   ========================================================= */

.header_view {
    display: flex;
    align-items: center;
    gap: 18px;

    width: 100%;
    min-height: 64px;
    padding: 12px 24px;

    background: #ffffff;
    border-bottom: 1px solid rgba(37, 126, 120, 0.15);
    box-shadow: 0 2px 10px rgba(21, 70, 58, 0.08);

    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

/* Кнопка "назад" */
.header_view .return {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    color: var(--ac-primary);
    text-decoration: none;

    font-size: 26px;
    line-height: 1;
}

.header_view .return::before {
    content: "←";
}

.header_view .return .pkp_screen_reader {
    display: none;
}


/* Название статьи */
.header_view .title {
    flex: 1 1 auto;
    min-width: 0;

    color: var(--ac-primary-2);

    font-family: "Lora", Georgia, serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;

    text-decoration: none;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header_view .title:hover {
    color: var(--ac-primary);
}


/* Кнопка скачать */
.header_view .download {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 42px;
    padding: 0 18px;

    border-radius: 10px;

    background: var(--ac-primary);
    color: #ffffff;

    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    box-shadow: 0 3px 8px rgba(37, 126, 120, 0.20);

    transition:
            background-color 0.2s ease,
            box-shadow 0.2s ease,
            transform 0.2s ease;
}

.header_view .download::before {
    content: "↓";

    font-size: 19px;
    line-height: 1;
}

.header_view .download:hover {
    background: var(--ac-primary-2);
    color: #ffffff;

    box-shadow: 0 5px 14px rgba(21, 70, 58, 0.25);
    transform: translateY(-1px);
}

.header_view .download:active {
    transform: translateY(0);
}


/* =========================================================
   PDF container
   ========================================================= */

#pdfCanvasContainer.galley_view {
    width: 100%;
    height: calc(100vh - 64px);

    background: #e9eeec;

    overflow: hidden;
}

#pdfCanvasContainer.galley_view > iframe {
    display: block;

    width: 100%;
    height: 100%;

    min-height: 500px;

    border: 0;
}

@media (max-width: 700px) {

    .header_view {
        min-height: 58px;
        padding: 9px 12px;
        gap: 10px;
    }

    .header_view .return {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        border-radius: 8px;
    }

    .header_view .title {
        font-size: 14px;
        line-height: 1.3;
    }

    .header_view .download {
        width: 40px;
        height: 38px;
        min-height: 38px;
        padding: 0;

        border-radius: 8px;
    }

    .header_view .download .label {
        display: none;
    }

    .header_view .download::before {
        font-size: 20px;
    }

    #pdfCanvasContainer.galley_view {
        height: calc(100vh - 58px);
    }
}