/* latin-ext */
@font-face {
  font-family: 'Libre Baskerville';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/font_1_latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Libre Baskerville';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/font_2_latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/font_3_latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/font_4_latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url(../fonts/font_5_latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url(../fonts/font_6_latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(../fonts/font_7_latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(../fonts/font_8_latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ═══════════════════════════════════════════════════════════════════════════
   British Health News — Refined Editorial Stylesheet
   Aesthetic: Clean, authoritative British press with warm accents
   ═══════════════════════════════════════════════════════════════════════════ */
/* ─────────────────────────────────────────────────────────────────────────────
   CSS Custom Properties — Light Theme (Default)
   ───────────────────────────────────────────────────────────────────────────── */
:root {
    /* Typography — BBC/Guardian British style */
    --font-display: 'Guardian Egyptian', Georgia, 'Times New Roman', serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    /* Core Colors — BBC/Guardian inspired: crisp, authoritative */
    --color-ink: #121212;
    --color-ink-muted: #505050;
    --color-ink-light: #767676;
    --color-paper: #ffffff;
    --color-paper-warm: #f6f6f6;
    --color-paper-cool: #f1f1f1;
    /* Accent — BBC Red */
    --color-accent: #bb1919;
    --color-accent-hover: #9a1414;
    --color-accent-light: #fef2f2;
    /* Secondary — Guardian Yellow highlight */
    --color-highlight: #ffe500;
    --color-highlight-light: #fffbe6;
    /* Semantic */
    --color-warning: #b8860b;
    --color-warning-bg: #fef9e7;
    --color-error: #c0392b;
    --color-success: #27ae60;
    /* Borders & Shadows */
    --color-border: #e8e6e1;
    --color-border-strong: #d1cfc9;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.1);
    /* Layout */
    --header-height: 64px;
    --max-width: 1020px;
    --content-width: 1020px;
    --gap: 48px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    /* Animation */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Dark Theme
   ───────────────────────────────────────────────────────────────────────────── */
html[data-theme="dark"] {
    --color-ink: #e8e8e8;
    --color-ink-muted: #a0a0a0;
    --color-ink-light: #707070;
    --color-paper: #1a1a1a;
    --color-paper-warm: #222222;
    --color-paper-cool: #252525;
    --color-accent: #ff4444;
    --color-accent-hover: #ff6666;
    --color-accent-light: rgba(255, 68, 68, 0.15);
    --color-highlight: #ffe500;
    --color-highlight-light: rgba(255, 229, 0, 0.15);
    --color-warning: #ffc107;
    --color-warning-bg: rgba(255, 193, 7, 0.15);
    --color-border: #333333;
    --color-border-strong: #444444;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Reset & Base
   ───────────────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-ink);
    background-color: var(--color-paper);
    min-height: 100vh;
    transition: background-color var(--duration-normal) var(--ease-out),
        color var(--duration-normal) var(--ease-out);
    min-width: 360px;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
    color: var(--color-accent-hover);
}

ul,
ol {
    list-style: none;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background-color: var(--color-accent-light);
    color: var(--color-ink);
}

/* ═══════════════════════════════════════════════════════════════════════════
   UK-SPECIFIC LAYOUT - BBC/Guardian Style
   ═══════════════════════════════════════════════════════════════════════════ */
/* BBC-style Top Utility Bar - always dark */
.uk-top-bar {
    background: #1a1a1a;
    color: white;
    font-size: 0.75rem;
    font-family: var(--font-ui);
}

.uk-top-bar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 8px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.uk-top-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.uk-date-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

.uk-date-badge svg {
    opacity: 0.7;
}

.uk-top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.uk-top-bar-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

.uk-top-bar-link:hover {
    color: white;
    text-decoration: underline;
}

.uk-theme-toggle {
    width: 52px;
    height: 28px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    position: relative;
    cursor: pointer;
    padding: 0;
}

.uk-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.35);
}

.uk-theme-toggle .theme-toggle-thumb {
    position: absolute;
    width: 22px;
    height: 22px;
    top: 50%;
    left: 3px;
    transform: translateY(-50%);
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: left 0.2s ease, background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

html[data-theme="dark"] .uk-theme-toggle .theme-toggle-thumb {
    left: calc(100% - 25px);
    background: #444;
}

.uk-theme-toggle .theme-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.uk-theme-toggle .theme-toggle-sun {
    color: #f59e0b;
}

.uk-theme-toggle .theme-toggle-moon {
    color: #a5b4fc;
    display: none;
}

html[data-theme="dark"] .uk-theme-toggle .theme-toggle-sun {
    display: none;
}

html[data-theme="dark"] .uk-theme-toggle .theme-toggle-moon {
    display: flex;
}

/* UK Header - BBC/Guardian Masthead style */
.uk-header {
    border-bottom: none;
    position: relative;
}

.uk-main-header {
    background: var(--color-paper);
    border-bottom: 1px solid var(--color-border);
    transition: background-color var(--duration-normal) var(--ease-out);
}

.uk-header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.uk-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--color-ink);
    flex-shrink: 0;
}

.uk-logo-icon {
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.uk-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.uk-logo-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-ink);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.uk-logo-tagline {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--color-ink-muted);
}

.uk-header-center {
    flex: 1;
    max-width: 400px;
    margin: 0 auto;
}

.uk-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.uk-search-input {
    width: 100%;
    padding: 10px 44px 10px 16px;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    background: var(--color-paper-warm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    transition: border-color 0.2s, background-color 0.2s;
}

.uk-search-input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: var(--color-paper);
}

.uk-search-input::placeholder {
    color: var(--color-ink-light);
}

/* Dark mode search */
html[data-theme="dark"] .uk-search-input {
    background: #333;
    border-color: #444;
    color: #fff;
}

html[data-theme="dark"] .uk-search-input:focus {
    background: #404040;
    border-color: var(--color-accent);
}

html[data-theme="dark"] .uk-search-input::placeholder {
    color: #888;
}

.uk-search-btn {
    position: absolute;
    right: 4px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-ink-muted);
    background: transparent;
    border-radius: var(--radius-full);
    transition: color 0.2s, background-color 0.2s;
}

.uk-search-btn:hover {
    color: var(--color-accent);
    background: var(--color-accent-light);
}

.uk-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.uk-social-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.uk-social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-ink-muted);
    background: var(--color-paper-warm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    transition: all 0.2s;
}

.uk-social-link:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
    background: var(--color-accent-light);
}

/* Dark mode social links */
html[data-theme="dark"] .uk-social-link {
    background: #333;
    border-color: #444;
    color: #aaa;
}

html[data-theme="dark"] .uk-social-link:hover {
    background: #404040;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* UK Navigation Bar - Guardian style with colored underlines */
.uk-nav-bar {
    background: var(--color-paper);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 999;
}

.uk-nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 48px;
}

.uk-nav-toggle {
    display: none;
}

.uk-mobile-search {
    display: none;
}

.uk-nav-menu {
    display: flex;
    gap: 0;
    flex: 1;
}

.uk-nav-link {
    position: relative;
    padding: 14px 18px;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-ink);
    text-decoration: none;
    transition: color 0.2s;
}

.uk-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transition: background-color 0.2s;
}

.uk-nav-link:hover {
    color: var(--color-accent);
}

/* Colored underlines for each category - Guardian style */
.uk-nav-link--uk:hover::after,
.uk-nav-link--uk.uk-nav-link--active::after {
    background: #c70000;
}

.uk-nav-link--health:hover::after,
.uk-nav-link--health.uk-nav-link--active::after {
    background: #bb1919;
}

.uk-nav-link--science:hover::after,
.uk-nav-link--science.uk-nav-link--active::after {
    background: #633399;
}

.uk-nav-link--lifestyle:hover::after,
.uk-nav-link--lifestyle.uk-nav-link--active::after {
    background: #f5be2c;
}

.uk-nav-link--wellbeing:hover::after,
.uk-nav-link--wellbeing.uk-nav-link--active::after {
    background: #22874d;
}

.uk-nav-link--opinion:hover::after,
.uk-nav-link--opinion.uk-nav-link--active::after {
    background: #e05e00;
}

.uk-nav-link--world:hover::after,
.uk-nav-link--world.uk-nav-link--active::after {
    background: #0084c6;
}

.uk-nav-link--active {
    color: var(--color-accent);
}

/* Desktop only elements */
.uk-desktop-only {
    display: inline;
}

/* Mobile Responsive UK Header */
@media (max-width: 1024px) {
    .uk-header-center {
        display: none;
    }
}

@media (max-width: 900px) {
    .uk-logo-tagline {
        display: none;
    }

    .uk-logo-title {
        font-size: 1.25rem;
    }

    .uk-social-links {
        display: none;
    }
}

@media (max-width: 768px) {

    /* Hide Sign In / Register on mobile */
    .uk-desktop-only {
        display: none;
    }

    /* Top bar - show date, theme toggle only */
    .uk-top-bar {
        padding: 8px 16px;
    }

    .uk-top-bar-inner {
        padding: 0;
    }

    .uk-top-bar-left {
        flex: 1;
    }

    .uk-date-badge {
        font-size: 0.75rem;
    }

    .uk-date-badge svg {
        width: 12px;
        height: 12px;
    }

    .uk-top-bar-right {
        flex-shrink: 0;
    }

    /* Theme toggle - proper colors on dark bar */
    .uk-theme-toggle {
        width: 46px;
        height: 26px;
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .uk-theme-toggle:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    .uk-theme-toggle .theme-toggle-thumb {
        width: 20px;
        height: 20px;
        left: 3px;
    }

    html[data-theme="dark"] .uk-theme-toggle .theme-toggle-thumb {
        left: calc(100% - 23px);
    }

    /* Main header */
    .uk-header-inner {
        padding: 14px 16px;
    }

    .uk-logo-title {
        font-size: 1.2rem;
    }

    /* Navigation bar */
    .uk-nav-bar {
        position: sticky;
        top: 0;
        z-index: 1000;
        display: none;
    }

    .uk-nav-inner {
        padding: 0 16px;
        height: 48px;
        justify-content: space-between;
    }

    .uk-nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 10px;
        background: transparent;
        border: none;
        cursor: pointer;
    }

    .uk-nav-toggle .nav-toggle-bar {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--color-ink);
        border-radius: 2px;
        transition: transform 0.3s, opacity 0.3s;
    }

    .uk-nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .uk-nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .uk-nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .uk-nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        background: var(--color-paper);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        padding: 8px 0;
        z-index: 100;
    }

    .uk-nav-menu.is-open {
        display: flex;
    }

    .uk-nav-link {
        padding: 14px 20px;
        border-left: 4px solid transparent;
        font-size: 1rem;
    }

    .uk-nav-link::after {
        display: none;
    }

    .uk-nav-link--uk:hover,
    .uk-nav-link--uk.uk-nav-link--active {
        border-left-color: #c70000;
        background: rgba(199, 0, 0, 0.05);
    }

    .uk-nav-link--health:hover,
    .uk-nav-link--health.uk-nav-link--active {
        border-left-color: #bb1919;
        background: rgba(187, 25, 25, 0.05);
    }

    .uk-nav-link--science:hover,
    .uk-nav-link--science.uk-nav-link--active {
        border-left-color: #633399;
        background: rgba(99, 51, 153, 0.05);
    }

    .uk-nav-link--lifestyle:hover,
    .uk-nav-link--lifestyle.uk-nav-link--active {
        border-left-color: #f5be2c;
        background: rgba(245, 190, 44, 0.05);
    }

    .uk-nav-link--wellbeing:hover,
    .uk-nav-link--wellbeing.uk-nav-link--active {
        border-left-color: #22874d;
        background: rgba(34, 135, 77, 0.05);
    }

    .uk-nav-link--opinion:hover,
    .uk-nav-link--opinion.uk-nav-link--active {
        border-left-color: #e05e00;
        background: rgba(224, 94, 0, 0.05);
    }

    .uk-nav-link--world:hover,
    .uk-nav-link--world.uk-nav-link--active {
        border-left-color: #0084c6;
        background: rgba(0, 132, 198, 0.05);
    }

    /* Show mobile search button */
    .uk-mobile-search {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        color: var(--color-ink-muted);
        background: transparent;
        border: none;
        cursor: pointer;
        margin-left: auto;
    }

    .uk-mobile-search:hover {
        color: var(--color-accent);
    }
}

@media (max-width: 480px) {
    .uk-top-bar {
        padding: 6px 12px;
    }

    .uk-date-badge {
        font-size: 0.7rem;
    }

    .uk-header-inner {
        padding: 12px 12px;
    }

    .uk-logo-title {
        font-size: 1.05rem;
    }

    .uk-nav-inner {
        padding: 0 12px;
        height: 44px;
    }

    .uk-nav-link {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-paper);
    border-bottom: 1px solid var(--color-border);
    transition: background-color var(--duration-normal) var(--ease-out),
        border-color var(--duration-normal) var(--ease-out);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-ink);
    flex-shrink: 0;
}

.logo-mark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-highlight) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

@media (max-width: 768px) {
    .logo-text {
        display: none;
    }
}

/* Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-ink);
    border-radius: 1px;
    transition: transform var(--duration-normal) var(--ease-out),
        opacity var(--duration-fast);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-ink-muted);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: color var(--duration-fast) var(--ease-out),
        background-color var(--duration-fast) var(--ease-out);
}

.nav-link:hover {
    color: var(--color-ink);
    background: var(--color-paper-warm);
}

.nav-link--active {
    color: var(--color-accent);
    background: var(--color-accent-light);
}

.nav-link--active:hover {
    color: var(--color-accent);
    background: var(--color-accent-light);
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Search */
.search-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-ink-muted);
    border-radius: var(--radius-full);
    transition: color var(--duration-fast),
        background-color var(--duration-fast);
}

.search-toggle:hover {
    color: var(--color-ink);
    background: var(--color-paper-warm);
}

.search-box {
    position: absolute;
    top: 100%;
    right: 24px;
    width: 320px;
    padding: 16px;
    background: var(--color-paper);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 8px;
    animation: slideDown var(--duration-normal) var(--ease-out);
}

.search-box[hidden] {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-input {
    flex: 1;
    padding: 10px 14px;
    background: var(--color-paper-warm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.search-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-ink-muted);
    border-radius: var(--radius-sm);
}

.search-close:hover {
    background: var(--color-paper-warm);
    color: var(--color-ink);
}

/* Theme Toggle */
/* Mobile Nav */
@media (max-width: 768px) {
    .header-inner {
        justify-content: flex-start;
    }

    .header-left {
        order: 2;
    }

    .main-nav {
        flex: 0;
        order: 1;
        margin-right: 12px;
    }

    .header-right {
        order: 3;
        margin-left: auto;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 16px;
        background: var(--color-paper);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        display: none;
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MAIN CONTENT GRID
   ═══════════════════════════════════════════════════════════════════════════ */
.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px 16px;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .main-content {
        padding: 32px 24px;
    }
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, var(--content-width));
    justify-content: center;
    gap: var(--gap);
    align-items: start;
}

@media (max-width: 1100px) {
    .main-content {
        display: flex;
        flex-direction: column;
    }

    .content-grid {
        display: contents;
    }

    .content-grid>* {
        min-width: 0;
        max-width: 100%;
    }

    .article {
        order: 1;
    }

    .comments-section {
        order: 2;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ARTICLE
   ═══════════════════════════════════════════════════════════════════════════ */
.article {
    max-width: var(--content-width);
    width: 100%;
    margin-inline: auto;
}

/* Article Header */
.article-header {
    margin-bottom: 32px;
}

.article-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-ink);
    margin-bottom: 16px;
}

.article-standfirst {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.5;
    color: var(--color-ink-muted);
    font-style: italic;
    border-left: 3px solid var(--color-accent);
    padding-left: 16px;
    margin-bottom: 20px;
}

/* Hero Image */
.article-hero {
    max-width: 800px !important;
    margin: 0 auto 40px;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.hero-caption {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 0;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--color-ink-light);
}

.caption-credit {
    font-style: italic;
}

/* Gallery badge - Independent style */
.gallery-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-ink);
}

.gallery-badge i {
    font-size: 1rem;
    color: var(--color-ink-muted);
}

[data-theme="dark"] .gallery-badge {
    background: rgba(30, 30, 30, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--color-ink);
}

/* Article Figure — Independent style in-article image */
.article-figure {
    max-width: 800px !important;
    margin: 2em auto;
    overflow: hidden;
}

.article-figure.vertical {
    max-width: 600px !important;
}

.figure-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.figure-image {
    width: 100%;
    height: auto;
    display: block;
}

.figure-caption {
    padding: 12px 0;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--color-ink-muted);
}

.figure-caption .caption-credit {
    font-style: italic;
    color: var(--color-ink-light);
}

/* Gallery Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
}

.lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 10;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s, background 0.2s;
    z-index: 10;
}

.lightbox-nav:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-content {
    max-width: 100%;
    max-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: calc(100vh - 180px);
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.lightbox-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 20px 24px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.lightbox-caption {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    max-width: 70%;
}

.lightbox-credit {
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
}

.lightbox-counter {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .lightbox-container {
        padding: 50px 16px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-caption {
        font-size: 0.8rem;
        max-width: 65%;
    }
}

/* Article Body */
.article-body {
    font-size: 1.05rem;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-body>*+* {
    margin-top: 1.5em;
}

.article-body>* {
    max-width: 100%;
}

.article-body h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-ink);
    margin-top: 2.5em;
    margin-bottom: 0.5em;
}

.article-body h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-ink);
    margin-top: 2em;
    margin-bottom: 0.5em;
}

.article-body p {
    color: var(--color-ink);
}

.article-lede::first-letter {
    font-family: var(--font-display);
    font-size: 3.5em;
    font-weight: 700;
    float: left;
    line-height: 0.8;
    margin-right: 12px;
    margin-top: 6px;
    color: var(--color-accent);
}

/* Callouts — BBC/Guardian minimal style */
.article-callout {
    padding: 20px 24px;
    margin: 24px 0;
    background: var(--color-paper-warm);
    border-left: 3px solid var(--color-ink-light);
}

.callout-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-ink);
    margin-bottom: 12px;
}

.callout-header i {
    font-size: 0.85rem;
    color: var(--color-ink-muted);
}

.callout-list {
    margin: 0;
    padding-left: 18px;
    list-style: disc;
}

.callout-list li {
    margin-bottom: 6px;
    color: var(--color-ink);
    font-size: 0.9rem;
    line-height: 1.5;
}

.callout-list li:last-child {
    margin-bottom: 0;
}

.callout-key {
    border-left-color: var(--color-accent);
}

.callout-key .callout-header i {
    color: var(--color-accent);
}

.callout-warning {
    background: #fef9f0;
    border-left-color: #c45911;
}

.callout-warning .callout-header {
    color: #8b3d0f;
}

.callout-warning .callout-header i {
    color: #c45911;
}

.callout-warning p {
    margin-bottom: 0;
    color: var(--color-ink);
}

/* Dark mode callouts */
[data-theme="dark"] .article-callout {
    background: var(--color-paper-warm);
}

[data-theme="dark"] .callout-warning {
    background: rgba(196, 89, 17, 0.1);
}

/* Blockquote */
.article-quote {
    position: relative;
    padding: 48px 40px 32px;
    margin: 2em 0;
    background: var(--color-paper-warm);
    border-radius: var(--radius-md);
    font-style: italic;
    overflow: visible;
}

.article-quote::before {
    content: '\201C';
    position: absolute;
    top: 24px;
    left: 24px;
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 0.8;
    color: var(--color-accent);
    opacity: 0.4;
}

.article-quote p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--color-ink);
    margin-bottom: 16px;
}

.article-quote cite {
    display: block;
    font-family: var(--font-ui);
    font-style: normal;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-ink-muted);
}

@media (max-width: 480px) {
    .article-quote {
        padding: 40px 20px 24px;
        margin: 1.5em 0;
    }

    .article-quote::before {
        top: 16px;
        left: 16px;
        font-size: 3rem;
    }

    .article-quote p {
        font-size: 1rem;
    }

    .article-quote cite {
        font-size: 0.8rem;
    }
}

/* Article Footer */
.article-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.share-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.share-label {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-ink-muted);
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-ink-muted);
    background: var(--color-paper-warm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) var(--ease-out);
}

.share-btn:hover {
    color: var(--color-paper);
    border-color: transparent;
}

.share-btn--twitter:hover {
    background: #1da1f2;
}

.share-btn--facebook:hover {
    background: #1877f2;
}

.share-btn--linkedin:hover {
    background: #0a66c2;
}

.share-btn--email:hover {
    background: var(--color-accent);
}

.share-btn--copy:hover {
    background: var(--color-ink);
}

/* ── Button interaction: lift + accent glow + light sweep ─────────────────── */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -70%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg,
            transparent 0%,
            rgba(255, 255, 255, 0.38) 50%,
            transparent 100%);
    transform: skewX(-20deg);
    pointer-events: none;
}

.cta-button:hover::after {
    animation: btnSweep 0.75s var(--ease-out);
}

@keyframes btnSweep {
    to {
        left: 125%;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMMENTS SECTION — Facebook Style
   ═══════════════════════════════════════════════════════════════════════════ */
.comments-section {
    max-width: var(--content-width);
    margin: 64px auto 32px;
}

.comments-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.comments-title {
    font-family: var(--font-ui);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-ink);
}

.comments-count {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: var(--color-ink-muted);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Login Prompt
   ───────────────────────────────────────────────────────────────────────────── */
.comment-login-prompt {
    padding: 20px 24px;
    background: var(--color-paper-warm);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    color: var(--color-ink-muted);
    text-align: center;
}

.comment-login-link {
    color: #1877f2;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.comment-login-link:hover {
    text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Comment Modal
   ───────────────────────────────────────────────────────────────────────────── */
.comment-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-normal) var(--ease-out),
        visibility var(--duration-normal) var(--ease-out);
}

.comment-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.comment-modal-content {
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    background: var(--color-paper);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    transition: transform var(--duration-normal) var(--ease-out);
}

.comment-modal.is-open .comment-modal-content {
    transform: translateY(0) scale(1);
}

html[data-theme="dark"] .comment-modal-content {
    background: #242526;
}

.comment-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
}

.comment-modal-title {
    font-family: var(--font-ui);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-ink);
    margin: 0;
}

.comment-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--color-paper-warm);
    border: none;
    border-radius: var(--radius-full);
    color: var(--color-ink-muted);
    cursor: pointer;
    transition: background-color var(--duration-fast);
}

.comment-modal-close:hover {
    background: var(--color-border);
}

html[data-theme="dark"] .comment-modal-close {
    background: #3a3b3c;
}

html[data-theme="dark"] .comment-modal-close:hover {
    background: #4e4f50;
}

.comment-modal-body {
    padding: 16px 20px;
    overflow-y: auto;
    max-height: calc(90vh - 70px);
}

.comment-form--modal {
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0;
    background: transparent;
}

.comment-form--modal .comment-form-textarea {
    min-height: 100px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Comment Form — FB Style
   ───────────────────────────────────────────────────────────────────────────── */
.comment-form {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--color-paper);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.comment-form-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #1877f2 0%, #42b72a 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.95rem;
    flex-shrink: 0;
    overflow: hidden;
}

.comment-form-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-form-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-form-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-form-fields {
    flex: 1;
}

.comment-form-name {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    background: var(--color-paper-warm);
    border: none;
    border-radius: var(--radius-full);
    transition: background-color var(--duration-fast);
}

.comment-form-name:focus {
    outline: none;
    background: var(--color-paper-cool);
}

.comment-form-name::placeholder {
    color: var(--color-ink-light);
}

.comment-form-input-wrapper {
    position: relative;
}

.comment-form-textarea {
    width: 100%;
    min-height: 44px;
    max-height: 200px;
    padding: 12px 16px;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    line-height: 1.4;
    background: var(--color-paper-warm);
    border: none;
    border-radius: 20px;
    resize: none;
    transition: background-color var(--duration-fast);
}

.comment-form-textarea:focus {
    outline: none;
    background: var(--color-paper-cool);
}

.comment-form-textarea::placeholder {
    color: var(--color-ink-light);
}

/* Photo Upload */
.comment-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--color-border);
}

.comment-form-tools {
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-upload-btn,
.avatar-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--color-ink-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background-color var(--duration-fast);
}

.comment-upload-btn:hover,
.avatar-upload-btn:hover {
    background: var(--color-paper-warm);
    color: var(--color-accent);
}

.comment-upload-btn input[type="file"],
.avatar-upload-btn input[type="file"] {
    display: none;
}

.comment-submit {
    padding: 8px 16px;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    background: #1877f2;
    border: none;
    border-radius: var(--radius-full);
    transition: background-color var(--duration-fast);
}

.comment-submit:hover:not(:disabled) {
    background: #166fe5;
}

.comment-submit:disabled {
    background: #e4e6eb;
    color: #bcc0c4;
    cursor: not-allowed;
}

/* Photo Preview */
.comment-photo-preview {
    position: relative;
    display: inline-block;
    margin-top: 12px;
}

.comment-photo-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: var(--radius-md);
}

.comment-photo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: var(--radius-full);
    font-size: 16px;
    line-height: 1;
    transition: background-color var(--duration-fast);
}

.comment-photo-remove:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Character Counter */
.comment-char-count {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--color-ink-light);
    text-align: right;
    padding-right: 8px;
}

.comment-char-count.is-warning {
    color: #f0932b;
}

.comment-char-count.is-error {
    color: #e74c3c;
}

/* Honeypot */
.comment-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Comment List — FB Style
   ───────────────────────────────────────────────────────────────────────────── */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comments-empty {
    text-align: center;
    padding: 40px 24px;
    color: var(--color-ink-muted);
}

.comments-empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    color: var(--color-ink-light);
    opacity: 0.5;
}

.comments-empty-text {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    color: var(--color-ink-muted);
    margin-bottom: 4px;
}

.comments-empty-hint {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--color-ink-light);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Single Comment — FB Style
   ───────────────────────────────────────────────────────────────────────────── */
.comment {
    padding: 8px 0;
    animation: commentFadeIn var(--duration-normal) var(--ease-out);
}

@keyframes commentFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-main {
    display: flex;
    gap: 10px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #1877f2 0%, #42b72a 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
    overflow: hidden;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

/* Comment Bubble */
.comment-bubble {
    display: inline-block;
    width: 100%;
    padding: 10px 14px;
    background: var(--color-paper-warm);
    border-radius: 18px;
    position: relative;
}

html[data-theme="dark"] .comment-bubble {
    background: #3a3b3c;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.comment-author {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-ink);
}

.comment-author:hover {
    text-decoration: underline;
    cursor: pointer;
}

.comment-text {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--color-ink);
    word-wrap: break-word;
}

/* Comment Photo */
.comment-photo {
    max-width: 300px;
    margin-top: 8px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.comment-photo img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Reactions Summary — Under comment (FB style)
   ───────────────────────────────────────────────────────────────────────────── */
.reactions-summary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    cursor: pointer;
}

.reactions-summary:hover {
    text-decoration: underline;
}

.reactions-summary-icons {
    display: flex;
    align-items: center;
}

.reactions-summary-icons .reaction-icon {
    width: 18px;
    height: 18px;
    margin-left: -4px;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
    border-radius: 50%;
}

.reactions-summary-icons .reaction-icon:first-child {
    margin-left: 0;
}

.reactions-summary-count {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-ink-muted);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Comment Actions — FB Style
   ───────────────────────────────────────────────────────────────────────────── */
.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 14px;
    font-family: var(--font-ui);
    font-size: 0.75rem;
}

.comment-time {
    color: var(--color-ink-light);
}

.comment-action-btn {
    font-weight: 600;
    color: var(--color-ink-muted);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color var(--duration-fast);
}

.comment-action-btn:hover {
    color: var(--color-ink);
    text-decoration: underline;
}

.comment-action-btn.is-active {
    color: #1877f2;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Reaction Picker — FB Style Floating Bar
   ───────────────────────────────────────────────────────────────────────────── */
.reaction-picker-wrapper {
    position: relative;
    display: inline-block;
}

.reaction-picker {
    position: absolute;
    bottom: 100%;
    left: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    background: var(--color-paper);
    border-radius: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.9);
    transform-origin: bottom left;
    transition: all var(--duration-fast) var(--ease-out);
    z-index: 100;
}

html[data-theme="dark"] .reaction-picker {
    background: #3a3b3c;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.reaction-picker-wrapper:hover .reaction-picker,
.reaction-picker-wrapper:focus-within .reaction-picker,
.reaction-picker.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(-4px) scale(1);
}

.reaction-picker-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: transform var(--duration-fast) var(--ease-out);
}

.reaction-picker-btn:hover {
    transform: scale(1.3) translateY(-4px);
}

.reaction-picker-btn img {
    width: 32px;
    height: 32px;
    pointer-events: none;
}

.reaction-picker-btn.is-selected {
    background: var(--color-accent-light);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Replies — FB Style
   ───────────────────────────────────────────────────────────────────────────── */
.comment-replies {
    margin-left: 46px;
    padding-top: 4px;
}

.comment-replies .comment {
    padding: 6px 0;
}

.comment-replies .comment-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
}

.comment-replies .comment-bubble {
    padding: 8px 12px;
}

.view-replies-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-ink-muted);
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 46px;
}

.view-replies-btn:hover {
    text-decoration: underline;
}

.view-replies-btn svg {
    width: 12px;
    height: 12px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Reply Form — FB Style Inline
   ───────────────────────────────────────────────────────────────────────────── */
.reply-form {
    display: flex;
    gap: 8px;
    margin-left: 46px;
    margin-top: 8px;
    padding: 8px 0;
}

.reply-form .comment-form-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
}

.reply-form-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reply-form-header {
    display: flex;
    gap: 8px;
}

.reply-form .comment-form-name {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.85rem;
    border-radius: var(--radius-full);
}

.reply-form .comment-form-textarea {
    min-height: 36px;
    padding: 8px 14px;
    font-size: 0.9rem;
    border-radius: 18px;
}

.reply-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.reply-form-tools {
    display: flex;
    gap: 4px;
}

.reply-form-tools .comment-upload-btn {
    width: 32px;
    height: 32px;
}

.reply-cancel {
    padding: 6px 12px;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-ink-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
}

.reply-cancel:hover {
    background: var(--color-paper-warm);
}

.reply-submit {
    padding: 6px 14px;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    background: #1877f2;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background-color var(--duration-fast);
}

.reply-submit:hover:not(:disabled) {
    background: #166fe5;
}

.reply-submit:disabled {
    background: #e4e6eb;
    color: #bcc0c4;
    cursor: not-allowed;
}

/* Throttle Warning */
.throttle-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    margin-top: 8px;
    background: #fff3cd;
    border-radius: var(--radius-md);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: #856404;
}

html[data-theme="dark"] .throttle-warning {
    background: #463a1a;
    color: #ffc107;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Mobile Responsive — FB Style
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .comment-form {
        padding: 12px;
    }

    .comment-form-avatar {
        width: 36px;
        height: 36px;
    }

    .reaction-picker {
        left: -50px;
    }

    .comment-replies {
        margin-left: 36px;
    }

    .reply-form {
        margin-left: 36px;
    }

    .view-replies-btn {
        margin-left: 36px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--color-paper-warm);
    border-top: 1px solid var(--color-border);
    padding: 32px 24px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-inner p {
    font-size: 8px;
    color: var(--color-ink-light);
    line-height: 1.25;
    margin: 0 0 10px;
}

.footer-inner p:last-child {
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIGHTBOX (for comment photos)
   ═══════════════════════════════════════════════════════════════════════════ */
.photo-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.photo-lightbox-overlay.show {
    opacity: 1;
}

.photo-lightbox-overlay.closing {
    opacity: 0;
}

.photo-lightbox {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.photo-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.photo-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-family: auto;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.photo-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════════════════ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Print Styles */
@media print {

    .site-header,
    .comments-section,
    .site-footer {
        display: none !important;
    }

    .content-grid {
        display: block;
    }

    .article {
        max-width: 100%;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: black;
        background: white;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Scroll Progress Bar
   ───────────────────────────────────────────────────────────────────────────── */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #dc3545, #ff6b6b);
    transition: width 0.1s ease-out;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Styled List
   ───────────────────────────────────────────────────────────────────────────── */
.styled-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.styled-list-item {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #333;
}

.styled-list-item b {
    /* white-space: nowrap; */
}

.styled-list-icon {
    color: #dc3545;
    font-size: 0.7rem;
    flex-shrink: 0;
}

[data-theme="dark"] .styled-list-item {
    color: #f0f0f0;
}

a,
button {
    cursor: pointer;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Article media additions
   ───────────────────────────────────────────────────────────────────────────── */
.doc-face-pic {
    border-top: 5px solid #0d2a40;
}

.product-figure .figure-image-wrapper {
    text-align: center;
}

.product-figure .figure-image {
    max-width: 200px;
    margin: 0 auto;
}

.video-figure.how-to-use {
    max-width: 400px !important;
}

.video-figure video {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
}

/* Expert (doctor) replies in the discussion */
.comment--expert>.comment-main>.comment-body>.comment-bubble {
    background: #eef7fc;
    border-left: 3px solid #2b587a;
}

[data-theme="dark"] .comment--expert>.comment-main>.comment-body>.comment-bubble {
    background: rgba(43, 88, 122, 0.28);
    border-left-color: #6ea8cd;
}

.comment--expert .comment-author::after {
    content: 'Verified';
    display: inline-block;
    margin-left: 8px;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    background: #2b587a;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    vertical-align: middle;
}

.article-body .em {
    font-weight: 700 !important;
    text-decoration: underline !important;
    text-decoration-color: var(--color-accent) !important;
    text-underline-offset: 5px !important;
    text-decoration-thickness: 2px !important
}

/* ─────────────────────────────────────────────────────────────────────────────
   Clinical Chart
   ───────────────────────────────────────────────────────────────────────────── */
.clinical-chart {
    width: 100%;
    max-width: 800px;
    background: #fff;
    border-radius: 12px;
    padding: 32px 24px;
    margin: 2em auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.clinical-chart-header {
    text-align: center;
    margin-bottom: 28px;
}

.clinical-chart-header h2 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-ink);
    margin: 0 0 8px;
    line-height: 1.4;
}

.clinical-chart-subtitle {
    font-size: 1.625rem;
    color: var(--color-accent);
    font-weight: 700;
    margin: 0;
}

.chart-container {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) 50px;
    align-items: center;
    column-gap: 16px;
    row-gap: 18px;
}

/* Rows share the container's column tracks so every bar starts at the same x */
.chart-item {
    display: contents;
}

.chart-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-ink);
    white-space: nowrap;
}

.chart-bar-container {
    background: #f0f0f0;
    border-radius: 8px;
    height: 32px;
    position: relative;
    overflow: hidden;
}

.chart-bar {
    height: 100%;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    transition: width 1s ease-out;
    position: relative;
    width: 0;
    background: linear-gradient(90deg, var(--color-accent) 0, var(--color-accent-hover) 100%);
}

.chart-bar--muted {
    background: linear-gradient(90deg, #b9b6b0 0, #98948d 100%);
    min-width: 6px;
}

.chart-bar.bar-3 {
    animation: expandBar3 1.5s ease-out forwards;
}

.chart-bar.bar-5 {
    animation: expandBar5 1.5s ease-out forwards;
}

.chart-bar.bar-16 {
    animation: expandBar16 1.5s ease-out forwards;
}

.chart-bar.bar-74 {
    animation: expandBar74 1.5s ease-out forwards;
}

@keyframes expandBar3 {
    to {
        width: 3%;
    }
}

@keyframes expandBar5 {
    to {
        width: 5%;
    }
}

@keyframes expandBar16 {
    to {
        width: 16%;
    }
}

@keyframes expandBar74 {
    to {
        width: 74%;
    }
}

.chart-item--highlight .chart-label {
    font-weight: 700;
    color: var(--color-accent);
}

.chart-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-accent);
    text-align: right;
}

.chart-value--muted {
    font-weight: 500;
    color: var(--color-ink-muted);
}

[data-theme="dark"] .clinical-chart {
    background: #2d2d2d;
    border-color: #444;
}

[data-theme="dark"] .clinical-chart-header h2 {
    color: #ddd;
}

[data-theme="dark"] .chart-label {
    color: #e8e8e8;
}

[data-theme="dark"] .chart-item--highlight .chart-label {
    color: var(--color-accent);
}

[data-theme="dark"] .chart-bar-container {
    background: #3a3a3a;
}

[data-theme="dark"] .chart-bar--muted {
    background: linear-gradient(90deg, #6f6f6f 0, #575757 100%);
}

@media (max-width: 768px) {
    .clinical-chart {
        padding: 24px 16px;
        margin: 24px 0;
    }

    .clinical-chart-header h2 {
        font-size: 1.125rem;
    }

    .clinical-chart-subtitle {
        font-size: 1.375rem;
    }

    .chart-container {
        grid-template-columns: 76px minmax(0, 1fr) 44px;
        column-gap: 10px;
    }

    .chart-label {
        font-size: 0.9375rem;
    }

    .chart-bar-container {
        height: 28px;
    }

    .chart-value {
        font-size: 1.0625rem;
    }
}

@media (max-width: 480px) {
    .clinical-chart {
        padding: 20px 14px;
        margin: 20px 0;
        border-radius: 10px;
    }

    .clinical-chart-header {
        margin-bottom: 20px;
    }

    .clinical-chart-header h2 {
        font-size: 1.0625rem;
    }

    .clinical-chart-subtitle {
        font-size: 1.25rem;
    }

    .chart-container {
        grid-template-columns: 70px minmax(0, 1fr) 38px;
        column-gap: 8px;
        row-gap: 14px;
    }

    .chart-label {
        font-size: 0.875rem;
    }

    .chart-bar-container {
        height: 26px;
        border-radius: 6px;
    }

    .chart-bar {
        border-radius: 6px;
    }

    .chart-value {
        font-size: 1rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Promo Notice
   ───────────────────────────────────────────────────────────────────────────── */
.promo-notice {
    position: relative;
    margin: 2.5em 0;
    padding: 26px 28px 24px;
    text-align: center;
}

.promo-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-accent);
    border-radius: var(--radius-sm);
}

.promo-notice__eyebrow {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.5;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.promo-notice__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-ink);
    margin-bottom: 12px;
}

.promo-notice .promo-notice__deadline {
    font-family: var(--font-ui);
    font-size: 1rem;
    color: var(--color-ink-muted);
}

/* Scoped with the parent class so it outranks `.article-body p` */
.promo-notice .promo-notice__date {
    display: inline-block;
    max-width: 100%;
    margin: 0 auto;
    padding: 8px 18px;
    background: var(--color-accent);
    border-radius: var(--radius-full);
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
}

@media (max-width: 600px) {
    .promo-notice {
        padding: 22px 18px 20px;
    }

    .promo-notice__title {
        font-size: 1.15rem;
    }

    .promo-notice__deadline {
        font-size: 0.95rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Flag Picker (discount reveal)
   ───────────────────────────────────────────────────────────────────────────── */
.flags--wrapper {
    width: 100%;
    max-width: 800px;
    margin: 2.5em auto 0;
}

#flags--title {
    display: block;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-family: var(--font-ui);
    font-size: 1.05rem;
    line-height: 1.4;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    color: var(--color-accent);
    background: var(--color-accent-light);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.flags--container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}

.flags--item {
    position: relative;
    flex: 1 1 0;
    max-width: 220px;
}

.flags--item img {
    display: block;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    cursor: pointer;
    border-radius: var(--radius-full);
    box-shadow: 0 0 0 0 var(--color-accent);
    animation: flagPulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

.flags--wrapper>div>div:nth-child(2)>img {
    animation-delay: 666ms;
}

.flags--wrapper>div>div:nth-child(3)>img {
    animation-delay: 1333ms;
}

@keyframes flagPulse {
    from {
        box-shadow: 0 0 0 0 var(--color-accent);
    }

    to {
        box-shadow: 0 0 0 14px transparent;
    }
}

.click-here {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-ui);
    font-size: clamp(25.2px, 7vw, 40px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
    pointer-events: none;
}

.win {
    display: none;
}

/* Dark scrim over the whole flag — a text-shadow alone gets lost on the artwork */
.win p {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.62);
    font-family: var(--font-display);
    font-size: clamp(30px, 9vw, 56px);
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

/* Winning flag */
.win p.grats {
    background: rgba(10, 61, 30, 0.78);
    box-shadow: inset 0 0 0 4px #2ecc71;
}

.grats span {
    color: #4ade80;
}

@media (max-width: 600px) {
    #flags--title {
        font-size: 0.9rem;
        padding: 14px 14px;
        margin-bottom: 18px;
    }

    .flags--container {
        gap: 10px;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Order Block (revealed after the pick)
   ───────────────────────────────────────────────────────────────────────────── */
.order_block {
    display: none;
    margin: 5rem auto 0;
    padding: 24px 28px 32px;
    text-align: center;
    background: var(--color-paper-warm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.pop-up-window {
    position: relative;
    width: 100%;
    padding-top: 4rem;
}

.pop-up-window::before {
    content: "";
    position: absolute;
    top: -68px;
    left: 0;
    right: 0;
    width: 104px;
    height: 104px;
    margin: 0 auto;
    background-color: var(--color-accent);
    border: 5px solid var(--color-paper);
    border-radius: var(--radius-full);
    box-sizing: border-box;
    animation: 0.5s ease 0.6s normal backwards 1 running pop-up-appear-before;
}

.pop-up-window::after {
    content: "";
    position: absolute;
    top: -32px;
    left: 0;
    right: 0;
    width: 46px;
    height: 20px;
    margin: 0 auto;
    border-left: 4px solid #fff;
    border-bottom: 4px solid #fff;
    transform: rotate(-45deg);
    animation: 0.5s ease 0.6s normal backwards 1 running pop-up-appear-after;
}

@keyframes pop-up-appear-before {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes pop-up-appear-after {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.order_block h3 {
    margin-bottom: 8px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    line-height: 1.3;
    font-weight: 700;
    text-align: center;
    color: var(--color-ink);
    margin-top: 0;
}

.order_block .prod-img {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 20px auto 0;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 420px;
    margin: 28px auto 0;
    padding: 20px 32px;
    font-family: var(--font-ui);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    color: #fff;
    background: var(--color-accent);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: 0 6px 18px rgba(187, 25, 25, 0.32);
    animation: orderPulse 2.4s ease-in-out infinite;
    transition: background-color var(--duration-normal) var(--ease-out),
        transform var(--duration-normal) var(--ease-out),
        box-shadow var(--duration-normal) var(--ease-out);
}

.cta-button svg {
    flex-shrink: 0;
    transition: transform var(--duration-fast) var(--ease-out);
}

@keyframes orderPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 6px 18px rgba(187, 25, 25, 0.32);
    }

    50% {
        transform: scale(1.025);
        box-shadow: 0 10px 26px rgba(187, 25, 25, 0.45);
    }
}

.cta-button:hover {
    color: #fff;
    background: var(--color-accent-hover);
    animation: none;
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 14px 30px rgba(187, 25, 25, 0.45);
}

.cta-button:hover svg {
    transform: translateX(5px);
}

.cta-button:active {
    animation: none;
    transform: translateY(-1px) scale(0.99);
    box-shadow: 0 4px 12px rgba(187, 25, 25, 0.35);
    transition-duration: 80ms;
}

.cta-button:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
}

[data-theme="dark"] .cta-button {
    box-shadow: 0 6px 18px rgba(255, 68, 68, 0.28);
}

[data-theme="dark"] .cta-button:hover {
    box-shadow: 0 14px 30px rgba(255, 68, 68, 0.38);
}

@media (prefers-reduced-motion: reduce) {

    .cta-button,
    .cta-button:hover::after {
        animation: none;
    }

    .cta-button:hover {
        transform: none;
    }
}

@media (max-width: 600px) {
    .order_block {
        padding: 20px 16px 26px;
    }

    .order_block h3 {
        font-size: 1.2rem;
    }

    .cta-button {
        padding: 17px 20px;
        font-size: 1.05rem;
    }
}