/* bf1a Building Intelligence Console design tokens: the research.my house system (cf1, au1),
   dark surface with BASIC blue chrome, plus fixed building-type and match-confidence colours. */
:root {
  /* Surfaces */
  --bg: #0A0A0A;
  --bg-sunk: #070707;
  --bg-card: #131314;
  --bg-elevated: #1A1A1C;
  --bg-hover: #202023;

  /* Borders */
  --border: #262629;
  --border-light: #34343a;
  --border-strong: #45454d;

  /* Text */
  --text: #FAFAFA;
  --text-secondary: #A6A6AE;
  --text-tertiary: #6E6E78;
  --text-dim: #4A4A52;

  /* Brand accent: chrome only (nav, buttons, focus rings, the selected building) */
  --accent: #1E5DEB;
  --accent-hover: #3B74F0;
  --accent-press: #1848B8;
  --accent-dim: rgba(30, 93, 235, 0.16);
  --accent-line: rgba(30, 93, 235, 0.45);

  /* Status: reserved, always shipped with a word */
  --success: #22C55E;
  --success-dim: rgba(34, 197, 94, 0.14);
  --warning: #F59E0B;
  --warning-dim: rgba(245, 158, 11, 0.14);
  --danger: #FF5A5A;
  --danger-dim: rgba(255, 90, 90, 0.14);
  --info: #38BDF8;
  --info-dim: rgba(56, 189, 248, 0.14);

  /* Categorical palette: fixed order, never cycled (validated on #131314) */
  --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500;
  --c5: #d55181; --c6: #008300; --c7: #9085e9; --c8: #e66767;
  --c-other: #6E6E78;

  /* Building types keep one colour on every chart, map and 3D view.
     MUST match BUILDING_CATEGORIES in app/includes/helpers.php and BF.CAT in charts.js. */
  --cat-house: #3987e5;
  --cat-multi: #199e70;
  --cat-commercial: #d95926;
  --cat-industrial: #e66767;
  --cat-community: #d55181;
  --cat-rural: #c98500;
  --cat-resother: #9085e9;
  --cat-outbuilding: #6E6E78;
  --cat-unknown: #45454D;

  /* Sequential ramp for shaded area maps, light to dark */
  --seq-1: #cde2fb; --seq-2: #9ec5f4; --seq-3: #6da7ec; --seq-4: #3987e5; --seq-5: #256abf; --seq-6: #184f95;

  /* Chart chrome */
  --grid: #2c2c2a;
  --axis: #383835;

  /* Typography */
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;

  /* Spacing */
  --sp-xs: 4px; --sp-sm: 8px; --sp-md: 16px; --sp-lg: 24px; --sp-xl: 32px; --sp-2xl: 48px;

  /* Radius */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;

  /* Layout */
  --sidebar-w: 248px;
  --topbar-h: 60px;
  --drawer-w: 400px;

  /* Effects */
  --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --transition: 140ms ease;
}
