/* ==========================================================================
   ANTIHORIZN landing page, pipeline: the inside of the schematic stage.
   Built by assets/js/pipeline/schematic.js as one SVG. The script sets every
   dash offset, opacity and transform from the clock; nothing here animates
   on its own. Sizes are sheet units (the sheet is 1060 x 820 and the script
   scales it to the layer), so the drawing holds at any window size.
     S1  Ground and colour
     S2  The sheet: frame, zones, title block, notes
     S3  The circuit: symbols, pins, wires
     S4  Type
   ========================================================================== */

/* --- S1. Ground and colour -------------------------------------------------- */

.pl__layer[data-stage="schematic"] .pls {
  --pls-ink: color-mix(in srgb, var(--on-dark) 88%, var(--night));   /* the sheet's ink: a light grey on night */
  --pls-rule: color-mix(in srgb, var(--on-dark) 30%, var(--night));
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: var(--pls-ink);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  text-rendering: geometricPrecision;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.pls path { fill: none; }
.pls text { fill: currentColor; stroke: none; }

/* A block is the hot colour while it is drawn and cools to the ink. The script
   sets --heat from 1 to 0 on the block; everything inside takes currentColor. */
.pls__block, .pls__hot {
  color: color-mix(in srgb, var(--hot) calc(var(--heat, 0) * 100%), var(--pls-ink));
}

/* The view's soft edges, in the colour of the ground. */
.pls__stop { stop-color: var(--night); }

/* --- S2. The sheet ----------------------------------------------------------- */

.pls__ghost { stroke: color-mix(in srgb, var(--on-dark) 11%, var(--night)); stroke-width: 1; }
.pls__frame { stroke: var(--pls-rule); stroke-width: 1; stroke-linejoin: miter; }
.pls__cross { stroke: color-mix(in srgb, var(--on-dark) 13%, var(--night)); stroke-width: 0.8; }
.pls__tick  { stroke: var(--pls-rule); stroke-width: 1; }
.pls__rule  { stroke: var(--pls-rule); stroke-width: 1; stroke-linecap: square; }
.pls__zone  { font-size: 8px; font-weight: 500; fill-opacity: 0.4; }

.pls__mark-line { stroke: currentColor; stroke-width: 2.6; stroke-linecap: square; }
.pls__mark-end  { fill: currentColor; }
.pls__mark-dot  { fill: var(--hot); }
.pls__tb-name   { font-size: 15px; font-weight: 700; letter-spacing: -0.03em; }
.pls__tb-k      { font-size: 7.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; fill-opacity: 0.46; }
.pls__tb-v      { font-size: 12.5px; font-weight: 600; letter-spacing: -0.012em; }
.pls__note      { font-size: 10px; letter-spacing: -0.004em; fill-opacity: 0.6; }
.pls__note-n    { font-size: 10px; fill-opacity: 0.36; }

/* --- S3. The circuit --------------------------------------------------------- */

.pls__sym   { stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: square; }
.pls__glyph { stroke: currentColor; stroke-width: 1.2; stroke-linecap: square; stroke-opacity: 0.6; }
.pls__pin   { stroke: currentColor; stroke-width: 1.5; }
.pls__wire  { stroke: currentColor; stroke-width: 1.5; stroke-linejoin: miter; stroke-linecap: square; }
.pls__flag  { stroke: currentColor; stroke-width: 1.9; stroke-linecap: square; }
.pls__gnd   { stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; }
.pls__tag   { stroke: currentColor; stroke-width: 1.2; stroke-linejoin: miter; }
.pls__dot   { fill: currentColor; }

/* --- S4. Type ------------------------------------------------------------------
   Inter, as on the rest of the site. The monospace face is kept for literal
   identifiers: reference designators, part numbers, pin and net names. */

.pls__head   { font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.pls__head-n { fill-opacity: 0.5; }

.pls__mpn { font-family: var(--mono); }
.pls__ref     { font-size: 13px; font-weight: 600; }
.pls__mpn     { font-size: 10px; fill-opacity: 0.62; }
.pls__val     { font-size: 11px; letter-spacing: -0.004em; fill-opacity: 0.66; }
.pls__pname   { font-size: 10.5px; fill-opacity: 0.82; }
.pls__pnum    { font-size: 8px; fill-opacity: 0.44; }
.pls__net     { font-size: 9.5px; fill-opacity: 0.7; }
.pls__power   { font-size: 11px; font-weight: 600; }
.pls__tagname { font-size: 9.5px; fill-opacity: 0.9; }
