/* Transport Statistics UI kit.
 *
 * Single source for design tokens and shared components. Page stylesheets
 * hold only page-specific rules; anything used on 3+ surfaces lives here.
 * Dark theme is the default; light theme overrides below.
 */

/* -- Tokens: colour ------------------------------------------------ */
:root {
  --bg: #0d1410;
  --surface: #141e17;
  --surface-2: #1c2920;
  --border: #2a3d2f;
  --text-1: #e8f0e4;
  --text-2: #9ab89a;
  --text-3: #5a7a5e;
  --accent: #34d064;
  --danger: #e5484d;
  --warn: #f59e0b;
  --on-accent: #08130b;
  --press-accent: #248f45;
}
html[data-theme="night"] {
  --bg: #0a0a0b;
  --surface: #141416;
  --surface-2: #1f1f23;
  --border: #2a2a30;
  --text-1: #f4f4f5;
  --text-2: #a1a1aa;
  --text-3: #71717a;
  --accent: #34d064;
  --danger: #e5484d;
  --warn: #f59e0b;
  --on-accent: #08130b;
  --press-accent: #248f45;
}
html[data-theme="dark"], html[data-theme="night"] { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }
html[data-theme="light"] {
  --bg: #f4f7f2;
  --surface: #ffffff;
  --surface-2: #e9f1e7;
  --border: #d3e0d1;
  --text-1: #142114;
  --text-2: #3c5a3e;
  --text-3: #7a967c;
  --accent: #1d9e48;
  --danger: #e5484d;
  --warn: #b45309;
  --on-accent: #08130b;
  --press-accent: #248f45;
}

/* -- Tokens: spacing / radius -------------------------------------- */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --radius-sm: 5px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;
}

/* -- Browser surfaces ---------------------------------------------- */
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* -- Shared components ---------------------------------------------- */
/* Buttons, inputs, notices, pills, stat cards, crumbs, progress,
 * swatches, empty states, and other reusable UI elements live in
 * ui-elements.css. This file keeps design tokens and browser/base rules. */
