
@font-face{font-family:"KaTeX_Main";src:url("/fonts/KaTeX_Main-Regular.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"KaTeX_Main";src:url("/fonts/KaTeX_Main-Bold.woff2") format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:"KaTeX_Main";src:url("/fonts/KaTeX_Main-Italic.woff2") format("woff2");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"KaTeX_Typewriter";src:url("/fonts/KaTeX_Typewriter-Regular.woff2") format("woff2");font-weight:400;font-display:swap}
:root{color-scheme:light;--paper:#ffffff;--paper-2:#f4f6f9;--ink:#131c28;--ink-2:#3d4756;--ink-3:#5b6676;--rule:rgba(19,28,40,.12);--rule-strong:rgba(19,28,40,.28);
--accent:#1f4fd1;--accent-wash:rgba(31,79,209,.07);--annot:#b42318;--good:#077a5d;--s1:#2a78d6;--s2:#eb6834;--s3:#1baf7a;--s4:#6250d6;--s5:#c98500;--s6:#d4508a;
--c1:#b87800;--c2:#0072b2;--c3:#7d6a00;--c4:#00845f;--c5:#b2457f;--c6:#7a4fa8;
--font-serif:"KaTeX_Main",Georgia,"Times New Roman",serif;--font-mono:"KaTeX_Typewriter","Courier New",monospace}
:root[data-theme="dark"]{color-scheme:dark;--paper:#0f1620;--paper-2:#172131;--ink:#f2f5fa;--ink-2:#cfd7e3;--ink-3:#95a1b3;--rule:rgba(242,245,250,.12);--rule-strong:rgba(242,245,250,.26);
--accent:#7aa7ff;--accent-wash:rgba(122,167,255,.1);--annot:#ff8a7a;--good:#4fd1a8;--s1:#3987e5;--s2:#d95926;--s3:#199e70;--s4:#9085e9;--s5:#c98500;--s6:#e07aa9;
--c1:#e0a339;--c2:#4fa3e0;--c3:#c9b23a;--c4:#3fc49b;--c5:#e08bbd;--c6:#b591e0}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font-serif);font-size:16px;line-height:1.6;font-variant-numeric:tabular-nums}
a{color:var(--accent)} h1,h2,h3,h4{margin:0;font-weight:700}
button,input,select{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
header.top{position:sticky;top:0;z-index:30;background:var(--paper);border-bottom:1px solid var(--rule)}
.hbar{max-width:1240px;margin:0 auto;padding:.55rem 1.25rem;display:flex;gap:1rem;align-items:baseline}
.hbar h1{font-size:1.2rem;white-space:nowrap}.hbar .sub{color:var(--ink-3);font-size:.9rem;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hlinks{display:flex;gap:1rem;align-items:baseline;margin-left:auto;white-space:nowrap}
.hlinks a,.hlinks button{font-family:var(--font-mono);font-size:.78rem;text-decoration:none;color:var(--ink-2);background:none;border:0;padding:0;cursor:pointer}
.tabs{max-width:1240px;margin:0 auto;padding:0 1.25rem;display:flex;gap:1.4rem;overflow-x:auto}
.tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:.45rem 0;font-family:var(--font-mono);font-size:.78rem;color:var(--ink-3);cursor:pointer;white-space:nowrap}
.tabs button[aria-selected="true"]{color:var(--ink);border-bottom-color:var(--accent)}
main{max-width:1240px;margin:0 auto;padding:1.2rem 1.25rem 3rem}
.panel h2{font-size:1.6rem;margin:.4rem 0 .4rem}
.lede{color:var(--ink-2);max-width:86ch;margin:.2rem 0 .8rem}
p{margin:.45rem 0;color:var(--ink-2);max-width:86ch}
.muted{color:var(--ink-3)}.mono{font-family:var(--font-mono);font-size:.78rem}
.note{border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);padding:.5rem 0;margin:.8rem 0;color:var(--ink-2);max-width:none;font-size:.9rem}
/* live */
.liverow{display:flex;flex-wrap:wrap;gap:.6rem 1rem;align-items:center;margin:.6rem 0}
.btn{border:1px solid var(--rule-strong);background:var(--paper);padding:.25rem .8rem;cursor:pointer;font-family:var(--font-mono);font-size:.78rem}
.btn.primary{border-color:var(--accent);color:var(--accent)}
.btn:hover{background:var(--accent-wash)}
select,input[type=number]{border:1px solid var(--rule-strong);background:var(--paper);padding:.12rem .3rem;font-family:var(--font-mono);font-size:.78rem}
.status{font-family:var(--font-mono);font-size:.78rem;color:var(--ink-3)}
.quick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem 1.6rem;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);padding:.6rem 0;margin:.4rem 0 .8rem}
@media (max-width:900px){.quick{grid-template-columns:1fr}}
.quick fieldset{border:0;margin:0;padding:0;min-width:0}
.quick legend{font-family:var(--font-mono);font-size:.78rem;color:var(--ink-3);padding:0;margin-bottom:.2rem}
.ctlrow{display:flex;align-items:center;gap:.5rem;font-size:.9rem;color:var(--ink-2);margin:.18rem 0;flex-wrap:wrap}
.ctlrow label{display:flex;align-items:center;gap:.4rem}
.ctlrow input[type=range]{width:min(170px,40vw)}
.ctlrow output{font-family:var(--font-mono);font-size:.78rem;min-width:5.5em;color:var(--ink)}
.chk{display:flex;align-items:center;gap:.35rem}
.ptag{display:inline-block;font-family:var(--font-mono);font-size:.78rem;color:#fff;padding:0 .3rem;font-weight:700}
.pc1{background:var(--c1)}.pc2{background:var(--c2)}.pc3{background:var(--c3)}.pc4{background:var(--c4)}.pc5{background:var(--c5)}.pc6{background:var(--c6)}
.schem{margin:.4rem 0 .6rem}.schem-wrap{position:relative}
.schem img{width:100%;height:auto;display:block;background:#fff}
:root[data-theme="dark"] .schem img{filter:invert(1) hue-rotate(180deg)}
.schem figcaption{font-size:.9rem;color:var(--ink-3);margin-top:.3rem}
.probe{position:absolute;transform:translate(-50%,-50%);width:22px;height:22px;border-radius:50%;border:2px solid var(--ink-3);background:var(--paper);color:var(--ink-3);font-family:var(--font-mono);font-size:.78rem;line-height:16px;padding:0;cursor:pointer}
.probe.on{color:#fff;border-color:transparent}
.probe:hover{transform:translate(-50%,-50%) scale(1.15)}
.figs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.2rem 1rem;margin:.6rem 0;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);padding:.5rem 0}
@media (max-width:900px){.figs{grid-template-columns:repeat(2,minmax(0,1fr))}}
.figs div{min-width:0}.figs dt{font-family:var(--font-mono);font-size:.78rem;color:var(--ink-3)}.figs dd{margin:0;font-size:1.2rem;font-weight:700;font-variant-numeric:tabular-nums}
.figs dd.bad{color:var(--annot)}.figs dd.ok{color:var(--good)}
.figs small{display:block;font-size:.78rem;color:var(--ink-3);font-weight:400}
canvas{width:100%;display:block;background:var(--paper)}
canvas.scope{height:520px;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}
canvas.ch{height:300px}canvas.ch.tall{height:360px}canvas.ch.short{height:240px}
.cap{font-size:.9rem;color:var(--ink-3)}
.chips{display:flex;flex-wrap:wrap;gap:.3rem .5rem;margin:.3rem 0}
.chip{font-family:var(--font-mono);font-size:.78rem;border:1px solid var(--rule-strong);background:var(--paper);padding:.05rem .45rem;cursor:pointer;color:var(--ink-3)}
.chip.on{color:var(--ink);border-color:var(--ink-2)}
.chip i{display:inline-block;width:.6em;height:.6em;margin-right:.3em}
/* proposals */
.subnav{display:flex;flex-wrap:wrap;gap:.5rem 1rem;margin:.4rem 0 .8rem}
.subnav a{text-decoration:none;font-size:.9rem;color:var(--ink-2)}
.prop{border-top:1px solid var(--rule-strong);padding:1rem 0 1.4rem}
.prop>header{display:flex;align-items:baseline;gap:.6rem;flex-wrap:wrap}
.prop h3{font-size:1.2rem}.diff{font-family:var(--font-mono);font-size:.78rem;color:var(--ink-3)}
.claim{font-size:1rem;color:var(--ink);max-width:none;margin:.4rem 0 .6rem}
.cols3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.4rem;margin:.4rem 0 .8rem}
@media (max-width:900px){.cols3{grid-template-columns:1fr;gap:.4rem}}
.cols3 h4{font-family:var(--font-mono);font-size:.78rem;color:var(--ink-3);font-weight:400;margin-bottom:.1rem}
.cols3 p{margin:.1rem 0;font-size:.9rem}
.grid2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.4rem}
@media (max-width:900px){.grid2{grid-template-columns:1fr}}
table{border-collapse:collapse;width:100%;font-size:.9rem;margin:.3rem 0}
td,th{border-bottom:1px solid var(--rule);padding:.3rem .45rem;text-align:left;vertical-align:top}
th{color:var(--ink-3);font-weight:400}td.num{font-family:var(--font-mono);font-size:.78rem}
.bar{display:grid;grid-template-columns:120px 1fr 48px;gap:.5rem;align-items:center;font-size:.9rem;margin:.25rem 0}
.bar i{display:block;height:12px}.bar b{font-weight:400;color:var(--ink-3);font-family:var(--font-mono);font-size:.78rem}
.result{font-family:var(--font-mono);font-size:.78rem;color:var(--ink);background:var(--accent-wash);padding:.4rem .6rem;margin:.4rem 0}
.about h3{font-size:1.2rem;margin:1.2rem 0 .3rem}.about ol,.about ul{color:var(--ink-2);max-width:86ch;padding-left:1.2rem}.about li{margin:.2rem 0}
.eq{font-style:italic;margin:.4rem 0 .4rem 1.2rem;color:var(--ink)}
footer{max-width:1240px;margin:0 auto;padding:1rem 1.25rem 2rem;color:var(--ink-3);font-size:.9rem;border-top:1px solid var(--rule)}
@media (max-width:640px){.hbar .sub{display:none}.hbar{padding:.6rem 1rem}main{padding:1rem 1rem 2rem}.bar{grid-template-columns:84px 1fr 40px}table{display:block;overflow-x:auto}canvas.scope{height:600px}.hlinks .opt{display:none}}

/* additions for the BioZ and DSM-CIM labs */
.sysfig{margin:.4rem 0 .6rem;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);padding:.5rem 0}
.sysfig svg{width:100%;height:auto;display:block}
.sysfig text{font-family:var(--font-serif);fill:var(--ink)}
.sysfig .blk rect{fill:var(--paper);stroke:var(--ink-2);stroke-width:1.1}
.sysfig .blk.prop rect{stroke:var(--accent);stroke-width:1.8;fill:var(--accent-wash)}
.sysfig .blk.click{cursor:pointer}.sysfig .blk.click:hover rect{stroke:var(--accent)}
.sysfig .wire{stroke:var(--ink-2);stroke-width:1.1;fill:none}
.sysfig .sub{fill:var(--ink-3);font-size:11px;font-family:var(--font-mono)}
.sysfig .tagt{fill:#fff;font-family:var(--font-mono);font-size:10px;font-weight:700}
.sysfig .blk rect.tagb,.sysfig rect.tagb{fill:var(--accent);stroke:none}
.seg{display:inline-flex;border:1px solid var(--rule-strong)}
.seg button{border:0;background:var(--paper);padding:.18rem .6rem;font-family:var(--font-mono);font-size:.76rem;cursor:pointer;color:var(--ink-3)}
.seg button+button{border-left:1px solid var(--rule-strong)}
.seg button[aria-pressed="true"]{color:var(--ink);background:var(--accent-wash);box-shadow:inset 0 -2px 0 var(--accent)}
.verdict{font-family:var(--font-mono);font-size:.74rem;font-weight:700}
.v-win{color:var(--good)}.v-part{color:#b86200}.v-no{color:var(--annot)}
:root[data-theme="dark"] .v-part{color:#ffb357}
.cmp{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.2rem 1.4rem}
@media (max-width:900px){.cmp{grid-template-columns:1fr}}
canvas.raster{height:220px}
.legendrow{display:flex;flex-wrap:wrap;gap:.3rem 1rem;font-size:.84rem;color:var(--ink-2)}
.legendrow i{display:inline-block;width:14px;height:3px;vertical-align:middle;margin-right:.35rem}
.ctlrow label{max-width:100%;flex-wrap:wrap;min-width:0}.ctlrow select{max-width:100%;min-width:0}
/* circuit schematics (schem.js), same style as the HBC transceiver lab */
.schhead{font-family:var(--font-mono);font-size:.78rem;color:var(--ink-3);margin:.9rem 0 .2rem;letter-spacing:.02em}
.diagram{width:100%;overflow-x:auto;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);padding:.5rem 0}
.diagram svg{display:block}
.schem{display:block;width:100%;min-width:880px;height:auto}
.diagram-tools{display:flex;justify-content:space-between;align-items:center;gap:.75rem;margin:.1rem 0 .3rem;min-height:2rem}
.diag-cap{font-size:.92rem;color:var(--ink-3);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.iconbtn{display:inline-flex;align-items:center;gap:.35rem;border:1px solid var(--rule-strong);background:var(--paper);padding:.3rem .6rem;cursor:pointer;font-family:var(--font-mono);font-size:.78rem;color:var(--ink-2);flex:0 0 auto}
.iconbtn:hover{border-color:var(--accent);color:var(--accent)}
.iconbtn svg{width:15px;height:15px}
dialog.schem-full{width:100vw;height:100vh;max-width:none;max-height:none;margin:0;padding:1rem 1.5rem;border:0;background:var(--paper);color:var(--ink)}
dialog.schem-full::backdrop{background:var(--paper)}
dialog.schem-full .dhead{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;margin-bottom:.5rem;font-family:var(--font-mono);font-size:.85rem}
dialog.schem-full .dbody{height:calc(100vh - 5rem);display:flex;align-items:center;justify-content:center;overflow:auto}
dialog.schem-full .dbody svg{width:100%;height:100%;min-width:0}
.schem .w{stroke:var(--ink-2);stroke-width:1.2;fill:none;stroke-linejoin:round;stroke-linecap:round}
.schem .w.thin{stroke-width:.9}
.schem .w.plate{stroke:var(--ink);stroke-width:2;stroke-linecap:butt}
.schem .w.ctl{stroke-dasharray:5 4;stroke:var(--ink-3)}
.schem .w.ret{stroke-dasharray:2 3;stroke:var(--ink-3)}
.schem .sym{fill:var(--paper);stroke:var(--ink);stroke-width:1.2}
.schem .sym.ghost{stroke:var(--ink-3);stroke-width:.9}
.schem .ah{fill:var(--ink-2);stroke:none}
.schem .jn{fill:var(--ink)}
.schem .frame{fill:none;stroke:var(--rule-strong);stroke-width:1;stroke-dasharray:7 5}
.schem .frame.fw{stroke-dasharray:2 3}
.schem text{fill:var(--ink)}
.schem .lab{font-family:var(--font-serif);font-size:13.5px}
.schem .val{font-family:var(--font-serif);font-size:11px;fill:var(--ink-2)}
.schem .pm{font-family:var(--font-serif);font-size:10px;fill:var(--ink-2)}
.schem .sig{font-family:var(--font-serif);font-style:italic;font-size:13px;fill:var(--ink)}
.schem .subs{font-size:9px}
.schem .flab{font-family:var(--font-mono);font-size:.72rem;fill:var(--ink-3)}
.schem .hit{fill:transparent;stroke:none}
.schem .blk{outline:none}
.schem .blk:hover .hit,.schem .blk:focus-visible .hit{fill:var(--accent-wash)}
.schem .blk.click{cursor:pointer}
.schem .occl{fill:var(--paper);stroke:none}
.schem .new .w,.schem .new .w.plate,.schem .new .w.thin,.schem .new .w.ctl{stroke:var(--accent)}
.schem .new .sym{stroke:var(--accent)}
.schem .new .ah,.schem .new .jn{fill:var(--accent)}
.schem .new text{fill:var(--accent)}
.schem .ptag rect{fill:var(--paper);stroke:var(--accent);stroke-width:1}
.schem .ptag text{font-family:var(--font-mono);font-size:9px;fill:var(--accent)}
.schem .inset{cursor:default}
.schem .inset .lead{stroke:var(--ink-3);stroke-width:.8}
.schem .inset .tick{fill:var(--ink)}
.schem .inset .ifr{fill:var(--paper);stroke:var(--rule-strong);stroke-width:1}
.schem .inset .iband{fill:var(--accent-wash);stroke:none}
.schem .inset .ref{fill:none;stroke:var(--annot);stroke-width:.9;stroke-dasharray:3 2}
.schem .inset .wave{fill:none;stroke:var(--s1);stroke-width:1.4;stroke-linejoin:round}
.schem .inset .wave2{fill:none;stroke:var(--s3);stroke-width:1.4;stroke-linejoin:round}
.schem .inset .wave3{fill:none;stroke:var(--ink-2);stroke-width:1.1;stroke-linejoin:round}
.schem .inset .wave4{fill:none;stroke:var(--s4);stroke-width:1.4;stroke-linejoin:round}
.schem .inset rect.ibar.wave{fill:var(--s1);stroke:none}
.schem .inset rect.ibar.wave2{fill:var(--s3);stroke:none}
.schem .inset rect.ibar.wave4{fill:var(--s4);stroke:none}
.schem .inset .inet{font-family:var(--font-serif);font-style:italic;font-size:11px;fill:var(--ink)}
.schem .inset .ival{font-family:var(--font-mono);font-size:.62rem;fill:var(--ink-2)}
.schem .inset .inote{font-family:var(--font-mono);font-size:.62rem;fill:var(--ink-2)}
.schem .frame.fw.solid{fill:var(--paper)}
/* overview (landing) tab */
.panel h2.big{font-size:2rem;line-height:1.2;max-width:44ch;margin:.3rem 0 .5rem}
.kicker{font-family:var(--font-mono);font-size:.78rem;color:var(--ink-3);margin:.4rem 0 0;max-width:none}
h3.sec{font-size:1.2rem;margin:1.3rem 0 .4rem}
.links{display:flex;flex-wrap:wrap;gap:.6rem;margin:.8rem 0;max-width:none}.links a.btn{text-decoration:none;color:var(--ink);display:inline-flex;align-items:center}.links a.btn.primary{color:var(--accent)}
.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.2rem}
@media (max-width:900px){.grid3{grid-template-columns:1fr}}
.tscroll{overflow-x:auto;margin:.2rem 0}
.propose{border-left:3px solid var(--accent);background:var(--accent-wash);padding:.6rem .9rem;margin:.6rem 0 .4rem;max-width:none}
.propose p{margin:.25rem 0;color:var(--ink);max-width:none}
.propose ol{margin:.3rem 0 .2rem;padding-left:1.3rem;color:var(--ink)}.propose li{margin:.2rem 0}
table.ovt{font-size:.88rem;min-width:720px}
table.ovt thead th{color:var(--ink);font-weight:700;border-bottom:1px solid var(--rule-strong);vertical-align:bottom;line-height:1.3;text-align:left}
table.ovt td.pcol,table.ovt th.pcol{background:var(--accent-wash)}table.ovt td.pcol{color:var(--good);font-weight:700}
table.ovt td.by{font-family:var(--font-mono);font-size:.78rem;color:var(--ink-3);white-space:nowrap}
table.ovt td.meas{color:var(--ink-2)}
@media (max-width:640px){.panel h2.big{font-size:1.5rem}}
@media (max-width:420px){.hlinks{gap:.55rem}.hlinks a,.hlinks button{font-size:.7rem}}
/* ---- spa_afe-style overview, proposals and waveform viewer ---- */
:root{--c1:#b87800;--c2:#0072b2;--c4:#00845f;--c5:#b2457f;--c6:#7a4fa8;--c7:#7d6a00;--c3:#5b6676}
:root[data-theme="dark"]{--c1:#e0a339;--c2:#4fa3e0;--c4:#3fc49b;--c5:#e08bbd;--c6:#b591e0;--c7:#c9b23a;--c3:#95a1b3}
.pc1{background:var(--c1)}.pc2{background:var(--c2)}.pc3{background:var(--c3)}.pc4{background:var(--c4)}.pc5{background:var(--c5)}.pc6{background:var(--c6)}.pc7{background:var(--c7)}.pc8,.pc9{background:var(--ink-3)}
a .ptag{text-decoration:none}
table.cmp{display:table;font-size:.88rem;min-width:860px}
table.cmp thead th{color:var(--ink);font-weight:700;border-bottom:1px solid var(--rule-strong);vertical-align:bottom;line-height:1.3;text-align:left}
table.cmp thead th small{display:block;font-weight:400;color:var(--ink-3);font-size:.78rem}
table.cmp tr.grp th{font-family:var(--font-mono);font-size:.78rem;color:var(--ink-3);font-weight:400;padding-top:.75rem;text-align:left}
table.cmp td.pcol,table.cmp th.pcol{background:var(--accent-wash)}table.cmp td.pcol{color:var(--ink)}
table.cmp td.chg{color:var(--good);font-weight:700}table.cmp tr.cost td.chg{color:var(--annot);font-weight:400}
table.cmp td.meas{color:var(--ink-3)}table.cmp td:first-child{color:var(--ink)}table.cmp td:last-child{white-space:nowrap}
.props td:first-child{white-space:nowrap}.props td{font-size:.9rem}.props td.num{font-family:var(--font-mono);font-size:.78rem;white-space:nowrap}
.schem{margin:.4rem 0 .6rem}.schem-wrap{position:relative}.schem img{width:100%;height:auto;display:block;background:#fff}
.schem figcaption{font-size:.9rem;color:var(--ink-3);margin-top:.3rem}.schem.small{max-width:980px}
.probe{position:absolute;transform:translate(-50%,-50%);width:20px;height:20px;border-radius:50%;background:var(--ink-2);color:#fff;font-family:var(--font-mono);font-size:.72rem;line-height:20px;text-align:center;display:block}
:root[data-theme="dark"] .probe{background:#e6e9ee;color:#000}
.subnav{display:flex;flex-wrap:wrap;gap:.5rem 1rem;margin:.8rem 0 .8rem}
.subnav a{text-decoration:none;font-size:.9rem;color:var(--ink-2)}
.prop{border-top:1px solid var(--rule-strong);padding:1rem 0 1.4rem}
.prop>header{display:flex;align-items:baseline;gap:.6rem;flex-wrap:wrap}
.prop h3{font-size:1.2rem;margin:0}.diff{font-family:var(--font-mono);font-size:.78rem;color:var(--ink-3)}
.claim{font-size:1rem;color:var(--ink);max-width:none;margin:.4rem 0 .6rem}
.cols3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.4rem;margin:.4rem 0 .8rem}
@media (max-width:900px){.cols3{grid-template-columns:1fr;gap:.4rem}}
.cols3 h4{font-family:var(--font-mono);font-size:.78rem;color:var(--ink-3);font-weight:400;margin:0 0 .1rem}
.cols3 p{margin:.1rem 0;font-size:.9rem}
.wv{display:grid;grid-template-columns:250px minmax(0,1fr);gap:1rem;margin:.6rem 0}
@media (max-width:900px){.wv{grid-template-columns:minmax(0,1fr)}.wv-tests{flex-direction:row;overflow-x:auto}.wv-tests button{min-width:210px}}
.wv-tests{display:flex;flex-direction:column;gap:.35rem}
.wv-tests button{text-align:left;border:1px solid var(--rule-strong);background:var(--paper);padding:.45rem .6rem;cursor:pointer;font-family:var(--font-serif);color:var(--ink-2);line-height:1.3}
.wv-tests button b{display:block;color:var(--ink);font-size:.95rem}.wv-tests button span{font-size:.82rem;color:var(--ink-3)}
.wv-tests button[aria-selected="true"]{border-color:var(--accent);background:var(--accent-wash)}
.wv-main{min-width:0}
.wv-look{border-left:3px solid var(--accent);background:var(--accent-wash);padding:.45rem .7rem;color:var(--ink);font-size:.95rem;margin-bottom:.5rem;max-width:none}
.wv-bar{display:flex;flex-wrap:wrap;gap:.4rem .5rem;align-items:center;margin:.3rem 0}
.wv-sep{width:1px;height:1.2rem;background:var(--rule-strong);margin:0 .3rem}
.wv-m[aria-pressed="true"]#wvMA{background:#ffd400;color:#000;border-color:#ffd400}.wv-m[aria-pressed="true"]#wvMB{background:#00d8ff;color:#000;border-color:#00d8ff}
canvas.wv-canvas{display:block;width:100%;height:500px;background:#16191d;touch-action:pan-y;cursor:crosshair;outline-offset:2px}
.wv-cursor{font-size:.78rem;color:var(--ink-3);padding:.2rem 0;min-height:1.4em}
table.wv-table{font-size:.85rem;min-width:760px}table.wv-table td{font-family:var(--font-mono);font-size:.78rem;white-space:nowrap}
table.wv-table td.nm{font-family:var(--font-serif);font-size:.88rem;white-space:normal}table.wv-table i{display:inline-block;width:.9em;height:3px;vertical-align:middle;margin-right:.4em}
table.wv-table tr.st th{font-family:var(--font-mono);font-size:.78rem;color:var(--ink-3);padding-top:.5rem;text-align:left}
table.wv-table th.ma{color:#9a7b00}table.wv-table th.mb{color:#007c94}
:root[data-theme="dark"] table.wv-table th.ma{color:#ffd400}:root[data-theme="dark"] table.wv-table th.mb{color:#00d8ff}
.wv-custom{border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);padding:.4rem 0;margin:.8rem 0}
.wv-custom summary{cursor:pointer;font-family:var(--font-mono);font-size:.78rem;color:var(--accent)}
/* route A tags and the route A schematic (PNG, white background) */
:root{--cA:#1f5f8b;--cB:#8a4b2f}
:root[data-theme="dark"]{--cA:#6fb6e8;--cB:#d99a7a}
.pcA{background:var(--cA)}.pcB{background:var(--cB)}
:root[data-theme="dark"] .pcA,:root[data-theme="dark"] .pcB{color:#111}
.figA img{max-width:760px;margin:0 auto}
/* figure.schem is an image figure, not the SVG diagram the old .schem rule sizes: scroll it on phones */
figure.schem{min-width:0;max-width:100%;overflow-x:auto}
@media (max-width:700px){figure.schem .schem-wrap,figure.schem>img{min-width:640px}figure.schem figcaption{position:sticky;left:0;max-width:calc(100vw - 32px)}}
