/* UQ Lenses layout. Colours come only from tokens.css. */
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.55}
a{color:var(--link)}
:focus-visible{outline:2px solid var(--navy);outline-offset:2px}
.mono{font-family:var(--mono)}
.wrap{max-width:1120px;margin:0 auto;
  padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.skip{position:absolute;left:-9999px;top:8px;z-index:20;background:var(--bg);color:var(--ink);padding:6px 10px;border:1px solid var(--panelframe);border-radius:6px}
.skip:focus{left:16px}

/* ---------- hero ---------- */
.hero{padding:56px 0 28px}
.eyebrow{font-family:var(--mono);font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:0}
.hero h1{font-size:clamp(40px,7vw,64px);line-height:1.02;font-weight:600;letter-spacing:-.02em;margin:10px 0 4px}
.hero .sub{font-size:clamp(20px,3vw,28px);line-height:1.2;font-weight:500;margin:0;color:var(--ink)}
.lensrule{height:3px;border-radius:2px;background:var(--lens-gradient);margin:22px 0 22px;max-width:520px}
.paper-title{font-size:17px;font-weight:500;margin:0 0 10px;max-width:46em;text-wrap:balance}
.authors{margin:0;font-size:15px}
.authors sup,.affils sup{font-size:.7em;color:var(--muted)}
.affils{margin:4px 0 0;font-size:13.5px;color:var(--muted)}
.affils span{white-space:nowrap;margin-right:14px}
.buttons{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.btn{display:inline-flex;align-items:center;gap:6px;font-family:var(--mono);font-size:13px;font-weight:500;
  color:var(--ink);background:var(--bg);border:1px solid var(--panelframe);border-radius:8px;padding:7px 14px;text-decoration:none;cursor:pointer}
.btn:hover{background:var(--panel)}

/* ---------- sticky tab bar ---------- */
.tabbar{position:sticky;top:0;z-index:10;background:var(--bg);border-bottom:1px solid var(--line)}
.tabbar .wrap{display:flex;align-items:center;gap:12px}
.tablinks{display:flex;gap:2px;overflow-x:auto;scrollbar-width:none;flex:1 1 auto;min-width:0;margin:0;padding:0;list-style:none}
.tablinks::-webkit-scrollbar{display:none}
.tablinks li:first-child{margin-left:auto} /* right-align; auto margin collapses when the list overflows, so mobile scrolling still works */
.tablinks a{position:relative;display:block;flex:0 0 auto;padding:13px 12px 12px;font-size:14.5px;color:var(--muted);text-decoration:none;white-space:nowrap}
.tablinks a:hover{color:var(--ink)}
.tablinks a::after{content:"";position:absolute;left:10px;right:10px;bottom:-1px;height:3px;border-radius:2px;background:var(--lens-gradient);
  transform:scaleX(0);transition:transform .22s ease}
.tablinks a[aria-current="true"]{color:var(--ink);font-weight:600}
.tablinks a[aria-current="true"]::after{transform:scaleX(1)}
.tablinks a:focus-visible{outline-offset:-2px}

.seg{display:inline-flex;flex:0 0 auto;border:1px solid var(--line);border-radius:6px;overflow:hidden}
.seg button{font:inherit;font-family:var(--mono);font-size:12px;border:0;background:var(--bg);color:var(--muted);padding:4px 10px;cursor:pointer}
.seg button[aria-pressed="true"]{background:var(--slate);color:var(--bg)}
.seg button:focus-visible{outline-offset:-2px}

/* ---------- sections ---------- */
main section{padding:56px 0 8px;scroll-margin-top:56px}
main section + section{border-top:1px solid var(--line);margin-top:48px}
.sec-head{display:flex;align-items:baseline;gap:12px;margin-bottom:22px}
.sec-head .num{font-family:var(--mono);font-size:13px;color:var(--muted)}
.sec-head h2{font-size:clamp(26px,3.6vw,34px);line-height:1.15;font-weight:600;margin:0;letter-spacing:-.01em}
.stack{display:flex;flex-direction:column;gap:18px}
.row{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px}
.lede{max-width:46em;font-size:17px;line-height:1.65}
.lede p{margin:0 0 14px}
.lede p:last-child{margin-bottom:0}
.lede em.key{color:var(--ink);padding-bottom:2px;
  background:var(--lens-gradient) left bottom/100% 3px no-repeat;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.lede em.lens{color:var(--lc)}
.block-title{font-size:15px;font-weight:600;margin:0 0 10px}

/* placeholder: framed card with dashed inner well (panel style from the preview) */
.ph{border:1px solid var(--panelframe);border-radius:12px;padding:6px;background:var(--bg)}
.ph .in{border:1px dashed var(--panelframe);border-radius:8px;background:var(--panel);min-height:var(--h,96px);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:14px;text-align:center}
.ph .name{font-weight:600;font-size:14px}
.ph .src{font-family:var(--mono);font-size:12px;color:var(--muted)}
.ph.slot .in{min-height:56px;flex-direction:row;gap:10px;flex-wrap:wrap}
.ph[data-lens] .in{background:var(--lbg);border-color:var(--lc)}
.ph[data-lens]{border-color:var(--panelframe)}
[data-lens="str"]{--lc:var(--str);--lbg:var(--str-bg)}
[data-lens="rep"]{--lc:var(--rep);--lbg:var(--rep-bg)}
[data-lens="dis"]{--lc:var(--dis);--lbg:var(--dis-bg)}
[data-lens="sem"]{--lc:var(--sem);--lbg:var(--sem-bg)}
.code{font-family:var(--mono);font-size:11.5px;font-weight:500;letter-spacing:.04em;padding:1px 7px;border-radius:999px;
  border:1px solid var(--lc,var(--panelframe));color:var(--lc,var(--ink));background:var(--bg)}

/* ---------- local tab switchers ---------- */
.ltabs{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 4px;margin-bottom:12px;scrollbar-width:thin}
.ltab{flex:0 0 auto;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit;font-size:14px;
  padding:6px 12px;border-radius:8px;cursor:pointer}
.ltab:hover{background:var(--panel)}
.ltab[aria-selected="true"]{border-color:var(--ink);background:var(--panel);font-weight:500}
.ltab:focus-visible{outline-offset:2px}
[role="tabpanel"][hidden]{display:none}
[role="tabpanel"]:focus-visible{outline-offset:4px;border-radius:12px}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (max-width:420px){.grid2{gap:8px}}

/* ---------- overview: four lenses applied to queries (port of opening-preview.html) ---------- */
/* the approved preview colours correct/wrong tokens with the dis/sem inks; scoped here so demos keep teal/pink */
#opening-example{--right:var(--dis);--wrong:var(--sem)}
.ex .ltab{display:inline-flex;align-items:center;gap:8px}
.ex .ltab .dot{width:10px;height:10px;border-radius:50%;flex:0 0 auto}
.qline{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 14px;margin:6px 0 20px}
.qline .q{margin:0;font-size:17px;min-width:0;flex:0 1 auto}
.qline .q b{font-weight:600}
.qline .ref{font-style:italic;color:var(--muted)}
.chip.tgt{font-family:var(--mono);font-size:11.5px;font-weight:500;letter-spacing:.04em;padding:2px 8px;border-radius:999px;white-space:nowrap;color:var(--tc);background:var(--tb)}
.lensgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:36px 26px}
@media (max-width:1000px){.lensgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:36px 28px}}
@media (max-width:560px){.lensgrid{grid-template-columns:minmax(0,1fr);gap:32px}}
.lpanel{display:flex;flex-direction:column;gap:6px;min-width:0}
.lpanel h4{margin:0;font-size:17px;font-weight:600;line-height:1.2;color:var(--lc)}
.lpanel .ask{margin:0 0 10px;font-size:13px;color:var(--muted);font-style:italic}
.card{border:1px solid var(--panelframe);border-radius:12px;padding:6px;background:var(--bg);transition:box-shadow .25s ease,border-color .25s ease}
.card .in{border-radius:8px;background:var(--lbg);border:1px solid var(--panelframe);padding:8px;aspect-ratio:260/160;
  display:flex;align-items:center;justify-content:center;position:relative}
.card svg{width:100%;height:100%;overflow:visible}
.lpanel.suited .card{border-color:var(--lc);box-shadow:0 0 0 3px var(--lc)}
.lpanel.off .card .in{background:transparent;border:1px dashed var(--panelframe);color:var(--muted);font-family:var(--mono);font-size:12px}
.card .ctl{position:absolute;top:6px;right:6px}
.card .ctl.lbl{font-family:var(--mono);font-size:11px;color:var(--muted)}
.card .seg button{font-size:11.5px;padding:2px 9px}
#opening-example svg text{font-family:var(--mono);font-size:11px;fill:var(--muted)}
#opening-example svg .ink{fill:var(--ink)}
.take{margin:22px 0 0;font-size:13.5px;color:var(--muted)}
.ex-foot{margin:16px 0 0;font-size:12px;color:var(--muted);border-top:1px solid var(--line);padding-top:14px}
.ex-foot:empty{display:none}
.ex-status{margin:0;color:var(--muted);font-size:14px}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- references ---------- */
.refs{list-style:none;margin:0;padding:0;font-size:14.5px;display:flex;flex-direction:column;gap:10px}
.refs li{padding-left:1.4em;text-indent:-1.4em}
.refs li:target{background:var(--panel);border-radius:6px}
a.cite{color:var(--link);text-decoration-thickness:1px;text-underline-offset:2px}

/* ---------- cite ---------- */
.bib{position:relative;border:1px solid var(--panelframe);border-radius:12px;background:var(--panel);padding:16px 16px 16px}
.bib pre{margin:0;overflow-x:auto;font-family:var(--mono);font-size:13px;line-height:1.55;padding-right:4px}
.bib .btn{position:absolute;top:10px;right:10px}
.bib-status{font-family:var(--mono);font-size:12px;color:var(--muted);min-height:1.2em;margin:6px 0 0}
footer{margin-top:64px;border-top:1px solid var(--line);padding:22px 0 44px;font-size:13px;color:var(--muted)}
footer p{margin:0 0 4px}

@media (max-width:600px){
  .hero{padding-top:36px}
  main section{padding-top:40px}
  .bib{padding-top:52px}
  .bib pre{font-size:11.5px}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}
@media print{.tabbar{position:static}.btn,.seg{display:none}[role="tabpanel"][hidden]{display:block}}

/* ---------- lenses (port of lenses-section/site-data/lenses-preview.html) ---------- */
#lenses{--lz-text:782px} /* = Overview .lede: 46em at 17px */
#lenses .lz{display:flex;flex-direction:column;gap:56px}
#lenses.ready #lz-status{display:none}
#lenses .lz-lead{margin:0}
#lenses .lz-block{display:flex;flex-direction:column;gap:18px}
#lenses .lz-block .block-title{font-size:20px;line-height:1.25;margin:0;text-wrap:balance}
#lenses .lz-sub{margin:-10px 0 0;color:var(--muted);font-size:14px;max-width:var(--lz-text)}
#lenses .lz-minor{margin:8px 0 0;font-size:15px;font-weight:600}
#lenses mjx-container{color:inherit}
#lenses mjx-container[display="true"]{margin:0!important;text-align:left!important}
#lenses mjx-container .zhi{color:var(--reg)}
#lenses button:focus-visible{outline:2px solid var(--navy);outline-offset:2px}

/* takeaways: plain pull-quotes, no box */
#lenses .tk{margin:4px 0 0;max-width:var(--lz-text);display:flex;flex-direction:column;gap:4px}
#lenses .tk{gap:8px}
#lenses .tk .tt{font-family:var(--sans);font-size:15px;font-weight:600;line-height:1.3;color:var(--ink);width:fit-content;max-width:100%;padding-bottom:5px;
  background:var(--lens-gradient) left bottom/100% 3px no-repeat}
#lenses .tk p{margin:0;font-size:16.5px;line-height:1.55}

/* chips */
#lenses .chip{display:inline-flex;align-items:center;gap:5px;font-family:var(--mono);font-size:11.5px;font-weight:500;letter-spacing:.04em;padding:2px 8px;border-radius:999px;white-space:nowrap;line-height:1.5}
#lenses .chip.l{color:var(--c);background:var(--cbg);border:1px solid color-mix(in srgb,var(--c) 35%,transparent)}
#lenses .chip.n{color:var(--ink);background:var(--panel);border:1px solid var(--panelframe)}
#lenses .chip.t{color:var(--tt);background:var(--cbg)}
#lenses .chip small{font-family:var(--sans);font-size:11px;font-weight:400;letter-spacing:0;color:var(--muted)}

/* figure 3 + lens definitions + maps */
#lenses .lz-fig{margin:0 auto;padding:0;overflow-x:auto;max-width:820px;width:100%}
#lenses .lz-fig img{display:block;width:100%;height:auto;max-width:100%;filter:var(--fig-filter)}
@media (max-width:700px){#lenses .lz-fig img{width:680px;max-width:none}}
#lenses .lz-figcap{margin:-8px 0 0;text-align:center;font-size:12.5px;color:var(--muted)}
#lenses .lz-figcap .hint{display:none}
@media (max-width:700px){#lenses .lz-figcap .hint{display:inline}}
#lenses .lensdefs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
@media (max-width:1000px){#lenses .lensdefs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){#lenses .lensdefs{grid-template-columns:minmax(0,1fr)}}
#lenses .ldef{border:1.5px solid var(--c);background:var(--cbg);border-radius:10px;padding:10px 12px 12px;display:flex;flex-direction:column;gap:6px;min-width:0}
#lenses .ldef .lh{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
#lenses .ldef h5{margin:0;font-size:15px;font-weight:600;color:var(--c)}
#lenses .ldef .lcode{font-family:var(--mono);font-size:11.5px;font-weight:500;color:var(--c);letter-spacing:.04em}
#lenses .ldef .ob{font-size:14.5px;overflow-x:auto;overflow-y:hidden}
#lenses .ldef p{margin:0;font-size:13.5px;color:var(--muted)}
#lenses .maps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 22px}
@media (max-width:860px){#lenses .maps{grid-template-columns:minmax(0,1fr)}}
#lenses .map{display:flex;flex-direction:column;gap:5px;min-width:0;padding-top:8px;border-top:2px solid transparent;border-image:linear-gradient(90deg,var(--a),var(--b)) 1}
#lenses .map .mh{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#lenses .map .mh .g{font-size:15px}
#lenses .map .mh .ft{font-family:var(--mono);font-size:11.5px;color:var(--muted)}
#lenses .map p{margin:0;font-size:14px;color:var(--muted)}
#lenses .map p b{font-weight:500;color:var(--ink)}

/* axis cards + Z panel */
#lenses .axes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
@media (max-width:860px){#lenses .axes{grid-template-columns:minmax(0,1fr)}}
#lenses .axis{border:1px solid var(--panelframe);border-radius:12px;padding:14px 16px 16px;display:flex;flex-direction:column;gap:10px;min-width:0}
#lenses .axis h4{margin:0;font-size:16px;font-weight:600;line-height:1.25}
#lenses .axis p{margin:0;font-size:14px;color:var(--muted)}
#lenses .axis p b{font-weight:500;color:var(--ink)}
#lenses .vals{display:flex;flex-wrap:wrap;gap:6px}
#lenses .vals button.chip{cursor:pointer;font:inherit;font-family:var(--mono);font-size:11.5px;font-weight:500}
#lenses .vals button.chip:hover{border-color:var(--ink)}
#lenses .vals button.chip[aria-pressed="true"]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
#lenses .vals button.chip[aria-pressed="true"] small{color:var(--bg)}
#lenses .zdetail{border:1px solid var(--line);border-radius:10px;padding:12px 14px;display:flex;flex-direction:column;gap:6px}
#lenses .zdetail .base{font-size:14px;color:var(--muted)}
#lenses .zdetail .zeq{font-size:18px;overflow-x:auto;overflow-y:hidden;padding:2px 0}
#lenses .zdetail p,#lenses .detail p{margin:0;font-size:14px}
#lenses .zdetail .dx,#lenses .detail .dx{color:var(--muted)}
#lenses .zdetail .dx b,#lenses .detail .dx b{font-weight:500;color:var(--ink)}

/* pipeline: one segmented bar with chevron edges */
#lenses .lz-eq{overflow-x:auto;overflow-y:hidden;font-size:17px;padding:4px 0}
#lenses .pipe{display:flex;align-items:stretch}
#lenses .pbox{--ch:14px;flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;font:inherit;color:var(--ink);
  background:var(--panel);border:0;border-radius:0;margin-left:-7px;padding:10px calc(var(--ch) + 8px) 11px calc(var(--ch) + 12px);cursor:pointer;
  clip-path:polygon(0 0,calc(100% - var(--ch)) 0,100% 50%,calc(100% - var(--ch)) 100%,0 100%,var(--ch) 50%);transition:background-color .2s,color .2s}
#lenses .pbox:first-child{margin-left:0;padding-left:14px;clip-path:polygon(0 0,calc(100% - var(--ch)) 0,100% 50%,calc(100% - var(--ch)) 100%,0 100%);border-radius:10px 0 0 10px}
#lenses .pbox:last-child{padding-right:14px;clip-path:polygon(0 0,100% 0,100% 100%,0 100%,var(--ch) 50%);border-radius:0 10px 10px 0}
#lenses .pbox .sym{font-size:17px;white-space:nowrap;min-height:24px}
#lenses .pbox .role{font-size:12.5px;color:var(--muted);line-height:1.3}
#lenses .pbox.obs,#lenses .pbox.out{background:color-mix(in srgb,var(--panel) 55%,var(--panelframe))}
#lenses .pbox:hover{background:var(--line)}
#lenses .pbox:focus-visible{outline:none;text-decoration:underline}
#lenses .pbox[aria-pressed="true"]{background:var(--ink);color:var(--bg)}
#lenses .pbox[aria-pressed="true"] .role{color:var(--bg);opacity:.8}
#lenses .detail{border:1px solid var(--line);border-radius:10px;padding:12px 14px;display:grid;grid-template-columns:minmax(0,1fr);gap:4px;min-height:96px}
#lenses .detail .dh{font-size:15px;font-weight:500}
#lenses .detail .dh span{font-weight:400;color:var(--muted);font-size:13px;margin-left:8px}
#lenses .lz-defaults{margin:0;font-size:14px;color:var(--muted);max-width:var(--lz-text)}
@media (max-width:860px){
  #lenses .pipe{flex-direction:column}
  #lenses .pbox{--ch:12px;flex:0 0 auto;flex-direction:row;flex-wrap:wrap;align-items:center;gap:4px 10px;margin:-8px 0 0;padding:calc(var(--ch) + 8px) 14px calc(var(--ch) + 6px);
    clip-path:polygon(0 0,50% var(--ch),100% 0,100% calc(100% - var(--ch)),50% 100%,0 calc(100% - var(--ch)))}
  #lenses .pbox:first-child{margin-top:0;padding:10px 14px calc(var(--ch) + 6px);border-radius:10px 10px 0 0;clip-path:polygon(0 0,100% 0,100% calc(100% - var(--ch)),50% 100%,0 calc(100% - var(--ch)))}
  #lenses .pbox:last-child{padding:calc(var(--ch) + 8px) 14px 10px;border-radius:0 0 10px 10px;clip-path:polygon(0 0,50% var(--ch),100% 0,100% 100%,0 100%)}
}

/* rule, glosses, tie-back */
#lenses .rule{margin:0;font-size:16.5px;line-height:1.55;font-weight:600;color:var(--rule-ink)}
#lenses .rule em{font-style:italic}
#lenses .gloss{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px 18px;margin:0;max-width:var(--lz-text)}
#lenses .gloss dt{font-family:var(--mono);font-size:14px;font-weight:500;padding-top:4px;text-transform:uppercase;letter-spacing:.05em}
#lenses .gloss dd{margin:0;font-size:16.5px;line-height:1.55;color:var(--ink)}
@media (max-width:560px){#lenses .gloss{grid-template-columns:minmax(0,1fr);gap:2px}#lenses .gloss dd{margin-bottom:8px}}
#lenses .lz-minor span{font-weight:400;color:var(--muted);font-size:13.5px}
#lenses .tierows{display:grid;grid-template-columns:max-content max-content minmax(0,1fr);border-top:1px solid var(--line);margin-top:8px}
#lenses .trow{display:contents}
#lenses .trow > *{padding:10px 14px 10px 0;border-bottom:1px solid var(--line);display:flex;align-items:center;min-width:0}
#lenses .trow a.tab{font-weight:500;text-decoration:none;gap:6px;color:var(--ink)}
#lenses .trow a.tab:hover{text-decoration:underline}
#lenses .trow a.tab::after{content:"↗";font-size:12px;color:var(--muted)}
#lenses .trow .why{font-size:13.5px;color:var(--muted)}
#lenses .mini{display:inline-flex;gap:4px;align-items:center}
#lenses .mini span{font-family:var(--mono);font-size:10.5px;font-weight:500;padding:1px 5px;border-radius:5px;color:var(--faint);border:1px dashed var(--panelframe)}
#lenses .mini span.on{color:var(--c);background:var(--cbg);border:1.5px solid var(--c);box-shadow:0 0 0 2px var(--cbg),0 0 0 3.5px var(--c)}
@media (max-width:700px){
  #lenses .tierows{grid-template-columns:minmax(0,1fr)}
  #lenses .trow{display:grid;grid-template-columns:auto 1fr;gap:6px 10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
  #lenses .trow > *{padding:0;border:0}
  #lenses .trow .why{grid-column:1/-1}
  #lenses .trow .mini{justify-self:end}
}
#lenses .lz-teaser{margin:0;font-size:14px;color:var(--muted)}
#lenses .lz-teaser a{color:var(--ink);font-weight:500;text-underline-offset:3px}

/* ---------- left contents navigator (≥ 1280 px, replaces the top tab bar) ---------- */
/* The page shifts right by --toc-w so hero, sections and footer stay aligned with each other. */
.toc{display:none}
[data-toc]{scroll-margin-top:64px}
@media (min-width:1280px){
  :root{--toc-w:216px}
  .tabbar{display:none}
  main section,[data-toc]{scroll-margin-top:24px}
  .wrap{max-width:calc(1120px + var(--toc-w));padding-left:calc(var(--toc-w) + max(16px,env(safe-area-inset-left,0px)))}
  .toc{display:flex;flex-direction:column;gap:14px;position:fixed;z-index:5;top:40px;width:184px;max-height:calc(100vh - 64px);overflow-y:auto;
    left:max(16px,calc((100vw - 1120px - var(--toc-w)) / 2 + 16px));font-size:14px;line-height:1.35;scrollbar-width:thin}
  .toc-head{font-family:var(--mono);font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:0}
  .toc ol{list-style:none;margin:0;padding:0}
  /* the rail is the lens colour band (inner → outer, top → bottom) */
  #toc-list > ol{position:relative;padding-left:3px;background:linear-gradient(180deg,var(--str),var(--rep),var(--dis),var(--sem)) left top/3px 100% no-repeat}
  .toc a{position:relative;display:block;padding:5px 10px;color:var(--muted);text-decoration:none}
  .toc a:hover{color:var(--ink)}
  .toc li ol a{padding:4px 10px 4px 22px;font-size:13px}
  /* "you are here": ink text plus an ink marker over the band */
  .toc a[aria-current]{color:var(--ink)}
  .toc a[aria-current="true"]{font-weight:600}
  .toc a[aria-current]::before{content:"";position:absolute;left:-3px;top:4px;bottom:4px;width:3px;border-radius:2px;background:var(--ink)}
  .toc li:not(.open) > ol{display:none}
  .toc a:focus-visible{outline-offset:-2px}
  .toc .toc-theme{align-self:flex-start}
}
@media print{.toc{display:none!important}}

/* ---------- survey (port of survey-section/site-data/survey-preview.html) ---------- */
#survey{--sv-text:782px}
#survey .sv{display:flex;flex-direction:column;gap:48px}
#survey.ready #sv-status-load{display:none}
#survey .sv-lede{margin:0}
#survey .sv-block{display:flex;flex-direction:column;gap:14px;min-width:0}
#survey .sv-block .block-title{font-size:20px;line-height:1.25;margin:0}
#survey .sv-sub{margin:-6px 0 4px;color:var(--muted);font-size:14px;max-width:var(--sv-text)}
#survey .sv-minor{margin:0;font-size:15px;font-weight:600}
#survey mjx-container{color:inherit}
#survey button:focus-visible,#survey a:focus-visible,#survey summary:focus-visible,#survey input:focus-visible{outline:2px solid var(--navy);outline-offset:2px}
#survey .code[data-lens]{--lc:var(--c)}
#survey [data-lens="str"]{--c:var(--str);--cb:var(--str-bg)}
#survey [data-lens="rep"]{--c:var(--rep);--cb:var(--rep-bg)}
#survey [data-lens="dis"]{--c:var(--dis);--cb:var(--dis-bg)}
#survey [data-lens="sem"]{--c:var(--sem);--cb:var(--sem-bg)}
#survey .ltabs{margin-bottom:2px}

/* map (left, compact) + takeaways (right) */
#survey .sv-top{display:grid;grid-template-columns:minmax(0,1fr);gap:32px}
@media (min-width:1000px){#survey .sv-top{grid-template-columns:minmax(0,440px) minmax(0,1fr);gap:24px 44px;align-items:start}}

/* coverage map: a real table; scrolls sideways inside its frame, never the page */
#survey .cov-frame{border:1px solid var(--panelframe);border-radius:10px;padding:4px;overflow-x:auto;background:var(--bg)}
#survey table.cov{border-collapse:separate;border-spacing:4px;width:100%;table-layout:fixed}
#survey .cov th{font-weight:500;text-align:center;vertical-align:bottom;padding:2px 1px 2px}
#survey .cov thead th{font-size:14px}
#survey .cov .cov-corner{width:46px}
#survey .cov .cov-sym{display:block;line-height:1.25;min-height:20px}
#survey .cov .cov-sym .mono{font-size:11.5px;font-weight:500;letter-spacing:.04em}
#survey .cov .cov-short{display:block;font-size:10px;color:var(--muted);font-weight:400;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#survey .cov .cov-tot{width:40px;text-align:left}
#survey .cov .cov-tot .cov-sym{font-size:10.5px;font-weight:500;color:var(--muted);padding-top:3px}
#survey .cov tbody th{text-align:left;vertical-align:middle}
#survey .cov tbody th .code{font-size:10.5px;padding:0 6px}
#survey .cov td{padding:0}
#survey .cv{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:4px;width:100%;height:42px;font:inherit;font-family:var(--mono);font-size:13px;font-weight:500;color:var(--ink);cursor:pointer;padding:0;
  border:1px solid var(--line);border-radius:6px;background:var(--bg);transition:box-shadow .15s ease;padding:7px 5px 5px}
#survey .cv:hover{box-shadow:inset 0 0 0 1.5px var(--c)}
#survey .cv-n{font-size:10.5px;line-height:1;color:color-mix(in srgb,var(--ink) 65%,transparent);font-weight:400;align-self:flex-start}
#survey .cv .bar{display:flex;align-items:center;gap:3px;width:100%;height:12px}
#survey .cv:not(.gap):not(.tot) > .cv-n{display:none}
#survey .cv .bn{font-size:10.5px;line-height:1;color:var(--muted);font-weight:400}
#survey .cv .bi{display:flex;gap:1px;height:100%;flex:0 0 auto;border-radius:2px;overflow:hidden}
#survey .sg{flex:1 1 0;min-width:2px;height:100%}
/* solid fills; native = the row's own lens colour, surrogate = the lens it stands in for */
#survey .s-ns-native{background:var(--bg);box-shadow:inset 0 0 0 1.5px var(--c,var(--muted))}
#survey .s-ns-surr-sem{background:color-mix(in srgb,var(--sem) var(--sgk,60%),var(--bg))}
#survey .s-ns-surr-dis{background:color-mix(in srgb,var(--dis) var(--sgk,60%),var(--bg))}
#survey .s-access-B{background:color-mix(in srgb,var(--ink) var(--sgk,60%),var(--bg))}
#survey .s-access-G{background:color-mix(in srgb,var(--muted) var(--sgk,60%),var(--bg))}
#survey .s-access-W{background:var(--panelframe)}
#survey .s-target-COR{background:color-mix(in srgb,var(--cor) var(--sgk,60%),var(--bg))}
#survey .s-target-GRD{background:color-mix(in srgb,var(--grd) var(--sgk,60%),var(--bg))}
#survey .s-target-FTH{background:color-mix(in srgb,var(--fth) var(--sgk,60%),var(--bg))}
#survey .s-target-UNS{background:color-mix(in srgb,var(--uns) var(--sgk,60%),var(--bg))}
#survey .sw{display:inline-block;width:16px;height:8px;border-radius:2px;flex:0 0 auto}
#survey .sv-legend .sw.s-ns-native{--c:var(--muted)}
#survey .sv-card{position:fixed;z-index:30;width:max-content;max-width:min(320px,calc(100vw - 16px));background:var(--bg);color:var(--ink);border:1px solid var(--panelframe);border-radius:10px;
  box-shadow:0 6px 24px rgba(0,0,0,.14);padding:9px 11px 10px;pointer-events:none;font-size:12.5px;line-height:1.4}
#survey .sv-card[hidden]{display:none}
#survey .sv-card p{margin:0}
#survey .sv-card .ch{font-weight:600;font-size:13px}
#survey .sv-card .ch > span:last-child{font-weight:400;color:var(--muted);margin-left:4px}
#survey .sv-card .cb{display:flex;flex-wrap:wrap;gap:2px 10px;margin:5px 0 6px;color:var(--muted)}
#survey .sv-card .lg{display:inline-flex;align-items:center;gap:5px}
#survey .sv-card ul{list-style:none;margin:0;padding:6px 0 0;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:2px}
#survey .sv-card li{display:flex;align-items:baseline;gap:6px;min-width:0}
#survey .sv-card li .sw{width:8px;transform:translateY(-1px)}
#survey .sv-card li b{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:170px}
#survey .sv-card li span:last-child{color:var(--muted);white-space:nowrap}
#survey .sv-card li.more{color:var(--muted);font-style:italic;padding-top:2px}
#survey .sv-card sub{font-size:.7em;line-height:0}
#survey .sv-dotctl{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:-4px}
#survey .sv-dotlbl{font-size:12.5px;color:var(--muted)}
#survey .sv-dotctl .seg button{font-size:11.5px;padding:3px 9px}
#survey .sv-legend{margin:0;display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12.5px;color:var(--ink)}
#survey .sv-legend .lg{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
#survey .sv-legend .lg-br{flex-basis:100%;height:0}
#survey .sv-legend .lg-note{flex-basis:100%;color:var(--muted);font-size:12px}
#survey .sv-legend sub{font-size:.7em;line-height:0}
#survey .cv.gap{align-items:center;justify-content:center;background:transparent;border:1.5px dashed var(--panelframe);color:var(--muted);font-weight:400}
#survey .cv.gap:hover{border-color:var(--c)}
#survey .cv.tot{align-items:flex-start;justify-content:center;background:transparent;border-color:transparent;font-weight:400;font-size:11px;color:var(--muted);padding-left:2px}
#survey .cv.tot:hover{box-shadow:none;color:var(--ink);text-decoration:underline}
#survey .cv.tot .cv-n{font-size:11.5px;align-self:center;color:var(--muted)}
#survey .cv.gap .cv-n{align-self:center;font-size:11px}
#survey .cv[aria-pressed="true"]{box-shadow:0 0 0 2px var(--bg),0 0 0 3.5px var(--ink);border-color:var(--ink)}
#survey .sv-note{margin:8px 2px 0;font-size:13px;color:var(--muted)}
#survey .sv-cap{margin:0;font-size:12px;color:var(--muted)}
#survey .sv-gapkey{white-space:nowrap}
#survey .sv-gapsw{display:inline-block;font-family:var(--mono);font-size:10.5px;padding:0 6px;margin:0 2px 0 6px;border:1.5px dashed var(--panelframe);border-radius:4px}
#survey #survey-map .ltab{font-size:13px;padding:4px 10px}
#survey #survey-map .sv-sub{font-size:13px;margin:-8px 0 0}

/* takeaways: Lenses-style pull-quotes, lens colour on the left edge, stacked beside the map */
#survey #survey-takeaways{gap:12px}
#survey .sv-tks{display:flex;flex-direction:column;gap:16px}
#survey .sv-tk{border-left:3px solid var(--c);padding:1px 0 1px 12px;display:flex;flex-direction:column;gap:6px;min-width:0}
#survey .sv-tk .tt{font-size:14px;font-weight:600;line-height:1.3;width:fit-content;max-width:100%;padding-bottom:4px;
  background:var(--lens-gradient) left bottom/100% 3px no-repeat}
#survey .sv-tk p{margin:0;font-size:14px;line-height:1.5}
#survey .sv-tk .sv-sec{font-family:var(--mono);font-size:11.5px;color:var(--muted);white-space:nowrap}
@media (min-width:1000px){#survey #survey-takeaways .sv-minor{padding-top:3px}}

/* finder */
#survey .sv-finder{border:1px solid var(--panelframe);border-radius:12px;background:var(--bg)}
#survey .sv-finder > summary{cursor:pointer;padding:10px 14px;font-weight:600;font-size:15px;list-style-position:inside}
#survey .sv-finder[open] > summary{border-bottom:1px solid var(--line)}
#survey .sv-fd{padding:12px 14px 14px;display:flex;flex-direction:column;gap:12px}
#survey .sv-fd-note,#survey .sv-fd-rule{margin:0;font-size:14px;color:var(--muted);max-width:var(--sv-text)}
#survey .sv-fd-rule a{color:var(--ink);font-weight:500;text-decoration:underline;text-underline-offset:3px}
#survey .sv-fd-qs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
@media (max-width:1000px){#survey .sv-fd-qs{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:700px){#survey .sv-fd-qs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:440px){#survey .sv-fd-qs{grid-template-columns:minmax(0,1fr)}}
#survey .sv-fd-foot{display:flex;align-items:center;justify-content:space-between;gap:10px 16px;flex-wrap:wrap}
#survey .sv-fd-sym{display:inline-block;min-width:1.5em;font-size:14px}
#survey .sv-fd-reset{font:inherit;font-size:14px;color:var(--muted);background:none;border:0;padding:2px 0;margin-left:auto;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
#survey .sv-fd-reset:hover{color:var(--ink)}
#survey .sv-fd fieldset{margin:0;border:1px solid var(--line);border-radius:10px;padding:6px 10px 8px;min-width:0}
#survey .sv-fd legend{font-size:13px;font-weight:600;padding:0 4px;white-space:nowrap}
#survey .sv-fd label{display:flex;align-items:baseline;gap:7px;font-size:13.5px;line-height:1.35;padding:3px 0;cursor:pointer}
#survey .sv-fd label small{display:block;color:var(--muted);font-size:11.5px}
#survey .sv-fd input{accent-color:var(--slate);margin:0;flex:0 0 auto;transform:translateY(1px)}
#survey .btn.sm{font-size:12px;padding:4px 10px;border-radius:7px}

/* search + facet chips */
#survey .sv-filters{display:flex;flex-direction:column;gap:10px}
#survey .sv-search input{width:100%;font:inherit;font-size:15px;color:var(--ink);background:var(--bg);border:1px solid var(--panelframe);border-radius:8px;padding:8px 12px}
#survey .sv-search input::placeholder{color:var(--faint)}
#survey .sv-facets > summary{cursor:pointer;font-size:14px;font-weight:600;padding:2px 0;width:fit-content}
#survey .sv-facets > summary span{font-weight:400;color:var(--muted)}
#survey .sv-groups{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px 14px;align-items:start;margin-top:8px}
#survey .sv-group{display:contents}
#survey .sv-group .gl{font-size:12.5px;color:var(--muted);padding-top:5px;white-space:nowrap}
#survey .sv-group .gc{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
@media (max-width:560px){
  #survey .sv-groups{grid-template-columns:minmax(0,1fr);gap:4px}
  #survey .sv-group .gl{padding-top:8px}
}
#survey .fc{display:inline-flex;align-items:center;gap:5px;font:inherit;font-size:13px;line-height:1.4;color:var(--ink);background:var(--bg);
  border:1px solid var(--panelframe);border-radius:999px;padding:3px 10px;cursor:pointer;white-space:nowrap}
#survey .fc .sym{font-size:14px}
#survey .fc .sym.mono{font-size:11.5px;font-weight:500;letter-spacing:.04em}
#survey .fc small{font-size:11.5px;color:var(--muted)}
#survey .fc .n{font-family:var(--mono);font-size:11px;color:var(--faint);min-width:1.4em;text-align:right}
#survey .fc:hover{border-color:var(--ink)}
#survey .fc[aria-pressed="true"]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
#survey .fc[aria-pressed="true"] small,#survey .fc[aria-pressed="true"] .n{color:var(--bg);opacity:.8}
#survey .fc-lens{color:var(--c);border-color:color-mix(in srgb,var(--c) 45%,transparent);background:var(--cbg)}
#survey .fc-lens[aria-pressed="true"]{background:var(--c);color:var(--bg);border-color:var(--c)}
#survey .fc-target .sym{color:var(--tc)}
#survey .fc-metric .sym{color:var(--mc)}
#survey .fc[aria-pressed="true"] .sym{color:var(--bg)}
#survey .fc sub,#survey .pc sub,#survey .ac sub{font-size:.7em;line-height:0}

/* count, sort, active filters */
#survey .sv-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:12px}
#survey .sv-count{margin:0;font-size:14px;font-weight:500}
#survey .sv-active{display:flex;flex-wrap:wrap;gap:6px}
#survey .sv-active:empty{display:none}
#survey .ac{display:inline-flex;align-items:center;gap:5px;font:inherit;font-size:13px;color:var(--ink);background:var(--panel);border:1px solid var(--panelframe);border-radius:7px;padding:3px 9px;cursor:pointer}
#survey .ac small{font-size:11.5px;color:var(--muted)}
#survey .ac:hover{border-color:var(--ink)}
#survey .ac.clear{background:transparent;border-color:transparent;text-decoration:underline;text-underline-offset:3px;color:var(--muted)}
#survey .ac.clear:hover{color:var(--ink)}

/* paper cards */
#survey .sv-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (max-width:860px){#survey .sv-cards{grid-template-columns:minmax(0,1fr)}}
#survey .pc{border:1px solid var(--panelframe);border-left:4px solid var(--c);border-radius:10px;padding:11px 14px 12px;display:flex;flex-direction:column;gap:5px;min-width:0;background:var(--bg)}
#survey .pc-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
#survey .pc-m{margin:0;font-size:16px;font-weight:600;line-height:1.3;min-width:0;overflow-wrap:anywhere}
#survey .pc-marks{display:inline-flex;gap:10px;align-items:baseline;flex:0 0 auto;font-size:14px;color:var(--muted)}
#survey .pc-acc{font-size:13px;letter-spacing:.06em}
#survey .pc-t{margin:0;font-size:13.5px;line-height:1.45;color:var(--ink);text-decoration:none}
#survey a.pc-t:hover{text-decoration:underline;text-underline-offset:3px}
#survey .pc-mag{color:var(--muted);vertical-align:-1px;margin-left:2px}
#survey .pc-by{margin:0;font-size:12.5px;color:var(--muted)}
#survey .pc-co{margin:2px 0 0;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;font-size:13.5px}
#survey .pc-co .ty{font-size:12.5px;color:var(--muted)}
#survey .pc-chips{display:flex;flex-wrap:wrap;gap:5px;align-items:center;margin-top:2px}
#survey .pc-sep{width:1px;height:14px;background:var(--line);margin:0 3px}
/* targets = filled pills (.chip.tgt from the Overview); metrics = outlined squares (brainstorm §7.2) */
#survey .chip.met{font-family:var(--mono);font-size:11px;font-weight:500;letter-spacing:.04em;padding:1px 6px;border-radius:3px;color:var(--mc);border:1.5px solid var(--mc);background:transparent;line-height:1.45}
#survey .pc-also{margin:2px 0 0;font-size:12.5px;color:var(--muted)}
#survey .pc-also .code{font-size:10.5px;padding:0 5px}
#survey .pc-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:6px 12px;flex-wrap:wrap;margin-top:auto}
#survey .pc-acts{margin:0 0 0 auto;white-space:nowrap;display:flex;align-items:baseline;gap:6px;font-family:var(--mono);font-size:12px;color:var(--muted)}
#survey .pc-acts a,#survey .pc-acts button{font:inherit;color:var(--muted);background:none;border:0;padding:0;cursor:pointer;text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--muted) 45%,transparent);text-underline-offset:3px}
#survey .pc-acts a:hover,#survey .pc-acts button:hover{color:var(--ink);text-decoration-color:currentColor}
#survey .sv-empty{grid-column:1/-1;border:1.5px dashed var(--panelframe);border-radius:12px;padding:22px 16px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}
#survey .sv-empty p{margin:0;color:var(--muted)}
#survey .sv-more{display:flex;justify-content:center}
#survey .sv-more:empty{display:none}
#survey .bib-status{margin:0}


/* ---------- evaluation (port of evaluation-section/site-data/eval-preview.html) ---------- */
#evaluation{--ev-text:782px}
#evaluation .ev{display:flex;flex-direction:column;gap:48px}
#evaluation.ready #ev-status{display:none}
#evaluation .ev-lede{margin:0}
#evaluation .ev-block{display:flex;flex-direction:column;gap:14px;min-width:0}
#evaluation .ev-block .block-title{font-size:20px;line-height:1.25;margin:0;text-wrap:balance}
#evaluation .ev-sub{margin:-6px 0 4px;color:var(--muted);font-size:14px;max-width:var(--ev-text)}
#evaluation .ev-minor{margin:12px 0 0;font-size:15px;font-weight:600}
#evaluation mjx-container{color:inherit}
#evaluation a{color:var(--link);text-underline-offset:3px}
#evaluation button:focus-visible,#evaluation a:focus-visible,#evaluation summary:focus-visible{outline:2px solid var(--navy);outline-offset:2px}

/* colour per target / metric / criterion (text variants where the ink fails AA) */
#evaluation [data-t="COR"]{--tc:var(--cor);--tb:var(--cor-bg);--ti:var(--cor)}
#evaluation [data-t="GRD"]{--tc:var(--grd);--tb:var(--grd-bg);--ti:var(--grd)}
#evaluation [data-t="UNS"]{--tc:var(--uns-text);--tb:var(--uns-bg);--ti:var(--uns)}
#evaluation [data-t="FTH"]{--tc:var(--fth-text);--tb:var(--fth-bg);--ti:var(--fth)}
#evaluation [data-tt="COR"]{--ti:var(--cor)} #evaluation [data-tt="GRD"]{--ti:var(--grd)}
#evaluation [data-tt="UNS"]{--ti:var(--uns)} #evaluation [data-tt="FTH"]{--ti:var(--fth)}
#evaluation [data-m="RNK"]{--mc:var(--rnk);--mi:var(--rnk)}
#evaluation [data-m="CAL"]{--mc:var(--cal);--mi:var(--cal)}
#evaluation [data-m="SCR"]{--mc:var(--scr-text);--mi:var(--scr)}
#evaluation [data-m="DEC"]{--mc:var(--dec);--mi:var(--dec)}
#evaluation [data-m="REG"]{--mc:var(--reg);--mi:var(--reg)}
#evaluation [data-m="COV"]{--mc:var(--cov);--mi:var(--cov)}
#evaluation [data-m="FTH"]{--mc:var(--fthm-text);--mi:var(--fthm)}
#evaluation [data-lens="dis"]{--c:var(--dis);--cb:var(--dis-bg)}
#evaluation [data-lens="sem"]{--c:var(--sem);--cb:var(--sem-bg)}

/* chips: targets = filled pills (.chip.tgt, as Overview/Survey); metrics = outlined squares (as Survey cards) */
#evaluation .chip.met{font-family:var(--mono);font-size:11px;font-weight:500;letter-spacing:.04em;padding:1px 6px;border-radius:3px;color:var(--mc);border:1.5px solid var(--mc);background:transparent;line-height:1.45;white-space:nowrap}
#evaluation .chip.crit{font-family:var(--mono);font-size:11px;font-weight:500;letter-spacing:.04em;padding:1px 7px;border-radius:999px;color:var(--c);background:var(--cb);border:1px solid color-mix(in srgb,var(--c) 40%,transparent);line-height:1.45}

/* protocol: three boxes stacked vertically. Name + definition sit in a plain left column (≥ 760 px) or top strip, split by a rule
   Boxes are joined by a down chevron (.ev-conn). */
#evaluation .ev-proto{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0}
#evaluation .ev-step{--bw:240px;position:relative;border:1px solid var(--panelframe);border-radius:12px;display:grid;grid-template-columns:minmax(0,1fr);min-width:0;background:var(--bg)}
@media (min-width:760px){#evaluation .ev-step{grid-template-columns:var(--bw) minmax(0,1fr)}}
#evaluation .ev-step-l,#evaluation .ev-step-r{display:flex;flex-direction:column;gap:10px;min-width:0}
#evaluation .ev-step-l{border-bottom:1px solid var(--line);padding:13px 16px 14px}
#evaluation .ev-step-r{padding:14px 16px 16px}
@media (min-width:760px){
  #evaluation .ev-step-l{border-bottom:0;border-right:1px solid var(--line);padding:15px 18px 18px}
  #evaluation .ev-step-r{padding:15px 18px 17px}
}
/* connector between boxes: a bold rounded chevron pointing down, under the banner's centre */
#evaluation .ev-conn{--cx:50%;position:relative;height:36px}
@media (min-width:760px){#evaluation .ev-conn{--cx:121px}}
#evaluation .ev-chev{position:absolute;left:var(--cx);top:50%;transform:translate(-50%,-50%);overflow:visible}
#evaluation .ev-chev path{fill:none;stroke:var(--muted);stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round}
#evaluation .ev-step-h{margin:0;font-size:16px;font-weight:600;display:flex;align-items:center;gap:8px}
#evaluation .ev-n-unused{font-family:var(--mono);font-size:11px;font-weight:500;width:20px;height:20px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--panelframe);color:var(--muted)}
#evaluation .ev-def{margin:0;font-size:14px;line-height:1.5;color:var(--muted)}
#evaluation .ev-pills{display:flex;flex-wrap:wrap;gap:6px}
#evaluation button.ev-pick{font:inherit;font-family:var(--mono);cursor:pointer;border:0;display:inline-flex;align-items:baseline;gap:5px;font-size:12px;padding:3px 10px}
#evaluation button.chip.met.ev-pick{padding:2px 8px;border:1.5px solid var(--mc)}
#evaluation .ev-pick small{font-family:var(--sans);font-size:11.5px;font-weight:400;letter-spacing:0;color:var(--ink)}
#evaluation .ev-pick:hover{box-shadow:0 0 0 1px var(--ink)}
#evaluation .ev-pick[aria-pressed="true"]{box-shadow:0 0 0 2px var(--bg),0 0 0 3.5px var(--ink)}
#evaluation .ev-detail{border-top:1px solid var(--line);padding-top:10px;display:flex;flex-direction:column;gap:6px;font-size:14px;line-height:1.5;}
#evaluation .ev-detail p{margin:0}
#evaluation .ev-dh{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
#evaluation .ev-dn{font-family:var(--mono);font-size:12px;color:var(--muted);margin-left:auto}
#evaluation .ev-q{font-style:italic}
#evaluation .ev-of{color:var(--ink)}
#evaluation .ev-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:13px;color:var(--muted)}
#evaluation .ev-gt{margin-left:4px}
#evaluation .ev-ex{font-size:13px;color:var(--ink)}
#evaluation .ev-ex span{color:var(--muted);font-style:italic}
#evaluation .ev-crits{display:flex;flex-direction:column;gap:10px}
#evaluation .ev-crit{border-left:3px solid var(--c);padding:1px 0 1px 10px;display:flex;flex-direction:column;gap:3px;font-size:14px;line-height:1.45}
#evaluation .ev-crit p{margin:0}
#evaluation .ev-crit-h{font-weight:600;display:flex;align-items:center;gap:7px}
#evaluation .ev-gr{margin:0;font-size:13.5px;line-height:1.5;border-top:1px solid var(--line);padding-top:10px}

/* flow chart */
#evaluation .ev-flowgrid{display:grid;grid-template-columns:minmax(0,1fr);gap:28px;align-items:start}
@media (min-width:1000px){#evaluation .ev-flowgrid{grid-template-columns:minmax(0,1fr) minmax(0,300px);gap:40px}}
#evaluation .ev-flowmain,#evaluation .ev-flowside{display:flex;flex-direction:column;gap:12px;min-width:0}
#evaluation .ev-flowside .ev-minor{margin:0}
#evaluation .ev-chart{width:100%;min-width:0;overflow:hidden}
#evaluation .ev-svg{display:block;max-width:100%;height:auto;overflow:visible;font-family:var(--sans)}
#evaluation .ev-heads text{font-size:12.5px;font-weight:600;fill:var(--ink)}
#evaluation .ev-heads text.sub{font-size:10.5px;font-weight:400;fill:var(--muted);font-family:var(--mono)}
#evaluation .lk-p{fill:color-mix(in srgb,var(--ti) 38%,var(--bg));stroke:var(--bg);stroke-width:1;transition:fill .15s ease}
#evaluation .lk-f{fill:transparent;stroke:none}
#evaluation .ev-hb{fill:color-mix(in srgb,var(--ti) 12%,var(--bg))}
#evaluation .ev-hl{stroke:color-mix(in srgb,var(--ti) 50%,var(--bg));stroke-width:2.4}
#evaluation .lk{cursor:pointer;outline:none}
#evaluation .ev-chart.hl .lk:not(.on) .lk-p:not(.lk-only){fill:color-mix(in srgb,var(--ti) 13%,var(--bg))}
#evaluation .ev-chart.hl .lk:not(.on) .lk-only{opacity:.35}
#evaluation .lk.on .lk-p:not(.lk-only){fill:color-mix(in srgb,var(--ti) 62%,var(--bg))}
#evaluation .lk:focus-visible .lk-f{stroke:var(--ink);stroke-width:2}
#evaluation .ev-hltext{font-size:13px;fill:var(--ink);paint-order:stroke;stroke:var(--bg);stroke-width:4px;stroke-linejoin:round;pointer-events:none}
#evaluation .ev-hltext .b{font-weight:600}
#evaluation .nd{cursor:pointer;outline:none}
#evaluation .nd-t .nd-r{fill:var(--ti)}
#evaluation .nd-m .nd-r{fill:var(--bg);stroke:var(--mi);stroke-width:1.5}
#evaluation .nd-hit{fill:transparent}
#evaluation .nd-l{font-size:13px;fill:var(--ink)}
#evaluation .nd-l .cd{font-family:var(--mono);font-size:12px;font-weight:500;letter-spacing:.04em}
#evaluation .nd-l .nm{fill:var(--muted)}
#evaluation .nd-l .n{font-family:var(--mono);font-size:12px;fill:var(--muted);font-variant-numeric:tabular-nums}
#evaluation .nd.on .nd-l .cd,#evaluation .nd:hover .nd-l .cd{text-decoration:underline;text-underline-offset:3px}
#evaluation .nd:focus-visible .nd-r{stroke:var(--ink);stroke-width:2.5}
#evaluation .nd:focus-visible .nd-l{text-decoration:underline}
#evaluation .ev-legend{margin:0;display:flex;flex-wrap:wrap;gap:6px 18px;font-size:12.5px;color:var(--ink)}
#evaluation .ev-legend .lg-br{flex-basis:100%;height:0}
#evaluation .ev-legend .lg{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
#evaluation .sw{display:inline-block;width:20px;height:10px;border-radius:2px}
#evaluation .sw-only{background:repeating-linear-gradient(45deg,color-mix(in srgb,var(--muted) 55%,var(--bg)) 0 2px,color-mix(in srgb,var(--muted) 12%,var(--bg)) 2px 5px)}
#evaluation .sw-other{background:color-mix(in srgb,var(--muted) 38%,var(--bg))}
#evaluation .ev-cap{margin:0;font-size:12px;color:var(--muted);max-width:var(--ev-text)}
#evaluation .bib-status{margin:0}
#evaluation .bib-status:empty{display:none}

/* hover card (as the Survey map's) */
#evaluation .ev-card{position:fixed;z-index:30;width:max-content;max-width:min(330px,calc(100vw - 16px));background:var(--bg);color:var(--ink);border:1px solid var(--panelframe);border-radius:10px;
  box-shadow:0 6px 24px rgba(0,0,0,.14);padding:9px 11px 10px;pointer-events:none;font-size:12.5px;line-height:1.4}
#evaluation .ev-card[hidden]{display:none}
#evaluation .ev-card p{margin:0}
#evaluation .ev-card .ch{font-weight:600;font-size:13px;display:flex;flex-wrap:wrap;align-items:center;gap:4px}
#evaluation .ev-card .ch > span:last-child{font-weight:400;color:var(--muted);margin-left:2px}
#evaluation .ev-card .cb{margin:5px 0 0;color:var(--muted)}
#evaluation .ev-card ul{list-style:none;margin:6px 0 0;padding:6px 0 0;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:2px}
#evaluation .ev-card li{display:flex;align-items:baseline;gap:6px;min-width:0}
#evaluation .ev-card li b{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:180px}
#evaluation .ev-card li span{color:var(--muted);white-space:nowrap}
#evaluation .ev-card li.more{color:var(--muted);font-style:italic}
#evaluation .ev-card .cf{margin-top:6px;color:var(--muted);font-size:12px}

/* table view */
#evaluation .ev-tbl > summary{cursor:pointer;font-size:13.5px;font-weight:500;width:fit-content}
#evaluation .ev-tf{overflow-x:auto;margin-top:10px;border:1px solid var(--panelframe);border-radius:10px}
#evaluation .ev-tf table{border-collapse:collapse;width:100%;font-size:13px;font-variant-numeric:tabular-nums}
#evaluation .ev-tf caption{caption-side:bottom;text-align:left;font-size:12px;color:var(--muted);padding:8px 10px}
#evaluation .ev-tf th,#evaluation .ev-tf td{padding:6px 8px;border-bottom:1px solid var(--line);text-align:center;white-space:nowrap}
#evaluation .ev-tf tbody th,#evaluation .ev-tf tfoot th{text-align:left;font-weight:500}
#evaluation .ev-tf thead th{font-weight:500}
#evaluation .ev-tf .z{color:var(--faint)}
#evaluation .ev-tf .tot{font-weight:600}
#evaluation .ev-tf tfoot th,#evaluation .ev-tf tfoot td{border-bottom:0}

/* notes + takeaway */
#evaluation .ev-notes{margin:0;padding-left:1.2em;display:flex;flex-direction:column;gap:10px;max-width:var(--ev-text);font-size:14.5px;line-height:1.55}
#evaluation .ev-tk{max-width:var(--ev-text);border-left:3px solid var(--navy);padding:2px 0 2px 14px;display:flex;flex-direction:column;gap:8px}
#evaluation .ev-tk .tt{margin:0;font-size:15px;font-weight:600;line-height:1.3;width:fit-content;max-width:100%;padding-bottom:5px;background:var(--lens-gradient) left bottom/100% 3px no-repeat}
#evaluation .ev-tk p{margin:0;font-size:16.5px;line-height:1.55}
#evaluation .ev-sec{font-family:var(--mono);font-size:11.5px;color:var(--muted);white-space:nowrap}

/* benchmarks */
#evaluation .ev-bench{overflow-x:auto;border:1px solid var(--panelframe);border-radius:10px}
#evaluation .ev-bench table{border-collapse:collapse;width:100%;font-size:14px;line-height:1.5}
#evaluation .ev-bench th,#evaluation .ev-bench td{padding:9px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
#evaluation .ev-bench thead th{font-size:12.5px;font-weight:500;color:var(--muted)}
#evaluation .ev-bench tbody tr:last-child th,#evaluation .ev-bench tbody tr:last-child td{border-bottom:0}
#evaluation .ev-bench tbody th{width:13.5em;font-weight:400}
#evaluation .ev-fmt{display:block;font-family:var(--mono);font-size:12.5px;font-weight:500;letter-spacing:.04em}
#evaluation .ev-bench small{display:block;font-size:12px;color:var(--muted);line-height:1.35}
#evaluation .ev-bg{display:block}
#evaluation .ev-bg + .ev-bg{margin-top:5px}
#evaluation .ev-bg .chip{margin-right:3px}
@media (max-width:560px){#evaluation .ev-bench tbody th{width:auto}#evaluation .ev-bench td,#evaluation .ev-bench th{padding:8px}}
#evaluation #ev-bench-note{max-width:none}
#evaluation .ev-bench a,#evaluation #ev-bench-note a{color:inherit;text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--muted) 45%,transparent);text-decoration-thickness:1px;text-underline-offset:3px}
#evaluation .ev-bench a:hover,#evaluation #ev-bench-note a:hover{color:var(--link);text-decoration-color:currentColor}
#evaluation .ev-bench sup{font-family:var(--mono);font-size:10px;margin-left:2px}




/* ---------- demos · metric playground (port of playground-section/site-data/playground-preview.html) ---------- */
/* correct = ink filled circle, wrong = pink ✕ (--wrong): neither is a lens, target or metric ink, so no clash with the
   CAL teal / RNK navy beside them. Shapes and lane labels carry the meaning; colour is the second cue. */
#playground{--pg-text:782px;--pg-ok:var(--ink);--pg-bad:var(--wrong);display:flex;flex-direction:column;gap:14px;min-width:0}
#playground .block-title{font-size:20px;line-height:1.25;margin:0;text-wrap:balance}
#playground.ready #pg-status{display:none}
#playground .pg-lede{margin:0;max-width:var(--pg-text)}
#playground a{color:var(--link);text-underline-offset:3px}
#playground button:focus-visible,#playground a:focus-visible{outline:2px solid var(--navy);outline-offset:2px}
#playground .ltabs{margin:4px 0 0}
#playground .ltab{display:inline-flex;align-items:center;gap:8px}
#playground .chip.tgt{font-size:11px;padding:1px 7px}
#playground [data-t="COR"]{--tc:var(--cor);--tb:var(--cor-bg)}
#playground [data-t="FTH"]{--tc:var(--fth-text);--tb:var(--fth-bg)}
#playground [role="tabpanel"]{display:flex;flex-direction:column;gap:12px;min-width:0}
#playground [role="tabpanel"][hidden]{display:none}
#playground .pg-sub{margin:0;color:var(--muted);font-size:14px;max-width:var(--pg-text)}
#playground .pg-presets{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
/* preset and score switches: the survey's "Split by" control (label + .seg) */
#playground .pg-flab{font-size:12.5px;color:var(--muted)}
#playground .pg-presets .seg,#playground .pg-realsrc .seg{max-width:100%;flex-wrap:wrap;flex:0 1 auto}
#playground .pg-presets .seg button,#playground .pg-realsrc .seg button{font-size:11.5px;padding:3px 9px;white-space:nowrap}
#playground .seg button:disabled{opacity:.5;cursor:not-allowed}
#playground .btn.sm{font-size:12px;padding:5px 10px;border-radius:7px;min-height:28px}
#playground .btn[aria-pressed="true"]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
#playground .btn:disabled{opacity:.5;cursor:not-allowed}
#playground .btn:disabled:hover{background:var(--bg)}
/* real-data preset (brief 10): source switch + note; dense strip = 200 points, half-size marks */
#playground .pg-realsrc{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center}
#playground .pg-realsrc[hidden]{display:none}
#playground .pg-realnote{font-size:13px;color:var(--muted);flex:1 1 300px;max-width:var(--pg-text)}
#playground .pg-svg.dense .pg-pt>*{transform:scale(.5)}
#playground .pg-cap{margin:0;font-size:13.5px;color:var(--muted);max-width:var(--pg-text)}
#playground .pg-pcap{margin:0;color:var(--ink);font-size:14.5px;line-height:1.55;max-width:var(--pg-text);min-height:3.1em}
#playground .pg-pcap.edited{color:var(--muted);min-height:0}
#playground .pg-moral{margin:0;font-size:14.5px;max-width:var(--pg-text);border-left:3px solid var(--mi);padding:1px 0 1px 12px}
#playground [data-t="GRD"]{--tc:var(--grd);--tb:var(--grd-bg)}
#playground [data-t="UNS"]{--tc:var(--uns-text);--tb:var(--uns-bg)}
/* metric switch inside a readout row */
#playground .pg-mseg{grid-area:name;display:inline-flex;flex-wrap:wrap;gap:4px;align-self:center}
#playground .pg-mseg button{font:inherit;font-size:13px;font-weight:500;border:1px solid var(--line);background:var(--bg);color:var(--muted);border-radius:6px;padding:2px 8px;cursor:pointer;min-height:26px}
#playground .pg-mseg button:hover{color:var(--ink);background:var(--panel)}
#playground .pg-mseg button[aria-pressed="true"]{color:var(--ink);border-color:var(--mi);box-shadow:inset 0 -2px 0 var(--mi);font-weight:600}

/* metric families (outlined squares, as Survey and Evaluation) */
#playground [data-m="RNK"]{--mc:var(--rnk);--mi:var(--rnk);--mb:var(--rnk-bg)}
#playground [data-m="CAL"]{--mc:var(--cal);--mi:var(--cal);--mb:var(--cal-bg)}
#playground [data-m="SCR"]{--mc:var(--scr-text);--mi:var(--scr);--mb:var(--scr-bg)}
#playground [data-m="DEC"]{--mc:var(--dec);--mi:var(--dec);--mb:var(--dec-bg)}
#playground [data-m="FTH"]{--mc:var(--fthm-text);--mi:var(--fthm);--mb:var(--fthm-bg)}
#playground .chip.met{font-family:var(--mono);font-size:11px;font-weight:500;letter-spacing:.04em;padding:1px 6px;border-radius:3px;color:var(--mc);border:1.5px solid var(--mc);background:transparent;line-height:1.45;white-space:nowrap}

/* score strip */
#playground .pg-strip{width:100%;min-width:0;border:1px solid var(--panelframe);border-radius:12px;padding:6px 0 0;background:var(--bg)}
#playground .pg-svg{display:block;max-width:100%;height:auto;font-family:var(--sans);overflow:visible;user-select:none;-webkit-user-select:none}
#playground .pg-lanebg{fill:var(--panel);cursor:copy}
#playground .pg-lanelab{font-family:var(--mono);font-size:11.5px;fill:var(--muted)}
#playground .pg-lane.ok .pg-lanelab{fill:var(--ink)}
#playground .pg-accept{fill:color-mix(in srgb,var(--dec) 9%,transparent);pointer-events:none}
#playground .pg-reject{pointer-events:none}
#playground .pg-rej-hatch{stroke:var(--faint);stroke-width:1;opacity:.35}
#playground .pg-side{font-family:var(--mono);font-size:11px;fill:var(--dec)}
#playground .pg-tau-line{stroke:var(--dec);stroke-width:2;pointer-events:none}
#playground .pg-tau{cursor:ew-resize;touch-action:none;outline:none}
#playground .pg-tau-h{fill:var(--dec)}
#playground .pg-tau-t{fill:var(--bg);font-family:var(--mono);font-size:13px;font-weight:500;pointer-events:none}
#playground .pg-tau:focus-visible .pg-tau-h{stroke:var(--ink);stroke-width:2.5}
#playground .pg-hit{fill:transparent}
#playground .pg-axisline{stroke:var(--faint)}
#playground .pg-tick{font-family:var(--mono);font-size:11px;fill:var(--muted)}
#playground .pg-tick2{font-family:var(--mono);font-size:10.5px;fill:var(--faint)}
#playground .pg-pt{cursor:grab;touch-action:none;outline:none}
#playground .pg-pt:active{cursor:grabbing}
#playground .pg-pt .pg-ring{fill:none;stroke:none}
#playground .pg-pt.sel .pg-ring{stroke:var(--ink);stroke-width:1.5;stroke-dasharray:3 2}
#playground .pg-pt:focus-visible .pg-ring{stroke:var(--navy);stroke-width:2.5;stroke-dasharray:none}
#playground .pg-pt.ok .pg-dot{fill:var(--pg-ok);stroke:var(--bg);stroke-width:1.5}
#playground .pg-pt .pg-x{stroke:var(--pg-bad);stroke-width:2.6;stroke-linecap:round;fill:none}
#playground .pg-pt .pg-x-bg{stroke:var(--bg);stroke-width:5.5;stroke-linecap:round;fill:none}
#playground .pg-tools{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;justify-content:space-between;font-size:13px}
#playground .pg-scale{font-size:11.5px;color:var(--muted)}
#playground .pg-selbox{display:inline-flex;flex-wrap:wrap;gap:8px;align-items:center;min-height:28px}
#playground .pg-selbox .mono{font-size:12px}
#playground .pg-add{display:inline-flex;gap:8px;align-items:center}
#playground .pg-n{font-size:11.5px;color:var(--muted)}

/* readout */
#playground .pg-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:18px 28px;align-items:start}
@media (min-width:1000px){#playground .pg-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)}}
#playground .pg-readout{display:flex;flex-direction:column;gap:0;border-top:1px solid var(--line)}
#playground .pg-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"chip name val" "bar bar bar" "dir dir dir" "gloss gloss gloss";gap:2px 10px;align-items:baseline;padding:10px 0;border-bottom:1px solid var(--line)}
#playground .pg-row .chip{grid-area:chip;align-self:center}
#playground .pg-name{grid-area:name;font-weight:600;font-size:15px}
#playground .pg-val{grid-area:val;font-size:18px;font-weight:500;color:var(--ink);font-variant-numeric:tabular-nums;cursor:default}
#playground .pg-bar{grid-area:bar;display:block;height:4px;border-radius:2px;background:var(--line);margin:4px 0 2px;overflow:hidden}
#playground .pg-bar i{display:block;height:100%;background:var(--mi);border-radius:2px}
#playground .pg-dir{grid-area:dir;font-size:12px;color:var(--muted);font-family:var(--mono)}
#playground .pg-dir b{font-weight:500;color:var(--ink)}
#playground .pg-gloss{grid-area:gloss;font-size:13.5px;color:var(--muted);line-height:1.45}

/* plots */
#playground .pg-plots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
@media (max-width:560px){#playground .pg-plots{grid-template-columns:minmax(0,1fr)}}
#playground .pg-plot{margin:0;display:flex;flex-direction:column;gap:6px;min-width:0}
#playground .pg-plot figcaption{font-size:14px;font-weight:600;display:flex;gap:8px;align-items:center}
#playground .pg-psvg{display:block;width:100%;max-width:360px;height:auto;font-family:var(--sans)}
#playground .pg-note{margin:0;font-size:12px;color:var(--muted);line-height:1.45}
#playground .pg-frame{fill:none;stroke:var(--line)}
#playground .pg-grid line,#playground line.pg-grid{stroke:var(--line);stroke-dasharray:2 3}
#playground .pg-axt{font-size:11px;fill:var(--muted)}
#playground .pg-diag{stroke:var(--faint);stroke-width:1.2;stroke-dasharray:4 3;fill:none}
#playground .pg-bar-acc{fill:var(--cal-bg);stroke:var(--cal);stroke-width:1.2}
#playground .pg-gap-hatch{stroke:var(--cal);stroke-width:1.3}
#playground .pg-bar-gap{stroke:var(--cal);stroke-width:.8;stroke-dasharray:2 2}
#playground .pg-bar-conf{stroke:var(--ink);stroke-width:1.5}
#playground .pg-cnt{font-family:var(--mono);font-size:9.5px;fill:var(--muted)}
#playground .pg-area{fill:var(--rnk-bg);stroke:none}
#playground .pg-curve{fill:none;stroke:var(--rnk);stroke-width:2}
#playground .pg-rnd{stroke:var(--muted);stroke-width:1.3;stroke-dasharray:5 4}
#playground .pg-orc{fill:none;stroke:var(--muted);stroke-width:1.5;stroke-dasharray:1.5 3;stroke-linecap:round}
#playground .pg-covtau{stroke:var(--dec);stroke-width:1.6}
#playground .pg-covlab{font-family:var(--mono);font-size:10.5px;fill:var(--dec)}

/* faithfulness */
#playground .pg-fgrid{display:grid;grid-template-columns:minmax(0,1fr);gap:18px 32px;align-items:start}
@media (min-width:860px){#playground .pg-fgrid{grid-template-columns:minmax(0,320px) minmax(0,1fr)}}
#playground .pg-fgrid>div{display:flex;flex-direction:column;gap:12px;min-width:0}
#playground .pg-scat{border:1px solid var(--panelframe);border-radius:12px;padding:6px 6px 2px}
#playground .pg-ssvg{display:block;width:100%;max-width:300px;height:auto;margin:0 auto;font-family:var(--sans);user-select:none;-webkit-user-select:none}
#playground .pg-bin{fill:var(--panel)}
#playground .pg-pt.fp .pg-dot{fill:var(--fthm);stroke:var(--bg);stroke-width:1.5}
#playground .pg-gapline{stroke:var(--fthm);stroke-width:1.2;opacity:.45}
#playground .pg-info{margin:0;min-height:1.5em;font-size:12px;color:var(--ink);text-align:center}

#playground .pg-linkout{margin:4px 0 0;font-size:14.5px;max-width:var(--pg-text)}
#playground .pg-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
#playground .pg-svg{width:100%}
#playground .pg-strip{overflow:hidden}
#playground .pg-bar-acc.worst{stroke-width:2.6}
#playground .pg-bar-gap.worst{stroke-width:1.6;stroke-dasharray:none}
#playground .pg-acedot{fill:var(--cal-bg);stroke:var(--cal);stroke-width:1.6}
#playground .pg-gapv{stroke:var(--cal);stroke-width:2}
#playground .pg-op{fill:var(--dec);stroke:var(--bg);stroke-width:1.5}
#playground .pg-panel{display:flex;flex-direction:column;gap:12px;min-width:0}
#playground .pg-add{flex-wrap:wrap}
#playground .pg-add .btn{white-space:nowrap}
#playground .pg-presets [hidden]{display:none}
#playground .pg-presets .seg button[hidden]{display:none}
#playground .pg-arrow{font-size:14px;color:var(--mi);margin-right:6px;vertical-align:2px;cursor:help}
#playground .pg-dir[hidden]{display:none}
#playground .pg-key{margin:0;padding:6px 0;font-size:11.5px;color:var(--muted);border-bottom:1px solid var(--line);text-align:right}
#playground .pg-pcap,#playground .pg-sub{max-width:none}


/* ---------- demos · 5b confidence cutoff (port of poc-section/site-data/poc-preview.html) ---------- */
#poc-demo{--poc-text:782px;display:flex;flex-direction:column;gap:14px;min-width:0;margin-top:48px}
@media (max-width:600px){#poc-demo{margin-top:36px}}
#poc-demo .block-title{font-size:20px;line-height:1.25;margin:0;text-wrap:balance}
#poc-demo.ready #poc-status{display:none}
#poc-demo .poc-lede{margin:0;max-width:var(--poc-text)}
#poc-demo .poc-lede p{margin:0 0 8px}
#poc-demo .poc-lede p:last-child{margin:0}
#poc-demo .poc-notes li[hidden]{display:none}
#poc-demo .poc-mmlu{margin:0;font-size:13px;color:var(--muted)}
#poc-demo .poc-mmlu[hidden]{display:none}
#poc-demo .poc-estnote{margin:0;font-size:13px;color:var(--muted)}
#poc-demo .poc-estnote[hidden],#poc-demo .btn[hidden]{display:none}
#poc-demo .poc-estnote b{font-family:var(--mono);font-weight:500;color:var(--lc)}
#poc-demo a{color:var(--link);text-underline-offset:3px}
#poc-demo button:focus-visible,#poc-demo a:focus-visible,#poc-demo summary:focus-visible{outline:2px solid var(--navy);outline-offset:2px}
#poc-demo .poc-top{display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px;margin:4px 0 0}
#poc-demo .poc-grp,#poc-demo .poc-ds-slot{display:inline-flex;align-items:center;gap:8px;min-width:0;max-width:100%}
#poc-demo .ltabs{margin:4px 0 0}
#poc-demo [role="tabpanel"]{min-width:0}
#poc-demo [role="tabpanel"][hidden]{display:none}
#poc-demo [data-l="str"]{--lc:var(--str);--lb:var(--str-bg)}
#poc-demo [data-l="rep"]{--lc:var(--rep);--lb:var(--rep-bg)}
#poc-demo [data-l="dis"]{--lc:var(--dis);--lb:var(--dis-bg)}
#poc-demo [data-l="sem"]{--lc:var(--sem);--lb:var(--sem-bg)}
#poc-demo .poc-w{display:flex;flex-direction:column;gap:12px;min-width:0}
/* controls */
#poc-demo .poc-ctrl{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center}
/* model, dataset, lens switches and toggles: the survey's "Split by" control (grey label + .seg) */
#poc-demo .poc-flab{font-size:12.5px;color:var(--muted)}
#poc-demo .poc-seg,#poc-demo .poc-top .ltabs{display:inline-flex;flex:0 1 auto;gap:0;margin:0;padding:0;border:1px solid var(--line);border-radius:6px;overflow:hidden;flex-wrap:wrap;max-width:100%}
#poc-demo .poc-seg button,#poc-demo .poc-top .ltab,#poc-demo .poc-ctrl .btn.sm{font:inherit;font-family:var(--mono);font-size:11.5px;font-weight:400;line-height:1.5;border:0;border-radius:0;background:var(--bg);color:var(--muted);padding:3px 9px;min-height:0;white-space:nowrap;cursor:pointer}
#poc-demo .poc-seg button[aria-pressed="true"],#poc-demo .poc-top .ltab[aria-selected="true"],#poc-demo .poc-ctrl .btn.sm[aria-pressed="true"]{background:var(--slate);color:var(--bg);font-weight:400;border-color:var(--slate)}
#poc-demo .poc-seg button:focus-visible,#poc-demo .poc-top .ltab:focus-visible{outline-offset:-2px}
#poc-demo .poc-ctrl .btn.sm{border:1px solid var(--line);border-radius:6px}
#poc-demo .poc-focus button{display:inline-flex;align-items:center;gap:5px}
#poc-demo .poc-focus button b{font-weight:400}
#poc-demo .poc-focus button[aria-pressed="true"] .poc-mk path{fill:var(--bg)}
#poc-demo .poc-rt tr.dim{opacity:.4}
/* legend (narrow screens only; wide screens label the line ends) */
#poc-demo .poc-legend{display:none;flex-wrap:wrap;gap:4px 12px;font-size:12.5px;color:var(--muted)}
#poc-demo .poc-legend.show{display:flex}
#poc-demo .poc-legend span[hidden]{display:none}
#poc-demo .poc-legend span{display:inline-flex;align-items:center;gap:4px}
#poc-demo .poc-legend b{font-family:var(--mono);font-weight:500;color:var(--lc)}
#poc-demo .poc-lg-ch i{display:inline-block;width:16px;border-top:1.5px dashed var(--muted)}
#poc-demo .poc-mk{width:12px;height:12px;flex:0 0 12px;vertical-align:-1px}
#poc-demo .poc-mk path{fill:var(--lc)}
/* chart + readout */
#poc-demo .poc-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}
@media (min-width:1000px){#poc-demo .poc-grid{grid-template-columns:minmax(0,1fr) 340px}}
#poc-demo .poc-fig{margin:0;min-width:0;border:1px solid var(--panelframe);border-radius:12px;padding:8px 6px 2px;background:var(--bg)}
#poc-demo .poc-chart{width:100%;min-width:0}
#poc-demo .poc-svg{display:block;width:100%;height:auto;overflow:visible;font-family:var(--sans)}
#poc-demo .poc-frame{fill:none;stroke:var(--panelframe);stroke-width:1}
#poc-demo .poc-gl{stroke:var(--line);stroke-width:1}
#poc-demo .poc-zero{stroke:var(--muted);stroke-width:1;stroke-dasharray:4 3}
#poc-demo .poc-axl{stroke:var(--panelframe)}
#poc-demo .poc-tick{font-family:var(--mono);font-size:11px;fill:var(--muted)}
#poc-demo .poc-axt{font-size:12.5px;fill:var(--muted)}
#poc-demo .poc-dtitle{font-size:12.5px;fill:var(--ink)}
#poc-demo .poc-dtitle .sub{font-size:9.5px}
#poc-demo .poc-shade{fill:var(--faint);fill-opacity:.13}
#poc-demo .poc-shline{stroke:var(--faint);stroke-width:1;stroke-dasharray:2 2}
#poc-demo .poc-shtxt{font-family:var(--mono);font-size:10.5px;fill:var(--muted)}
#poc-demo .poc-chance{fill:none;stroke:var(--muted);stroke-width:1.5;stroke-dasharray:4 3}
#poc-demo .poc-chnote{font-family:var(--mono);font-size:10.5px;fill:var(--muted)}
#poc-demo .poc-band{fill:var(--lc);fill-opacity:.11;stroke:none}
#poc-demo .poc-line{fill:none;stroke:var(--lc);stroke-width:2.2;stroke-linejoin:round;stroke-linecap:round}
#poc-demo .poc-line.dash{stroke-width:1.4;stroke-dasharray:5 4;opacity:.55}
#poc-demo .poc-pt{fill:var(--lc);stroke:var(--bg);stroke-width:1}
#poc-demo .poc-pt.big{stroke-width:1.6}
#poc-demo .poc-eline{fill:none;stroke:var(--lc);stroke-width:1.5;stroke-dasharray:1.5 3.5;stroke-linecap:round;stroke-linejoin:round}
#poc-demo .poc-eline.fade{opacity:.45}
#poc-demo .poc-ept{fill:var(--bg);stroke:var(--lc);stroke-width:1.3}
#poc-demo .poc-ept.big{stroke-width:1.8}
#poc-demo .poc-lead{stroke:var(--faint);stroke-width:.8}
#poc-demo .poc-dlab{font-family:var(--mono);font-size:12px;font-weight:500;fill:var(--lc)}
#poc-demo .poc-dlab.est{font-family:var(--sans);font-weight:400;font-size:11.5px}
#poc-demo .poc-mk.e path{fill:none;stroke:var(--lc);stroke-width:1.4}
#poc-demo .poc-rt td.est .poc-mk{margin-right:4px}
#poc-demo .poc-lg-e b{font-family:var(--sans)!important;font-weight:400!important}
#poc-demo .poc-key{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:12.5px;color:var(--muted)}
#poc-demo .poc-key span{display:inline-flex;align-items:center;gap:6px}
#poc-demo .poc-key i{display:inline-block;width:22px;border-top:2.2px solid var(--muted)}
#poc-demo .poc-key i.d{border-top:2px dotted var(--muted)}
#poc-demo .poc-dlab.ch{fill:var(--muted);font-weight:400;font-size:11px}
#poc-demo .poc-dline{fill:none;stroke:var(--slate);stroke-width:2;stroke-linejoin:round}
#poc-demo .poc-dline.dash{stroke-width:1.3;stroke-dasharray:5 4;opacity:.55}
#poc-demo .poc-dband{fill:var(--slate);fill-opacity:.14;stroke:none}
#poc-demo .poc-dpt{fill:var(--slate);stroke:var(--bg);stroke-width:1}
#poc-demo .poc-cut{stroke:var(--dec);stroke-width:1.5}
#poc-demo .poc-over{fill:transparent;cursor:pointer;touch-action:pan-y}
#poc-demo .poc-handle{cursor:grab;touch-action:none;outline:none}
#poc-demo .poc-handle:active{cursor:grabbing}
#poc-demo .poc-h{fill:var(--dec);stroke:none}
#poc-demo .poc-ht{font-family:var(--mono);font-size:11px;font-weight:500;fill:#fff;pointer-events:none}
#poc-demo .poc-hit{fill:transparent}
#poc-demo .poc-handle:focus-visible .poc-h{stroke:var(--ink);stroke-width:2.5}
:root[data-theme="dark"] #poc-demo .poc-ht{fill:#0c0f13}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) #poc-demo .poc-ht{fill:#0c0f13}}
/* readout */
#poc-demo .poc-read{display:flex;flex-direction:column;gap:8px;min-width:0;font-size:14px}
#poc-demo .poc-read p{margin:0}
#poc-demo .poc-rh{font-size:14px;color:var(--muted)}
#poc-demo .poc-rh .mono{color:var(--dec);font-weight:500}
#poc-demo .poc-counts{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12.5px;color:var(--muted)}
#poc-demo .poc-counts b{color:var(--ink);font-weight:500}
#poc-demo .poc-rt{border-collapse:collapse;width:100%;font-size:13.5px}
#poc-demo .poc-rt th,#poc-demo .poc-rt td{padding:4px 4px;text-align:right;border-bottom:1px solid var(--line);white-space:nowrap}
#poc-demo .poc-rt th:first-child{text-align:left;padding-left:0}
#poc-demo .poc-rt thead th{font-size:11.5px;font-weight:500;color:var(--muted)}
#poc-demo .poc-rt tbody th{font-weight:400}
#poc-demo .poc-rt tbody th b{font-family:var(--mono);font-weight:500;color:var(--lc);margin-left:5px}
#poc-demo .poc-rt .poc-ln{color:var(--muted);font-size:12px}
#poc-demo .poc-rt td.est{color:var(--muted)}
#poc-demo .poc-rt .poc-en{font-family:var(--sans);font-size:11.5px}
#poc-demo .poc-rt.est .poc-ln{display:none!important}
#poc-demo .poc-rt tfoot th{font-weight:400;color:var(--muted)}
#poc-demo .poc-rt tfoot tr:last-child th,#poc-demo .poc-rt tfoot tr:last-child td{border-bottom:0}
#poc-demo .poc-chk{display:inline-block;width:14px;border-top:1.5px dashed var(--muted);vertical-align:middle;margin-right:6px}
#poc-demo .poc-say{font-size:14px;line-height:1.5}
#poc-demo .poc-warn{font-size:12.5px;color:var(--muted);border-left:3px solid var(--faint);padding-left:8px}
#poc-demo .poc-rt .poc-ln{display:none}
@media (min-width:1100px){#poc-demo .poc-rt .poc-ln{display:inline}}
#poc-demo .poc-rt .poc-dn{color:var(--muted);font-size:12px}
@media (min-width:1000px) and (max-width:1099px),(max-width:420px){#poc-demo .poc-rt td.ci{font-size:11px}}
/* table toggle */
#poc-demo .poc-tbl summary{cursor:pointer;font-family:var(--mono);font-size:12.5px;color:var(--muted);width:max-content}
#poc-demo .poc-tblwrap{overflow-x:auto;margin-top:8px}
#poc-demo .poc-full{border-collapse:collapse;font-family:var(--mono);font-size:12px;min-width:560px}
#poc-demo .poc-full caption{text-align:left;font-family:var(--sans);font-size:13px;color:var(--muted);padding-bottom:6px}
#poc-demo .poc-full th,#poc-demo .poc-full td{padding:3px 8px;text-align:right;border-bottom:1px solid var(--line)}
#poc-demo .poc-full thead th{font-weight:500;color:var(--muted)}
#poc-demo .poc-full tr.sh td,#poc-demo .poc-full tr.sh th{color:var(--muted)}
#poc-demo .poc-full tr[aria-current] th,#poc-demo .poc-full tr[aria-current] td{background:var(--panel)}
#poc-demo .poc-tnote{margin:4px 0 0;font-size:12px;color:var(--muted)}
/* notes */
#poc-demo .poc-notes{margin:0;padding-left:20px;font-size:14.5px;display:flex;flex-direction:column;gap:4px}
#poc-demo .poc-foot{margin:0;font-size:12.5px;color:var(--muted)}
/* narrow screens: with the estimator column the readout table is tight; smaller type, name over value */
@media (max-width:600px){
  #poc-demo .poc-rt.est{font-size:12.5px}
  #poc-demo .poc-rt.est th,#poc-demo .poc-rt.est td{padding:4px 3px}
  #poc-demo .poc-rt.est td.est{white-space:normal;line-height:1.25}
  #poc-demo .poc-rt.est td.est .poc-en{font-size:10.5px}
}
