:root{--paper:#f5f3e9;--ink:#172d31;--muted:#526164;--line:#c9cfc5;--teal:#087f86;--orange:#c94f25;--blue:#345d7e;--aptifold-bar-height:56px;color-scheme:light;font-family:Arial,Helvetica,sans-serif;background:var(--paper);color:var(--ink)}
*{box-sizing:border-box}body{margin:0}[hidden]{display:none!important}button,input,select{font:inherit}.gravity-shell button,.method-dialog button{cursor:pointer;color:var(--ink)}button:disabled{opacity:.4;cursor:default!important}.gravity-shell :is(button,input,select,a,summary):focus-visible,.method-dialog :is(button,a,summary):focus-visible,#race-canvas:focus-visible{outline:3px solid #9b3516;outline-offset:4px}.gravity-shell button,.method-dialog button{border:1px solid var(--line);border-radius:5px;background:#fffef7;padding:10px 13px}p,h1,h2,h3{margin:0}.skip{position:fixed;left:16px;top:-100px;background:#fff;color:#172d31;padding:12px;z-index:250}.skip:focus{top:8px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.gravity-shell{max-width:1560px;margin:auto;padding:22px 34px 12px;min-height:calc(100dvh - var(--aptifold-bar-height));display:flex;flex-direction:column}.lab-heading{display:grid;grid-template-columns:1.65fr 1fr;gap:42px;align-items:end;padding-bottom:20px;border-bottom:1px solid var(--ink)}.eyebrow{font-size:10px;font-weight:700;letter-spacing:.14em;line-height:1.4;color:var(--muted)}.lab-heading .eyebrow{margin-bottom:8px}h1{font-size:clamp(30px,3.4vw,51px);font-weight:800;letter-spacing:-.055em;line-height:1.04}.opening{font-size:16px;line-height:1.5;max-width:35ch}.bench{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(280px,1fr);gap:26px;padding-top:16px;flex:1}.apparatus{min-width:0}.stage-bar{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:10px}.geometry-tag{font-size:12px;white-space:nowrap}.geometry-tag span{padding:0 8px;color:var(--muted)}.view-tabs{display:flex;gap:2px;background:#e6e9df;border-radius:5px;padding:3px}.view-tabs button{border:0;background:none;font-size:11px;padding:7px 10px}.view-tabs button[aria-selected=true]{background:#fffef7;box-shadow:0 1px 3px #172d3126;font-weight:700}.stage{height:clamp(300px,calc(100dvh - 350px),520px);min-width:0;background:#e6e9df;border:1px solid var(--line);border-radius:6px;overflow:hidden;position:relative}.stage-pane{height:100%;position:relative}#race-canvas{display:block;width:100%;height:100%;touch-action:pan-y}#flat-plot{display:block;width:100%;height:100%;touch-action:pan-y}.camera-controls{position:absolute;right:12px;top:12px;display:flex;gap:4px}.camera-controls button{font-size:11px;padding:6px 9px;background:#fffef7e8;border-color:#c6cdc2}.scene-caption{position:absolute;left:15px;right:15px;bottom:10px;font-size:10px;color:#435655;pointer-events:none;text-align:center}.graphics-note{font-size:12px;line-height:1.4;padding:9px 0;color:var(--muted)}
.transport{display:flex;align-items:center;gap:7px;margin-top:12px}.transport button{font-size:11px;white-space:nowrap;padding:10px 11px}.transport .primary{background:var(--ink);color:#fffef7;border-color:var(--ink);font-weight:700;display:flex;justify-content:space-between;gap:25px}.clock{margin-left:auto;display:flex;align-items:baseline;gap:5px;font-variant-numeric:tabular-nums;white-space:nowrap}.clock span:first-child{font-size:8px;font-weight:700;letter-spacing:.1em;color:var(--muted);margin-right:4px}.clock output{font-size:25px;letter-spacing:-.04em;font-weight:700}.clock span:last-child{font-size:11px}.timeline-label{display:flex;justify-content:space-between;gap:12px;font-size:11px;margin:13px 0 4px}.timeline-label span:last-child{color:var(--muted);font-size:10px;text-align:right}input[type=range]{width:100%;accent-color:var(--ink);cursor:pointer;height:23px;margin:0}.path-key{display:flex;justify-content:space-between;gap:10px;font-size:10px;margin-top:6px}.path-key>span{border-top:3px solid;padding-top:5px;flex:1}.key-straight{color:var(--blue)}.key-cycloid{color:var(--teal)}.key-custom{color:var(--orange)}
.workbench{border-left:1px solid var(--line);padding-left:24px;min-width:0}h2{font-size:24px;font-weight:700;letter-spacing:-.04em;line-height:1.12;margin-top:5px}.predictions{display:grid;gap:6px;margin-top:13px}.predictions button{display:flex;align-items:center;text-align:left;padding:8px 10px;gap:11px;background:transparent;min-height:48px}.predictions button[aria-pressed=true]{background:#fffef7;border-color:var(--ink)}.route-number{font-size:20px;font-weight:700;min-width:15px}.predictions button>span:nth-child(2){font-size:13px}.predictions small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.pick-mark{margin-left:auto;font-size:18px}.optional-note{font-size:10px;color:var(--muted);margin-top:8px}.status{font-size:12px;line-height:1.4;min-height:34px;margin:12px 0;color:var(--muted)}.shape-controls{border-top:1px solid var(--line);padding-top:12px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}h3{font-size:14px;letter-spacing:-.02em}.gravity-shell .text-button{border:0;padding:0;border-radius:0;background:none;font-size:11px;text-decoration:underline;text-underline-offset:3px}.shape-controls>label:not(.gravity-label){display:flex;justify-content:space-between;font-size:11px;margin-top:8px;gap:10px}.shape-controls output{font-size:10px;font-variant-numeric:tabular-nums;color:var(--muted)}.shape-controls input{height:22px}.gravity-label{margin-top:10px;display:flex;gap:12px;align-items:center;justify-content:space-between;font-size:11px}.gravity-label select{min-width:0;max-width:76%;font-size:11px;padding:7px 4px;background:#fffef7;color:var(--ink);border:1px solid var(--line);border-radius:4px}.results{border-collapse:collapse;width:100%;font-size:12px;margin-top:12px;font-variant-numeric:tabular-nums}.results th{text-align:left;font-size:9px;color:var(--muted);font-weight:400;padding-bottom:7px}.results th:not(:first-child),.results td:not(:first-child){text-align:right}.results td{padding:10px 0;border-top:1px solid var(--line)}.results .winner{font-weight:700}.results .winner td:last-child{color:var(--teal)}.verdict{font-size:13px;line-height:1.45;margin-top:12px}.notice{font-size:12px;border-left:3px solid var(--orange);padding:8px 12px;margin-top:12px;background:#fffef7}.lab-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line);margin-top:16px;padding-top:10px;font-size:11px;color:var(--muted)}.lab-footer p{font-family:Georgia,serif;font-style:italic;font-size:14px}.method-dialog{width:min(680px,calc(100% - 32px));max-height:calc(100dvh - 40px);border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--ink);padding:25px;line-height:1.6;font-size:15px}.method-dialog::backdrop{background:#0f242dc9}.dialog-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.dialog-top button{padding:6px 10px;font-size:11px}.method-dialog h2{font-size:34px;margin-bottom:15px}.method-dialog>p{margin-top:13px}.method-dialog details{border-top:1px solid var(--line);padding:11px 0;margin-top:13px;font-size:13px}.method-dialog details p{margin-top:10px}.method-dialog summary{cursor:pointer;font-weight:700}.method-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#e8eadf;padding:12px;font-size:10px;line-height:1.5;margin-top:12px}.source-links{display:grid;gap:8px;font-size:12px}.source-links a{color:var(--blue)}.small-print{font-size:11px;color:var(--muted)}
@media(min-width:1200px) and (max-height:760px){.gravity-shell{padding-top:17px}.lab-heading{padding-bottom:14px}h1{font-size:42px}.bench{padding-top:12px}.stage{height:calc(100dvh - 347px)}.predictions button{min-height:44px}.shape-controls{padding-top:9px}.status{margin-top:9px;margin-bottom:9px}}
@media(max-width:950px){.gravity-shell{padding:20px 22px 14px}.bench{grid-template-columns:1fr;gap:22px}.stage{height:400px}.workbench{border-left:0;padding-left:0;display:grid;grid-template-columns:1fr 1fr;gap:0 25px}.workbench>.status{grid-column:1}.shape-controls{grid-column:2;grid-row:1/3;border-top:0;border-left:1px solid var(--line);padding-left:23px;padding-top:0}.lab-heading{grid-template-columns:1fr;gap:12px}.opening{max-width:none;font-size:14px}.lab-footer{margin-top:20px}}
@media(max-width:600px){.gravity-shell{padding:15px 15px 12px}.lab-heading{gap:9px;padding-bottom:13px}h1{font-size:34px;max-width:14ch}.opening{font-size:12px;max-width:34ch;line-height:1.45}.lab-heading .eyebrow{font-size:9px}.bench{padding-top:12px;gap:18px}.stage-bar{gap:8px}.geometry-tag{font-size:10px}.geometry-tag span{padding:0 3px}.view-tabs button{font-size:10px;padding:7px}.stage{height:300px}.scene-caption{font-size:9px;bottom:8px}.camera-controls{right:7px;top:7px}.camera-controls button{font-size:9px;padding:5px 7px}.transport{flex-wrap:wrap;gap:6px;margin-top:10px}.transport button{padding:10px 8px;font-size:10px;min-height:40px}.transport .primary{gap:12px}.clock{margin-left:auto}.clock span:first-child{display:none}.clock output{font-size:23px}.timeline-label{margin-top:10px;font-size:10px}.timeline-label span:last-child{font-size:8px;max-width:27ch}.path-key{font-size:9px;gap:8px}.workbench{display:block}.workbench h2{font-size:23px}.predictions{grid-template-columns:1fr;gap:5px}.predictions button{min-height:44px}.status{min-height:0;margin:10px 0}.shape-controls{border-left:0;border-top:1px solid var(--line);padding:14px 0 0;margin-top:14px}.shape-controls>label:not(.gravity-label){font-size:12px}.shape-controls input{height:30px}.gravity-label{font-size:12px}.gravity-label select{font-size:12px}.lab-footer{gap:15px;align-items:flex-start}.lab-footer p{font-size:12px;max-width:22ch}.lab-footer .text-button{font-size:10px;text-align:right;max-width:18ch}.method-dialog{padding:20px;font-size:14px}.method-dialog h2{font-size:28px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
#handle{touch-action:none;cursor:grab}#handle:active{cursor:grabbing}#handle:focus-visible{stroke:#172d31;stroke-width:2;stroke-dasharray:4 4;outline:none}
.path-key strong{display:block;font-size:18px;font-weight:600;letter-spacing:-.025em;font-variant-numeric:tabular-nums;margin-top:5px}.path-key small{display:block;color:var(--muted);font-size:9px;margin-top:3px}#result-title:focus-visible{outline:2px solid var(--teal);outline-offset:5px}
@media(min-width:1200px) and (max-height:760px){.stage{height:calc(100dvh - 390px);min-height:280px}}
.early-note{font-size:14px;line-height:1.45;margin-top:10px;padding:9px 11px;border-left:3px solid var(--teal);background:#fffef7}.edit-comparison{font-size:13px;line-height:1.45;margin-top:10px;font-weight:600}
.wire-comparison{font-size:13px;line-height:1.45;margin-top:12px;padding-left:10px;border-left:3px solid #a64b30;font-weight:600}
.result-actions{display:flex;flex-wrap:wrap;column-gap:16px;margin-top:5px}
.result-actions .text-button{min-height:44px;font-size:12px}
.compare-new-times{min-height:44px;margin-top:10px;background:var(--ink);color:#fffef7;border-color:var(--ink)}
.gravity-design-link{font-size:14px;line-height:1.5;margin-top:22px}
.gravity-design-link a{color:inherit;text-underline-offset:3px}
@media(max-width:360px){.stage{height:280px}}
#race-lab{scroll-margin-top:calc(var(--aptifold-bar-height,0px) + 16px)}

/* Keep the cause beside each speed reading on the shared physical scale. */
.path-key .height-track{position:relative;display:block;height:4px;background:#d8ded1;margin:13px 0 8px;isolation:isolate}
.path-key .height-track i{display:block;height:100%;width:0;background:currentColor}
.path-key .height-track b{position:absolute;left:50%;top:-3px;height:10px;border-left:1px dashed #496064}
.path-key .height-reading{font-variant-numeric:tabular-nums}
.energy-note{max-width:76ch;margin:12px 0 0;color:#42575b;font-size:.78rem;line-height:1.5}

.path-key>span{font-size:.75rem;line-height:1.35}
.path-key small{font-size:.7rem;line-height:1.4}
.path-key .height-reading{font-size:.75rem}
@media(min-width:951px){
  .path-key>span{display:grid;grid-template-columns:1fr auto;align-items:baseline}
  .path-key>span>strong{margin-top:0}
  .path-key>span>small,.path-key>span>.height-track{grid-column:1/-1}
  .energy-note{max-width:none}
}

#stage:has(#stage-3d:not([hidden])){
  height:clamp(365px,calc(100dvh - 320px),570px);
  border-color:#52706b;box-shadow:0 12px 24px #183b321a
}
#stage-3d{display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#153336}
#race-canvas{grid-row:2;min-height:0;cursor:grab;touch-action:pan-y pinch-zoom}
#race-canvas[data-free-orbit]{touch-action:pinch-zoom}
#race-canvas:active{cursor:grabbing}
.gravity-shell #race-canvas:focus-visible{outline:2px solid #f2d9a6;outline-offset:-3px}
#stage-3d .camera-controls{
  position:static;grid-row:1;flex-wrap:wrap;align-items:center;gap:6px 12px;
  padding:7px 9px;border-bottom:1px solid #375657;background:#142e32
}
.camera-reading{flex:1;color:#e4eedb;font-size:.78rem;font-variant-numeric:tabular-nums;white-space:nowrap}
.camera-buttons{display:flex;flex-wrap:wrap;gap:4px}
#stage-3d .camera-controls button{
  min-height:38px;min-width:34px;padding:4px 8px;border-color:#527476;
  background:#1c3c40;color:#edf0e5;font-size:.75rem;line-height:1.15
}
#stage-3d .camera-controls button:hover:not(:disabled,[aria-disabled=true]){background:#315558;border-color:#9daf9d}
#stage-3d .camera-controls button[aria-pressed=true]{background:#d6e5cb;color:#182e2d;border-color:#d6e5cb;font-weight:700}
#stage-3d .camera-controls button[aria-disabled=true]{opacity:.45;cursor:default}
#stage-3d .camera-controls button:focus-visible{outline:2px solid #f2d9a6;outline-offset:1px}
#stage-3d #camera-free,.camera-help-touch{display:none}
#stage{scroll-margin-top:calc(var(--aptifold-bar-height) + 12px)}
#stage-flat{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
#flat-plot{min-height:0}
.shape-reading{
  display:flex;flex-wrap:wrap;gap:4px 16px;align-items:baseline;justify-content:space-between;
  padding:9px 12px;background:#fbf1df;border-bottom:1px solid #d7bd9f;color:#69331f;font-size:.79rem
}
#shape-position{font-variant-numeric:tabular-nums}
#stage-flat .scene-caption{position:static;padding:6px 10px;background:#edf0e5;line-height:1.3}
#handle-mark{fill:#fff0df;stroke:#9b3516;stroke-width:2;vector-effect:non-scaling-stroke}
#handle-dot{fill:#9b3516}
#stage-flat[data-shaping] #handle-mark{fill:#9b3516}
#stage-flat[data-shaping] #handle-dot{fill:#fff0df}
#stage-flat[data-shaping] #wire-custom{stroke-width:7}
#stage-flat[data-shaping] #construction{stroke:#9b3516;stroke-width:2.5}
#wire-previous,#bead-previous{fill:none;stroke:#654774;vector-effect:non-scaling-stroke;pointer-events:none}
#wire-previous{stroke-width:2;stroke-dasharray:5 3}
#bead-previous{stroke-width:2.5}
.wire-overlay{
  margin-top:8px;padding:8px 11px 10px;border:1px solid #c3b8c5;border-radius:6px;
  background:#f0ebef;color:#3e2d48;font-size:.77rem;line-height:1.4
}
.wire-overlay-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:4px 12px}
.gravity-shell #toggle-overlay{
  min-height:34px;padding:5px 9px;background:#faf7fa;color:#3e2d48;border-color:#9f89a6;font-size:.74rem
}
.gravity-shell #toggle-overlay[aria-pressed=true]{background:#e5dbe8;font-weight:700}
.wire-overlay-key{display:flex;flex-wrap:wrap;gap:3px 14px;margin:3px 0 5px;font-size:.71rem}
.wire-overlay-key span{display:inline-flex;align-items:center;gap:6px}
.wire-overlay-key span::before{content:"";width:15px;border-top:2px solid #a23e22}
.wire-overlay-key .previous-wire-key::before{border-color:#654774;border-top-style:dashed}
#wire-overlay-now,#wire-overlay-point{font-variant-numeric:tabular-nums}
#wire-overlay-point{margin-top:3px;font-weight:700}
#stage-3d .scene-caption{
  position:static;grid-row:3;padding:7px 10px;background:#142e32;
  border-top:1px solid #375657;color:#cfdbce;font-size:.72rem;line-height:1.3
}
@media(max-width:600px){
  #stage:has(#stage-3d:not([hidden])){height:395px}
  #stage-3d .camera-controls{gap:5px;padding:6px}
  #stage-3d .camera-controls button{min-height:44px;min-width:40px;padding:4px 6px}
  .camera-buttons{flex-basis:100%}
}
@media(pointer:coarse){
  #stage-3d #camera-free,.camera-help-touch{display:inline}
  .camera-help-pointer{display:none}
  #stage-3d #camera-free{min-height:44px}
}

.race-start-actions{margin-bottom:7px}
.race-start-actions button{min-height:44px}
.race-start-actions .race-result-link{
  display:grid;
  justify-items:start;
  gap:3px;
  padding:6px 11px;
  border-color:#78968c;
  background:#e3ede3;
  color:#173d42;
  line-height:1.15;
}
.race-start-actions .race-result-link[hidden]{display:none}
.race-result-link strong{font-size:12px;font-variant-numeric:tabular-nums}
.race-result-link>span{text-decoration:underline;text-underline-offset:2px}
.race-lead{
  --lane-label:90px;
  --lane-reading:65px;
  --lane-gap:12px;
  margin:8px 0 14px;padding:10px 13px 12px;background:#edf0e7;
  border:1px solid #bdc9bd;border-radius:6px
}
.lead-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 12px}
.lead-heading h3{font-size:1.05rem}
.lead-jumps{display:flex;flex-wrap:wrap;gap:4px}
.gravity-shell .lead-jumps button{
  min-height:30px;padding:4px 9px;background:#f8f8ee;border-color:#a6b3a5;
  color:#244342;font-size:.72rem;font-weight:700
}
.gravity-shell .lead-jumps button:hover:not(:disabled){background:#dce8d9;border-color:#607d72}
#lead-summary{margin:3px 0 8px;color:#23403e;font-size:.82rem;font-weight:700;font-variant-numeric:tabular-nums}
.lead-axis-label{margin-left:calc(var(--lane-label) + var(--lane-gap));color:#455e5a;font-size:.65rem}
.lead-scale{
  display:flex;justify-content:space-between;color:#455e5a;font-size:.64rem;
  margin:3px calc(var(--lane-reading) + var(--lane-gap)) 0 calc(var(--lane-label) + var(--lane-gap));
  font-variant-numeric:tabular-nums
}
.lead-lanes{list-style:none;margin:0;padding:0}
.lead-lanes li{
  display:grid;grid-template-columns:var(--lane-label) minmax(0,1fr) var(--lane-reading);
  gap:var(--lane-gap);align-items:center;min-height:24px;font-weight:700;font-size:.72rem
}
.lead-name{margin-left:.3ch}
.lead-lanes output{text-align:right;color:#233b37;font-variant-numeric:tabular-nums;white-space:nowrap}
.lead-track{
  display:block;height:14px;position:relative;border-inline:1px solid #95aa9e;
  background:linear-gradient(#bbcabd,#bbcabd) center/1px 100% no-repeat,
    linear-gradient(#c2cfc1,#c2cfc1) center/100% 2px no-repeat
}
.lead-line{
  display:block;position:absolute;top:5px;left:0;height:4px;width:0;background:currentColor
}
.lead-line::after{
  content:"";position:absolute;right:0;top:50%;width:8px;height:8px;
  background:currentColor;border-radius:50%;transform:translate(50%,-50%)
}
.lead-line[data-leading=true]::after{box-shadow:0 0 0 2px #edf0e7,0 0 0 3px currentColor}
@media(max-width:720px){
  .view-tabs button{min-height:44px}
  .gravity-shell .lead-jumps button{min-height:44px}
  .gravity-shell #toggle-overlay{min-height:44px}
  .race-lead{--lane-label:76px;--lane-reading:54px;--lane-gap:8px;padding-inline:10px}
}
