/* =====================================================================
   VID 3.0 — IIRF palette
   Approved by Kyle Wisdom, 31 Oct 2026.
   Brand source: iirf.global theme colours (plum #68295C, teal #008EAC,
   deep teal #042F38, cream #F9F5EF). Ramps built in OKLCH from those.
   Load this file FIRST, before any other stylesheet, in the base layout.
   Every colour in templates, CSS and chart JS should reference these
   variables — no raw hex values elsewhere.
   ===================================================================== */

:root {
  /* ---------- Raw ramps (reference only; prefer the role tokens below) */
  --plum-50:  #FBF2F8;  --plum-100: #F3E2EE;  --plum-200: #E5C6DD;
  --plum-300: #CEA1C3;  --plum-400: #B274A4;  --plum-500: #914D82;
  --plum-600: #68295C;  --plum-700: #4F1C45;  --plum-800: #391332;
  --plum-900: #230C1F;

  --teal-50:  #EDF7FB;  --teal-100: #D6ECF3;  --teal-200: #ADDAE7;
  --teal-300: #7BC0D4;  --teal-400: #48A6BF;  --teal-500: #008FAB;
  --teal-600: #007087;  --teal-700: #005465;  --teal-800: #003C4A;
  --teal-900: #052F39;

  --warm-0:   #FFFDFB;  --warm-50:  #F9F5EF;  --warm-100: #EDE9E2;
  --warm-200: #DBD7D0;  --warm-300: #C2BDB7;  --warm-400: #9C9792;
  --warm-500: #7B7772;  --warm-600: #615D58;  --warm-700: #484440;
  --warm-900: #1C1A18;

  /* ---------- Surfaces */
  --surface-page:   var(--warm-50);   /* page background (IIRF cream) */
  --surface-card:   var(--warm-0);    /* cards, panels, filter bar, table */
  --surface-tile:   var(--warm-50);   /* violation-type tiles, sunken wells */
  --surface-raised: var(--warm-100);  /* hover rows, selected rows */
  --border:         var(--warm-200);  /* card outlines */
  --border-subtle:  var(--warm-100);  /* table row rules, tile outlines */
  --border-strong:  var(--warm-300);  /* inputs, table header rule, axes */

  /* ---------- Text */
  --text:        var(--warm-900);  /* body, headline figures, tile numbers */
  --text-muted:  var(--warm-600);  /* labels, captions, tile labels */
  --text-soft:   var(--warm-700);  /* secondary table cells, legends */

  /* ---------- Brand / actions */
  --primary:        var(--plum-600);  /* primary buttons, links, record titles */
  --primary-hover:  var(--plum-700);
  --primary-tint:   var(--plum-50);   /* selected Basis select, active chips */
  --on-primary:     #FFFFFF;

  /* ---------- Sidebar (plum) */
  --sidebar-bg:       var(--plum-600);
  --sidebar-active:   var(--plum-700);  /* active nav row + dividers */
  --sidebar-text:     var(--plum-100);  /* nav links (8.2:1) */
  --sidebar-text-strong: #FFFFFF;       /* active link, user name */
  --sidebar-label:    var(--plum-200);  /* VIEWS / ADMIN / LOGGED IN AS (6.5:1) */
  --sidebar-accent:   var(--teal-300);  /* short rule under the logo */

  /* ---------- Information notes (coverage strip, latest-incident note) */
  --note-bg:     var(--teal-50);
  --note-border: var(--teal-200);
  --note-text:   var(--teal-800);

  /* ---------- Data meaning */
  --data-killed:         #B05649;          /* killed series, KPI swatch */
  --data-killed-tint:    #FBE1DC;
  --data-abducted:       var(--teal-500);  /* abducted series fill (3:1 non-text) */
  --data-abducted-text:  var(--teal-700);  /* abducted figures written as text */
  --data-single:         var(--plum-500);  /* any single-series bar chart */
  --data-unknown:        var(--warm-300);  /* Unknown category, not-collected */
  --data-partial-opacity: 0.45;            /* incomplete periods (e.g. 2026) */

  /* ---------- Victim-religion categorical (fixed mapping — never reorder) */
  --cat-christian: #4974A5;
  --cat-islam:     #BB7555;
  --cat-hindu:     #46907D;
  --cat-buddhist:  #B5934A;
  --cat-animist:   #86628F;  /* Animist, ancestor worship, or traditional religion */
  --cat-jewish:    #76905C;
  --cat-other:     #9F6971;  /* Other, Atheist, Agnostic */
  --cat-unknown:   var(--data-unknown);

  /* ---------- Choropleth (7-step teal ramp, low → high) */
  --seq-1: #E7F5F8;  --seq-2: #C2E1E9;  --seq-3: #8EC5D3;  --seq-4: #59A5B7;
  --seq-5: #258598;  --seq-6: #095D6C;  --seq-7: #05343D;

  /* ---------- Security pills */
  --pill-public-bg:       var(--teal-50);
  --pill-public-text:     var(--teal-700);
  --pill-confidential-bg: var(--plum-50);
  --pill-confidential-text: var(--plum-700);
}
