/* Off-tracking explainer: a right turn around a tight city corner, seen from above. Hero, film, course offer and return
   banner reuse spring-brakes.css (.sbp-*); this file styles only .ot-*. The stage's data-rig shows the units of the
   chosen rig, data-curb turns the rear track coral once an inside tire is over the curb, and data-side tells whether a
   car has pulled into the gap on the right. offtracking.js moves each unit by its transform attribute, so no rule here
   may transform .ot-unit, .ot-car or .ot-strike. Colors follow the film: teal cab, cream trailer, amber marks. */
.ot-page{--ot-front:#67d6ff;--ot-rear:#f3b75d;--ot-hit:#ff8f78;--ot-ok:#71decc;--ot-console:#161c20}
.ot-page .sbp-hero-grid.is-no-film{grid-template-columns:minmax(0,1fr)}
.ot-demo{padding-block:64px 72px;background:var(--paper)}
.ot-demo-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);grid-template-areas:"head head" "stage panel";gap:24px 40px;align-items:start}
.ot-head{grid-area:head}
.ot-stage{grid-area:stage;margin:0;padding:10px;border-radius:16px;background:linear-gradient(170deg,#1d272c,#0d1215 80%);box-shadow:0 30px 60px -34px rgb(0 0 0/.75),inset 0 1px 0 rgb(255 255 255/.06)}
.ot-svg{display:block;width:100%;height:auto;border-radius:10px;background:#2b3438}
.ot-panel{grid-area:panel;display:grid;gap:14px}

/* tell-tales over the scene */
.ot-hud{display:grid;grid-template-columns:repeat(4,auto);justify-content:start;gap:6px;padding:0 2px 10px}
.ot-lamp{position:relative;display:inline-flex;align-items:center;gap:7px;margin:0;padding:6px 10px 6px 8px;border-radius:8px;background:#0a0e10;box-shadow:inset 0 0 0 1px rgb(255 255 255/.09);font-size:13px;line-height:1;white-space:nowrap;overflow:hidden}
.ot-lamp i{flex:none;width:9px;height:9px;border-radius:50%;background:#5d686c;transition:background .2s,box-shadow .2s}
.ot-lamp span{color:#a7afb6;font-weight:600}
.ot-lamp b{color:#e9e7e1;font-weight:800}
.ot-lamp.is-ok i{background:var(--ot-ok);box-shadow:0 0 0 2px rgb(113 222 204/.18),0 0 10px rgb(113 222 204/.8)}
.ot-lamp.is-ok b{color:var(--ot-ok)}
.ot-lamp.is-warn i{background:var(--ot-rear);box-shadow:0 0 0 2px rgb(243 183 93/.2),0 0 10px rgb(243 183 93/.85)}
.ot-lamp.is-warn b{color:var(--ot-rear)}
.ot-lamp.is-bad i{background:var(--ot-hit);box-shadow:0 0 0 2px rgb(255 143 120/.22),0 0 12px rgb(255 143 120/.95)}
.ot-lamp.is-bad b{color:var(--ot-hit)}
.ot-stage.is-driving .ot-lamp.is-bad i{animation:ot-blink .5s steps(2,jump-none) infinite}
@keyframes ot-blink{50%{background:#5a2a22;box-shadow:none}}
.ot-lamp-rig i{background:var(--ot-front);box-shadow:0 0 8px rgb(103 214 255/.7)}
.ot-lamp-rig b{color:#e9e7e1}
/* the inside-cut meter along the lamp's lower edge */
.ot-meter{position:absolute;left:0;bottom:0;height:3px;width:calc(var(--ot-cut,.626) * 100%);background:linear-gradient(90deg,var(--ot-front),var(--ot-rear));transition:width .12s linear}

/* the ground */
.ot-patch{fill:#3a454a;opacity:.35;stroke:#20272a;stroke-width:.8;stroke-opacity:.6}
.ot-wear{fill:none;stroke:#1a2023;stroke-width:6;opacity:.22;stroke-linecap:round}
.ot-stain{fill:#11171a;opacity:.3}
.ot-manhole circle{fill:#2b3236;stroke:#596468;stroke-width:1.2}
.ot-manhole .ot-manhole-ring{fill:none;stroke:#1a1f22;stroke-width:.8}
.ot-manhole path{fill:none;stroke:#566166;stroke-width:.8}
.ot-drain{fill:#15191b;stroke:#5c676b;stroke-width:.7}
.ot-drain-slot{fill:none;stroke:#59646a;stroke-width:.8}
.ot-gutter{fill:none;stroke:#161b1d;stroke-width:5;opacity:.75}
.ot-walk{fill:url(#ot-g-walk)}
.ot-curb-seam{fill:none;stroke:#8d9087;stroke-width:.9}
.ot-slab{fill:none;stroke:#8f9289;stroke-width:.7;opacity:.8}
.ot-curb-top{fill:none;stroke:#ecede6;stroke-width:1.6;opacity:.9}
.ot-lawn{fill:url(#ot-g-lawn)}
.ot-lawn-edge{fill:none;stroke:#7c8173;stroke-width:1.4}
.ot-roof{fill:url(#ot-g-roof)}
.ot-parapet{fill:none;stroke:#8a9296;stroke-width:1.6}
.ot-hvac{fill:#6c767a;stroke:#2c3336;stroke-width:.8}
.ot-hvac-fan{fill:#30383b;stroke:#9aa4a8;stroke-width:.6}
.ot-zebra{fill:#ecebe3;opacity:.86}
.ot-stopbar{fill:none;stroke:#ecebe3;stroke-width:3.4;opacity:.82}
.ot-yellow{fill:none;stroke:#e8b64c;stroke-width:1.7;opacity:.9}
.ot-lane{fill:none;stroke:#ecebe3;stroke-width:1.6;stroke-dasharray:9 9;opacity:.6}
.ot-arrow{fill:#ecebe3;opacity:.62}
.ot-bollard-shade{fill:#0b0f11;opacity:.35}
.ot-bollard{fill:#f2c94c;stroke:#6b5317;stroke-width:1}
.ot-hydrant-shade{fill:#0b0f11;opacity:.35}
.ot-hydrant-cap{fill:#b53324;stroke:#5a1810;stroke-width:.6}
.ot-hydrant-body{fill:#d8432f;stroke:#5a1810;stroke-width:1}
.ot-hydrant-top{fill:#f0b84a}
.ot-tree-shadow{fill:#081008;opacity:.42}
.ot-tree-glint{fill:#d4ec9a;opacity:.55}
.ot-vignette{pointer-events:none}
.ot-curb-name{fill:#f4f2ec;font-size:10.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;paint-order:stroke;stroke:#2c3133;stroke-width:3px;stroke-linejoin:round}
.ot-stage[data-curb="hit"] .ot-curb-name{fill:var(--ot-hit)}

/* wheel tracks */
.ot-sweep{fill:var(--ot-rear);fill-opacity:.16;stroke:none}
.ot-stage[data-curb="hit"] .ot-sweep{fill:var(--ot-hit);fill-opacity:.2}
.ot-track-mid{fill:none;stroke:#f7dcaa;stroke-width:1.5;stroke-dasharray:1.2 3.4;stroke-linecap:round;opacity:.85}
.ot-track-glow{fill:none;stroke:var(--ot-rear);stroke-width:9;stroke-linecap:round;stroke-linejoin:round;opacity:.2}
.ot-track-rear{fill:none;stroke:var(--ot-rear);stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round}
.ot-track-front{fill:none;stroke:var(--ot-front);stroke-width:2.8;stroke-dasharray:6 4.5;stroke-linecap:round;stroke-linejoin:round}
.ot-stage[data-curb="hit"] .ot-track-rear{stroke:var(--ot-hit)}
.ot-stage[data-curb="hit"] .ot-track-glow{stroke:var(--ot-hit);opacity:.3}
.ot-strike{display:none}
.ot-strike.is-on{display:inline}
.ot-strike-glow{fill:url(#ot-g-hit)}
.ot-strike-ring{fill:none;stroke:var(--ot-hit);stroke-width:2.2}
.ot-strike-spark{fill:none;stroke:#ffd3c7;stroke-width:1.6;stroke-linecap:round}
.ot-strike.is-on .ot-strike-ring{animation:ot-pulse 1s ease-out infinite;transform-box:fill-box;transform-origin:center}
@keyframes ot-pulse{from{opacity:1;stroke-width:3}to{opacity:.25;stroke-width:1}}
.ot-gap{display:none;fill:none;stroke:#fff;stroke-width:1.5;stroke-dasharray:2.4 2.2}
.ot-gap-name{display:none;fill:#fff;font-size:11px;font-weight:800;text-anchor:middle;paint-order:stroke;stroke:#0d1214;stroke-width:3.4px;stroke-linejoin:round}
.ot-gap.is-on,.ot-gap-name.is-on{display:inline}

/* the units of each rig */
.ot-stage[data-rig="tractor"] :is(.ot-semi,.ot-lead,.ot-dolly,.ot-pup){display:none}
.ot-stage[data-rig="semi"] :is(.ot-lead,.ot-dolly,.ot-pup){display:none}
.ot-stage[data-rig="doubles"] .ot-semi{display:none}
.ot-shade{fill:#030506;opacity:.4}
.ot-tire{fill:#15191c;stroke:#4a5358;stroke-width:.7}
.ot-frame{fill:#2a3134}
.ot-rail{fill:none;stroke:#4d575b;stroke-width:1.2}
.ot-fifth{fill:#3a4246;stroke:#8f9a9d;stroke-width:.8}
.ot-fifth-slot{fill:none;stroke:#15191b;stroke-width:1.4;stroke-linecap:round}
.ot-flap{fill:#101416}
.ot-tail{fill:#e2412a}
.ot-drawbar{fill:none;stroke:#59646a;stroke-width:1.8;stroke-linejoin:round}
.ot-eye{fill:#2a3134;stroke:#aab4b6;stroke-width:.8}
.ot-box{fill:url(#ot-g-box);stroke:#8c8575;stroke-width:.9}
.ot-ribs{fill:none;stroke:#c9c2b2;stroke-width:1}
.ot-sheen{fill:#fffdf6;opacity:.32}
.ot-stripe{fill:#2f8a6a}
.ot-nose{fill:none;stroke:#fbf8f0;stroke-width:1.2;opacity:.8}
.ot-doors{fill:none;stroke:#8c8575;stroke-width:.9}
.ot-marker{fill:#ffc56a}
.ot-beam{fill:url(#ot-g-beam)}
.ot-hood,.ot-cabin{fill:url(#ot-g-cab);stroke:#173f3d;stroke-width:.9}
.ot-grille{fill:none;stroke:#173f3d;stroke-width:.7}
.ot-bumper{fill:url(#ot-g-chrome);stroke:#4f5a5e;stroke-width:.5}
.ot-headlamp{fill:#fff6da}
.ot-glass{fill:url(#ot-g-glass)}
.ot-fairing{fill:url(#ot-g-fairing);stroke:#245a57;stroke-width:.6}
.ot-fairing-line{fill:none;stroke:#bdeee8;stroke-width:.8;opacity:.6}
.ot-amber{fill:#ffc56a}
.ot-mirror-arm{fill:none;stroke:#22292c;stroke-width:1.2}
.ot-mirror{fill:#1f2629;stroke:#a7b1b3;stroke-width:.6}
.ot-stack{fill:url(#ot-g-chrome);stroke:#4f5a5e;stroke-width:.4}

/* the car in the gap */
.ot-car{display:none}
.ot-car.is-on{display:inline}
.ot-car-body{fill:url(#ot-g-car);stroke:#16263a;stroke-width:.9}
.ot-car-glass{fill:url(#ot-g-glass)}
.ot-car-roof{fill:#5a86b9;stroke:#3a5e88;stroke-width:.6}
.ot-car-lamp{fill:#fff6da}
.ot-car-tail{fill:#c9412c}
.ot-car-mirror{fill:none;stroke:#1d3149;stroke-width:1}
.ot-car-ring{fill:rgb(255 143 120/.1);stroke:var(--ot-hit);stroke-width:2;stroke-dasharray:4 3;opacity:0;transition:opacity .2s}
.ot-car.is-trap .ot-car-ring{opacity:1;animation:ot-ring 1.1s ease-in-out infinite}
@keyframes ot-ring{50%{stroke-opacity:.35}}
.ot-car-name{fill:var(--ot-hit);font-size:11px;font-weight:800;paint-order:stroke;stroke:#0d1214;stroke-width:3.4px;stroke-linejoin:round;opacity:0;transition:opacity .2s}
.ot-car.is-trap .ot-car-name{opacity:1}

/* legend under the scene */
.ot-legend{display:flex;flex-wrap:wrap;gap:6px 16px;padding:10px 4px 2px;color:#c9d0d4;font-size:13px;font-weight:700}
.ot-key{display:inline-flex;align-items:center;gap:8px}
.ot-key::before{content:"";flex:none;width:24px;height:0;border-top:3px solid var(--ot-rear)}
.ot-key-front::before{border-top:3px dashed var(--ot-front)}
.ot-key-mid::before{border-top:2px dotted #f7dcaa}
.ot-stage[data-curb="hit"] .ot-key-rear::before{border-top-color:var(--ot-hit)}

/* controls: one dark console for the rig, the strategy and the progress */
.ot-ask{margin:0;color:var(--ink);font-size:20px;line-height:1.25}
.ot-ask b{font-weight:800}
.ot-ask[hidden],.ot-controls[hidden]{display:none}
.ot-controls{display:grid;gap:14px;padding:14px;border-radius:16px;background:linear-gradient(180deg,#1f272c,var(--ot-console));box-shadow:0 18px 40px -28px rgb(0 0 0/.8),inset 0 1px 0 rgb(255 255 255/.07);color:#e9e7e1}
.ot-group{display:grid;gap:8px}
.ot-step{display:flex;align-items:center;gap:8px;margin:0;color:#a7afb6;font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.ot-step i{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#2b3439;color:#e9e7e1;font-style:normal;font-size:11px;letter-spacing:0;box-shadow:inset 0 0 0 1px rgb(255 255 255/.14)}
.ot-seg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.ot-opt{position:relative;display:grid;align-content:start;justify-items:start;gap:3px;min-width:0;min-height:84px;padding:9px 9px 9px;border:0;border-radius:10px;background:linear-gradient(180deg,#2b3439,#1b2125);box-shadow:inset 0 1px 0 rgb(255 255 255/.1),0 3px 0 #090c0e,0 8px 16px -10px rgb(0 0 0/.7);color:#fff;font:inherit;font-size:15px;font-weight:800;line-height:1.15;text-align:left;cursor:pointer;transition:transform .08s,box-shadow .12s,background .12s}
.ot-opt small{color:#a7afb6;font-size:12px;font-weight:600;line-height:1.2}
.ot-opt:hover{background:linear-gradient(180deg,#323c42,#1f262a)}
.ot-opt:active{transform:translateY(2px);box-shadow:inset 0 1px 0 rgb(255 255 255/.06),0 1px 0 #090c0e}
.ot-opt[aria-pressed="true"]{transform:translateY(2px);background:linear-gradient(180deg,#3b464c,#262e33);box-shadow:inset 0 0 0 2px var(--ot-rear),0 1px 0 #090c0e}
.ot-opt[aria-pressed="true"] small{color:#e9e7e1}
.ot-opt-wide small{color:var(--ot-ok)}
.ot-opt-tight small,.ot-opt-swing small{color:var(--ot-hit)}
.ot-opt-swing[aria-pressed="true"]{box-shadow:inset 0 0 0 2px var(--ot-hit),0 1px 0 #090c0e}
.ot-icon{display:block;width:58px;height:17px;margin-bottom:3px}
.ot-icon-turn{width:38px;height:28px}
.ot-icon-cab{fill:#4fa49d;stroke:#173f3d;stroke-width:1}
.ot-icon-frame{fill:#59646a}
.ot-icon-box{fill:#e4decf;stroke:#8c8575;stroke-width:1}
.ot-icon-curb{fill:none;stroke:#8d9087;stroke-width:2.4}
.ot-icon-path{fill:none;stroke:var(--ot-front);stroke-width:2.4;stroke-linecap:round;stroke-dasharray:4 3}
.ot-opt-swing .ot-icon-path{stroke:var(--ot-hit)}
.ot-drive-row{display:flex;gap:8px;align-items:stretch}
.ot-drive{display:inline-flex;align-items:center;justify-content:center;gap:10px;flex:1 1 auto;min-height:52px;padding:8px 18px;border:0;border-radius:999px;background:linear-gradient(180deg,#f7c978,#e7a440);box-shadow:inset 0 1px 0 rgb(255 255 255/.45),0 3px 0 #8a5a17,0 10px 20px -12px rgb(231 164 64/.8);color:#1d1407;font:inherit;font-size:17px;font-weight:800;cursor:pointer;transition:transform .08s,box-shadow .12s}
.ot-drive:active{transform:translateY(2px);box-shadow:inset 0 1px 0 rgb(255 255 255/.35),0 1px 0 #8a5a17}
.ot-drive-icon{flex:none;width:0;height:0;border-style:solid;border-width:8px 0 8px 13px;border-color:transparent transparent transparent #1d1407}
.ot-drive[aria-pressed="true"] .ot-drive-icon{width:13px;height:16px;border:0;background:linear-gradient(90deg,#1d1407 0 4px,transparent 4px 9px,#1d1407 9px)}
.ot-reset{flex:none;min-height:52px;padding:8px 16px;border:0;border-radius:999px;background:#0b0f11;box-shadow:inset 0 0 0 1.5px rgb(255 255 255/.16);color:#fff;font:inherit;font-size:15px;font-weight:700;cursor:pointer}
.ot-reset:hover{background:#000}
.ot-scrub{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"range pct" "marks marks";align-items:center;gap:2px 12px}
.ot-range{grid-area:range;width:100%;height:44px;margin:0;background:transparent;cursor:pointer;-webkit-appearance:none;appearance:none}
.ot-range::-webkit-slider-runnable-track{height:10px;border-radius:5px;background:linear-gradient(90deg,var(--ot-front),var(--ot-rear)) 0/var(--ot-fill,0%) 100% no-repeat,#2a3236;box-shadow:inset 0 1px 2px rgb(0 0 0/.6)}
.ot-range::-moz-range-track{height:10px;border-radius:5px;background:#2a3236;box-shadow:inset 0 1px 2px rgb(0 0 0/.6)}
.ot-range::-moz-range-progress{height:10px;border-radius:5px;background:linear-gradient(90deg,var(--ot-front),var(--ot-rear))}
.ot-range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:30px;height:30px;margin-top:-10px;border-radius:50%;background:radial-gradient(circle,#d7dedd 0 5px,#3a4246 5.5px 8px,#15191c 8.5px);box-shadow:0 0 0 2px var(--ot-rear),0 4px 10px rgb(0 0 0/.6)}
.ot-range::-moz-range-thumb{width:30px;height:30px;border:0;border-radius:50%;background:radial-gradient(circle,#d7dedd 0 5px,#3a4246 5.5px 8px,#15191c 8.5px);box-shadow:0 0 0 2px var(--ot-rear),0 4px 10px rgb(0 0 0/.6)}
.ot-pct{grid-area:pct;min-width:3.2em;color:#fff;font-size:17px;font-weight:800;font-variant-numeric:tabular-nums;text-align:right}
.ot-marks{grid-area:marks;display:flex;justify-content:space-between;margin:0;padding-right:calc(3.2em + 12px);color:#a7afb6;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.ot-opt:focus-visible,.ot-drive:focus-visible,.ot-reset:focus-visible,.ot-range:focus-visible{outline:3px solid var(--sbp-amber);outline-offset:3px}
.ot-status{display:block;min-height:6.2em;padding:12px 14px 12px 16px;border-left:5px solid #9aa7ac;border-radius:0 10px 10px 0;background:var(--white,#fffffc);color:var(--ink);font-size:16px;font-weight:600;line-height:1.45;transition:border-color .2s}
.ot-status[data-tone="good"]{border-left-color:#1f9e83}
.ot-status[data-tone="bad"]{border-left-color:#e2603f}
.ot-text{max-width:40em;margin:0;color:var(--ink);font-size:17px;line-height:1.6}

@media (min-width:761px){
  .ot-page .sbp-film-frame.is-wide{aspect-ratio:auto;padding-bottom:58px;background:#0b0d0f}
  .ot-page .sbp-film-frame.is-wide video{aspect-ratio:16/9;width:100%;height:auto}
  .ot-page .sbp-film-frame.is-wide .sbp-play{bottom:58px}
  .ot-page .sbp-film-frame.is-wide .sbp-sound-on{left:12px;right:auto;top:auto;bottom:10px}
  .ot-page .sbp-film-frame.is-wide .sbp-pause{right:12px;top:auto;bottom:10px}
}
@media (max-width:1100px){
  .ot-hud{grid-template-columns:repeat(2,auto)}
}
@media (max-width:900px){
  .ot-demo-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "stage" "panel";gap:16px}
  .ot-hud{grid-template-columns:repeat(4,auto)}
}
@media (max-width:760px){
  .ot-demo{padding-block:36px 44px}
  .ot-stage{margin-inline:-8px;padding:8px 6px 6px;border-radius:14px}
  .ot-svg{border-radius:8px}
  .ot-hud{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:0 0 8px}
  .ot-lamp{padding:6px 7px 6px 6px;font-size:12px;gap:5px}
  .ot-lamp i{width:8px;height:8px}
  .ot-legend{gap:4px 12px;padding:8px 2px 2px;font-size:12px}
  .ot-key::before{width:18px}
  .ot-panel{gap:10px}
  .ot-ask{font-size:18px}
  .ot-controls{gap:12px;margin-inline:-8px;padding:12px 10px}
  .ot-seg{gap:5px}
  .ot-opt{min-height:80px;padding:8px 7px 8px;font-size:14px}
  .ot-opt small{font-size:11px}
  .ot-icon{width:48px;height:14px}
  .ot-icon-turn{width:32px;height:24px}
  .ot-drive{font-size:16px}
  .ot-reset{padding:8px 14px;font-size:14px}
  .ot-status{min-height:7.6em;padding:10px 12px;font-size:15px}
  .ot-text{font-size:16px}
}
@media (prefers-reduced-motion:reduce){
  .ot-page *{transition:none!important;animation:none!important}
}
