/* Maya console tokens. Paper (light) on :root, night under data-theme=dark and under the OS preference when nothing is stamped.
   Every colour in the console comes from here. Contrast figures in the comments are from the first draft on #F1EDE4; run tools/contrast.py for the current paper (text passes 4.5, marks other than lights pass 3.0). */
:root{
  --paper:#ECE7DA;      /* ground; the body also carries --grain (2026-09-16: deeper than the deck's #F1EDE4, which read white on a screen) */
  --paper-2:#E6E0D2;    /* hover surface */
  --paper-3:#DED8C9;    /* pressed surface, tag chips */
  --ink:#131313;        /* text (15.9) */
  --ink-2:#5F5D5A;      /* secondary text (5.6) */
  --ink-3:#65635F;      /* labels (4.6) */
  --ink-4:#86827D;      /* quiet, never for body text (WO 47: 3.1, was #94928C/2.7) */
  --hair:#D3CDBF;       /* hairlines */
  --hair-2:#C4BEB0;     /* input underlines, ghost buttons */
  --strand:#A19C90;     /* conforming strands at rest; quiet by design, hover lights them to ink */
  --red:#C9463F;    --red-t:#9B2C25;    --red-w:#F6DDD9;   /* deviation, denied: mark (4.1), text (6.5), wash */
  --green:#2F7A48;  --green-t:#2E5540;  --green-w:#DCEBDF; /* rule present, connected: mark (4.5), text (7.2), wash */
  --blue:#1F6F8F;   --blue-t:#1B5480;   --blue-w:#DCE9EF;  /* selection, new in period: mark (4.8), text (6.8), wash */
  --amber:#A87410;  --amber-t:#7A5200;  --amber-w:#F3E4C4; /* no rule, no declaration, watch: mark (3.5), text (5.9), wash */
  --orange:#C8641E;     /* warning step of the ramp (3.4) */
  --grey:#85817C;       /* idle, offline, dead (3.1) */
  --scrim:rgba(19,19,19,.12); /* shade behind an open drawer */
  /* Lights: the brand colours (Brian, 2026-09-16). Filled status dots, risk dots and tile lights only; never text, never strands (2.0 to 2.7 on paper). */
  --lt-green:#48C065;   /* active, healthy */
  --lt-amber:#E3A33A;   /* idle, watch */
  --lt-red:#EA6863;     /* dead, critical */
  --lt-blue:#40A8C6;    /* brand blue, reserved */
  --grain:url("assets/grain.png");   /* fine grain, tiled at its own size */
  --mottle:url("assets/mottle.png"); /* the deck paper's fibre (Mayagentic_Overview_Final, image1.png), mirrored to tile; scale it up: */
  /* body{background-color:var(--paper);background-image:var(--grain),var(--mottle);background-size:auto,1600px 896px} in light and in night alike */
  --serif:"Palatino Linotype",Palatino,"P052","URW Palladio L","TeX Gyre Pagella","Book Antiqua",Georgia,serif;
  --sans:-apple-system,"Helvetica Neue",Helvetica,Arial,sans-serif;
  --mono:ui-monospace,Menlo,Consolas,"DejaVu Sans Mono",monospace;
  color-scheme:light;
}
:root[data-theme="dark"]{
  --paper:#1C1B18;--paper-2:#242320;--paper-3:#2D2B27;
  --ink:#ECE7DC;--ink-2:#B9B3A6;--ink-3:#948E82;--ink-4:#6F6A60;
  --hair:#36332E;--hair-2:#43403A;--strand:#5E5A53;
  --red:#E0736B;--red-t:#F2A39D;--red-w:#3A2422;
  --green:#63B07E;--green-t:#9AD4AF;--green-w:#20302A;
  --blue:#5AA6C6;--blue-t:#95CBE0;--blue-w:#1F3038;
  --amber:#D4A741;--amber-t:#E8C46E;--amber-w:#3A3020;
  --orange:#D9803F;--grey:#7D786F;--scrim:rgba(0,0,0,.45);
  color-scheme:dark;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]):not([data-theme="dark"]){
  --paper:#1C1B18;--paper-2:#242320;--paper-3:#2D2B27;
  --ink:#ECE7DC;--ink-2:#B9B3A6;--ink-3:#948E82;--ink-4:#6F6A60;
  --hair:#36332E;--hair-2:#43403A;--strand:#5E5A53;
  --red:#E0736B;--red-t:#F2A39D;--red-w:#3A2422;
  --green:#63B07E;--green-t:#9AD4AF;--green-w:#20302A;
  --blue:#5AA6C6;--blue-t:#95CBE0;--blue-w:#1F3038;
  --amber:#D4A741;--amber-t:#E8C46E;--amber-w:#3A3020;
  --orange:#D9803F;--grey:#7D786F;--scrim:rgba(0,0,0,.45);
  color-scheme:dark;
}}

/* State ramp from the colour contract, mapped onto the tokens */
:root{
  --st-healthy:var(--green);
  --st-warning:var(--amber);
  --st-elevated:var(--orange);
  --st-critical:var(--red);
  --st-idle:var(--grey);
}
