/* Design tokens: light greys and one accent, after the SBB truck dashboard (spec 5.7).
   Hazard yellow means "this is the problem" and carries black words, never yellow words on grey;
   every yellow mark has an ink edge (plan decision P1). #9D9D9D (--stroke) is for strokes, dots and
   inactive artwork only; small text is --ink-2. Feeds take the industry colours by slot (amended
   16 Nov 2026, Kev K-026): A red, B blue, C green, D orange, then again from red for feeds 5 to 12.
   These four are the only feed colours; app.css maps them to classes and nothing else names them.
   There is no night theme until it is designed (P12). check/contrast.js lists every pair drawn
   one on the other. */

@font-face { font-family: "Lexend"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/lexend-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lexend-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/lexend-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --canvas: #E1E1E0;
  --card: #E8E8E7;
  --card-edge: #F2F2F1;
  --card-sel: #F7F7F6;
  --ink: #111111;
  --ink-2: #5E5E5E;
  --stroke: #9D9D9D;
  --line: #CFCFCD;
  --on-ink: #FFFFFF;
  --accent: #F4C430;
  --on-accent: #111111;
  /* feeds by slot: red, blue, green, orange. Each is 3:1 or more on every grey it is drawn on.
     The green is a clear mid green (Kev, K-053, 16 Nov 2026: the dark green read as black on a
     thin cord). It leans slightly to blue so that, as red-green colour blindness sees it, it
     stays apart from the red and from the orange; check/contrast.js measures that. The shape of
     the plug-end mark (P7) still tells every feed apart. */
  --feed-a: #C21F3F;
  --feed-b: #2E5BDA;
  --feed-c: #047E52;
  --feed-d: #B35600;

  /* hardware, greyscale */
  --hw-frame: #CBCBC9;
  --hw-frame-line: #6E6E6C;
  --hw-inside: #D8D8D6;
  --hw-rail: #BEBEBC;
  --hw-hole: #8A8A88;
  --hw-plate: #F5F5F4;
  --hw-plate-line: #3A3A39;
  --hw-detail: #7E7E7C;
  --hw-bay: #E4E4E2;
  --hw-ear: #DCDCDA;
  --hw-vent: #A6A6A4;
  --hw-psu: #DFDFDD;
  --hw-psu-line: #3A3A39;
  --hw-pdu: #2B2B2A;
  --hw-pdu-line: #111111;
  --hw-pdu-ink: #EDEDEC;
  --hw-socket: #CFCFCD;
  --hw-screen: #4A4A49;
  --hw-screen-ink: #F2F2F1;
  --hw-dead: #BDBDBB;
  --hw-dead-line: #9D9D9D;
  --hw-dead-ink: #2F2F2E;

  --font: "Lexend", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --r-card: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --panel-ms: 160ms;
  --top-h: 56px;
  --strip: 118px;
  --side: 300px;
}

/* Printed, the page is white and the cards lose their grey, so the report is not a page of ink. */
@media print {
  :root {
    --canvas: #FFFFFF;
    --card: #FFFFFF;
    --card-edge: #FFFFFF;
    --card-sel: #FFFFFF;
  }
}
