.stats-main{max-width:56rem;margin-inline:auto;padding-bottom:3rem}
.stats-main .page-heading{margin-bottom:1.35rem}
.stats-main h2{font-size:clamp(1.35rem,3.8vw,2rem);line-height:1.4}
.stats-main h3{font-size:1.1rem}
.stats-main a{color:#20554d;text-underline-offset:.22em}
.stats-routes,.exam-tags,.stats-switch{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem 1rem}
.stats-routes a,.exam-backrefs a,.exam-location a,.exam-tags a{display:inline-flex;align-items:center;min-height:44px}
.stats-routes{margin:.65rem 0}
.stats-routes a{font-weight:600}
.exam-conclusion,.stats-panel{margin:1.1rem 0 1.5rem;padding:clamp(1rem,3vw,1.7rem);background:var(--white);border:1px solid var(--line);border-top:3px solid var(--teal);border-radius:4px}
.exam-conclusion h2,.stats-panel h2{margin:.35rem 0 .7rem}
.exam-conclusion h3{margin-top:1.1rem}
.stats-main .math-block{max-width:100%;margin:1rem 0;overflow-x:auto}
.exam-section{margin:2rem 0}.exam-section h2{margin-bottom:.65rem}
.exam-question{border-top:1px solid var(--line);padding:1.1rem 0}
.exam-question:first-of-type{margin-top:1rem}
.exam-question ul,.exam-backrefs{padding-left:1.35rem}
.exam-question li{margin-block:.35rem .75rem}
.exam-question li strong{font-size:.9rem;color:var(--teal);margin-right:.1em}
.exam-tags{gap:0 1rem}
.exam-tags a{min-height:36px;font-size:.9rem}
.exam-location,.exam-backrefs small{color:var(--muted)}
.evidence-list{margin:.4rem 0}.evidence-list>div{padding:.75rem 0;border-bottom:1px solid var(--line)}
.evidence-list dt{font-weight:700}.evidence-list dd{margin:.15rem 0}
.stat-values{width:100%;border-collapse:collapse;text-align:right;font-variant-numeric:tabular-nums;margin:.6rem 0 1rem}
.stat-values caption{color:var(--muted);text-align:left;margin-bottom:.5rem}
.stat-values td,.stat-values th{padding:.45rem .4rem;border-bottom:1px solid var(--line);white-space:normal}.stat-values th:first-child{text-align:left}
.stats-switch{margin:1.1rem 0}.stats-switch button{border:1px solid var(--teal);background:var(--white);color:var(--teal);padding:.45rem .8rem;border-radius:4px;min-height:44px}
.stats-switch [aria-pressed="true"]{background:var(--teal);color:white}
.stats-main [hidden]{display:none!important}
.stats-panel details{margin-top:.75rem}.stats-panel details summary{padding:.65rem 0;cursor:pointer}
.stats-panel article{padding-block:1rem}.stat-result strong{font-size:1.15rem;color:var(--teal)}.stats-panel .source-line{margin-top:.7rem}
.stats-neighbors{border-top:1px solid var(--line);justify-content:space-between;padding-top:.7rem}
.stats-main input[type=file]{max-width:100%}
@media(max-width:500px){.stats-main .page-heading h1{font-size:2rem}.stats-routes{gap:0 .8rem}.stat-values{font-size:.91rem}.exam-location a{min-height:44px}.exam-tags a{min-height:44px}}
.stats-main h1,.stats-main h2{text-wrap:balance}.stat-book-figures{margin-block:.65rem}.stat-book-figures summary{cursor:pointer;padding:.5rem 0}.stat-book-figures li{padding:.2rem 0}
