/* Before-backing-under-trailer explainer: a hands-on yard coupling simulator.
   Hero, film, course offer and return banner reuse spring-brakes.css (.sbp-*); this file styles only .bu-*.
   Geometry lives in the SVG and the script: the script moves the tractor, rolls the trailer, tips the trailer body
   around its rear axle (320, 198) and redraws the air lines through SVG transform attributes, so nothing here sets a
   CSS transform on those groups. The stage's data attributes (knob, tested, height, result) drive the lights, the
   chock, the knob in the cab-valve panel and the markers. Without script the page shows the ready setup. */
.bu-page{--bu-ok:#31d67b;--bu-warn:#ffb400;--bu-bad:#ef4444;--bu-air:#6ed2ff;--bu-console:#151b20}
.bu-page .sbp-hero-grid.is-no-film{grid-template-columns:minmax(0,1fr)}
.bu-demo{padding-block:64px 72px;background:var(--paper)}
.bu-demo-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);grid-template-areas:"head head" "stage panel";gap:24px 40px;align-items:start}
.bu-head{grid-area:head}
.bu-stage{grid-area:stage;margin:0;padding:10px;border-radius:16px;background:linear-gradient(170deg,#222c35,#0e1317 80%);box-shadow:0 30px 60px -34px rgb(0 0 0/.75),inset 0 1px 0 rgb(255 255 255/.06)}
.bu-svg{display:block;width:100%;height:auto;border-radius:10px;background:#151b26}
.bu-panel{grid-area:panel;display:grid;gap:14px}

/* tell-tales over the stage, script on */
.bu-hud{display:none;align-items:center;gap:6px;flex-wrap:wrap;padding:0 2px 10px}
.bu-stage.is-js .bu-hud{display:flex}
.bu-lamp{display:inline-flex;align-items:center;gap:7px;padding:6px 10px 6px 8px;border-radius:8px;background:#0b0f12;box-shadow:inset 0 0 0 1px rgb(255 255 255/.09);font-size:13px;line-height:1;white-space:nowrap}
.bu-lamp i{flex:none;width:9px;height:9px;border-radius:50%;background:#4a555c;transition:background .2s,box-shadow .2s}
.bu-lamp span{color:#aeb8bf;font-weight:600}
.bu-lamp b{color:#edf1f3;font-weight:800}
.bu-lamp.is-ok i{background:var(--bu-ok);box-shadow:0 0 0 2px rgb(49 214 123/.18),0 0 10px rgb(49 214 123/.75)}
.bu-lamp.is-ok b{color:var(--bu-ok)}
.bu-lamp.is-warn i{background:var(--bu-warn);box-shadow:0 0 0 2px rgb(255 180 0/.2),0 0 10px rgb(255 180 0/.75)}
.bu-lamp.is-warn b{color:#ffd166}
.bu-lamp.is-bad i{background:var(--bu-bad);box-shadow:0 0 0 2px rgb(239 68 68/.2),0 0 10px rgb(239 68 68/.8)}
.bu-lamp.is-bad b{color:#fca5a5}

/* the yard */
.bu-stars{fill:#f3efe2;opacity:.7}
.bu-pole{fill:none;stroke:#2a2732;stroke-width:2.2;stroke-linecap:round}
.bu-lamp-head{fill:#ffe2b0}
.bu-dock{fill:#2b2a36}
.bu-dock-edge{fill:none;stroke:#5c5668;stroke-width:1}
.bu-door{fill:#3c3b48}
.bu-door-lit{fill:#d99a55;opacity:.78}
.bu-door-ribs{fill:none;stroke:#2e2d39;stroke-width:.8}
.bu-dock-lights{fill:#ffe3b2}
.bu-curb{fill:none;stroke:#8a8178;stroke-width:1;opacity:.6}
.bu-joints{fill:none;stroke:#26282b;stroke-width:.8;opacity:.45}
.bu-bay{fill:none;stroke:#f2c94c;stroke-width:2.4;opacity:.5}
.bu-bay-far{fill:none;stroke:#f2c94c;stroke-width:1.2;opacity:.32}
.bu-lane{fill:none;stroke:#f2c94c;stroke-width:3;stroke-dasharray:22 10;opacity:.62}
.bu-tire-path{fill:#1a1c1f;opacity:.2}
.bu-stain{fill:#141618;opacity:.35}
.bu-shadow{fill:#08090a;opacity:.45}

/* wheels */
.bu-tire{fill:#16191c}
.bu-tread{fill:none;stroke:#2c3236;stroke-width:1.8;stroke-dasharray:2.2 1.8}
.bu-tire-wall{fill:none;stroke:#30373c;stroke-width:1.2}
.bu-rim-dish{fill:none;stroke:#6e7a82;stroke-width:.8}
.bu-lugs{fill:#4b555c}
.bu-hub{fill:#f2f5f6;stroke:#5a646b;stroke-width:.6}
.bu-valve{fill:#ffb400}

/* the trailer */
.bu-ribs-hi{fill:none;stroke:#fbfaf6;stroke-width:1;opacity:.85}
.bu-ribs-lo{fill:none;stroke:#a7a090;stroke-width:1;opacity:.7}
.bu-van-rail{fill:#b9b3a4}
.bu-van-post{fill:#c8c2b3}
.bu-tape-red{fill:none;stroke:#d7261e;stroke-width:2.4}
.bu-tape-white{fill:none;stroke:#f7f7f2;stroke-width:2.4;stroke-dasharray:7 7}
.bu-marker{fill:#ffb400}
.bu-apron{fill:#7d8992}
.bu-rivets{fill:none;stroke:#c8d0d5;stroke-width:1;stroke-linecap:round}
.bu-kingpin{fill:#ffc21a;stroke:#5c4300;stroke-width:.7}
.bu-kingpin-collar{fill:#d99a00}
.bu-slider{fill:#3a434a}
.bu-hangers{fill:#4c565d}
.bu-gh-plate{fill:#7f8a92}
.bu-gh{stroke:#1b1f22;stroke-width:.6}
.bu-gh-e{fill:#e23b2e}
.bu-gh-s{fill:#3b8ee8}
.bu-leg-inner{fill:#9aa5ad;stroke:#4f5a62;stroke-width:.6}
.bu-foot{fill:#6b767e;stroke:#2d3439;stroke-width:.6}
.bu-leg-outer{fill:#5b666e;stroke:#2d3439;stroke-width:.7}
.bu-gearbox{fill:#47525a;stroke:#2d3439;stroke-width:.6}
.bu-crank{fill:none;stroke:#cfd6da;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.bu-crank-grip{fill:#e23b2e}
.bu-brake-glow{fill:url(#bu-g-brake);opacity:0;transition:opacity .35s}
.bu-brake-dot{fill:#3b444b;transition:fill .35s}
.bu-stage[data-knob="out"] .bu-brake-glow{opacity:.9}
.bu-stage[data-knob="out"] .bu-brake-dot{fill:#ff5a45}
.bu-chock{fill:#ffb400;stroke:#5c4300;stroke-width:.7;stroke-linejoin:round;opacity:0;transition:opacity .3s}
.bu-chock-stripe{fill:none;stroke:#2a2108;stroke-width:1.3;opacity:0;transition:opacity .3s}
.bu-stage[data-knob="out"][data-tested="1"] .bu-chock{opacity:1}
.bu-stage[data-knob="out"][data-tested="1"] .bu-chock-stripe{opacity:.55}

/* the tractor */
.bu-rail-hi{fill:none;stroke:#8f9aa2;stroke-width:.8;opacity:.8}
.bu-flap{fill:#15181b}
.bu-backup{fill:#5c5f62;transition:fill .2s}
.bu-stage.is-backing .bu-backup{fill:#fffbe0}
.bu-hood-line{fill:none;stroke:#ff9a72;stroke-width:1;opacity:.6}
.bu-fender{fill:none;stroke:#3b120a;stroke-width:2.4}
.bu-grille{fill:#cdd4d8}
.bu-headlight{fill:#fff4d0}
.bu-glare{fill:#fff;opacity:.22}
.bu-door-seam{fill:none;stroke:#5a170b;stroke-width:1;stroke-linecap:round}
.bu-visor{fill:#3b120a}
.bu-mirror-arm{fill:none;stroke:#2a2f33;stroke-width:1.4}
.bu-mirror{fill:#1d2328;stroke:#9aa4ab;stroke-width:.7}
.bu-tank-straps{fill:none;stroke:#3a4248;stroke-width:1.4}
.bu-step{fill:none;stroke:#c7ced3;stroke-width:1.6;stroke-linecap:round}
.bu-heat{fill:#c9d0d4;stroke:#5e686f;stroke-width:.5}
.bu-heat-holes{fill:none;stroke:#59636a;stroke-width:1;stroke-dasharray:1 1.2}
.bu-smoke circle{fill:#9aa2a8;opacity:0}
.bu-deck{fill:#5a646b}
.bu-ports{fill:#c9d0d4}
.bu-mast{fill:none;stroke:#8d989f;stroke-width:1.8;stroke-linecap:round}
.bu-spring{fill:none;stroke:#d7dde0;stroke-width:1.2;stroke-linejoin:round}
.bu-clip{fill:#2c3338;stroke:#d7dde0;stroke-width:.8}
.bu-saddle{fill:#3d474e}
.bu-pivot{fill:#a8b2b8;stroke:#2d3439;stroke-width:.6}
.bu-sheen{fill:none;stroke:#e9fff0;stroke-width:.8;stroke-linecap:round;opacity:.5}
.bu-throat{fill:#0b0e10}
.bu-pocket{fill:#050607}
.bu-jaws{fill:none;stroke:#d5dde2;stroke-width:1.2;stroke-linecap:round}
.bu-handle{fill:none;stroke:#e23b2e;stroke-width:1.6;stroke-linecap:round}

/* the air lines; a pulse of air runs along them when the knob is pushed in */
.bu-hose{fill:none;stroke-width:3;stroke-linecap:round}
.bu-hose-e{stroke:#e23b2e}
.bu-hose-s{stroke:#3b8ee8}
.bu-flow{fill:none;stroke:#e9fbff;stroke-width:1.4;stroke-linecap:round;stroke-dasharray:6 14;opacity:0}
.bu-stage.is-charging .bu-flow{opacity:.95;animation:bu-flow .7s linear infinite}
@keyframes bu-flow{to{stroke-dashoffset:-20}}

/* labels */
.bu-tag{fill:#f4efe4;font-size:7px;font-weight:800;letter-spacing:.08em;text-anchor:middle;paint-order:stroke;stroke:#14181c;stroke-width:2.6px;stroke-linejoin:round}
.bu-tag-sub{font-size:5.6px;fill:#cfe7d6}
.bu-tag-dark{fill:#27313a;stroke:none;font-size:6.2px}
.bu-tick{fill:none;stroke:#27313a;stroke-width:.8}
.bu-tag-group{transition:opacity .25s}
.bu-stage.is-backing .bu-tag-group,.bu-stage:not([data-result="none"]) .bu-tag-group{opacity:0}

/* markers for what happened */
.bu-mark{opacity:0;pointer-events:none}
.bu-burst{fill:#ffb400;stroke:#ef4444;stroke-width:1.2;stroke-linejoin:round}
.bu-burst-core{fill:#fff3c4}
.bu-gap-ring{fill:rgb(255 180 0/.16);stroke:#ffb400;stroke-width:1.6;stroke-dasharray:3 2}
.bu-gap-ticks{fill:none;stroke:#ffd166;stroke-width:1.2;stroke-linecap:round}
.bu-lock-ring{fill:rgb(49 214 123/.18);stroke:#31d67b;stroke-width:1.6}
.bu-lock-check{fill:none;stroke:#eafff2;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bu-roll-arrows{fill:none;stroke:#ef4444;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.bu-stage[data-result="low"] .bu-mark-impact,.bu-stage[data-result="high"] .bu-mark-gap,
.bu-stage[data-result="ready"] .bu-mark-locked,.bu-stage[data-result="unlocked"] .bu-mark-rolled{opacity:1}
.bu-stage.is-js .bu-mark{transition:opacity .25s}
.bu-stage[data-result="low"] .bu-mark-impact{animation:bu-pop .5s ease-out}
.bu-stage[data-result="ready"] .bu-mark-locked,.bu-stage[data-result="high"] .bu-mark-gap{animation:bu-pop .5s ease-out}
.bu-stage[data-result="unlocked"] .bu-roll-arrows{animation:bu-blink 1s ease-in-out 3}
@keyframes bu-pop{0%{opacity:0}35%{opacity:1}55%{opacity:.6}100%{opacity:1}}
@keyframes bu-blink{50%{opacity:.35}}
.bu-stage.is-hit .bu-svg{animation:bu-shake .38s cubic-bezier(.36,.07,.19,.97)}
@keyframes bu-shake{20%{transform:translateX(-3px)}40%{transform:translateX(3px)}60%{transform:translateX(-2px)}80%{transform:translateX(1px)}}
.bu-stage.is-backing .bu-smoke circle{animation:bu-puff 1.4s ease-out infinite}
.bu-stage.is-backing .bu-smoke circle:nth-child(2){animation-delay:.25s}
.bu-stage.is-backing .bu-smoke circle:nth-child(3){animation-delay:.5s}
@keyframes bu-puff{0%{opacity:0}20%{opacity:.4}100%{opacity:0}}

/* the cab-valve panel: the red octagonal knob */
.bu-inset-bg{fill:#0c1014;fill-opacity:.88;stroke:#3a4650;stroke-width:1}
.bu-inset-title{fill:#ffd166;font-size:6.2px;font-weight:800;letter-spacing:.1em}
.bu-dash{fill:#2a3238;stroke:#59646c;stroke-width:.7}
.bu-knob-stem{fill:#c9d0d4;stroke:#5e686f;stroke-width:.5;transform-box:fill-box;transform-origin:left center;transform:scaleX(1)}
.bu-knob{transform:translateX(0)}
.bu-knob-face{stroke:#4d0705;stroke-width:1}
.bu-knob-rim{fill:none;stroke:#ffb0a6;stroke-width:.8;opacity:.6}
.bu-knob-word{fill:#fff;font-size:5.4px;font-weight:900;letter-spacing:.06em;text-anchor:middle}
.bu-stage[data-knob="in"] .bu-knob{transform:translateX(-15px)}
.bu-stage[data-knob="in"] .bu-knob-stem{transform:scaleX(.1)}
.bu-stage.is-js .bu-knob,.bu-stage.is-js .bu-knob-stem{transition:transform .22s cubic-bezier(.3,1.4,.6,1)}
.bu-air-dot{fill:#3b444b;transition:fill .2s}
.bu-stage[data-knob="in"] .bu-air-dot{fill:var(--bu-air)}
.bu-knob-state{fill:#f4f6f7;font-size:13px;font-weight:900;letter-spacing:.06em}
.bu-knob-note{fill:#fca5a5;font-size:5.8px;font-weight:800;letter-spacing:.06em}
.bu-stage[data-knob="in"] .bu-knob-note{fill:#9ee6ff}
.bu-knob-air{fill:#aeb8bf;font-size:5.6px;font-weight:800;letter-spacing:.06em}
.bu-stage[data-tested="1"] .bu-knob-air{fill:var(--bu-ok)}

.bu-banner{fill:#0d1216;fill-opacity:.92;stroke:#33414b;stroke-width:1}
.bu-readout{fill:#e8edf0;font-size:11.5px;font-weight:800;letter-spacing:.04em;text-anchor:middle}
.bu-stage[data-result="ready"] .bu-readout{fill:var(--bu-ok)}
.bu-stage[data-result="unlocked"] .bu-readout,.bu-stage[data-result="low"] .bu-readout{fill:#fca5a5}
.bu-stage[data-result="high"] .bu-readout{fill:#ffd166}

/* controls: one dark console with the knob, the crank and the back-under lever */
.bu-ask{margin:0;color:var(--ink);font-size:19px;line-height:1.3}
.bu-ask[hidden],.bu-controls[hidden]{display:none}
.bu-ask b{font-weight:800}
.bu-controls{display:grid;gap:12px;padding:14px;border-radius:16px;background:linear-gradient(180deg,#222b32,var(--bu-console));box-shadow:0 18px 40px -28px rgb(0 0 0/.8),inset 0 1px 0 rgb(255 255 255/.07);color:#e9eef1}
.bu-group{display:grid;gap:8px}
.bu-group-title{display:flex;align-items:center;gap:8px;margin:0;color:#c9d2d8;font-size:13px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.bu-num,.bu-go-num{display:inline-grid;place-items:center;flex:none;width:20px;height:20px;border-radius:50%;background:#0b0f12;box-shadow:inset 0 0 0 1px rgb(255 255 255/.2);color:#ffd166;font-size:12px;font-weight:900}
.bu-row{display:grid;gap:8px}
.bu-row-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.bu-row-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.bu-btn{position:relative;display:flex;align-items:center;gap:10px;min-width:0;min-height:62px;padding:9px 11px;border:0;border-radius:12px;background:linear-gradient(180deg,#313b43,#1b2227);box-shadow:inset 0 1px 0 rgb(255 255 255/.1),0 3px 0 #070a0c,0 8px 16px -10px rgb(0 0 0/.7);color:#fff;font-size:15px;font-weight:700;line-height:1.2;text-align:left;cursor:pointer;transition:transform .08s,box-shadow .08s,background .15s}
.bu-btn:hover{background:linear-gradient(180deg,#38434c,#20282e)}
.bu-btn:active{transform:translateY(2px);box-shadow:inset 0 1px 0 rgb(255 255 255/.06),0 1px 0 #070a0c}
.bu-btn[aria-pressed="true"]{background:linear-gradient(180deg,#3a2a22,#22191a);box-shadow:inset 0 0 0 2px var(--sbp-amber),0 1px 0 #070a0c;transform:translateY(2px)}
.bu-btn-h{flex-direction:column;justify-content:center;gap:5px;text-align:center;padding:8px 6px}
.bu-btn-h .bu-name{justify-items:center}
.bu-name{display:grid;gap:3px;min-width:0}
.bu-name small{color:#aeb8bf;font-size:12.5px;font-weight:600}
.bu-icon{flex:none;width:44px;height:30px}
.bu-icon-dash{fill:#59646c}
.bu-icon-stem{fill:#c9d0d4}
.bu-icon-knob{fill:#d4221a;stroke:#ff9a8c;stroke-width:1}
.bu-icon-arrow{fill:none;stroke:#e9eef1;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.bu-icon-ground{fill:none;stroke:#59646c;stroke-width:2}
.bu-icon-target{fill:none;stroke:#ffd166;stroke-width:1.6;stroke-dasharray:2 2}
.bu-icon-van{fill:#dcd7ca}
.bu-icon-wheel{fill:#0b0f12;stroke:#aeb8bf;stroke-width:1.2}
.bu-btn[aria-pressed="true"] .bu-icon-van{fill:#ffd9a8}
.bu-go{display:flex;align-items:center;justify-content:center;gap:10px;min-height:56px;padding:10px 16px;border:0;border-radius:12px;background:linear-gradient(180deg,#ffc53d,var(--sbp-amber));box-shadow:inset 0 1px 0 rgb(255 255 255/.5),0 3px 0 #8a5a00,0 10px 22px -12px rgb(255 180 0/.8);color:#14181c;font-size:17px;font-weight:800;cursor:pointer;transition:transform .08s,box-shadow .08s,filter .15s}
.bu-go>span{display:inline-flex;align-items:center;gap:9px}
.bu-go:hover{filter:brightness(1.05)}
.bu-go:active{transform:translateY(2px);box-shadow:inset 0 1px 0 rgb(255 255 255/.4),0 1px 0 #8a5a00}
.bu-go[aria-disabled="true"]{filter:saturate(.5) brightness(.85);cursor:progress}
.bu-go-icon{flex:none;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.bu-go-num{background:#14181c}
.bu-reset{justify-self:start;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 14px 8px 12px;border:0;border-radius:999px;background:#0b0f12;box-shadow:inset 0 0 0 1px rgb(255 255 255/.14);color:#e3e8eb;font-size:15px;font-weight:700;cursor:pointer}
.bu-reset:hover{box-shadow:inset 0 0 0 1px rgb(255 255 255/.32)}
.bu-reset-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.bu-btn:focus-visible,.bu-go:focus-visible,.bu-reset:focus-visible{outline:3px solid var(--sbp-amber);outline-offset:3px}
.bu-status{display:block;min-height:6.2em;padding:12px 14px 12px 16px;border-left:5px solid #8b98a1;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}
.bu-stage[data-result="ready"]~.bu-panel .bu-status{border-left-color:var(--bu-ok)}
.bu-stage[data-result="unlocked"]~.bu-panel .bu-status,.bu-stage[data-result="low"]~.bu-panel .bu-status{border-left-color:var(--bu-bad)}
.bu-stage[data-result="high"]~.bu-panel .bu-status{border-left-color:var(--bu-warn)}

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