/* Stab-braking explainer: a real-time emergency stop in a tractor-trailer on a wet highway in the rain, seen from above,
   without ABS (lock, release, wait for the roll, re-apply) or with working ABS on all axles (apply fully and hold).
   Hero, film, course offer and return banner reuse spring-brakes.css (.sbp-*); this file styles only .sb-*.
   The stage's data-wheels state colors the tires and the tire cam: mint while they roll, coral while locked, amber
   while they unlock, blue while ABS pulses, plain when stopped. The script moves the truck and turns the trailer by
   their transform attributes, so no rule here may transform .sb-truck or .sb-trailer. */
.sb-page{--sb-roll:#71decc;--sb-lock:#ff8f78;--sb-wait:#f3b75d;--sb-abs:#6cc4ff;--sb-mark:#f3b75d;--sb-console:#161c20}
.sb-page .sbp-hero-grid.is-no-film{grid-template-columns:minmax(0,1fr)}
.sb-demo{padding-block:64px 72px;background:var(--paper)}
.sb-demo-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-areas:"head head" "stage panel";gap:24px 40px;align-items:start}
.sb-head{grid-area:head}
.sb-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)}
.sb-svg{display:block;width:100%;height:auto;margin-inline:auto;border-radius:10px;background:#263129}
.sb-panel{grid-area:panel;display:grid;gap:14px}

/* tell-tales over the scene: ABS, the wheels and the trailer; script on */
.sb-hud{display:none;align-items:center;gap:6px;flex-wrap:wrap;padding:0 2px 10px}
.sb-stage.is-js .sb-hud{display:flex}
.sb-lamp{display:inline-flex;align-items:center;gap:7px;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}
.sb-lamp i{flex:none;width:9px;height:9px;border-radius:50%;background:#4b4232;box-shadow:inset 0 0 0 1.5px #8a7448;transition:background .2s,box-shadow .2s}
.sb-lamp span{color:#a7afb6;font-weight:600}
.sb-lamp b{color:#e9e7e1;font-weight:800}
.sb-lamp.is-ok i{background:var(--sb-roll);box-shadow:0 0 0 2px rgb(113 222 204/.18),0 0 10px rgb(113 222 204/.8)}
.sb-lamp.is-ok b{color:var(--sb-roll)}
.sb-lamp.is-warn i{background:var(--sb-wait);box-shadow:0 0 0 2px rgb(243 183 93/.2),0 0 10px rgb(243 183 93/.85)}
.sb-lamp.is-warn b{color:var(--sb-wait)}
.sb-lamp.is-bad i{background:var(--sb-lock);box-shadow:0 0 0 2px rgb(255 143 120/.22),0 0 12px rgb(255 143 120/.95)}
.sb-lamp.is-bad b{color:var(--sb-lock)}
.sb-lamp.is-abs i{background:var(--sb-abs);box-shadow:0 0 0 2px rgb(108 196 255/.22),0 0 12px rgb(108 196 255/.9)}
.sb-lamp.is-abs b{color:var(--sb-abs)}
.sb-stage.is-running .sb-lamp.is-bad i,.sb-stage.is-running .sb-lamp.is-abs i{animation:sb-blink .4s steps(2,jump-none) infinite}
@keyframes sb-blink{50%{background:#33231f;box-shadow:none}}

/* the ground */
.sb-verge{fill:#33463a}
.sb-edge{fill:none;stroke:#ecebe3;stroke-width:2.4;opacity:.82}
.sb-lane{fill:none;stroke:#ecebe3;stroke-width:2.4;stroke-dasharray:16 14;opacity:.78}
.sb-rail{fill:none;stroke:#9aa5a8;stroke-width:2.6}
.sb-post{fill:none;stroke:#5b6669;stroke-width:3}
.sb-puddle{fill:url(#sb-g-puddle)}
.sb-glint{fill:none;stroke:#e7f3f6;stroke-width:1.2;stroke-linecap:round;opacity:.45}
.sb-streak{pointer-events:none}
.sb-vignette{pointer-events:none}
.sb-road-name{fill:#bfe3f0;font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;paint-order:stroke;stroke:#11181b;stroke-width:3px;stroke-linejoin:round}
.sb-rain{opacity:.17;pointer-events:none}
.sb-stage.is-js .sb-rain{animation:sb-rain .55s linear infinite}
@keyframes sb-rain{from{transform:translate(0,0)}to{transform:translate(-11px,40px)}}

/* the barricade: striped boards, dark legs, amber lamps that flash, cones */
.sb-shade{fill:#030506;opacity:.38}
.sb-leg{fill:none;stroke:#1c2124;stroke-width:3;stroke-linecap:round}
.sb-board{stroke:#5a3a1e;stroke-width:.8}
.sb-lamp-dot{fill:#ffd36b;stroke:#6b4a12;stroke-width:.8}
.sb-flash{opacity:.9}
.sb-stage.is-js .sb-flash{animation:sb-flash 1s steps(2,jump-none) infinite}
.sb-stage.is-js .sb-flash-b{animation-delay:.5s}
@keyframes sb-flash{50%{opacity:.08}}
.sb-cone{fill:#f0761f;stroke:#7a3a10;stroke-width:.6}
.sb-cone-band{fill:none;stroke:#f7f3ea;stroke-width:1.4}
.sb-label{fill:#f4f2ec;font-size:13px;font-weight:800;text-anchor:end;paint-order:stroke;stroke:#0d1214;stroke-width:3.5px;stroke-linejoin:round}
.sb-label-hazard{fill:#ffc56a;font-size:11px;text-anchor:middle;letter-spacing:.06em;text-transform:uppercase}
.sb-stage[data-wheels="rolling"] .sb-label-truck{fill:var(--sb-roll)}
.sb-stage[data-wheels="locked"] .sb-label-truck{fill:var(--sb-lock)}
.sb-stage[data-wheels="unlocking"] .sb-label-truck{fill:var(--sb-wait)}
.sb-stage[data-wheels="abs"] .sb-label-truck{fill:var(--sb-abs)}

/* the tractor-trailer: red cab, cream trailer, lights on */
.sb-beam{fill:url(#sb-g-beam)}
.sb-box{fill:url(#sb-g-box);stroke:#8f8878;stroke-width:1}
.sb-ribs{fill:none;stroke:#c7c0b0;stroke-width:1}
.sb-rails{fill:none;stroke:#fbf8f0;stroke-width:1;opacity:.75}
.sb-tail{fill:#ff5b3e}
.sb-bar{fill:#3c4549;stroke:#9aa5a8;stroke-width:.6}
.sb-cab{fill:url(#sb-g-cab);stroke:#4a1712;stroke-width:1}
.sb-hood-line{fill:none;stroke:#5c1d17;stroke-width:.8;opacity:.7}
.sb-glass{fill:url(#sb-g-glass)}
.sb-roof{fill:#d25a4d;opacity:.8}
.sb-marker{fill:#ffc56a}
.sb-stack{fill:#c7cfd1;stroke:#5b6669;stroke-width:.5}
.sb-bumper{fill:#c7cfd1;stroke:#5b6669;stroke-width:.6}
.sb-headlamp{fill:#fff6da}
.sb-mirror-arm{fill:none;stroke:#2a3134;stroke-width:1.4}
.sb-mirror{fill:#1f2629;stroke:#a7b1b3;stroke-width:.6}
.sb-brake{fill:url(#sb-g-glow);opacity:0}
.sb-mist{fill:url(#sb-g-mist)}

/* tires: a mint edge while they roll, coral while locked, amber while they unlock, blue under ABS */
.sb-wheel{fill:#15191c;stroke:#aab4b4;stroke-width:1.1}
.sb-stage[data-wheels="rolling"] .sb-wheel{stroke:var(--sb-roll)}
.sb-stage[data-wheels="locked"] .sb-wheel{stroke:var(--sb-lock);stroke-width:1.8}
.sb-stage[data-wheels="unlocking"] .sb-wheel{stroke:var(--sb-wait);stroke-width:1.5}
.sb-stage[data-wheels="abs"] .sb-wheel{stroke:var(--sb-abs);stroke-width:1.5}
.sb-skid{fill:none;stroke:#040607;stroke-width:4.6;stroke-linecap:butt;stroke-linejoin:round;opacity:.8}
/* without script: the broken skid marks of a stab-braking stop */
.sb-ghost-skid{display:none;fill:none;stroke:#040607;stroke-width:4.6;opacity:.75}
.sb-stage.is-static .sb-ghost-skid{display:inline}

/* the pedal meter on the verge */
.sb-meter{display:none}
.sb-stage.is-js .sb-meter{display:inline}
.sb-meter-box{fill:#0b1012;fill-opacity:.88;stroke:rgb(255 255 255/.16);stroke-width:1.2}
.sb-meter-name{fill:#e9e7e1;font-size:9px;font-weight:800;letter-spacing:.1em;text-anchor:middle;text-transform:uppercase}
.sb-meter-track{fill:#2a3236}
.sb-meter-fill{fill:var(--sb-mark)}
.sb-stage[data-wheels="locked"] .sb-meter-fill{fill:var(--sb-lock)}
.sb-stage[data-wheels="abs"] .sb-meter-fill{fill:var(--sb-abs)}
.sb-meter-lock{fill:none;stroke:var(--sb-lock);stroke-width:1.6;stroke-dasharray:3 2}
.sb-meter-tag{fill:var(--sb-lock);font-size:8.5px;font-weight:800;text-anchor:middle;text-transform:uppercase;paint-order:stroke;stroke:#0b1012;stroke-width:3px;stroke-linejoin:round}
.sb-stage[data-mode="abs"] .sb-meter-lock,.sb-stage[data-mode="abs"] .sb-meter-tag{opacity:.35}

/* the tire cam: script on */
.sb-cam{display:none}
.sb-stage.is-js .sb-cam{display:inline}
.sb-cam-box{fill:#0b1012;fill-opacity:.9;stroke:#7f8a8c;stroke-width:2;transition:stroke .2s}
.sb-stage[data-wheels="rolling"] .sb-cam-box{stroke:var(--sb-roll)}
.sb-stage[data-wheels="locked"] .sb-cam-box{stroke:var(--sb-lock);stroke-width:2.6}
.sb-stage[data-wheels="unlocking"] .sb-cam-box{stroke:var(--sb-wait);stroke-width:2.4}
.sb-stage[data-wheels="abs"] .sb-cam-box{stroke:var(--sb-abs);stroke-width:2.4}
.sb-cam-name{fill:#e9e7e1;font-size:9.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.sb-cam-sub{fill:#a7afb6;font-size:8.5px;font-weight:700}
.sb-cam-under{fill:#141b1d}
.sb-cam-panel{fill:#a8392f}
.sb-cam-line{fill:none;stroke:#6c241d;stroke-width:3}
.sb-cam-road{fill:#323d41}
.sb-cam-grit{fill:none;stroke:#9fb2b6;stroke-width:1.6;stroke-linecap:round;opacity:.7}
.sb-cam-smear{fill:url(#sb-g-smear);opacity:0;transition:opacity .15s}
.sb-stage[data-wheels="locked"] .sb-cam-smear{opacity:1}
.sb-cam-spray{fill:#dff0f4}
.sb-cam-abs{fill:none;stroke:var(--sb-abs);stroke-width:3;stroke-dasharray:6 5;opacity:0}
.sb-stage[data-wheels="abs"] .sb-cam-abs{opacity:1;animation:sb-pulse .28s ease-in-out infinite alternate}
@keyframes sb-pulse{from{stroke-opacity:1;stroke-width:3.6}to{stroke-opacity:.25;stroke-width:1.6}}
.sb-cam-tire{fill:url(#sb-g-tire)}
.sb-cam-tread{fill:none;stroke:#3d464b;stroke-width:3.2;stroke-dasharray:3.72 3.72}
.sb-cam-wall{fill:none;stroke:#2a3236;stroke-width:1.2}
.sb-cam-rim{fill:url(#sb-g-rim);stroke:#4f5a5e;stroke-width:1}
.sb-cam-dish{fill:#c3cbcd;stroke:#7e898c;stroke-width:.8}
.sb-cam-nuts{fill:#5d686c}
.sb-cam-hub{fill:#a8392f;stroke:#4a1712;stroke-width:1}
.sb-cam-mark{fill:var(--sb-mark)}
.sb-cam-edge{fill:none;stroke:rgb(255 255 255/.1);stroke-width:1}
.sb-cam-track{fill:#2a3236}
.sb-cam-fill{fill:var(--sb-wait)}
.sb-stage[data-wheels="rolling"] .sb-cam-fill{fill:var(--sb-roll)}

/* controls: one dark console for the truck choice and the big brake pedal */
.sb-ask{margin:0;color:var(--ink);font-size:20px;line-height:1.25}
.sb-ask[hidden],.sb-controls[hidden],.sb-tools[hidden]{display:none}
.sb-ask b{font-weight:800}
.sb-controls{display:grid;gap:12px;padding:14px;border-radius:16px;background:linear-gradient(180deg,#1f272c,var(--sb-console));box-shadow:0 18px 40px -28px rgb(0 0 0/.8),inset 0 1px 0 rgb(255 255 255/.07);color:#e9e7e1}
.sb-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:4px;border-radius:12px;background:#0b0f11}
.sb-mode{display:grid;gap:3px;min-width:0;min-height:54px;padding:8px 10px;border:0;border-radius:9px;background:transparent;color:#c9d0d4;font-size:15px;font-weight:800;line-height:1.15;text-align:left;cursor:pointer;touch-action:manipulation;transition:background .15s,box-shadow .15s,color .15s}
.sb-mode small{color:#8f999e;font-size:12px;font-weight:600}
.sb-mode:hover{background:#151b1e}
.sb-mode[aria-pressed="true"]{background:linear-gradient(180deg,#323c42,#232b30);box-shadow:inset 0 0 0 2px var(--sb-mark);color:#fff}
.sb-mode[data-sb-mode="abs"][aria-pressed="true"]{box-shadow:inset 0 0 0 2px var(--sb-abs)}
.sb-mode[aria-pressed="true"] small{color:#e9e7e1}
.sb-pedal{display:flex;align-items:center;gap:14px;width:100%;min-height:84px;padding:12px 16px 12px 12px;border:0;border-radius:14px;background:linear-gradient(180deg,#2f393f,#1b2125);box-shadow:inset 0 1px 0 rgb(255 255 255/.12),0 5px 0 #090c0e,0 14px 24px -12px rgb(0 0 0/.8);color:#fff;text-align:left;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none;transition:transform .08s,box-shadow .12s,background .15s}
.sb-pedal:hover{background:linear-gradient(180deg,#36424a,#1f262a)}
.sb-pedal:active{transform:translateY(3px);box-shadow:inset 0 1px 0 rgb(255 255 255/.06),0 2px 0 #090c0e}
.sb-pedal.is-down{transform:translateY(4px);background:linear-gradient(180deg,#5a2a22,#2c1714);box-shadow:inset 0 0 0 2px var(--sb-lock),0 1px 0 #090c0e,0 0 26px -6px rgb(255 143 120/.7)}
.sb-stage[data-mode="abs"]~.sb-panel .sb-pedal.is-down{background:linear-gradient(180deg,#1f3f5c,#132433);box-shadow:inset 0 0 0 2px var(--sb-abs),0 1px 0 #090c0e,0 0 26px -6px rgb(108 196 255/.7)}
.sb-stage[data-mode="abs"]~.sb-panel .sb-pedal.is-down .sb-pedal-tread{fill:var(--sb-abs)}
.sb-pedal-text{display:grid;gap:4px;min-width:0}
.sb-pedal-text b{font-size:19px;font-weight:900;line-height:1.1;letter-spacing:.01em}
.sb-pedal-text small{color:#b3bcc1;font-size:13px;font-weight:600}
.sb-pedal-art{flex:none;width:64px;height:36px}
.sb-pedal-floor{fill:#3a4448}
.sb-pedal-block{fill:#59656a}
.sb-pedal-lever{fill:#8d999d}
.sb-pedal-tread{fill:#2b3236;stroke:#0d1113;stroke-width:.8}
.sb-pedal-ribs{fill:none;stroke:#59656a;stroke-width:1.4}
.sb-pedal-pin{fill:#d7dedd;stroke:#2b3236;stroke-width:1.2}
.sb-pedal-arm{transform-box:view-box;transform-origin:10.5px 21px;transform:rotate(-24deg);transition:transform .22s cubic-bezier(.3,1.4,.6,1)}
.sb-pedal.is-down .sb-pedal-arm{transform:rotate(-1deg)}
.sb-pedal.is-down .sb-pedal-tread{fill:#ff8f78}
.sb-mode:focus-visible,.sb-pedal:focus-visible,.sb-reset:focus-visible{outline:3px solid var(--sbp-amber);outline-offset:3px}
.sb-status{display:block;min-height:5.9em;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}
.sb-status[data-tone="good"]{border-left-color:#1f9e83}
.sb-status[data-tone="bad"]{border-left-color:#e2603f}
.sb-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.sb-reset{min-height:44px;border:1px solid var(--line);background:transparent;border-radius:999px;padding:10px 16px;font-size:15px;font-weight:700;color:var(--ink);cursor:pointer;touch-action:manipulation}
.sb-text{margin:0;max-width:40em;color:var(--ink);font-size:16px;line-height:1.55}

@media (min-width:761px){
  .sb-page .sbp-film-frame.is-wide{aspect-ratio:auto;padding-bottom:58px;background:#0b0d0f}
  .sb-page .sbp-film-frame.is-wide video{aspect-ratio:16/9;width:100%;height:auto}
  .sb-page .sbp-film-frame.is-wide .sbp-play{bottom:58px}
  .sb-page .sbp-film-frame.is-wide .sbp-sound-on{left:12px;right:auto;top:auto;bottom:10px}
  .sb-page .sbp-film-frame.is-wide .sbp-pause{right:12px;top:auto;bottom:10px}
}
@media (max-width:900px){
  .sb-demo-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "stage" "panel";gap:16px}
}
@media (max-width:760px){
  .sb-demo{padding-block:36px 44px}
  .sb-stage{margin-inline:-8px;padding:8px 6px 6px;border-radius:14px}
  .sb-svg{border-radius:8px}
  .sb-hud{gap:5px;padding:0 0 8px}
  .sb-lamp{padding:5px 7px 5px 6px;font-size:11.5px;gap:5px}
  .sb-lamp i{width:8px;height:8px}
  .sb-panel{gap:10px}
  .sb-ask{font-size:18px}
  .sb-controls{gap:10px;margin-inline:-8px;padding:12px 10px}
  .sb-mode{min-height:52px;padding:8px;font-size:14px}
  .sb-mode small{font-size:11px}
  .sb-pedal{min-height:78px;gap:10px;padding:10px 12px 10px 8px}
  .sb-pedal-art{width:54px;height:31px}
  .sb-pedal-text b{font-size:17px}
  .sb-status{min-height:6.6em;padding:10px 12px;font-size:15px}
  .sb-text{font-size:15px}
}
@media (prefers-reduced-motion:reduce){
  .sb-page .sb-stage *,.sb-page .sb-panel *{transition:none!important;animation:none!important}
}
