/* Uncoupling-steps-in-order explainer: a side view of a tractor pulling out from under a semitrailer. Hero, film,
   course offer and return banner reuse spring-brakes.css (.sbp-*); this file styles only .uc-*. The script sets the
   stage's data-done, data-block, data-tractor (under, partial, clear), data-jaws (locked, open), data-gear (up, down),
   data-chocks, data-lines, data-tair, data-park, data-align (check, straight) and data-mistake (none, jaws, gear,
   locked, frame, order) states and writes the step counter. Without script the picture shows the coupled rig. Every
   SVG text label is at least 11.5px in the 360-wide viewBox. */
.uc-page .sbp-hero-grid.is-no-film{grid-template-columns:minmax(0,1fr)}
.uc-demo{padding-block:64px 72px;background:var(--paper)}
.uc-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}
.uc-head{grid-area:head}
.uc-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)}
.uc-svg{display:block;width:100%;height:auto;border-radius:10px;background:#0f1316}
.uc-panel{grid-area:panel;display:grid;gap:14px;min-width:0}

/* the HUD: steps done, trailer air and the trailer; script on */
.uc-hud{display:none;align-items:center;gap:6px;flex-wrap:wrap;padding:0 2px 10px}
.uc-stage.is-js .uc-hud{display:flex}
.uc-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}
.uc-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}
.uc-chip span{color:#a9b3b8;font-weight:600}
.uc-chip b{color:#e8eef0;font-weight:800}
.uc-chip-step i{background:#e8eef0}
.uc-stage[data-done="10"] .uc-chip-step i{background:#31d67b}
.uc-stage[data-tair="on"] .uc-chip-air i{background:#38bdf8}
.uc-stage[data-tair="off"] .uc-chip-air i{background:#ef4444}
.uc-chip-couple i{background:#fbbf24}
.uc-stage[data-tractor="clear"] .uc-chip-couple i{background:#31d67b}
.uc-stage[data-mistake="jaws"] .uc-chip-step i,.uc-stage[data-mistake="gear"] .uc-chip-step i,.uc-stage[data-mistake="locked"] .uc-chip-step i,
.uc-stage[data-mistake="frame"] .uc-chip-step i,.uc-stage[data-mistake="order"] .uc-chip-step i{background:#ef4444}
.uc-stage[data-mistake="jaws"] .uc-chip-step b,.uc-stage[data-mistake="gear"] .uc-chip-step b,.uc-stage[data-mistake="locked"] .uc-chip-step b,
.uc-stage[data-mistake="frame"] .uc-chip-step b,.uc-stage[data-mistake="order"] .uc-chip-step b{color:#fca5a5}

/* the yard and the boxes */
.uc-ground{fill:#2b3237}
.uc-box{fill:#080b0d;fill-opacity:.88;stroke:#59636a;stroke-width:1}

/* labels: every label 11.5px or larger */
.uc-t{fill:#e8eef0;font-size:11.5px;font-weight:800;letter-spacing:.03em;paint-order:stroke;stroke:#0d1114;stroke-width:2.6px;stroke-linejoin:round}
.uc-t-cap{fill:#b6c0c5;font-size:11.5px;letter-spacing:.08em}
.uc-t-small{fill:#d3dade;font-size:11.5px;font-weight:700}
.uc-t-state{font-size:12.5px;font-weight:900;letter-spacing:.05em}
.uc-t-part{fill:#d3dade;font-size:11.5px}
.uc-t-act{fill:#fde68a;font-size:12px;font-weight:900}
.uc-t-on{fill:#1d262c;font-size:11.5px;stroke:none}
.uc-t-blue{fill:#1d4ed8}
.uc-t-red{fill:#b91c1c}
.uc-t-ok{fill:#86efac}
.uc-t-bad{fill:#fca5a5}

/* from above: line up first, then in line; the tractor slides out to the left */
.uc-top-trailer{fill:#d7dcde}
.uc-top-cab{fill:#8a5a3c}
.uc-top-frame{fill:#6b767c}
.uc-top-tractor{transform-box:view-box;transition:transform .5s}
.uc-stage[data-tractor="partial"] .uc-top-tractor{transform:translateX(-10px)}
.uc-stage[data-tractor="clear"] .uc-top-tractor{transform:translateX(-26px)}
.uc-top-ok{display:none}
.uc-stage[data-align="straight"] .uc-top-ok{display:inline}
.uc-stage[data-align="straight"] .uc-top-check{display:none}

/* the trailer: the nose dips when it would have no support */
.uc-trailer{transform-box:view-box;transform-origin:356px 150px;transition:transform .4s}
.uc-stage[data-mistake="gear"] .uc-trailer{transform:rotate(-3deg)}
.uc-rib{fill:none;stroke:#aab3b7;stroke-width:1}
.uc-apron,.uc-rail{fill:#3d474d}
.uc-pin{fill:#9aa5aa;stroke:#2a3133;stroke-width:.8}
.uc-socket{stroke:#0d1114;stroke-width:1}
.uc-gh-blue{fill:#3b82f6}
.uc-gh-red{fill:#ef4444}
.uc-plug{fill:#6b767c}
.uc-nosupport{display:none}
.uc-stage[data-mistake="gear"] .uc-nosupport{display:inline}

/* landing gear: up while coupled, down to firm contact from step 4 */
.uc-leg-out{fill:#59636a;stroke:#2a3133;stroke-width:1}
.uc-leg-in{fill:#8f9a9d}
.uc-foot{fill:#6b767c}
.uc-crank{fill:none;stroke:#8f9a9d;stroke-width:2;stroke-linecap:round}
.uc-leg-low{transform-box:view-box;transition:transform .45s}
.uc-stage[data-gear="up"] .uc-leg-low{transform:translateY(-34px)}

/* tires and chocks */
.uc-tire{stroke:#050607;stroke-width:1.2}
.uc-hub{fill:#5e696c;stroke:#2a3133;stroke-width:1}
.uc-chock{fill:#facc15;stroke:#3f3a1a;stroke-width:1}
.uc-chocks{display:none}
.uc-stage[data-chocks="set"] .uc-chocks{display:inline}

/* air lines and cable: run to the trailer while connected, hang at the cab with the plug down once disconnected */
.uc-line{fill:none;stroke-width:2.6;stroke-linecap:round}
.uc-line-blue{stroke:#3b82f6}
.uc-line-red{stroke:#ef4444}
.uc-cord,.uc-cord-hang{fill:none;stroke:#c7ced1;stroke-width:2.2;stroke-linecap:round;stroke-dasharray:4 2}
.uc-plughang{fill:#6b767c;stroke:#0d1114;stroke-width:1}
.uc-lines,.uc-coil{display:none}
.uc-stage[data-lines="on"][data-tractor="under"] .uc-lines,.uc-stage[data-lines="off"] .uc-coil{display:inline}

/* the tractor: under the trailer, part way out with the frame still under it, or clear */
.uc-tractor{transform-box:view-box;transition:transform .6s cubic-bezier(.3,.8,.4,1)}
.uc-stage[data-tractor="partial"] .uc-tractor{transform:translateX(-48px)}
.uc-stage[data-tractor="clear"] .uc-tractor{transform:translateX(-120px)}
.uc-stage[data-mistake="locked"] .uc-tractor{transform:translateX(-4px)}
.uc-frame{fill:#3d474d}
.uc-glass{fill:#1b2a35;stroke:#9cc9e0;stroke-opacity:.4;stroke-width:1}
.uc-door{fill:none;stroke:#3a2414;stroke-width:1.2}
.uc-stack{fill:#9aa5aa}
.uc-bumper{fill:#8f9a9d}
.uc-mount{fill:#2a3133}
.uc-plate-top{fill:#59636a;stroke:#1d2428;stroke-width:1}
.uc-throat{fill:#111518}
.uc-brake{display:none}
.uc-stage[data-park="on"] .uc-brake{display:inline}

/* the jaws, from behind */
.uc-j{display:none}
.uc-stage[data-jaws="locked"] .uc-j-locked,.uc-stage[data-jaws="open"] .uc-j-open{display:inline}
.uc-jaw{fill:#8f9a9d;stroke:#2a3133;stroke-width:1;transform-box:view-box;transition:transform .3s}
.uc-stage[data-jaws="open"] .uc-jaw-l{transform:translateX(-3px)}
.uc-stage[data-jaws="open"] .uc-jaw-r{transform:translateX(3px)}
.uc-shank{fill:#d3dade;stroke:#2a3133;stroke-width:1}
.uc-stage[data-tractor="partial"] .uc-shank,.uc-stage[data-tractor="clear"] .uc-shank{display:none}
.uc-stage[data-mistake="locked"] .uc-shank,.uc-stage[data-mistake="jaws"] .uc-shank{fill:#ef4444}

/* the step counter */
.uc-tick{fill:#3a4246;transition:fill .2s}
.uc-tick.is-done{fill:#31d67b}
.uc-tick.is-now{fill:#fff}
.uc-tick.is-bad{fill:#ef4444}

/* controls: one dark console, every button the same dark face and white text, amber when active or focused */
.uc-ask{margin:0;color:var(--ink);font-size:20px;line-height:1.25}
.uc-ask[hidden],.uc-controls[hidden],.uc-steps[hidden]{display:none}
.uc-ask b{font-weight:800}
.uc-controls{display:grid;gap:10px;padding:14px;border-radius:16px;background:linear-gradient(180deg,#232b31,#151b20);box-shadow:0 18px 40px -28px rgb(0 0 0/.8),inset 0 1px 0 rgb(255 255 255/.07);color:#e8eef0}
.uc-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}
.uc-btn:hover{background:linear-gradient(180deg,#38434b,#20282d)}
.uc-btn:active{transform:translateY(2px);box-shadow:inset 0 1px 0 rgb(255 255 255/.06),0 1px 0 #06090b}
.uc-btn[aria-pressed="true"]{transform:translateY(2px);box-shadow:inset 0 0 0 2px var(--sbp-amber,#ffb400),0 1px 0 #06090b}
.uc-btn:focus-visible{outline:3px solid var(--sbp-amber,#ffb400);outline-offset:3px}
.uc-btn-wide{min-height:60px}
.uc-name{display:grid;gap:3px;min-width:0}
.uc-name small{color:#a9b3b8;font-size:13px;font-weight:600}
.uc-group{display:grid;gap:6px}
.uc-label{margin:0;color:#a9b3b8;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.uc-seg{display:grid;gap:6px}
.uc-seg-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.uc-btn-seg{justify-content:center;padding:8px 6px;text-align:center;font-size:14px}
.uc-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.uc-btn-step{gap:8px;min-height:48px;padding:8px 10px;font-size:14px}
.uc-btn-step b{flex:none;min-width:1.6em;font-weight:900;opacity:.7}
.uc-btn-step[aria-pressed="true"] b{opacity:1}
.uc-icon{flex:none;width:30px;height:30px}
.uc-icon-go{fill:none;stroke:#bbf7d0;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.uc-reset{justify-self:start;gap:8px;min-height:44px;padding:8px 16px 8px 12px;font-size:15px}
.uc-reset-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.uc-status{display:block;min-height:8.7em;padding:12px 14px 12px 16px;border-left:5px solid #38bdf8;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}
.uc-stage[data-done="10"]~.uc-panel .uc-status{border-left-color:#31d67b}
.uc-stage[data-mistake="jaws"]~.uc-panel .uc-status,.uc-stage[data-mistake="gear"]~.uc-panel .uc-status,.uc-stage[data-mistake="locked"]~.uc-panel .uc-status,
.uc-stage[data-mistake="frame"]~.uc-panel .uc-status,.uc-stage[data-mistake="order"]~.uc-panel .uc-status{border-left-color:#ef4444}
.uc-text{max-width:40em;color:var(--ink);font-size:17px;line-height:1.6}
.uc-text p{margin:0 0 8px}
.uc-list{margin:0;padding-left:1.6em}
.uc-list li{margin:0 0 4px}

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