/* proxec-tokens.css
   THE single source of truth for the ProXec calm-premium design tokens.
   Tokens only: no component classes, no layout, so any page can @import it without
   colliding with its own utility class names (which is why the token-light pages
   avoid proxec-ui.css). proxec-ui.css, proxec-fonts.css, and theme.css all @import
   this file, so one edit to a primitive here repaints every page at once.

   Calm-premium look is LOCKED (approved 2026-08-19 redesign). The only values that
   were changed from the mockup are the three contrast fixes noted inline, made to
   clear WCAG 2.2 AA (4.5:1 text); they are conformance fixes, not a restyle. */

/* The shared accessibility layer rides along with the tokens, so every page that
   loads any shared stylesheet (all of them) gets the skip link + focus rings. */
@import url("/assets/proxec-a11y.css");

:root{
  color-scheme:light;

  /* ---- Primitives (calm-premium, verbatim from the approved mockup) -------- */
  --ivory-1:#FCFAF5; --ivory-2:#F5F0E6; --card:#FFFDF9;
  /* --ink-3 darkened #9A9186 -> #767068 to clear AA 4.5:1 on ivory (was 2.97). */
  --ink:#2A2521; --ink-2:#6B6258; --ink-3:#767068;
  --hair:rgba(120,100,60,.14); --hair-2:rgba(120,100,60,.09);
  --gold-1:#E9CE8C; --gold-2:#C9A24C; --gold-3:#A6812F; --gold-ink:#8A6A20;
  --gold-ring:rgba(176,138,60,.38); --glow:rgba(201,162,76,.30); --nav-gold:#d4a017;
  --lift-sm:0 1px 2px rgba(60,48,24,.06),0 6px 16px rgba(60,48,24,.07);
  --lift:0 1px 2px rgba(60,48,24,.06),0 14px 34px rgba(60,48,24,.09);
  --glass-hi:inset 0 1px 0 rgba(255,255,255,.75);
  --grow:#3f8a5a; --protect:#8A6A20; --run:#3f6a94; --ok:#3f7a4a; --warn:#b5451f;
  --qb:#2CA01C;
  --r-tile:18px; --r-panel:20px; --r-pill:20px;
  --serif:"Fraunces",Georgia,"Times New Roman",serif;
  --sans:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --chatw:396px;

  /* ---- Legacy-token remap ------------------------------------------------
     Older pages were authored against a cool-gray Apple palette (--bg, --text,
     --panel, --line ...). The kit now OWNS those names and points them at the
     calm-premium primitives above, so those pages inherit calm-premium with no
     per-page :root. Status text colors are the AA-safe (>=4.5:1 on ivory) variants. */
  --bg:var(--ivory-1); --canvas:var(--ivory-1);
  --panel:rgba(255,253,249,.72); --card2:#FBF7EF;
  --line:var(--hair); --line2:var(--hair-2); --hair-soft:var(--hair-2);
  --border:var(--hair); --border2:var(--hair-2); --field:#FFFEFB;
  --text:var(--ink); --txt:var(--ink);
  --text2:var(--ink-2); --txt-2:var(--ink-2);
  --muted:var(--ink-3); --txt-3:var(--ink-3);
  --gold:var(--gold-2); --gold-bright:var(--gold-1);
  --gold-soft:rgba(201,162,76,.10); --gold-bd:var(--gold-ring); --on-gold:#4a3708;
  --good:#15722f; --green:#34c759; --amber:#ff9500;
  --good-soft:rgba(52,199,89,.14); --good-bg:rgba(52,199,89,.14); --good-bd:rgba(52,199,89,.35);
  --warn-soft:rgba(255,149,0,.12); --warn-bg:rgba(255,149,0,.12); --warn-bd:rgba(255,149,0,.30);
  --risk:#b8423a; --bad:#b8423a; --err:#b8423a;
  --risk-soft:rgba(201,79,68,.09); --bad-soft:rgba(201,79,68,.09);
  --risk-bd:rgba(201,79,68,.32); --bad-bd:rgba(201,79,68,.32);
  --blue:var(--run);
  --shadow:var(--lift); --shadow-sm:var(--lift-sm);
}
