/* Cognia tokens: the Prime One brand (P1Brand in worker/src/projects/prime-one-main.js, Brand Standards §3–5),
   sized for store iPads in detail sheds (gloves, glare). Never hard-code a color or font in a screen; use these.
   Status colors are for status only. Slightly rounded corners (Andre, Nov 18, 2026): 6 px keys and chips, 10 px controls, 14 px groups and sheets. */
:root{
  /* brand */
  --p1-navy:#242D3C; --p1-deep:#161C27; --p1-silver:#A9AFB8; --p1-steel:#5B636F; --p1-lsilver:#D5D9E0;
  --p1-hair:#E2E5EA; --p1-mist:#F3F4F6; --p1-white:#FFFFFF; --p1-hair-soft:#EEF0F3; --p1-paper:#FAFBFC;
  /* status only (palette C jewel tones); *-ink = text on light grounds, 4.5:1 or better */
  --p1-green:#1C8A6A; --p1-amber:#C9952F; --p1-red:#9A2F3F;
  --p1-green-bg:#EAF3EE; --p1-amber-bg:#F8F0E2; --p1-red-bg:#F8E9E7;
  --p1-green-ink:#256B4C; --p1-amber-ink:#8A5A12;
  /* type */
  --p1-f:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --p1-lf:"Michroma","Inter",system-ui,sans-serif;
  --p1-ease:cubic-bezier(.65,0,.35,1);
  /* iPad sizes (CSS px = pt on iPad) */
  --cg-body:17px;          /* body text >= 16 */
  --cg-small:16px;         /* the smallest text on screen */
  --cg-tap:48px;           /* every target >= 44 */
  --cg-main:64px;          /* main actions >= 56 */
  --cg-hero:132px;         /* the one obvious action on a screen */
  --cg-gap:12px; --cg-pad:24px; --cg-bar:68px;
  --cg-st:env(safe-area-inset-top,0px); --cg-sb:env(safe-area-inset-bottom,0px);
  --cg-sl:env(safe-area-inset-left,0px); --cg-sr:env(safe-area-inset-right,0px);
  /* v0.3 refinement (Nov 18, 2026, UX review): selection is teal (palette C), groups are silver wells instead of
     bordered boxes. Navy fill is only for the one main action on a screen. */
  --p1-teal:#16706B; --p1-teal-bg:#E8F3F2; --p1-well:#F4F5F7; --p1-div:#E6E9EE; --p1-press:#EDEFF2; --p1-btn2:#EEF0F3;
  --cg-r-sm:6px; --cg-r:10px; --cg-r-lg:14px;   /* slightly rounded (Andre, Nov 18, 2026) */
  /* sister-store scanning (blueprint 11): one color per store the iPad can bill, never a status color; white text on
     each is 6.5:1 or better. The store's name is always written with it. */
  --cg-s1:#242D3C; --cg-s2:#2F5D8A; --cg-s3:#4B3F8F; --cg-s4:#6E5B4A;
  /* Back office (Nov 19, 2026 release; added only, nothing above changes). Spacing, depth and the office type scale. */
  --sp1:4px; --sp2:8px; --sp3:12px; --sp4:16px; --sp5:24px; --sp6:32px; --sp7:48px;
  --sh1:0 1px 2px rgba(22,28,39,.04),0 4px 16px -4px rgba(22,28,39,.06);        /* resting card */
  --sh2:0 2px 4px rgba(22,28,39,.05),0 12px 28px -8px rgba(22,28,39,.10);       /* hover / raised */
  --sh3:0 8px 24px -8px rgba(22,28,39,.10),0 32px 72px -16px rgba(22,28,39,.20); /* sheet */
  --of-t-meta:14px; --of-t-body:15px; --of-t-h3:18px; --of-t-h1:26px; --of-t-kpi:32px;
  --of-bg:#F6F7F9;          /* page behind white cards */
  --of-line:#878E9A;        /* control borders: 3.3:1 on white, 3.1:1 on --of-bg */
  --of-btn2-hover:#E3E6EB;  /* secondary button hover (navy text 11:1) */
  --of-ring:0 0 0 3px rgba(22,112,107,.18);   /* soft teal focus halo, always with a teal border */
  --of-ctl:40px;            /* control height with a mouse; 44 on touch */
  --of-dur:480ms;           /* boxes growing into place (unhurried, Andre Oct 28) */
  /* palette C data marks (same values as the leadership app): midnight to steel blue; the selected period is teal */
  --p1-midnight:#14233B; --p1-sb:#2F6F8F; --p1-sb-lt:#5E93AD; --p1-teal-lt:#7FCFC6;
  color-scheme:light;
}
