.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; }
/* nuclide notation: mass number over atomic number, written before the symbol */
.fm .nuc { display: inline-flex; flex-direction: column; align-items: flex-end; font-size: 0.62em; line-height: 1.05; vertical-align: 0.4em; margin-right: 1px; font-style: normal; }
.bench .nuc { display:inline-flex; flex-direction:column; align-items:flex-end; font-size:0.62em; line-height:1.05; vertical-align:0.4em; margin-right:1px; }
.nu-eq { font-family: var(--mono); font-size: 1.7rem; color: var(--bench-ink); text-align: center; padding: 10px 0 4px; min-height: 2.4em; }
/* integral sign with limits (Advanced Higher) */
.fm .int { display: inline-flex; align-items: center; font-size: 1.35em; font-style: normal; line-height: 1; margin-right: .05em; }
.fm .int-l { display: inline-flex; flex-direction: column; justify-content: space-between; font-size: .5em; margin-left: .1em; line-height: 1; height: 2.1em; }
.bench .bench-note { max-width: none; }
