/* =========================================================================
   Unsurfaced — main.css
   Shared tokens, reset, typography, header/footer, and common card styles.
   ========================================================================= */

/* ----- Design tokens ----- */
:root {
    --color-bg:          #ffffff;
    --color-surface:     #f6f7f9;
    --color-surface-2:   #eef0f3;
    --color-border:      #e3e6ea;
    --color-border-soft: #edf0f3;
    --color-text:        #0f172a;
    --color-text-mute:   #5b6577;
    --color-text-faint:  #8b94a3;
    --color-accent:      #0a2540;
    --color-accent-2:    #11365e;
    --color-link:        #0a2540;
    --color-link-hover:  #11365e;

    /* Signal accent — used only for "Breaking / Latest" affordances and the
       live-pulse dot. Distinct from per-category colors below so it always
       reads as a system-level alert, not a topic. */
    --color-signal:      #dc2626;
    --color-signal-2:    #b91c1c;

    /* Per-category accent palette. Used sparingly on category eyebrows, the
       active nav underline, and a thin top rule on cards/river items. The
       base navy stays as the brand anchor everywhere else. Mapping is
       applied by [data-category="<slug>"] cascading --cat-color to children.

       Slug → color (chosen for editorial signal, not decoration):
         vulnerabilities → amber       (CVE / advisory tone)
         breaches        → red         (incident / alert)
         malware         → violet      (threat actor)
         cloud-infra     → teal        (infra / pipes)
         appsec          → green       (build / secure)
         identity        → blue        (auth / sign-in)
         privacy         → indigo      (data rights)
         cybercrime      → crimson     (criminal activity)
         industry        → slate       (corporate / news) */
    --cat-vulnerabilities: #c2410c;
    --cat-breaches:        #b91c1c;
    --cat-malware:         #6d28d9;
    --cat-cloud-infra:     #0e7490;
    --cat-appsec:          #15803d;
    --cat-identity:        #1d4ed8;
    --cat-privacy:         #4338ca;
    --cat-cybercrime:      #991b1b;
    --cat-industry:        #475569;

    /* Default category color = brand navy. Components inherit --cat-color
       and any element/wrapper with [data-category] overrides it. */
    --cat-color: var(--color-accent);

    --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --font-sans:  "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI",
                  Roboto, Helvetica, Arial, sans-serif;

    --max-width: 1200px;
    --gap:        1.5rem;
    --gap-sm:     1rem;
    --gap-lg:     2.25rem;
    --radius:     2px;

    --shadow-card-hover: 0 10px 24px -12px rgba(10, 37, 64, 0.18),
                         0 2px 6px -2px rgba(10, 37, 64, 0.08);
}

/* ----- Per-category accent cascade -----
   Any element marked [data-category="<slug>"] sets --cat-color for itself
   and its descendants. Components opt in by referencing var(--cat-color)
   for their accent rule / eyebrow color. */
[data-category="vulnerabilities"] { --cat-color: var(--cat-vulnerabilities); }
[data-category="breaches"]        { --cat-color: var(--cat-breaches); }
[data-category="malware"]         { --cat-color: var(--cat-malware); }
[data-category="cloud-infra"]     { --cat-color: var(--cat-cloud-infra); }
[data-category="cloud"]           { --cat-color: var(--cat-cloud-infra); }
[data-category="appsec"]          { --cat-color: var(--cat-appsec); }
[data-category="identity"]        { --cat-color: var(--cat-identity); }
[data-category="privacy"]         { --cat-color: var(--cat-privacy); }
[data-category="privacy-policy"]  { --cat-color: var(--cat-privacy); }
[data-category="cybercrime"]      { --cat-color: var(--cat-cybercrime); }
[data-category="industry"]        { --cat-color: var(--cat-industry); }

/* ----- Reduced-motion guard -----
   Disable hover scales and transitions for users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
    .card:hover .card__image,
    .hero__link:hover .hero__image,
    .river__link:hover .river__image {
        transform: none !important;
    }
}

/* ----- Custom scrollbar -----
   Navy accent on a light surface track, matching the site palette.
   Firefox uses scrollbar-color; WebKit/Blink uses ::-webkit-scrollbar. */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) var(--color-surface);
}
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}
::-webkit-scrollbar-track {
    background: var(--color-surface);
}
::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border: 3px solid var(--color-surface);
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-2);
}
::-webkit-scrollbar-corner {
    background: var(--color-surface);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, picture, video, svg { display: block; max-width: 100%; }
a { color: var(--color-link); text-decoration: none; }
a:hover { color: var(--color-link-hover); text-decoration: underline; text-decoration-color: rgba(10,37,64,0.35); text-underline-offset: 3px; }
ul { list-style: none; padding: 0; margin: 0; }
button { font: inherit; }

/* ----- Base typography ----- */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.55;
    font-size: 1rem;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    margin: 0 0 .5em;
    letter-spacing: -0.005em;
}

p { margin: 0 0 1em; }

/* ----- Container ----- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

/* ----- Section rule (used as a heading divider) ----- */
.section-rule {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--color-accent);
    margin: 2.75rem 0 1.5rem;
    position: relative;
    text-align: left;
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
}
.section-rule span {
    display: inline-block;
    background: var(--color-bg);
    padding-right: .9rem;
    margin-top: -1.6rem;
    padding-top: .35rem;
    border-top: 3px solid var(--color-accent);
}

/* =========================================================================
   Site header — tight navy masthead with utility row + signal-red accent rule
   ========================================================================= */
.site-header {
    background-color: var(--color-accent);
    background-image:
        linear-gradient(to bottom, rgba(10, 37, 64, 0.72), rgba(10, 37, 64, 0.55)),
        url('/assets/images/header-pattern.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    border-bottom: 3px solid var(--color-signal);
}
.site-header__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.4rem 1.5rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.site-header__brand {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    line-height: 1;
    color: #ffffff;
}
.site-header__brand:hover { text-decoration: none; color: #ffffff; }
.site-header__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: -0.04em;
    flex-shrink: 0;
    position: relative;
}
.site-header__mark::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: -2px;
    height: 2px;
    background: var(--color-signal);
}
.site-header__brand-text {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    line-height: 1;
}
.site-header__wordmark {
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: clamp(1.55rem, 2.6vw, 2rem);
    letter-spacing: 0.02em;
    color: #ffffff;
    line-height: 1;
}
.site-header__tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: .82rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.01em;
    line-height: 1;
}

/* Utility row (right-aligned) */
.site-header__utility {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
}
.site-header__date {
    font-family: var(--font-sans);
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
    padding-right: 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}
.site-header__util-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-family: var(--font-sans);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.85);
    background: transparent;
    border: 0;
    padding: .35rem .15rem;
    cursor: pointer;
    text-decoration: none;
    transition: color .15s ease;
}
.site-header__util-link:hover {
    color: #ffffff;
    text-decoration: none;
}
.site-header__util-link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.site-header__util-link--subscribe {
    padding: .45rem .85rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #ffffff;
}
.site-header__util-link--subscribe:hover {
    background: var(--color-signal);
    border-color: var(--color-signal);
    color: #ffffff;
}
.site-header__util-text {
    /* hide labels on smaller screens; icon-only buttons remain accessible
       via aria-label on the anchor */
    display: inline;
}
@media (max-width: 1024px) {
    .site-header__utility { gap: .85rem; }
    .site-header__util-text { display: none; }
    .site-header__util-link--subscribe .site-header__util-text { display: inline; }
}
@media (max-width: 720px) {
    .site-header__inner {
        padding: .9rem 1.1rem;
        gap: .75rem;
    }
    .site-header__date,
    .site-header__util-link:not(.site-header__util-link--subscribe) {
        display: none;
    }
    .site-header__brand { gap: .65rem; }
    .site-header__wordmark { font-size: 1.35rem; letter-spacing: 0.015em; }
    .site-header__tagline { font-size: .72rem; }
    .site-header__mark { width: 2rem; height: 2rem; font-size: 1.15rem; }
    .site-header__util-link--subscribe {
        padding: .55rem .9rem;
        font-size: .7rem;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
    }
}
@media (max-width: 380px) {
    .site-header__tagline { display: none; }
    .site-header__wordmark { font-size: 1.25rem; }
}

/* =========================================================================
   Site footer
   ========================================================================= */
.site-footer {
    background: var(--color-accent);
    color: #cfd6e0;
    margin-top: 4rem;
}
.site-footer a { color: #ffffff; }
.site-footer a:hover { color: #cfd6e0; text-decoration-color: rgba(255,255,255,0.5); }

.site-footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
    display: grid;
    gap: 2.5rem;
    grid-template-columns: minmax(260px, 2.2fr) minmax(140px, 1fr) minmax(160px, 1.1fr) minmax(140px, 1fr);
    align-items: start;
}
.site-footer__col--brand { max-width: 420px; }
.site-footer__brand-row {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: .9rem;
}
.site-footer__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: -0.04em;
    flex-shrink: 0;
    position: relative;
}
.site-footer__mark::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: -2px;
    height: 2px;
    background: var(--color-signal);
}
.site-footer__wordmark {
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: 1.5rem;
    color: #ffffff;
    letter-spacing: 0.03em;
    line-height: 1;
}
.site-footer__blurb {
    font-size: .92rem;
    line-height: 1.6;
    color: #cfd6e0;
    margin: 0 0 1.2rem;
}

/* Social icons row (in brand column) */
.site-footer__social {
    display: flex;
    gap: .55rem;
    margin: 0 0 1.4rem;
}
.site-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.site-footer__social a:hover {
    background: var(--color-signal);
    border-color: var(--color-signal);
    color: #ffffff;
    text-decoration: none;
}
.site-footer__social svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Newsletter signup (visual only) */
.site-footer__newsletter {
    margin-top: 0;
}
.site-footer__newsletter-label {
    display: block;
    font-family: var(--font-sans);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #ffffff;
    margin-bottom: .55rem;
}
.site-footer__newsletter-form {
    display: flex;
    gap: 0;
    max-width: 360px;
}
.site-footer__newsletter-input {
    flex: 1 1 auto;
    min-width: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-right: 0;
    color: #ffffff;
    font: inherit;
    font-size: .88rem;
    padding: .65rem .75rem;
    min-height: 44px;
    outline: none;
}
.site-footer__newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}
.site-footer__newsletter-input:focus {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.12);
}
.site-footer__newsletter-btn {
    background: var(--color-signal);
    color: #ffffff;
    border: 1px solid var(--color-signal);
    font-family: var(--font-sans);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: .55rem 1.1rem;
    min-height: 44px;
    cursor: pointer;
    transition: background .15s ease;
    white-space: nowrap;
}
.site-footer__newsletter-btn:hover { background: var(--color-signal-2); border-color: var(--color-signal-2); }
.site-footer__newsletter-btn[disabled] { opacity: .65; cursor: default; }
.site-footer__newsletter-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.site-footer__newsletter-msg {
    margin: .55rem 0 0;
    min-height: 1.1em;
    font-family: var(--font-sans);
    font-size: .8rem;
    color: rgba(255, 255, 255, 0.7);
}
.site-footer__newsletter-msg--ok  { color: #8ee6a8; }
.site-footer__newsletter-msg--err { color: #ffb4b4; }
.site-footer__newsletter--done .site-footer__newsletter-form { opacity: .55; }
.site-footer__heading {
    font-family: var(--font-sans);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #ffffff;
    margin: 0 0 1rem;
}
.site-footer__links li { margin-bottom: .55rem; }
.site-footer__links a { font-size: .95rem; }
.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 1.25rem 1.5rem;
    text-align: center;
}
.site-footer__bottom p {
    max-width: var(--max-width);
    margin: 0 auto;
    font-size: .85rem;
    color: #8c98a8;
}
@media (max-width: 900px) {
    .site-footer__inner { grid-template-columns: repeat(3, 1fr); }
    .site-footer__col--brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 720px) {
    .site-footer__inner { padding: 2.25rem 1.25rem 1.5rem; gap: 2rem; grid-template-columns: repeat(2, 1fr); }
    .site-footer__col--brand { grid-column: 1 / -1; }
    .site-footer__links a { font-size: 1rem; }
    .site-footer__links li { margin-bottom: .75rem; }
    .site-footer__social { gap: .65rem; }
    .site-footer__social a { width: 44px; height: 44px; }
    .site-footer__social svg { width: 18px; height: 18px; }
    .site-footer__bottom { padding: 1.1rem 1.25rem; }
    .site-footer__bottom p { font-size: .8rem; line-height: 1.5; }
}
@media (max-width: 560px) {
    .site-footer__inner { grid-template-columns: 1fr; gap: 1.75rem; }
}
@media (max-width: 380px) {
    .site-footer__newsletter-form { flex-wrap: wrap; }
    .site-footer__newsletter-input {
        flex: 1 1 100%;
        border-right: 1px solid rgba(255, 255, 255, 0.25);
        margin-bottom: .5rem;
    }
    .site-footer__newsletter-btn { flex: 1 1 100%; }
}

/* =========================================================================
   Generic card (used in secondary grid + "more articles" strip)
   ========================================================================= */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    color: var(--color-text);
    border-top: 3px solid var(--cat-color);
    padding-top: 1rem;
    transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}
.card:hover .card__title { color: var(--cat-color); }
@media (prefers-reduced-motion: reduce) {
    .card:hover { transform: none !important; box-shadow: none !important; }
}
.card__media {
    aspect-ratio: 840 / 470;
    overflow: hidden;
    background: var(--color-surface);
    margin-bottom: .9rem;
}
.card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.card:hover .card__image { transform: scale(1.02); }
.card__body { display: flex; flex-direction: column; gap: .45rem; }
.card__title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 1.25;
    margin: 0;
    color: var(--color-text);
    transition: color .15s ease;
}
.card__excerpt {
    font-family: var(--font-sans);
    font-size: .92rem;
    line-height: 1.5;
    color: var(--color-text-mute);
    margin: 0;
}
.card__meta {
    font-family: var(--font-sans);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-faint);
    margin-top: .25rem;
}

/* ----- Inline meta separator (used between date and read-time) ----- */
.meta-sep {
    display: inline-block;
    margin: 0 .15em;
    color: var(--color-text-faint);
    opacity: 0.75;
}

/* =========================================================================
   Eyebrow (category label above titles)
   ========================================================================= */
.eyebrow {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cat-color);
    margin: 0 0 .4rem;
    line-height: 1.2;
}
.eyebrow a {
    color: inherit;
    text-decoration: none;
}
.eyebrow a:hover {
    color: var(--cat-color);
    opacity: .82;
    text-decoration: none;
}
.eyebrow--top-story {
    color: var(--color-signal);
}
/* Inline category accent inside an eyebrow (e.g. "Top Story · Breaches"),
   driven by the nearest [data-category] ancestor via the --cat-color cascade. */
.eyebrow__cat {
    color: var(--cat-color, var(--color-signal));
}
.eyebrow--article {
    margin-bottom: .7rem;
}
.eyebrow--category {
    margin-bottom: .6rem;
}

/* =========================================================================
   Breadcrumbs
   ========================================================================= */
.breadcrumbs {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--color-text-mute);
    margin: 0 0 1.25rem;
}
.breadcrumbs a {
    color: var(--color-accent);
    font-weight: 600;
}
.breadcrumbs a:hover { color: var(--color-accent-2); }
.breadcrumbs__sep {
    display: inline-block;
    margin: 0 .5em;
    color: var(--color-text-faint);
}
.breadcrumbs__current { color: var(--color-text-mute); }

/* =========================================================================
   Category nav strip (below the navy header band, on white body)
   ========================================================================= */
.category-nav {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: relative;
}
.category-nav__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    min-height: 46px;
}
.category-nav__list {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}
.category-nav__list::-webkit-scrollbar { display: none; }
.category-nav__item {
    flex-shrink: 0;
}
.category-nav__item a {
    display: inline-block;
    padding: .9rem 0;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color .15s ease, border-color .15s ease;
}
.category-nav__item a:hover {
    color: var(--color-accent-2);
    border-bottom-color: rgba(10, 37, 64, 0.25);
    text-decoration: none;
}
.category-nav__item--active a {
    color: var(--color-accent);
    border-bottom-color: var(--cat-color);
    font-weight: 700;
}

/* Hamburger button (mobile only) */
.category-nav__hamburger {
    display: none;
    align-items: center;
    gap: .55rem;
    background: transparent;
    border: 0;
    padding: .85rem .25rem;
    min-height: 44px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
}
.category-nav__bars {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 2px;
    background: var(--color-accent);
    box-shadow:
        0 -6px 0 var(--color-accent),
        0  6px 0 var(--color-accent);
}
.category-nav__hamburger-label {
    display: inline-block;
}

@media (max-width: 720px) {
    .category-nav__hamburger { display: inline-flex; }
    .category-nav__list { display: none; }
}

/* =========================================================================
   Mobile nav drawer
   ========================================================================= */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 1000;
    visibility: hidden;
}
.mobile-nav[aria-hidden="false"] { visibility: visible; }

.mobile-nav__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 37, 64, 0.55);
    opacity: 0;
    transition: opacity .2s ease;
}
.mobile-nav[aria-hidden="false"] .mobile-nav__backdrop { opacity: 1; }

.mobile-nav__panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--color-accent);
    color: #ffffff;
    padding: 2rem 1.75rem 2rem;
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: 0 0 24px rgba(0,0,0,0.25);
    overflow-y: auto;
}
.mobile-nav[aria-hidden="false"] .mobile-nav__panel { transform: translateX(0); }

.mobile-nav__close {
    position: absolute;
    top: .4rem;
    right: .8rem;
    background: transparent;
    border: 0;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: .4rem .6rem;
}

.mobile-nav__heading {
    font-family: var(--font-sans);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255,255,255,0.55);
    margin: 1.4rem 0 .6rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.mobile-nav__heading:first-of-type { margin-top: .5rem; }

.mobile-nav__list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}
.mobile-nav__list li { margin: 0; }
.mobile-nav__list a {
    display: block;
    padding: .7rem 0;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.05rem;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav__list a:hover,
.mobile-nav__list a.is-active {
    color: #ffffff;
    text-decoration: none;
    background: rgba(255,255,255,0.06);
    padding-left: .5rem;
}

body.mobile-nav-open { overflow: hidden; }

/* =========================================================================
   River (thumbnail-left list, used on home + category pages)
   ========================================================================= */
.river { margin-top: 1rem; }
.river__list { display: flex; flex-direction: column; }
.river__item {
    position: relative;
    border-top: 1px solid var(--color-border-soft);
}
.river__item:first-child { border-top: none; }
/* Thin category-colored top rule on every river item, layered on top of the
   neutral hairline so the divider remains intact when no category is set. */
.river__item::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 2px;
    background: var(--cat-color);
    opacity: .85;
    pointer-events: none;
}
.river__item:first-child::before { top: 0; }
.river__link {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.4rem;
    align-items: flex-start;
    padding: 1.25rem 0;
    color: var(--color-text);
}
.river__link:hover { text-decoration: none; }
.river__link:hover .river__title { color: var(--cat-color); }
.river__media {
    aspect-ratio: 840 / 470;
    overflow: hidden;
    background: var(--color-surface);
}
.river__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.river__link:hover .river__image { transform: scale(1.02); }
.river__body { display: flex; flex-direction: column; gap: .35rem; }
.river__title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1.22;
    margin: 0;
    transition: color .15s ease;
}
.river__excerpt {
    font-family: var(--font-sans);
    font-size: .93rem;
    line-height: 1.5;
    color: var(--color-text-mute);
    margin: 0;
}
.river__meta {
    font-family: var(--font-sans);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: var(--color-text-faint);
    margin-top: .15rem;
}
.river__body .eyebrow { margin-bottom: .3rem; }
@media (max-width: 720px) {
    .river__link { grid-template-columns: 130px 1fr; gap: 1rem; }
    .river__title { font-size: 1.1rem; }
}
@media (max-width: 480px) {
    .river__link { grid-template-columns: 110px 1fr; gap: .85rem; }
    .river__excerpt { display: none; }
}

/* =========================================================================
   Pagination (shared by home and category pages)
   ========================================================================= */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin: 3rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}
.pagination__link {
    display: inline-block;
    padding: .55rem 1.1rem;
    font-family: var(--font-sans);
    font-size: .9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-bg);
    background: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius);
}
.pagination__link:hover {
    background: var(--color-accent-2);
    border-color: var(--color-accent-2);
    color: #ffffff;
    text-decoration: none;
}
.pagination__link--disabled {
    background: var(--color-surface-2);
    border-color: var(--color-border);
    color: var(--color-text-faint);
    cursor: default;
}
.pagination__link--disabled:hover {
    background: var(--color-surface-2);
    border-color: var(--color-border);
    color: var(--color-text-faint);
}
.pagination__status {
    font-family: var(--font-sans);
    font-size: .85rem;
    color: var(--color-text-mute);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* =========================================================================
   Ad slot placeholder (reserved space, no styling visible)
   ========================================================================= */
.ad-slot { display: none; }

/* =========================================================================
   Breaking / Latest strip — sits directly under masthead, above category nav.
   Live-pulse dot uses --color-signal. Marquee-free: a static, scroll-on-mobile
   list of the 3 newest headlines.
   ========================================================================= */
.breaking-strip {
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    font-family: var(--font-sans);
    font-size: .85rem;
}
.breaking-strip__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: .35rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
}
.breaking-strip__label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
    font-weight: 800;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--color-signal);
    padding-right: .9rem;
    border-right: 1px solid var(--color-border);
}
.breaking-strip__pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-signal);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.55);
    animation: breaking-pulse 1.8s ease-out infinite;
}
@keyframes breaking-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .breaking-strip__pulse { animation: none; }
}
.breaking-strip__list {
    display: flex;
    gap: 1.4rem;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1 1 auto;
    min-width: 0;
}
.breaking-strip__list::-webkit-scrollbar { display: none; }
.breaking-strip__item {
    display: inline-flex;
    align-items: baseline;
    gap: .55rem;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 100%;
}
.breaking-strip__item + .breaking-strip__item {
    padding-left: 1.4rem;
    border-left: 1px solid var(--color-border-soft);
}
.breaking-strip__date {
    color: var(--color-text-faint);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    flex-shrink: 0;
}
.breaking-strip__link {
    color: var(--color-text);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 38ch;
    padding: .55rem 0;
    display: inline-block;
    line-height: 1.3;
}
.breaking-strip__link:hover {
    color: var(--color-signal);
    text-decoration: none;
}
@media (max-width: 720px) {
    .breaking-strip__inner { padding: .25rem 1rem; gap: .65rem; }
    .breaking-strip__label { padding-right: .65rem; font-size: .68rem; letter-spacing: 0.12em; }
    .breaking-strip__list { gap: 1rem; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; padding-right: 1rem; }
    .breaking-strip__item { scroll-snap-align: start; }
    .breaking-strip__item + .breaking-strip__item { padding-left: 1rem; }
    .breaking-strip__link { max-width: 24ch; padding: .65rem 0; }
}

/* =========================================================================
   Meta icons (used inline with date / read-time in card + river meta lines)
   Inherits color from parent .meta or .card__meta.
   ========================================================================= */
.meta-icon {
    width: 12px;
    height: 12px;
    display: inline-block;
    vertical-align: -1px;
    margin-right: .3rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .75;
}
.meta-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
.meta-item + .meta-item {
    margin-left: .9rem;
    padding-left: .9rem;
    border-left: 1px solid var(--color-border-soft);
}
