/* STARCO Dev: the animated figures (scripts/landings/starco-dev/viz.cjs writes them, assets/viz.js draws them). Loaded
   only by the pages that have one, after site.css, whose tokens it uses. Served under style-src 'self'.
   The box keeps its shape before and after the script runs, so nothing moves: without JavaScript the description
   stands in it as text; with it (.on) the canvas takes the box and the text stays as the image's description. */
figure.viz{margin:0;display:grid;gap:0;min-width:0;border:1px solid var(--line2);border-radius:16px;overflow:hidden;background:#010409}
.vizbox{position:relative;min-width:0;aspect-ratio:16/8;background:radial-gradient(120% 90% at 50% 40%,#0a1528 0,#03060d 70%)}
figure.viz.tall .vizbox{aspect-ratio:16/10}
figure.viz canvas{display:none;position:absolute;inset:0;width:100%;height:100%}
.vizalt{padding:18px 20px;display:grid;align-content:center;min-height:100%;color:var(--mute);font-size:14px;line-height:1.55}
.vizalt p{margin:0;max-width:74ch}
/* Where scripts run, the canvas has the box from the first paint (no text first and picture after); a browser that
   does not know the query swaps them when the script starts (.on). */
figure.viz.on canvas{display:block}
figure.viz.on .vizalt,figure.viz.on .vizalt p{position:absolute;width:1px;height:1px;min-height:0;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media (scripting:enabled){
  figure.viz canvas{display:block}
  figure.viz .vizalt,figure.viz .vizalt p{position:absolute;width:1px;height:1px;min-height:0;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
figure.viz .vizcap{display:grid;gap:8px;padding:12px 16px 13px;border-top:1px solid var(--line);border-bottom:0;font:14px/1.5 var(--f-body);color:var(--mute);background:#040913}
.vizcap p{margin:0}
.vizcap b{color:var(--ink);font-weight:600}
.vizcap code{font-size:12.5px;overflow-wrap:anywhere}
.vizmeta{display:flex;align-items:center;justify-content:space-between;gap:8px 12px;flex-wrap:wrap}
.viztag{font:500 11.5px var(--f-mono);color:var(--warn);border:1px dashed var(--warn);border-radius:999px;padding:2px 10px}
.vizctl{font:600 12px var(--f-mono);color:var(--ink);background:#060c18;border:1px solid var(--line2);border-radius:8px;padding:4px 11px;min-height:28px;cursor:pointer}
.vizctl:hover{border-color:var(--tron);color:var(--tron)}
.doc figure.viz,.tstep figure.viz{margin:6px 0 4px}
@media (max-width:640px){
  .vizbox{aspect-ratio:1/1}
  figure.viz.tall .vizbox{aspect-ratio:4/5}
  .vizalt{padding:14px;font-size:13.5px}
}
/* home: the stage inside the console (home.css places it) */
figure.viz.hcstage{border:0;border-radius:0;border-bottom:1px solid var(--line)}
figure.viz.stage .vizbox{aspect-ratio:16/7}
figure.viz.hcstage .vizcap{padding:8px 14px 9px;font-size:13px;gap:6px}
@media (max-width:999px){figure.viz.stage .vizbox{aspect-ratio:2/1}}
@media (max-width:640px){figure.viz.stage .vizbox{aspect-ratio:4/3}}
/* the figure of the statistical fits (viz-fit.js): the buttons that pick the model drawn, and the table of the six */
.vizpick{display:flex;flex-wrap:wrap;gap:6px}
.vizpick button{font:600 12px var(--f-mono);color:var(--mute);background:#060c18;border:1px solid var(--line2);border-radius:999px;padding:4px 12px;min-height:28px;cursor:pointer}
.vizpick button:hover{border-color:var(--tron);color:var(--ink)}
.vizpick button[aria-pressed=true]{color:#010409;background:var(--tron);border-color:var(--tron)}
.viztable{width:100%;border-collapse:collapse;font:12.5px/1.4 var(--f-mono);font-variant-numeric:tabular-nums}
.viztable th,.viztable td{border-bottom:1px solid var(--line);padding:5px 8px;text-align:left;white-space:nowrap}
.viztable thead th{color:var(--faint);font-weight:500}
.viztable tbody th{color:var(--ink);font-weight:600}
.viztable tr.cur th,.viztable tr.cur td{color:var(--tron)}
.vizsay:empty{display:none}
