/* ==========================================================================
   MQC NEWSROOM — Forensic Editorial
   assets/css/mqc-style.css
   ========================================================================== */


/* ==========================================================================
   1. FONTS
   ========================================================================== */

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/PlayfairDisplay-VariableFont_wght.woff2') format('woff2');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Lora';
    src: url('../fonts/Lora-VariableFont_wght.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Lora';
    src: url('../fonts/Lora-Italic-VariableFont_wght.woff2') format('woff2');
    font-weight: 400 700;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'IBM Plex Sans';
    src: url('../fonts/IBMPlexSans-VariableFont_wght.woff2') format('woff2');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}


/* ==========================================================================
   2. TOKENS
   ========================================================================== */

:root {
    /* Color */
    --c-navy:        #0d1b2a;
    --c-navy-mid:    #16253a;
    --c-navy-light:  #1e3050;
    --c-red:         #c41230;
    --c-red-hover:   #a00e27;
    --c-ink:         #1a1a1a;
    --c-ink-soft:    #2a2a2a;
    --c-text:        #1a1a1a;
    --c-text-soft:   #4a4a4a;
    --c-text-mute:   #767676;
    --c-paper:       #fafaf7;          /* warm off-white — editorial paper */
    --c-paper-alt:   #f4f2ec;
    --c-rule:        #1a1a1a;
    --c-rule-soft:   #d8d4cc;
    --c-footer:      #0a131c;

    /* Type */
    --f-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --f-body:    'Lora', Georgia, serif;
    --f-ui:      'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;

    /* Type scale */
    --t-masthead:   clamp(2.25rem, 6vw, 4rem);
    --t-hero:       clamp(1.875rem, 4.5vw, 3rem);
    --t-card:       clamp(1.125rem, 2vw, 1.5rem);
    --t-card-sm:    1rem;
    --t-body:       1.0625rem;
    --t-body-lg:    1.125rem;
    --t-meta:       0.8125rem;
    --t-label:      0.6875rem;
    --t-nav:        0.8125rem;
    --t-tagline:    0.6875rem;

    /* Space */
    --s-1:  0.25rem;
    --s-2:  0.5rem;
    --s-3:  0.75rem;
    --s-4:  1rem;
    --s-5:  1.5rem;
    --s-6:  2rem;
    --s-7:  2.5rem;
    --s-8:  3rem;
    --s-10: 4rem;
    --s-12: 5rem;

    /* Layout */
    --container-max:     1240px;
    --container-pad:     clamp(1rem, 4vw, 2rem);
    --sidebar-w:         300px;
    --masthead-h:        116px;
    --nav-h:             46px;
    --header-stack:      calc(var(--masthead-h) + var(--nav-h));

    /* Motion */
    --tr-fast: 0.15s ease;
    --tr-med:  0.25s ease;

    /* Reading progress */
    --progress: 0;
}


/* ==========================================================================
   3. RESET
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: var(--f-body);
    font-size: var(--t-body);
    line-height: 1.7;
    color: var(--c-text);
    background-color: var(--c-paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; padding: 0; }
input, textarea, select { font: inherit; }


/* ==========================================================================
   4. UTILITIES
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.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;
}


/* ==========================================================================
   5. READING PROGRESS
   ========================================================================== */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: calc(var(--progress, 0) * 100%);
    height: 2px;
    background-color: var(--c-red);
    z-index: 1000;
    transition: width 0.1s linear;
    pointer-events: none;
}


/* ==========================================================================
   6. HEADER — MASTHEAD STRUCTURE
   2px red rule -> date strip + brand + actions -> nav bar
   ========================================================================== */

.scroll-sentinel {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.site-header {
    background-color: var(--c-paper);
    border-bottom: 1px solid var(--c-rule);
    position: relative;
    z-index: 100;
}

/* 2px red signal rule at the very top */
.masthead-rule {
    width: 100%;
    height: 3px;
    background-color: var(--c-red);
}

/* Masthead — name + date + actions */
.masthead {
    padding: var(--s-5) 0 var(--s-4);
    border-bottom: 1px solid var(--c-rule);
}

.masthead__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "date brand actions";
    align-items: center;
    gap: var(--s-4);
}

.masthead__date {
    grid-area: date;
    font-family: var(--f-ui);
    font-size: var(--t-label);
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--c-text-mute);
    text-transform: uppercase;
}

.masthead__brand {
    grid-area: brand;
    text-align: center;
    min-width: 0;
}

.masthead__title {
    display: block;
    font-family: var(--f-display);
    font-size: var(--t-masthead);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    color: var(--c-ink);
    text-transform: uppercase;
    transition: color var(--tr-fast);
}

.masthead__title:hover { color: var(--c-red); }

.masthead__tagline {
    font-family: var(--f-ui);
    font-size: var(--t-tagline);
    font-weight: 500;
    letter-spacing: 0.22em;
    color: var(--c-text-mute);
    text-transform: uppercase;
    margin-top: var(--s-3);
}

.masthead__actions {
    grid-area: actions;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--s-3);
}

.search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--c-ink);
    transition: color var(--tr-fast);
}
.search-toggle:hover { color: var(--c-red); }


/* ==========================================================================
   7. NAV BAR
   ========================================================================== */

.primary-nav-wrap {
    background-color: var(--c-paper);
    border-bottom: 1px solid var(--c-rule-soft);
    position: relative;
}

.primary-nav-wrap > .container {
    position: relative;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: center;
}

.primary-nav {
    height: 100%;
    display: flex;
    align-items: center;
}

.primary-nav__list {
    display: flex;
    align-items: center;
    gap: var(--s-7);
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: nowrap;
}

.primary-nav__list li { list-style: none; }

.primary-nav__list a {
    font-family: var(--f-ui);
    font-size: var(--t-nav);
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--c-text);
    text-transform: uppercase;
    white-space: nowrap;
    padding: var(--s-3) 0;
    border-bottom: 2px solid transparent;
    transition: color var(--tr-fast), border-color var(--tr-fast);
    display: inline-block;
}

.primary-nav__list a:hover { color: var(--c-red); }

.primary-nav__list .current-menu-item > a,
.primary-nav__list .current-menu-ancestor > a,
.primary-nav__list .current_page_item > a {
    color: var(--c-red);
    border-bottom-color: var(--c-red);
}

/* Nav toggle (mobile only) */
.nav-toggle {
    display: none;
    align-items: center;
    gap: var(--s-2);
    padding: var(--s-2) 0;
    color: var(--c-ink);
    font-family: var(--f-ui);
    font-size: var(--t-label);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nav-toggle__bar {
    display: block;
    width: 18px;
    height: 1.5px;
    background-color: currentColor;
    margin-bottom: 3px;
    transition: transform var(--tr-fast), opacity var(--tr-fast);
}
.nav-toggle__bar:last-of-type { margin-bottom: 0; }


/* ==========================================================================
   8. HEADER SEARCH
   ========================================================================== */

.header-search {
    background-color: var(--c-paper-alt);
    border-bottom: 1px solid var(--c-rule-soft);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.25s ease, padding 0.25s ease;
    padding: 0 0;
}

.header-search[data-visible="true"] {
    max-height: 100px;
    padding: var(--s-4) 0;
}

.header-search .search-form {
    display: flex;
    gap: var(--s-2);
    max-width: 600px;
    margin-inline: auto;
}

.header-search .search-field {
    flex: 1;
    min-width: 0;
    background-color: var(--c-paper);
    border: 1px solid var(--c-rule);
    padding: var(--s-3) var(--s-4);
    font-family: var(--f-ui);
    font-size: var(--t-nav);
    color: var(--c-ink);
    border-radius: 0;
}

.header-search .search-field:focus {
    outline: 2px solid var(--c-red);
    outline-offset: -1px;
    border-color: var(--c-red);
}

.header-search .search-submit {
    background-color: var(--c-ink);
    color: var(--c-paper);
    font-family: var(--f-ui);
    font-size: var(--t-label);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: var(--s-3) var(--s-5);
    border-radius: 0;
    transition: background-color var(--tr-fast);
    white-space: nowrap;
    cursor: pointer;
}

.header-search .search-submit:hover { background-color: var(--c-red); }


/* ==========================================================================
   9. CATEGORY LABEL
   ========================================================================== */

.cat-label {
    display: inline-flex;
    align-items: center;
    font-family: var(--f-ui);
    font-size: var(--t-label);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-red);
    transition: color var(--tr-fast);
    position: relative;
    padding-left: 0.75rem;
}

.cat-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 12px;
    background-color: var(--c-red);
}

.cat-label:hover { color: var(--c-red-hover); }
.cat-label:hover::before { background-color: var(--c-red-hover); }


/* ==========================================================================
   10. BYLINE
   ========================================================================== */

.byline {
    font-family: var(--f-ui);
    font-size: var(--t-meta);
    color: var(--c-text-mute);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--s-2);
    line-height: 1.6;
}

.byline__author {
    color: var(--c-text-soft);
    font-style: italic;
    font-family: var(--f-body);
    font-weight: 500;
}

.byline__separator {
    color: var(--c-rule-soft);
    font-weight: 300;
}

.byline__date,
.byline__reading-time {
    font-variant-numeric: tabular-nums;
}


/* ==========================================================================
   11. SECTION LABELS
   ========================================================================== */

.section-label {
    font-family: var(--f-ui);
    font-size: var(--t-label);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-ink);
    padding-bottom: var(--s-3);
    margin-bottom: var(--s-5);
    border-bottom: 1px solid var(--c-rule);
    position: relative;
    display: block;
}

.section-label::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 48px;
    height: 3px;
    background-color: var(--c-red);
}


/* ==========================================================================
   12. HOMEPAGE — ZONE 1 TOP STRIP
   ========================================================================== */

.top-strip {
    padding: var(--s-7) 0 var(--s-6);
    border-bottom: 1px solid var(--c-rule);
}

.top-strip__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "lead" "secondary-a" "secondary-b";
    gap: var(--s-6);
}

.top-strip__lead        { grid-area: lead;        min-width: 0; }
.top-strip__secondary-a { grid-area: secondary-a; min-width: 0; }
.top-strip__secondary-b { grid-area: secondary-b; min-width: 0; }


/* Card — Hero (lead article) */
.card-hero {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
}

.card-hero__img-wrap {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--c-paper-alt);
    display: block;
}

.card-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-hero:hover .card-hero__img { transform: scale(1.02); }

.card-hero__content {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}

.card-hero__headline {
    font-family: var(--f-display);
    font-size: var(--t-hero);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--c-ink);
    transition: color var(--tr-fast);
}

.card-hero:hover .card-hero__headline { color: var(--c-red); }


/* Card — Secondary */
.card-secondary {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    padding-top: var(--s-4);
    border-top: 1px solid var(--c-rule);
}

.card-secondary__img-wrap {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background-color: var(--c-paper-alt);
    display: block;
    margin-bottom: var(--s-1);
}

.card-secondary__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-secondary:hover .card-secondary__img { transform: scale(1.02); }

.card-secondary__headline {
    font-family: var(--f-display);
    font-size: var(--t-card);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.005em;
    color: var(--c-ink);
    transition: color var(--tr-fast);
}

.card-secondary:hover .card-secondary__headline { color: var(--c-red); }


/* ==========================================================================
   13. HOMEPAGE — ZONE 2 MAIN FEED + SIDEBAR
   ========================================================================== */

.main-feed {
    padding: var(--s-7) 0;
}

.main-feed__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "feed";
    gap: var(--s-10);
}

.main-feed__articles {
    grid-area: feed;
    min-width: 0;
}

.main-feed__sidebar {
    display: none;
    grid-area: sidebar;
    min-width: 0;
}


/* Card — Feed */
.card-feed {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "content thumb";
    gap: var(--s-5);
    padding: var(--s-5) 0;
    border-bottom: 1px solid var(--c-rule);
    align-items: start;
}

.card-feed:first-child { padding-top: 0; }

.card-feed__content {
    grid-area: content;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
}

.card-feed__thumb {
    grid-area: thumb;
    min-width: 0;
    width: 140px;
    flex-shrink: 0;
}

.card-feed__img-wrap {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background-color: var(--c-paper-alt);
    width: 140px;
    display: block;
}

.card-feed__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-feed:hover .card-feed__img { transform: scale(1.03); }

.card-feed__headline {
    font-family: var(--f-display);
    font-size: var(--t-card);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.005em;
    color: var(--c-ink);
    transition: color var(--tr-fast);
    margin: var(--s-1) 0;
}

.card-feed:hover .card-feed__headline { color: var(--c-red); }

.card-feed__excerpt {
    font-family: var(--f-body);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--c-text-soft);
    display: none;
}


/* Card — Sidebar */
.card-sidebar {
    padding: var(--s-4) 0;
    border-bottom: 1px solid var(--c-rule-soft);
    display: flex;
    flex-direction: column;
    gap: var(--s-1);
}

.card-sidebar:last-child { border-bottom: none; }
.card-sidebar:first-child { padding-top: 0; }

.card-sidebar__headline {
    font-family: var(--f-display);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--c-ink);
    transition: color var(--tr-fast);
    margin: var(--s-1) 0;
}

.card-sidebar:hover .card-sidebar__headline { color: var(--c-red); }

.card-sidebar__date {
    font-family: var(--f-ui);
    font-size: var(--t-meta);
    color: var(--c-text-mute);
    letter-spacing: 0.02em;
}


/* ==========================================================================
   14. CATEGORY PAGE
   ========================================================================== */

.category-header {
    padding: var(--s-8) 0 var(--s-6);
    border-bottom: 1px solid var(--c-rule);
    margin-bottom: var(--s-6);
    text-align: center;
}

.category-header__eyebrow {
    font-family: var(--f-ui);
    font-size: var(--t-label);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-red);
    margin-bottom: var(--s-3);
    display: block;
}

.category-header__name {
    font-family: var(--f-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--c-ink);
    margin-bottom: var(--s-3);
    letter-spacing: -0.01em;
}

.category-header__description {
    font-family: var(--f-body);
    font-size: var(--t-body);
    line-height: 1.6;
    color: var(--c-text-soft);
    max-width: 640px;
    margin: 0 auto;
    font-style: italic;
}

.category-feed { padding-bottom: var(--s-10); }


/* ==========================================================================
   15. SINGLE POST
   ========================================================================== */

.single-post-header {
    padding: var(--s-8) 0 var(--s-6);
    border-bottom: 1px solid var(--c-rule);
    margin-bottom: var(--s-6);
    text-align: center;
}

.single-post-header__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-4);
    margin-bottom: var(--s-4);
}

.single-post-header__headline {
    font-family: var(--f-display);
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--c-ink);
    margin-bottom: var(--s-4);
    max-width: 800px;
    margin-inline: auto;
}

.single-post-header .byline { justify-content: center; }

.single-post-hero {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--c-paper-alt);
    margin-bottom: var(--s-8);
    max-width: 1080px;
    margin-inline: auto;
}

.single-post-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post-content {
    max-width: 680px;
    margin-inline: auto;
    padding-bottom: var(--s-10);
}


/* ==========================================================================
   16. POST CONTENT — TYPOGRAPHY
   ========================================================================== */

.post-content {
    font-family: var(--f-body);
    font-size: var(--t-body-lg);
    line-height: 1.8;
    color: var(--c-ink);
}

.post-content > p:first-of-type::first-letter {
    font-family: var(--f-display);
    font-weight: 700;
    float: left;
    font-size: 4rem;
    line-height: 0.85;
    padding-right: 0.5rem;
    padding-top: 0.5rem;
    color: var(--c-red);
}

.post-content p {
    margin-bottom: var(--s-5);
    font-size: var(--t-body-lg);
    line-height: 1.8;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    font-family: var(--f-display);
    color: var(--c-ink);
    line-height: 1.2;
    margin-top: var(--s-8);
    margin-bottom: var(--s-4);
    letter-spacing: -0.01em;
}

.post-content h2 { font-size: 1.75rem; font-weight: 700; }
.post-content h3 { font-size: 1.375rem; font-weight: 700; }
.post-content h4 { font-size: 1.125rem; font-weight: 700; }

.post-content a {
    color: var(--c-ink);
    text-decoration: underline;
    text-decoration-color: var(--c-red);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color var(--tr-fast);
}

.post-content a:hover { color: var(--c-red); }

.post-content blockquote {
    border-left: 3px solid var(--c-red);
    padding: var(--s-3) var(--s-6);
    margin: var(--s-7) 0;
    font-family: var(--f-display);
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--c-text-soft);
}

.post-content ul, .post-content ol {
    padding-left: var(--s-6);
    margin-bottom: var(--s-5);
    list-style: disc;
}

.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: var(--s-2); }

.post-content figure { margin: var(--s-7) 0; }

.post-content figcaption {
    font-family: var(--f-ui);
    font-size: var(--t-meta);
    color: var(--c-text-mute);
    margin-top: var(--s-2);
    text-align: center;
    font-style: italic;
}

.post-content hr {
    border: none;
    border-top: 1px solid var(--c-rule);
    margin: var(--s-8) auto;
    width: 60px;
}

.post-content strong { font-weight: 700; color: var(--c-ink); }
.post-content em { font-style: italic; }


/* ==========================================================================
   17. SEARCH PAGE
   ========================================================================== */

.search-header {
    padding: var(--s-8) 0 var(--s-6);
    border-bottom: 1px solid var(--c-rule);
    margin-bottom: var(--s-6);
}

.search-header__eyebrow {
    font-family: var(--f-ui);
    font-size: var(--t-label);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-red);
    margin-bottom: var(--s-2);
    display: block;
}

.search-header__query {
    font-family: var(--f-display);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--c-ink);
    letter-spacing: -0.01em;
}

.search-header__query span {
    font-style: italic;
    color: var(--c-red);
}

.search-header__count {
    font-family: var(--f-ui);
    font-size: var(--t-meta);
    color: var(--c-text-mute);
    margin-top: var(--s-3);
    letter-spacing: 0.02em;
}

.search-no-results {
    padding: var(--s-10) 0;
    text-align: center;
}

.search-no-results__message {
    font-family: var(--f-body);
    font-style: italic;
    font-size: 1.125rem;
    color: var(--c-text-soft);
    margin-bottom: var(--s-7);
}


/* Search form (used everywhere) */
.search-form {
    display: flex;
    gap: var(--s-2);
    max-width: 480px;
}

.search-form .search-field {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--c-rule);
    border-radius: 0;
    padding: var(--s-3) var(--s-4);
    font-family: var(--f-ui);
    font-size: var(--t-nav);
    color: var(--c-ink);
    background-color: var(--c-paper);
}

.search-form .search-field:focus {
    outline: none;
    border-color: var(--c-red);
    box-shadow: 0 0 0 1px var(--c-red);
}

.search-form .search-submit {
    background-color: var(--c-ink);
    color: var(--c-paper);
    font-family: var(--f-ui);
    font-size: var(--t-label);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: var(--s-3) var(--s-5);
    border-radius: 0;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--tr-fast);
}

.search-form .search-submit:hover { background-color: var(--c-red); }


/* ==========================================================================
   18. 404
   ========================================================================== */

.error-404 {
    padding: var(--s-12) 0;
    text-align: center;
    max-width: 600px;
    margin-inline: auto;
}

.error-404__code {
    font-family: var(--f-display);
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 700;
    line-height: 1;
    color: var(--c-red);
    margin-bottom: var(--s-4);
    letter-spacing: -0.02em;
}

.error-404__headline {
    font-family: var(--f-display);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--c-ink);
    margin-bottom: var(--s-4);
    letter-spacing: -0.01em;
}

.error-404__message {
    font-family: var(--f-body);
    font-style: italic;
    font-size: 1.0625rem;
    color: var(--c-text-soft);
    margin-bottom: var(--s-7);
}

.error-404 .search-form { margin-inline: auto; justify-content: center; }


/* ==========================================================================
   19. STATIC PAGE
   ========================================================================== */

.page-header {
    padding: var(--s-8) 0 var(--s-6);
    border-bottom: 1px solid var(--c-rule);
    margin-bottom: var(--s-6);
    text-align: center;
}

.page-header__title {
    font-family: var(--f-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--c-ink);
    letter-spacing: -0.01em;
}

.page-content {
    max-width: 680px;
    margin-inline: auto;
    padding-bottom: var(--s-10);
}


/* ==========================================================================
   20. PAGINATION
   ========================================================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    padding: var(--s-8) 0 var(--s-10);
    font-family: var(--f-ui);
    font-size: var(--t-meta);
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding-inline: var(--s-3);
    border: 1px solid var(--c-rule);
    color: var(--c-ink);
    letter-spacing: 0.05em;
    font-weight: 500;
    transition: all var(--tr-fast);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: var(--c-ink);
    border-color: var(--c-ink);
    color: var(--c-paper);
}

.pagination .page-numbers.dots {
    border-color: transparent;
    background: none;
}

.pagination .prev,
.pagination .next {
    font-family: var(--f-ui);
    font-size: var(--t-label);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}


/* ==========================================================================
   21. FOOTER
   ========================================================================== */

.site-footer {
    background-color: var(--c-footer);
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--s-10);
}

.footer-rule {
    width: 100%;
    height: 3px;
    background-color: var(--c-red);
}

.footer__main { padding: var(--s-10) 0 var(--s-8); }

.footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand" "coverage" "about";
    gap: var(--s-7);
}

.footer__brand    { grid-area: brand; }
.footer__coverage { grid-area: coverage; }
.footer__about    { grid-area: about; }

.footer__site-name {
    font-family: var(--f-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: var(--s-2);
}

.footer__tagline {
    font-family: var(--f-ui);
    font-size: var(--t-tagline);
    font-weight: 500;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    margin-bottom: var(--s-4);
}

.footer__description {
    font-family: var(--f-body);
    font-style: italic;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
    max-width: 320px;
}

.footer__col-label {
    font-family: var(--f-ui);
    font-size: var(--t-label);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    padding-bottom: var(--s-3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--s-3);
}

.footer__nav ul {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
}

.footer__nav a {
    font-family: var(--f-ui);
    font-size: var(--t-meta);
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.02em;
    transition: color var(--tr-fast);
}

.footer__nav a:hover { color: var(--c-red); }

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--s-4) 0;
}

.footer__copyright {
    font-family: var(--f-ui);
    font-size: var(--t-meta);
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.02em;
    text-align: center;
}


/* ==========================================================================
   22. FALLBACK
   ========================================================================== */

.fallback-main { padding: var(--s-10) 0; }
.fallback-notice {
    font-family: var(--f-body);
    font-style: italic;
    font-size: var(--t-body);
    color: var(--c-text-mute);
    text-align: center;
}


/* ==========================================================================
   23. RESPONSIVE
   Mobile first. Upgrades activate upward.
   ========================================================================== */

/* Tablet 768px+ */
@media (min-width: 768px) {

    .top-strip__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas: "lead lead" "secondary-a secondary-b";
    }

    .card-feed__excerpt { display: block; }
    .card-feed__thumb,
    .card-feed__img-wrap { width: 180px; }

    .footer__grid {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas: "brand coverage about";
        gap: var(--s-8);
    }
}

/* Desktop 1024px+ */
@media (min-width: 1024px) {

    .top-strip__grid {
        grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas: "lead secondary-a secondary-b";
    }

    .main-feed__layout {
        grid-template-columns: minmax(0, 1fr) var(--sidebar-w);
        grid-template-areas: "feed sidebar";
    }

    .main-feed__sidebar { display: block; }

    .card-feed__thumb,
    .card-feed__img-wrap { width: 220px; }
}


/* Mobile menu transformation: under 1024px */
@media (max-width: 1023px) {

    .masthead {
        padding: var(--s-4) 0 var(--s-3);
    }

    .masthead__inner {
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "menu brand actions";
        gap: var(--s-3);
    }

    .masthead__date { display: none; }

    .masthead__title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .masthead__tagline {
        font-size: 0.625rem;
        letter-spacing: 0.18em;
        margin-top: var(--s-2);
    }

    .primary-nav-wrap > .container {
        justify-content: flex-start;
        height: 44px;
    }

    .nav-toggle {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        grid-area: menu;
        position: static;
        padding: 0;
        height: 44px;
    }

    .nav-toggle__bars {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 18px;
        height: 14px;
        flex-shrink: 0;
    }

    .nav-toggle__bar {
        display: block;
        position: static;
        width: 18px;
        height: 1.5px;
        background-color: var(--c-ink);
        margin: 0;
    }

    .nav-toggle__label {
        font-family: var(--f-ui);
        font-size: var(--t-label);
        font-weight: 600;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--c-ink);
        line-height: 1;
    }

    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--c-paper);
        border-bottom: 2px solid var(--c-rule);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 999;
        padding: 0;
    }

    .primary-nav[data-visible="true"] {
        max-height: 500px;
        border-top: 1px solid var(--c-rule-soft);
        padding: 0.5rem 0;
    }

    .primary-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        height: auto;
        padding: 0 var(--container-pad);
    }

    .primary-nav__list li {
        border-bottom: 1px solid var(--c-rule-soft);
    }

    .primary-nav__list li:last-child { border-bottom: none; }

    .primary-nav__list a {
        display: block;
        padding: 0.875rem 0;
        border-bottom: none;
        font-size: var(--t-label);
        color: var(--c-ink);
    }

    .primary-nav__list .current-menu-item > a {
        color: var(--c-red);
        border-bottom: none;
    }
}