[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.guide-back{display:inline-flex;align-items:center;gap:8px;font-size:14px;white-space:nowrap}
.guide-back svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.construction-main{max-width:1320px;margin:auto;padding:0 48px}
.construction-intro{padding:56px 0 32px;display:grid;grid-template-columns:1.15fr 1fr;gap:56px;align-items:end}
.construction-intro h1{font-size:clamp(44px,5vw,68px)}
.construction-intro p{font-size:19px;color:var(--muted);max-width:32ch}
.construction-workbench{display:grid;grid-template-columns:1.15fr 1fr;gap:56px;align-items:center}
.diagram-panel{background:var(--white,#fff);border-radius:16px;padding:20px;min-width:0}
.diagram-panel svg{display:block;width:100%;max-height:420px;aspect-ratio:1;overflow:visible}
.diagram-panel figcaption{font-size:12px;text-align:center;color:var(--muted);padding:8px 0}
.construction-grid{fill:none;stroke:var(--line);stroke-width:.12;pointer-events:none}
.construction-grid .axis{stroke:#a5b1ac;stroke-width:.2}
.construction-grid text{font:1.8px 'DM Sans';fill:var(--muted);stroke:none}
.curve-handles{fill:var(--paper);stroke:var(--blue);stroke-width:.2;pointer-events:none}
.curve-handles rect{fill:var(--blue)}
.body-outline{fill:none;stroke:var(--ink);stroke-width:.6;stroke-linecap:round}
.orbit-outline{fill:none;stroke:var(--blue);stroke-width:.5}
.orbit-guides{fill:none;stroke:var(--blue);stroke-width:.2;stroke-dasharray:1 1;pointer-events:none}
.orbit-guides circle{fill:var(--blue);stroke:none}
.construction-story h2{font-size:36px}
.construction-story>p:not(.sr-only){font-size:16px;line-height:1.6;margin-top:12px;color:var(--muted);max-width:43ch;min-height:3.2em}
.step-readout{display:flex;gap:16px;font-size:12px;color:var(--muted);padding:12px 0 24px;font-variant-numeric:tabular-nums}
.step-readout>span:first-child{color:var(--blue);font-weight:550;white-space:nowrap}
.play-controls{display:flex;gap:12px;margin-bottom:20px}
#play-construction{min-width:158px}
.progress-label output{font-variant-numeric:tabular-nums}
.progress-label{display:flex;justify-content:space-between;font-size:13px}
.construction-controls input[type=range]{width:100%;height:36px;margin:4px 0 0;accent-color:var(--blue);cursor:pointer}
.construction-controls .hint{margin-top:0;font-size:12px}
.guides-control{display:flex;align-items:center;gap:10px;font-size:14px;margin-top:8px;min-height:44px;cursor:pointer}
.guides-control input{width:18px;height:18px;accent-color:var(--blue)}
.construction-steps{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;margin-top:20px}
.construction-steps button{border:0;border-bottom:2px solid var(--line);background:transparent;color:var(--muted);padding:14px 0;text-align:left;min-height:48px}
.construction-steps button span{font-size:12px;margin-right:10px}
.construction-steps button[aria-pressed=true]{border-color:var(--blue);color:var(--blue);font-weight:550}
.construction-steps button:hover{color:var(--ink);border-color:var(--ink)}
.recipe-section{margin-top:24px}
.recipe-section .table-scroll table{min-width:0}
.recipe-section .table-scroll th{min-width:88px;width:28%}
.math-details{margin-top:32px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.math-details summary{cursor:pointer;padding:20px 0;font-weight:550;min-height:44px}
.math-details summary:focus-visible{outline:3px solid var(--blue);outline-offset:6px}
.math-details>div{padding:8px 0 24px}
.math-details p{color:var(--muted)}
.math-details pre{padding:24px;background:var(--sky);border-radius:8px;font-size:14px;overflow:auto;line-height:1.8}
.recipe-downloads{display:flex;align-items:center;gap:28px;flex-wrap:wrap;margin-top:32px;font-size:14px}
html{scrollbar-color:#a8b2a7 var(--paper)}input{caret-color:var(--blue)}
@media(max-width:900px){
 .construction-main{padding:0 32px}.construction-intro,.construction-workbench{gap:32px}
 .construction-story h2{font-size:32px}.construction-intro p{font-size:18px}
 .construction-story>p:not(.sr-only){min-height:4.8em}
}
@media(max-width:680px){
 .construction-main{padding:0 20px}.construction-intro{grid-template-columns:1fr;gap:16px;padding:32px 0 24px}
 .construction-intro h1{font-size:46px}.construction-intro p{font-size:17px;max-width:34ch}
 .construction-workbench{grid-template-columns:1fr;gap:24px}.diagram-panel{padding:12px}
 .diagram-panel svg{max-height:220px}.diagram-panel figcaption{font-size:11px}
 .construction-story h2{font-size:30px}.construction-story>p:not(.sr-only){min-height:4.8em;margin-top:8px}
 .step-readout{padding:8px 0 20px}.play-controls{margin-bottom:16px}
 .construction-steps{gap:8px;margin-top:12px}.construction-steps button{font-size:12px;display:flex;flex-direction:column;gap:4px}
 .construction-steps button span{font-size:11px}.recipe-section{padding:40px 0}.recipe-downloads{gap:20px}
 .math-details pre{padding:16px;font-size:12px}.guide-back{font-size:12px}.top{flex-wrap:wrap}.top .guide-back{margin-left:auto}
}
@media(max-width:360px){.construction-main{padding:0 16px}.construction-intro h1{font-size:40px}}
