/* Optional node simulations: scoped to their component and editor fields. */
.node-simulation { border: 1px solid #b8c9df; border-radius: 12px; background: #f8fbff; padding: 18px; margin: 20px 0; color: #172b45; }
.node-simulation h3 { margin-top: 0; }
.node-simulation p { line-height: 1.5; }
.node-simulation-cart-a { border-left: 4px solid #2563eb; padding-left: 10px; }
.node-simulation-cart-b { border-left: 4px solid #b45309; padding-left: 10px; }
.node-simulation-assumptions { font-size: 0.9rem; color: #475569; }
.node-simulation-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.node-simulation-actions button { background: #1d4ed8; color: white; border: 0; border-radius: 6px; padding: 10px 16px; font: inherit; cursor: pointer; }
.node-simulation-actions button:disabled { opacity: 0.6; cursor: default; }
.node-simulation-actions button:focus-visible { outline: 3px solid #b45309; outline-offset: 3px; }
.node-simulation-track { display: block; width: 100%; height: auto; }
.node-simulation table { width: 100%; border-collapse: collapse; background: white; }
.node-simulation td, .node-simulation th { border: 1px solid #cbd5e1; padding: 9px; text-align: center; }
.node-simulation [hidden], [data-simulation-explanation][hidden] { display: none !important; }
.node-simulation-error { color: #991b1b; border: 1px solid; padding: 12px; }
.simulation-tool-settings { border-top: 1px solid #cbd5e1; margin-top: 20px; padding-top: 16px; }
.simulation-tool-settings label { display: grid; gap: 5px; margin-bottom: 12px; }
.simulation-tool-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.simulation-tool-fields input, .simulation-tool-settings select { box-sizing: border-box; width: 100%; min-width: 0; }
.simulation-tool-error { color: #991b1b; }
@media (max-width: 600px) { .node-simulation { padding: 12px; } .simulation-tool-fields { grid-template-columns: 1fr; } }

#rulerToolFields[hidden], #nodeSimulationFields[hidden] { display: none !important; }

/* Skydiver experiments and their keyboard-accessible four-position response slider. */
.skydiver-scene { display:block; width:100%; height:auto; max-height:440px; margin:10px auto; }
.skydiver-live-speed { margin:12px 0 4px; font-size:1.15rem; font-weight:600; font-variant-numeric:tabular-nums; }
.skydiver-experiment meter { display:block; width:100%; height:20px; margin-bottom:12px; }
.skydiver-response { display:grid; gap:12px; }
.skydiver-response label { font-weight:600; }
.skydiver-response input[type="range"] { width:100%; min-width:0; height:34px; margin:0; accent-color:#047857; cursor:pointer; }
.skydiver-response input[type="range"]:focus-visible { outline:3px solid #b45309; outline-offset:4px; }
.skydiver-slider-ticks { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; font-size:.85rem; text-align:center; }
.skydiver-response output { font-weight:600; color:#065f46; }
.skydiver-response .answerButton { width:100%; box-sizing:border-box; margin:0; }
.skydiver-experiment td,.skydiver-experiment th { font-size:.9rem; padding:8px 5px; overflow-wrap:anywhere; }
@media(max-width:600px) { .skydiver-scene { max-height:none; } .skydiver-slider-ticks { font-size:.75rem; gap:3px; } }

.skydiver-experiment { scroll-margin-top:80px; }


/* A speed-only experiment, followed by the ordinary numerical response. */
.skydiver-speed-controls { display:grid; gap:8px; margin:12px 0; }
.skydiver-speed-controls label { font-weight:600; }
.skydiver-speed-controls input[type="range"] { width:100%; min-width:0; height:34px; margin:0; accent-color:#047857; cursor:pointer; }
.skydiver-speed-controls input[type="range"]:focus-visible { outline:3px solid #b45309; outline-offset:4px; }
.skydiver-speed-controls [data-skydiver-starting-choice] { color:#065f46; font-weight:600; }
.skydiver-current-speed { text-align:center; }
.skydiver-experiment .skydiver-current-speed + meter { width:min(100%,360px); margin:0 auto 12px; }
[data-simulation-response][hidden] { display:none !important; }

/* The same apparatus against two schematic settings; stack scenes on phones. */
.mass-weight-worlds { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:16px 0; }
.mass-weight-world { min-width:0; }
.mass-weight-world h4 { margin:0 0 8px; font-size:1.05rem; }
.mass-weight-world p { margin:6px 0 12px; font-variant-numeric:tabular-nums; }
.mass-weight-scene { display:block; width:100%; height:auto; }
.mass-weight-experiment td,.mass-weight-experiment th { padding:8px 5px; overflow-wrap:anywhere; }
@media(max-width:600px) { .mass-weight-worlds { grid-template-columns:1fr; } }

.mass-weight-experiment table { table-layout:fixed; }
.mass-weight-experiment th:first-child { width:50%; }

/* Keep the single weighing scene readable without filling the desktop width. */
[data-exoplanet-scene] { max-width:640px; margin:0 auto; }

/* Velocity/time construction and the separate horizontal-motion view. */
.velocity-experiment { max-width:760px; box-sizing:border-box; margin-left:auto; margin-right:auto; }
.velocity-experiment [data-vg-plot],.velocity-track { display:block; width:100%; height:auto; }
.velocity-experiment [data-vg-canvas] { touch-action:none; }
.velocity-point-inputs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:12px 0; }
.velocity-point-inputs label { display:grid; gap:6px; font-size:.95rem; }
.velocity-point-inputs input { width:100%; min-width:0; box-sizing:border-box; padding:8px; font:inherit; }
.velocity-readouts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.velocity-readouts output { display:block; font-size:.95rem; font-variant-numeric:tabular-nums; }
.velocity-readouts svg { display:block; width:140px; height:28px; max-width:100%; }
.velocity-motion { margin:12px 0; }
.velocity-experiment td,.velocity-experiment th { padding:8px 5px; overflow-wrap:anywhere; }
.velocity-experiment [data-vg-status] { overflow-wrap:anywhere; }
@media(max-width:600px) {
  .velocity-point-inputs,.velocity-readouts { grid-template-columns:1fr; }
  .velocity-point-inputs label { grid-template-columns:1fr 90px; align-items:center; }
}


/* Two-car comparisons share normal response controls and feedback gating. */
.two-cars-experiment {box-sizing:border-box;max-width:840px;padding:12px;margin:12px auto;}
.two-cars-experiment h3 {margin-bottom:8px;}
.two-cars-graph,.two-cars-track {display:block;width:100%;height:auto;margin:0 auto;}
.two-cars-graph {max-width:440px;}
.two-cars-track {max-width:350px;}
.two-cars-layout {display:grid;gap:12px;align-items:start;}
.two-cars-layout>* {min-width:0;}
.two-cars-observations>p,.two-cars-data>p {margin:0 0 8px;}
.two-cars-legend {display:flex;flex-wrap:wrap;gap:.25rem 1rem;font-size:.9rem;margin:0 0 10px;}
.two-cars-legend span:first-child {color:#1d4ed8;}
.two-cars-legend span:last-child {color:#9a3412;}
.two-cars-prefix {width:100%;}
.two-cars-table-scroll,.two-cars-experiment [data-simulation-readings] {overflow-x:auto;}
.two-cars-experiment th,.two-cars-experiment td {padding:5px 4px;text-align:center;font-size:.9rem;}
.two-cars-experiment [data-simulation-status] {font-size:.9rem;line-height:1.35;margin:8px 0;}
.two-cars-experiment .node-simulation-actions {gap:8px;margin-top:8px;font-size:.95rem;}
.two-cars-experiment .node-simulation-actions button {padding:8px 10px;}
.two-cars-experiment .node-simulation-assumptions {margin:8px 0 0;}
@media(min-width:800px) {
  .two-cars-layout--paired {grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);}
}
@media(max-width:600px) {
  .two-cars-experiment .two-cars-prefix th,.two-cars-experiment .two-cars-prefix td {font-size:.8rem;padding:5px 3px;}
}


/* Optional graph practice: compact plots, then a separate motion replay. */
.motion-practice-experiment {box-sizing:border-box;max-width:840px;padding:12px;margin:12px auto;}
.motion-practice-experiment h3 {margin-bottom:8px;}
.motion-practice-plots {display:grid;gap:10px;align-items:start;}
.motion-practice-plots[data-plot-count="2"] {grid-template-columns:repeat(2,minmax(0,1fr));}
.motion-practice-plots figure,.motion-practice-given figure {margin:0;min-width:0;}
.motion-practice-plots figcaption,.motion-practice-given figcaption {font-size:.9rem;font-weight:600;margin:0 0 5px;}
.motion-practice-graph {display:block;width:100%;height:auto;max-width:360px;margin:0 auto;}
.motion-practice-given {max-width:290px;margin:0 auto 10px;}
.motion-practice-track {display:block;width:100%;height:auto;}
.motion-practice-feedback {display:grid;gap:12px;align-items:start;}
.motion-practice-feedback>* {min-width:0;}
.motion-practice-observation>p {font-size:.9rem;margin:0 0 8px;}
.motion-practice-experiment [data-simulation-status] {line-height:1.35;font-size:.9rem;margin:8px 0;}
.motion-practice-experiment .node-simulation-actions {gap:8px;font-size:.95rem;}
.motion-practice-experiment .node-simulation-actions button {padding:8px 10px;}
.motion-practice-experiment th,.motion-practice-experiment td {padding:4px;font-size:.85rem;}
.motion-practice-experiment [data-simulation-readings] {overflow-x:auto;}
.answerButton.motion-practice-exit {max-width:220px;margin:12px auto;background:white;border:1px solid #94a3b8;font-size:.95rem;}
@media(min-width:800px){
 .motion-practice-plots[data-plot-count="3"] {grid-template-columns:repeat(3,minmax(0,1fr));}
 .motion-practice-feedback {grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);}
}
@media(max-width:799px){
 .motion-practice-plots[data-plot-count="3"] {grid-template-columns:repeat(2,minmax(0,1fr));}
 .motion-practice-plots[data-plot-count="3"] figure:last-child {grid-column:1/-1;max-width:50%;justify-self:center;}
}

@media(max-width:600px){
 .motion-practice-plots[data-plot-count="2"],.motion-practice-plots[data-plot-count="3"] {grid-template-columns:1fr;}
 .motion-practice-plots[data-plot-count="3"] figure:last-child {max-width:none;justify-self:stretch;grid-column:auto;}
}


/* Two short shutter recordings, shown in slow motion after a prediction. */
.shutter-experiment {box-sizing:border-box;max-width:700px;padding:12px;margin:12px auto;}
.shutter-experiment h3 {margin-bottom:8px;}
.shutter-experiment p {font-size:.95rem;margin:8px 0;}
.shutter-scene {display:block;width:100%;height:auto;max-width:640px;margin:0 auto;}
.shutter-experiment th,.shutter-experiment td {padding:5px;font-size:.9rem;}
.shutter-experiment [data-simulation-readings] {overflow-x:auto;}

/* Free-fall predictions: compact vertical motion with separate vector readouts. */
.free-fall-experiment { max-width:740px; margin-inline:auto; }
.free-fall-display { display:grid; grid-template-columns:minmax(140px,240px) minmax(0,1fr); gap:18px; align-items:center; margin-bottom:12px; }
.free-fall-scene { display:block; width:100%; height:auto; max-height:290px; }
.free-fall-readouts { min-width:0; }
.free-fall-readouts p { margin:0 0 16px; padding-left:10px; border-left:4px solid currentColor; }
.free-fall-readouts strong, .free-fall-readouts output { display:block; }
.free-fall-readouts output { margin-top:6px; font-variant-numeric:tabular-nums; }
.free-fall-velocity { color:#1d4ed8; }
.free-fall-acceleration { color:#7e22ce; }
.free-fall-readouts .free-fall-pause { color:#475569; border:0; padding:0; font-size:.9rem; }
.free-fall-experiment [data-simulation-readings] { margin-top:14px; }
@media (max-width:480px) {
  .free-fall-display { grid-template-columns:minmax(110px,.9fr) minmax(0,1.1fr); gap:10px; }
  .free-fall-experiment th, .free-fall-experiment td { padding:7px 4px; font-size:.9rem; }
}

/* One cyclist force-setting model; the submitted force stays locked during feedback. */
.pedalling-setup,.pedalling-experiment{max-width:800px;margin-inline:auto}
.pedalling-speed{text-align:center;font-size:1.15rem;font-weight:600;font-variant-numeric:tabular-nums}
.pedalling-scene{display:block;width:100%;height:auto;max-height:235px;margin:8px auto}
.pedalling-response{display:grid;gap:12px;max-width:700px;margin:12px auto}
.pedalling-response label{font-weight:600}
.pedalling-response input[type="range"]{width:100%;height:36px;min-width:0}
.pedalling-response output{font-variant-numeric:tabular-nums}
.pedalling-experiment [data-simulation-readings]{margin-top:14px}
@media(max-width:600px){.pedalling-experiment td,.pedalling-experiment th{padding:6px 4px;font-size:.88rem}}

.pedalling-response .short-answer-response-error:empty{display:none}

/* Fixed Third Law push and coast, following a committed tree prediction. */
.third-law-experiment{box-sizing:border-box;max-width:740px;padding:12px;margin:12px auto}
.third-law-experiment h3{margin-bottom:8px}
.third-law-experiment p{margin:8px 0}
.third-law-scene{display:block;width:100%;height:auto;max-height:250px;margin:0 auto}
.third-law-force-reading{min-height:1.5em;text-align:center;color:#6b21a8}
.third-law-speeds{display:grid;grid-template-columns:1fr 1fr;gap:12px;text-align:center;font-variant-numeric:tabular-nums}
.third-law-speeds strong,.third-law-speeds output{display:block}
.third-law-speeds p:first-child{color:#115e59}.third-law-speeds p:last-child{color:#92400e}
.third-law-experiment [data-simulation-readings]{overflow-x:auto;margin-top:12px}
.third-law-experiment caption{text-align:left;font-weight:600;margin-bottom:6px}
.third-law-experiment th,.third-law-experiment td{padding:6px;font-size:.92rem}
@media(max-width:600px){.third-law-experiment th,.third-law-experiment td{padding:5px;font-size:.85rem}.third-law-speeds{gap:6px}}

/* Compact, fixed loop-force prediction. */
.circular-loop-scene{display:block;width:100%;max-width:520px;height:auto;margin:0 auto;}
.loop-live-readings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;text-align:center;}
.loop-live-readings p{margin:.25rem 0;padding:.45rem;background:#f8fafc;border-radius:6px;}
.loop-live-readings strong,.loop-live-readings output{display:block;}
.loop-weight{color:#9a3412;}.loop-normal{color:#075985;}
.circular-loop-experiment [data-simulation-readings]{overflow-x:auto;}
@media(max-width:540px){.loop-live-readings{grid-template-columns:1fr;gap:.15rem;}.loop-live-readings p{padding:.3rem;}.loop-live-readings strong,.loop-live-readings output{display:inline;}.loop-live-readings strong{margin-right:.5rem;}}

/* Newton cannon: whole Earth and a clipped magnified launch area. */
.newton-cannon-scene{display:block;width:100%;max-width:760px;height:auto;margin:0 auto;}
.cannon-launch-actions{display:flex;flex-wrap:wrap;gap:.5rem;}
.cannon-launch-reading{font-weight:600;text-align:center;}
.newton-cannon-experiment [data-simulation-readings]{overflow-x:auto;}
@media(max-width:540px){.cannon-launch-actions button{flex:1 1 140px;}.newton-cannon-experiment{padding:12px;}}

.cannon-scene-grid{display:grid;grid-template-columns:1.15fr 1fr;align-items:center;gap:4px;max-width:760px;margin:0 auto;}
@media(max-width:540px){.cannon-scene-grid{grid-template-columns:1fr;}.newton-cannon-scene{max-width:420px;margin:0 auto;}}

/* Guided rescue routes: compact scene and readable journey-time table. */
.rescue-scene{display:block;width:100%;max-width:640px;max-height:300px;margin:0 auto;}
.rescue-actions{flex-wrap:wrap;}
.rescue-actions button{flex:1 1 145px;}
.rescue-table-wrap{overflow-x:auto;}
.rescue-experiment table{width:100%;font-size:0.94rem;}
.rescue-experiment th,.rescue-experiment td{padding:0.45rem 0.35rem;}
.rescue-experiment tbody th{text-align:left;}
.rescue-quickest{background:#dcfce7;}
@media(max-width:520px){.rescue-experiment table{font-size:0.82rem;}.rescue-actions button{flex-basis:100%;}.rescue-experiment th,.rescue-experiment td{padding:0.4rem 0.2rem;}}


/* KS4 road safety: motion, graphs and controls share a compact panel. */
.stopping-experiment{scroll-margin-top:65px;overflow-anchor:none}
.stopping-playback{overflow-anchor:none}
.stopping-timeline{display:flex;flex-wrap:wrap;align-items:center;gap:.3rem 1rem;margin-bottom:.4rem}
.stopping-trials{display:grid;grid-template-columns:minmax(0,1fr);gap:.5rem}
.stopping-trials-paired{grid-template-columns:repeat(2,minmax(0,1fr))}
.stopping-trial{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:.3rem .6rem;min-width:0;padding:.45rem;border:1px solid #cbd5e1;border-radius:8px;background:#fff}
.stopping-trials-paired .stopping-trial{grid-template-columns:minmax(0,1fr);gap:.1rem}
.stopping-case-heading{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.2rem .6rem}
.stopping-trial h4{margin:0;font-size:.95rem}
.stopping-experiment .stopping-road{display:block;width:100%;height:clamp(75px,15vh,110px)}
.stopping-clock,.stopping-readouts{display:grid;grid-template-columns:max-content 9ch;justify-content:start;align-items:center;gap:.35rem;font-weight:600;font-variant-numeric:tabular-nums;text-align:left}
.stopping-clock output,.stopping-readouts output{display:block;width:9ch;white-space:nowrap;font-variant-numeric:tabular-nums}
.stopping-readouts{font-size:.9rem}
.stopping-phase{flex:1;min-height:2.6em;box-sizing:border-box;padding:.3rem .5rem;margin:0;background:#eff6ff;border-radius:6px;font-size:.9rem}
.stopping-legend{display:flex;flex-wrap:wrap;gap:.2rem 1rem;font-size:.9rem;margin:.35rem 0}
.stopping-legend span:first-child{color:#166534}.stopping-legend span:last-child{color:#1d4ed8}
.stopping-graph{min-width:0}.stopping-graph h5{margin:0;font-size:.9rem;font-weight:600}
.stopping-graph svg{display:block;width:100%;height:clamp(150px,25vh,195px);margin:auto;background:white}
.stopping-graph-owner{display:none}
.stopping-experiment .node-simulation-actions{flex-wrap:nowrap;gap:.6rem;margin:0;min-height:48px}
.stopping-experiment .node-simulation-actions button{flex:none;padding:9px 12px;min-width:190px}
.stopping-experiment [data-simulation-status]{flex:1;min-height:2.8em;box-sizing:border-box;margin:0;font-size:.85rem}
.stopping-experiment table{width:100%;border-collapse:collapse;font-size:.92rem;table-layout:fixed}
.stopping-experiment th,.stopping-experiment td{padding:.35rem .4rem;text-align:left;border-bottom:1px solid #cbd5e1;overflow-wrap:anywhere}
.stopping-experiment th:first-child{width:38%}.stopping-experiment caption{font-weight:700;font-size:1.25rem;text-align:left;padding:.65rem 0}
.stopping-table-gap td{height:.8rem;padding:0;border:0}.stopping-table-gap+tr{font-weight:700;border-top:2px solid #64748b}
@media(max-width:640px){
 .stopping-trials-paired{grid-template-columns:minmax(0,1fr)}
 .stopping-trial{grid-template-columns:minmax(0,1fr)}
 .stopping-experiment .stopping-road{height:72px}
 .stopping-graph svg{height:157px}
 .stopping-timeline{gap:.15rem}.stopping-clock{font-size:.9rem}
 .stopping-phase{flex-basis:100%;min-height:2em;padding:.15rem .3rem}
 .stopping-legend{font-size:.8rem;gap:.1rem .5rem}
 .stopping-readouts{font-size:.85rem}
 .stopping-current-word{display:none}
 .stopping-case-heading{flex-wrap:nowrap;gap:.2rem}
 .stopping-trial h4{font-size:.85rem}
 .stopping-experiment .node-simulation-actions{flex-wrap:wrap;gap:.2rem}
 .stopping-experiment [data-simulation-status]{flex-basis:100%;min-height:2.8em;line-height:1.3}
 .stopping-experiment table{font-size:.82rem}
 .stopping-experiment th,.stopping-experiment td{padding:.28rem}
}

/* Air: distinguish choosing a force, running a speed trial and submitting an answer. */
.skydiver-setup,.skydiver-experiment{max-width:820px;margin-inline:auto;box-sizing:border-box;overflow-anchor:none}
.skydiver-setup .skydiver-scene{max-height:285px}
.skydiver-choice-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:center}
.skydiver-choice-layout .skydiver-response{min-width:0;width:100%;margin:0}
.skydiver-choice-layout .short-answer-submit{width:100%}
.skydiver-choice-layout .skydiver-response{gap:8px}
.skydiver-choice-layout .node-simulation-assumptions{margin:6px 0}
.skydiver-choice-layout .short-answer-response-error:empty{display:none}
.skydiver-experiment .skydiver-scene{max-height:300px;margin:4px auto}
.skydiver-playback-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(240px,1fr);gap:12px;align-items:start}
.skydiver-picture,.skydiver-observations{min-width:0}
.skydiver-observations .node-simulation-actions{gap:8px}
.skydiver-observations [data-simulation-status]{font-size:.9rem;line-height:1.4;min-height:3em}
.skydiver-experiment meter{margin-bottom:4px}
.skydiver-experiment table{background:#fff;color:#111827;width:100%;table-layout:fixed}
.skydiver-experiment th,.skydiver-experiment td{color:#111827;padding:6px 4px;font-size:.85rem}
.skydiver-experiment caption{text-align:left;font-size:1rem;font-weight:700;padding:8px 0 5px;color:#111827}
.skydiver-experiment h4{margin:8px 0;font-size:1rem}
.skydiver-start-end{display:grid;grid-template-columns:1fr 1fr;gap:8px;background:#fff;color:#111827;padding:8px;border:1px solid #94a3b8;border-radius:6px}
.skydiver-start-end p{margin:0;font-size:.9rem}.skydiver-start-end strong{display:block;font-size:1.1rem;font-variant-numeric:tabular-nums;margin-top:4px}
.skydiver-trial-note{padding:8px;background:#fff7ed;border-left:4px solid #c2410c;font-size:.95rem}
.skydiver-help{margin:10px 0;font-size:.95rem}.skydiver-help summary{cursor:pointer}.skydiver-help li{margin-bottom:5px}
.skydiver-response .short-answer-submit:disabled,[data-simulation-show-prompt] .short-answer-submit:disabled{opacity:1;color:#475569;background:#e2e8f0;border-color:#94a3b8;cursor:not-allowed}
@media(max-width:640px){.skydiver-choice-layout{grid-template-columns:1fr}.skydiver-playback-layout{grid-template-columns:1fr}.skydiver-experiment .skydiver-scene{max-height:250px}.skydiver-setup .skydiver-scene{max-height:245px}.skydiver-experiment th,.skydiver-experiment td{font-size:.85rem}.skydiver-observations [data-simulation-status]{min-height:0}}

/* Recorded predictions, automatic road playback, then results and explanation. */
.stopping-prediction-status{margin:0 0 .5rem;padding:.5rem .7rem;background:#eff6ff;border-left:4px solid #2563eb;font-weight:600}
.stopping-prediction-review{margin:0 0 .65rem;padding:.5rem .75rem;border:1px solid #cbd5e1;border-radius:8px;background:#fff}
.stopping-prediction-review summary{cursor:pointer;font-weight:600}
.stopping-prediction-review .learner-answer-review{margin-top:.5rem}
.stopping-experiment table,.stopping-experiment th,.stopping-experiment td{background:#fff;color:#111827}
.stopping-experiment{overflow-anchor:none}

/* Chapter 2: both impact trials share the same distance and time scales. */
.collision-stop-experiment{max-width:980px;margin-inline:auto;overflow-anchor:none}
.collision-stop-cases{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.collision-stop-case{min-width:0;padding:8px;border:1px solid #cbd5e1;border-radius:8px;background:white;color:#172554}
.collision-stop-case h4{font-size:1rem;margin:0 0 5px}
.collision-stop-scene{display:block;width:100%;height:105px}.collision-stop-graph{display:block;width:100%;height:170px}
.collision-stop-readouts{display:grid;grid-template-columns:max-content 8ch max-content 8ch;justify-content:start;gap:4px;font-size:.85rem}
.collision-stop-readouts output{font-variant-numeric:tabular-nums;white-space:nowrap}
.collision-stop-clock{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0;font-size:.9rem}.collision-stop-clock output{min-width:7ch;font-variant-numeric:tabular-nums}
.collision-stop-intro,.collision-stop-legend{font-size:.9rem;margin:6px 0}
.collision-stop-experiment table{width:100%;border-collapse:collapse;background:white;color:#111827;table-layout:fixed;font-size:.9rem}
.collision-stop-experiment th,.collision-stop-experiment td{padding:6px;border:1px solid #cbd5e1;overflow-wrap:anywhere;background:white;color:#111827}
.collision-stop-experiment caption{text-align:left;font-size:1.1rem;font-weight:700;padding:10px 0 6px}
.collision-stop-experiment .node-simulation-actions{min-height:44px}.collision-stop-experiment [data-simulation-status]{font-size:.85rem;margin:0}
@media(max-width:640px){.collision-stop-cases{grid-template-columns:1fr}.collision-stop-experiment{padding:12px}.collision-stop-readouts{grid-template-columns:max-content 8ch;gap:3px 8px}.collision-stop-scene{height:95px}.collision-stop-graph{height:160px}}

/* Perpendicular-force exploration: controls follow the shared top-view scene. */
.circular-steering-experiment{max-width:820px;margin-inline:auto;overflow-anchor:none}
.circular-steering-experiment .steering-intro{font-size:.9rem;margin:6px 0}
.steering-live{display:flex;justify-content:center;gap:24px;font-size:.95rem;font-variant-numeric:tabular-nums}.steering-live output{display:inline-block;min-width:7ch}
.steering-scene{display:block;width:100%;height:320px;margin:6px auto}
.steering-control{max-width:620px;margin:8px auto}.steering-control label{display:block;font-weight:600}.steering-control input{width:100%;margin:10px 0 0}.steering-scale{display:flex;justify-content:space-between;font-size:.9rem}.steering-control p{font-size:.85rem;margin:6px 0}
.circular-steering-experiment table{width:100%;border-collapse:collapse;background:white;color:#111827;font-size:.9rem}.circular-steering-experiment th,.circular-steering-experiment td{border:1px solid #cbd5e1;padding:6px;text-align:left;background:white;color:#111827}.circular-steering-experiment caption{text-align:left;font-weight:700;font-size:1.05rem;padding:10px 0 6px}.circular-steering-experiment [data-simulation-status]{font-size:.85rem;margin:0;min-height:2.6em}
@media(max-width:640px){.circular-steering-experiment{padding:10px}.steering-scene{height:255px}.steering-live{gap:10px;font-size:.85rem}}

@media(min-width:641px) and (max-height:720px){.circular-steering-experiment .steering-scene{height:195px}.circular-steering-experiment h3{margin:5px 0}.circular-steering-experiment .steering-intro{margin:4px 0}.circular-steering-experiment .node-simulation-actions{margin-top:6px}}

/* Guided circular-motion applications: fixed scene height and stable controls. */
.circular-road-experiment,.whirling-bung-experiment{max-width:820px;margin-inline:auto;overflow-anchor:none}
.circular-road-scene,.bung-scene{display:block;width:100%;height:265px;margin:6px auto}
.applied-experiment-intro{font-size:.9rem;margin:6px 0}.applied-experiment-control{max-width:600px;margin:6px auto}
.applied-experiment-control label{display:block;font-weight:600}.applied-experiment-control input{width:100%;margin:8px 0 0}
.applied-experiment-control output{display:inline-block;min-width:7ch;font-variant-numeric:tabular-nums}
.applied-experiment-help{font-size:.85rem;margin:6px 0}
.circular-road-experiment [data-simulation-status],.whirling-bung-experiment [data-simulation-status]{min-height:2.6em;font-size:.85rem;margin:4px 0}
.circular-road-experiment table,.whirling-bung-experiment table{width:100%;border-collapse:collapse;font-size:.9rem;background:white;color:#111827}
.circular-road-experiment th,.circular-road-experiment td,.whirling-bung-experiment th,.whirling-bung-experiment td{padding:6px;border:1px solid #cbd5e1;background:white;color:#111827;text-align:left}
.circular-road-experiment caption,.whirling-bung-experiment caption{text-align:left;font-size:1.05rem;font-weight:700;padding:8px 0 6px}
.bung-live{display:flex;justify-content:center;gap:20px;font-size:.95rem;font-variant-numeric:tabular-nums}.bung-live output{display:inline-block;min-width:5ch}
.bung-results{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:start}.bung-results h4{margin:8px 0}.bung-graph{width:100%;height:auto;display:block}
@media(max-width:640px){.circular-road-scene,.bung-scene{height:210px}.bung-results{grid-template-columns:1fr}.bung-live{font-size:.85rem;gap:12px}.circular-road-experiment,.whirling-bung-experiment{padding:10px}}
@media(min-width:641px) and (max-height:720px){.circular-road-scene,.bung-scene{height:190px}.circular-road-experiment h3,.whirling-bung-experiment h3{margin:5px 0}}

.whirling-bung-experiment [data-bung-apparatus]>summary{cursor:pointer;color:#1d4ed8;font-size:.9rem;padding:6px 0}.whirling-bung-experiment [data-bung-apparatus]{border:0;margin:0;padding:0}

/* Smooth-wall component exploration. */
.smooth-wall-experiment{max-width:820px;margin-inline:auto;overflow-anchor:none}.smooth-wall-scene{width:100%;height:285px;display:block;margin:4px auto}
.wall-legend{display:grid;grid-template-columns:1fr 1fr;gap:3px 12px;font-size:.85rem}
.smooth-wall-experiment table{width:100%;border-collapse:collapse;font-size:.85rem;background:white;color:#111827}
.smooth-wall-experiment th,.smooth-wall-experiment td{padding:5px;border:1px solid #cbd5e1;background:white;color:#111827;text-align:left}
.smooth-wall-experiment caption{font-weight:700;text-align:left;padding:6px 0}.smooth-wall-experiment [data-simulation-status]{min-height:2.5em;font-size:.85rem;margin:0}
@media(max-width:640px){.smooth-wall-scene{height:220px}.wall-legend{font-size:.8rem}.smooth-wall-experiment{padding:10px}}
@media(min-width:641px) and (max-height:720px){.smooth-wall-scene{height:210px}.smooth-wall-experiment h3{margin:5px 0}}

/* Larger circular application apparatus; road comparison sizing stays unchanged. */
.whirling-bung-experiment,.smooth-wall-experiment{max-width:960px}
.whirling-bung-experiment .bung-scene{height:420px;max-width:100%;width:100%}
.smooth-wall-experiment .smooth-wall-scene{height:430px;max-width:100%;width:100%}
@media(min-width:641px) and (max-height:720px){.whirling-bung-experiment .bung-scene{height:350px}.smooth-wall-experiment .smooth-wall-scene{height:360px}}
@media(max-width:640px){.whirling-bung-experiment .bung-scene{height:290px}.smooth-wall-experiment .smooth-wall-scene{height:300px}}

.momentum-trial svg{display:block;width:min(100%,760px);height:auto;max-height:220px;margin:0 auto}.momentum-trial table{max-width:760px;margin:0 auto}.momentum-trial table caption{font-weight:700;font-size:1.1rem;padding:.5rem}

/* Pressure-law fixed-volume particle and graph experiment. */
.pressure-law-simulation{max-width:740px;margin:1rem auto}.pressure-law-display{display:grid;grid-template-columns:minmax(0,2fr) minmax(130px,1fr);gap:.8rem;align-items:center}.pressure-law-particles,.pressure-law-graph{display:block;width:100%;height:auto}.pressure-law-readouts{display:grid;gap:.7rem;font-size:1rem}.pressure-law-simulation [data-pl-results]{overflow-x:auto}.pressure-law-simulation table{width:100%;border-collapse:collapse}.pressure-law-simulation th,.pressure-law-simulation td{border:1px solid #94a3b8;padding:.35rem .55rem;text-align:left}@media(max-width:550px){.pressure-law-display{grid-template-columns:1fr}}
