/* /shared/styles/tokens.css — Overhaul Cycle 1 (LQ-995), PDF Part B/C.
   Brand tokens mapped 1:1 from 04_DESIGN_SYSTEM/tokens.json
   (design-capture-2026-11-25; the shells' own :root blocks carry the
   same values with !important from the pre-overhaul layering — this
   file is the single shared source going forward), plus the Part C
   semantic aliases, fluid type scale, ergonomics and z-index layers. */
:root {
  /* ---- brand tokens (tokens.json root_custom_properties) ---- */
  --bg: #0a0a0b;
  --bg-deep: #060607;
  --bg-soft: #101012;
  --surface: #141416;
  --surface-2: #1a1a1d;
  --ink: #f4f4f1;
  --ink-soft: #c7c7c1;
  --soft: #c7c7c1;
  --muted: #9a9a93;
  --line: #26262a;
  --line-strong: #3a3a40;
  --mint: #77c4a1;
  --mint-deep: #8fd4b6;
  --mint-soft: #16241d;
  --carbon: #060607;
  --carbon-2: #101012;
  --titanium: #f4f4f1;
  --danger: #e0785f;
  --amber: #e0a44a;
  --radius: 8px;
  --font: "Archivo", system-ui, sans-serif;
  --serif: "Archivo", Georgia, sans-serif;
  --mono: "Archivo", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 0.68, 0.24, 1);
  --lq832-rule: linear-gradient(90deg, rgba(245, 245, 242, .85), rgba(245, 245, 242, .12) 55%, transparent);

  /* ---- semantic aliases (PDF Part C), mapped to the brand tokens ---- */
  --color-bg-canvas: var(--bg);
  --color-bg-surface: var(--surface);
  --color-bg-elevated: var(--surface-2);
  --color-text-primary: var(--ink);
  --color-text-secondary: var(--muted);
  --color-border-subtle: var(--line);
  --color-brand-primary: var(--mint);
  --color-brand-accent: var(--mint-deep);
  --color-status-live: #16a34a;
  --color-status-warn: var(--amber);
  --color-status-danger: var(--danger);

  /* ---- fluid type scale (PDF Part C) ---- */
  --font-sans: var(--font);
  --text-display: clamp(2rem, 4.5vw, 3.25rem);
  --text-h2: clamp(1.375rem, 2.5vw, 2rem);
  --text-h3: clamp(1.125rem, 1.5vw, 1.375rem);
  --text-body: 1rem;
  --text-sm: 0.875rem;
  --text-xs: 0.75rem;

  /* ---- ergonomics + shell geometry (PDF Part C) ---- */
  --touch-min: 44px;
  --nav-mobile-height: 64px;
  --header-height: 56px;
  --rail-left-width: 240px;
  --rail-right-width: 300px;
  --feed-max-width: 720px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);

  /* ---- z-index layers (PDF Part C; drawer sits on the fleet's
     established 300/310 companion layer) ---- */
  --z-sticky: 20;
  --z-nav: 30;
  --z-drawer: 310;
  --z-modal: 500;
  --z-toast: 600;
}
