:root{font:22px/1.5 system-ui,sans-serif;color:#17181d;background:#f2ede3}*{box-sizing:border-box}body{margin:0}nav{display:flex;gap:.5rem;align-items:center;padding:.6rem 1rem;background:#e5dded;font-size:16px;flex-wrap:wrap}button,select{font:inherit;padding:.5rem;border:1px solid #9a89a6;border-radius:7px;background:white;color:#32213e;max-width:100%}button{cursor:pointer}button:disabled{opacity:.45}button:focus-visible,select:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #146d70;outline-offset:3px}#status{font-size:14px;margin:.4rem 1rem}main{max-width:1200px;padding:1rem 2rem;margin:auto}h1{font:700 1.5em/1.2 Georgia,serif;margin:.4em 0}table{border-collapse:collapse;width:100%;margin:1rem 0}td,th{padding:.6rem;border:1px solid #bbb;text-align:left;vertical-align:top}.problem,.equation{background:#e6deee;padding:1rem;border-left:5px solid #482e63;margin:1rem 0}details{background:#fff9ef;margin:.7rem 0;padding:.6rem}summary{cursor:pointer}svg{width:100%;max-height:55vh;display:block}.diagram-viewport{overflow:auto}.diagram-hint{font-size:.65em}figcaption strong,figcaption span{display:block}figure{margin:0}.stage-controls{display:flex;gap:.5rem}[hidden]{display:none!important}@media(max-width:700px){:root{font-size:18px}main{padding:1rem}table{font-size:.85em}}@media print{nav,#status,button{display:none}main{padding:0}svg{max-height:none}}
.concise-board{background:#fff;color:#17181d;padding:18px;border-radius:5px}.concise-board .situation{margin:0 0 14px}.concise-board figcaption{font-size:18px;line-height:1.4;margin-top:12px}.concise-board svg{max-height:330px}.concise-board .stage-controls{margin-bottom:12px;flex-wrap:wrap}@media(max-width:700px){.concise-board{padding:12px}.concise-board figcaption{font-size:17px}.concise-board svg{min-height:120px;max-height:none}}@media print{.concise-board{padding:0}.concise-board svg{max-height:none}}
.diploma-connection{border-left:4px solid #482e63;padding:.2rem 1rem;margin:1rem 0;background:#eae3f0}.diploma-connection>p:first-child{font-size:.85em}.explanation>summary{font-weight:600}.stage-controls{flex-wrap:wrap}


.physics-workspace>.diagram-hint{display:none}@media(max-width:700px){.physics-workspace>.diagram-hint{display:block}.physics-workspace .visual-stage{overflow-x:auto}.physics-workspace .visual-stage svg{min-width:700px;max-height:none!important}}

nav>label{min-width:0;max-width:100%}

/* Keep the exit route available while scrolling and in fullscreen. */
body>nav{position:sticky;top:0;z-index:20}
#back-lessons{display:inline-flex;align-items:center;min-height:44px;padding:.5rem .7rem;border:1px solid #9a89a6;border-radius:7px;background:white;color:#32213e;text-decoration:none;white-space:nowrap}
#back-lessons:hover{background:#f2ede3}
body>nav>label{display:flex;align-items:center;gap:.4rem;flex:1 1 18rem;min-width:0}
body>nav #jump{flex:1;min-width:0;width:100%}

.video-links{background:#e9e1f3;border-left:5px solid #482e63;padding:.4rem 1rem;margin:.6rem 0;font-size:.7em}.video-links ul{margin:.2rem 0 0;padding-left:1.2rem}.video-links span{color:#555}@media print{.video-links{display:none}}

/* Fit-to-screen class display (9 Nov 2026): on a laptop or projector the slide is two columns (diagram left, text right),
   the top bar is compact, and fit.js picks the largest text size that fits without scrolling. Phones keep the stacked layout. */
.method-steps{list-style:none;counter-reset:ms;padding:0;margin:.3em 0}
.method-steps li{counter-increment:ms;display:flex;gap:.6em;align-items:flex-start;margin:.25em 0}
.method-steps li::before{content:counter(ms);flex:0 0 1.6em;height:1.6em;border-radius:50%;background:#482e63;color:#fff;font-weight:700;display:grid;place-items:center;font-size:.85em}
.method-steps.method-run li::before{content:none}
.step-badge{flex:0 0 3.6em;height:1.5em;border-radius:.75em;background:#482e63;color:#fff!important;display:grid;place-items:center;font-size:.75em}
.method-steps b{color:#482e63}.method-steps li>span{display:block}.method-check{border:2px solid #482e63;border-radius:8px;padding:.4em .7em;margin:.4em 0;background:#fff}.method-reuse{font-size:.8em;margin:.2em 0}
.visual-stage figcaption li strong,.visual-stage figcaption li span,.visual-stage figcaption p strong,.visual-stage figcaption p span{display:inline}
/* Chemistry numbered steps (rule T8): the bold action stays on the step's own line. */
.concise-board .sequence figcaption ol>li strong{display:inline}
/* Chemistry: the "Symbols in this lesson" box on a lesson's first slide (rule T6). Colours are the context GLASS and METER values in docs/standards/settings.json. */
.symbols-box{margin:.3em 0 .5em;padding:.35em .8em;border:1px solid #8a9099;border-radius:10px;background:#eef0f3;font-size:.8em;line-height:1.3}.symbols-box strong{display:block}.symbols-box ul{margin:.1em 0 0;padding-left:1.2em;columns:2;column-gap:2em}.symbols-box li{margin:.05em 0;break-inside:avoid}
/* Chemistry captions: a bold word inside a sentence or bullet stays on its line, as in physics. The Diploma connection label keeps its own line. */
.concise-board .sequence figcaption p:not(.diploma-connection) strong,.concise-board .sequence figcaption ul>li strong{display:inline}
.method-steps li>span{display:block}
@media (min-width:900px) and (min-height:480px){
 :root{font-size:22px}
 body>nav{padding:.3rem .75rem;gap:.4rem;font-size:15px}
 body>nav button,body>nav select,body>nav #back-lessons{padding:.25rem .55rem;min-height:34px}
 #status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);margin:0}
 main{max-width:none;padding:.4rem 1.25rem .5rem;font-size:var(--fit,22px)}
 main h1{font-size:1.2em;margin:.1em 0 .15em}
 .stage-controls{margin:0 0 .3rem}.stage-controls button{padding:.2rem .6rem;font-size:.7em}
 .visual-sequence .visual-stage:not([hidden]){display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);column-gap:1.5rem;align-items:start}
 .visual-stage>.situation{grid-column:1/-1;margin:0 0 .4em;font-size:.9em}
 .visual-stage>svg{grid-column:1;max-height:calc(100vh - 200px);width:100%;height:auto}
 .visual-stage>figcaption{grid-column:2;margin:0;font-size:1em;line-height:1.35}
 .visual-stage:not(:has(>svg))>figcaption{grid-column:1/-1}
 .visual-stage figcaption h2{font-size:1.15em;margin:0 0 .25em}
 .visual-stage figcaption p{margin:.3em 0}.visual-stage figcaption ul,.visual-stage figcaption ol{margin:.3em 0;padding-left:1.3em}.visual-stage figcaption li{margin:.12em 0}
 .visual-stage figcaption details{margin:.35em 0;padding:.35em .6em}
 .visual-stage>svg[viewBox$=' 200']{grid-column:1/-1;max-height:22vh;margin:0 auto .3em}
 .visual-stage:has(>svg[viewBox$=' 200'])>figcaption{grid-column:1/-1}
 .concise-board .visual-stage figcaption{font-size:1em}.concise-board svg{max-height:calc(100vh - 200px)}
 /* Chemistry boards (rule V3): board on the left, caption on the right, as the physics pictures already are. */
 .concise-board .sequence>figure[data-stage]:not([hidden]){display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);column-gap:1.5rem;align-items:start}
 .concise-board .sequence>figure[data-stage]>svg{grid-column:1;width:100%;height:auto}
 .concise-board .sequence>figure[data-stage]>figcaption{grid-column:2;margin:0;font-size:1em;line-height:1.35}
 .concise-board .sequence>figure[data-stage] figcaption p{margin:.3em 0}.concise-board .sequence>figure[data-stage] figcaption ul,.concise-board .sequence>figure[data-stage] figcaption ol{margin:.3em 0;padding-left:1.3em}.concise-board .sequence>figure[data-stage] figcaption li{margin:.12em 0}
 .concise-board .situation{margin:0 0 .4em;font-size:.9em}
}
