:root{--ink:#222;--muted:#666;--rule:#e5e5e5;--code:#f5f5f5}
*{box-sizing:border-box}
body{margin:0;background:#fff;color:var(--ink);font:16px/1.6 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
main{max-width:760px;margin:0 auto;padding:0 16px 48px}
a{color:inherit;text-decoration-color:rgba(0,0,0,.35);text-underline-offset:3px}
a:hover{text-decoration-color:rgba(0,0,0,.8)}
a:focus-visible,button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.skip{position:absolute;left:-9999px}.skip:focus{left:16px;top:8px;background:#fff;padding:8px}
.hero{text-align:center;padding:56px 0 8px}
h1{font-size:clamp(1.9rem,5vw,2.75rem);line-height:1.15;font-weight:600;margin:0 0 20px}
.authors{font-size:1.2rem;margin:0 0 4px}
.affiliations,.venue{color:var(--muted);font-size:.95rem;margin:0}
.venue{margin-top:6px}
.links{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:24px 0 0}
.button{display:inline-block;padding:.45em 1.15em;border-radius:999px;background:var(--ink);color:#fff;text-decoration:none;font-size:.95rem;border:1px solid var(--ink)}
.button:hover{background:#000;color:#fff}
.button.off{background:#fff;color:var(--muted);border-color:#ccc;cursor:default}
h2{font-size:1.6rem;font-weight:600;line-height:1.25;margin:56px 0 16px;padding-bottom:6px;border-bottom:1px solid var(--rule)}
h3{font-size:1.05rem;font-weight:600;margin:24px 0 8px}
.note,figcaption,caption{color:var(--muted);font-size:.875rem}
figure{margin:40px 0 0}
figcaption{margin-top:12px;text-align:left}
.wide{width:min(960px,100vw - 32px);position:relative;left:50%;transform:translateX(-50%)}
.replay-maps{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.replay-maps canvas{width:100%;height:auto;display:block;border:1px solid var(--rule)}
.replay-maps h3{font-size:.9rem;font-weight:600;margin:0 0 6px;padding-left:8px;border-left:4px solid var(--ink)}
.replay-maps h3 span{font-weight:400}
.legend{list-style:none;display:flex;flex-wrap:wrap;gap:6px 18px;padding:0;margin:4px 0 0;font-size:.8rem;color:var(--muted)}
.legend i{display:inline-block;width:12px;height:12px;margin-right:6px;vertical-align:-1px}
.legend b{margin-right:2px;font-size:.9rem}
.replay-maps strong{font-weight:600}
.replay-controls{display:flex;align-items:center;gap:14px;margin:14px 0 4px}
.replay-controls input{flex:1;accent-color:#555}
#replay-chart{max-width:760px;margin:8px auto 0}
.replay-controls span{font-size:.875rem;color:var(--muted);min-width:9.5em;text-align:right;font-variant-numeric:tabular-nums}
button{font:inherit;color:var(--ink);background:#fff;border:1px solid var(--ink);border-radius:999px;padding:.3em 1.1em;cursor:pointer}
button:disabled{color:#aaa;border-color:#ccc;cursor:default}




.track{position:relative;display:inline-block;width:calc(100% - 4.5em);height:12px;background:#f1f3f5;border-radius:2px;vertical-align:middle}
.fill{position:absolute;top:0;bottom:0;border-radius:2px}

.value{display:inline-block;width:4.5em;text-align:right;font-variant-numeric:tabular-nums}

td button{text-align:left;border:0;padding:0;text-decoration:underline;text-decoration-color:rgba(0,0,0,.35);text-underline-offset:3px;border-radius:0}
svg{width:100%;height:auto;display:block}
svg .axis{font-size:12px;fill:var(--muted)}
.controls{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0}
label{font-size:.8rem;color:var(--muted)}
select{display:block;width:100%;margin-top:4px;font:inherit;font-size:.9rem;color:var(--ink);background:#fff;border:1px solid #ccc;border-radius:4px;padding:8px 6px}




.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:.875rem;margin:12px 0 20px}
caption{text-align:left;margin-bottom:6px}
td,th{text-align:left;padding:8px 10px 8px 0;border-bottom:1px solid var(--rule);white-space:nowrap;font-variant-numeric:tabular-nums}
th{font-weight:600}
details{margin:12px 0}
summary{cursor:pointer;font-weight:500}
pre{overflow-x:auto;background:var(--code);padding:1rem 1.25rem;font-size:13px;line-height:1.5;border-radius:4px}
footer{max-width:760px;margin:0 auto;padding:24px 16px 40px;border-top:1px solid var(--rule);color:var(--muted);font-size:.85rem;text-align:center}
@media(max-width:640px){.replay-maps{grid-template-columns:1fr}.controls{grid-template-columns:1fr 1fr}.hero{padding-top:36px}}
#provenance{white-space:pre-wrap;overflow-wrap:anywhere}
.summary{font-size:1.15rem;line-height:1.55;margin:18px 0 4px}
.summary strong{font-variant-numeric:tabular-nums}
svg .head{font-size:13px;font-weight:600;fill:#222}
svg text{font-size:12px}
svg .strong{font-weight:600}
.overview{font-size:.85rem}
.overview th{text-align:center;font-weight:600;padding:4px}
.overview th.f2{color:#b5482a}
.overview tbody th{text-align:left}
.overview td{padding:2px 12px 2px 8px;border-bottom:1px solid #eee;border-left:1px solid #eee}
.overview td.family-start,.overview th.family-start{border-left:2px solid #999}
.overview thead tr:first-child th{border-bottom:1px solid #ccc}
.overview thead tr:first-child th+th{border-left:2px solid #999}
.figure-scroll{overflow-x:auto}
.figure-scroll svg{min-width:600px}
.overview .cell{text-decoration:none;display:flex;align-items:center;gap:6px;width:100%;min-width:92px;border:0;border-radius:0;padding:4px 0;background:none}
.overview .cell:hover .track{background:#e9ecef}
.track{position:relative;flex:1;height:10px;background:#f3f4f5}
.fill{position:absolute;left:0;top:0;bottom:0}
.tick{position:absolute;top:-3px;bottom:-3px;width:2px;background:#999}
.value{width:2.2em;text-align:right;font-variant-numeric:tabular-nums}
.value.zero{color:#aaa}
.glossary{display:grid;grid-template-columns:max-content 1fr;gap:4px 14px;font-size:.875rem;margin:16px 0 0}
.glossary dt{font-weight:600}
.glossary dd{margin:0;color:var(--muted)}
@media(max-width:640px){.glossary{grid-template-columns:1fr}.glossary dd{margin-bottom:6px}}
.toggles{display:flex;flex-wrap:wrap;gap:10px 24px;margin:8px 0}
.toggles [role=group]{display:flex;gap:6px}
.toggles button{padding:.25em .9em;font-size:.9rem;border-color:#bbb}
.toggles button[aria-pressed=true]{background:var(--ink);color:#fff;border-color:var(--ink)}
.explain{min-height:4.8em;font-size:.95rem;margin:8px 0}
.narrow-caption{max-width:728px}
#slope{max-width:720px}
#subset-figure svg text{font-size:13px}
@media(max-width:640px){.toggles button{min-height:44px;min-width:44px}.overview .cell{min-height:44px}.links .button{min-height:44px;line-height:1.9}}
.site-bar{max-width:960px;margin:0 auto;padding:14px 16px 0;display:flex;gap:8px;font-size:.875rem;color:var(--muted)}
.site-bar a{text-decoration:none}
.site-bar a:hover{text-decoration:underline}
.site-bar a:first-child{font-weight:600;color:var(--ink)}
