/*
 * fcc-chrome.css — GENERATED BUNDLE. DO NOT EDIT BY HAND.
 *
 * Concatenation of the sitewide chrome css assets, in nginx
 * injection order (== cascade/execution order — do not reorder):
 *    1. fcc-tokens.css
 *    2. fcc-editorial-tokens.css
 *    3. fcc-components.css
 *    4. fcc-layout.css
 *    5. fcc-unified-topbar.css
 *    6. fcc-site-rail.css
 *    7. fcc-sections.css
 *    8. fcc-archetypes.css
 *    9. fcc-auth-dialog.css
 *   10. fcc-version.css
 *   11. fcc-search-overlay.css
 *
 * Regenerate with scripts/build_chrome_bundle.sh after editing ANY
 * source file above, then bump the ?v= on the server-level '</body>'
 * sub_filter line in nginx/fcc.cc.nginx so clients refetch the bundle.
 */

/* ===== fcc-tokens.css ===== */
/* fcc-tokens.css — Canonical design tokens for the fcc.cc ecosystem
 *
 * Load AFTER fcc-theme-boot.js (which sets --bg, --text, etc. on :root)
 * so that themed values override defaults here.
 *
 * Breakpoints (can't be CSS vars, documented here):
 *   --bp-sm:  560px   (compact phones)
 *   --bp-md:  768px   (tablets / large phones)
 *   --bp-lg:  1024px  (small desktops)
 *   --bp-xl:  1280px  (wide desktops)
 */

:root {
  /* ── Core palette ────────────────────────────────────────────────────────── */
  --bg:         #0c0d0f;
  --panel:      #111214;
  --panel-2:    #15171a;
  --text:       #f5f6f7;
  --text-dim:   #9aa3b2;
  --accent:     #c7d2fe;
  --accent-2:   #e0e7ff;
  --border:     #2a2a2a;
  --line:       #1e1e1e;

  /* ── Semantic colors ─────────────────────────────────────────────────────── */
  --success:    #4ade80;
  --warning:    #fbbf24;
  --danger:     #f87171;
  --info:       #818cf8;

  /* ── Button defaults ─────────────────────────────────────────────────────── */
  --btn-bg:     #e5e7eb;
  --btn-bg-hover:#f3f4f6;
  --btn-text:   #111214;
  --btn-border: #2a2a2a;

  /* ── Aliases (backward compat + per-site naming) ─────────────────────────── */
  --ink:         var(--text);
  --muted:       var(--text-dim);
  --dim:         var(--text-dim);
  --panel2:      var(--panel-2);
  --panel-soft:  rgba(255, 255, 255, 0.04);
  --accent2:     var(--accent-2);

  /* ── Penny Press / Site Network design tokens ────────────────────────────
     These are the canonical names used by fcc-unified-topbar.css,
     fcc-site-rail.css, fcc-archetypes.css, fcc-sections.css.
     They alias to the existing --bg / --text tokens so legacy CSS that
     reads --bg / --text keeps working; theme-boot overrides them
     per-preset to the design's exact hex values. */
  --paper:       var(--bg);
  --paper-2:     var(--panel);
  --paper-3:     var(--panel-2);
  --ink-2:       var(--text-dim);
  --ink-3:       #8a8276;
  --ink-4:       #5a564e;
  --rule:        var(--border);
  --rule-2:      color-mix(in srgb, var(--border) 70%, transparent);
  --accent-wash: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-ink:  var(--bg);
  --whisker-w:   56px;
  --whisker-h:   3px;
  --maxw:        1280px;
  --gutter:      32px;

  /* ── Transparency layers (for overlays / glassmorphism) ──────────────────── */
  --overlay-light: rgba(255, 255, 255, 0.04);
  --overlay-med:   rgba(255, 255, 255, 0.08);
  --overlay-heavy: rgba(0, 0, 0, 0.5);

  /* ── Typography ──────────────────────────────────────────────────────────── */
  --sans:  Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Source Serif 4', 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, 'Times New Roman', serif;
  --mono:  'Lilex', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

  /* Type scale (major-third ~1.25) */
  --text-xs:    0.75rem;   /* 12px */
  --text-sm:    0.875rem;  /* 14px */
  --text-base:  1rem;      /* 16px */
  --text-lg:    1.125rem;  /* 18px */
  --text-xl:    1.25rem;   /* 20px */
  --text-2xl:   1.5rem;    /* 24px */
  --text-3xl:   1.875rem;  /* 30px */
  --text-4xl:   2.25rem;   /* 36px */

  --leading-tight:  1.25;
  --leading-normal: 1.45;
  --leading-loose:  1.65;

  /* ── Spacing scale ───────────────────────────────────────────────────────── */
  --sp-1:   0.25rem;   /* 4px */
  --sp-2:   0.5rem;    /* 8px */
  --sp-3:   0.75rem;   /* 12px */
  --sp-4:   1rem;      /* 16px */
  --sp-5:   1.25rem;   /* 20px */
  --sp-6:   1.5rem;    /* 24px */
  --sp-8:   2rem;      /* 32px */
  --sp-10:  2.5rem;    /* 40px */
  --sp-12:  3rem;      /* 48px */
  --sp-16:  4rem;      /* 64px */

  /* ── Borders & Radius ────────────────────────────────────────────────────── */
  --radius-sm:  0.25rem;
  --radius:     0.35rem;
  --radius-md:  0.5rem;
  --radius-lg:  0.75rem;
  --radius-xl:  1rem;
  --radius-full: 9999px;

  /* ── Shadows ─────────────────────────────────────────────────────────────── */
  --shadow-sm:   0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow:      0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg:   0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-xl:   0 22px 58px rgba(0, 0, 0, 0.36);

  /* ── Z-index scale ───────────────────────────────────────────────────────── */
  --z-dropdown:  100;
  --z-sticky:    500;
  --z-overlay:   1000;
  --z-modal:     5000;
  --z-topbar:    9000;
  --z-fab:       9700;
  --z-toast:     9800;

  /* ── Transitions ─────────────────────────────────────────────────────────── */
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast:   0.1s;
  --duration-normal: 0.15s;
  --duration-slow:   0.3s;

  /* ── Layout ──────────────────────────────────────────────────────────────── */
  --container-sm:  640px;
  --container:     1100px;
  --container-lg:  1280px;
  --container-xl:  1440px;
  --topbar-h:      56px;
}

/* ── Light mode — complete palette ──────────────────────────────────────────
   The light/dark toggle now flips ONLY html[data-mode]; each page's own
   colors win on top, and these are the shared DEFAULT light palette (warm
   newsprint) for any page that doesn't define its own. This block MUST be
   self-sufficient — historically the core --bg/--text/--panel/--border light
   values were written inline by the swatch machinery (applyPresetToRoot), so
   removing the swatches would otherwise leave a dark background under
   data-mode="light". Core palette first, then the secondary tokens that also
   need flipping (text-dim, overlays, accent, buttons, shadows). */
html[data-mode="light"] {
  /* Core palette — the formerly-inline light values, now CSS-owned. */
  --bg:        #f7f2e6;
  --panel:     #fffbee;
  --panel-2:   #f0e9d3;
  --text:      #1a1816;
  --border:    #d7cfb9;
  --line:      #e4ddc8;

  --text-dim:     #5a6370;
  --muted:        #5a6370;
  --dim:          #5a6370;
  --ink:          var(--text);

  /* Panels/cards — slightly darker than bg so cards retain structure on
     near-white pages. applyPresetToRoot sets --panel too; this is a
     stronger default for anything that reads --panel-soft/overlay-*. */
  --panel-soft:   rgba(0, 0, 0, 0.04);
  --overlay-light: rgba(0, 0, 0, 0.04);
  --overlay-med:   rgba(0, 0, 0, 0.08);
  --overlay-heavy: rgba(0, 0, 0, 0.45);

  /* Accent on light mode — the saturated editorial red (from the
     Commons design's PAPERS table for light papers). */
  --accent:       oklch(0.48 0.18 27);
  --accent-2:     oklch(0.55 0.16 27);
  --accent2:      oklch(0.55 0.16 27);

  /* Buttons — dark fill on a dark page inverts to a light fill on a
     light page. Keep text dark for legibility on the button face. */
  --btn-bg:       rgba(0, 0, 0, 0.06);
  --btn-bg-hover: rgba(0, 0, 0, 0.10);
  --btn-text:     #1a1a1a;
  --btn-border:   rgba(0, 0, 0, 0.18);

  /* Shadows — softer on light mode; pure black at full opacity looks
     harsh against cream/white. */
  --shadow-sm:    0 1px 3px  rgba(0, 0, 0, 0.08);
  --shadow:       0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg:    0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl:    0 22px 58px rgba(0, 0, 0, 0.14);

  /* Penny Press tokens — light versions. Theme-boot may also write
     these per-preset; these are the safe defaults if it doesn't. */
  --ink-3:        #6a655c;
  --ink-4:        #9a9388;
  --rule-2:       color-mix(in srgb, var(--border) 70%, transparent);
  --accent-ink:   var(--bg);
}

/* ===== fcc-editorial-tokens.css ===== */
/* fcc-editorial-tokens.css
 * ------------------------------------------------------------------
 * Editorial layer for the fcc.cc design refresh.
 * Load AFTER fcc-tokens.css and AFTER fcc-theme-boot.js.
 *
 *   <script src="/shared/fcc-theme-boot.js"></script>       <!-- sets --bg etc. -->
 *   <link rel="stylesheet" href="/shared/fcc-tokens.css">
 *   <link rel="stylesheet" href="/shared/fcc-editorial-tokens.css"><!-- this -->
 *   <link rel="stylesheet" href="/shared/commons.css">       <!-- site CSS -->
 *
 * What this adds on top of fcc-tokens.css:
 *   1. A 4-step ink hierarchy (--ink, --ink-2, --ink-3, --ink-4) so body
 *      copy, meta text, captions, and subtle UI all sit on one scale instead
 *      of every component hand-picking rgba(255,255,255,.5).
 *   2. A secondary rule color (--rule-2) for nested borders inside cards.
 *   3. A four-token accent ramp (--accent, --accent-2, --accent-wash, --accent-ink)
 *      tuned to the current theme mode. Light mode gets a saturated editorial
 *      red; dark mode gets a pastel version that reads at the same contrast.
 *   4. Surface aliases (--paper, --paper-2, --paper-3, --rule) that match the
 *      Commons design tokens. Cheap to adopt; purely additive.
 *
 * Key assumption:
 *   fcc-theme-boot.js (v2) sets `data-mode="dark"` or `data-mode="light"` on
 *   <html>. This stylesheet keys off that attribute instead of branching on
 *   individual preset names, so any future themes added to the PRESETS table
 *   in the boot script automatically pick up the right ink scale.
 * ------------------------------------------------------------------ */

/* ── Defaults (applied before data-mode is set; mirror dark) ────────────── */
:root {
  /* Paper / surface aliases. These map the Commons design vocabulary onto
     the live site's canonical tokens. Everything downstream can keep using
     --bg / --panel; these are for editorial code that wants "paper" naming. */
  --paper:    var(--bg);
  --paper-2:  var(--panel);
  --paper-3:  var(--panel-2);
  --rule:     var(--border);

  /* Ink hierarchy — defaults are dark-mode values; overridden below.
     Penny Press direction: warm cream rather than cool grey. */
  --ink:      var(--text);
  --ink-2:    #c8c0b0;   /* body-secondary (warm cream) */
  --ink-3:    #8a8276;   /* meta / captions / tracked caps */
  --ink-4:    #5a564e;   /* very dim — kickers when inactive */
  --rule-2:   #24282f;   /* nested borders inside cards */

  /* Accent ramp — editorial red (Penny Press), the only accent. */
  --accent:      #d4593f;
  --accent-2:    #e87a5e;
  --accent-wash: color-mix(in srgb, #d4593f 14%, transparent);
  --accent-ink:  #0d0e10;  /* text color used on top of solid accent fills */

  /* Whisker geometry — drives section-head accent rule width/height. */
  --whisker-w: 56px;
  --whisker-h: 3px;

  /* home-field-bulletin.css and home-inline.css read this alias. */
  --fcc-editorial-red: var(--accent);
}

/* ── Dark mode — explicit, overrides defaults when boot sets data-mode ──── */
html[data-mode="dark"] {
  --ink:    var(--text);
  --ink-2:  #c8c0b0;
  --ink-3:  var(--text-dim);
  --ink-4:  #5a564e;
  --rule-2: color-mix(in srgb, var(--border) 65%, transparent);

  --accent:      #d4593f;
  --accent-2:    #e87a5e;
  --accent-wash: color-mix(in srgb, #d4593f 14%, transparent);
  --accent-ink:  #0d0e10;
}

/* Penny — explicit preset binding so theme-picker selection re-applies the
   ramp even when the user lands from a light-mode preset. */
html[data-fcc-v2-theme-preset="penny"] {
  --accent:      #d4593f;
  --accent-2:    #e87a5e;
  --accent-wash: color-mix(in srgb, #d4593f 14%, transparent);
  --accent-ink:  #0d0e10;
}

/* Ochre — amber accent variant. */
html[data-fcc-v2-theme-preset="ochre"] {
  --accent:      #d4a445;
  --accent-2:    #e8bd6a;
  --accent-wash: color-mix(in srgb, #d4a445 12%, transparent);
  --accent-ink:  #14110d;
}

/* Forest (ivy) — keep red accent ramp under Penny Press; just widen the wash
   so it reads on green bg. */
html[data-fcc-v2-theme-preset="forest"] {
  --accent-wash: color-mix(in srgb, #d4593f 14%, transparent);
}

/* ── Light mode — warm ink scale, saturated editorial red ───────────────── */
html[data-mode="light"] {
  --ink:    var(--text);
  --ink-2:  #3d3a36;
  --ink-3:  var(--text-dim);
  --ink-4:  #9d988e;
  --rule-2: color-mix(in srgb, var(--border) 70%, transparent);

  --accent:      #a33827;   /* deeper red for paper readability */
  --accent-2:    #b84a38;
  --accent-wash: color-mix(in srgb, #a33827 8%, transparent);
  --accent-ink:  #ffffff;   /* white-on-red fills */
}

/* Newsprint is warmer; push the paper aliases to reflect that warmth. */
html[data-fcc-v2-theme-preset="newsprint"] {
  --paper-3:  #ebe4cd;
  --ink-4:    #a39c88;
}

/* ── Mode-aware surface tweaks ──────────────────────────────────────────── */

/* Panel shadows: dark uses deep black, light uses warm gray with alpha.
   Components that import fcc-tokens.css can pick --shadow-paper to get the
   right treatment automatically. */
html[data-mode="dark"]  { --shadow-paper: 0 4px 16px rgba(0, 0, 0, 0.35); }
html[data-mode="light"] { --shadow-paper: 0 1px 2px rgba(42, 36, 24, 0.06), 0 4px 16px rgba(42, 36, 24, 0.08); }

/* ── Utility classes (optional — pages can opt in) ─────────────────────── */

.paper       { background: var(--paper);   color: var(--ink); }
.paper-2     { background: var(--paper-2); color: var(--ink); }
.ink-2       { color: var(--ink-2); }
.ink-3       { color: var(--ink-3); }
.ink-4       { color: var(--ink-4); }
.rule-top    { border-top:    1px solid var(--rule); }
.rule-bottom { border-bottom: 1px solid var(--rule); }
.rule-2-top  { border-top:    1px solid var(--rule-2); }

/* Accent text + fill helpers used by callouts, tab indicators, pill counts */
.accent-text { color: var(--accent); }
.accent-wash { background: var(--accent-wash); color: var(--accent); }
.accent-fill { background: var(--accent); color: var(--accent-ink); }

/* ── Light-mode regression hotfixes ─────────────────────────────────────── *
 * The live site currently assumes dark everywhere, so a lot of components
 * reach for rgba(255,255,255,…) borders and dark-colored shadows. These
 * selectors flip the most common offenders to tokenized values when the
 * page is rendering under a light theme. Targeted — no mass !important.
 * ------------------------------------------------------------------------- */

html[data-mode="light"] .card,
html[data-mode="light"] .pill,
html[data-mode="light"] .panel,
html[data-mode="light"] .about-panel,
html[data-mode="light"] .status-banner {
  border-color: var(--border);
  background:   var(--panel);
  color:        var(--text);
  box-shadow:   var(--shadow-paper);
}

/* White-on-transparent borders disappear on paper — use rule color instead */
html[data-mode="light"] *[style*="rgba(255, 255, 255"] { /* documentation only; not a selector you'd rely on */ }

/* Common utility selectors the live codebase uses for "soft surfaces" */
html[data-mode="light"] .fcc-v2-themebox {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--border);
  box-shadow: var(--shadow-paper);
}
html[data-mode="light"] .fcc-v2-themebox-title { color: var(--ink-3); }

html[data-mode="light"] .fcc-global-top-btn,
html[data-mode="light"] #backToTopBtn,
html[data-mode="light"] .back-to-top,
html[data-mode="light"] .scroll-to-top,
html[data-mode="light"] .to-top {
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
  box-shadow: var(--shadow-paper) !important;
}

/* Pages that toggle local dark mode via data-theme="dark" (e.g. the
 * fcc-library reader's Dark button) keep data-mode="light" if the FCC
 * site-wide preset is light. Without this override, the light-mode
 * Top-button rule above paints cream-on-cream because var(--text)
 * cascades through the page's local dark tokens to a light value.
 * Mirror the base dark styling from fcc-v2-controls.css. */
html[data-theme="dark"] .fcc-global-top-btn,
html[data-theme="dark"] #backToTopBtn,
html[data-theme="dark"] .back-to-top,
html[data-theme="dark"] .scroll-to-top,
html[data-theme="dark"] .to-top {
  background: rgba(8, 10, 14, 0.86) !important;
  color: #f5f6f7 !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.38) !important;
}

/* Overlays & scrims */
html[data-mode="light"] { --overlay-light: rgba(0, 0, 0, 0.04);
                          --overlay-med:   rgba(0, 0, 0, 0.08);
                          --overlay-heavy: rgba(0, 0, 0, 0.35); }

/* ── Newspaper-signature section heads ──────────────────────────────── *
 * Penny Press direction: the .section-head treatment is the sitewide
 * signature. Thin ink rule beneath the title, 56×3px editorial-red
 * whisker on the leading edge. Applied to every .section-head whether
 * the host page opts in via body.fcc-editorial-page or not. Commons
 * pages already share .section-head — they pick up the whisker via
 * this rule now too. Typography overrides below stay scoped to
 * fcc-editorial-page so they don't clobber commons.css's heading rules.
 * -------------------------------------------------------------------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--text, currentColor);
  padding-bottom: 0.55rem;
  margin-bottom: 1.1rem;
  position: relative;
}
.section-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: var(--whisker-h, 3px);
  width: var(--whisker-w, 56px);
  background: var(--accent, #d4593f);
}
body.fcc-editorial-page .section-head .section-title,
body.fcc-editorial-page .section-head > h2,
body.fcc-editorial-page .section-head > h3 {
  margin: 0;
  font-family: 'Source Serif 4', Charter, 'Iowan Old Style', Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
body.fcc-editorial-page .section-head .section-link,
body.fcc-editorial-page .section-head .hint,
body.fcc-editorial-page .section-head .hint-link {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim, var(--ink-3, #9aa3b2));
  white-space: nowrap;
  text-decoration: none;
  font-weight: 500;
}
body.fcc-editorial-page .section-head .section-link:hover,
body.fcc-editorial-page .section-head .hint-link:hover {
  color: var(--text, currentColor);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent, currentColor);
}

/* Editorial pages: default <hr> and inline dividers get the same red-
   whisker treatment used on section heads, so the page has one
   consistent typographic signature. */
body.fcc-editorial-page hr {
  border: 0;
  border-top: 1px solid var(--border, var(--text, currentColor));
  margin: 1.5rem 0;
  position: relative;
  height: 0;
}
body.fcc-editorial-page hr::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  height: 1px;
  width: 56px;
  background: var(--accent, #d4593f);
}

/* Small-caps eyebrow utility — editorial pages can opt-in on any element
   with class="eyebrow" to get the tracked small-caps label treatment
   used across Commons section intros. */
body.fcc-editorial-page .eyebrow {
  display: inline-block;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim, var(--ink-3, #9aa3b2));
  font-weight: 500;
  margin-bottom: 0.6rem;
}

/* ── Newspaper-signature dash heads (front-page desktop dashboard) ────
 * The fcc.cc home uses .home-dash-head / .home-dash-title / .home-dash-link
 * instead of the .section-head vocabulary. These rules port the same
 * editorial signature (ink rule + red whisker + serif title + tracked caps
 * microcopy) onto that variant so the front page matches the rest of the
 * editorial treatment. Scoped inside html.desktop-v2-enabled because the
 * existing .home-dash-* rules that we override live under that scope.
 * -------------------------------------------------------------------- */
html.desktop-v2-enabled body.fcc-editorial-page .home-dash-head {
  border-bottom: 1px solid var(--text, currentColor);
  padding-bottom: 0.55rem;
  margin-bottom: 1.1rem;
  position: relative;
}
html.desktop-v2-enabled body.fcc-editorial-page .home-dash-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 56px;
  background: var(--accent, #d4593f);
}
html.desktop-v2-enabled body.fcc-editorial-page .home-dash-title {
  font-family: 'Source Serif 4', Charter, 'Iowan Old Style', Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
html.desktop-v2-enabled body.fcc-editorial-page .home-dash-link {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-dim, var(--ink-3, #9aa3b2));
  text-decoration: none;
  white-space: nowrap;
}
html.desktop-v2-enabled body.fcc-editorial-page .home-dash-link:hover,
html.desktop-v2-enabled body.fcc-editorial-page .home-dash-link:focus-visible {
  color: var(--text, currentColor);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent, currentColor);
}

/* Retired meta-bar (ef6fa69c5, 2026-05-16). Sitewide hide so cached fcc-editorial.js
 * still drawing the bar on returning visitors gets neutralised immediately, instead
 * of waiting up to 7d for the immutable /shared/ cache to expire. */
.fcc-meta-bar { display: none !important; }

/* ===== fcc-components.css ===== */
/* fcc-components.css — Reusable UI components for the fcc.cc ecosystem
 *
 * Depends on: fcc-tokens.css (loaded first)
 * Optional:   fcc-layout.css
 *
 * All classes prefixed with .fcc- to avoid collisions with per-site styles.
 */

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.fcc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  border: 2px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-text);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--duration-fast), color var(--duration-fast);
  text-decoration: none;
}
.fcc-btn:hover { background: var(--btn-bg-hover); }
.fcc-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fcc-btn:disabled, .fcc-btn[aria-disabled="true"] {
  opacity: 0.4; pointer-events: none;
}

/* Ghost variant (transparent bg, accent border) */
.fcc-btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.fcc-btn--ghost:hover {
  background: var(--overlay-light);
  border-color: var(--accent);
  color: var(--accent);
}

/* Accent variant */
.fcc-btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.fcc-btn--accent:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

/* Danger variant */
.fcc-btn--danger {
  background: transparent;
  border-color: var(--danger);
  color: var(--danger);
}
.fcc-btn--danger:hover { background: rgba(248, 113, 113, 0.1); }

/* Size modifiers */
.fcc-btn--sm { padding: 0.35rem 0.7rem; font-size: var(--text-xs); }
.fcc-btn--lg { padding: 0.8rem 1.5rem; font-size: var(--text-base); }

/* Icon-only button */
.fcc-btn--icon {
  padding: 0.5rem;
  border: none;
  background: transparent;
  color: var(--text-dim);
}
.fcc-btn--icon:hover { color: var(--text); background: var(--overlay-light); }

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.fcc-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5) var(--sp-6);
}
.fcc-card--interactive {
  cursor: pointer;
  transition: border-color var(--duration-normal), box-shadow var(--duration-normal);
}
.fcc-card--interactive:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

/* ── Badges ────────────────────────────────────────────────────────────────── */
.fcc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--overlay-light);
  color: var(--text-dim);
}
.fcc-badge--accent  { background: rgba(199, 210, 254, 0.15); color: var(--accent); }
.fcc-badge--success { background: rgba(74, 222, 128, 0.15);  color: var(--success); }
.fcc-badge--warning { background: rgba(251, 191, 36, 0.15);  color: var(--warning); }
.fcc-badge--danger  { background: rgba(248, 113, 113, 0.15); color: var(--danger); }
.fcc-badge--info    { background: rgba(129, 140, 248, 0.15); color: var(--info); }

/* ── Form inputs ───────────────────────────────────────────────────────────── */
.fcc-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  font: inherit;
  font-size: var(--text-sm);
  outline: none;
  transition: border-color var(--duration-normal);
}
.fcc-input:focus { border-color: var(--accent); }
.fcc-input::placeholder { color: var(--text-dim); }

.fcc-input--sm { padding: 0.4rem 0.7rem; font-size: var(--text-xs); }

.fcc-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-1);
}

/* ── Select ────────────────────────────────────────────────────────────────── */
.fcc-select {
  appearance: none;
  background: rgba(255, 255, 255, 0.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa3b2' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 0.8rem center;
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 2.4rem 0.65rem 1rem;
  font: inherit;
  font-size: var(--text-sm);
  outline: none;
  cursor: pointer;
  transition: border-color var(--duration-normal);
}
.fcc-select:focus { border-color: var(--accent); }

/* ── Chip / Pill ───────────────────────────────────────────────────────────── */
.fcc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast);
}
.fcc-chip:hover, .fcc-chip[aria-pressed="true"], .fcc-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* ── Modal / Dialog ────────────────────────────────────────────────────────── */
.fcc-dialog {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  color: var(--text);
  padding: var(--sp-6);
  max-width: min(28rem, calc(100vw - 2rem));
  width: 100%;
  box-shadow: var(--shadow-xl);
}
.fcc-dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.fcc-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}
.fcc-dialog__title {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 700;
}

/* ── Empty state ───────────────────────────────────────────────────────────── */
.fcc-empty {
  text-align: center;
  padding: var(--sp-10) var(--sp-6);
  color: var(--text-dim);
}
.fcc-empty__icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--sp-4);
  opacity: 0.5;
}
.fcc-empty__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 var(--sp-2);
}
.fcc-empty__desc {
  margin: 0;
  font-size: var(--text-sm);
}

/* ── Divider ───────────────────────────────────────────────────────────────── */
.fcc-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: var(--sp-6) 0;
}

/* ── Loading spinner ───────────────────────────────────────────────────────── */
.fcc-spinner {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: fcc-spin 0.6s linear infinite;
}
@keyframes fcc-spin { to { transform: rotate(360deg); } }

/* ── Skeleton loader ───────────────────────────────────────────────────────── */
.fcc-skeleton {
  background: linear-gradient(90deg, var(--panel) 25%, var(--panel-2) 50%, var(--panel) 75%);
  background-size: 200% 100%;
  animation: fcc-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes fcc-shimmer { to { background-position: -200% 0; } }

/* ── Toast / Snackbar ──────────────────────────────────────────────────────── */
.fcc-toast {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: var(--z-toast);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: var(--text-sm);
  color: var(--text);
  transform: translateY(calc(100% + 2rem));
  opacity: 0;
  transition: transform var(--duration-slow) var(--ease-default),
              opacity var(--duration-slow);
}
.fcc-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.fcc-toast--success { border-left: 3px solid var(--success); }
.fcc-toast--danger  { border-left: 3px solid var(--danger); }
.fcc-toast--warning { border-left: 3px solid var(--warning); }

/* ── Tabs ──────────────────────────────────────────────────────────────────── */
.fcc-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
}
.fcc-tab {
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-dim);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color var(--duration-fast), border-color var(--duration-fast);
}
.fcc-tab:hover { color: var(--text); }
.fcc-tab[aria-selected="true"], .fcc-tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── Avatar ────────────────────────────────────────────────────────────────── */
.fcc-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--panel-2);
  border: 1px solid var(--border);
}
.fcc-avatar--sm { width: 1.5rem; height: 1.5rem; }
.fcc-avatar--lg { width: 3.5rem; height: 3.5rem; }

/* ── Stat card ─────────────────────────────────────────────────────────────── */
.fcc-stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.fcc-stat__value {
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}
.fcc-stat__label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Timeline / Activity item ──────────────────────────────────────────────── */
.fcc-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.fcc-timeline__item {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
}
.fcc-timeline__item:last-child { border-bottom: none; }
.fcc-timeline__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 0.45rem;
}
.fcc-timeline__body { flex: 1; min-width: 0; }
.fcc-timeline__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}
.fcc-timeline__meta {
  font-size: var(--text-xs);
  color: var(--text-dim);
  margin-top: var(--sp-1);
}

/* ── Related Exhibits (museum cross-links) ─────────────────────────────────── */
.fcc-related-exhibits {
  max-width: var(--container);
  margin: var(--sp-8) auto var(--sp-6);
  padding: var(--sp-5);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.fcc-related-exhibits__title {
  margin: 0 0 var(--sp-4);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}
.fcc-related-exhibits__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-3);
}
.fcc-related-exhibits__item { margin: 0; }
.fcc-related-exhibits__link {
  display: block;
  height: 100%;
  padding: var(--sp-3) var(--sp-4);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--duration-fast), background var(--duration-fast), transform var(--duration-fast);
}
.fcc-related-exhibits__link:hover,
.fcc-related-exhibits__link:focus-visible {
  border-color: var(--accent);
  background: var(--overlay-light);
  outline: none;
  transform: translateY(-1px);
}
.fcc-related-exhibits__name {
  display: block;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--sp-1);
}
.fcc-related-exhibits__blurb {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-dim);
  line-height: var(--leading-normal);
}

/* ── Utilities ────────────────────────────────────────────────────────────────
   Sitewide utility classes used to replace common inline style="..." patterns
   so the CSP can drop 'unsafe-inline' from style-src. */
.fcc-u-hidden { display: none !important; }


/* ===== fcc-layout.css ===== */
/* fcc-layout.css — Grid, container, and responsive utilities
 *
 * Depends on: fcc-tokens.css
 *
 * Breakpoints:
 *   sm:  ≥560px
 *   md:  ≥768px
 *   lg:  ≥1024px
 *   xl:  ≥1280px
 */

/* ── Container ─────────────────────────────────────────────────────────────── */
.fcc-container       { max-width: var(--container);    margin: 0 auto; padding: 0 var(--sp-6); }
.fcc-container--sm   { max-width: var(--container-sm); }
.fcc-container--lg   { max-width: var(--container-lg); }
.fcc-container--xl   { max-width: var(--container-xl); }

/* ── Stack (vertical flex) ─────────────────────────────────────────────────── */
.fcc-stack     { display: flex; flex-direction: column; gap: var(--sp-4); }
.fcc-stack--sm { gap: var(--sp-2); }
.fcc-stack--lg { gap: var(--sp-8); }

/* ── Row (horizontal flex) ─────────────────────────────────────────────────── */
.fcc-row          { display: flex; align-items: center; gap: var(--sp-4); }
.fcc-row--sm      { gap: var(--sp-2); }
.fcc-row--between { justify-content: space-between; }
.fcc-row--wrap    { flex-wrap: wrap; }

/* ── Grid ──────────────────────────────────────────────────────────────────── */
.fcc-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
}
.fcc-grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); }
.fcc-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.fcc-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }

/* Fixed column grids (responsive) */
.fcc-cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.fcc-cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.fcc-cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }

@media (max-width: 767px) {
  .fcc-cols-2, .fcc-cols-3, .fcc-cols-4 {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .fcc-cols-3 { grid-template-columns: repeat(2, 1fr); }
  .fcc-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Section spacing ───────────────────────────────────────────────────────── */
.fcc-section {
  padding-top: var(--sp-10);
  padding-bottom: var(--sp-10);
}

/* ── Topbar offset (push content below fixed topbar) ───────────────────────── */
.fcc-below-topbar {
  padding-top: var(--topbar-h, 56px);
}

/* ── Visually hidden (accessible) ──────────────────────────────────────────── */
.fcc-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;
}

/* ── Truncate text ─────────────────────────────────────────────────────────── */
.fcc-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fcc-line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fcc-line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Prose (long-form text) ────────────────────────────────────────────────── */
.fcc-prose {
  font-family: var(--sans);
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  color: var(--text);
}
.fcc-prose h1, .fcc-prose h2, .fcc-prose h3 {
  line-height: var(--leading-tight);
  margin: var(--sp-8) 0 var(--sp-3);
}
.fcc-prose h1 { font-size: var(--text-3xl); }
.fcc-prose h2 { font-size: var(--text-2xl); }
.fcc-prose h3 { font-size: var(--text-xl); }
.fcc-prose p { margin: 0 0 var(--sp-4); }
.fcc-prose a { color: var(--accent); }
.fcc-prose a:hover { color: var(--accent-2); text-decoration: underline; }
.fcc-prose code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--overlay-light);
  padding: 0.15em 0.35em;
  border-radius: var(--radius-sm);
}

/* ===== fcc-unified-topbar.css ===== */
/* ============================================================
   fcc.cc — Unified Topbar (.umb)
   Sitewide topbar injected via sub_filter + fcc-unified-topbar.js.
   Replaces the legacy econav strip; mounts via <header data-fcc-topbar>
   or auto-injects unless <body data-fcc-topbar-auto="off">.
   ============================================================ */

.umb {
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  font-family: var(--sans);
}
.umb-inner {
  max-width: var(--maxw, 1280px);
  margin: 0 auto;
  padding: 10px var(--gutter, 32px);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.umb-onair {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: umb-pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes umb-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  50%      { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 0%, transparent); }
}
.umb-date    { color: var(--ink-2); }
.umb-version { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.umb-updated { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.umb-sep     { color: var(--rule); user-select: none; }
.umb-spacer  { flex: 1; }

/* Locale + weather slot */
.umb-locale {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  white-space: nowrap;
}
.umb-locale:hover { color: var(--ink); }
.umb-locale svg { width: 11px; height: 11px; color: var(--accent); flex-shrink: 0; }
.umb-locale .place { color: var(--ink-2); }
.umb-locale .dot-sep { color: var(--rule); }
.umb-locale .weather { color: var(--ink-3); }

/* Now-playing badge */
.umb-np {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  padding: 3px 9px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  white-space: nowrap;
}
.umb-np:hover { color: var(--ink); border-color: var(--accent); }
.umb-np .bars {
  display: inline-flex; align-items: flex-end; gap: 1.5px;
  height: 10px;
}
.umb-np .bars span {
  display: block;
  width: 2px;
  background: var(--accent);
  animation: umb-np-bars 1s ease-in-out infinite;
}
.umb-np .bars span:nth-child(1) { height: 60%; animation-delay: 0s; }
.umb-np .bars span:nth-child(2) { height: 100%; animation-delay: 0.18s; }
.umb-np .bars span:nth-child(3) { height: 75%; animation-delay: 0.36s; }
.umb-np .bars span:nth-child(4) { height: 45%; animation-delay: 0.54s; }
@keyframes umb-np-bars {
  0%, 100% { transform: scaleY(0.4); }
  50%      { transform: scaleY(1); }
}
.umb-np .np-kind {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.umb-np .np-label {
  color: var(--ink);
  font-weight: 500;
}
.umb-np .np-sub {
  color: var(--ink-3);
  font-style: italic;
}

/* Single light/dark toggle — the site's one theme control (the multi-color
   palette dots are retired). Labeled pill so it's clearly discoverable. */
.umb-quickmode {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px;
  color: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: 999px;
  transition: color .14s, border-color .14s, background .14s;
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}
.umb-quickmode:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-wash);
}
.umb-quickmode:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--accent);
}
.umb-quickmode svg { width: 14px; height: 14px; flex-shrink: 0; }
.umb-quickmode-label { line-height: 1; }

.umb-home { font-family: var(--mono); font-size: 11px; color: var(--ink-2); }
.umb-home:hover { color: var(--ink); }

.umb-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 22px; color: var(--ink-2); position: relative;
}
.umb-icon:hover { color: var(--ink); }
.umb-icon svg { width: 16px; height: 16px; }
.umb-badge {
  position: absolute; top: -2px; right: 0;
  min-width: 14px; height: 14px; padding: 0 3px;
  border-radius: 7px;
  background: var(--accent); color: var(--accent-ink);
  font: 700 9px/14px var(--mono);
  text-align: center;
}
[data-theme="newsprint"] .umb-badge,
[data-theme="paper"] .umb-badge,
[data-mode="light"] .umb-badge {
  color: var(--ink);
  background: var(--accent);
}

.umb-user {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
  padding: 4px 10px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  text-transform: uppercase;
}
.umb-user:hover { border-color: var(--ink-2); }

/* Compact mode for narrow viewports — fold locale + now-playing under
   on hover or when crammed. Phase 0 ships a simple media-query collapse. */
@media (max-width: 900px) {
  .umb-locale,
  .umb-np,
  .umb-home { display: none; }
  .umb-inner { gap: 10px; font-size: 11px; }
}

/* ─── Legacy chrome suppression ─────────────────────────────────────────
   Hide the legacy `<header class="site-header">` that ~60 var/www/fcc-*
   pages render whenever the new unified topbar is going to mount.
   Selector fires immediately (no JS race / FOUC) on any page that doesn't
   carry the opt-out attribute.
   Opt-out pages (data-fcc-topbar-auto="off") keep their legacy chrome.
   The `body:not(...)` rule applies to bare <body> AND any body with other
   attributes, but NOT to bodies with data-fcc-topbar-auto="off". */
body:not([data-fcc-topbar-auto="off"]) > .wrap > header.site-header,
body:not([data-fcc-topbar-auto="off"]) > header.site-header {
  display: none;
}

/* ============================================================
   Mobile (.fcc-mtop) — Option A two-row mobile topbar.
   Sourced from design_handoff_music_mobile/music-mobile.css §1.
   JS renders this DOM in place of .umb when ?fcc-mtop=1 query
   is set and the viewport is ≤700px. Phase 1 of the /music/
   mobile Variant C plan — gated behind the query flag so the
   sitewide desktop default is unchanged until Phase 6 promotes.

   All rules below scoped behind @media (max-width: 700px) — on
   desktop, the .fcc-mtop element (if accidentally rendered) is
   invisible. JS guards against this anyway by only mounting
   mobile DOM at the same breakpoint.
   ============================================================ */
@media (max-width: 700px) {
  .fcc-mtop {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
            backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--rule);
    font-family: var(--sans);
    color: var(--ink);
  }
  .fcc-mtop *,
  .fcc-mtop *::before,
  .fcc-mtop *::after { box-sizing: border-box; }
  .fcc-mtop a { color: inherit; text-decoration: none; }
  .fcc-mtop button {
    font: inherit; color: inherit; background: none;
    border: 0; cursor: pointer; padding: 0;
    -webkit-tap-highlight-color: transparent;
  }

  .fcc-mtop-r1 {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    min-height: 48px;
  }
  .fcc-mtop-iconbtn {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 6px;
    color: var(--ink-2);
    border: 1px solid transparent;
    transition: background .14s, color .14s, border-color .14s;
  }
  .fcc-mtop-iconbtn:hover,
  .fcc-mtop-iconbtn:focus-visible {
    background: var(--paper-2);
    color: var(--ink);
    border-color: var(--rule);
  }
  .fcc-mtop-iconbtn svg { width: 20px; height: 20px; }
  .fcc-mtop-iconbtn .avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink, #fff);
    display: grid; place-items: center;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
  }
  .fcc-mtop-brand {
    flex: 1;
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
  }
  .fcc-mtop-brand .mark {
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
  }
  .fcc-mtop-meta {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.04em;
    color: var(--ink-3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  .fcc-mtop-meta .sep { color: var(--ink-4); }
  .fcc-mtop-meta .ver { color: var(--ink-2); }
  .fcc-mtop-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 0 9px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-2);
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: var(--paper-2);
  }
  .fcc-mtop-chip[hidden] { display: none; }
  .fcc-mtop-chip .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
  }
  .fcc-mtop-chip svg { width: 12px; height: 12px; }

  .fcc-mtop-r2 {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0 18px 0;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    border-top: 1px solid var(--rule);
    background: var(--paper);
  }
  .fcc-mtop-r2::-webkit-scrollbar { display: none; }
  .fcc-mtop-tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 9px 14px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-3);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
  }
  .fcc-mtop-tab[aria-current="page"] {
    color: var(--ink);
    border-bottom-color: var(--accent);
  }
  .fcc-mtop-tab .swatch {
    width: 8px; height: 8px; border-radius: 1px;
    background: var(--ink-3);
    flex: 0 0 auto;
  }
  .fcc-mtop-tab[aria-current="page"] .swatch { background: var(--accent); }

  /* When the mobile topbar is mounted, suppress the legacy .umb chrome
     so we don't render both stacked. */
  body[data-fcc-mtop="1"] .umb { display: none; }
}

/* ============================================================
   Touch targets >=44px (WCAG 2.5.5 / Apple HIG)
   Gated behind coarse-pointer ONLY so the dense desktop masthead
   (tiny mono controls, by design) is unchanged for mouse users.
   Deliberately excludes .umb-home/.umb-locale/.umb-np
   — those are display:none below 900px and must not be revealed here.
   (Batch 1, 2026-06-03)
   ============================================================ */
@media (hover: none) and (pointer: coarse) {
  /* The enlarged controls below would push the dense single-row masthead
     off-screen on narrow touch devices (it already overflows ~390px), so
     let it wrap instead of running past the viewport. Desktop (fine
     pointer) keeps the single nowrap row. The purpose-built mobile topbar
     is still .fcc-mtop; this just keeps the .umb stopgap usable. */
  .umb-inner { flex-wrap: wrap; row-gap: 6px; }
  /* Always-visible interactive controls: quick light/dark toggle,
     notification/message icon links, the account/user pill. */
  .umb-quickmode,
  .umb-icon,
  .umb-user {
    min-width: 44px;
    min-height: 44px;
  }
  .umb-user {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  /* Mobile two-row topbar (.fcc-mtop) controls. */
  .fcc-mtop-iconbtn { width: 44px; height: 44px; }
  .fcc-mtop-tab { min-height: 44px; }
}

/* ===== fcc-site-rail.css ===== */
/* ============================================================
   fcc.cc — Site Rail (.site-rail)
   260px collapsible right-side sitemap. Replaces the legacy
   ecosystem nav with a grouped sub-site list.
   Mounted via <aside data-fcc-site-rail> or auto-injected by
   fcc-site-rail.js unless <body data-fcc-site-rail-auto="off">.
   ============================================================ */

/* ── Universal rail-gutter padding ───────────────────────────
   Every page reserves the right gutter so body content doesn't
   slide under the fixed rail. Rail state lives on <body>. */
body[data-rail="expanded"]   { padding-right: 260px; }
body[data-rail="collapsed"]  { padding-right: 48px; }

/* Default (rail not yet hydrated): no padding — avoids flash
   if rail JS hasn't run. Theme-boot doesn't set data-rail. */

/* ── Rail itself ─────────────────────────────────────────── */
.site-rail {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 260px;
  background: var(--paper);
  border-left: 1px solid var(--rule);
  font-family: var(--sans);
  color: var(--ink-2);
  z-index: 40;
  display: flex; flex-direction: column;
  transition: width .18s ease;
}
.site-rail.is-collapsed { width: 48px; }

/* Header strip */
.site-rail-head {
  padding: 14px 14px 14px 18px;
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.site-rail.is-collapsed .site-rail-head {
  padding: 14px 0;
  justify-content: center;
}
.site-rail-brand {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
.site-rail-brand .strong { color: var(--ink); }
.site-rail.is-collapsed .site-rail-brand { display: none; }
.site-rail-toggle {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}
.site-rail-toggle:hover { color: var(--ink); border-color: var(--ink-3); }
.site-rail-toggle svg { width: 12px; height: 12px; }

/* Scroll region */
.site-rail-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 0 18px;
}
.site-rail-scroll::-webkit-scrollbar { width: 4px; }
.site-rail-scroll::-webkit-scrollbar-thumb { background: var(--rule); }

.site-rail-group { margin-bottom: 14px; }
.site-rail-grouplabel {
  padding: 6px 18px 4px;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.site-rail.is-collapsed .site-rail-grouplabel {
  display: none;
}
.site-rail.is-collapsed .site-rail-group {
  margin-bottom: 6px;
  border-bottom: 1px solid var(--rule-2, var(--rule));
  padding-bottom: 6px;
}
.site-rail.is-collapsed .site-rail-group:last-child { border-bottom: 0; }

.site-rail-item {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 12px; align-items: center;
  padding: 8px 18px;
  color: var(--ink-2);
  cursor: pointer;
  border-left: 2px solid transparent;
  text-decoration: none;
}
.site-rail-item:hover {
  background: var(--paper-2);
  color: var(--ink);
}
.site-rail-item[aria-current="page"] {
  background: color-mix(in srgb, var(--c, var(--accent)) 10%, transparent);
  border-left-color: var(--c, var(--accent));
  color: var(--ink);
}
.site-rail-item .dot {
  width: 9px; height: 9px;
  background: var(--c, var(--ink-4));
  border-radius: 1px;
}
.site-rail-item .name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.site-rail-item[aria-current="page"] .name {
  color: var(--ink);
}
.site-rail-item .meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: 0.02em;
}
.site-rail-item[aria-current="page"] .meta {
  color: var(--c, var(--accent));
}

/* Collapsed item — only show dot, centered */
.site-rail.is-collapsed .site-rail-item {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 7px 0;
  border-left: 0;
  position: relative;
}
.site-rail.is-collapsed .site-rail-item .name,
.site-rail.is-collapsed .site-rail-item .meta { display: none; }
.site-rail.is-collapsed .site-rail-item[aria-current="page"] {
  background: transparent;
}
.site-rail.is-collapsed .site-rail-item[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--c, var(--accent));
}
.site-rail.is-collapsed .site-rail-item .dot {
  width: 14px; height: 14px;
  border-radius: 2px;
}

/* Footer utility */
.site-rail-foot {
  border-top: 1px solid var(--rule);
  padding: 12px 14px;
  display: flex; gap: 8px;
  flex-shrink: 0;
}
.site-rail.is-collapsed .site-rail-foot {
  flex-direction: column;
  align-items: center;
  padding: 12px 6px;
}
.site-rail-util {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 7px 8px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}
.site-rail-util:hover { color: var(--ink); border-color: var(--ink-3); }
.site-rail-util svg { width: 12px; height: 12px; }
.site-rail.is-collapsed .site-rail-util {
  flex: none;
  width: 28px; height: 28px;
  padding: 0;
  font-size: 0;
}

/* Light-mode background tweak */
[data-theme="newsprint"] .site-rail,
[data-theme="paper"] .site-rail,
[data-mode="light"] .site-rail {
  background: var(--paper-2);
}
[data-theme="newsprint"] .site-rail-item:hover,
[data-theme="paper"] .site-rail-item:hover,
[data-mode="light"] .site-rail-item:hover {
  background: var(--paper-3);
}

/* v2 Daily palette overrides — when a page declares data-theme=light/dark
   inline (fcc-old-v2 / movies-v2), it doesn't load fcc-theme-boot.js, so
   the rail's --paper-2/--ink-2/etc fall through to fcc-tokens.css's dark
   defaults. Map them to v2's cream/ink palette here. */
[data-theme="light"] {
  --paper-2: #e8dec5;
  --paper-3: #ddd0a5;
  --ink-2:   #3d342a;
  --ink-3:   #6e6657;
  --ink-4:   #8a8167;
}
[data-theme="dark"] {
  --paper-2: #26211c;
  --paper-3: #2f2924;
  --ink-2:   #d7cdb8;
  --ink-3:   #a39875;
  --ink-4:   #8a8167;
}

/* Narrow viewports — collapse rail to ribbon */
@media (max-width: 900px) {
  body[data-rail="expanded"],
  body[data-rail="collapsed"] {
    padding-right: 0;
  }
  .site-rail {
    width: 0;
    overflow: hidden;
    border-left: 0;
  }
  .site-rail.is-mobile-open {
    width: 260px;
    border-left: 1px solid var(--rule);
  }
}

/* ===== fcc-sections.css ===== */
/* ============================================================
   fcc.cc · /games /recipes /knowledge /AV /stories /library
   Penny Press redesign — shared shell + SiteRail
   ============================================================ */


/* Per-section accent overrides (single source of truth). */
[data-section="games"]     { --accent: #c43c5c; --accent-2: #de5d7c; }
[data-section="recipes"]   { --accent: #d97742; --accent-2: #e89360; }
[data-section="knowledge"] { --accent: #d4a445; --accent-2: #e8bd6a; }
[data-section="av"]        { --accent: #4fb3c4; --accent-2: #74cad8; }
[data-section="stories"]   { --accent: #9b6dd0; --accent-2: #b58be3; }
[data-section="library"]   { --accent: #6aa17e; --accent-2: #8cba9d; }
[data-section="blog"]      { --accent: #c8a878; --accent-2: #d9c191; }
[data-section="policy"]    { --accent: #dc2626; --accent-2: #ef4444; }
[data-section="pods"]      { --accent: #7a6dd0; --accent-2: #968adb; }
[data-section="photo"]     { --accent: #94a3b8; --accent-2: #b0bcc8; }
[data-section="quote"]     { --accent: #d4a445; --accent-2: #e8bd6a; }
[data-section="weather"]   { --accent: #4fb3c4; --accent-2: #74cad8; }
[data-section="tickets"]   { --accent: #fb923c; --accent-2: #fdb674; }
[data-section="art"]       { --accent: #e8788b; --accent-2: #f095a4; }
[data-section="tube"]      { --accent: #dc2626; --accent-2: #ef4444; }
[data-section="movies"]    { --accent: #7c4dff; --accent-2: #9a72ff; }
[data-section="music"]     { --accent: #ec4899; --accent-2: #f06fad; }
[data-section="speech"]    { --accent: #e8a02f; --accent-2: #f0b554; }
[data-section="weird"]     { --accent: #7dd3a4; --accent-2: #97dcb6; }
[data-section="newsletter"]{ --accent: #b9a583; --accent-2: #cab69a; }
[data-section="commons"]   { --accent: #b6d8b1; --accent-2: #cfe5cb; }
[data-section="museum"]    { --accent: #d4593f; --accent-2: #e07a62; }
[data-section="news"]      { --accent: #d4593f; --accent-2: #e07a62; }
[data-section="stations"]  { --accent: #4f8a5a; --accent-2: #6ea478; }
[data-section="radio"]     { --accent: #4f8a5a; --accent-2: #6ea478; }
[data-section="learn"]     { --accent: #c8a878; --accent-2: #d9c191; }

/* Light-mode accents. The accents above are tuned for dark backgrounds and
   wash out on the cream paper of light mode. These are deeper, paper-legible
   variants of the same hues — WCAG-AA verified (--accent >= 4.5:1 on the
   darkest cream #f1e8d4; --accent-2 >= 3:1). They mirror the light/light2 map
   in fcc-section-accent.js so the accent is identical whichever source wins on
   a given page. (ww-light-accents workflow, 2026-06-23.) */
html[data-mode="light"] [data-section="games"]     { --accent: #a02343; --accent-2: #b53556; }
html[data-mode="light"] [data-section="recipes"]   { --accent: #a04a1c; --accent-2: #c2611f; }
html[data-mode="light"] [data-section="knowledge"] { --accent: #825f0f; --accent-2: #a87d1f; }
html[data-mode="light"] [data-section="av"]        { --accent: #0d7080; --accent-2: #0f8ca0; }
html[data-mode="light"] [data-section="stories"]   { --accent: #6e44a8; --accent-2: #8857c0; }
html[data-mode="light"] [data-section="library"]   { --accent: #2f6b48; --accent-2: #3d8459; }
html[data-mode="light"] [data-section="blog"]      { --accent: #80602f; --accent-2: #9a7536; }
html[data-mode="light"] [data-section="policy"]    { --accent: #a31919; --accent-2: #c62828; }
html[data-mode="light"] [data-section="pods"]      { --accent: #574bb0; --accent-2: #6957cc; }
html[data-mode="light"] [data-section="photo"]     { --accent: #46566e; --accent-2: #5d6f8c; }
html[data-mode="light"] [data-section="quote"]     { --accent: #825f0f; --accent-2: #a87d1f; }
html[data-mode="light"] [data-section="weather"]   { --accent: #0d7080; --accent-2: #0f8ca0; }
html[data-mode="light"] [data-section="tickets"]   { --accent: #b4400d; --accent-2: #cf5618; }
html[data-mode="light"] [data-section="art"]       { --accent: #b8344c; --accent-2: #cf4f67; }
html[data-mode="light"] [data-section="tube"]      { --accent: #a31919; --accent-2: #c62828; }
html[data-mode="light"] [data-section="movies"]    { --accent: #5326c4; --accent-2: #6a34e8; }
html[data-mode="light"] [data-section="music"]     { --accent: #b21f63; --accent-2: #c92e74; }
html[data-mode="light"] [data-section="speech"]    { --accent: #94500f; --accent-2: #b06f14; }
html[data-mode="light"] [data-section="weird"]     { --accent: #1c7047; --accent-2: #239058; }
html[data-mode="light"] [data-section="newsletter"]{ --accent: #7a6326; --accent-2: #90792f; }
html[data-mode="light"] [data-section="commons"]   { --accent: #2f7233; --accent-2: #479642; }
html[data-mode="light"] [data-section="museum"]    { --accent: #a33827; --accent-2: #c2462f; }
html[data-mode="light"] [data-section="news"]      { --accent: #a33827; --accent-2: #c2462f; }
html[data-mode="light"] [data-section="stations"]  { --accent: #2f6b3d; --accent-2: #3f8a52; }
html[data-mode="light"] [data-section="radio"]     { --accent: #2f6b3d; --accent-2: #3f8a52; }
html[data-mode="light"] [data-section="learn"]     { --accent: #80602f; --accent-2: #9a7536; }

/* (Theme palette overrides + universal rail-gutter padding live in styles.css now.) */


/* ============================================================
   SHARED MASTHEAD (sectioned)
   ============================================================ */
.sec-mast {
  padding: 36px var(--gutter) 28px;
  border-bottom: 3px double var(--ink);
  background: var(--paper);
}
.sec-mast-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
}
.sec-mast .eyebrow {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.sec-mast .eyebrow .accent { color: var(--accent); font-weight: 600; }
.sec-mast .eyebrow .sep    { color: var(--rule); }
.sec-mast h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(60px, 7.5vw, 104px);
  letter-spacing: -0.03em;
  line-height: 0.92;
  color: var(--ink);
}
.sec-mast .tagline {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 60ch;
  text-wrap: pretty;
}
.sec-mast .right {
  display: flex; align-items: center; gap: 18px;
  padding-bottom: 6px;
}
.sec-mast .stat {
  text-align: right;
  border-left: 1px solid var(--rule);
  padding-left: 18px;
}
.sec-mast .stat .k {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.sec-mast .stat .v {
  font-family: var(--serif);
  font-weight: 800;
  font-style: italic;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
}
.sec-mast .stat .v small {
  font-style: normal;
  font-weight: 400;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  margin-left: 6px;
}

/* ============================================================
   META STRIP — 5 stat columns
   ============================================================ */
.sec-meta-strip {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter) 16px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
}
.sec-meta-strip .col .k {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
  font-weight: 500;
}
.sec-meta-strip .col .v {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  font-weight: 400;
}
.sec-meta-strip .col .v .accent { color: var(--accent); }
.sec-meta-strip .col .v small {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  margin-left: 4px;
}

/* ============================================================
   SUB-NAV — tabs + utility
   ============================================================ */
.sec-subnav {
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}
.sec-subnav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  gap: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  align-items: center;
}
.sec-subnav .tab {
  padding: 14px 18px;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  white-space: nowrap;
}
.sec-subnav .tab:hover { color: var(--ink); }
.sec-subnav .tab[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.sec-subnav .tab .count {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: 0.02em;
  font-weight: 500;
  background: var(--paper-2);
  padding: 2px 6px;
  border-radius: 2px;
  text-transform: none;
}
.sec-subnav .tab[aria-current="page"] .count {
  background: var(--accent-wash);
  color: var(--accent);
}
.sec-subnav .spacer { flex: 1; }
.sec-subnav .search {
  display: inline-flex; align-items: center; gap: 8px;
  border-left: 1px solid var(--rule);
  padding: 0 0 0 18px; height: 47px;
  color: var(--ink-3);
}
.sec-subnav .search svg { width: 13px; height: 13px; }
.sec-subnav .search input {
  background: none; border: 0; outline: none;
  font: 13px var(--serif); font-style: italic;
  color: var(--ink-2);
  width: 180px;
}

/* ============================================================
   SECTION HEADERS (e.g. "Catalog · 01")
   ============================================================ */
.sec-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--ink);
  padding: 0 0 10px;
  margin: 0 0 24px;
  position: relative;
}
.sec-head::after {
  content: "";
  position: absolute; left: 0; bottom: -1px;
  height: var(--whisker-h);
  width: var(--whisker-w);
  background: var(--accent);
}
.sec-head .left { display: flex; flex-direction: column; gap: 4px; }
.sec-head .num {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.sec-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.sec-head .right {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ============================================================
   PAGE BODY (sections — rail padding handled at .sec-mock root)
   ============================================================ */
.sec-body {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px var(--gutter) 60px;
}

/* (SiteRail component styles live in styles.css now.) */

/* ============================================================
   FOOTER (shared)
   ============================================================ */
.sec-footer {
  border-top: 1px solid var(--ink);
  padding: 22px var(--gutter);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
  background: var(--paper);
}
.sec-footer .accent { color: var(--accent); }

/* ============================================================
   GAMES grid
   ============================================================ */
.games-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  margin-bottom: 56px;
  align-items: stretch;
}
.games-feat-art {
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%),
    repeating-linear-gradient(45deg, var(--paper-2), var(--paper-2) 4px, var(--paper-3) 4px, var(--paper-3) 8px);
  aspect-ratio: 16/10;
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
}
.games-feat-art::before {
  content: "";
  position: absolute; inset: 16px;
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent);
}
.games-feat-art .glyph {
  position: relative;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 900;
  font-size: 220px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.05em;
  text-shadow: 0 0 60px color-mix(in srgb, var(--accent) 35%, transparent);
}
.games-feat-body {
  display: flex; flex-direction: column; justify-content: center;
}
.games-feat-body .kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.games-feat-body h3 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 900;
  font-size: 64px;
  letter-spacing: -0.025em;
  line-height: 0.95;
  color: var(--ink);
}
.games-feat-body .dek {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
  margin-bottom: 22px;
  text-wrap: pretty;
}
.games-feat-body .stats {
  display: flex; gap: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 22px;
}
.games-feat-body .stats strong { color: var(--ink); font-weight: 600; }
.games-feat-body .cta {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 12px 22px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 2px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.game-card {
  display: flex; flex-direction: column;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  overflow: hidden;
  transition: transform .12s, background .12s;
  position: relative;
}
.game-card::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 32px; height: 2px;
  background: var(--c, var(--accent));
}
.game-card:hover {
  transform: translateY(-1px);
  background: var(--paper-3);
}
.game-art {
  aspect-ratio: 16/10;
  background:
    radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--c, var(--accent)) 25%, transparent), transparent 65%),
    var(--paper-3);
  display: grid; place-items: center;
  position: relative;
  border-bottom: 1px solid var(--rule);
}
.game-art::after {
  content: "";
  position: absolute; inset: 14px;
  border: 1px dashed color-mix(in srgb, var(--c, var(--accent)) 35%, transparent);
}
.game-art .glyph {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 900;
  font-size: 76px;
  line-height: 1;
  color: var(--c, var(--accent));
  letter-spacing: -0.04em;
  position: relative;
  z-index: 1;
}
.game-body {
  padding: 18px 20px 22px;
}
.game-body .kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c, var(--accent));
  margin-bottom: 8px;
}
.game-body h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.game-body .tagline {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
  margin: 0 0 12px;
  text-wrap: pretty;
}
.game-body .stats {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* ============================================================
   RECIPES — Pantry / tools strip + recipe cards
   ============================================================ */
.recipes-tools {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: 40px;
}
.recipes-tool {
  background: var(--paper-2);
  padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 6px;
  cursor: pointer;
  transition: background .12s;
  position: relative;
}
.recipes-tool:hover { background: var(--paper-3); }
.recipes-tool .icon {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 28px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.recipes-tool .name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.recipes-tool .desc {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.4;
}

.recipes-hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: stretch;
  margin-bottom: 48px;
}
.recipes-hero-art {
  background:
    radial-gradient(ellipse at 60% 40%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 60%),
    linear-gradient(135deg, var(--paper-3), var(--paper-2));
  aspect-ratio: 4/5;
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.recipes-hero-art::after {
  content: "";
  position: absolute; inset: 14px;
  border: 1px dashed color-mix(in srgb, var(--accent) 35%, transparent);
}
.recipes-hero-art .label {
  position: absolute;
  top: 22px; left: 22px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--paper);
  padding: 4px 8px;
  border: 1px solid var(--accent);
}
.recipes-hero-art .glyph {
  position: absolute;
  bottom: 22px; right: 22px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 900;
  font-size: 90px;
  color: color-mix(in srgb, var(--ink) 18%, transparent);
}
.recipes-hero-body { padding: 12px 0; }
.recipes-hero-body .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.recipes-hero-body h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 900;
  font-size: 54px;
  letter-spacing: -0.025em;
  line-height: 0.96;
  color: var(--ink);
}
.recipes-hero-body .byline {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.recipes-hero-body .ingredients {
  border-top: 1px solid var(--rule);
  padding: 16px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 22px;
  margin-bottom: 18px;
}
.recipes-hero-body .ingredients li {
  list-style: none;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-2);
  padding-left: 14px;
  position: relative;
}
.recipes-hero-body .ingredients li::before {
  content: "—";
  position: absolute; left: 0;
  color: var(--accent);
}
.recipes-hero-body .stats {
  display: flex; gap: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 18px;
}
.recipes-hero-body .stats .v {
  display: block;
  font-family: var(--serif); font-style: italic; font-weight: 800;
  font-size: 22px;
  text-transform: none; letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 4px;
}

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 20px;
}
.recipe-card {
  display: flex; flex-direction: column;
  padding: 0;
  background: transparent;
  border: 0;
}
.recipe-card .art {
  aspect-ratio: 4/3;
  background:
    radial-gradient(ellipse at 40% 60%, color-mix(in srgb, var(--c, var(--accent)) 22%, transparent), transparent 70%),
    var(--paper-2);
  border: 1px solid var(--rule);
  margin-bottom: 14px;
  position: relative;
  display: grid; place-items: center;
}
.recipe-card .art::after {
  content: "";
  position: absolute; inset: 10px;
  border: 1px dashed color-mix(in srgb, var(--c, var(--accent)) 30%, transparent);
}
.recipe-card .art .glyph {
  font-family: var(--serif); font-style: italic; font-weight: 900;
  font-size: 48px; color: var(--c, var(--accent));
}
.recipe-card .kicker {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--c, var(--accent));
  margin-bottom: 6px;
}
.recipe-card h3 {
  margin: 0 0 6px;
  font-family: var(--serif); font-weight: 700;
  font-size: 19px; letter-spacing: -0.01em;
  color: var(--ink); text-wrap: balance;
}
.recipe-card .meta {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
}

/* ============================================================
   KNOWLEDGE — Big 3-up tool cards
   ============================================================ */
.knowledge-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.knowledge-tool {
  display: flex; flex-direction: column;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  padding: 32px 28px 28px;
  min-height: 320px;
  position: relative;
  overflow: hidden;
  transition: background .14s;
}
.knowledge-tool:hover { background: var(--paper-3); }
.knowledge-tool::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 48px; height: 3px;
  background: var(--accent);
}
.knowledge-tool .num {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.knowledge-tool h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 900;
  font-size: 44px;
  letter-spacing: -0.025em;
  line-height: 0.95;
  color: var(--ink);
}
.knowledge-tool .desc {
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-2);
  margin-bottom: 18px;
  text-wrap: pretty;
}
.knowledge-tool .tags {
  margin-top: auto;
  display: flex; flex-wrap: wrap; gap: 6px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}
.knowledge-tool .tag {
  padding: 3px 7px;
  border: 1px solid var(--rule);
  text-transform: uppercase;
}
.knowledge-tool .cta-row {
  display: flex; align-items: center; gap: 14px;
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.knowledge-lookups {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.kw-lookup {
  font-family: var(--serif);
}
.kw-lookup .word {
  font-style: italic; font-weight: 700;
  font-size: 26px; letter-spacing: -0.015em;
  color: var(--ink);
}
.kw-lookup .pos {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  margin: 2px 0 6px;
}
.kw-lookup .def {
  font-size: 14px; line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ============================================================
   AV — Now playing + queue
   ============================================================ */
.av-now {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 28px;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  margin-bottom: 40px;
  position: relative;
}
.av-now::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 56px; height: 3px;
  background: var(--accent);
}
.av-now-art {
  aspect-ratio: 1/1;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 65%),
    var(--paper-3);
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  position: relative;
}
.av-now-art::before, .av-now-art::after {
  content: "";
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 50%;
}
.av-now-art::before { inset: 16%; }
.av-now-art::after  { inset: 32%; }
.av-now-art .center {
  position: relative; z-index: 1;
  width: 24%; aspect-ratio: 1/1;
  background: var(--accent);
  border-radius: 50%;
}
.av-now-body { display: flex; flex-direction: column; justify-content: center; }
.av-now-body .kicker {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent);
  font-weight: 600; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.av-now-body .kicker .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: av-pulse 1.6s infinite;
}
@keyframes av-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.av-now-body h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 900;
  font-size: 44px;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
}
.av-now-body .byline {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.av-now-body .scrub {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  margin-bottom: 14px;
}
.av-now-body .scrub .bar {
  height: 3px; background: var(--rule); position: relative;
}
.av-now-body .scrub .bar::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 38%; background: var(--accent);
}
.av-now-body .controls {
  display: flex; gap: 14px; align-items: center;
  font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2);
}
.av-now-body .controls .play {
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 22px; font-weight: 700;
}
.av-now-body .controls .btn {
  border: 1px solid var(--rule);
  padding: 8px 14px;
  color: var(--ink-3);
}

.av-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}
.av-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
.av-item .art {
  aspect-ratio: 1/1;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--c, var(--accent)) 30%, transparent), transparent 60%),
    var(--paper-2);
  border: 1px solid var(--rule);
  display: grid; place-items: center;
}
.av-item .art .glyph {
  font-family: var(--serif); font-style: italic; font-weight: 900;
  font-size: 34px; color: var(--c, var(--accent));
}
.av-item .kicker {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c, var(--accent));
  margin-bottom: 5px;
}
.av-item h4 {
  margin: 0 0 4px;
  font-family: var(--serif); font-weight: 700;
  font-size: 16px; letter-spacing: -0.01em;
  color: var(--ink); text-wrap: balance; line-height: 1.2;
}
.av-item .meta {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
}
.av-item .progress {
  margin-top: 8px;
  height: 2px;
  background: var(--rule);
  position: relative;
}
.av-item .progress::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--p, 0%);
  background: var(--c, var(--accent));
}

/* ============================================================
   STORIES — Featured + index
   ============================================================ */
.stories-feature {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}
.stories-feature .art {
  background:
    radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 65%),
    linear-gradient(160deg, var(--paper-3), var(--paper-2));
  aspect-ratio: 3/4;
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.stories-feature .art::before {
  content: "";
  position: absolute; inset: 18px;
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent);
}
.stories-feature .art .label {
  position: absolute;
  top: 26px; left: 26px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
}
.stories-feature .art .glyph {
  position: absolute;
  inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-weight: 900;
  font-size: 200px; line-height: 1;
  color: color-mix(in srgb, var(--ink) 12%, transparent);
}
.stories-feature .copy { padding: 8px 0; }
.stories-feature .kicker {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.stories-feature h3 {
  margin: 0 0 4px;
  font-family: var(--serif); font-style: italic; font-weight: 900;
  font-size: 64px; letter-spacing: -0.025em;
  line-height: 0.96; color: var(--ink);
}
.stories-feature .by {
  font-family: var(--serif); font-style: italic;
  font-size: 16px; color: var(--ink-3);
  margin-bottom: 22px;
}
.stories-feature .by .author { color: var(--ink); font-weight: 600; font-style: normal; }
.stories-feature .dropcap {
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
  max-width: 56ch;
}
.stories-feature .dropcap::first-letter {
  font-style: italic; font-weight: 900;
  font-size: 72px;
  float: left;
  line-height: 0.8;
  padding: 8px 14px 0 0;
  color: var(--accent);
}
.stories-feature .read {
  display: inline-flex; gap: 8px; align-items: baseline;
  margin-top: 22px;
  font-family: var(--sans); font-weight: 700;
  font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--accent);
}

.stories-index {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 40px;
}
.story-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.story-row .num {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}
.story-row h4 {
  margin: 0;
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.story-row .by {
  font-family: var(--serif); font-style: italic; font-size: 13.5px;
  color: var(--ink-3); margin-top: 3px;
}
.story-row .by .author { color: var(--ink-2); font-style: normal; font-weight: 600; }
.story-row .meta {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
  text-align: right;
}
.story-row .progress {
  margin-top: 6px;
  height: 2px;
  width: 90px;
  background: var(--rule);
  position: relative;
}
.story-row .progress::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--p, 0%);
  background: var(--accent);
}

/* ============================================================
   LIBRARY — Card catalog
   ============================================================ */
.library-shelves {
  display: flex; gap: 22px;
  margin-bottom: 40px;
  font-family: var(--sans);
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 600;
  flex-wrap: wrap;
}
.library-shelf-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  color: var(--ink-3);
}
.library-shelf-chip[aria-current="true"] {
  border-color: var(--accent);
  background: var(--accent-wash);
  color: var(--ink);
}
.library-shelf-chip .dot {
  width: 8px; height: 8px;
  background: var(--c, var(--accent));
}
.library-shelf-chip .n {
  font-family: var(--mono); font-size: 10px;
  color: var(--ink-4); letter-spacing: 0.02em;
  text-transform: none;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 22px;
}
.book {
  display: flex; flex-direction: column;
}
.book .spine {
  aspect-ratio: 2/3;
  background:
    linear-gradient(90deg, transparent 0, transparent 8px, color-mix(in srgb, #000 35%, transparent) 8px, color-mix(in srgb, #000 35%, transparent) 9px, transparent 9px),
    radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--c, var(--accent)) 30%, transparent), transparent 70%),
    var(--paper-3);
  border: 1px solid var(--rule);
  position: relative;
  padding: 22px 22px 18px 30px;
  display: flex; flex-direction: column;
  margin-bottom: 12px;
  overflow: hidden;
}
.book .spine::before {
  content: "";
  position: absolute; left: 16px; top: 14px; bottom: 14px;
  width: 1px; background: color-mix(in srgb, var(--c, var(--accent)) 50%, transparent);
}
.book .spine .head {
  font-family: var(--serif); font-style: italic; font-weight: 800;
  font-size: 22px; letter-spacing: -0.015em;
  line-height: 1.05;
  color: var(--ink);
  text-wrap: balance;
}
.book .spine .author {
  margin-top: auto;
  font-family: var(--serif); font-style: italic;
  font-size: 13px;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
}
.book .spine .stamp {
  position: absolute;
  bottom: 12px; right: 12px;
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c, var(--accent));
  border: 1px solid var(--c, var(--accent));
  padding: 2px 6px;
  background: color-mix(in srgb, var(--paper) 70%, transparent);
}
.book .card-line {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--rule);
  margin-bottom: 6px;
}
.book .meta {
  font-family: var(--serif); font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ============================================================
   COMPACT MODE / DENSITY
   ============================================================ */
:where(body)[data-compact] .games-grid    { grid-template-columns: repeat(4, 1fr); }
:where(body)[data-compact] .recipes-grid  { grid-template-columns: repeat(4, 1fr); }
:where(body)[data-compact] .library-grid  { grid-template-columns: repeat(5, 1fr); }
:where(body)[data-compact] .av-grid       { grid-template-columns: repeat(2, 1fr); }

/* ===== fcc-archetypes.css ===== */
/* ============================================================
   fcc.cc — Archetype styles
   For: /b/ /policy/ /pods/ /photography/ /quote/ /weather/ /tickets/
   Builds on sections.css (.sec-mock + tokens).
   ============================================================ */

/* ============================================================
   ARCHETYPE A · Daily pick  (/quote/, /weird-wikipedia/, /speech/)
   ============================================================ */
.daily-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 56px;
  padding: 56px 64px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.daily-hero::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 56px; height: 3px;
  background: var(--accent);
}
.daily-hero .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  font-weight: 600;
  display: flex; align-items: center; gap: 14px;
}
.daily-hero .label .stamp {
  border: 1px solid var(--accent);
  padding: 3px 8px;
  letter-spacing: 0.18em;
}
.daily-hero blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: pretty;
  position: relative;
  padding-left: 0;
}
.daily-hero blockquote::before {
  content: "\201C";
  position: absolute;
  left: -42px; top: -28px;
  font-size: 180px;
  line-height: 1;
  color: color-mix(in srgb, var(--accent) 30%, transparent);
  font-style: italic;
  font-family: var(--serif);
}
.daily-hero .attrib {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-2);
}
.daily-hero .attrib .who {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.daily-hero .attrib .work {
  color: var(--ink-3);
}
.daily-hero .attrib .when {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-style: normal;
}

.daily-archive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}
.daily-archive-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.daily-archive-row .date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.daily-archive-row .body {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16.5px;
  line-height: 1.4;
  color: var(--ink);
  text-wrap: pretty;
}
.daily-archive-row .by {
  display: block;
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 13px;
  font-style: normal;
  color: var(--ink-3);
}
.daily-archive-row .by strong { color: var(--ink-2); font-weight: 600; }
.daily-archive-row .meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* ============================================================
   ARCHETYPE B · Media stream  (/pods/, /tube/, /movies/, /music/)
   ============================================================ */
.media-now {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr;
  gap: 36px;
  margin-bottom: 56px;
  align-items: stretch;
}
.media-now-art {
  background:
    radial-gradient(circle at 30% 40%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 60%),
    var(--paper-2);
  aspect-ratio: 1/1;
  border: 1px solid var(--rule);
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
}
.media-now-art::before {
  content: "";
  position: absolute; inset: 18px;
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent);
}
.media-now-art .glyph {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 900;
  font-size: 180px;
  color: var(--accent);
  letter-spacing: -0.04em;
  position: relative;
  z-index: 1;
}
.media-now-art .episode {
  position: absolute;
  top: 22px; left: 22px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--paper);
  border: 1px solid var(--accent);
  padding: 4px 8px;
}
.media-now-body {
  display: flex; flex-direction: column; justify-content: center;
}
.media-now-body .kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.media-now-body h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 900;
  font-size: 52px;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
  text-wrap: balance;
}
.media-now-body .from {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.media-now-body .from .show { color: var(--ink); font-weight: 600; font-style: normal; }
.media-now-body .dek {
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
  max-width: 55ch;
  margin: 0 0 22px;
}
.media-now-body .stats {
  display: flex; gap: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 18px;
}
.media-now-body .stats .v {
  display: block;
  font-family: var(--serif); font-style: italic; font-weight: 800;
  font-size: 22px; text-transform: none; letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 4px;
}
.media-now-body .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.media-now-body .cta {
  display: inline-flex;
  align-items: center; gap: 8px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  padding: 12px 22px;
  margin: 0;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 2px;
  border: 1px solid var(--accent);
  text-decoration: none;
  cursor: pointer;
}
.media-now-body .cta.cta-secondary {
  background: transparent;
  color: var(--accent);
}
.media-now-art .book-pill {
  position: absolute;
  top: 22px; right: 22px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 8px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}
.media-tile {
  display: flex; flex-direction: column;
  position: relative;
}
/* Transparent overlay anchor — covers the whole tile so any click
 * not on a higher-z child (trailer badge) opens the TMDB page. */
.media-tile .media-tile-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.media-tile .art {
  aspect-ratio: 1/1;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--c, var(--accent)) 28%, transparent), transparent 65%),
    var(--paper-2);
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  position: relative;
  margin-bottom: 14px;
  overflow: hidden;
}
.media-tile .art::after {
  content: "";
  position: absolute; inset: 10px;
  border: 1px dashed color-mix(in srgb, var(--c, var(--accent)) 30%, transparent);
  pointer-events: none;
}
.media-tile .art .glyph {
  font-family: var(--serif); font-style: italic; font-weight: 900;
  font-size: 64px; color: var(--c, var(--accent)); position: relative; z-index: 1;
}
.media-tile .art .trailer-badge {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center; gap: 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1;
  padding: 5px 9px;
  margin: 0;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.media-tile .art .trailer-badge:hover,
.media-tile .art .trailer-badge:focus-visible {
  background: var(--c, var(--accent));
  color: var(--accent-ink);
  border-color: var(--c, var(--accent));
}
.media-tile .art .book-pill {
  position: absolute;
  bottom: 10px; left: 10px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 8px;
  background: var(--paper);
  color: var(--c, var(--accent));
  border: 1px solid var(--c, var(--accent));
  border-radius: 2px;
}
.media-tile .kicker {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--c, var(--accent));
  margin-bottom: 6px;
}
.media-tile h4 {
  margin: 0 0 6px;
  font-family: var(--serif); font-weight: 700;
  font-size: 18px; letter-spacing: -0.01em;
  color: var(--ink); text-wrap: balance; line-height: 1.2;
}
.media-tile .by {
  font-family: var(--serif); font-style: italic;
  font-size: 13.5px;
  color: var(--ink-3); margin-bottom: 6px;
}
.media-tile .meta {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
}
.media-tile .rating {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  margin-top: 4px;
}
/* Inline YouTube trailer embed — fills the .art / .media-now-art frame. */
.media-tile .art .trailer-frame,
.media-now-art .trailer-frame {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
  z-index: 4;
}
.media-tile .art .trailer-close,
.media-now-art .trailer-close {
  position: absolute;
  top: 6px; right: 6px;
  z-index: 5;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1;
  color: #fff;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
}
.media-tile .art .trailer-close:hover,
.media-now-art .trailer-close:hover,
.media-tile .art .trailer-close:focus-visible,
.media-now-art .trailer-close:focus-visible {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
/* Persistent "Open on YouTube" fallback below an embedded trailer —
 * for videos whose owners have disabled third-party embedding
 * (YouTube Error 153) so the user always has a working route. */
.media-tile .art .trailer-fallback,
.media-now-art .trailer-fallback {
  position: absolute;
  bottom: 8px; right: 8px;
  z-index: 5;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  padding: 5px 9px;
  text-decoration: none;
}
.media-tile .art .trailer-fallback:hover,
.media-now-art .trailer-fallback:hover,
.media-tile .art .trailer-fallback:focus-visible,
.media-now-art .trailer-fallback:focus-visible {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* ============================================================
   ARCHETYPE C · Visual gallery  (/photography/, /art/)
   ============================================================ */
.gallery-bar {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 28px;
}
.gallery-bar .chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  color: var(--ink-3);
}
.gallery-bar .chip[aria-current="true"] {
  border-color: var(--accent);
  background: var(--accent-wash);
  color: var(--ink);
}
.gallery-bar .chip .n {
  font-family: var(--mono); font-size: 10px;
  color: var(--ink-4); text-transform: none;
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 140px;
  gap: 14px;
  margin-bottom: 48px;
}
.gallery-cell {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.gallery-cell.tall  { grid-row: span 2; }
.gallery-cell.wide  { grid-column: span 2; }
.gallery-cell.big   { grid-row: span 2; grid-column: span 2; }
.gallery-cell .img {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, color-mix(in srgb, var(--c, var(--accent)) 30%, transparent), transparent 70%),
    linear-gradient(135deg, var(--paper-3), var(--paper-2));
}
.gallery-cell .img::after {
  content: ""; position: absolute; inset: 14px;
  border: 1px dashed color-mix(in srgb, var(--c, var(--accent)) 30%, transparent);
}
.gallery-cell .caption {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 12px 14px;
  background: linear-gradient(0deg, color-mix(in srgb, var(--paper) 92%, transparent), transparent);
  display: flex; align-items: baseline; justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.gallery-cell .caption .stamp {
  color: var(--c, var(--accent));
  font-weight: 600;
}
.gallery-cell .caption .title {
  font-family: var(--serif); font-style: italic;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.005em;
  text-transform: none;
  text-wrap: balance;
  flex: 1; min-width: 0;
  margin-right: 12px;
}

.gallery-rows {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px 22px;
}
.gallery-rows .row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
}
.gallery-rows .row .thumb {
  aspect-ratio: 1/1;
  border: 1px solid var(--rule);
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--c, var(--accent)) 28%, transparent), transparent 70%),
    var(--paper-2);
}
.gallery-rows .row .meta {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.gallery-rows .row .title {
  font-family: var(--serif); font-style: italic;
  font-weight: 700; font-size: 16px; color: var(--ink);
  letter-spacing: -0.005em; line-height: 1.2;
  text-wrap: balance;
}

/* ============================================================
   ARCHETYPE D · Editorial feed  (/b/, /policy/, /newsletter/)
   ============================================================ */
.feed-lead {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rule);
}
.feed-lead .copy { padding: 4px 0; }
.feed-lead .kicker {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.feed-lead h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-style: italic; font-weight: 900;
  font-size: clamp(40px, 4.4vw, 60px);
  letter-spacing: -0.025em;
  line-height: 0.96;
  color: var(--ink);
  text-wrap: balance;
}
.feed-lead .dek {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
  margin-bottom: 22px;
}
.feed-lead .byline {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3);
}
.feed-lead .byline .author { color: var(--ink); font-weight: 600; }
.feed-lead .art {
  background:
    radial-gradient(ellipse at 30% 30%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 60%),
    linear-gradient(135deg, var(--paper-3), var(--paper-2));
  aspect-ratio: 4/3;
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.feed-lead .art::before {
  content: ""; position: absolute; inset: 16px;
  border: 1px dashed color-mix(in srgb, var(--accent) 35%, transparent);
}
.feed-lead .art .label {
  position: absolute;
  top: 22px; left: 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  background: var(--paper);
  padding: 4px 8px;
}
.feed-lead .art .glyph {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-weight: 900;
  font-size: 160px; line-height: 1;
  color: color-mix(in srgb, var(--accent) 50%, transparent);
}

.feed-body {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 48px;
}
.feed-list .entry {
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 22px;
  align-items: baseline;
}
.feed-list .entry .date {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.feed-list .entry .kicker {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}
.feed-list .entry h4 {
  margin: 0 0 6px;
  font-family: var(--serif); font-weight: 700;
  font-size: 22px; letter-spacing: -0.015em;
  color: var(--ink); line-height: 1.2;
  text-wrap: balance;
}
.feed-list .entry .dek {
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
  margin: 0 0 8px;
}
.feed-list .entry .byline {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-4);
}
.feed-list .entry .byline .author { color: var(--ink-2); }

.feed-side .block { margin-bottom: 32px; }
.feed-side h5 {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
  position: relative;
}
.feed-side h5::after {
  content: ""; position: absolute;
  left: 0; bottom: -1px;
  height: var(--whisker-h); width: 32px;
  background: var(--accent);
}
.feed-side .archive {
  display: grid; gap: 8px;
}
.feed-side .archive a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dashed var(--rule);
  font-family: var(--serif); font-size: 14px;
  color: var(--ink-2);
  text-wrap: balance;
  gap: 12px;
}
.feed-side .archive a:hover { color: var(--accent); }
.feed-side .archive .n {
  font-family: var(--mono); font-size: 10px;
  color: var(--ink-4); flex-shrink: 0;
}

/* ============================================================
   ARCHETYPE E · Utility form  (/tickets/, /account/, /feeds/)
   ============================================================ */
.utility-body {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
}
.utility-form {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 32px 36px;
  position: relative;
}
.utility-form::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 56px; height: 3px;
  background: var(--accent);
}
.utility-form .form-eyebrow {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent);
  font-weight: 600; margin-bottom: 14px;
}
.utility-form h3 {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-style: italic; font-weight: 800;
  font-size: 34px; letter-spacing: -0.02em;
  color: var(--ink); line-height: 1;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.field {
  display: flex; flex-direction: column;
  gap: 6px;
}
.field.full { grid-column: 1 / -1; }
.field .label {
  font-family: var(--sans);
  font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-3);
  font-weight: 600;
}
.field .input {
  font: 14px var(--serif);
  font-style: italic;
  color: var(--ink-3);
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 11px 14px;
}
.field .input.tall { min-height: 110px; padding-top: 14px; }
.field .select {
  font-family: var(--serif); font-size: 14px;
  color: var(--ink); padding: 11px 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  appearance: none;
  display: flex; justify-content: space-between; align-items: center;
}
.field .select .v { color: var(--ink-3); font-style: italic; }
.field .select::after {
  content: "▾"; color: var(--ink-3); margin-left: 8px; font-size: 10px;
}
.field .helper {
  font-family: var(--serif); font-style: italic;
  font-size: 12.5px; color: var(--ink-3);
  line-height: 1.4; text-wrap: pretty;
}
.field-actions {
  display: flex; align-items: center; gap: 14px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.btn-submit {
  font-family: var(--sans);
  font-weight: 700; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 12px 24px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 2px;
}
.btn-cancel {
  font-family: var(--sans);
  font-weight: 600; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 11px 18px;
  color: var(--ink-3);
  border: 1px solid var(--rule);
  border-radius: 2px;
}

.utility-aside .block { margin-bottom: 32px; }
.utility-aside h5 {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
  position: relative;
}
.utility-aside h5::after {
  content: ""; position: absolute;
  left: 0; bottom: -1px;
  height: var(--whisker-h); width: 32px;
  background: var(--accent);
}
.utility-aside .ticket-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: baseline;
}
.utility-aside .ticket-row .id {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.12em; color: var(--accent);
  text-transform: uppercase;
}
.utility-aside .ticket-row .subj {
  font-family: var(--serif); font-style: italic;
  font-size: 14px; color: var(--ink);
}
.utility-aside .ticket-row .status {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
}
.utility-aside .ticket-row .status.open  { color: var(--accent); }
.utility-aside .ticket-row .status.done  { color: var(--ink-4); }

/* ============================================================
   SPECIALTY · /weather/
   ============================================================ */
.wx-current {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-bottom: 48px;
  align-items: stretch;
}
.wx-current .left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 14px 0;
}
.wx-current .label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent);
  font-weight: 600; margin-bottom: 14px;
}
.wx-current .temp {
  font-family: var(--serif); font-style: italic; font-weight: 900;
  font-size: clamp(110px, 14vw, 200px);
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--ink);
  margin-bottom: 18px;
}
.wx-current .temp .deg {
  font-size: 0.5em;
  color: var(--accent);
  font-weight: 700;
  margin-left: 0.04em;
  vertical-align: 0.3em;
}
.wx-current .cond {
  font-family: var(--serif); font-style: italic;
  font-size: 24px;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.wx-current .stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 12px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.wx-current .stats .k {
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 6px;
}
.wx-current .stats .v {
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: 22px; letter-spacing: -0.01em;
  color: var(--ink);
}
.wx-map {
  background:
    radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 65%),
    var(--paper-2);
  border: 1px solid var(--rule);
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
}
.wx-map::before, .wx-map::after {
  content: ""; position: absolute;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 50%;
}
.wx-map::before { inset: 22%; }
.wx-map::after  { inset: 42%; }
.wx-map .pin {
  position: relative;
  z-index: 1;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 24px var(--accent);
}
.wx-map .pin::before {
  content: ""; position: absolute;
  inset: -8px; border: 1px solid var(--accent); border-radius: 50%;
  animation: wx-pulse 2.4s ease-out infinite;
}
@keyframes wx-pulse {
  0%   { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}
.wx-map .place-label {
  position: absolute;
  top: 22px; left: 22px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
}

.wx-hourly {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: 48px;
}
.wx-hour {
  background: var(--paper-2);
  padding: 16px 8px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center;
  position: relative;
}
.wx-hour .time {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3);
}
.wx-hour .icon {
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: 22px;
  color: var(--accent);
  margin: 4px 0 2px;
}
.wx-hour .t {
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: 19px; letter-spacing: -0.01em;
  color: var(--ink);
}
.wx-hour .pop {
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.16em; color: var(--ink-3);
  text-transform: uppercase; margin-top: 2px;
}

.wx-10day {
  display: grid; gap: 0;
}
.wx-day {
  display: grid;
  grid-template-columns: 90px 60px 1fr 1fr 60px;
  gap: 22px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.wx-day .name {
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: 17px; letter-spacing: -0.01em;
  color: var(--ink);
}
.wx-day .icon {
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: 22px; color: var(--accent);
  text-align: center;
}
.wx-day .cond {
  font-family: var(--serif); font-style: italic;
  font-size: 14.5px; color: var(--ink-2);
}
.wx-day .range {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.wx-day .range .bar {
  height: 3px;
  background: var(--rule);
  position: relative;
}
.wx-day .range .bar::after {
  content: "";
  position: absolute; left: var(--lo, 20%); right: calc(100% - var(--hi, 80%));
  top: 0; bottom: 0;
  background: var(--accent);
}
.wx-day .range .hi { color: var(--ink); font-weight: 600; }
.wx-day .pop {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); text-align: right;
}

/* ============================================================
   INDEX SHEET — small postcards for the remaining sub-sites
   ============================================================ */
.idx-sheet {
  padding: 40px 56px;
  background: #0d0e10;
  color: #efe7d6;
  font-family: 'Source Serif 4', serif;
  height: 100%; width: 100%;
  box-sizing: border-box;
  overflow-y: auto;
}
.idx-sheet > h1 {
  margin: 0;
  font-weight: 900; font-style: italic;
  font-size: 54px; letter-spacing: -0.025em;
  line-height: 0.96;
}
.idx-sheet > .sub {
  margin: 16px 0 36px;
  font-family: 'Source Serif 4', serif; font-style: italic;
  font-size: 16px; color: #c8c0b0;
  max-width: 70ch;
}
.idx-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.idx-card {
  display: flex; flex-direction: column;
  background: #15171a;
  border: 1px solid #2a2825;
  position: relative;
  overflow: hidden;
}
.idx-card::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 48px; height: 2px;
  background: var(--c, #d4593f);
}
.idx-card .top {
  padding: 22px 24px 16px;
  border-bottom: 1px solid #2a2825;
}
.idx-card .top .kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--c, #d4593f);
  font-weight: 600;
  margin-bottom: 8px;
}
.idx-card .top h3 {
  margin: 0;
  font-family: 'Source Serif 4', serif;
  font-style: italic; font-weight: 900;
  font-size: 30px; letter-spacing: -0.02em;
  line-height: 1;
  color: #efe7d6;
}
.idx-card .top .url {
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: #8a8276;
}
.idx-card .body {
  padding: 18px 24px 22px;
  flex: 1;
  display: flex; flex-direction: column;
  gap: 12px;
}
.idx-card .body .dek {
  font-family: 'Source Serif 4', serif;
  font-size: 14px; line-height: 1.5;
  color: #c8c0b0; text-wrap: pretty;
}
.idx-card .body .tags {
  display: flex; gap: 6px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #8a8276;
  margin-top: auto;
}
.idx-card .body .tag {
  border: 1px solid #2a2825;
  padding: 3px 7px;
}
.idx-card .body .tag.archetype {
  border-color: var(--c, #d4593f);
  color: var(--c, #d4593f);
}

/* ===== fcc-auth-dialog.css ===== */
/* fcc-auth-dialog.css — Penny Press auth overlay
 *
 * Magic-link only. Refreshed May 2026 from the cyan-monospace
 * legacy to match the news-mobile / signin-mobile typography.
 *
 * Tokens defined inline so the dialog renders correctly on any host
 * page regardless of whether commons.css / fcc-editorial-tokens.css
 * are loaded. Light theme follows the global html[data-mode="light"]
 * already set by /shared/fcc-theme-boot.js.
 */

.fcc-auth-dialog {
  /* Penny Press tokens — dark default. */
  --paper:    #0d0e10;
  --paper-2:  #15171a;
  --paper-3:  #1d2024;
  --ink:      #efe7d6;
  --ink-2:    #c8c0b0;
  --ink-3:    #8a8276;
  --ink-4:    #5a564e;
  --rule:     #2a2825;
  --accent:   #d4593f;
  --accent-2: #e87a5e;
  --accent-ink: #0d0e10;
  --good:     #6fa66c;
  --bad:      #b0594a;

  --serif: "Source Serif 4", Charter, "Iowan Old Style", Georgia, serif;
  --sans:  -apple-system, "SF Pro Text", "Inter", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  width: 100%;
  max-width: 380px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 22px 22px 20px;
  position: relative;
  box-shadow: 0 40px 80px -32px rgba(0, 0, 0, 0.65);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.5;
}
.fcc-auth-dialog::backdrop {
  background: color-mix(in srgb, #0d0e10 70%, transparent);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
          backdrop-filter: blur(8px) saturate(1.2);
}
.fcc-auth-dialog::before {
  /* Editorial top stripe — 30% accent / 70% ink */
  content: "";
  position: absolute;
  left: -1px; right: -1px; top: -1px;
  height: 3px;
  background:
    linear-gradient(90deg,
      var(--accent) 0,
      var(--accent) 30%,
      var(--ink) 30%,
      var(--ink) 100%);
}

/* Light-theme override — follows global theme-boot data-mode. */
html[data-mode="light"] .fcc-auth-dialog {
  --paper:    #f6f1e3;
  --paper-2:  #ece5d2;
  --paper-3:  #e1d8c1;
  --ink:      #1a1815;
  --ink-2:    #3a352c;
  --ink-3:    #6b6557;
  --ink-4:    #9a9483;
  --rule:     #d4c9ad;
  --accent:   #c14a30;
  --accent-2: #d96444;
  --accent-ink: #f6f1e3;
}
html[data-mode="light"] .fcc-auth-dialog::backdrop {
  background: color-mix(in srgb, #1a1815 50%, transparent);
}

/* Eyebrow */
.fcc-auth-dialog__eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 4px 0 8px;
}

/* Title — italic serif */
.fcc-auth-dialog__title {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--ink);
}

/* Sub copy — italic serif */
.fcc-auth-dialog__sub {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
  text-wrap: pretty;
}
.fcc-auth-dialog__sub strong {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
}

/* Field label + input */
.fcc-auth-dialog__label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 2px 0 6px;
}
.fcc-auth-dialog__field {
  display: block;
  width: 100%;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-bottom: 2px solid var(--rule);
  border-radius: 0;
  padding: 8px 0 9px;
  font: inherit;
  font-family: var(--serif);
  font-size: 16px;
  outline: none;
  margin-bottom: 14px;
  transition: border-color 0.18s ease;
}
.fcc-auth-dialog__field:focus {
  border-bottom-color: var(--accent);
}
.fcc-auth-dialog__field::placeholder {
  color: var(--ink-4);
  font-style: italic;
}

/* Buttons */
.fcc-auth-dialog__actions {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.fcc-auth-dialog__submit {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  border-radius: 2px;
  padding: 13px 18px;
  min-height: 44px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.14s, color 0.14s, border-color 0.14s, transform 0.12s;
}
.fcc-auth-dialog__submit:hover,
.fcc-auth-dialog__submit:focus-visible {
  background: var(--accent-2);
  border-color: var(--accent-2);
}
.fcc-auth-dialog__submit:active { transform: scale(0.98); }
.fcc-auth-dialog__submit:disabled,
.fcc-auth-dialog[data-busy="true"] .fcc-auth-dialog__submit {
  opacity: 0.55;
  cursor: progress;
}

.fcc-auth-dialog__alt {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink-3);
  border-radius: 2px;
  padding: 11px 14px;
  min-height: 40px;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fcc-auth-dialog__alt:hover,
.fcc-auth-dialog__alt:focus-visible {
  background: var(--paper-2);
  border-color: var(--ink);
}

/* Close button (top right) */
.fcc-auth-dialog__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.fcc-auth-dialog__close:hover {
  color: var(--ink);
  background: var(--paper-2);
}

/* Status messaging */
.fcc-auth-dialog__status {
  margin-top: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-3);
  min-height: 1.4em;
  text-wrap: pretty;
}
.fcc-auth-dialog__status[data-level="error"] {
  color: var(--bad);
}
.fcc-auth-dialog__status[data-level="success"] {
  color: var(--accent);
}

/* Spinner placeholder */
.fcc-auth-dialog__spinner {
  display: none;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 22px 0;
}
.fcc-auth-dialog[data-busy="true"] .fcc-auth-dialog__spinner {
  display: block;
}

/* Mode switching: magic (sign in form) vs user (signed in card) */
.fcc-auth-dialog__form { display: block; }
.fcc-auth-dialog__user { display: none; }
.fcc-auth-dialog[data-mode="user"] .fcc-auth-dialog__form { display: none; }
.fcc-auth-dialog[data-mode="user"] .fcc-auth-dialog__user { display: block; }

.fcc-auth-dialog__user-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  color: var(--ink);
  margin: 2px 0 2px;
}
.fcc-auth-dialog__user-email {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-bottom: 16px;
}

/* ===== fcc-version.css ===== */
/* fcc-version.css — Versioning system: footer link + walkthrough modal
 *
 * Depends on: fcc-tokens.css (--accent, --panel, --text, etc.)
 *             fcc-components.css (.fcc-dialog base)
 */

/* ── Footer version link ──────────────────────────────────────────────────── */
.fcc-version-link {
  color: var(--text-dim, #9aa3b2);
  font-size: var(--text-xs, 0.75rem);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity var(--duration-fast, 0.1s), color var(--duration-fast, 0.1s);
}
.fcc-version-link:hover {
  opacity: 1;
  color: var(--accent, #c7d2fe);
}

/* ── Walkthrough dialog ───────────────────────────────────────────────────── */
.fcc-version-dialog {
  border: 1px solid var(--border, #2a2a2a);
  border-radius: var(--radius-lg, 0.75rem);
  background: var(--panel, #111214);
  color: var(--text, #f5f6f7);
  padding: 0;
  max-width: min(32rem, calc(100vw - 2rem));
  width: 100%;
  box-shadow: var(--shadow-xl, 0 22px 58px rgba(0, 0, 0, 0.36));
  overflow: hidden;
}
.fcc-version-dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ── Header bar (version badge + close) ───────────────────────────────────── */
.fcc-version-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4, 1rem) var(--sp-6, 1.5rem);
  border-bottom: 1px solid var(--line, #1e1e1e);
}
.fcc-version-dialog__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2, 0.5rem);
  font-size: var(--text-xs, 0.75rem);
  font-weight: 600;
  color: var(--accent, #c7d2fe);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fcc-version-dialog__close {
  background: transparent;
  border: none;
  color: var(--text-dim, #9aa3b2);
  font-size: 1.25rem;
  cursor: pointer;
  padding: var(--sp-1, 0.25rem);
  line-height: 1;
  border-radius: var(--radius-sm, 0.25rem);
  transition: color var(--duration-fast, 0.1s);
}
.fcc-version-dialog__close:hover {
  color: var(--text, #f5f6f7);
}
.fcc-version-dialog__close:focus-visible {
  outline: 2px solid var(--accent, #c7d2fe);
  outline-offset: 2px;
}

/* ── Slide area ───────────────────────────────────────────────────────────── */
.fcc-version-dialog__slides {
  position: relative;
  min-height: 12rem;
}
.fcc-version-dialog__slide {
  padding: var(--sp-6, 1.5rem) var(--sp-6, 1.5rem) var(--sp-4, 1rem);
  display: none;
}
.fcc-version-dialog__slide.is-active {
  display: block;
  animation: fcc-version-fadein 0.25s ease;
}
@keyframes fcc-version-fadein {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fcc-version-dialog__slide-title {
  margin: 0 0 var(--sp-3, 0.75rem);
  font-size: var(--text-xl, 1.25rem);
  font-weight: 700;
  color: var(--text, #f5f6f7);
}
.fcc-version-dialog__slide-body {
  margin: 0 0 var(--sp-4, 1rem);
  font-size: var(--text-sm, 0.875rem);
  line-height: var(--leading-loose, 1.65);
  color: var(--text-dim, #9aa3b2);
}
.fcc-version-dialog__slide-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: var(--text-sm, 0.875rem);
  font-weight: 600;
  color: var(--accent, #c7d2fe);
  text-decoration: none;
}
.fcc-version-dialog__slide-link:hover {
  text-decoration: underline;
}

/* ── Footer bar (dots + nav buttons) ──────────────────────────────────────── */
.fcc-version-dialog__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4, 1rem) var(--sp-6, 1.5rem);
  border-top: 1px solid var(--line, #1e1e1e);
}

/* Step dots */
.fcc-version-dialog__dots {
  display: flex;
  gap: var(--sp-2, 0.5rem);
}
.fcc-version-dialog__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--border, #2a2a2a);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--duration-fast, 0.1s), transform var(--duration-fast, 0.1s);
}
.fcc-version-dialog__dot:hover {
  background: var(--text-dim, #9aa3b2);
}
.fcc-version-dialog__dot.is-active {
  background: var(--accent, #c7d2fe);
  transform: scale(1.3);
}
.fcc-version-dialog__dot:focus-visible {
  outline: 2px solid var(--accent, #c7d2fe);
  outline-offset: 2px;
}

/* Nav buttons group */
.fcc-version-dialog__nav {
  display: flex;
  gap: var(--sp-2, 0.5rem);
}

.fcc-version-dialog__nav-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius, 0.35rem);
  border: 2px solid var(--border, #2a2a2a);
  background: transparent;
  color: var(--text-dim, #9aa3b2);
  font: inherit;
  font-size: var(--text-sm, 0.875rem);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--duration-fast, 0.1s), color var(--duration-fast, 0.1s), border-color var(--duration-fast, 0.1s);
}
.fcc-version-dialog__nav-btn:hover {
  color: var(--text, #f5f6f7);
  border-color: var(--text-dim, #9aa3b2);
}
.fcc-version-dialog__nav-btn:focus-visible {
  outline: 2px solid var(--accent, #c7d2fe);
  outline-offset: 2px;
}

/* Primary nav button (Next / Done) */
.fcc-version-dialog__nav-btn--primary {
  background: var(--accent, #c7d2fe);
  border-color: var(--accent, #c7d2fe);
  color: var(--bg, #0c0d0f);
}
.fcc-version-dialog__nav-btn--primary:hover {
  background: var(--accent-2, #e0e7ff);
  border-color: var(--accent-2, #e0e7ff);
  color: var(--bg, #0c0d0f);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
  .fcc-version-dialog {
    max-width: calc(100vw - 1rem);
  }
  .fcc-version-dialog__slide {
    padding: var(--sp-4, 1rem) var(--sp-4, 1rem) var(--sp-3, 0.75rem);
  }
  .fcc-version-dialog__header,
  .fcc-version-dialog__footer {
    padding: var(--sp-3, 0.75rem) var(--sp-4, 1rem);
  }
  .fcc-version-dialog__nav-btn {
    padding: 0.45rem 0.75rem;
    font-size: var(--text-xs, 0.75rem);
  }
}

/* ===== fcc-search-overlay.css ===== */
/* fcc-search-overlay.css — Site search overlay (opened via `/` or Cmd/Ctrl+K) */

/* ── Suppress widgets we want hidden sitewide ─────────────────────────────── */
#fcc-chat-btn,
.fcc-twg-fab {
  display: none !important;
}

/* Hide the search input baked into the editorial nav (we use the overlay) */
.fcc-econav-search {
  display: none !important;
}

/* ── Search overlay (top-center) ──────────────────────────────────────────── */
.fcc-search-overlay {
  position: fixed;
  top: 6rem;
  left: 50%;
  z-index: 9710;
  width: min(28rem, calc(100vw - 3rem));
  background: rgba(15, 16, 19, .96);
  border: 1px solid rgba(99, 102, 241, .3);
  border-radius: 0.65rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  opacity: 0;
  transform: translate(-50%, -8px);
  pointer-events: none;
  transition: opacity .15s, transform .15s;
}
.fcc-search-overlay.is-open {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: all;
}

.fcc-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.fcc-search-icon {
  position: absolute;
  left: 0.6rem;
  color: var(--text-dim, #9aa3b2);
  pointer-events: none;
}
.fcc-search-input {
  width: 100%;
  background: rgba(255, 255, 255, .04);
  color: var(--text, #f5f6f7);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 0.4rem;
  padding: 0.55rem 0.7rem 0.55rem 2rem;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
}
.fcc-search-input:focus {
  border-color: rgba(99, 102, 241, .6);
}
.fcc-search-input::placeholder {
  color: #4b5563;
}

.fcc-search-dropdown {
  max-height: 22rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.fcc-search-dropdown[hidden] {
  display: none;
}

.fcc-search-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.35rem;
  color: var(--text, #f5f6f7);
  font-size: 0.84rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .1s;
}
.fcc-search-item:hover,
.fcc-search-item.is-active {
  background: rgba(99, 102, 241, .12);
}
.fcc-search-item-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: 0.2rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.fcc-search-item-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Narrow screens ───────────────────────────────────────────────────────── */
@media (max-width: 520px) {
  .fcc-search-overlay {
    top: 4rem;
    left: 0.5rem;
    right: 0.5rem;
    width: auto;
    transform: translateY(-8px);
  }
  .fcc-search-overlay.is-open {
    transform: translateY(0);
  }
}
