/* Masaar design tokens: palette E "All Courts". Loaded FIRST (before styles.css): the one place colours are set.
   Every tennis colour has one job:
     grass green  = the frame (top bar, sidebar, hero cards, selected tab / active states)
     clay         = actions (primary buttons, the "+" button, save bars); white text on clay
     hard-court blue = links and information (links, eyebrows, info badges)
     ball yellow  = small highlights only (active-tab dot, loader ball, stage chips); never text on a light page
     white        = lines
   Contrast is checked by scratchpad/contrast.js against this file (body text >= 7:1, other text >= 4.5:1).
   Dark mode: not yet; when it comes, override these tokens in one @media (prefers-color-scheme:dark) block. */
:root{
  /* page and text */
  --bg:#F4F3EE;--surface:#FFFFFF;--ink:#101D19;--ink-2:#34423D;--ink-3:#55645E;
  --line:#DEE2DB;--line-2:#ECEEE8;

  /* frame: grass green (top bar, sidebar, hero cards, selected states) */
  --brand:#123D33;--brand-2:#1A4D41;--brand-strong:#0B2A23;
  --brand-soft:#E3EEE9;              /* light green tint behind a selected tab icon */

  /* actions: clay (white text on clay) */
  --court:#B8562F;--court-deep:#93401F;
  --action:var(--court);--action-deep:var(--court-deep);--on-action:#FFFFFF;

  /* links and information: hard-court blue */
  --accent:#1F5FA8;--accent-soft:#E9F1FA;--accent-line:#B7CFEA;
  --link:var(--accent);--info:var(--accent);--info-t:var(--accent-soft);

  /* tennis colours */
  --tennis:#1A6B55;--fitness:#5B4BB0;--match:#9A5B1E;
  --ball:#DCEB5A;--ball-t:#EEF5C6;--clay:#B8562F;--clay-t:#F6E5DC;
  --grass:#123D33;--hard:#1F5FA8;

  /* 2.20: the phases of a session (training blocks and the minutes bar) */
  --ph-warmup:#D58A12;--ph-closed:#1F5FA8;--ph-semi:#5B4BB0;--ph-open:#123D33;--ph-cooldown:#0F766E;--ph-fitness:#B8562F;--ph-other:#5F6964;
  /* 2.28: stations; the drill court with run-off (ground, court, lines, marks) and the station zones */
  --ph-stations:#8F560F;--ph-ramp:#D58A12;
  --dr-runoff:#2F7A5C;--dr-court:#1A6B55;--dr-chalk:#FFFFFF;--dr-net:#E8ECE9;--dr-shot:#DCEB5A;--dr-shot-t:rgba(220,235,90,.25);
  --dr-player:#1F5FA8;--dr-coach:#B8562F;--dr-cone:#E8932F;
  --dr-z1:rgba(91,75,176,.28);--dr-z2:rgba(232,147,47,.28);--dr-z3:rgba(31,95,168,.28);--dr-z4:rgba(220,235,90,.22);
  --dr-n1:#5B4BB0;--dr-n2:#C77A12;--dr-n3:#1F5FA8;--dr-n4:#6B7A1E;

  /* 2.21: the areas of an objective in the technical director's programme (text colour + light tint) */
  --ar-technical:#1F5FA8;--ar-technical-t:#E9F1FA;--ar-tactical:#123D33;--ar-tactical-t:#E3EEE9;
  --ar-mental:#5B4BB0;--ar-mental-t:#EEEBF8;--ar-physical:#93401F;--ar-physical-t:#F6E5DC;

  /* 2.22: the source of a record (club group / private, tennis / fitness): text colour + light tint */
  --src-ct:#1A6B55;--src-ct-t:#E3EEE9;--src-cf:#5B4BB0;--src-cf-t:#EEEBF8;--src-pt:#93401F;--src-pt-t:#F6E5DC;--src-pf:#8F560F;--src-pf-t:#FBF0DD;

  /* ball stages (the only place the brand uses red / orange / green as a scale) */
  --stage-red:#D9533F;--stage-orange:#E8932F;--stage-green:#2FA061;--stage-yellow:#DCEB5A;

  /* status: text colour + light tint behind it */
  --safe:#1C7C54;--safe-t:#EAF5EF;--caution:#8F560F;--caution-t:#FBF0DD;
  --high:#B42318;--high-t:#FBE9E7;--low:#1F5FA8;--low-t:#E9F1FA;--none:#5F6964;--none-t:#EDEFEC;
  --warn:var(--caution);--warn-t:var(--caution-t);

  /* text on the dark frame / on clay buttons */
  --on-brand:#EAF3EF;--on-brand-2:#B8CEC5;--on-brand-3:#93AEA1;--on-court-2:#FFFFFF;

  /* match charts (shot outcomes) */
  --c-win:#1c8a56;--c-win-t:#e3f4eb;--c-ue:#c8372b;--c-ue-t:#fbe7e5;--c-fe:#d58a12;--c-fe-t:#fcf1dc;
  --c-ace:#1F5FA8;--c-ace-t:#e6eefb;--c-df:#8b3fb0;--c-df-t:#f3e8f9;--c-bp:#0f766e;--c-bp-t:#dff4f1;
  --c-net:#475569;--c-net-t:#eceff3;

  /* 2.25: the player progress report (report-view.js): chart series, tracks and the status chips */
  --prg-s2:#6E9A8C;--prg-s4:#E7B08F;--prg-track:#E7EAE3;--prg-grid:#F7F8F4;--prg-tint:#E9F2EE;--prg-tint-line:#9CC2B3;
  --prg-good:#2F8A5B;--prg-bad:#9B3B22;--prg-watch:#B89A2E;--prg-warn:#C17A1A;
  --prg-ok-t:#E8F0E6;--prg-ok:#3D6B33;--prg-watch-t:#F1EFE3;--prg-watch-i:#6E5F1E;--prg-warn-t:#F5EADC;--prg-warn-i:#7E5A0F;--prg-bad-t:#F3E2DC;

  /* type (styles.css also sets --display; same value) */
  --display:"Archivo","IBM Plex Sans Arabic","Segoe UI",system-ui,sans-serif;
  --text:"IBM Plex Sans","IBM Plex Sans Arabic","Segoe UI",system-ui,-apple-system,sans-serif;
  --fs-xs:12px;--fs-sm:13px;--fs-md:14px;--fs-lg:16px;--fs-xl:20px;--fs-2xl:30px;

  /* spacing (4px steps) and radius (the card radius --radius is 16px, set in styles.css) */
  --sp-1:4px;--sp-2:8px;--sp-3:12px;--sp-4:16px;--sp-5:20px;--sp-6:24px;--sp-8:32px;
  --r-sm:8px;--r-md:12px;--r-lg:16px;--r-xl:20px;--r-pill:999px;
  --tap:44px;                          /* smallest touch target */
  /* names used by the 2.14-2.18 screens (session planner, quarterly review), mapped to the All Courts palette:
     high-emphasis controls = grass green, secondary controls and accents = hard-court blue */
  --ink-navy:var(--brand);--slate:var(--accent);--slate-soft:var(--accent-soft);
}
