/* sagd.app tokens -- the ONE place a colour, a size or a space is defined (spec §3 T8, §4 C1-C6, P2).
   Components use these names only; no literal colour or pixel value lives anywhere else. Single dark look by
   design (the map is the light surface; the panel is the dark one). */
:root{
  color-scheme: dark;

  /* ground and surfaces */
  --ink:      #1b1b1a;   /* the page ground: charcoal (Phil 2026-10-29: "not a huge fan... too dark blue" -> charcoal) */
  --raise:    #252523;   /* a frame's inside, one step up */
  --raise-2:  #2f2f2c;   /* a pinned block / popover */
  --ink-rgb:  27,27,26;  /* --ink for translucent overlays */

  /* text: two colours, no third (T8) */
  --frost:    #eeece6;   /* primary text, and WHITE = "you are here" (C5) */
  --core:     #a19d93;   /* secondary text: units, periods, labels (warm grey, no blue) */

  /* lines: one weight, two strengths (C6) */
  --line:        rgba(238,236,230,.13);  /* rules inside a table */
  --frame:       rgba(238,236,230,.5);  /* a level's frame and its tab */
  --here:        #eeece6;                /* the picked box's outline */
  --line-w:      1px;

  /* regions (B-074, B-090): tab + frame colour, and the ground inside a picked region */
  --ca:  #d52b1e;  --ca-bg: #2e1c1a;
  --ab:  #2f6fd6;  --ab-bg: #1f2429;
  --sk:  #18a35a;  --sk-bg: #1d2620;

  /* chart lanes (Phil's sketch: production warm, cSOR cool) */
  --oil:   #f2a33a;
  --sor:   #6fd3e6;
  --steam: #8fb3c9;   /* steam (the full chart's steam line, the headline tiles) */
  /* the Facilities table's two groups (template 2026-11-09, T3): a tint of the steam blue and of the bitumen orange, under
     --frost text on the dark panel */
  --steam-tint: rgba(143,179,201,.17);
  --oil-tint:   rgba(242,163,58,.15);

  /* type: one family, three sizes, three weights (T8) */
  --font:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* (THE PHONE SCALE, phone audit P7 + Phil 2026-11-21 "i think the labels are too big in some cases": these are the phone's sizes --
     the desktop's are set over them in app.css. OLD: xs 9, l 20, the tables' title 16. NEW: one floor of 11 px for anything readable,
     the headline numbers and the tables' titles a step smaller) */
  --t-s:   11px;
  --t-xs:  11px;   /* the qualifier under a KPI (Aug '26, all-time), units, periods, headings of columns, notes -- never under 11 on a phone */
  --t-m:   13px;   /* body, table cells, box labels */
  --t-card: 12px;  /* the hover card's text (HOVERS run 2026-11-20) */
  --t-card-name: 14px;   /* the hover card's and the popup's name */
  --t-l:   18px;   /* headline numbers: the chart's end values, the level's KPIs */
  --w-reg: 400;  --w-mid: 600;  --w-bold: 700;
  /* the main tables' three sizes, the same at every width (look spec 2026-11-02 R7; widths fixed per column, R8): figures
     and names; units, receipts and sub-lines; the table's title */
  --tb-body:  13px;
  --tb-small: 11px;
  --tb-title: 15px;

  /* space */
  --s1: 2px; --s2: 4px; --s3: 6px; --s4: 10px; --s5: 16px;
  --tap:     30px;   /* the smallest thing a finger presses (K8) */
  --row:     36px;   /* a table row */
  --bar:     40px;   /* a level's bar at full size */
  --bar-thin: 28px;  /* the same bar in the pinned block */
  --nest:    5px;
  --plot:       112px;  /* the headline chart's plot, its height (FRONT run 2026-11-14) */
  --plot-phone:  84px;  /* the same at phone width */
  --bar-figs:    16px;  /* the share bar: its height holds its figures (--t-s) */    /* how far a child frame sits inside its parent (left only: right edges align) */
  --shadow-card: 0 4px 14px rgba(0,0,0,.35);   /* the hover card and the map's click popup: one shadow */
  --radius:  0px;    /* no curves (A1-153, C-068) */
}
