/* ============================================================================
   theme-tokens.css — GENERATED. DO NOT EDIT BY HAND.

   Emitted by tools/theme-tokens.mjs; the deploy gate refuses on divergence.
   The DARK values come from the app's lib/theme/fetch_theme.dart. The LIGHT
   values below are the hardcoded fallbacks these tokens were already
   resolving to before they existed — reproduced exactly, so defining them
   changes no rendered pixel while making every one of them themeable.

   css/tokens.css still owns the light colour layer. See the generator header
   for why light is not emitted from the app.
   ========================================================================== */

:root {
  /* ── were fallback-only: used via var() but never defined ─────────────── */
  --text-1:             #16202C;   /* body ink on forecast + auth (37+21 uses) */
  --text-2:             #5B6B7C;   /* secondary ink on forecast + auth */
  --surface-0:          #FFFFFF;   /* auth modal card */
  --surface-2:          #F1F4F8;   /* auth modal inset */
  --border-1:           #D6DEE8;   /* auth modal hairline */

  /* ── lifted out of stylesheets so a theme can reach them ──────────────── */
  --ink-on-bright:      #06131F;   /* text on a bright accent chip (forecast, map) */
  --chip-neutral:       #5E6B78;   /* neutral chip fill when a band is unknown */
  --chart-line-2:       #4FA3C7;   /* the secondary chart line */
  --wind-bar-base:      #9AB4C6;   /* wind bar before the speed ladder applies */
  --heart:              #E0245E;   /* the favourite heart */
  --star:               #C9A13B;   /* the favourite star on widget cards */
  --text-on-dark-2:     #E8EEF6;   /* text over the map basemap */
  --danger-text:        #C0392B;   /* auth error text */

  /* ── ELEVATION. Inert in light (identical to the card) and load-bearing in
     dark, where the app separates surfaces by a card sitting a step lighter
     than the page rather than by a hairline. ───────────────────────────── */
  --surface-elevated:   #FFFFFF;
}

/* ⚠ DEFINED BUT NOT YET REACHABLE: nothing sets data-theme on <html> until
   session 3 ships the toggle. This block is inert by design. */
:root[data-theme='dark'] {
  /* ── the colour layer css/tokens.css defines for light ────────────────── */
  --bg:                 #0F1C2C;   /* light #FFFFFF == fetchLight.card, so dark takes fetchDark.card */
  --surface:            #091322;   /* the ground behind cards */
  --surface-raised:     #122334;   /* ELEVATION: a step LIGHTER than the page */
  --surface-sunken:     #16273A;
  --line:               rgba(255, 255, 255, 0.071);   /* hairlines nearly vanish on navy — see the header note */
  --line-strong:        rgba(255, 255, 255, 0.102);
  --text:               #EAF1F6;
  --text-secondary:     #93A6B6;
  --text-muted:         #7E8E9E;   /* DERIVED, not fetchDark.faint #5E7184: that measures 3.01-3.70:1 as text on these grounds. This is 77% of it toward ink, the smallest lift clearing 4.5 on the worst (4.53) */
  --accent-text:        #6FE3CC;   /* the app brightens accent TEXT in dark; the fill stays */
  --accent-tint:        rgba(61, 224, 196, 0.129);   /* opaque pastel in light -> a low-alpha wash in dark */
  --accent-tint-deep:   rgba(61, 224, 196, 0.129);
  --accent-ring:        rgba(111, 227, 204, 0.30);   /* derived from the dark accent text */
  --brand-teal:         #0E7A66;   /* brand constant — theme-invariant in the app */
  --brand-teal-bright:  #3DE0C4;   /* logoColor(dark) */
  --scrim:              rgba(0, 0, 0, 0.55);   /* fetch_theme.dart scrimDark 0x8C000000 */
  --fcp-ground:         #091322;   /* the forecast pages ground */

  /* ── elevation ────────────────────────────────────────────────────────── */
  --surface-elevated:   #122334;   /* fetchDark.cardElevated */
  --nav-bar:            #0B1726;

  /* ── the formerly-orphaned tokens ─────────────────────────────────────── */
  --text-1:             #EAF1F6;   /* body ink on forecast + auth (37+21 uses) */
  --text-2:             #93A6B6;   /* secondary ink on forecast + auth */
  --surface-0:          #0F1C2C;   /* auth modal card */
  --surface-2:          #16273A;   /* auth modal inset */
  --border-1:           rgba(255, 255, 255, 0.102);   /* auth modal hairline */

  /* ── the lifted values ────────────────────────────────────────────────── */
  --ink-on-bright:      #091322;   /* text on a bright accent chip (forecast, map) */
  --chip-neutral:       #93A6B6;   /* neutral chip fill when a band is unknown */
  --chart-line-2:       #7FC4E0;   /* the secondary chart line */
  --wind-bar-base:      #5A7386;   /* wind bar before the speed ladder applies */
  --heart:              #FF5A5F;   /* the favourite heart */
  --star:               #E3B65A;   /* the favourite star on widget cards */
  --text-on-dark-2:     #EAF1F6;   /* text over the map basemap */
  --danger-text:        #FF6B6B;   /* auth error text */
}

/* ── APP PAGES (app 2.5): neutral surfaces, the ink as the accent ──────────
   Pages whose <html> carries data-app: forecast, map, radar, explore,
   favorites, account. From the app's fetchLight / fetchDark and its ink
   accent sets. The landing page and the article / about / legal pages do
   not carry the marker and keep the blocks above. */
:root[data-app] {
  --bg:                 #FFFFFF;   /* the card surface */
  --surface:            #F3F3F1;   /* the ground behind cards */
  --surface-raised:     #FFFFFF;
  --surface-elevated:   #FFFFFF;
  --surface-sunken:     #EDEDEA;
  --line:               rgba(0, 0, 0, 0.071);
  --line-strong:        rgba(0, 0, 0, 0.122);
  --text:               #141416;
  --text-secondary:     #5E5E63;
  --text-muted:         #6B6B6F;   /* faint #9A9A9F lifted 35% toward ink for 4.5:1 */
  --accent:             #141416;   /* the INK: black on light, white on dark — no teal on controls */
  --accent-hover:       #2B2B2F;
  --accent-pressed:     #141416;
  --on-accent:          #FFFFFF;
  --accent-text:        #141416;
  --accent-tint:        rgba(0, 0, 0, 0.078);
  --accent-tint-deep:   rgba(0, 0, 0, 0.078);
  --accent-ring:        rgba(20, 20, 22, 0.35);
  --brand-teal:         #141416;   /* used as a control accent on these pages -> the ink */
  --brand-teal-bright:  #141416;
  --fcp-ground:         #F3F3F1;
  --nav-bar:            #FFFFFF;
  --text-1:             #141416;
  --text-2:             #5E5E63;
  --surface-0:          #FFFFFF;
  --surface-2:          #EDEDEA;
  --border-1:           rgba(0, 0, 0, 0.122);
  --ink-on-bright:      #FFFFFF;   /* text on an accent fill */
  --chip-neutral:       #5E5E63;
}
:root[data-app][data-theme='dark'] {
  --bg:                 #17171A;   /* the card surface */
  --surface:            #0E0E10;   /* the ground behind cards */
  --surface-raised:     #1E1E22;
  --surface-elevated:   #1E1E22;
  --surface-sunken:     #232328;
  --line:               rgba(255, 255, 255, 0.071);
  --line-strong:        rgba(255, 255, 255, 0.102);
  --text:               #F2F2F0;
  --text-secondary:     #A3A3A8;
  --text-muted:         #8A8A8D;   /* faint #6B6B70 lifted 23% toward ink for 4.5:1 */
  --accent:             #F2F2F0;   /* the INK: black on light, white on dark — no teal on controls */
  --accent-hover:       #FFFFFF;
  --accent-pressed:     #F2F2F0;
  --on-accent:          #0E0E10;
  --accent-text:        #F2F2F0;
  --accent-tint:        rgba(255, 255, 255, 0.102);
  --accent-tint-deep:   rgba(255, 255, 255, 0.102);
  --accent-ring:        rgba(242, 242, 240, 0.35);
  --brand-teal:         #F2F2F0;   /* used as a control accent on these pages -> the ink */
  --brand-teal-bright:  #F2F2F0;
  --fcp-ground:         #0E0E10;
  --nav-bar:            #121214;
  --text-1:             #F2F2F0;
  --text-2:             #A3A3A8;
  --surface-0:          #17171A;
  --surface-2:          #232328;
  --border-1:           rgba(255, 255, 255, 0.102);
  --ink-on-bright:      #0E0E10;   /* text on an accent fill */
  --chip-neutral:       #A3A3A8;
}

/* ── THE SOFT DARK (site restyle, 2026-11-16) ──────────────────────────────
   Every page that is NOT a forecast surface — the landing page, articles,
   about, legal, 404, the auth pages, Daily Check, Account — carries
   data-surface="soft" beside data-app. Light is the app-page light above,
   unchanged. Dark is LIFTED: the app's near-black read as too heavy on
   these pages (Grant's call on the mock-ups), so the ground is a charcoal,
   cards sit a step above it and the hairlines are a touch stronger. The
   ink accent is the app-page dark's. These values are the website's own —
   the app has no such surface — so they are literals here, not read from
   fetch_theme.dart. */
:root[data-app][data-surface='soft'][data-theme='dark'] {
  --bg:                 #1E2125;   /* the card surface */
  --surface:            #16181B;   /* the ground behind cards */
  --surface-0:          #1E2125;
  --surface-raised:     #24272C;
  --surface-elevated:   #24272C;
  --surface-sunken:     #191B1F;
  --surface-2:          #191B1F;
  --line:               rgba(255, 255, 255, 0.09);
  --line-strong:        rgba(255, 255, 255, 0.15);
  --border-1:           rgba(255, 255, 255, 0.15);
  --nav-bar:            #191B1F;
  --fcp-ground:         #16181B;
}
