.sqrt { display: inline-flex; align-items: stretch; vertical-align: middle; margin: 0 0.1em; }
.sqrt .sq-r { display: block; width: 0.62em; flex: none; position: relative; }
.sqrt .sq-r svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sqrt .sq-in { border-top: 1.3px solid currentColor; padding: 0.12em 0.15em 0.02em 0.1em; display: block; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Higher additions: load after fresh.css. Square roots in formulas, Higher simulation extras. */

.mo-graphs svg { width: 250px; max-width: 32%; }
@media (max-width: 760px) { .mo-graphs svg { max-width: 48%; } }
@media (max-width: 520px) { .mo-graphs svg { max-width: 100%; } }
.dyn .body.alt { fill: #4A2F5C; }
.sl-cap { margin: 6px 0 0; text-align: center; font-family: var(--mono); font-size: 0.74rem; color: var(--bench-dim); }
.bench .graph .area.alt { fill: #8FD9A8; opacity: .14; }
.bench .graph .pt { stroke: var(--amber); stroke-width: 2; }
.lvl-badge { display: inline-block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--acc-soft); color: var(--acc-ink); }
/* question stems: inline maths must stay in the sentence (grid would split text and formulas into rows) */
.qstem { display: block; }
.qstem > * + *:not(span):not(i):not(b):not(br):not(sub):not(sup) { margin-top: 8px; }
.fm .fn { font-size: 0.95em; }
