/* Diagrams: the colours and type of every inlined SVG (class "dg") on the projector, the phone view and the remote.
   The drawings themselves carry no colours and no fonts, only these class names; this file gives them the Lydion
   night. Loaded on all three pages through design/pages.json ("styles").

   The drawings live in content/files/media/dayN/*.svg. Each is drawn on a viewBox about 1000–1560 units wide with
   text no smaller than 27 units, so at the projector's stage width every word is at least ~18px at 1920 wide.

   Shapes    n (neutral node), n-teal (what works, what we add), n-blue (the agent), n-bad (the failure colour),
             n-warn (a trap or a weak signal), n-ghost (dashed outline, no fill), n-dark (a code well),
             n-fill (solid teal: done), hl (a hairline rule)
   Text      t (label), t-s (small), t-b (bold heading), t-m (medium heading), t-mono (code), t-on (text on n-fill),
             t-mut (muted); colour: t-teal, t-blue, t-bad, t-warn
   Lines     l (connector) with l-dash, l-teal, l-blue, l-bad, l-warn; arrowheads are drawn triangles (ah, ah-teal,
             ah-blue, ah-bad, ah-warn), not markers, so several inlined drawings never share an id
   Marks     ic-ok, ic-bad, ic-stop (filled discs) with ic-mark (the stroke drawn on them); dot, dot-teal, dot-off;
             ic-flame (amber)

   The ground is whatever the drawing sits on: the night stage, a phone panel, the remote. A light ground (a printed
   page, a light embed) sets class "dg-light" on any ancestor. */

.dg {
  --dg-ink: var(--ly-text, #E6EDF6);
  --dg-ink-2: var(--ly-text-2, #B7C3D6);
  --dg-mut: var(--ly-dim, #8B9BB4);
  --dg-node: #1B202F;
  --dg-node-edge: #364260;
  --dg-well: var(--ly-sunken, #070A14);
  --dg-well-edge: #2A3247;
  --dg-wire: #6E7D99;
  --dg-teal: var(--ly-teal, #2DD4BF);
  --dg-teal-wash: rgba(45, 212, 191, .10);
  --dg-blue: var(--ly-sky, #60A5FA);
  --dg-blue-wash: rgba(59, 130, 246, .16);
  --dg-bad: var(--ly-rose, #F07A6A);
  --dg-bad-wash: rgba(240, 122, 106, .12);
  --dg-warn: var(--ly-amber, #F0B24A);
  --dg-warn-wash: rgba(240, 178, 74, .11);
  --dg-on: var(--ly-night, #0A0D19);
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  overflow: visible;
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-kerning: normal;
  font-variant-numeric: tabular-nums;
}
.dg-light .dg {
  --dg-ink: #0A0D19;
  --dg-ink-2: #334155;
  --dg-mut: #5B6478;
  --dg-node: #FFFFFF;
  --dg-node-edge: #C3CCDA;
  --dg-well: #F1F4F9;
  --dg-well-edge: #C3CCDA;
  --dg-wire: #66748C;
  --dg-teal: #0F766E;
  --dg-teal-wash: rgba(15, 118, 110, .08);
  --dg-blue: #2563EB;
  --dg-blue-wash: rgba(37, 99, 235, .08);
  --dg-bad: #B42318;
  --dg-bad-wash: rgba(180, 35, 24, .07);
  --dg-warn: #9A5B05;
  --dg-warn-wash: rgba(217, 119, 6, .10);
  --dg-on: #FFFFFF;
}

/* shapes */
.dg .n { fill: var(--dg-node); stroke: var(--dg-node-edge); stroke-width: 2; }
.dg .n-teal { fill: var(--dg-teal-wash); stroke: var(--dg-teal); stroke-width: 2.5; }
.dg .n-blue { fill: var(--dg-blue-wash); stroke: var(--dg-blue); stroke-width: 2.5; }
.dg .n-bad { fill: var(--dg-bad-wash); stroke: var(--dg-bad); stroke-width: 2.5; }
.dg .n-warn { fill: var(--dg-warn-wash); stroke: var(--dg-warn); stroke-width: 2.5; }
.dg .n-ghost { fill: none; stroke: var(--dg-mut); stroke-width: 2; stroke-dasharray: 9 8; }
.dg .n-dark { fill: var(--dg-well); stroke: var(--dg-well-edge); stroke-width: 2; }
.dg .n-fill { fill: var(--dg-teal); stroke: none; }
.dg .hl { fill: none; stroke: var(--dg-node-edge); stroke-width: 2; }

/* text: sizes are in the drawing's own units */
.dg text { fill: var(--dg-ink-2); font-size: 27px; font-weight: 400; }
.dg .t { fill: var(--dg-ink); font-size: 30px; font-weight: 500; }
.dg .t-s { fill: var(--dg-ink-2); font-size: 27px; font-weight: 400; }
.dg .t-b { fill: var(--dg-ink); font-family: 'Space Grotesk', 'Archivo', system-ui, sans-serif; font-size: 34px; font-weight: 600; letter-spacing: -.01em; }
.dg .t-m { fill: var(--dg-ink); font-family: 'Space Grotesk', 'Archivo', system-ui, sans-serif; font-size: 30px; font-weight: 600; letter-spacing: -.005em; }
.dg .t-mono { fill: var(--dg-ink); font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 27px; font-weight: 500; font-variant-ligatures: none; font-feature-settings: 'liga' 0, 'calt' 0; }
.dg .t-mut { fill: var(--dg-mut); }
.dg .t-teal { fill: var(--dg-teal); }
.dg .t-blue { fill: var(--dg-blue); }
.dg .t-bad { fill: var(--dg-bad); }
.dg .t-warn { fill: var(--dg-warn); }
.dg .t-on { fill: var(--dg-on); }
.dg tspan.w { font-weight: 600; }

/* lines and arrowheads */
.dg .l { fill: none; stroke: var(--dg-wire); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.dg .l-dash { stroke-dasharray: 9 9; }
.dg .l-teal { stroke: var(--dg-teal); }
.dg .l-blue { stroke: var(--dg-blue); }
.dg .l-bad { stroke: var(--dg-bad); }
.dg .l-warn { stroke: var(--dg-warn); }
.dg .ah { fill: var(--dg-wire); stroke: none; }
.dg .ah-teal { fill: var(--dg-teal); }
.dg .ah-blue { fill: var(--dg-blue); }
.dg .ah-bad { fill: var(--dg-bad); }
.dg .ah-warn { fill: var(--dg-warn); }

/* marks */
.dg .ic-ok { fill: var(--dg-teal); }
.dg .ic-bad { fill: var(--dg-bad); }
.dg .ic-stop { fill: var(--dg-teal); }
.dg .ic-mark { fill: none; stroke: var(--dg-on); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.dg .ic-dot { fill: var(--dg-on); }
.dg .ic-flame { fill: var(--dg-warn); }
.dg .dot { fill: var(--dg-wire); }
.dg .dot-teal { fill: var(--dg-teal); }
.dg .dot-off { fill: var(--dg-node); stroke: var(--dg-wire); stroke-width: 2.5; }
.dg .wave { fill: none; stroke: var(--dg-teal); stroke-width: 3; stroke-linecap: round; }
