/* Classroom proof paths and on-demand navigation. */
.shell{display:block;min-height:calc(100vh - 65px)}
main{max-width:1550px;margin:0 auto;padding:22px 24px 0}
.columns{grid-template-columns:minmax(330px,.92fr) minmax(460px,1.25fr);align-items:start}
.page-intro .columns{grid-template-columns:minmax(300px,.78fr) minmax(500px,1.22fr)}
.top{gap:18px}
.top nav{align-items:center;gap:12px}
.top nav button{border:1px solid #cbdcc9;background:#eef4e8;color:#36674b;border-radius:8px;padding:8px 12px;font-size:13px;min-height:38px}
.top nav button[aria-expanded="true"]{background:#dcebd8;border-color:#668e66}
.lesson-nav{position:fixed;inset:0 auto 0 0;margin:0;height:100dvh;max-height:100dvh;max-width:min(370px,92vw);width:370px;border:0;border-right:1px solid #cbdcc6;background:#f6f7ef;color:#2d4838;padding:18px;box-shadow:12px 0 50px #24472a22}
.lesson-nav::backdrop{background:#1e342b38}
.lesson-nav:not([open]){display:none}
.lesson-nav-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.lesson-nav-head h2{font-size:20px;margin:0;font-weight:600}
.lesson-nav-head button{border:1px solid #cbdcc6;border-radius:7px;background:#edf3e8;color:#426f4d;padding:8px 12px;min-height:38px}
.lesson-nav #steps{display:grid;width:auto;gap:5px;margin-top:18px}
.lesson-nav .step{width:100%;min-height:44px}
.translation-tools{display:flex;align-items:center;flex-wrap:wrap;gap:9px 12px;padding:12px 15px;margin:0 0 17px;border:1px solid #d9e5d5;border-radius:12px;background:#edf3e8}
.translation-tools>span{font-size:13px;font-weight:600;color:#50735a}
.translation-directions{display:flex;gap:5px;flex-wrap:wrap}
.translation-directions button{border:1px solid #cbdcc9;border-radius:7px;background:#f9fbf4;color:#55745a;padding:7px 10px;min-height:38px;font-size:14px}
.translation-directions button.active{background:#3e7655;color:#fffef5;border-color:#3e7655}
.translation-tools label{display:flex;align-items:center;gap:7px;font-size:13px;color:#55745a}
.translation-tools input{font:inherit;width:72px;min-height:38px;border:1px solid #c4d5c0;border-radius:7px;background:#fffefa;padding:6px 7px;color:#345b42}
.translation-tools .translation-hint{font-size:12px;color:#748a77;flex:1 1 190px}
.translation-tools .translation-hint.is-error{color:#9a5435}
.proof-question{font-size:21px;line-height:1.85;margin:9px 0 14px}
.proof-question .katex{font-size:1.09em}
.selected-point-note{font-size:13px;color:#6e8472;margin:10px 0;line-height:1.8}
.selected-point-note .katex{color:#376950}
.teaching-path{display:grid;grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr);grid-template-rows:minmax(90px,auto) 33px minmax(100px,auto);align-items:stretch;gap:0;margin:16px 0 12px}
.path-node{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:12px 9px;border:1px solid #dce7d4;border-radius:11px;min-width:0;background:#f8faf2;transition:background .2s,border-color .2s}
.path-node-label{font-size:12px;color:#718976;margin-bottom:7px}
.path-node-math{display:grid;gap:5px;color:#355f43;max-width:100%;font-size:18px}
.path-node-math .katex{font-size:1.02em}
.path-node.pending{border-style:dashed;background:transparent}
.path-node.pending .path-node-math{color:#bcc8b6}
.path-node-0{grid-column:1;grid-row:1}
.path-node-1{grid-column:3;grid-row:1}
.path-node-2{grid-column:3;grid-row:3}
.path-node-3{grid-column:1;grid-row:3}
.path-node-0.revealed,.path-node-3.revealed{background:#fcf2e2;border-color:#dfc49a}
.path-node-0.revealed .path-node-math,.path-node-3.revealed .path-node-math{color:#98642e}
.path-node-1.revealed,.path-node-2.revealed{background:#eaf3e5;border-color:#b7d1ab}
.path-edge{display:grid;place-items:center;color:#b9c8b2;font-size:26px;font-weight:400;line-height:1}
.path-edge.reached{color:#547d4d}
.path-edge-top{grid-column:2;grid-row:1}
.path-edge-down{grid-column:3;grid-row:2}
.path-edge-back{grid-column:2;grid-row:3}
.path-direct{grid-column:1;grid-row:2;display:flex;align-items:center;justify-content:center;position:relative;color:#9aaa95;font-size:11px}
.path-direct:before{content:"";position:absolute;top:0;bottom:0;left:50%;border-left:1px dashed #c0ccb7}
.path-direct span{position:relative;background:#fffefa;padding:1px 7px}
.proof-result{padding:12px 14px;background:#f1f5e9;border-left:3px solid #73966c;border-radius:7px;font-size:18px;line-height:1.9;margin-top:13px}
.proof-result .katex{font-size:1.04em}
.proof-result>div+div{margin-top:5px}
.proof-cue{font-size:14px;line-height:1.8;color:#657d69;margin:12px 0 0}
.path-heading{font-size:15px;color:#5c7a60;margin:16px 0 0;font-weight:600}
.intro-general{margin-top:22px;padding-top:4px;border-top:1px solid #e0e8d8}
.intro-general .teaching-path{margin-top:12px}
.intro-general[hidden]{display:none}
.intro-paths .teaching-path{grid-template-rows:minmax(74px,auto) 24px minmax(85px,auto);margin-top:10px}
.intro-paths .path-node{padding:9px}
.intro-paths .path-node-math{font-size:18px}
.intro-paths h2{font-size:18px}
.general-hint{padding:13px 15px;background:#f8f2e6;border-radius:9px;color:#7f6b42;font-size:14px}
.village-slot{height:clamp(330px,43vh,480px)}
.village-card #town-controls{padding:8px 6px}
.scene-tools{margin:0 0 8px}
.town-inputs input{max-width:76px}
.town-caption b{font-size:18px}
.town-toolbar{gap:5px}
.town-toolbar button{font-size:14px;padding:7px 9px}
.town-task .town-story{font-size:13px}
.town-summary{font-size:15px}
.map-summary-button{border:1px solid #c8d9c2;background:#eaf2e3;color:#38694a;border-radius:9px;padding:11px 16px;min-height:44px;font:inherit}
footer{z-index:8}
footer .soft{white-space:nowrap}
@media(max-width:1150px){.columns,.page-intro .columns{grid-template-columns:minmax(300px,.9fr) minmax(400px,1.2fr)}main{padding:18px 18px 0}.translation-tools{padding:10px}.path-node-math{font-size:17px}.proof-question{font-size:20px}}
@media(max-width:900px){.columns,.page-intro .columns{grid-template-columns:1fr}.top{height:auto;min-height:65px;flex-wrap:wrap;padding:12px 16px;gap:9px 16px}.top nav{gap:8px;flex-wrap:wrap}.top>span{display:none}main{padding:16px 14px 0}.village-slot{height:420px}.translation-tools{gap:8px}.intro-paths .teaching-path{grid-template-rows:minmax(80px,auto) 25px minmax(90px,auto)}}
@media(max-width:600px){.top nav{margin-left:0;width:100%;justify-content:flex-start}.top nav button{font-size:12px;padding:7px 9px}.top nav a{font-size:12px}.teaching-path{grid-template-columns:minmax(0,1fr) 23px minmax(0,1fr)}.path-node{padding:9px 5px}.path-node-label{font-size:11px}.path-node-math,.intro-paths .path-node-math{font-size:15px}.path-edge{font-size:23px}.proof-question{font-size:18px}.proof-result{font-size:16px}.translation-tools .translation-hint{flex-basis:100%}.village-slot{height:340px}.translation-directions button{font-size:13px;padding:7px 9px}.town-inputs input{max-width:90px}footer{padding-bottom:12px}footer #progress{display:none}.heading h1{font-size:23px}.tag{display:none}}
@media(prefers-reduced-motion:reduce){.path-node{transition:none}}

/* Projection edition: mathematical reasoning stays readable from the back. */
body{font-size:19px}
.heading h1{font-size:34px}
.heading p{font-size:19px;line-height:1.65}
.eyebrow{font-size:16px}
.tag{font-size:16px}
.card h2,.intro-paths h2{font-size:24px}
.proof-question{font-size:26px;line-height:1.85}
.proof-question .katex{font-size:1.04em}
.selected-point-note,.proof-cue,.plot-window-note{font-size:18px;line-height:1.8}
.plot-window-note{margin:3px 7px 12px;color:#627b66}
.plot-window-note .katex{font-size:1em}
.teaching-path{grid-template-rows:minmax(118px,auto) 40px minmax(132px,auto);grid-template-columns:minmax(0,1fr) 36px minmax(0,1fr)}
.path-node{padding:14px 10px}
.path-node-label{font-size:18px}
.path-node-math,.intro-paths .path-node-math{font-size:25px}
.path-edge{font-size:32px}
.path-direct{font-size:16px}
.proof-result{font-size:25px}
.proof-result .katex{font-size:1em}
.prompt{font-size:21px;line-height:1.8}
.teacher,.story{font-size:18px;line-height:1.8}
.translation-tools{gap:12px}
.translation-tools>span,.translation-tools label{font-size:18px}
.translation-directions button{font-size:18px;min-height:46px;padding:8px 13px}
.translation-tools input{font-size:20px;min-height:46px;width:82px}
.translation-tools .translation-hint{font-size:17px}
.top nav button,.top nav a{font-size:17px}
.top nav button{min-height:44px}
.lesson-nav .step{font-size:19px}
.lesson-nav .step span{font-size:17px;width:29px;height:29px}
footer button{font-size:19px;min-height:46px}
footer #progress{font-size:17px}
.town-task{font-size:19px}
.town-caption span,.town-muted{font-size:17px}
.town-caption b{font-size:22px}
.town-stage b{font-size:20px}
.town-task .town-toolbar button,.town-task .town-inputs button,.town-task .town-stage>button{font-size:18px;min-height:46px}
.town-task input,.town-task select{font-size:19px;min-height:44px}
.town-status{font-size:19px;line-height:1.8}
.town-symbolic,.town-summary{font-size:23px;line-height:1.8}
.scene-tools button{font-size:19px;min-height:45px}
.general-example-tools{display:grid;gap:10px;padding:11px 0 4px;color:#5f7963;font-size:18px}
.general-example-tools button{justify-self:start;border:1px solid #b9cdb2;border-radius:8px;padding:9px 13px;background:#edf4e5;color:#3f704d;font:inherit;min-height:46px}
.general-example-tools:empty{display:none}
.town-caption,.town-function,.village-card .town-stage>b,.village-card .town-stage>p.town-muted{display:none}
.village-card[data-proof-mode="symbolic"] .town-stage{display:none}
.plot-window-note[hidden]{display:none}
.application-followup{margin-top:22px;padding-top:16px;border-top:1px solid #d7e4cd;font-size:21px}
.application-followup summary{cursor:pointer;color:#3d714e;font-weight:600;line-height:1.7}
.application-followup[open] summary{margin-bottom:16px}
.application-topic-tools{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.application-topic-tools button{font:inherit;font-size:20px;min-height:48px;padding:10px 15px;border:1px solid #bbd0b3;border-radius:9px;background:#f1f6e8;color:#477652}
.application-topic-tools button.active{background:#3e7655;color:#fffef5;border-color:#3e7655}
.map-summary-button,.assignment{font-size:21px}
.assignment{text-align:left;cursor:pointer}
.intro-paths .teaching-path{grid-template-rows:minmax(100px,auto) 32px minmax(118px,auto)}
@media(max-width:1150px){.proof-question{font-size:24px}.path-node-math,.intro-paths .path-node-math{font-size:23px}.heading h1{font-size:31px}.top{flex-wrap:wrap;height:auto;min-height:70px;padding-top:12px;padding-bottom:12px}.top nav{margin-left:0}.top>span{display:none}.path-node-label{font-size:17px}}
@media(max-width:650px){.heading h1{font-size:27px}.heading p{font-size:18px}.proof-question{font-size:23px}.path-node-math,.intro-paths .path-node-math{font-size:20px}.path-node-label{font-size:16px}.proof-result{font-size:22px}.teaching-path{grid-template-columns:minmax(0,1fr) 26px minmax(0,1fr)}.top nav button,.top nav a{font-size:16px}.town-task{font-size:18px}.town-symbolic,.town-summary{font-size:21px}.selected-point-note,.proof-cue,.plot-window-note{font-size:17px}.translation-directions button{font-size:17px}.translation-tools .translation-hint{font-size:16px}footer button{font-size:17px}.scene-tools button{font-size:18px}.general-example-tools{font-size:17px}}
@media(max-width:520px){
  .teaching-path,.intro-paths .teaching-path{grid-template-columns:1fr;grid-template-rows:repeat(7,auto);gap:7px}
  .path-node-0{grid-column:1;grid-row:1}.path-edge-top{grid-column:1;grid-row:2;min-height:26px}.path-edge-top span{transform:rotate(90deg)}
  .path-node-1{grid-column:1;grid-row:3}.path-edge-down{grid-column:1;grid-row:4;min-height:26px}
  .path-node-2{grid-column:1;grid-row:5}.path-edge-back{grid-column:1;grid-row:6;min-height:26px}.path-edge-back span{transform:rotate(-90deg)}
  .path-node-3{grid-column:1;grid-row:7}.path-direct{display:none}
  .path-node-math,.intro-paths .path-node-math{font-size:23px}.path-node-label{font-size:18px}
}
