/* Design tokens.  Concept: a road-survey sheet — asphalt, lane paint, and signal colours
   used only for condition.  Blue is the single interactive accent. */
:root {
  --font: "Vazirmatn", "Vazir", "IRANSansX", "Shabnam", "Segoe UI", Tahoma, "Noto Sans Arabic", system-ui,
          -apple-system, "Helvetica Neue", Arial, sans-serif;

  --fs-2xs: 11px;
  --fs-xs: 12px;
  --fs-s: 13px;
  --fs-m: 14.5px;
  --fs-l: 17px;
  --fs-xl: 22px;

  --r-s: 5px;     /* segments, chips, small controls */
  --r-m: 8px;     /* inputs, buttons, cards */
  --r-l: 12px;    /* panels, dialogs */

  --header-h: 60px;
  --rail-w: 424px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root, :root[data-theme="light"] {
  color-scheme: light;
  --bg: #e7eaec;
  --surface: #ffffff;
  --surface-2: #f3f5f6;
  --surface-3: #e9edef;
  --ink: #172027;
  --ink-2: #47535c;
  --ink-3: #66727b;
  --line: #d3d9dd;
  --line-strong: #aeb8bf;

  --accent: #1a5fb4;
  --accent-hover: #164f96;
  --accent-ink: #ffffff;
  --accent-soft: #e2edf9;
  --focus: #1a5fb4;

  --header-bg: #222a30;
  --header-ink: #eef1f3;
  --header-ink-2: #aeb9c1;

  --ground: #dfe4e6;
  --asphalt: #2c343b;
  --asphalt-2: #3a444c;
  --paint: #f2f4f5;

  --cond-good: #1f8a5b;   --cond-good-ink: #ffffff;   --cond-good-soft: #dbf1e6;  --cond-good-text: #146843;
  --cond-fair: #eaa514;   --cond-fair-ink: #241a00;   --cond-fair-soft: #fbedc9;  --cond-fair-text: #8a5b00;
  --cond-poor: #c93a31;   --cond-poor-ink: #ffffff;   --cond-poor-soft: #f9dcd9;  --cond-poor-text: #a3271f;
  --cond-unknown: #7d8891; --cond-unknown-ink: #ffffff; --cond-unknown-soft: #e4e8eb; --cond-unknown-text: #4d5860;

  --danger: #b3261e;
  --shadow-pop: 0 10px 40px rgba(12, 22, 30, .22);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #12171b;
  --surface: #1b2227;
  --surface-2: #232b31;
  --surface-3: #2b353c;
  --ink: #e9eef1;
  --ink-2: #b4bfc6;
  --ink-3: #8e9aa3;
  --line: #2f3a41;
  --line-strong: #4a5861;

  --accent: #6aa5ee;
  --accent-hover: #86b7f2;
  --accent-ink: #0b1a2b;
  --accent-soft: #1d2f45;
  --focus: #8dbcf5;

  --header-bg: #0c1013;
  --header-ink: #eef1f3;
  --header-ink-2: #93a0a9;

  --ground: #161c20;
  --asphalt: #2a3238;
  --asphalt-2: #364049;
  --paint: #e8ecee;

  --cond-good: #2fa574;   --cond-good-ink: #04140d;   --cond-good-soft: #163227;  --cond-good-text: #6fd3a5;
  --cond-fair: #f0b429;   --cond-fair-ink: #241a00;   --cond-fair-soft: #392c0d;  --cond-fair-text: #f2c65c;
  --cond-poor: #ee6259;   --cond-poor-ink: #240605;   --cond-poor-soft: #3d1c1a;  --cond-poor-text: #f59790;
  --cond-unknown: #8a959e; --cond-unknown-ink: #0d1114; --cond-unknown-soft: #29323a; --cond-unknown-text: #b0bac1;

  --danger: #f2837c;
  --shadow-pop: 0 10px 40px rgba(0, 0, 0, .55);
}
