/* Single source of UI tokens from the Roadmarker design system (app design of 30 Oct 2026: orange as the one accent,
   ink for the rest, no third colour). Map/status colours remain separate (SPEC §5). */
:root, :root[data-theme="day"] {
  --primary: #ff6a00;
  /* White on orange, as in the app design of 30 Oct 2026: 2.9:1, accepted by the maker; keep labels bold and 17px+. */
  --on-primary: #ffffff;
  --secondary: #1f2933;
  --on-secondary: #f8f9f9;
  --surface: #f4f3ef;
  --surface-raised: #ffffff;
  --surface-muted: #eceae5;
  --line: #e3e5e8;
  --ink: #1f2933;
  --ink-muted: #63666f;
  --focus-ring: #1f2933;
  --map-ground: #fbfaf5;
  --map-water: #a6d8f4;
  --map-road: #a9a59c;
  --map-road-ridden: #d55e00;
  --map-road-todo: #0072b2;
  /* Favourite pins and Let op: white with ink by day, the inverse at night (design system MapPin). */
  --pin-fill: #ffffff;
  --pin-ink: #1f2933;
  --rating: var(--primary);
  --rating-empty: #b1b3b7;
  --danger: #d92d20;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-label: 0 2px 8px rgba(31,41,51,0.14);
  --shadow-card: 0 8px 24px rgba(31,41,51,0.08);
  --shadow-cta: 0 6px 16px rgba(255,106,0,0.28);
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --type-title-font-size: 64px;
  --type-title-line-height: 64px;
  --type-title-font-weight: 800;
  --type-title-letter-spacing: -0.02em;
  --type-h1-font-size: 40px;
  --type-h1-line-height: 44px;
  --type-h1-font-weight: 700;
  --type-h1-letter-spacing: -0.015em;
  --type-h2-font-size: 28px;
  --type-h2-line-height: 34px;
  --type-h2-font-weight: 700;
  --type-h2-letter-spacing: -0.01em;
  --type-h3-font-size: 20px;
  --type-h3-line-height: 28px;
  --type-h3-font-weight: 700;
  --type-subheading-font-size: 18px;
  --type-subheading-line-height: 26px;
  --type-subheading-font-weight: 500;
  --type-body-font-size: 16px;
  --type-body-line-height: 26px;
  --type-body-font-weight: 400;
  --type-body-sm-font-size: 14px;
  --type-body-sm-line-height: 22px;
  --type-body-sm-font-weight: 400;
  --type-label-font-size: 14px;
  --type-label-line-height: 20px;
  --type-label-font-weight: 600;
  --type-button-font-size: 16px;
  --type-button-line-height: 24px;
  --type-button-font-weight: 700;
  --type-eyebrow-font-size: 12px;
  --type-eyebrow-line-height: 16px;
  --type-eyebrow-font-weight: 500;
  --type-eyebrow-letter-spacing: 0.3em;
  /* Form error extension; readable on all three surfaces. */
  --error: #b3261e;
  color-scheme: light;
}
:root[data-theme="night"] {
  --primary: #ff6a00;
  --on-primary: #ffffff;
  --secondary: #1f2933;
  --on-secondary: #f8f9f9;
  --surface: #14191f;
  --surface-raised: #1f2933;
  --surface-muted: #28323d;
  --line: #333e49;
  --ink: #f8f9f9;
  --ink-muted: #a8afb8;
  --focus-ring: #ff6a00;
  --map-ground: #161c2a;
  --map-water: #1a3149;
  --map-road: #4f6a93;
  --map-road-ridden: #d55e00;
  --map-road-todo: #56b4e9;
  --pin-fill: #1f2933;
  --pin-ink: #ffffff;
  --rating: var(--primary);
  --rating-empty: #636c75;
  --danger: #ff6b5e;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-label: 0 2px 8px rgba(0,0,0,0.45);
  --shadow-card: 0 8px 24px rgba(0,0,0,0.35);
  --shadow-cta: 0 6px 16px rgba(255,106,0,0.22);
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --type-title-font-size: 64px;
  --type-title-line-height: 64px;
  --type-title-font-weight: 800;
  --type-title-letter-spacing: -0.02em;
  --type-h1-font-size: 40px;
  --type-h1-line-height: 44px;
  --type-h1-font-weight: 700;
  --type-h1-letter-spacing: -0.015em;
  --type-h2-font-size: 28px;
  --type-h2-line-height: 34px;
  --type-h2-font-weight: 700;
  --type-h2-letter-spacing: -0.01em;
  --type-h3-font-size: 20px;
  --type-h3-line-height: 28px;
  --type-h3-font-weight: 700;
  --type-subheading-font-size: 18px;
  --type-subheading-line-height: 26px;
  --type-subheading-font-weight: 500;
  --type-body-font-size: 16px;
  --type-body-line-height: 26px;
  --type-body-font-weight: 400;
  --type-body-sm-font-size: 14px;
  --type-body-sm-line-height: 22px;
  --type-body-sm-font-weight: 400;
  --type-label-font-size: 14px;
  --type-label-line-height: 20px;
  --type-label-font-weight: 600;
  --type-button-font-size: 16px;
  --type-button-line-height: 24px;
  --type-button-font-weight: 700;
  --type-eyebrow-font-size: 12px;
  --type-eyebrow-line-height: 16px;
  --type-eyebrow-font-weight: 500;
  --type-eyebrow-letter-spacing: 0.3em;
  /* Form error extension; readable on all three surfaces. */
  --error: #ff9b8a;
  color-scheme: dark;
}

/* Theme-switch hardware colours: retained so the public page stays visually identical. */
:root, :root[data-theme="day"] {
  --switch-well: rgb(0 0 0 / .12);
  --switch-key: linear-gradient(#ffffff, #d9d8d2);
  --switch-beam-hi: rgb(0 0 0 / .3);
  --switch-beam-lo: #1b1e23;
}
:root[data-theme="night"] {
  --switch-well: rgb(0 0 0 / .45);
  --switch-key: linear-gradient(#4a505a, #23272e);
  --switch-beam-hi: #e9e3d6;
  --switch-beam-lo: rgb(255 255 255 / .3);
}
