/*
 * console.css
 *
 * The Atlas console's single shared foundation: harness tokens, the type
 * scale expressed as real classes, the shared chrome (nav with brand mark,
 * footer, eyebrow-plus-headline), and the product-density component
 * vocabulary the five pages consume.
 *
 * WHY THIS FILE EXISTS. The console imported design-tokens.css for colour
 * and ignored it for type: a private scale of half-pixel values grew inside
 * five page <style> blocks, breaking the harness's 12px floor 51 times and
 * leaving 138 raw font-size declarations. Every one of those is now a class
 * here. Pages must not declare a raw font-size again; scripts/audit_console_type.py
 * enforces that mechanically.
 *
 * RELATIONSHIP TO THE HARNESS. geoliquefy-design/tokens.css is the canonical
 * token source and geoliquefy-design/DESIGN.md the binding specification.
 * This file is the console's applied copy of that harness, extended with the
 * console-specific tokens design-tokens.css already introduced (--surface-1-map,
 * --mixed-600, --scrim). If a token VALUE needs to change, change it in
 * geoliquefy-design/tokens.css first, then re-apply here. Do not let this
 * file drift into a competing definition.
 *
 * WHAT CHANGED FROM design-tokens.css. That file shipped dark values only,
 * as a plain :root block, because the console had no light mode. This file
 * ships both modes: light in :root, dark behind prefers-color-scheme, and
 * an explicit [data-theme] override that wins over the OS preference in
 * BOTH directions (DESIGN.md 2.3). design-tokens.css remains served for
 * backward compatibility and is loaded before this file by every page.
 *
 * DENSITY. Product mode throughout (DESIGN.md 3.4): 48-64px section rhythm,
 * 20px card padding, 15px body in dense contexts, 17px prose at 1.6 leading,
 * border-shift hover rather than a lift.
 */

/* ================================================================
   FONT LOADING
   Self-hosted under /static/fonts (see FONTS-LICENSE.txt there for the
   OFL-1.1 sourcing and subsetting provenance of each file). The same
   binaries the marketing site ships, so both properties render with
   identical glyphs. Zero external font requests: no Google Fonts link,
   no preconnect, no CSS hop.
   ================================================================ */

@font-face {
  font-family: 'Inter';
  src: url('/static/fonts/inter-var.woff2') format('woff2-variations'),
       url('/static/fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('/static/fonts/dm-sans-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('/static/fonts/dm-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('/static/fonts/dm-sans-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('/static/fonts/dm-sans-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Metric-matched fallbacks (DESIGN.md 1.7 item 5), carried byte-identical
   from the marketing site's main.css, where they were computed against
   Arial from the real published OS/2 and hhea metrics for each family.
   Without these the webfont swap reflows the whole page; with them the
   fallback occupies the same box as the real face. */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
  size-adjust: 107.12%;
}

@font-face {
  font-family: 'DM Sans Fallback';
  src: local('Arial');
  ascent-override: 94.90%;
  descent-override: 29.66%;
  line-gap-override: 0%;
  size-adjust: 104.53%;
}

/* ================================================================
   TOKENS: LIGHT MODE (default), DESIGN.md 2.1
   ================================================================ */

:root {
  /* ---- Families ---- */
  --font-body: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'DM Sans', 'DM Sans Fallback', -apple-system, BlinkMacSystemFont,
    sans-serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;

  /* ---- Weights ---- */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* ---- Fluid type scale (DESIGN.md 1.3) ---- */
  --text-display: clamp(3.5rem, 2.6rem + 4.2vw, 5rem);
  --text-h1: clamp(2.5rem, 2.1rem + 1.8vw, 3rem);
  --text-h2: clamp(1.75rem, 1.55rem + 0.9vw, 2rem);
  --text-h3: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --text-h4: clamp(1.125rem, 1.075rem + 0.22vw, 1.25rem);
  --text-body-xl: 1.5rem;
  --text-body-l: 1.3125rem;
  --text-body-m: 1.0625rem;
  --text-body-s: 0.9375rem;
  --text-caption: 0.875rem;
  --text-micro: 0.75rem;   /* 12px floor: never smaller, uppercase only */

  /* ---- Line heights ---- */
  --leading-tight: 1.1;
  --leading-marketing: 1.47059;
  --leading-dossier: 1.6;

  /* ---- Measure ---- */
  --measure-body: 65ch;
  --measure-dossier: 75ch;

  /* ---- Letter-spacing ---- */
  --tracking-display: -0.03em;
  --tracking-h1: -0.03em;
  --tracking-h2: -0.025em;
  --tracking-h3: -0.02em;
  --tracking-h4: -0.015em;
  --tracking-body: -0.011em;
  --tracking-body-s: -0.008em;
  --tracking-micro: 0.05em;
  --tracking-eyebrow: 0.12em;

  /* ---- Surfaces (light) ---- */
  --surface-0: #FFFFFF;
  /* LOAD-BEARING PAIR: --on-surface-1 on --surface-1 computes to 4.66:1, an
     AA pass with almost no margin. Re-verify contrast before changing
     either value (DESIGN.md 2.1). */
  --surface-1: #F5F5F7;
  --surface-2: #EBEBEE;

  /* ---- Text (light) ---- */
  --on-surface-0: #1D1D1F;
  --on-surface-1: #6E6E73;
  --on-surface-2: #4A4A4F;

  /* ---- Accent (light) ---- */
  --accent-600: #0066CC;
  --accent-700: #004499;
  --accent-soft: rgba(0, 102, 204, 0.05);
  --accent-ring: rgba(0, 102, 204, 0.2);

  /* ---- Status (light), non-colour-alone treatment per DESIGN.md 2.4 ---- */
  --danger-600: #C4291F;
  --danger-fill: #FF3B30;
  --danger-soft: rgba(255, 59, 48, 0.08);
  --success-700: #1E7A43;
  --success-soft: rgba(30, 122, 67, 0.08);
  --warn-800: #8A5A00;
  --warn-soft: rgba(138, 90, 0, 0.08);

  /* ---- Borders (light) ---- */
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);
  --border-divider: #D1D1D6;

  /* ---- Console-specific tokens (console-mapping.md Section 4) ---- */
  --surface-1-map: #E4E7EC;  /* coverage choropleth land fill, light-mode peer
    of the dark --surface-1-map; a map fill, deliberately off the shared scale */
  --mixed-600: #6B3FA0;      /* gallery's third outcome category, mixed_evidence.
    Light-mode value darkened from the dark #B98AE0 to clear AA on white */
  --mixed-soft: rgba(107, 63, 160, 0.08);
  --scrim: rgba(29, 29, 31, 0.45);

  /* ---- Spacing (DESIGN.md 3.1) ---- */
  --space-1: 8px;
  --space-1-5: 12px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;
  --space-15: 120px;

  /* ---- Layout ---- */
  --container-width: 1080px;
  --container-wide: 1200px;
  /* Product mode section rhythm: 48-64px, not the marketing site's 120px.
     A console reader compares rather than scrolls (DESIGN.md 3.4). */
  --section-gap: var(--space-8);

  /* ---- Shadows (light) ---- */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.12);
  --shadow-accent: 0 4px 12px rgba(0, 102, 204, 0.3);

  /* ---- Radius (console scale, tighter than marketing; overridden on
     body.atlas-console below, kept here so a bare page still resolves) ---- */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 980px;

  /* ---- Motion ---- */
  --ease-default: ease;
  --ease-btn: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-entrance: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-instant: 0.1s;
  --duration-fast: 0.2s;
  --duration-base: 0.3s;
  --duration-slow: 0.5s;
  --duration-entrance: 0.8s;
  --duration-shimmer: 2.2s;

  /* ---- Icons (Lucide, 1.5px stroke) ---- */
  --icon-stroke: 1.5px;
  --icon-size-default: 24px;
  --icon-size-compact: 20px;

  color-scheme: light dark;
}

/* ================================================================
   TOKENS: DARK MODE
   Seeded from the console's own shipping values (DESIGN.md 2.2), so the
   dark theme is the designed original rather than an inversion of light.
   ================================================================ */

@media (prefers-color-scheme: dark) {
  :root {
    --surface-0: #0B1016;
    --surface-1: #121A24;
    --surface-2: #0D141D;
    --on-surface-0: #E7EDF3;
    --on-surface-1: #93A3B5;
    /* CAVEAT: --on-surface-2 is 3.50:1 on surface-0, below AA-normal.
       Label and metadata use only, always paired with an icon or a
       positional cue. Never body copy, never text a user must read to
       understand system state (DESIGN.md 2.2). */
    --on-surface-2: #5C6B7D;
    --accent-600: #4FB0FF;
    --accent-700: #1C4A6B;
    --accent-soft: #16283A;
    --accent-ring: #16283A;
    --danger-600: #E0605A;
    --danger-fill: #E0605A;
    --danger-soft: #2A1414;
    --success-700: #57C785;
    --success-soft: #10241A;
    --warn-800: #E0A340;
    --warn-soft: #2A2110;
    --border-subtle: #223042;
    --border-strong: #2A3A4C;
    --border-divider: #223042;
    --surface-1-map: #1B2634;
    --mixed-600: #B98AE0;
    --mixed-soft: #201A2A;
    --scrim: rgba(11, 16, 22, 0.72);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.36);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.48);
    --shadow-accent: 0 4px 12px rgba(79, 176, 255, 0.3);
  }
}

/* Explicit theme override. Higher specificity than the media query, so a
   toggle wins over the OS preference in BOTH directions. */
:root[data-theme='dark'] {
  --surface-0: #0B1016;
  --surface-1: #121A24;
  --surface-2: #0D141D;
  --on-surface-0: #E7EDF3;
  --on-surface-1: #93A3B5;
  --on-surface-2: #5C6B7D;
  --accent-600: #4FB0FF;
  --accent-700: #1C4A6B;
  --accent-soft: #16283A;
  --accent-ring: #16283A;
  --danger-600: #E0605A;
  --danger-fill: #E0605A;
  --danger-soft: #2A1414;
  --success-700: #57C785;
  --success-soft: #10241A;
  --warn-800: #E0A340;
  --warn-soft: #2A2110;
  --border-subtle: #223042;
  --border-strong: #2A3A4C;
  --border-divider: #223042;
  --surface-1-map: #1B2634;
  --mixed-600: #B98AE0;
  --mixed-soft: #201A2A;
  --scrim: rgba(11, 16, 22, 0.72);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.36);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.48);
  --shadow-accent: 0 4px 12px rgba(79, 176, 255, 0.3);
  color-scheme: dark;
}

:root[data-theme='light'] {
  --surface-0: #FFFFFF;
  --surface-1: #F5F5F7;
  --surface-2: #EBEBEE;
  --on-surface-0: #1D1D1F;
  --on-surface-1: #6E6E73;
  --on-surface-2: #4A4A4F;
  --accent-600: #0066CC;
  --accent-700: #004499;
  --accent-soft: rgba(0, 102, 204, 0.05);
  --accent-ring: rgba(0, 102, 204, 0.2);
  --danger-600: #C4291F;
  --danger-fill: #FF3B30;
  --danger-soft: rgba(255, 59, 48, 0.08);
  --success-700: #1E7A43;
  --success-soft: rgba(30, 122, 67, 0.08);
  --warn-800: #8A5A00;
  --warn-soft: rgba(138, 90, 0, 0.08);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);
  --border-divider: #D1D1D6;
  --surface-1-map: #E4E7EC;
  --mixed-600: #6B3FA0;
  --mixed-soft: rgba(107, 63, 160, 0.08);
  --scrim: rgba(29, 29, 31, 0.45);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.12);
  --shadow-accent: 0 4px 12px rgba(0, 102, 204, 0.3);
  color-scheme: light;
}

/* Console radius scale: denser than the marketing default, which suits
   small chips, compact inputs, and tight table chrome. Scoped to the
   console body so a future marketing consumer of this file is unaffected. */
body.atlas-console {
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
}

/* ================================================================
   BASE ELEMENTS
   ================================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* Nothing in the console may push the page sideways. Wide content scrolls
     inside its own container (.table-container), never the document. */
  overflow-x: hidden;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--surface-0);
  color: var(--on-surface-0);
  font-family: var(--font-body);
  font-size: var(--text-body-s);
  line-height: var(--leading-marketing);
  letter-spacing: var(--tracking-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: var(--leading-tight);
  color: var(--on-surface-0);
  margin: 0;
}

/* Weight decreases with size down the hierarchy, so weight and size are two
   signals rather than one (DESIGN.md 1.2). */
h1 { font-size: var(--text-h1); font-weight: var(--font-bold); letter-spacing: var(--tracking-h1); }
h2 { font-size: var(--text-h2); font-weight: var(--font-bold); letter-spacing: var(--tracking-h2); }
h3 { font-size: var(--text-h3); font-weight: var(--font-semibold); letter-spacing: var(--tracking-h3); }
h4 { font-size: var(--text-h4); font-weight: var(--font-medium); letter-spacing: var(--tracking-h4); }

p { margin: 0; }

a { color: var(--accent-600); text-decoration: none; }

code, pre, .mono, .font-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---- Focus-visible: global, never a per-component opt-in ---- */
:focus-visible {
  outline: 2px solid var(--accent-600);
  outline-offset: 2px;
}

.btn:focus-visible,
.nav-btn:focus-visible,
button:focus-visible {
  outline-offset: 3px;
}

/* ---- Selection ---- */
::selection {
  background: var(--accent-ring);
  color: var(--on-surface-0);
}

/* ---- Scrollbar treatment: thin, token-coloured, both engines ---- */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover { background: var(--on-surface-2); }

/* Readers who prefer reduced motion get no shimmer, no pulse, no creep. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================================================================
   TYPE SCALE AS CLASSES
   Every size the pages need, named. A page that needs a size it cannot
   find here needs a layout change, not a new number (DESIGN.md 1.6,
   ATLAS-CONSOLE.md 2.3 rule 3).
   ================================================================ */

.t-display {
  font-family: var(--font-heading);
  font-size: var(--text-display);
  font-weight: var(--font-bold);
  letter-spacing: var(--tracking-display);
  line-height: 1.05;
}

.t-h1 {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  font-weight: var(--font-bold);
  letter-spacing: var(--tracking-h1);
  line-height: var(--leading-tight);
}

.t-h2 {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: var(--font-bold);
  letter-spacing: var(--tracking-h2);
  line-height: 1.15;
}

.t-h3 {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-h3);
  line-height: 1.2;
}

.t-h4 {
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  font-weight: var(--font-medium);
  letter-spacing: var(--tracking-h4);
  line-height: 1.25;
}

.t-body-xl { font-size: var(--text-body-xl); line-height: 1.4; }
.t-body-l  { font-size: var(--text-body-l);  line-height: 1.5; }
.t-body-m  { font-size: var(--text-body-m);  line-height: var(--leading-marketing); }
.t-body-s  { font-size: var(--text-body-s);  line-height: 1.5; letter-spacing: var(--tracking-body-s); }
.t-caption { font-size: var(--text-caption); line-height: 1.4; }

/* The floor. Uppercase, tracked, never sentence-length content. */
.t-micro {
  font-size: var(--text-micro);
  line-height: 1.35;
  letter-spacing: var(--tracking-micro);
  text-transform: uppercase;
}

/* Micro at the same 12px floor but not uppercased, for the rare metadata
   string (a hash fragment, a timestamp) that would be unreadable in caps. */
.t-micro-plain {
  font-size: var(--text-micro);
  line-height: 1.35;
}

/* ---- Colour roles as classes, so pages stop hand-picking ---- */
.t-primary   { color: var(--on-surface-0); }
.t-secondary { color: var(--on-surface-1); }
.t-faint     { color: var(--on-surface-2); }
.t-accent    { color: var(--accent-600); }

/* ---- Weight helpers ---- */
.t-medium   { font-weight: var(--font-medium); }
.t-semibold { font-weight: var(--font-semibold); }
.t-bold     { font-weight: var(--font-bold); }

/* ---- Long-form prose: 1.6 leading at a 75ch measure ----
   Console readers are not skimming, so prose is --on-surface-0, not the
   marketing convention of secondary-coloured body copy (DESIGN.md 3.4). */
.prose-dossier {
  max-width: var(--measure-dossier);
}

.prose-dossier p {
  font-size: var(--text-body-m);
  line-height: var(--leading-dossier);
  color: var(--on-surface-0);
  max-width: var(--measure-dossier);
  margin: 0 0 var(--space-3);
}

.prose-dossier p:last-child { margin-bottom: 0; }
.prose-dossier strong { font-weight: var(--font-semibold); color: var(--on-surface-0); }

.lede {
  font-size: var(--text-body-l);
  line-height: 1.5;
  color: var(--on-surface-0);
  max-width: var(--measure-dossier);
}

/* ================================================================
   EYEBROW PLUS HEADLINE
   Carried verbatim from the marketing site's .section-eyebrow, including
   the 2px left border and 10px padding. The cheapest hierarchy signal in
   the system, and the console previously used only half of it
   (ATLAS-CONSOLE.md 5.1).
   ================================================================ */

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-micro);
  font-weight: var(--font-bold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--accent-600);
  border-left: 2px solid var(--accent-600);
  padding-left: 10px;
  margin-bottom: var(--space-1-5);
}

/* ================================================================
   SHELL, SECTIONS, CHROME
   ================================================================ */

.console-shell {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: var(--space-4) var(--space-3) var(--space-8);
}

/* Prose-led pages cap the shell narrower so headings and body sit on one
   rhythm rather than stranding a 75ch measure inside a 1200px box. */
.console-shell.shell-narrow { max-width: 1100px; }

.page-head {
  margin-bottom: var(--space-6);
}

.page-head .subtitle {
  font-size: var(--text-body-m);
  line-height: var(--leading-marketing);
  color: var(--on-surface-1);
  max-width: var(--measure-body);
  margin-top: var(--space-1-5);
}

.console-section {
  margin-top: var(--section-gap);
}

.console-section > h2 {
  margin-bottom: var(--space-2);
}

/* A section label above a heading, where a category cue helps. Sits at the
   12px floor and is uppercase, which is exactly what the floor is for. */
.section-eyebrow {
  display: block;
  font-size: var(--text-micro);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--on-surface-1);
  margin-bottom: var(--space-1);
}

/* ================================================================
   NAVIGATION: brand mark, links with an active state, mobile menu
   One component, used identically on all five pages, replacing three
   divergent inline-styled implementations (ATLAS-CONSOLE.md 1.1, 4.1).
   ================================================================ */

.console-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--surface-0);
  border-bottom: 1px solid var(--border-subtle);
}

.console-nav-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-3);
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  letter-spacing: -0.035em;
  color: var(--on-surface-0);
  white-space: nowrap;
  transition: opacity var(--duration-fast) var(--ease-default);
}

.nav-brand:hover { opacity: 0.75; }
.nav-brand svg { flex-shrink: 0; }

/* The wordmark is one flex item, so the mark-to-wordmark gap is the nav's
   own 7px and the two word halves stay kerned together. */
.brand-wordmark { display: inline-flex; align-items: baseline; white-space: nowrap; }
.brand-geo { font-weight: var(--font-bold); }
.brand-liquefy { font-weight: var(--font-light); margin-left: -2px; }

/* "Atlas" names the product surface beside the company wordmark. Set at the
   floor, uppercase, tracked, so it reads as a label and not a third word in
   the wordmark. */
.nav-brand .brand-product {
  font-family: var(--font-body);
  font-size: var(--text-micro);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--on-surface-1);
  border-left: 1px solid var(--border-subtle);
  padding-left: 9px;
  margin-left: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
}

.nav-links a {
  font-size: var(--text-caption);
  font-weight: var(--font-medium);
  color: var(--on-surface-1);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--duration-fast) var(--ease-default),
    border-color var(--duration-fast) var(--ease-default);
}

.nav-links a:hover { color: var(--on-surface-0); }

/* Active state: colour plus a rule, so the current page is marked by two
   signals rather than a colour shift alone. */
.nav-links a.active {
  color: var(--on-surface-0);
  border-bottom-color: var(--accent-600);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--on-surface-0);
  font-family: var(--font-body);
  font-size: var(--text-micro);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-micro);
  text-transform: uppercase;
  padding: 7px 12px;
  cursor: pointer;
}

.nav-toggle:hover { border-color: var(--accent-600); color: var(--accent-600); }

/* Collapse threshold, measured (not guessed): the public 6-link nav
   (Investigate/Judgments/Evidence coverage/Gallery/Portfolio/Methodology)
   renders at 601px, so brand (190px) + links (601px) + .console-nav-inner's
   own 48px horizontal padding needs ~839px to sit on one line. 720px was
   short of that by over 100px, which is the overflow this rule fixes: raised
   to 900px, a round number with margin above the measured 839px. This alone
   is not enough for a gated exhibit page's nav (CONSOLE_LINKS plus
   EXHIBIT_LINKS, atlas/web/chrome.py): that set measures 1119px of links,
   1357px all-in, which exceeds --container-wide (1200px) itself, so no
   viewport width, however wide, ever fits it on one line inside the capped
   .console-nav-inner. The rule below the media query handles that case by
   link count rather than viewport width. */
@media (max-width: 900px) {
  .console-nav-inner { flex-wrap: wrap; padding: 0 var(--space-2); }
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none;
    width: 100%;
    margin: 0 0 var(--space-1-5);
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-links a.active { border-bottom-color: var(--accent-600); }
}

/* Gated exhibit pages (include_exhibits=True, founder ruling D-5) add
   EXHIBIT_LINKS to CONSOLE_LINKS: 11-12 links depending on portfolio scope,
   measured at 1037-1119px of link content, 1279-1357px all-in. That is wider
   than --container-wide (1200px), so it can never fit on one line at any
   viewport, unlike the 6-link public nav the 900px breakpoint above already
   covers. `:has()` counts the actual rendered links rather than trusting a
   viewport guess, so this rule fires whenever a 7th link exists (the public
   set never has one) and forces the same collapsed/toggle treatment as the
   narrow-viewport case, at every width. */
.console-nav-inner:has(.nav-links > a:nth-child(7)) {
  flex-wrap: wrap;
  padding: 0 var(--space-2);
}
.console-nav-inner:has(.nav-links > a:nth-child(7)) .nav-toggle {
  display: inline-block;
}
.console-nav-inner:has(.nav-links > a:nth-child(7)) .nav-links {
  display: none;
  width: 100%;
  margin: 0 0 var(--space-1-5);
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.console-nav-inner:has(.nav-links > a:nth-child(7)) .nav-links.open {
  display: flex;
}
.console-nav-inner:has(.nav-links > a:nth-child(7)) .nav-links a {
  width: 100%;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.console-nav-inner:has(.nav-links > a:nth-child(7)) .nav-links a.active {
  border-bottom-color: var(--accent-600);
}

/* ================================================================
   BUTTONS
   Three tiers plus the press state, adopted from the marketing site's
   hierarchy (ATLAS-CONSOLE.md 5.1).
   ================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 10px var(--space-2);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: var(--font-semibold);
  line-height: 1.2;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-btn);
}

/* The label colour is stated OUTRIGHT rather than left to var(--surface-0).
   Every theme-gated rule below sets this property, and while the product was
   dark-only every page pinned data-theme so one of them always applied. The
   light-first reskin removed that attribute, so on the default arm none of
   them matches and this base rule is what actually paints the button. It has
   to be a value that holds on brass by itself: white is 5.49:1 on
   --accent-600 and 7.64:1 on the --accent-700 hover, where --surface-0 would
   drift to the page ground (#F3F6F5, 5.05:1) and track it on every future
   palette change. */
.btn-primary {
  background: var(--accent-600);
  color: #FFFFFF;
}

.btn-primary:hover:not(:disabled) { background: var(--accent-700); box-shadow: var(--shadow-accent); }

/* On dark, --accent-700 is a dim navy that would swallow white text, so the
   dark hover deepens the fill's contrast partner instead of the fill. */
@media (prefers-color-scheme: dark) {
  .btn-primary { color: #071018; }
  .btn-primary:hover:not(:disabled) { background: var(--accent-600); filter: brightness(1.12); }
}

:root[data-theme='dark'] .btn-primary { color: #071018; }
:root[data-theme='dark'] .btn-primary:hover:not(:disabled) {
  background: var(--accent-600);
  filter: brightness(1.12);
}

:root[data-theme='light'] .btn-primary { color: #FFFFFF; }
:root[data-theme='light'] .btn-primary:hover:not(:disabled) {
  background: var(--accent-700);
  filter: none;
}

.btn-secondary {
  background: transparent;
  color: var(--accent-600);
  border-color: var(--accent-600);
}

.btn-secondary:hover:not(:disabled) { background: var(--accent-soft); }

.btn-tertiary {
  background: var(--surface-1);
  color: var(--on-surface-0);
  border-color: var(--border-subtle);
}

.btn-tertiary:hover:not(:disabled) { border-color: var(--border-strong); background: var(--surface-2); }

.btn:disabled,
.btn[disabled] {
  background: var(--surface-2);
  color: var(--on-surface-1);
  border-color: var(--border-subtle);
  cursor: not-allowed;
  box-shadow: none;
  filter: none;
}

/* Press state, applied once to every button rather than per selector. */
.btn:active:not(:disabled),
button:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
  transition-duration: var(--duration-instant);
}

/* ================================================================
   FORMS
   ================================================================ */

.console-label,
label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-micro);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--on-surface-1);
  margin: var(--space-2) 0 5px;
}

input[type='text'],
input[type='number'],
input[type='email'],
textarea,
select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--on-surface-0);
  padding: 9px 11px;
  font-family: var(--font-body);
  font-size: var(--text-body-s);
  transition: border-color var(--duration-fast) var(--ease-default),
    box-shadow var(--duration-fast) var(--ease-default);
}

input[type='number'] {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-600);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ================================================================
   CHIPS AND PILLS
   Border plus fill plus text label on every variant, so a chip's meaning
   survives greyscale and colour blindness (DESIGN.md 2.4).
   ================================================================ */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: var(--text-micro);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-micro);
  text-transform: uppercase;
  line-height: 1.3;
  padding: 3px 9px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  background: var(--surface-2);
  color: var(--on-surface-1);
  white-space: nowrap;
}

/* OUTCOME CHIPS vs STATUS CHIPS.

   The `.outcome-*` and `.chip-mixed` classes carry the screening verdict
   vocabulary (susceptibility indicated / not indicated / insufficient data /
   mixed evidence); the `.status-*` classes carry job status (done, failed,
   compliance flagged). Only the verdict classes take the --outcome-* tokens:
   a failed job is not a liquefaction outcome and keeps the generic danger
   colour.

   Each outcome declaration is written as var(--outcome-X, var(--old)). Pages
   that load product-tokens.css resolve --outcome-X; pages still on
   design-tokens.css alone (only scorecard remains un-migrated) fall back to
   exactly today's value, so this migration is a visual no-op there. */

.chip-ok,
.chip.status-done {
  background: var(--success-soft);
  color: var(--success-700);
  border-color: var(--success-700);
}

.chip.outcome-ok {
  background: var(--outcome-not-indicated-soft, var(--success-soft));
  color: var(--outcome-not-indicated, var(--success-700));
  border-color: var(--outcome-not-indicated, var(--success-700));
}

.chip-warn,
.chip.status-compliance_flagged {
  background: var(--warn-soft);
  color: var(--warn-800);
  border-color: var(--warn-800);
}

.chip.outcome-warn {
  background: var(--outcome-insufficient-soft, var(--warn-soft));
  color: var(--outcome-insufficient, var(--warn-800));
  border-color: var(--outcome-insufficient, var(--warn-800));
}

.chip-danger,
.chip.status-failed {
  background: var(--danger-soft);
  color: var(--danger-600);
  border-color: var(--danger-600);
}

.chip.outcome-danger {
  background: var(--outcome-indicated-soft, var(--danger-soft));
  color: var(--outcome-indicated, var(--danger-600));
  border-color: var(--outcome-indicated, var(--danger-600));
}

.chip-mixed {
  background: var(--outcome-mixed-soft, var(--mixed-soft));
  color: var(--outcome-mixed, var(--mixed-600));
  border-color: var(--outcome-mixed, var(--mixed-600));
}

.chip-neutral,
.chip.outcome-none {
  background: transparent;
  color: var(--on-surface-1);
  border-color: var(--border-subtle);
}

.chip-accent {
  background: var(--accent-soft);
  color: var(--accent-600);
  border-color: var(--accent-600);
}

/* ================================================================
   RELIABILITY GRADE, THREE SIGNALS
   Colour, the letter plus its descriptive phrase, and a filled-bar glyph.
   The bars are what survive a greyscale print (ATLAS-CONSOLE.md 3.1).
   ================================================================ */

.grade {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-micro);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-micro);
  white-space: nowrap;
}

.grade-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid currentColor;
  font-family: var(--font-mono);
}

.grade-bars {
  display: inline-flex;
  gap: 2px;
  align-items: flex-end;
}

.grade-bars i {
  display: block;
  width: 3px;
  background: currentColor;
  border-radius: 1px;
  opacity: 0.25;
}

.grade-bars i:nth-child(1) { height: 6px; }
.grade-bars i:nth-child(2) { height: 9px; }
.grade-bars i:nth-child(3) { height: 12px; }
.grade-bars i.on { opacity: 1; }

.grade-a { color: var(--success-700); }
.grade-b { color: var(--accent-600); }
.grade-c { color: var(--warn-800); }
.grade-d { color: var(--on-surface-1); font-style: italic; }

.grade-phrase {
  color: var(--on-surface-1);
  font-weight: var(--font-regular);
  letter-spacing: var(--tracking-body-s);
  text-transform: none;
}

/* The legend's full descriptive phrase is mandatory text, not a compact
   repeat-context label (ATLAS-CONSOLE.md 3.1), so it must be allowed to
   wrap: the shared .grade rule's white-space: nowrap is right for the
   dossier's inline badge (render_html.py), where the phrase rides in the
   title attribute, but it pushed the legend's visible phrase past the
   375px viewport by about 1px. Scoped to the legend only. */
.grade-legend .grade {
  white-space: normal;
}

/* ================================================================
   TABLES: .table-dense plus the overflow affordance
   15px body at --on-surface-0, 14px uppercase headers, 40px rows, zebra.
   The data IS the content (DESIGN.md 3.4, 6.3).
   ================================================================ */

.table-container {
  overflow-x: auto;
  position: relative;
}

.table-container[data-overflowing='true']::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 32px;
  background: linear-gradient(90deg, transparent, var(--surface-0));
  pointer-events: none;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.table-dense {
  font-size: var(--text-body-s);
}

.table-dense th,
.table-dense td {
  padding: var(--space-1) var(--space-1-5);
  text-align: left;
  vertical-align: middle;
}

.table-dense thead th {
  background: var(--surface-1);
  color: var(--on-surface-0);
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-micro);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.table-dense tbody td {
  color: var(--on-surface-0);
  border-bottom: 1px solid var(--border-subtle);
}

.table-dense tbody tr:nth-child(even) { background: var(--surface-1); }
.table-dense tbody tr:last-child td { border-bottom: none; }

/* A whole row as a click target: it needs a real focus ring and Enter
   activation, which the page script provides. */
.table-dense tbody tr.row-clickable { cursor: pointer; }
.table-dense tbody tr.row-clickable:hover { background: var(--accent-soft); }
.table-dense tbody tr.row-clickable:focus-visible {
  outline: 2px solid var(--accent-600);
  outline-offset: -2px;
}

.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ================================================================
   CARDS
   Product density: 20px padding, border-shift hover, no lift. A lift says
   "a single admirable thing"; a list of 39 records is not that
   (DESIGN.md 3.4, 6.2).
   ================================================================ */

.card {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
}

.card-evidence {
  background: var(--surface-0);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  font-size: var(--text-body-s);
  transition: border-color var(--duration-fast) var(--ease-default);
}

.card-evidence:hover,
.card-evidence:focus-within {
  border-color: var(--border-strong);
}

.card-evidence .ce-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  color: var(--on-surface-1);
  margin-bottom: var(--space-1);
}

.card-evidence .ce-title {
  font-size: var(--text-body-s);
  font-weight: var(--font-medium);
  color: var(--on-surface-0);
  margin-bottom: 6px;
}

.card-evidence .ce-fields {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px var(--space-2);
  font-size: var(--text-caption);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-1-5);
  margin-top: var(--space-1-5);
}

.card-evidence .ce-field-label { color: var(--on-surface-1); }
.card-evidence .ce-field-value { color: var(--on-surface-0); word-break: break-word; }

@media (max-width: 560px) {
  .card-evidence .ce-fields { grid-template-columns: 1fr; }
}

/* ================================================================
   EMPTY, NULL-RESULT AND ERROR STATES
   Four distinct states, never a bare "No data" (DESIGN.md 0.4, 6.6,
   ATLAS-CONSOLE.md 3.10).
   ================================================================ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-1);
  padding: var(--space-6) var(--space-3);
  color: var(--on-surface-1);
}

.empty-state-icon {
  width: var(--icon-size-default);
  height: var(--icon-size-default);
  color: var(--on-surface-1);
  margin-bottom: var(--space-1);
}

.empty-state-headline {
  font-size: var(--text-body-m);
  font-weight: var(--font-semibold);
  color: var(--on-surface-0);
}

.empty-state-detail {
  font-size: var(--text-body-s);
  line-height: 1.5;
  color: var(--on-surface-1);
  max-width: var(--measure-body);
}

.empty-state-count {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--on-surface-1);
}

/* A query that ran and found nothing is evidence about the search, not
   about the site, and must not be rendered as an empty state. */
.null-result {
  border-left: 3px solid var(--on-surface-1);
  background: var(--surface-1);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-body-s);
  line-height: 1.5;
  color: var(--on-surface-0);
  max-width: var(--measure-dossier);
}

.null-result-marker {
  display: inline-block;
  font-size: var(--text-micro);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-micro);
  text-transform: uppercase;
  color: var(--on-surface-1);
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2px 7px;
  margin-bottom: var(--space-1);
}

.empty-hint {
  font-size: var(--text-caption);
  color: var(--on-surface-1);
  padding: 6px 0;
}

.error-note {
  border: 1px solid var(--danger-600);
  background: var(--danger-soft);
  color: var(--danger-600);
  border-radius: var(--radius-md);
  padding: var(--space-1-5) var(--space-2);
  font-size: var(--text-body-s);
  line-height: 1.5;
}

/* A degraded or flagged artifact carries its flag visibly, never silently
   and never hidden (DESIGN.md 0.4). */
.flag-banner {
  border: 1px solid var(--warn-800);
  border-left-width: 3px;
  background: var(--warn-soft);
  color: var(--warn-800);
  border-radius: var(--radius-md);
  padding: var(--space-1-5) var(--space-2);
  font-size: var(--text-body-s);
  line-height: 1.5;
}

/* ================================================================
   SKELETON AND LOADING
   Shaped to the incoming content, never a bare spinner where the shape
   is known. Shimmer cadence matches the run progress bar exactly.
   ================================================================ */

.skeleton {
  background: linear-gradient(90deg, var(--surface-1) 25%, var(--surface-2) 50%, var(--surface-1) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer var(--duration-shimmer) linear infinite;
  border-radius: var(--radius-sm);
  color: transparent;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-line { height: 12px; margin-bottom: 8px; }
.skeleton-title { height: 15px; width: 65%; }
.skeleton-value { height: 20px; width: 70%; }
.skeleton-chip { height: 18px; width: 64px; border-radius: var(--radius-full); }

/* Ragged skeleton widths, so a loading block reads as prose rather than as
   a stack of identical bars. Classes rather than inline styles. */
.sk-w-100 { width: 100%; }
.sk-w-90 { width: 90%; }
.sk-w-60 { width: 60%; }
.sk-w-45 { width: 45%; }
.sk-foot { height: 11px; margin-top: auto; }

.spinner {
  width: 12px;
  height: 12px;
  border: 2px solid var(--border-subtle);
  border-top-color: var(--accent-600);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Initial-hidden helper, replacing style="display:none" attributes in the
   markup. Deliberately not !important: page scripts reveal these elements by
   setting an inline display, which must still win. */
.is-hidden { display: none; }

/* Visually hidden but announced: loading labels for assistive technology. */
.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;
}

/* ================================================================
   METRIC ROW
   The marketing site's .platform-stats device: rule-bounded row, large
   mono values, vertical dividers. Values are --on-surface-0 rather than
   accent, because these are facts, not claims (ATLAS-CONSOLE.md 3.7).
   ================================================================ */

.metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid var(--border-divider);
  border-bottom: 1px solid var(--border-divider);
  padding: var(--space-3) 0;
}

.metric-cell {
  padding: 0 var(--space-2);
  border-right: 1px solid var(--border-divider);
}

.metric-cell:last-child { border-right: none; }

.metric-value {
  font-family: var(--font-mono);
  /* Spec 3.7/4.2: the metric row is the runs page's one display element, at the
     marketing site's .platform-stats scale (48px; --text-h1 is 40-48px fluid).
     Was --text-h3, a Wave 0 inheritance at half the prescribed size. */
  font-size: var(--text-h1);
  font-weight: var(--font-semibold);
  font-variant-numeric: tabular-nums;
  color: var(--on-surface-0);
  line-height: 1.1;
  margin-bottom: 6px;
}

.metric-label {
  font-size: var(--text-caption);
  color: var(--on-surface-1);
  line-height: 1.35;
}

.metric-detail {
  font-size: var(--text-micro);
  color: var(--on-surface-1);
  line-height: 1.35;
  margin-top: 3px;
}

@media (max-width: 640px) {
  .metric-row { grid-template-columns: repeat(2, 1fr); gap: var(--space-2) 0; }
  .metric-cell:nth-child(2n) { border-right: none; }
}

/* ================================================================
   FOOTER
   A product surface should still close. Quiet rule and mark, not the
   marketing site's cinematic painting: on the fortieth dossier that
   image is weight (ATLAS-CONSOLE.md 5.2).
   ================================================================ */

.console-footer {
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--space-8);
  background: var(--surface-0);
}

.console-footer-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: var(--space-4) var(--space-3);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-3);
  justify-content: space-between;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-heading);
  font-size: var(--text-body-m);
  letter-spacing: -0.03em;
  color: var(--on-surface-0);
}

.footer-brand { white-space: nowrap; }

.footer-tagline {
  font-size: var(--text-caption);
  color: var(--on-surface-1);
  margin-top: 6px;
  max-width: 46ch;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
}

.footer-nav a {
  font-size: var(--text-caption);
  font-weight: var(--font-medium);
  color: var(--on-surface-1);
}

.footer-nav a:hover { color: var(--on-surface-0); }

.footer-legal {
  width: 100%;
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-2);
  font-size: var(--text-micro);
  letter-spacing: var(--tracking-micro);
  text-transform: uppercase;
  color: var(--on-surface-1);
}

@media (max-width: 720px) {
  .console-footer-inner { padding: var(--space-3) var(--space-2); }
}

/* ================================================================
   CHROME FOOTER
   The three ruled chrome sentences (atlas.web.chrome), rendered once
   per page. Deliberately quiet: caption-size muted text over a top
   rule, never competing with the page's own footer or content. This
   is the band that carries the peril framing and the design-tool
   disclaimer on every surface, so it must be legible, not loud.
   ================================================================ */

.chrome-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-0);
}

.chrome-footer-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chrome-footer .chrome-line {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-caption);
  line-height: 1.5;
  color: var(--on-surface-2);
}

@media (max-width: 720px) {
  .chrome-footer-inner { padding: var(--space-3) var(--space-2); }
}
