/* ================================================================
   IJRDO · JOURNAL OF VETERINARY AND ANIMAL SCIENCE
   Complete OJS Stylesheet · "Field Folio" Theme
   ----------------------------------------------------------------
   Palette : Terracotta Sienna + Sage Herbal on bone-cream parchment
   Fonts   : Fraunces (revival serif display) + Source Sans 3 (body)
   Style   : Naturalist's field journal + veterinary compendium
   Screens : Fluid up to 1400px; breakpoints 1200 · 991 · 767 · 560
   UPDATES : Logo image support, non-sticky header, bigger journal name,
             sidebar on top/left, full responsive, 20px LEFT SPACE
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,800;1,9..144,400;1,9..144,500;1,9..144,600&family=Source+Sans+3:wght@400;500;600;700&display=swap');

/* =================================================================
   1 · DESIGN TOKENS
   ================================================================= */
:root {
    /* Primary — Warm terracotta sienna (earthy, pastoral, natural) */
    --vas-primary:          #a8543a;
    --vas-primary-hover:    #b8603f;
    --vas-primary-dark:     #7a3a25;
    --vas-primary-soft:     #f7e5d9;
    --vas-primary-tint:     #fdf5ef;

    /* Accent — Muted sage herbal green (clinical-botanical, apothecary) */
    --vas-accent:           #7b9a5c;
    --vas-accent-hover:     #8fac6e;
    --vas-accent-soft:      #e7ecdb;
    --vas-accent-dark:      #5d7843;

    /* Data indicators — status chips */
    --vas-live:             #7b9a5c;
    --vas-alert:            #d46a5a;
    --vas-live-soft:        #e7ecdb;
    --vas-alert-soft:       #fce4df;

    /* Paper — bone cream parchment (never dark) */
    --vas-bg:               #fbf6ec;
    --vas-surface:          #ffffff;
    --vas-surface-warm:     #fdf9ef;
    --vas-surface-2:        #f4eedd;
    --vas-surface-3:        #eae0c8;

    /* Ink — warm sepia-based text (avoids harsh black) */
    --vas-ink:              #2a201a;
    --vas-ink-body:         #4a3f36;
    --vas-ink-muted:        #786a5b;
    --vas-ink-light:        #a89b8a;

    /* Rules — borders */
    --vas-rule:             #e7dfca;
    --vas-rule-strong:      #c9bfa2;
    --vas-rule-hair:        #f0e9d5;

    /* Radii — soft, handbook-like */
    --vas-r-sm:             7px;
    --vas-r-md:             12px;
    --vas-r-lg:             18px;
    --vas-r-xl:             24px;
    --vas-r-full:           999px;

    /* Shadows — warm terracotta-tinted */
    --vas-shadow-xs:        0 1px 2px rgba(122, 58, 37, .06);
    --vas-shadow-sm:        0 2px 7px rgba(122, 58, 37, .08);
    --vas-shadow-md:        0 10px 24px -4px rgba(122, 58, 37, .12);
    --vas-shadow-lg:        0 22px 42px -12px rgba(122, 58, 37, .18);
    --vas-shadow-xl:        0 34px 68px -20px rgba(122, 58, 37, .24);

    /* Rings — focus halos */
    --vas-ring:             0 0 0 4px rgba(168, 84, 58, .16);
    --vas-ring-accent:      0 0 0 4px rgba(123, 154, 92, .22);

    /* Motion */
    --vas-ease:             cubic-bezier(.2, .8, .3, 1);
    --vas-ease-back:        cubic-bezier(.34, 1.56, .64, 1);
    --vas-duration:         260ms;

    /* Type */
    --vas-font-display:     'Fraunces', 'Playfair Display', Georgia, 'Times New Roman', serif;
    --vas-font-body:        'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --vas-font-mono:        'SF Mono', Menlo, Consolas, monospace;

    /* Optical size tuning for Fraunces */
    --vas-fraunces-display: "opsz" 144, "SOFT" 50, "WONK" 0;
    --vas-fraunces-text:    "opsz" 36,  "SOFT" 30, "WONK" 0;

    /* Layout */
    --vas-max:              1400px;
    --vas-gutter:           clamp(16px, 3vw, 36px);
}

/* =================================================================
   2 · BASE · TYPOGRAPHY
   ================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px; /* Reduced — header is no longer sticky */
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--vas-font-body);
    color: var(--vas-ink-body);
    background: var(--vas-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.68;
    position: relative;
    overflow-x: hidden;
    min-width: 320px;
}

/* Field-notebook dotted paper — soft dot grid, faded at edges */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at center, rgba(122, 58, 37, .09) 1px, transparent 1.2px);
    background-size: 22px 22px;
    background-position: 0 0;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse at top, black 35%, transparent 95%);
    -webkit-mask-image: radial-gradient(ellipse at top, black 35%, transparent 95%);
}

::selection { background: var(--vas-primary); color: var(--vas-bg); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--vas-surface-2); }
::-webkit-scrollbar-thumb {
    background: var(--vas-rule-strong);
    border-radius: var(--vas-r-full);
    border: 2px solid var(--vas-surface-2);
}
::-webkit-scrollbar-thumb:hover { background: var(--vas-primary); }

.pkp_structure_content h1,
.pkp_structure_content h2,
.pkp_structure_content h3,
.pkp_structure_content h4,
.pkp_structure_content h5,
.pkp_structure_content h6 {
    font-family: var(--vas-font-display);
    font-variation-settings: var(--vas-fraunces-display);
    color: var(--vas-ink);
    letter-spacing: -0.012em;
    line-height: 1.22;
    font-weight: 700;
}

.pkp_structure_content a {
    color: var(--vas-primary);
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color var(--vas-duration) var(--vas-ease),
                text-decoration-color var(--vas-duration) var(--vas-ease);
}

.pkp_structure_content a:hover,
.pkp_structure_content a:focus {
    color: var(--vas-accent-dark);
    text-decoration: underline;
    text-decoration-color: var(--vas-accent);
}

/* Image safety across all screens */
img { max-width: 100%; height: auto; }

/* =================================================================
   3 · HEADER SHELL — NON-STICKY VERSION
   ================================================================= */
#headerNavigationContainer {
    background: var(--vas-surface);
    border-bottom: 1px solid var(--vas-rule);
    box-shadow: var(--vas-shadow-xs);
    position: relative; /* Changed from sticky to relative */
    top: 0;
    z-index: 1030;
    font-family: var(--vas-font-body);
    color: var(--vas-ink);
}

/* Triple-rule top bar — handbook binding motif */
#headerNavigationContainer::before {
    content: '';
    display: block;
    height: 10px;
    border-top: 3px solid var(--vas-primary);
    border-bottom: 1px solid var(--vas-accent);
    background:
        linear-gradient(90deg,
            var(--vas-surface-warm) 0%,
            var(--vas-primary-tint) 50%,
            var(--vas-surface-warm) 100%);
    position: relative;
}

#headerNavigationContainer .container-fluid {
    max-width: var(--vas-max);
    margin-inline: auto;
    padding-inline: var(--vas-gutter);
}

/* =================================================================
   4 · TOP BAR (user nav) — Folio identifier line
   ================================================================= */
#headerNavigationContainer > .container-fluid:first-of-type {
    background: var(--vas-surface-warm);
    border-bottom: 1px solid var(--vas-rule);
    padding-block: 9px;
    position: relative;
}

/* Left-side journal identifier */
#headerNavigationContainer > .container-fluid:first-of-type::before {
    content: 'Folio · Case Studies · Peer-Reviewed Research';
    position: absolute;
    left: var(--vas-gutter);
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--vas-font-display);
    font-variation-settings: "opsz" 14, "SOFT" 30;
    font-style: italic;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--vas-ink-muted);
    letter-spacing: 0.015em;
    pointer-events: none;
    white-space: nowrap;
}

@media (max-width: 640px) {
    #headerNavigationContainer > .container-fluid:first-of-type::before {
        display: none;
    }
}

#navigationUser {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    float: none !important;
    flex-wrap: wrap;
}

/* Hide badges */
#navigationUser .badge { display: none !important; }

#navigationUser > li.dropdown > a {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    padding: 4px 14px 4px 4px !important;
    background: var(--vas-surface) !important;
    border: 1px solid var(--vas-rule);
    border-radius: var(--vas-r-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--vas-ink) !important;
    text-decoration: none;
    transition: all var(--vas-duration) var(--vas-ease);
    box-shadow: var(--vas-shadow-xs);
}

#navigationUser > li.dropdown > a::before {
    content: '';
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    background-color: var(--vas-primary);
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, .18), transparent 60%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fdf9ef' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/><circle cx='12' cy='7' r='4'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%, 58%;
    box-shadow: 0 2px 6px rgba(168, 84, 58, .32);
}

#navigationUser > li.dropdown > a:hover {
    border-color: var(--vas-accent);
    box-shadow: var(--vas-ring-accent);
    transform: translateY(-1px);
}

#navigationUser .caret {
    color: var(--vas-ink-muted);
    transition: transform var(--vas-duration) var(--vas-ease);
}

#navigationUser .dropdown.open > a .caret { transform: rotate(180deg); }

#navigationUser .dropdown-menu {
    border: 1px solid var(--vas-rule);
    border-top: 3px solid var(--vas-primary);
    border-radius: var(--vas-r-md);
    box-shadow: var(--vas-shadow-lg);
    padding: 6px;
    margin-top: 10px;
    min-width: 220px;
    background: var(--vas-surface);
    animation: vasFadeDown 220ms var(--vas-ease);
}

#navigationUser .dropdown-menu > li > a {
    display: flex;
    align-items: center;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--vas-ink);
    border-radius: var(--vas-r-sm);
    transition: all 160ms var(--vas-ease);
}

#navigationUser .dropdown-menu > li > a:hover,
#navigationUser .dropdown-menu > li > a:focus {
    background: var(--vas-primary-tint);
    color: var(--vas-primary);
}

/* =================================================================
   5 · BRAND / LOGO — Logo image + journal name (NO ICON)
   ================================================================= */
.navbar-header {
    padding-block: 18px;
    float: none !important;
    display: flex;
    align-items: center;
}

.site-name { margin: 0; padding: 0; line-height: 1; }

.site-name a.navbar-brand {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: auto !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    margin-left: 20px !important; /* 20px LEFT SPACE on logo */
    font-family: var(--vas-font-display) !important;
    font-variation-settings: "opsz" 72, "SOFT" 50, "WONK" 0;
    font-weight: 700 !important;
    letter-spacing: -0.015em;
    line-height: 1.15;
    color: var(--vas-primary) !important;
    background: transparent !important;
    transition: color var(--vas-duration) var(--vas-ease);
    text-decoration: none;
}

/* REMOVED: The paw-print icon (::before pseudo-element is removed) */
/* The logo image now comes from the actual HTML img tag */

/* Journal Name — BIGGER display text after logo */
.site-name a.navbar-brand::after {
    content: "IJRDO - JOURNAL OF VETERINARY AND ANIMAL SCIENCE";
    font-family: var(--vas-font-display);
    font-variation-settings: "opsz" 72, "SOFT" 50;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--vas-ink);
    line-height: 1.2;
    white-space: normal;
    display: inline-block;
    text-transform: none;
}

/* Hide any existing text inside the brand that might conflict */
.site-name a.navbar-brand span:not(.navbar-brand-logo) {
    display: none;
}

/* LOGO IMAGE — NO STRETCH, PROPER ASPECT RATIO */
.navbar-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 0; /* Space is on parent container */
}

.navbar-brand-logo img {
    width: auto;
    max-width: clamp(50px, 8vw, 80px);
    height: auto;
    max-height: 60px;
    display: block;
    object-fit: contain;
    border-radius: 12px;
    transition: all var(--vas-duration) var(--vas-ease-back);
    box-shadow: 0 4px 12px rgba(168, 84, 58, 0.2);
}

.site-name a.navbar-brand:hover .navbar-brand-logo img {
    transform: translateY(-3px) rotate(-3deg) scale(1.02);
    box-shadow: 0 8px 20px rgba(168, 84, 58, 0.3);
}

.site-name a.navbar-brand:hover::after {
    color: var(--vas-primary);
}

.site-name a.navbar-brand:hover {
    color: var(--vas-primary-hover) !important;
    text-decoration: none;
}

/* =================================================================
   6 · MAIN NAVIGATION — Herbal-underline accent
   ================================================================= */
#nav-menu.navbar-collapse {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

#main-navigation {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 0;
    float: none !important;
}

#main-navigation > li { position: relative; float: none !important; }

#main-navigation > li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background: var(--vas-rule-strong);
    opacity: .55;
    pointer-events: none;
}

#main-navigation > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 18px 18px;
    font-family: var(--vas-font-body);
    font-size: clamp(12px, 1.3vw, 13.5px);
    font-weight: 600;
    color: var(--vas-ink) !important;
    letter-spacing: 0.005em;
    background: transparent !important;
    border: 0;
    position: relative;
    transition: color var(--vas-duration) var(--vas-ease);
}

/* Top sage underline that slides in */
#main-navigation > li > a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    background: var(--vas-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--vas-duration) var(--vas-ease);
}

#main-navigation > li:hover > a::before,
#main-navigation > li.active > a::before,
#main-navigation > li.open > a::before {
    transform: scaleX(1);
}

#main-navigation > li > a:hover,
#main-navigation > li > a:focus,
#main-navigation > li.active > a,
#main-navigation > li.open > a {
    color: var(--vas-primary) !important;
    background: transparent !important;
}

#main-navigation > li > a .caret {
    margin-left: 4px;
    opacity: .7;
    transition: transform var(--vas-duration) var(--vas-ease);
}

#main-navigation > li.open > a .caret { transform: rotate(180deg); }

#main-navigation .dropdown-menu {
    border: 1px solid var(--vas-rule);
    border-top: 3px solid var(--vas-primary);
    border-radius: 0 0 var(--vas-r-md) var(--vas-r-md);
    box-shadow: var(--vas-shadow-lg);
    padding: 8px;
    margin-top: 0;
    background: var(--vas-surface);
    min-width: 240px;
    animation: vasFadeDown 220ms var(--vas-ease);
}

#main-navigation .dropdown-menu > li > a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--vas-ink);
    border-radius: var(--vas-r-sm);
    position: relative;
    transition: all 160ms var(--vas-ease);
}

#main-navigation .dropdown-menu > li > a::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    width: 3px;
    height: 0;
    background: var(--vas-accent);
    border-radius: 2px;
    transform: translateY(-50%);
    transition: height 180ms var(--vas-ease);
}

#main-navigation .dropdown-menu > li > a:hover,
#main-navigation .dropdown-menu > li > a:focus {
    background: var(--vas-primary-tint);
    color: var(--vas-primary);
    padding-left: 20px;
}

#main-navigation .dropdown-menu > li > a:hover::before,
#main-navigation .dropdown-menu > li > a:focus::before {
    height: 65%;
}

/* =================================================================
   7 · SEARCH
   ================================================================= */
.pull-md-right {
    margin-left: auto;
    float: none !important;
}

.navbar-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

.navbar-form .form-group { position: relative; margin: 0; }

.navbar-form .form-group::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8543a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.3-4.3'/></svg>");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    opacity: .75;
}

.navbar-form .form-control {
    width: clamp(160px, 18vw, 220px);
    height: 42px;
    padding: 0 14px 0 38px;
    background: var(--vas-surface-warm);
    border: 1px solid var(--vas-rule);
    border-radius: var(--vas-r-sm);
    font-family: var(--vas-font-body);
    font-size: 13px;
    color: var(--vas-ink);
    transition: all var(--vas-duration) var(--vas-ease);
    box-shadow: none;
}

.navbar-form .form-control::placeholder {
    color: var(--vas-ink-light);
    font-style: italic;
}

.navbar-form .form-control:hover {
    border-color: var(--vas-rule-strong);
    background: var(--vas-surface);
}

.navbar-form .form-control:focus {
    width: clamp(200px, 22vw, 290px);
    background: var(--vas-surface);
    border-color: var(--vas-primary);
    box-shadow: var(--vas-ring);
    outline: none;
}

.navbar-form .btn-default {
    height: 42px;
    padding: 0 clamp(18px, 2vw, 24px);
    background: var(--vas-primary);
    border: 1px solid var(--vas-primary);
    border-radius: var(--vas-r-sm);
    color: var(--vas-bg);
    font-family: var(--vas-font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--vas-duration) var(--vas-ease);
    box-shadow: 0 4px 10px rgba(168, 84, 58, .22);
    white-space: nowrap;
}

.navbar-form .btn-default:hover,
.navbar-form .btn-default:focus {
    background: var(--vas-primary-hover);
    border-color: var(--vas-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(168, 84, 58, .32);
    outline: none;
}

/* =================================================================
   8 · MOBILE TOGGLE
   ================================================================= */
.navbar-toggle {
    margin: 12px 0;
    padding: 10px 12px;
    background: var(--vas-surface-warm);
    border: 1px solid var(--vas-rule);
    border-radius: var(--vas-r-sm);
    transition: all var(--vas-duration) var(--vas-ease);
}

.navbar-toggle:hover,
.navbar-toggle:focus {
    background: var(--vas-primary-tint);
    border-color: var(--vas-primary);
    outline: none;
}

.navbar-toggle .icon-bar {
    background: var(--vas-primary);
    height: 2px;
    border-radius: 1px;
}

/* =================================================================
   9 · PAGE LAYOUT — SIDEBAR ON TOP/LEFT
   ================================================================= */
.pkp_structure_content.container {
    max-width: var(--vas-max);
    padding-inline: var(--vas-gutter);
    padding-block: clamp(28px, 4vw, 52px);
    position: relative;
    z-index: 1;
}

.pkp_structure_content .row {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(24px, 4vw, 36px);
    margin: 0;
}

.pkp_structure_main {
    order: 2; /* Main content appears after sidebar */
    flex: 1;
    min-width: 0;
    padding: 0 !important;
}

.pkp_structure_sidebar {
    order: 1; /* Sidebar appears first (left/top) */
    flex: 0 0 320px;
    width: 320px !important;
    padding: 0 !important;
    position: sticky;
    top: 20px; /* Reduced — header is no longer sticky */
    align-self: flex-start;
}

#main-content.page_index_journal {
    display: flex;
    flex-direction: column;
}

.page_index_journal .additional_content { order: -1; }
.page_index_journal .cmp_announcements { order: 0; }
.page_index_journal .current_issue { order: 1; }

/* =================================================================
   10 · HOMEPAGE IMAGE
   ================================================================= */
.homepage-image {
    margin: 0 0 40px;
    border-radius: var(--vas-r-md);
    overflow: hidden;
    box-shadow: var(--vas-shadow-md);
    border: 1px solid var(--vas-rule);
    position: relative;
    transition: transform var(--vas-duration) var(--vas-ease),
                box-shadow var(--vas-duration) var(--vas-ease);
}

.homepage-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 65%, rgba(168, 84, 58, .10));
    pointer-events: none;
}

.homepage-image:hover {
    transform: translateY(-3px);
    box-shadow: var(--vas-shadow-lg);
}

.homepage-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* =================================================================
   11 · JOURNAL DESCRIPTION — Editorial plate with folio label
   ================================================================= */
.journal-description {
    position: relative;
    padding: 36px 38px 30px;
    margin: 0 0 44px;
    background: var(--vas-surface);
    border: 1px solid var(--vas-rule);
    border-radius: var(--vas-r-md);
    box-shadow: var(--vas-shadow-sm);
    overflow: hidden;
}

/* Double-rule + gradient strip — handbook chapter opener */
.journal-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    border-top: 3px solid var(--vas-primary);
    border-bottom: 1px solid var(--vas-accent);
    background:
        linear-gradient(90deg,
            var(--vas-surface-warm) 0%,
            var(--vas-primary-tint) 50%,
            var(--vas-surface-warm) 100%);
}

/* "Folio № 001" editorial tag */
.journal-description::after {
    content: 'Folio № 001 · Editorial';
    position: absolute;
    top: 20px;
    right: 22px;
    font-family: var(--vas-font-display);
    font-variation-settings: "opsz" 14, "SOFT" 30;
    font-style: italic;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--vas-ink-muted);
    letter-spacing: 0.03em;
    pointer-events: none;
}

@media (max-width: 768px) {
    .journal-description::after {
        display: none;
    }
}

.journal-description > * { position: relative; z-index: 1; padding-top: 4px; }

.journal-description p {
    font-family: var(--vas-font-body) !important;
    font-size: clamp(14px, 1.5vw, 15.5px) !important;
    line-height: 1.82 !important;
    color: var(--vas-ink-body) !important;
    margin: 12px 0 !important;
}

/* =================================================================
   12 · ANNOUNCEMENTS
   ================================================================= */
.cmp_announcements { margin-bottom: 48px; }

.cmp_announcements .page-header {
    border: none;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--vas-ink);
    position: relative;
}

.cmp_announcements .page-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 64px;
    height: 2px;
    background: var(--vas-accent);
}

.cmp_announcements .page-header h2 {
    font-family: var(--vas-font-display);
    font-variation-settings: var(--vas-fraunces-display);
    font-size: clamp(1.4rem, 2.5vw, 2.05rem);
    font-weight: 700;
    color: var(--vas-ink);
    margin: 0;
    letter-spacing: -0.012em;
}

.announcement-summary {
    background: var(--vas-surface);
    border: 1px solid var(--vas-rule);
    border-radius: var(--vas-r-md);
    padding: clamp(18px, 2vw, 22px) clamp(20px, 2.5vw, 26px);
    transition: all var(--vas-duration) var(--vas-ease);
    position: relative;
    overflow: hidden;
}

/* =================================================================
   13 · CURRENT ISSUE — Case report plate
   ================================================================= */
.current_issue { margin-bottom: 52px; }

.current_issue .page-header {
    border: none;
    margin-bottom: 26px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--vas-ink);
    position: relative;
}

.current_issue .page-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 64px;
    height: 2px;
    background: var(--vas-accent);
}

.current_issue .page-header h2 {
    font-family: var(--vas-font-display);
    font-variation-settings: var(--vas-fraunces-display);
    font-size: clamp(1.4rem, 2.5vw, 2.05rem);
    font-weight: 700;
    color: var(--vas-ink);
    margin: 0;
    letter-spacing: -0.012em;
    position: relative;
}

.current_issue .page-header h2::before {
    content: 'In this volume';
    display: block;
    font-family: var(--vas-font-body);
    font-size: 11px;
    font-weight: 700;
    color: var(--vas-accent-dark);
    letter-spacing: 0.2em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.current_issue_title.lead {
    font-family: var(--vas-font-display);
    font-variation-settings: "opsz" 36;
    font-size: clamp(1rem, 1.75vw, 1.4rem);
    font-weight: 600;
    color: var(--vas-ink);
    line-height: 1.42;
    margin: 0 0 20px;
    padding: clamp(16px, 2vw, 22px) clamp(18px, 2.5vw, 26px);
    background: var(--vas-surface-warm);
    border: 1px solid var(--vas-rule);
    border-left: 4px solid var(--vas-primary);
    border-radius: 0 var(--vas-r-md) var(--vas-r-md) 0;
    box-shadow: var(--vas-shadow-xs);
    position: relative;
}

.issue-details {
    padding: 0 !important;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.issue-details .published {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 12px;
    background: var(--vas-surface);
    border: 1px solid var(--vas-rule);
    border-radius: var(--vas-r-sm);
    font-family: var(--vas-font-body);
    font-size: 13px;
    color: var(--vas-ink-body);
    box-shadow: var(--vas-shadow-xs);
}

/* View All Issues — ink stamp button */
.current_issue .btn.read-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding: 12px 28px;
    background: var(--vas-ink) !important;
    border: 1px solid var(--vas-ink) !important;
    border-radius: var(--vas-r-sm);
    color: var(--vas-bg) !important;
    font-family: var(--vas-font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    transition: all var(--vas-duration) var(--vas-ease);
    position: relative;
}

.current_issue .btn.read-more::after {
    content: '→';
    font-size: 15px;
    transition: transform var(--vas-duration) var(--vas-ease);
}

.current_issue .btn.read-more .glyphicon { display: none; }

.current_issue .btn.read-more:hover {
    background: var(--vas-primary) !important;
    border-color: var(--vas-primary) !important;
    color: var(--vas-bg) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(168, 84, 58, .30);
}

.current_issue .btn.read-more:hover::after { transform: translateX(5px); }

/* =================================================================
   14 · ARTICLE CARDS — Case-study ledger entries
   ================================================================= */
.sections .section { margin-top: 40px; }

.sections .page-header {
    margin: 0 0 22px;
    padding: 0 0 12px;
    border: 0;
    border-bottom: 1px solid var(--vas-rule-strong);
}

.sections .page-header h2 small {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--vas-font-display);
    font-variation-settings: "opsz" 36;
    font-style: italic;
    font-size: clamp(0.95rem, 1.2vw, 1.12rem);
    font-weight: 600;
    color: var(--vas-primary);
    letter-spacing: 0;
    text-transform: none;
}

.sections .page-header h2 small::before {
    content: '❦';
    font-style: normal;
    font-size: 1.4rem;
    color: var(--vas-accent);
    line-height: 1;
}

.media-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
    margin: 0;
    list-style: none;
    counter-reset: vas-article;
}

.article-summary.media {
    position: relative;
    display: flex;
    gap: clamp(14px, 2vw, 24px);
    padding: clamp(18px, 2.5vw, 24px) clamp(20px, 2.5vw, 28px);
    margin: 0;
    background: var(--vas-surface);
    border: 1px solid var(--vas-rule);
    border-radius: var(--vas-r-md);
    box-shadow: var(--vas-shadow-xs);
    transition: all var(--vas-duration) var(--vas-ease);
    overflow: hidden;
    counter-increment: vas-article;
}

/* Specimen number — top-right, like a field-journal reference */
.article-summary.media::before {
    content: 'Specimen № ' counter(vas-article, decimal-leading-zero);
    position: absolute;
    top: 16px;
    right: 22px;
    font-family: var(--vas-font-display);
    font-variation-settings: "opsz" 14, "SOFT" 30;
    font-style: italic;
    font-size: clamp(0.75rem, 1.2vw, 0.92rem);
    font-weight: 500;
    color: var(--vas-ink-muted);
    letter-spacing: 0.02em;
    pointer-events: none;
    transition: color var(--vas-duration) var(--vas-ease);
}

@media (max-width: 768px) {
    .article-summary.media::before {
        position: static;
        align-self: flex-start;
        margin-bottom: 8px;
        font-size: 0.85rem;
    }
    
    .article-summary .media-body {
        padding-right: 0;
    }
}

/* Left-edge terracotta-to-sage stripe */
.article-summary.media::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--vas-primary), var(--vas-accent));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--vas-duration) var(--vas-ease);
}

.article-summary.media:hover {
    border-color: var(--vas-rule-strong);
    box-shadow: var(--vas-shadow-md);
    transform: translateY(-2px);
}

.article-summary.media:hover::before { color: var(--vas-accent-dark); }
.article-summary.media:hover::after { transform: scaleY(1); }

.article-summary .media-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.article-summary .media-heading {
    margin: 0;
    font-family: var(--vas-font-display);
    font-variation-settings: "opsz" 48, "SOFT" 40;
    font-size: clamp(0.95rem, 1.2vw, 1.18rem);
    font-weight: 600;
    line-height: 1.38;
    letter-spacing: -0.01em;
}

.article-summary .media-heading a {
    color: var(--vas-ink) !important;
    text-decoration: none;
    display: inline-block;
    transition: color var(--vas-duration) var(--vas-ease);
}

.article-summary .media-heading a:hover { color: var(--vas-primary) !important; }

.article-summary .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    align-items: center;
    margin: 0;
    padding: 8px 0;
    border-top: 1px solid var(--vas-rule-hair);
    border-bottom: 1px solid var(--vas-rule-hair);
}

.article-summary .authors {
    font-family: var(--vas-font-display);
    font-style: italic;
    font-size: clamp(12px, 1.2vw, 14px);
    font-weight: 500;
    color: var(--vas-ink-body);
}

.article-summary .authors::before {
    content: 'Authors: ';
    font-style: normal;
    font-family: var(--vas-font-body);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--vas-accent-dark);
    font-weight: 700;
    margin-right: 4px;
}

.article-summary .pages {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 3px 12px;
    background: var(--vas-accent-soft);
    border-radius: var(--vas-r-sm);
    font-family: var(--vas-font-body);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--vas-accent-dark);
}

.article-summary .pages::before {
    content: 'pp.';
    font-weight: 700;
    color: var(--vas-primary);
}

.article-summary .btn-group {
    margin-top: 4px;
    display: inline-flex;
    align-self: flex-start;
}

/* PDF button — primary terracotta */
.article-summary .galley-link.btn.pdf {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    background: var(--vas-primary) !important;
    border: 1px solid var(--vas-primary) !important;
    border-radius: var(--vas-r-sm);
    color: var(--vas-bg) !important;
    font-family: var(--vas-font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(168, 84, 58, .22);
    transition: all var(--vas-duration) var(--vas-ease);
}

.article-summary .galley-link.btn.pdf::before {
    content: '';
    width: 13px;
    height: 13px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fdf9ef' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/><polyline points='7 10 12 15 17 10'/><line x1='12' y1='15' x2='12' y2='3'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
}

.article-summary .galley-link.btn.pdf:hover,
.article-summary .galley-link.btn.pdf:focus {
    background: var(--vas-primary-hover) !important;
    border-color: var(--vas-primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(168, 84, 58, .32);
    color: var(--vas-bg) !important;
}

/* =================================================================
   15 · ADDITIONAL CONTENT — Mission plate
   ================================================================= */
.additional_content { margin: 0 0 52px; }

.additional_content .western,
.additional_content > p:only-child,
.additional_content > section {
    font-family: var(--vas-font-display);
    font-variation-settings: "opsz" 24, "SOFT" 50;
    font-style: italic;
    font-size: clamp(14px, 1.8vw, 17px);
    font-weight: 500;
    line-height: 1.72;
    color: var(--vas-ink);
    padding: clamp(32px, 5vw, 46px) clamp(28px, 5vw, 50px);
    background: var(--vas-surface-warm);
    border: 1px solid var(--vas-rule);
    border-radius: var(--vas-r-lg);
    margin: 0;
    box-shadow: var(--vas-shadow-sm);
    position: relative;
    overflow: hidden;
}

/* Double-rule top — handbook binding */
.additional_content .western::before,
.additional_content > p:only-child::before,
.additional_content > section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    border-top: 3px solid var(--vas-primary);
    border-bottom: 1px solid var(--vas-accent);
    background: var(--vas-surface);
}

/* Decorative sage corner — like an herbarium stain - hidden on mobile */
@media (min-width: 769px) {
    .additional_content .western::after,
    .additional_content > p:only-child::after,
    .additional_content > section::after {
        content: '';
        position: absolute;
        bottom: -70px;
        right: -70px;
        width: 240px;
        height: 240px;
        background: radial-gradient(circle, rgba(123, 154, 92, .14), transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }
}

/* =================================================================
   16 · SIDEBAR — ON TOP/LEFT (order: 1)
   ================================================================= */
#sidebar.pkp_structure_sidebar {
    order: 1;
    margin-right: auto;
    margin-left: 0;
    align-self: flex-start;
    position: sticky;
    top: 20px;
}

#sidebar .pkp_block {
    padding: clamp(18px, 2.5vw, 22px);
    margin: 0 0 18px;
    background: var(--vas-surface);
    border: 1px solid var(--vas-rule);
    border-radius: var(--vas-r-md);
    box-shadow: var(--vas-shadow-xs);
    width: 100% !important;
    float: none !important;
    transition: all var(--vas-duration) var(--vas-ease);
    position: relative;
    overflow: hidden;
}

#sidebar .pkp_block:hover {
    box-shadow: var(--vas-shadow-md);
    border-color: var(--vas-rule-strong);
    transform: translateY(-2px);
}

#sidebar .pkp_block > .title,
#sidebar .pkp_block h2.title {
    font-family: var(--vas-font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--vas-accent-dark);
    margin: 0 0 14px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--vas-rule);
    position: relative;
}

#sidebar .pkp_block > .title::after,
#sidebar .pkp_block h2.title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 40px;
    height: 1px;
    background: var(--vas-primary);
}

/* Submission block — terracotta call-to-action */
#sidebar .block_make_submission {
    background: var(--vas-primary);
    border-color: var(--vas-primary);
    padding: 26px 22px;
    position: relative;
    overflow: hidden;
}

#sidebar .block_make_submission::before {
    content: 'Contribute your research';
    position: absolute;
    top: 16px;
    left: 22px;
    right: 22px;
    font-family: var(--vas-font-display);
    font-variation-settings: "opsz" 24;
    font-style: italic;
    font-size: 14px;
    color: var(--vas-accent-soft);
    font-weight: 500;
}

#sidebar .block_make_submission .btn.btn-primary,
#sidebar .block_make_submission .block_make_submission_link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 28px;
    padding: 14px 22px;
    background: var(--vas-accent) !important;
    border: 1px solid var(--vas-accent-dark) !important;
    border-radius: var(--vas-r-sm);
    color: var(--vas-bg) !important;
    font-family: var(--vas-font-body);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(123, 154, 92, .32);
    transition: all var(--vas-duration) var(--vas-ease);
    position: relative;
    z-index: 1;
}

#sidebar .block_make_submission .btn.btn-primary::after,
#sidebar .block_make_submission .block_make_submission_link::after {
    content: '→';
    font-size: 16px;
    transition: transform var(--vas-duration) var(--vas-ease);
}

#sidebar .block_make_submission .btn.btn-primary:hover,
#sidebar .block_make_submission .block_make_submission_link:hover {
    background: var(--vas-accent-hover) !important;
    color: var(--vas-bg) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(123, 154, 92, .44);
}

#sidebar .block_make_submission .btn.btn-primary:hover::after,
#sidebar .block_make_submission .block_make_submission_link:hover::after {
    transform: translateX(5px);
}

/* Information Links */
#sidebar .block_information ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

#sidebar .block_information li { margin: 0; }

#sidebar .block_information li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    font-family: var(--vas-font-body);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--vas-ink-body) !important;
    border-radius: var(--vas-r-sm);
    text-decoration: none;
    transition: all 180ms var(--vas-ease);
    position: relative;
}

#sidebar .block_information li a::before {
    content: '';
    width: 14px;
    height: 1px;
    background: var(--vas-rule-strong);
    flex-shrink: 0;
    transition: all 180ms var(--vas-ease);
}

#sidebar .block_information li a:hover {
    background: var(--vas-primary-tint);
    color: var(--vas-primary) !important;
    padding-left: 16px;
}

#sidebar .block_information li a:hover::before {
    width: 22px;
    height: 2px;
    background: var(--vas-accent);
}

/* Hide "Developed By" */
.block_developed_by { display: none !important; }

/* =================================================================
   17 · FOOTER — Imprint masthead
   ================================================================= */
footer.footer[role="contentinfo"] {
    margin-top: clamp(40px, 8vw, 84px);
    padding: 0;
    background: transparent;
    border: 0;
}

footer.footer > .container {
    max-width: var(--vas-max);
    padding-inline: var(--vas-gutter);
}

footer.footer > .container > .row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0;
    margin: 0;
}

footer.footer > .container > .row > .col-md-2 { display: none !important; }

footer.footer > .container > .row > .col-md-10 {
    flex: 1 1 100%;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100%;
}

footer.footer .col-md-10 {
    background: var(--vas-surface-warm) !important;
    color: var(--vas-ink-body) !important;
    font-family: var(--vas-font-body) !important;
    margin-top: 0 !important;
    border: 1px solid var(--vas-rule);
    border-radius: var(--vas-r-md);
    overflow: hidden;
    position: relative;
    padding: clamp(40px, 5vw, 52px) 0 clamp(24px, 3vw, 36px) !important;
}

/* Double-rule top */
footer.footer .col-md-10::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    border-top: 3px solid var(--vas-primary);
    border-bottom: 1px solid var(--vas-accent);
    background:
        linear-gradient(90deg,
            var(--vas-surface-warm) 0%,
            var(--vas-primary-tint) 50%,
            var(--vas-surface-warm) 100%);
}

/* Imprint label — masthead tag */
footer.footer .col-md-10::after {
    content: 'Imprint · Publisher · Editorial Office';
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--vas-font-display);
    font-variation-settings: "opsz" 14, "SOFT" 30;
    font-style: italic;
    font-size: clamp(11px, 1.5vw, 13px);
    font-weight: 500;
    color: var(--vas-accent-dark);
    letter-spacing: 0.035em;
    white-space: nowrap;
    background: var(--vas-surface-warm);
    padding: 0 16px;
}

@media (max-width: 768px) {
    footer.footer .col-md-10::after {
        font-size: 10px;
        white-space: normal;
        text-align: center;
        width: 80%;
        top: 18px;
    }
    
    footer.footer .col-md-10 {
        padding-top: 50px !important;
    }
}

footer.footer .col-md-10 p {
    font-size: clamp(12px, 1.5vw, 13.5px) !important;
    line-height: 1.78 !important;
    color: var(--vas-ink-body) !important;
    margin: 6px 0;
    padding: 0 clamp(16px, 3vw, 28px);
    text-align: center;
    position: relative;
    z-index: 1;
}

footer.footer .col-md-10 p:first-of-type {
    padding-top: 20px;
    font-family: var(--vas-font-display);
    font-variation-settings: "opsz" 36;
    font-weight: 600;
    color: var(--vas-primary) !important;
    font-size: clamp(14px, 1.8vw, 15.5px) !important;
}

footer.footer .col-md-10 p strong {
    color: var(--vas-primary);
    font-weight: 700;
}

footer.footer .col-md-10 a {
    color: var(--vas-primary) !important;
    text-decoration: none !important;
    border-bottom: 1px solid var(--vas-rule-strong);
    padding-bottom: 1px;
    transition: all var(--vas-duration) var(--vas-ease);
    font-weight: 500;
}

footer.footer .col-md-10 a:hover {
    color: var(--vas-accent-dark) !important;
    border-bottom-color: var(--vas-accent);
}

/* =================================================================
   18 · RESPONSIVE — Enhanced breakpoints
   ================================================================= */

/* --- Large desktop · 1200px --- */
@media (max-width: 1200px) {
    :root { --vas-gutter: clamp(16px, 2.6vw, 28px); }

    .pkp_structure_content .row { gap: 28px; }
    .pkp_structure_sidebar { flex: 0 0 300px; width: 300px !important; }
}

/* --- Tablet landscape · 991px --- */
@media (max-width: 991px) {
    .site-name a.navbar-brand {
        margin-left: 0 !important; /* Remove left margin on tablet */
        justify-content: center;
    }
    
    #main-navigation > li > a {
        padding: 14px 12px;
        font-size: 13px;
    }

    #main-navigation > li > a::before {
        left: 12px;
        right: 12px;
    }

    .navbar-form .form-control { width: 160px; }
    .navbar-form .form-control:focus { width: 200px; }

    .pkp_structure_sidebar {
        flex: 1 1 100%;
        width: 100% !important;
        position: static !important;
        order: 1 !important;
    }
    
    .pkp_structure_main {
        order: 2 !important;
    }
    
    .pkp_structure_content .row {
        flex-direction: column;
    }

    #sidebar.pkp_structure_sidebar { position: static; }

    .additional_content .western,
    .additional_content > p:only-child,
    .additional_content > section {
        padding: 38px 40px;
        font-size: 16px;
    }
}

/* --- Tablet portrait · 767px --- */
@media (max-width: 767px) {
    #headerNavigationContainer .navbar.navbar-default,
    #headerNavigationContainer > .container-fluid:not(:first-of-type) {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    
    .navbar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    #nav-menu.navbar-collapse {
        display: none !important;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 0 22px !important;
        border-top: 1px solid var(--vas-rule) !important;
        margin-top: 10px;
        gap: 10px;
        width: 100%;
    }
    
    #nav-menu.navbar-collapse.in {
        display: flex !important;
    }
    
    #nav-menu.navbar-collapse.collapsing {
        display: block !important;
    }

    #main-navigation {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 2px;
    }

    #main-navigation > li::after { display: none; }

    #main-navigation > li > a {
        padding: 13px 16px;
        border-radius: var(--vas-r-sm);
        justify-content: space-between;
    }

    #main-navigation > li > a::before { display: none; }

    #main-navigation > li > a:hover,
    #main-navigation > li.active > a,
    #main-navigation > li.open > a {
        background: var(--vas-surface-2) !important;
    }

    #main-navigation .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-top: 4px;
        box-shadow: none;
        border: 0;
        border-left: 3px solid var(--vas-primary);
        border-radius: 0;
        background: var(--vas-surface-warm);
        padding: 4px;
    }

    .pull-md-right { width: 100%; margin-top: 4px; }
    .navbar-form { width: 100%; }
    .navbar-form .form-group { flex: 1; }
    .navbar-form .form-control,
    .navbar-form .form-control:focus { width: 100%; }

    .site-name a.navbar-brand {
        gap: 10px;
        flex-wrap: wrap;
        margin-left: 0 !important;
        justify-content: center;
    }
    
    .site-name a.navbar-brand::after {
        width: 100%;
        margin-left: 0;
        font-size: clamp(0.75rem, 3vw, 0.95rem);
        text-align: center;
        line-height: 1.3;
    }
    
    .navbar-brand-logo img {
        max-width: 50px;
        max-height: 50px;
    }

    #navigationUser > li.dropdown > a {
        padding: 4px 12px 4px 4px !important;
    }

    .pkp_structure_content.container { padding-block: 26px; }
    .pkp_structure_content .row { gap: 24px; }

    .journal-description {
        padding: 30px 26px 24px;
        margin-bottom: 32px;
    }

    .journal-description p { font-size: 14.5px !important; }

    .current_issue_title.lead {
        padding: 18px 22px;
        font-size: 1.08rem;
    }
    
    .current_issue .btn.read-more {
        width: 100%;
        justify-content: center;
    }

    .article-summary.media {
        padding: 20px 22px;
        flex-direction: column;
        gap: 14px;
    }

    .article-summary .media-body {
        gap: 12px;
    }

    .article-summary .media-heading { font-size: 1rem; }
    
    .article-summary .galley-link.btn.pdf {
        width: 100%;
        justify-content: center;
    }

    .additional_content .western,
    .additional_content > p:only-child,
    .additional_content > section {
        padding: 34px 28px;
        font-size: 15px;
    }

    footer.footer .col-md-10 p {
        font-size: 12px;
        padding: 0 20px;
    }
}

/* --- Small mobile · 560px --- */
@media (max-width: 560px) {
    :root { --vas-gutter: 14px; }

    .navbar-header { padding-block: 14px; }

    .navbar-brand-logo img {
        max-width: 42px;
        max-height: 42px;
    }
    
    .site-name a.navbar-brand::after {
        font-size: 0.7rem;
    }

    #navigationUser { gap: 6px; }

    .pkp_structure_content.container { padding-block: 20px; }

    .journal-description {
        padding: 28px 20px 22px;
        border-radius: var(--vas-r-sm);
    }

    .journal-description::after {
        display: none;
    }

    .current_issue_title.lead {
        padding: 16px 18px;
        font-size: 1rem;
    }

    .issue-details .published {
        padding: 6px 14px 6px 10px;
        font-size: 12px;
    }

    .article-summary.media {
        padding: 18px 16px;
        border-radius: var(--vas-r-sm);
    }

    .article-summary .media-heading { font-size: 0.95rem; }

    .article-summary .meta {
        gap: 6px 12px;
        font-size: 12px;
    }

    .article-summary .authors { font-size: 13px; }

    .article-summary .galley-link.btn.pdf {
        padding: 8px 16px;
        font-size: 10px;
    }

    .additional_content .western,
    .additional_content > p:only-child,
    .additional_content > section {
        padding: 28px 22px;
        font-size: 14px;
        border-radius: var(--vas-r-sm);
    }

    #sidebar .pkp_block {
        padding: 20px;
        border-radius: var(--vas-r-sm);
    }

    #sidebar .block_make_submission {
        padding: 24px 20px;
    }

    footer.footer[role="contentinfo"] { margin-top: 60px; }

    footer.footer .col-md-10 {
        padding: 46px 0 28px !important;
        border-radius: var(--vas-r-sm);
    }

    footer.footer .col-md-10::after {
        font-size: 10px;
        top: 16px;
    }

    footer.footer .col-md-10 p {
        font-size: 11px;
        padding: 0 16px;
        line-height: 1.7;
    }

    footer.footer .col-md-10 p:first-of-type {
        font-size: 13px !important;
        padding-top: 20px;
    }
}

/* --- Very small mobile · 380px --- */
@media (max-width: 380px) {
    .navbar-brand-logo img {
        max-width: 36px;
        max-height: 36px;
    }
    
    .site-name a.navbar-brand::after {
        font-size: 0.65rem;
    }
    
    .navbar-brand-logo img {
        max-width: 36px;
        max-height: 36px;
    }

    #navigationUser > li.dropdown > a > span:not(.caret) {
        display: none;
    }

    .article-summary.media { padding: 16px 14px; }

    .article-summary .media-heading { font-size: 0.9rem; }
}

/* =================================================================
   19 · ANIMATIONS
   ================================================================= */
@keyframes vasFadeDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes vasFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes vasPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.55; }
}

.pkp_structure_main > *,
.pkp_structure_sidebar > * {
    animation: vasFadeIn 0.48s var(--vas-ease) forwards;
}

/* =================================================================
   20 · ACCESSIBILITY
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

#headerNavigationContainer a:focus-visible,
#headerNavigationContainer button:focus-visible,
#headerNavigationContainer input:focus-visible,
.pkp_structure_content a:focus-visible,
footer.footer a:focus-visible,
#sidebar a:focus-visible {
    outline: 2px solid var(--vas-accent);
    outline-offset: 3px;
    border-radius: var(--vas-r-sm);
}

/* =================================================================
   21 · PRINT
   ================================================================= */
@media print {
    body::before,
    #headerNavigationContainer,
    #sidebar,
    footer.footer,
    .navbar-toggle,
    .pull-md-right,
    .homepage-image {
        display: none !important;
    }

    .pkp_structure_main {
        width: 100% !important;
        flex: 1 1 100% !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .article-summary.media {
        break-inside: avoid;
        page-break-inside: avoid;
        border: 1px solid #999;
        box-shadow: none;
    }
}