/* ==========================================================================
   Sat Observer (satobserver.com) - Fluid Theme Child Stylesheet
   Base: @fluid-theme/core v2.0.0 ("press" look in a dark night-sky variant)
   Features:
   - Editorial Press typography: Self-hosted Newsreader Variable (OFL) for
     serif headlines & ledes + Schibsted Grotesk Variable (OFL) for crisp
     body copy, tables, and UI + monospace for TLEs & orbital data.
   - Dark Night-Sky default palette (WCAG 2.2 AA verified >= 4.5:1 text,
     >= 3:1 UI/focus boundaries).
   - Red-Light "Night Vision" toggle (html[data-vision="red"]) designed for
     backyard skywatchers to preserve scotopic dark adaptation while still
     passing WCAG 2.2 AA contrast.
   - Daylight Press support (html[data-theme="light"]:not([data-vision="red"]))
     and full @media print stylesheet for field flowcharts.
   ========================================================================== */

@layer reset, tokens, base, layouts, components, themes, utilities;

@font-face {
  font-family: "Newsreader Fallback";
  src: local("Georgia");
  font-weight: 100 599;
  ascent-override: 76.4676%;
  descent-override: 27.5699%;
  size-adjust: 96.1192%;
}
@font-face {
  font-family: "Newsreader Fallback";
  src: local("Georgia Bold"), local("Georgia-Bold");
  font-weight: 600 900;
  ascent-override: 76.4676%;
  descent-override: 27.5699%;
  size-adjust: 96.1192%;
}
@font-face {
  font-family: "Newsreader Fallback";
  src: local("Georgia Italic"), local("Georgia-Italic");
  font-style: italic;
  font-weight: 100 599;
  ascent-override: 76.4676%;
  descent-override: 27.5699%;
  size-adjust: 96.1192%;
}
@font-face {
  font-family: "Schibsted Fallback";
  src: local("ArialMT"), local("Arial");
  font-weight: 100 599;
  ascent-override: 93.4593%;
  descent-override: 24.6733%;
  line-gap-override: 0%;
  size-adjust: 104.491%;
}
@font-face {
  font-family: "Newsreader Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("./fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader Variable";
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url("./fonts/newsreader-latin-opsz-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("./fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk Variable";
  font-style: italic;
  font-display: swap;
  font-weight: 400 900;
  src: url("./fonts/schibsted-grotesk-latin-wght-italic.woff2") format("woff2");
}

@layer themes {
  /* ========================================================================
     1. Default Palette: Dark Night-Sky Press Variant
     ======================================================================== */
  :root {
    color-scheme: dark light;

    /* Reflect <meta name="color-scheme"> overrides */
    &:has(> head > meta[name="color-scheme"][content="dark"]) {
      color-scheme: dark;
    }
    &:has(> head > meta[name="color-scheme"][content="light"]) {
      color-scheme: light;
    }

    /* Press Theme Typography & Geometry Knobs */
    --font-display: "Newsreader Variable", "Newsreader Fallback", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --font-heading: "Newsreader Variable", "Newsreader Fallback", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --font-body: "Schibsted Grotesk Variable", "Schibsted Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;

    --text-min: 1.0625;
    --text-max: 1.1875;
    --type-ratio: 1.333;
    --weight-display: 500;
    --weight-heading: 500;
    --measure: 65ch;
    --container-prose: 65ch;
    --container-content: 78rem;
    --radius-card: 0px;
    --radius-control: 2px;
    --radius-pill: 2px;
    --border-width: 1px;
    --shadow-style: 0;
    --space-section: clamp(3.5rem, 2.5rem + 4vw, 5.75rem);
    --space-gutter: clamp(2rem, 1rem + 4vw, 5rem);
    --motion-base: 260ms;

    /* Night-Sky Color Tokens (WCAG 2.2 AA verified) */
    --so-bg: #080E1C;              /* Deep zenith night sky (never pure black) */
    --so-bg-alt: #0D162B;          /* Horizon twilight slate */
    --so-surface: #111C35;         /* Editorial card surface */
    --so-surface-raised: #172544;  /* Highlighted panel surface */
    --so-text: #F2F6FC;            /* Starlight ivory (17.5:1 on bg) */
    --so-text-muted: #B9C7DF;      /* Soft silver-blue (9.6:1 on surface) */
    --so-text-subtle: #97A9C7;     /* Quiet caption slate (6.2:1 on surface) */
    --so-rule-heavy: #D7E2F4;      /* Newspaper masthead / section top rule */
    --so-border: #3B4F75;          /* Form & card border (>= 3.1:1 non-text) */
    --so-border-subtle: #233352;   /* Hairline grid divider */
    --so-gold: #F5B841;            /* Solar-array amber gold fill */
    --so-gold-hover: #FFD06B;      /* Bright gold hover */
    --so-gold-ink: #FFD470;        /* Gold text accent (12.1:1 on bg) */
    --so-cyan: #7DD3FC;            /* Orbital track cyan accent (11.4:1 on bg) */
    --so-badge-bg: #1A2B4C;        /* Subtle metadata badge fill */
    --so-error: #FCA5A5;           /* Accessible error coral-red on dark */
    --so-error-bg: #2D1219;
    --so-success: #86EFAC;

    /* SVG Illustration Palette Hooks */
    --svg-bg: #0B1326;
    --svg-grid: #253759;
    --svg-earth: #1E3A6D;
    --svg-earth-limb: #60A5FA;
    --svg-orbit-1: #FFD470;
    --svg-orbit-2: #7DD3FC;
    --svg-orbit-3: #C084FC;
    --svg-sun: #FDE047;
    --svg-text: #E2EBF8;

    /* Map to Fluid Theme Core Semantic Roles */
    --accent: var(--so-gold);
    --on-accent: #080E1C;
    --accent-ink: var(--so-gold-ink);
    --accent-fill: var(--so-gold);
    --on-accent-fill: #080E1C;
    --accent-fill-hover: var(--so-gold-hover);
    --neutral-tint: oklch(50% 0.025 255);
    --color-background: var(--so-bg);
    --color-surface: var(--so-surface);
    --color-surface-raised: var(--so-surface-raised);
    --color-text: var(--so-text);
    --color-text-muted: var(--so-text-muted);
    --color-text-subtle: var(--so-text-subtle);
    --color-border: var(--so-border);
    --color-border-subtle: var(--so-border-subtle);
    --color-focus: var(--so-gold-ink);
    --color-error: var(--so-error);
    --band-inverse: var(--so-bg-alt);

    accent-color: var(--so-gold);
    scrollbar-color: var(--so-border) var(--so-bg);
  }

  /* ========================================================================
     2. Red-Light "Night Vision" Mode (html[data-vision="red"])
        Long-wavelength red/amber spectrum to preserve rod-cell rhodopsin
        dark adaptation outdoors while exceeding WCAG 2.2 AA contrast.
     ======================================================================== */
  :root[data-vision="red"] {
    color-scheme: dark;

    --so-bg: #080101;              /* Deep darkroom crimson-black */
    --so-bg-alt: #110202;          /* Dark crimson band */
    --so-surface: #160404;         /* Field chart card surface */
    --so-surface-raised: #210707;  /* Raised red-light surface */
    --so-text: #FF8C78;            /* Primary red-amber text (8.4:1 on bg, 7.1:1 on raised) */
    --so-text-muted: #FA7159;      /* Muted red-amber text (6.1:1 on surface) */
    --so-text-subtle: #F2644B;     /* Caption red-amber (5.2:1 on surface) */
    --so-rule-heavy: #FF7761;      /* Section rule in red light */
    --so-border: #9E3024;          /* Control border (3.3:1 on surface) */
    --so-border-subtle: #4A120D;   /* Hairline divider */
    --so-gold: #FF6B52;            /* Primary button fill */
    --so-gold-hover: #FF8C78;
    --so-gold-ink: #FFA596;        /* Link & active accent ink (10.1:1 on bg) */
    --so-cyan: #FF9482;            /* Secondary telemetry in red spectrum */
    --so-badge-bg: #290808;
    --so-error: #FFB4A8;
    --so-error-bg: #2E0909;
    --so-success: #FF9E8E;

    /* SVG Illustration Palette Hooks in Red-Light Mode */
    --svg-bg: #0D0202;
    --svg-grid: #4D140E;
    --svg-earth: #330A07;
    --svg-earth-limb: #D94836;
    --svg-orbit-1: #FF8C78;
    --svg-orbit-2: #FA6B52;
    --svg-orbit-3: #E04F38;
    --svg-sun: #FFA596;
    --svg-text: #FF8C78;

    --accent: var(--so-gold);
    --on-accent: #080101;
    --accent-ink: var(--so-gold-ink);
    --accent-fill: var(--so-gold);
    --on-accent-fill: #080101;
    --accent-fill-hover: var(--so-gold-hover);
    --color-background: var(--so-bg);
    --color-surface: var(--so-surface);
    --color-surface-raised: var(--so-surface-raised);
    --color-text: var(--so-text);
    --color-text-muted: var(--so-text-muted);
    --color-text-subtle: var(--so-text-subtle);
    --color-border: var(--so-border);
    --color-border-subtle: var(--so-border-subtle);
    --color-focus: var(--so-gold-ink);
    --color-error: var(--so-error);
    --band-inverse: var(--so-bg-alt);

    accent-color: var(--so-gold);
    scrollbar-color: var(--so-border) var(--so-bg);
  }

  /* ========================================================================
     3. Daylight Press Variant (html[data-theme="light"]:not([data-vision="red"]))
        For daylight reading or automated light-mode contrast audits.
     ======================================================================== */
  :root[data-theme="light"]:not([data-vision="red"]) {
    color-scheme: light;

    --so-bg: #F8F6F0;
    --so-bg-alt: #EFECE3;
    --so-surface: #FFFFFF;
    --so-surface-raised: #F4F0E6;
    --so-text: #121722;
    --so-text-muted: #3E485C;
    --so-text-subtle: #505C73;
    --so-rule-heavy: #121722;
    --so-border: #6D788D;
    --so-border-subtle: #D5D0C3;
    --so-gold: #183668;
    --so-gold-hover: #0F2447;
    --so-gold-ink: #183668;
    --so-cyan: #0F4C81;
    --so-badge-bg: #E6E2D6;
    --so-error: #991B1B;
    --so-error-bg: #FEF2F2;
    --so-success: #166534;

    --svg-bg: #10192E;
    --svg-grid: #293B5F;
    --svg-earth: #1E3A6D;
    --svg-earth-limb: #60A5FA;
    --svg-orbit-1: #FFD470;
    --svg-orbit-2: #7DD3FC;
    --svg-orbit-3: #C084FC;
    --svg-sun: #FDE047;
    --svg-text: #F2F6FC;

    --accent: var(--so-gold);
    --on-accent: #FFFFFF;
    --accent-ink: var(--so-gold-ink);
    --accent-fill: var(--so-gold);
    --on-accent-fill: #FFFFFF;
    --accent-fill-hover: var(--so-gold-hover);
    --color-background: var(--so-bg);
    --color-surface: var(--so-surface);
    --color-surface-raised: var(--so-surface-raised);
    --color-text: var(--so-text);
    --color-text-muted: var(--so-text-muted);
    --color-text-subtle: var(--so-text-subtle);
    --color-border: var(--so-border);
    --color-border-subtle: var(--so-border-subtle);
    --color-focus: var(--so-gold-ink);
    --color-error: var(--so-error);
    --band-inverse: var(--so-bg-alt);
  }

  /* ========================================================================
     4. Base Element & Accessibility Refinements
     ======================================================================== */
  body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
  }

  h1, h2, h3, .display {
    font-family: var(--font-heading);
    color: var(--color-text);
    letter-spacing: -0.015em;
  }

  h1 {
    font-size: clamp(2.15rem, 1.5rem + 2.8vw, 3.5rem);
    line-height: 1.12;
    font-weight: 500;
  }

  h2 {
    font-size: clamp(1.55rem, 1.25rem + 1.4vw, 2.25rem);
    line-height: 1.2;
    font-weight: 500;
  }

  h3 {
    font-size: clamp(1.2rem, 1.08rem + 0.6vw, 1.5rem);
    line-height: 1.28;
    font-weight: 600;
  }

  p, li, dd {
    color: var(--color-text);
  }

  a {
    color: var(--accent-ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
  }

  a:hover {
    color: var(--color-text);
    text-decoration-thickness: 2px;
  }

  /* Placeholder rule per playbook/forms.md: lighter than typed text, italic, >= 3:1 */
  ::placeholder {
    color: var(--so-text-muted);
    font-style: italic;
    opacity: 0.85;
  }

  /* Focus ring + invalid focus ring per playbook/design-and-ux.md */
  :focus-visible,
  [aria-invalid]:focus,
  [aria-invalid]:focus-visible,
  :user-invalid:focus,
  :user-invalid:focus-visible {
    outline: 3px solid var(--color-focus) !important;
    outline-offset: 3px !important;
  }

  /* Skip link */
  .skip-link {
    position: absolute;
    inset-block-start: -100%;
    inset-inline-start: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: var(--accent-fill);
    color: var(--on-accent-fill);
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--color-text);
  }

  .skip-link:focus {
    inset-block-start: 0.75rem;
  }

  /* Honeypot field (hidden visually & from assistive tech) */
  .hp {
    position: absolute !important;
    clip-path: inset(50%) !important;
    overflow: hidden !important;
    inline-size: 1px !important;
    block-size: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    white-space: nowrap !important;
  }

  .visually-hidden:where(:not(:focus-within, :active)) {
    position: absolute !important;
    clip-path: inset(50%) !important;
    overflow: hidden !important;
    inline-size: 1px !important;
    block-size: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    white-space: nowrap !important;
  }

  /* ========================================================================
     5. Press Masthead, Utility Dateline & Night-Vision Bar
     ======================================================================== */
  .press-dateline {
    background: var(--so-bg-alt);
    border-block-end: 1px solid var(--so-border-subtle);
    font-size: 0.85rem;
    color: var(--so-text-muted);
    padding-block: 0.5rem;
  }

  .press-dateline__inner {
    max-inline-size: var(--container-content);
    margin-inline: auto;
    padding-inline: max(calc(var(--space-gutter) / 2), 1.25rem);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
  }

  .press-dateline__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
  }

  .press-masthead {
    background: var(--color-background);
    border-block-end: 2px solid var(--so-rule-heavy);
  }

  .press-masthead__top {
    max-inline-size: var(--container-content);
    margin-inline: auto;
    padding-inline: max(calc(var(--space-gutter) / 2), 1.25rem);
    padding-block: 1.25rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem 2rem;
    border-block-end: 1px solid var(--so-border-subtle);
  }

  .press-brand {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--color-text);
  }

  .press-brand:hover {
    color: var(--accent-ink);
    text-decoration: none;
  }

  .press-brand__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: var(--color-text);
  }

  .press-brand__tagline {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--so-text-muted);
    margin-block-start: 0.2rem;
  }

  /* Red-Light Night Vision Toggle Button */
  .vision-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-block-size: 44px;
    padding: 0.45rem 0.9rem;
    background: var(--so-surface);
    color: var(--color-text);
    border: 1px solid var(--so-border);
    border-radius: var(--radius-control);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 150ms ease, border-color 150ms ease;
  }

  .vision-toggle:hover {
    background: var(--so-surface-raised);
    border-color: var(--accent-ink);
  }

  .vision-toggle__dot {
    inline-size: 0.65rem;
    block-size: 0.65rem;
    border-radius: 50%;
    background: #EF4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
    flex-shrink: 0;
  }

  :root[data-vision="red"] .vision-toggle {
    background: var(--so-surface-raised);
    border-color: var(--so-gold);
    color: var(--so-text);
  }

  :root[data-vision="red"] .vision-toggle__dot {
    background: var(--so-text);
    box-shadow: 0 0 0 3px rgba(255, 140, 120, 0.35);
  }

  /* Primary Navigation Bar (Single clean bar, max 6 items per cognitive IA rules) */
  .press-nav {
    max-inline-size: var(--container-content);
    margin-inline: auto;
    padding-inline: max(calc(var(--space-gutter) / 2), 1.25rem);
  }

  .press-nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .press-nav__link {
    display: inline-flex;
    align-items: center;
    min-block-size: 44px;
    padding-block: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    border-block-end: 2px solid transparent;
  }

  .press-nav__link:hover,
  .press-nav__link[aria-current="page"] {
    color: var(--accent-ink);
    border-block-end-color: var(--accent-ink);
    text-decoration: none;
  }

  /* ========================================================================
     6. Layout Containers, Section Headers & Editorial Grids
     ======================================================================== */
  .wrap {
    max-inline-size: var(--container-content);
    margin-inline: auto;
    padding-inline: max(calc(var(--space-gutter) / 2), 1.25rem);
  }

  .wrap--prose {
    max-inline-size: 52rem;
    margin-inline: auto;
    padding-inline: max(calc(var(--space-gutter) / 2), 1.25rem);
  }

  .band {
    padding-block: var(--space-section);
    border-block-end: 1px solid var(--so-border-subtle);
  }

  .band--alt {
    background: var(--so-bg-alt);
  }

  .band--tight {
    padding-block: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem);
    border-block-end: 1px solid var(--so-border-subtle);
  }

  .section-head {
    border-block-start: 2px solid var(--so-rule-heavy);
    padding-block-start: 1rem;
    margin-block-end: 2.25rem;
    max-inline-size: 48rem;
  }

  .eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-ink);
    margin-block-end: 0.45rem;
  }

  .lede {
    font-family: var(--font-heading);
    font-size: clamp(1.18rem, 1.08rem + 0.5vw, 1.42rem);
    line-height: 1.5;
    color: var(--so-text-muted);
    max-inline-size: 62ch;
    margin-block-start: 0.75rem;
  }

  /* Asymmetric Press Hero */
  .press-hero {
    padding-block: clamp(2.75rem, 2rem + 3.5vw, 4.75rem);
    border-block-end: 1px solid var(--so-border-subtle);
  }

  .press-hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
  }

  @media (min-width: 58rem) {
    .press-hero__grid {
      grid-template-columns: 1.15fr 0.85fr;
      gap: 3.5rem;
    }
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-block-start: 1.75rem;
  }

  /* Buttons (44px+ minimum target size) */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-block-size: 46px;
    padding: 0.65rem 1.35rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    border-radius: var(--radius-control);
    border: 1px solid var(--accent-fill);
    background: var(--accent-fill);
    color: var(--on-accent-fill);
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
  }

  .btn:hover {
    background: var(--accent-fill-hover);
    border-color: var(--accent-fill-hover);
    color: var(--on-accent-fill);
    text-decoration: none;
  }

  .btn--outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--so-border);
  }

  .btn--outline:hover {
    background: var(--so-surface-raised);
    border-color: var(--accent-ink);
    color: var(--accent-ink);
  }

  /* Editorial Cards (One clean surface per card, zero nested boxes) */
  .editorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
    gap: 1.5rem;
  }

  .editorial-grid--2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
    gap: 1.75rem;
  }

  .press-card {
    background: var(--so-surface);
    border: 1px solid var(--so-border-subtle);
    border-block-start: 2px solid var(--so-border);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
  }

  .press-card:hover {
    border-block-start-color: var(--accent-ink);
  }

  .press-card__title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    line-height: 1.25;
    margin: 0.25rem 0 0.5rem;
  }

  .press-card__title a {
    color: var(--color-text);
    text-decoration: none;
  }

  .press-card__title a:hover {
    color: var(--accent-ink);
    text-decoration: underline;
  }

  .press-card__summary {
    color: var(--so-text-muted);
    font-size: 0.98rem;
    margin: 0;
  }

  .press-card__foot {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent-ink);
    margin-block-start: auto;
    padding-block-start: 0.5rem;
  }

  /* Art-Directed Diagram & Placeholder Plates */
  .sky-plate {
    margin: 0;
    background: var(--svg-bg);
    border: 1px solid var(--so-border);
  }

  .sky-plate__canvas {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-block-end: 1px solid var(--so-border-subtle);
  }

  .sky-plate__canvas svg {
    inline-size: 100%;
    block-size: auto;
    max-block-size: 24rem;
  }

  .sky-plate__caption {
    padding: 0.85rem 1.15rem;
    font-size: 0.85rem;
    color: var(--so-text-muted);
    background: var(--so-surface);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .sky-plate__tag {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-ink);
  }

  /* ========================================================================
     7. "What's That Light?" Decision Guide & Printable Flowchart
     ======================================================================== */
  .decision-workbench {
    background: var(--so-surface);
    border: 1px solid var(--so-border);
    padding: clamp(1.25rem, 2.5vw, 2.25rem);
    margin-block-end: 2.5rem;
  }

  .decision-step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: 1.25rem;
    margin-block: 1.5rem;
  }

  .decision-fieldset {
    border: 1px solid var(--so-border-subtle);
    background: var(--so-bg);
    padding: 1.15rem;
  }

  .decision-legend {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-ink);
    padding-inline: 0.35rem;
    margin-block-end: 0.65rem;
  }

  .radio-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .radio-option {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
    min-block-size: 44px;
    border: 1px solid var(--so-border-subtle);
    background: var(--so-surface);
    cursor: pointer;
    font-size: 0.93rem;
  }

  .radio-option:hover {
    border-color: var(--accent-ink);
  }

  .radio-option input[type="radio"] {
    margin-block-start: 0.25rem;
    inline-size: 1.1rem;
    block-size: 1.1rem;
    flex-shrink: 0;
  }

  .outcome-banner {
    background: var(--so-surface-raised);
    border: 2px solid var(--accent-ink);
    padding: 1.5rem;
    margin-block-start: 1.5rem;
  }

  .outcome-card {
    background: var(--so-surface);
    border: 1px solid var(--so-border-subtle);
    border-inline-start: 4px solid var(--so-border);
    padding: 1.35rem;
    transition: border-color 150ms ease, background-color 150ms ease;
  }

  .outcome-card[data-matched="true"] {
    border-color: var(--accent-ink);
    border-inline-start-width: 6px;
    background: var(--so-surface-raised);
  }

  /* Printed / No-JS Decision Flowchart Tree */
  .flowchart-tree {
    display: grid;
    gap: 1rem;
    margin-block: 1.5rem;
  }

  .flowchart-branch {
    background: var(--so-surface);
    border: 1px solid var(--so-border);
    padding: 1.25rem;
  }

  .flowchart-branch__q {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    margin-block-end: 0.75rem;
    padding-block-end: 0.5rem;
    border-block-end: 1px solid var(--so-border-subtle);
  }

  .flowchart-paths {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: 1rem;
  }

  .flowchart-path {
    background: var(--so-bg);
    border: 1px solid var(--so-border-subtle);
    padding: 0.9rem 1rem;
  }

  .flowchart-path__if {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--so-cyan);
    display: block;
    margin-block-end: 0.35rem;
  }

  .flowchart-path__then {
    font-weight: 600;
    color: var(--color-text);
  }

  /* ========================================================================
     8. Data Tables, TLE Code Anatomy & Glossary
     ======================================================================== */
  .table-wrap {
    overflow-x: auto;
    max-inline-size: 100%;
    border: 1px solid var(--so-border);
    background: var(--so-surface);
    margin-block: 1.5rem;
  }

  table.data-table {
    inline-size: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
    text-align: start;
  }

  .data-table caption {
    text-align: start;
    padding: 0.85rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--so-text-muted);
    background: var(--so-bg-alt);
    border-block-end: 1px solid var(--so-border);
  }

  .data-table th,
  .data-table td {
    padding: 0.8rem 1rem;
    border-block-end: 1px solid var(--so-border-subtle);
    vertical-align: top;
  }

  .data-table thead th {
    background: var(--so-surface-raised);
    color: var(--color-text);
    font-weight: 600;
    border-block-end: 2px solid var(--so-border);
  }

  .data-table tbody th {
    font-weight: 600;
    color: var(--color-text);
  }

  /* TLE Monospace Block */
  .tle-specimen {
    background: var(--so-bg);
    border: 1px solid var(--so-border);
    padding: 1.25rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-block: 1.5rem;
  }

  .tle-specimen code {
    font-family: var(--font-mono);
    white-space: pre;
    display: block;
  }

  /* Glossary List (25 Terms) */
  .glossary-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-block: 1.25rem 2rem;
    padding: 0.85rem;
    background: var(--so-surface);
    border: 1px solid var(--so-border-subtle);
  }

  .glossary-jump a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-inline-size: 40px;
    min-block-size: 40px;
    padding: 0.25rem 0.55rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--so-bg);
    border: 1px solid var(--so-border-subtle);
    text-decoration: none;
    color: var(--color-text);
  }

  .glossary-jump a:hover {
    border-color: var(--accent-ink);
    color: var(--accent-ink);
  }

  .glossary-list {
    display: grid;
    gap: 1.25rem;
    margin: 0;
  }

  .glossary-item {
    background: var(--so-surface);
    border: 1px solid var(--so-border-subtle);
    border-inline-start: 3px solid var(--accent-ink);
    padding: 1.25rem 1.5rem;
  }

  .glossary-item dt {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-block-end: 0.45rem;
  }

  .glossary-item__num {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent-ink);
    font-weight: 500;
  }

  .glossary-item dd {
    margin: 0;
    color: var(--so-text-muted);
  }

  .glossary-item__source {
    margin-block-start: 0.65rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--so-text-subtle);
  }

  /* ========================================================================
     9. Forms, Callouts, Sources Box & Footer
     ======================================================================== */
  .form-card {
    background: var(--so-surface);
    border: 1px solid var(--so-border);
    padding: clamp(1.25rem, 2.5vw, 2rem);
  }

  .form-group {
    margin-block-end: 1.25rem;
  }

  .form-group label,
  .form-legend {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    margin-block-end: 0.4rem;
  }

  .form-hint {
    display: block;
    font-size: 0.84rem;
    color: var(--so-text-muted);
    margin-block-end: 0.45rem;
  }

  .form-control {
    inline-size: 100%;
    min-block-size: 46px;
    padding: 0.65rem 0.85rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--so-bg);
    border: 1px solid var(--so-border);
    border-radius: var(--radius-control);
  }

  .form-control:hover {
    border-color: var(--so-text-muted);
  }

  /* Conditional field pattern per playbook/forms.md pattern 7 */
  .if-other {
    display: block;
  }

  @supports selector(:has(*)) {
    .if-other {
      display: none;
    }
    form:has(select[name="reason"] option[value="other"]:checked) .if-other {
      display: block;
    }
  }

  .turnstile-slot {
    padding: 0.75rem 1rem;
    margin-block: 1rem;
    background: var(--so-bg-alt);
    border: 1px dashed var(--so-border);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--so-text-muted);
  }

  .callout-note {
    background: var(--so-surface);
    border: 1px solid var(--so-border);
    border-inline-start: 4px solid var(--accent-ink);
    padding: 1.15rem 1.35rem;
    margin-block: 1.5rem;
  }

  .callout-note__title {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-ink);
    display: block;
    margin-block-end: 0.35rem;
  }

  .sources-box {
    margin-block-start: 2.5rem;
    padding-block-start: 1.25rem;
    border-block-start: 2px solid var(--so-rule-heavy);
  }

  .sources-box h2,
  .sources-box h3 {
    font-size: 1.15rem;
    margin-block-end: 0.75rem;
  }

  .sources-list {
    font-size: 0.9rem;
    color: var(--so-text-muted);
    padding-inline-start: 1.25rem;
    display: grid;
    gap: 0.45rem;
  }

  .placeholder-token {
    font-family: var(--font-mono);
    font-size: 0.88em;
    padding: 0.1em 0.35em;
    background: var(--so-badge-bg);
    border: 1px solid var(--so-border);
    color: var(--accent-ink);
  }

  /* Accordion / FAQ details */
  .faq-list {
    display: grid;
    gap: 0.85rem;
  }

  .faq-item {
    background: var(--so-surface);
    border: 1px solid var(--so-border-subtle);
    padding: 0.25rem 1.25rem;
  }

  .faq-item summary {
    padding-block: 0.95rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    min-block-size: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .faq-item__body {
    padding-block: 0.25rem 1.15rem;
    border-block-start: 1px solid var(--so-border-subtle);
    color: var(--so-text-muted);
  }

  /* Site Footer */
  .press-footer {
    background: var(--so-bg-alt);
    border-block-start: 2px solid var(--so-rule-heavy);
    padding-block: 3rem 2.5rem;
    font-size: 0.92rem;
    color: var(--so-text-muted);
  }

  .press-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: 2rem;
    padding-block-end: 2rem;
    border-block-end: 1px solid var(--so-border-subtle);
  }

  .press-footer__heading {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text);
    margin-block-end: 0.75rem;
  }

  .press-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.45rem;
  }

  .press-footer__links a {
    color: var(--so-text-muted);
    text-decoration: none;
    display: inline-block;
    padding-block: 0.15rem;
  }

  .press-footer__links a:hover {
    color: var(--accent-ink);
    text-decoration: underline;
  }

  .press-footer__legal {
    padding-block-start: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 2rem;
    font-size: 0.83rem;
    color: var(--so-text-subtle);
  }

  /* ========================================================================
     10. Print Stylesheet (@media print)
         Ensures "What's that light?" works as a crisp printed flowchart.
     ======================================================================== */
  @media print {
    :root,
    :root[data-vision="red"] {
      --color-background: #FFFFFF !important;
      --color-surface: #FFFFFF !important;
      --color-surface-raised: #F5F5F5 !important;
      --color-text: #000000 !important;
      --so-text-muted: #222222 !important;
      --so-text-subtle: #444444 !important;
      --so-border: #000000 !important;
      --so-border-subtle: #888888 !important;
      --accent-ink: #000000 !important;
    }

    body {
      background: #FFFFFF !important;
      color: #000000 !important;
      font-size: 11pt;
    }

    .press-dateline,
    .vision-toggle,
    .press-nav,
    .hero-actions,
    .no-print {
      display: none !important;
    }

    .flowchart-branch,
    .outcome-card,
    .glossary-item {
      break-inside: avoid;
      border: 1px solid #000000 !important;
    }
  }
}
