/**
 * Design tokens for Maintenance NI.
 *
 * Single source of visual primitives (color, spacing, type, radius, shadow,
 * focus) for the whole frontend. Loaded before style.css/map.css/etc. in
 * every page. Existing variable names (--primary, --secondary, --light,
 * --dark) are kept identical to what style.css already defined, so nothing
 * consuming them needs to change -- this file is a superset.
 *
 * --primary is the brand blue. Corrected in Phase C to #1E60AA -- the
 * color actually used site-wide as the browser theme-color
 * (<meta name="theme-color">) on every single page, and in the hero/CTA
 * backgrounds -- rather than #3480a0, which turned out to be a minority
 * shade confined to a handful of auth pages and the original style.css
 * :root block. Bootstrap's own default blue (#007bff) shows through on
 * unstyled .btn-primary/.text-primary/etc. because Bootstrap's CSS loads
 * before this file's overrides -- see the "Bootstrap primary
 * reconciliation" block in style.css for where that gets pulled back to
 * the brand color.
 */
:root {
  /* ---- Brand color ---- */
  --primary: #1e60aa;
  --secondary: #ff4917;
  --light: #edf1fc;
  --dark: #17224d;

  /* ---- Extended color scale ---- */
  --primary-dark: #164a84;
  --primary-light: #4a82c4;
  --primary-rgb: 30, 96, 170;

  --text-body: #2c2c2c;
  --text-muted: #6b7280;
  --border-color: #e0e0e0;
  --surface: #ffffff;
  --surface-alt: #f7f9fb;

  --success: #1e8e5a;
  --warning: #c98a05;
  --danger: #d9362e;
  --info: var(--primary);

  /* Vivid CTA green -- distinct from --success (a muted status color).
     Used for high-emphasis primary actions (search, main CTAs). Appeared
     as 3 slightly different hand-typed shades across the homepage before
     being centralised here. */
  --cta-green: #22c55e;
  --cta-green-dark: #16a34a;

  /* ---- Spacing scale ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* ---- Typography scale ---- */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.375rem;
  --font-size-2xl: 1.75rem;
  --font-size-3xl: 2.25rem;
  --font-size-4xl: 2.75rem;
  --font-size-5xl: 3.25rem;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;

  /* ---- Radius scale (sampled from existing 2px-45px range in style.css) ---- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;

  /* ---- Shadow scale (sampled from existing box-shadow values in style.css) ---- */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.18);

  /* ---- Focus ring (new -- no dedicated focus styling existed before) ---- */
  --focus-ring: 0 0 0 3px rgba(var(--primary-rgb), 0.35);
}
