
/* Preserve layout while allowing grids, diagrams and formulas to shrink on narrow screens. */
.crest-icon{display:inline-block;width:1em;height:1em;vertical-align:-.12em;flex-shrink:0}
.katex-display{max-width:100%;overflow-x:auto;overflow-y:hidden;padding:3px 0}
.eq-card,.skill-card,.graph-cell,.diagram-box,.diagram-text,.qcard,.frqcard,.metric{min-width:0;max-width:100%}
.hand-drawn,.practice-fig,.arena-fig{max-width:100%;height:auto}.table-wrap{position:relative;max-width:100%;overflow-x:auto}
.figure-scroll{max-width:100%;overflow-x:auto;position:relative}.figure-scroll:focus-visible{outline:2px solid #1e88e5;outline-offset:2px}
button:disabled{cursor:default}.saved-response{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:760px){.diagram-box{min-width:0!important;flex-basis:100%!important}.diagram-container{padding:10px}.diagram-text{flex-basis:100%}.notes-table{font-size:.84rem}.notes-table th,.notes-table td{padding:6px}.figure-scroll .practice-fig,.figure-scroll .arena-fig{min-width:450px;max-width:none;width:450px}.figure-scroll .hand-drawn{min-width:var(--diagram-min,360px);max-width:none}.figure-scroll:before{content:'Scroll diagram ↔';display:block;text-align:right;font:500 .7rem Inter,Arial,sans-serif;color:#607d8b}.figure-scroll:has(.arena-fig):before{color:#9eb0c8}}
@media(max-width:760px){.notebook-page,.page{padding-top:60px}h1.chapter-title{font-size:clamp(1.7rem,7.5vw,2.05rem);line-height:1.3}}
@media print{.katex-display{overflow:visible}.arena-fig,.practice-fig{break-inside:avoid}.saved-response{color:#111}.arena-fig{background:#fff}.arena-fig text{fill:#203855}.arena-fig line,.arena-fig path,.arena-fig polyline{stroke:#203855}.arena-fig polygon,.arena-fig circle{fill:#203855}}
\n
.practice-feedback,.structured-solution{max-width:100%;overflow-x:auto;overflow-y:hidden}
.practice-response-label{display:block;font:600 .82rem Inter,Arial,sans-serif;margin:12px 0 6px}.practice-response{width:100%;min-height:125px;resize:vertical;font:1rem Kalam,cursive;color:var(--blue-ink);background:#fffef8;border:1px solid #90caf9;border-radius:7px;padding:12px;margin-bottom:10px}.practice-response:focus{outline:2px solid #1e88e5}.practice-options li[aria-disabled=true]{cursor:default}.practice-section,.practice-question,.review,.part,.choice-card{min-width:0;max-width:100%}.saved-response{white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0}
@media(max-width:760px){.practice-section{padding-top:60px}h1.chapter-title{font-size:clamp(1.7rem,7.5vw,2.05rem)!important}.graph-grid-2{grid-template-columns:1fr}.metric{overflow-wrap:anywhere}}
@media print{.structured-solution:not(.show),.practice-feedback:not(.show){display:none!important}.structured-solution.show,.practice-feedback.show{display:block!important}#arena,#landing{display:none!important}#results:not(.hidden){display:block!important}.controls,.self-buttons,#resetPractice{display:none!important}.saved-response{color:#111}.review{break-inside:avoid}.figure-scroll{overflow:visible}.figure-scroll:before{display:none!important}}
.frq-card{min-width:0}.frq-part{overflow-wrap:anywhere}.frq-solution{overflow-x:auto}.practice-response{box-sizing:border-box;max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere}
@media print{.frq-solution:not(.show){display:none!important}.practice-response{border:1px solid #999!important}.frq-card{break-inside:avoid}}
