/* Home v09 trackers (trk9.js): the site's original trackers as an old-school LED HUD, with a picture slideshow in every window.
   Default: white phosphor. ?led=amber / ?led=green are comparison switches only (dark theme).
   Everything here is scoped to the home: #connections .tracker exists only there, the HTML parts are under #view[data-kind=home]. */
body.v04{
  --led:#1d1f1e; --led-dim:rgba(29,31,30,.10); --led-glow:transparent; --led-panel:#f3f3f1; --led-line:rgba(29,31,30,.62); --led-quiet:rgba(29,31,30,.5);
  --led-matte:#fff;
}
body.v04:not(.light-preview){
  --led:#efeee7; --led-dim:rgba(239,238,231,.10); --led-glow:rgba(239,238,231,.38); --led-panel:#070909; --led-line:rgba(239,238,231,.66); --led-quiet:rgba(239,238,231,.46);
  --led-matte:#bdbeb8;
}
body.v04.trk9-amber:not(.light-preview){--led:#ffb238;--led-dim:rgba(255,178,56,.11);--led-glow:rgba(255,150,30,.5);--led-line:rgba(255,178,56,.7);--led-quiet:rgba(255,178,56,.48)}
body.v04.trk9-green:not(.light-preview){--led:#62ff8e;--led-dim:rgba(98,255,142,.10);--led-glow:rgba(60,255,120,.45);--led-line:rgba(98,255,142,.66);--led-quiet:rgba(98,255,142,.46)}
/* lit LED text: square cells on a 2 px pitch, the gaps between them dimmer; a soft phosphor bloom */
body.trk9{
  --led-cells:linear-gradient(90deg,#000 1.5px,rgba(0,0,0,.66) 1.5px) 0 0/2px 2px,linear-gradient(#000 1.5px,rgba(0,0,0,.66) 1.5px) 0 0/2px 2px;
}

/* ---------- the pictures: one layer in #world over the liquid, under the tracker lines; each window cut to its frame path ---------- */
.trk9-layer{position:absolute;inset:0;pointer-events:none;visibility:hidden;overflow:hidden}
.trk9-layer.is-on{visibility:visible}
/* the window's panel fills its whole frame path (tabs and notches too) and stays fully lit while shown: the liquid's own window
   patterns never show through it */
.trk9-win{position:absolute;inset:0;background:var(--led-panel)}
.trk9-pic{position:absolute;left:0;top:0;width:0;height:0;background:var(--led-panel);overflow:hidden}
.trk9-pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;z-index:0}
.trk9-pic img.on{opacity:1}
/* a new picture comes in as a row-by-row wipe on top of the old one (an LED refresh), never a cross-fade */
.trk9-pic img.top{z-index:1;animation:trk9-wipe .28s steps(7,end) both}
@keyframes trk9-wipe{from{clip-path:inset(0 0 100% 0)}to{clip-path:inset(0 0 0 0)}}
@media (prefers-reduced-motion:reduce){.trk9-pic img.top{animation:none}}
.trk9-tint{position:absolute;inset:0;z-index:2;display:none;pointer-events:none}
.trk9-scan{z-index:3}
/* ?pic=duo (comparison only): pictures at rest as an LED duotone (phosphor colour on a dot mask); full colour in the open window */
body.trk9-duo .trk9-win:not(.is-open) .trk9-pic img{filter:grayscale(1) contrast(1.15) brightness(.92)}
body.trk9-duo .trk9-win:not(.is-open) .trk9-tint{display:block;background:var(--led);mix-blend-mode:multiply;
  -webkit-mask:radial-gradient(circle at 1px 1px,#000 .9px,rgba(0,0,0,.55) 1.1px) 0 0/2px 2px;mask:radial-gradient(circle at 1px 1px,#000 .9px,rgba(0,0,0,.55) 1.1px) 0 0/2px 2px}
body.trk9-duo.light-preview .trk9-win:not(.is-open) .trk9-tint{mix-blend-mode:screen}
/* a collection with nothing to show yet (Websites): an LED "in build" panel; dot-matrix type, a slow running line, faint hatch */
.trk9-build{position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;justify-content:center;gap:calc(var(--s,120px)*.05);padding:0 calc(var(--s,120px)*.12);
  box-sizing:border-box;color:var(--led);font-family:Neuebit,monospace;text-transform:uppercase;letter-spacing:.07em;line-height:1;overflow:hidden;
  background:repeating-linear-gradient(135deg,var(--led-dim) 0 1px,transparent 1px 7px)}
.trk9-build :is(b,strong,.trk9-run){-webkit-mask:var(--led-cells);mask:var(--led-cells);filter:drop-shadow(0 0 2px var(--led-glow))}
.trk9-build b{font-size:clamp(10px,calc(var(--s,120px)*.085),15px);font-weight:400;opacity:.7}
.trk9-build strong{font-size:clamp(16px,calc(var(--s,120px)*.2),38px);font-weight:400;line-height:.9}
.trk9-build .trk9-run{position:absolute;left:0;right:0;bottom:calc(var(--s,120px)*.1);height:14px;overflow:hidden;font-size:12px;border-top:1px dashed var(--led-quiet);padding-top:3px}
.trk9-build .trk9-run i{display:block;white-space:nowrap;font-style:normal;animation:trk9-run 16s steps(160,end) infinite}
@keyframes trk9-run{to{translate:-50% 0}}
@media (prefers-reduced-motion:reduce){.trk9-build .trk9-run i{animation:none}}
/* the chip row's caption (when a window is open) */
.trk9-dock{position:absolute;left:0;top:0;display:none;align-items:center;gap:10px;font:12px/1 Neuebit,monospace;letter-spacing:.07em;text-transform:uppercase;color:var(--led);opacity:.8}
.trk9-dock.on{display:flex}
.trk9-dock i{flex:1;border-top:1px dashed var(--led-quiet)}
/* things the label pass hides, the hidden text-measuring twins, the readouts' solid backing */
body.trk9 #connections .trk9-off{display:none!important}
#connections .trk9-measure{visibility:hidden}
body.trk9 #connections .trk9-rbg{fill:var(--led-panel);fill-opacity:.86;stroke:none}
.trk9-pic img.matte{object-fit:contain;padding:9%;box-sizing:border-box;background:var(--led-matte)}
/* a very light scanline: every third pixel row 8% darker (the work stays clear) */
.trk9-scan{position:absolute;inset:0;background:repeating-linear-gradient(180deg,rgba(0,0,0,.08) 0 1px,transparent 1px 3px)}
body.light-preview .trk9-scan{background:repeating-linear-gradient(180deg,rgba(0,0,0,.05) 0 1px,transparent 1px 3px)}
@media (prefers-reduced-motion:reduce){.trk9-pic img{transition:none}}

/* ---------- SVG parts (#connections): lines in phosphor, readouts on the LED dot pattern ---------- */
#trk9-led .trk9-led-on{fill:var(--led)}
#trk9-led .trk9-led-off{fill:var(--led);fill-opacity:.42}
body.trk9 #connections .tracker-frame{stroke:var(--led-line);stroke-width:1px;opacity:1;stroke-linejoin:miter}
body.trk9 #connections .tracker.is-selected .tracker-frame{stroke:var(--led);stroke-width:1.5px}
body.trk9 #connections :is(.tracker-secondary,.tracker-ticks,.tracker-probe){stroke:var(--led-quiet);stroke-width:1px;opacity:1;stroke-linecap:butt;stroke-linejoin:miter}
body.trk9 #connections .tracker-secondary{stroke-dasharray:2 2}
body.trk9 #connections .tracker-leader{stroke:var(--led-quiet);stroke-dasharray:2 2;stroke-linecap:butt}
body.trk9 #connections :is(.tracker-telemetry,.tracker-dimension,.tracker-tag-text){fill:url(#trk9-led)!important;font-family:Neuebit,monospace;text-transform:uppercase;letter-spacing:.07em;filter:drop-shadow(0 0 2px var(--led-glow))}
body.trk9 #connections .tracker-telemetry{font-size:14px}
body.trk9 #connections .tracker-dimension{font-size:12px}
body.trk9 #connections .tracker-tag-text{font-size:12px}
/* the status tag: a solid LED plate (cut corner from the original), never see-through over the picture */
body.trk9 #connections .tracker-tag{fill:var(--led-panel);stroke:var(--led-line);stroke-width:1px;opacity:1;stroke-linejoin:miter}
body.trk9 #connections .tracker.is-catching .tracker-tag{fill:var(--led-panel);stroke:var(--led)}
/* nothing else is drawn over the work: the reticle, speed trace, progress bar and detail plot that sat inside the window are off */
body.trk9 #connections :is(.tracker-reticle,.tracker-trace,.tracker-meter,.tracker-detail){display:none!important}
body.trk9 #connections .tracker-pair :is(.pair-line,.pair-ends){stroke:var(--led-quiet);stroke-dasharray:2 2}
/* the windows are laid out apart (trk9.js): the dashed pair links between neighbours are off on the home */
body.trk9-home #connections .tracker-pair{display:none}
.light-preview[data-page=home].trk9 #connections :is(.tracker-tag-text,.tracker-telemetry,.tracker-dimension){font-size:11px}

/* ---------- HTML parts: title plates, coordinate lines, numbered markers ---------- */
body.trk9 #view[data-kind=home] .tracker-label{font-family:Neuebit,monospace;color:var(--led);text-transform:uppercase;letter-spacing:.07em;line-height:1;gap:5px;
  padding:4px 8px 4px 5px;margin-left:-1px;max-width:none!important;width:max-content!important;
  background-color:var(--led-panel);
  background-image:linear-gradient(90deg,transparent 1.5px,var(--led-panel) 1.5px),linear-gradient(transparent 1.5px,var(--led-panel) 1.5px),linear-gradient(var(--led-dim),var(--led-dim));
  background-size:2px 2px,2px 2px,auto;
  box-shadow:inset 0 0 0 1px var(--led-quiet);
  clip-path:polygon(0 0,calc(100% - 7px) 0,100% 7px,100% 100%,0 100%)}
body.trk9 #view[data-kind=home] .tracker-label :is(b,.tracker-data){-webkit-mask:var(--led-cells);-webkit-mask-composite:source-in;mask:var(--led-cells);mask-composite:intersect;filter:drop-shadow(0 0 2px var(--led-glow))}
body.trk9 #view[data-kind=home] .tracker-label b{font:18px/1 Neuebit,monospace;letter-spacing:.05em;text-transform:uppercase}
body.trk9 #view[data-kind=home] .tracker-label .tracker-number{font-size:14px;opacity:.62}
body.trk9 #view[data-kind=home] .tracker-label .tracker-data{font-size:13px;opacity:.78;color:var(--led)}
/* a small window shows its collection's short code (the site's own data-short: MUS, EVT, ID, WEB, IND), so no plate runs into the next one */
body.trk9 #view[data-kind=home] .tracker-target{container-type:inline-size}
@container (max-width:104px){
  body.trk9 #view[data-kind=home] .tracker-target:not(.is-focused):not(.is-muted) .tracker-label b{font-size:0}
  body.trk9 #view[data-kind=home] .tracker-target:not(.is-focused):not(.is-muted) .tracker-label b::after{content:attr(data-short);font-size:18px}
}
body.trk9 #view[data-kind=home] .tracker-target.is-focused .tracker-label b{font-size:24px}
body.trk9 #view[data-kind=home] .tracker-target.is-muted .tracker-label b{font:0/1 Neuebit,monospace}
body.trk9 #view[data-kind=home] .tracker-target.is-muted .tracker-label b::after{content:attr(data-short);font-size:13px;letter-spacing:.07em}
body.trk9 #view[data-kind=home] .tracker-target.is-muted .tracker-label{left:4px;bottom:4px;padding:2px 5px 2px 3px;clip-path:none;max-width:none}
/* the layout pass (trk9.js): the target (plate, card, hit area) moves and sizes with its laid-out window */
body.trk9 #view[data-kind=home] .tracker-target.trk9-fit{width:var(--trk9-s)!important;height:var(--trk9-s)!important;translate:var(--trk9-dx,0) var(--trk9-dy,0)}
body.trk9 #view[data-kind=home] .tracker-target:is(.trk9-small,.trk9-nodata,.trk9-chip) .tracker-data{display:none}
body.trk9 #view[data-kind=home] .tracker-target.trk9-wait{pointer-events:none!important}
/* numbered markers that would sit on a window, plate, readout, the open card or the chip row are off (still reachable by keyboard) */
body.trk9 #view[data-kind=home] .surface-link.trk9-hide:not(:focus-visible){opacity:0!important;pointer-events:none}
/* the open card goes right of the window when there is no room on its left */
body.trk9 #view[data-kind=home] .tracker-target.trk9-card-r .tracker-preview{right:auto;left:calc(100% + 40px)}
body.trk9 #view[data-kind=home] .tracker-target{border-radius:0;border-color:transparent}
/* the open window's collection card: an LED panel beside the window (never over the picture) */
body.trk9 #view[data-kind=home] .tracker-preview{left:auto;right:calc(100% + 34px);top:0;bottom:auto;max-width:240px;width:max-content;min-width:150px;white-space:normal;padding:10px 14px 10px 10px;
  background:var(--led-panel);box-shadow:inset 0 0 0 1px var(--led-quiet);clip-path:polygon(0 0,calc(100% - 9px) 0,100% 9px,100% 100%,9px 100%,0 calc(100% - 9px));
  color:var(--led);font-family:Neuebit,monospace;text-transform:uppercase;letter-spacing:.06em}
body.trk9 #view[data-kind=home] .tracker-preview>strong{font:26px/1 Neuebit,monospace;letter-spacing:.05em;color:var(--led);-webkit-mask:var(--led-cells);-webkit-mask-composite:source-in;mask:var(--led-cells);mask-composite:intersect;filter:drop-shadow(0 0 2px var(--led-glow))}
body.trk9 #view[data-kind=home] .tracker-preview :is(.micro,.preview-project,.preview-enter){font-family:Neuebit,monospace;font-size:13px;color:var(--led);opacity:.8}
/* numbered markers: square LED badges (were circles); the round pulse ring is off */
body.trk9 #view[data-kind=home] .surface-link .nav-dot{border-radius:0;border-color:var(--led-line);background:var(--led-panel)}
body.trk9 #view[data-kind=home] .surface-link .nav-dot:before{color:var(--led);font-size:14px;letter-spacing:.04em;-webkit-mask:var(--led-cells);-webkit-mask-composite:source-in;mask:var(--led-cells);mask-composite:intersect}
body.trk9 #view[data-kind=home] .surface-link .nav-dot:after{display:none!important}
body.trk9 #view[data-kind=home] .surface-link:is(:hover,:focus-visible,.is-focused) .nav-dot{background:var(--led);border-color:var(--led)}
body.trk9 #view[data-kind=home] .surface-link:is(:hover,:focus-visible,.is-focused) .nav-dot:before{color:var(--led-panel);-webkit-mask:none;mask:none}
body.trk9 #view[data-kind=home] .surface-link.is-building .nav-dot{border-style:dashed}
body.trk9 #view[data-kind=home] .surface-link{border-radius:0}
body.trk9 #view[data-kind=home] .surface-link:focus-visible{outline:none}
body.trk9 #view[data-kind=home] .surface-link:focus-visible .nav-dot{outline:var(--focus-width,2px) solid var(--led);outline-offset:3px}
/* short screens (the windows get small): compact plates, so they do not run over each other */
@media (max-height:820px){
  body.trk9 #view[data-kind=home] .tracker-label{padding:3px 6px 3px 4px;gap:3px}
  body.trk9 #view[data-kind=home] .tracker-label b{font-size:15px}
  body.trk9 #view[data-kind=home] .tracker-label .tracker-number{font-size:12px}
  body.trk9 #view[data-kind=home] .tracker-label .tracker-data{font-size:11px}
  body.trk9 #view[data-kind=home] .tracker-target:not(.is-focused):not(.is-muted) .tracker-label b::after{font-size:15px}
  body.trk9 #connections .tracker-telemetry{font-size:12px}
}
body.trk9 #view[data-kind=home] .surface-copy{font-family:Neuebit,monospace;text-transform:uppercase;color:var(--led);background:var(--led-panel);box-shadow:inset 0 0 0 1px var(--led-quiet)}
body.trk9 #view[data-kind=home] .surface-copy strong{font:20px/1 Neuebit,monospace;letter-spacing:.06em}

/* the open card's lines wrap instead of being cut */
body.trk9 #view[data-kind=home] .tracker-preview :is(.micro,.preview-project,.preview-enter,.preview-projects){white-space:normal;overflow:visible;text-overflow:clip;max-width:100%}
/* Nav open: the trackers are off (as in v08), so the original window fills and round glyphs never show */
body.trk9.nav-open #connections .tracker,body.trk9.nav-open #view[data-kind=home] .tracker-targets{visibility:hidden}
/* the original particle-distribution panel (shown on wide screens) is not part of the LED home */
body.trk9 #view[data-kind=home] .field-distribution{display:none!important}
/* the "in build" panel in a chip or a very small window: the hatch only, no type */
.trk9-pic{container-type:size}
@container (max-width:84px){.trk9-build>*{display:none}}
/* the site's own "other paths" caption sits at the tracker code's parked boxes; the chip row has its own caption (trk9.js) */
body.trk9 #view[data-kind=home] .tracker-dock-label{display:none!important}
