/* Hold-steering-wheel explainer: a split workbench. On the left, the steering wheel from the driver's seat with the
   hands on it, the steering column and a brake pressure bar; on the right, the road from above with the truck's steer
   tires, a curb and a pothole. Hero, film, course offer and return banner reuse spring-brakes.css (.sbp-*); this file
   styles only .sw-*. The script sets the stage's data-grip, data-hazard, data-wheel, data-pull, data-brake, data-card
   data-jolt and data-press states. Without script the picture shows both hands on opposite sides, the wheel steady and the pedal
   up. Every SVG label is at least 11px in the 360 wide viewBox, and the teaching labels are 12px so they read on a phone. */
.sw-page{--sw-go:#31d67b;--sw-sig:#fbbf24;--sw-red:#ef4444;--sw-console:#151b20}
.sw-page .sbp-hero-grid.is-no-film{grid-template-columns:minmax(0,1fr)}
.sw-demo{padding-block:64px 72px;background:var(--paper)}
.sw-demo-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);grid-template-areas:"head head" "stage panel";gap:24px 40px;align-items:start}
.sw-head{grid-area:head}
.sw-stage{grid-area:stage;margin:0;padding:10px;border-radius:16px;background:linear-gradient(170deg,#222a30,#0d1114 80%);box-shadow:0 30px 60px -34px rgb(0 0 0/.75),inset 0 1px 0 rgb(255 255 255/.06)}
.sw-svg{display:block;width:100%;height:auto;border-radius:10px;background:#0f1316}
.sw-panel{grid-area:panel;display:grid;gap:14px;min-width:0}

/* the HUD: grip, wheel control and braking; script on */
.sw-hud{display:none;align-items:center;gap:6px;flex-wrap:wrap;padding:0 2px 10px}
.sw-stage.is-js .sw-hud{display:flex}
.sw-chip{display:inline-flex;align-items:center;gap:7px;margin:0;padding:6px 10px 6px 8px;border-radius:8px;background:#080b0d;box-shadow:inset 0 0 0 1px rgb(255 255 255/.09);font-size:13px;line-height:1;white-space:nowrap}
.sw-chip i{flex:none;width:9px;height:9px;border-radius:50%;background:#3a4246;box-shadow:inset 0 0 0 1.5px #586166;transition:background .2s,box-shadow .2s}
.sw-chip span{color:#a9b3b8;font-weight:600}
.sw-chip b{color:#e8eef0;font-weight:800}
.sw-stage[data-grip="both"] .sw-chip-grip i{background:var(--sw-go);box-shadow:0 0 0 2px rgb(49 214 123/.18),0 0 10px rgb(49 214 123/.8)}
.sw-stage[data-grip="both"] .sw-chip-grip b{color:var(--sw-go)}
.sw-stage:not([data-grip="both"]) .sw-chip-grip i{background:var(--sw-sig);box-shadow:0 0 0 2px rgb(251 191 36/.2),0 0 10px rgb(251 191 36/.8)}
.sw-stage:not([data-grip="both"]) .sw-chip-grip b{color:#fde68a}
.sw-stage[data-wheel="held"] .sw-chip-wheel i{background:var(--sw-go);box-shadow:0 0 0 2px rgb(49 214 123/.18),0 0 10px rgb(49 214 123/.8)}
.sw-stage[data-wheel="held"] .sw-chip-wheel b{color:var(--sw-go)}
.sw-stage[data-wheel="yanked"] .sw-chip-wheel i{background:var(--sw-red);box-shadow:0 0 0 2px rgb(239 68 68/.2),0 0 10px rgb(239 68 68/.85)}
.sw-stage[data-wheel="yanked"] .sw-chip-wheel b{color:#fca5a5}
.sw-stage[data-brake="gradual"] .sw-chip-brake i{background:var(--sw-go);box-shadow:0 0 0 2px rgb(49 214 123/.18),0 0 10px rgb(49 214 123/.8)}
.sw-stage[data-brake="gradual"] .sw-chip-brake b{color:var(--sw-go)}
.sw-stage[data-brake="stab"] .sw-chip-brake i{background:var(--sw-red);box-shadow:0 0 0 2px rgb(239 68 68/.2),0 0 10px rgb(239 68 68/.85)}
.sw-stage[data-brake="stab"] .sw-chip-brake b{color:#fca5a5}

/* labels: every teaching label 12px, light on dark with a dark halo */
.sw-cap{fill:#c3ccd0;font-size:12px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.sw-part{fill:#e8eef0;font-size:12px;font-weight:800;letter-spacing:.03em;paint-order:stroke;stroke:#0d1114;stroke-width:2.6px;stroke-linejoin:round}
.sw-part-mid{text-anchor:middle}
.sw-part-end{text-anchor:end}
.sw-part-strong{fill:#ffffff;font-size:12.5px}
.sw-part-warn{fill:#fde68a}
.sw-part-go{fill:#86efac}
.sw-grip,.sw-brake{display:none;fill:#ffffff;font-size:11px;font-weight:800;paint-order:stroke;stroke:#0d1114;stroke-width:2.6px;stroke-linejoin:round}
.sw-grip{text-anchor:middle}
.sw-stage[data-grip="both"] .sw-grip-both,.sw-stage[data-grip="top"] .sw-grip-top,.sw-stage[data-grip="loose"] .sw-grip-loose{display:inline}
.sw-stage[data-grip="both"] .sw-grip-both{fill:#86efac}
.sw-stage:not([data-grip="both"]) .sw-grip{fill:#fde68a}
.sw-stage[data-brake="idle"] .sw-brake-idle,.sw-stage[data-brake="gradual"] .sw-brake-gradual,.sw-stage[data-brake="stab"] .sw-brake-stab{display:inline}
.sw-brake-gradual{fill:#86efac}
.sw-brake-stab{fill:#fca5a5}
.sw-divider{fill:none;stroke:#ffffff;stroke-opacity:.08;stroke-width:1}

/* the wheel, the column and the hands */
.sw-column{fill:#4a555b;stroke:#1a2024;stroke-width:1}
.sw-gear{fill:#5e696c;stroke:#2a3133;stroke-width:1}
.sw-link{fill:none;stroke:var(--sw-sig);stroke-width:1.6;stroke-dasharray:3 3;stroke-opacity:.7}
.sw-wheel{transform-box:view-box;transform-origin:88px 110px;transition:transform .45s cubic-bezier(.2,1.3,.4,1)}
.sw-rim{fill:none;stroke:url(#sw-g-rim);stroke-width:10}
.sw-rim-grip{fill:none;stroke:#0b0e10;stroke-width:1.2;stroke-dasharray:2 3}
.sw-spokes{fill:none;stroke:#3a4348;stroke-width:7;stroke-linecap:round}
.sw-hub{stroke:#1a2024;stroke-width:1}
.sw-top-mark{fill:none;stroke:var(--sw-sig);stroke-width:10}
.sw-fist{stroke:#6b3f22;stroke-width:1}
.sw-knuckle{fill:none;stroke:#8a5532;stroke-width:1;stroke-linecap:round;opacity:.7}
.sw-palm{stroke:#6b3f22;stroke-width:1;opacity:.75}
.sw-tip{fill:#f1c9a0;stroke:#6b3f22;stroke-width:.8}
.sw-hand{transition:opacity .2s}
.sw-hand-top,.sw-loose{display:none}
.sw-stage[data-grip="top"] .sw-hand-l,.sw-stage[data-grip="top"] .sw-hand-r{display:none}
.sw-stage[data-grip="top"] .sw-hand-top{display:inline}
.sw-stage[data-grip="loose"] .sw-firm{display:none}
.sw-stage[data-grip="loose"] .sw-loose{display:inline}
.sw-stage[data-pull="left"] .sw-wheel{transform:rotate(-80deg)}
.sw-stage[data-pull="right"] .sw-wheel{transform:rotate(80deg)}
.sw-stage.is-js[data-jolt="a"] .sw-wheel{animation:sw-jolt-a .4s ease-out}
.sw-stage.is-js[data-jolt="b"] .sw-wheel{animation:sw-jolt-b .4s ease-out}

/* the brake pressure bar: gradual builds slowly, a stab jumps to full */
.sw-bar{fill:#080b0d;stroke:#59636a;stroke-width:1}
.sw-bar-fill{fill:url(#sw-g-press);transform-box:fill-box;transform-origin:0 50%;transform:scaleX(0);transition:transform .3s ease-out}
.sw-stage[data-brake="gradual"] .sw-bar-fill{transform:scaleX(.62);transition:transform 1.8s cubic-bezier(.3,0,.4,1)}
.sw-stage[data-brake="stab"] .sw-bar-fill{fill:var(--sw-red);transform:scaleX(1);transition:transform .08s linear}
/* every brake trial starts from an empty bar: data-press flips a/b so the fill animation replays from 0% */
.sw-stage.is-js[data-brake="gradual"][data-press="a"] .sw-bar-fill{animation:sw-press-gradual-a 1.8s cubic-bezier(.3,0,.4,1) both}
.sw-stage.is-js[data-brake="gradual"][data-press="b"] .sw-bar-fill{animation:sw-press-gradual-b 1.8s cubic-bezier(.3,0,.4,1) both}
.sw-stage.is-js[data-brake="stab"][data-press="a"] .sw-bar-fill{animation:sw-press-stab-a .12s linear both}
.sw-stage.is-js[data-brake="stab"][data-press="b"] .sw-bar-fill{animation:sw-press-stab-b .12s linear both}
.sw-bar-ticks{fill:none;stroke:#ffffff;stroke-opacity:.25;stroke-width:1}

/* the road, the curb and the pothole */
.sw-road{stroke:#0b0e10;stroke-width:1}
.sw-lane{fill:none;stroke:var(--sw-sig);stroke-width:2;stroke-dasharray:10 8;stroke-opacity:.8}
.sw-curb{stroke:#4f5a5e;stroke-width:1;transition:stroke .2s}
.sw-stage[data-hazard="curb"] .sw-curb{stroke:var(--sw-sig);stroke-width:2}
.sw-pothole{display:none}
.sw-stage[data-hazard="pothole"] .sw-pothole{display:inline}
.sw-hole{fill:#0b0d0f;stroke:#59636a;stroke-width:1.4}
.sw-hole-in{fill:#000;opacity:.8}
.sw-impact{display:none}
.sw-stage[data-hazard="curb"] .sw-impact{display:inline}
.sw-impact-star{fill:none;stroke:var(--sw-sig);stroke-width:2.2;stroke-linecap:round}
.sw-stopline{display:none}
.sw-stage[data-brake="gradual"] .sw-stopline{display:inline}
.sw-stop-bar{fill:none;stroke:#ffffff;stroke-width:4;stroke-linecap:round}

/* the truck from above: it slides to the curb on a curb strike and turns off its line when the wheel is yanked */
.sw-truck{transform-box:view-box;transform-origin:270px 180px;transition:transform .45s cubic-bezier(.3,1.2,.5,1)}
.sw-stage[data-hazard="curb"] .sw-truck{transform:translateX(32px)}
.sw-stage[data-pull="left"] .sw-truck{transform:translateX(-14px) rotate(-11deg)}
.sw-stage[data-pull="right"] .sw-truck{transform:translateX(22px) rotate(9deg)}
.sw-cab,.sw-hood{stroke:#4a0d0d;stroke-width:1}
.sw-glass{fill:#9fd8f0;opacity:.75}
.sw-axle{fill:none;stroke:#11161a;stroke-width:3}
.sw-tire{fill:#0b0d0e;stroke:#59636a;stroke-width:1;transform-box:fill-box;transform-origin:center;transition:transform .35s}
.sw-stage[data-pull="left"] .sw-tire{transform:rotate(-26deg)}
.sw-stage[data-pull="right"] .sw-tire{transform:rotate(26deg)}
.sw-path{fill:none;stroke:var(--sw-go);stroke-width:2.4;stroke-dasharray:6 5;stroke-linecap:round}
.sw-path-head{fill:none;stroke:var(--sw-go);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.sw-stage[data-wheel="yanked"] .sw-path,.sw-stage[data-wheel="yanked"] .sw-path-head{stroke:var(--sw-red)}
.sw-skid{display:none}
.sw-skid rect{fill:#050607;stroke:#c3ccd0;stroke-width:1;stroke-dasharray:3 2;stroke-opacity:.7}
.sw-stage[data-brake="stab"] .sw-skid{display:inline}

/* the result card */
.sw-card-box{fill:#080b0d;stroke:#59636a;stroke-width:1.2;transition:stroke .2s}
.sw-card-big{font-size:13px;font-weight:900;letter-spacing:.05em;text-anchor:middle}
.sw-card-sub{fill:#e8eef0;font-size:12px;font-weight:700;text-anchor:middle}
.sw-say{display:none}
.sw-stage[data-card="ready"] .sw-say-ready,.sw-stage[data-card="held"] .sw-say-held,.sw-stage[data-card="yanked"] .sw-say-yanked,
.sw-stage[data-card="smooth"] .sw-say-smooth,.sw-stage[data-card="skid"] .sw-say-skid{display:inline}
.sw-say-ready .sw-card-big{fill:#e8eef0}
.sw-say-held .sw-card-big,.sw-say-smooth .sw-card-big{fill:var(--sw-go)}
.sw-say-yanked .sw-card-big,.sw-say-skid .sw-card-big{fill:#fca5a5}
.sw-stage[data-card="held"] .sw-card-box,.sw-stage[data-card="smooth"] .sw-card-box{stroke:var(--sw-go)}
.sw-stage[data-card="yanked"] .sw-card-box,.sw-stage[data-card="skid"] .sw-card-box{stroke:var(--sw-red)}

@keyframes sw-jolt-a{0%{transform:rotate(0)}25%{transform:rotate(-5deg)}55%{transform:rotate(3deg)}100%{transform:rotate(0)}}
@keyframes sw-jolt-b{0%{transform:rotate(0)}25%{transform:rotate(-5deg)}55%{transform:rotate(3deg)}100%{transform:rotate(0)}}
@keyframes sw-press-gradual-a{from{transform:scaleX(0)}to{transform:scaleX(.62)}}
@keyframes sw-press-gradual-b{from{transform:scaleX(0)}to{transform:scaleX(.62)}}
@keyframes sw-press-stab-a{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes sw-press-stab-b{from{transform:scaleX(0)}to{transform:scaleX(1)}}

/* controls: one dark console, every button the same dark face and white text, amber when active or focused */
.sw-ask{margin:0;color:var(--ink);font-size:20px;line-height:1.25}
.sw-ask[hidden],.sw-controls[hidden]{display:none}
.sw-ask b{font-weight:800}
.sw-controls{display:grid;gap:12px;padding:14px;border-radius:16px;background:linear-gradient(180deg,#232b31,var(--sw-console));box-shadow:0 18px 40px -28px rgb(0 0 0/.8),inset 0 1px 0 rgb(255 255 255/.07);color:#e8eef0}
.sw-btn{position:relative;display:flex;align-items:center;gap:12px;min-width:0;min-height:48px;padding:10px 12px;border:0;border-radius:12px;background:linear-gradient(180deg,#303a41,#1b2227);box-shadow:inset 0 1px 0 rgb(255 255 255/.1),0 3px 0 #06090b,0 8px 16px -10px rgb(0 0 0/.7);color:#fff;font:inherit;font-size:16px;font-weight:700;line-height:1.2;text-align:left;cursor:pointer;transition:transform .08s,box-shadow .12s,background .12s}
.sw-btn:hover{background:linear-gradient(180deg,#38434b,#20282d)}
.sw-btn:active{transform:translateY(2px);box-shadow:inset 0 1px 0 rgb(255 255 255/.06),0 1px 0 #06090b}
.sw-btn[aria-pressed="true"]{transform:translateY(2px);box-shadow:inset 0 0 0 2px var(--sbp-amber,#ffb400),0 1px 0 #06090b}
.sw-btn:focus-visible{outline:3px solid var(--sbp-amber,#ffb400);outline-offset:3px}
.sw-group{display:grid;gap:6px}
.sw-label{margin:0;color:#a9b3b8;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.sw-seg{display:grid;gap:6px}
.sw-seg-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.sw-seg-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.sw-btn-seg{justify-content:center;padding:8px 6px;text-align:center;font-size:15px}
.sw-reset{justify-self:start;gap:8px;min-height:44px;padding:8px 16px 8px 12px;font-size:15px}
.sw-reset-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sw-status{display:block;min-height:7.3em;padding:12px 14px 12px 16px;border-left:5px solid var(--sw-sig);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}
.sw-stage[data-card="held"]~.sw-panel .sw-status,.sw-stage[data-card="smooth"]~.sw-panel .sw-status{border-left-color:var(--sw-go)}
.sw-stage[data-card="yanked"]~.sw-panel .sw-status,.sw-stage[data-card="skid"]~.sw-panel .sw-status{border-left-color:var(--sw-red)}
.sw-text{margin:0;max-width:40em;color:var(--ink);font-size:17px;line-height:1.6}

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