/* =====================================================================
   Nigraan demo - THEME tokens (the one place to re-brand)
   Purpose : Colours, fonts, radius and spacing for the whole demo, taken
             from the ADS Branding & Visual Identity sheet (logo colours:
             teal #108574, leaf green #6fb55d, gold #bdab38; Red Hat
             Display). Changing a value here re-skins every screen; no
             logic reads raw hex.
   Related : css/base.css (uses these), js/core/charts.js (reads --s1..--s4,
             --q1..--q7 and status tokens through getComputedStyle)
   Version : 0.2
   ===================================================================== */
@font-face {
  font-family: "Red Hat Display";
  src: url("../fonts/red-hat-display-var.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Red Hat Text";
  src: url("../fonts/red-hat-text-var.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light;
  /* --- ADS brand (from the logo) --- */
  --brand: #108574;          /* ADS teal: primary actions, active states */
  --brand-ink: #0b5f53;      /* teal for text on white (7:1) */
  --brand-deep: #0c3b36;     /* sidebar and login panel */
  --brand-deeper: #072a26;
  --brand-tint: #e5f2ef;     /* selected rows, soft fills */
  --brand-tint-2: #cfe8e1;
  --gold: #bdab38;           /* ADS gold: accent on dark, rule segment */
  --gold-ink: #6f6210;       /* gold for text on white */
  --gold-tint: #f6f1d6;
  --leaf: #6fb55d;           /* ADS leaf green */
  --olive: #89a04a;          /* wordmark "Area Development" */
  --pine: #2d946d;           /* wordmark "Secretariat" */
  --slate-teal: #27768d;     /* wordmark "Government of KP": data pins */
  --pin: #1f6a80;
  --pin-tint: #e4eff3;

  /* --- surfaces and ink --- */
  --page: #f2f5f4;
  --surface: #ffffff;
  --surface-2: #f7f9f8;
  --ink: #13201c;
  --ink-2: #44524e;
  --muted: #63706c;
  --line: #e1e7e5;
  --line-2: #cbd5d2;
  --focus: #1f6a80;

  /* --- chart roles (validated: adjacent CVD and normal-vision checks pass on #fff) --- */
  --s1: #008a76;   /* teal, brand step that clears the chroma floor */
  --s2: #c8851a;   /* amber, from the ADS gold family */
  --s3: #5a4fcf;   /* indigo */
  --s4: #c4457c;   /* magenta */
  --grid: #e6ecea;
  --axis: #c3ccc9;
  /* sequential teal (magnitude): light = less */
  --q1: #e3f3ef; --q2: #c2e5dc; --q3: #93d1c1; --q4: #5fb8a3; --q5: #2f9e88; --q6: #0f846f; --q7: #0b6b5b;
  /* ordinal teal (stages, light end >= 2:1 on white) */
  --o1: #5fb8a3; --o2: #2f9e88; --o3: #0f846f; --o4: #0b6b5b; --o5: #07524a;

  /* --- status (fixed meaning, always with an icon and a word) --- */
  --good: #0ca30c; --warn: #fab219; --serious: #ec835a; --critical: #d03b3b;
  --good-ink: #0a6e0a; --warn-ink: #7a5300; --serious-ink: #9a3d16; --critical-ink: #a32020;
  --good-tint: #e4f5e4; --warn-tint: #fff4d6; --serious-tint: #fde9e0; --critical-tint: #fbe3e3;

  /* --- type --- */
  --f-display: "Red Hat Display", "Segoe UI", system-ui, sans-serif;
  --f-text: "Red Hat Text", "Segoe UI", system-ui, sans-serif;
  --t-xs: 11.5px; --t-sm: 12.5px; --t-base: 14px; --t-md: 15.5px; --t-lg: 18px; --t-xl: 22px; --t-2xl: 28px; --t-3xl: 38px;

  /* --- shape and space --- */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-pill: 999px;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px;
  --side-w: 252px; --top-h: 62px;
  --shadow-pop: 0 12px 32px -12px rgba(7, 42, 38, .28), 0 2px 6px rgba(7, 42, 38, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
