/* Coupling-steps-in-order explainer: a side view of a tractor backing under a semitrailer. Hero, film, course offer and
   return banner reuse spring-brakes.css (.sbp-*); this file styles only .cp-*. The script sets the stage's data-step,
   data-block, data-tractor (apart, touch, under), data-jaws (open, unchecked, checked, top, missed), data-gear (down,
   slight, up, broken), data-chocks, data-air, data-elec, data-height (low, raised, top, high), data-angle, data-tug,
   data-look and data-mistake states and writes the step counter. Without script the picture shows step 1. Every SVG
   text label is at least 11.5px in the 360-wide viewBox. */
.cp-page .sbp-hero-grid.is-no-film{grid-template-columns:minmax(0,1fr)}
.cp-demo{padding-block:64px 72px;background:var(--paper)}
.cp-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}
.cp-head{grid-area:head}
.cp-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)}
.cp-svg{display:block;width:100%;height:auto;border-radius:10px;background:#0f1316}
.cp-panel{grid-area:panel;display:grid;gap:14px;min-width:0}

/* the HUD: step, air and coupling; script on */
.cp-hud{display:none;align-items:center;gap:6px;flex-wrap:wrap;padding:0 2px 10px}
.cp-stage.is-js .cp-hud{display:flex}
.cp-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}
.cp-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}
.cp-chip span{color:#a9b3b8;font-weight:600}
.cp-chip b{color:#e8eef0;font-weight:800}
.cp-chip-step i{background:#e8eef0}
.cp-stage[data-mistake="angle"] .cp-chip-step i,.cp-stage[data-mistake="skip"] .cp-chip-step i,.cp-stage[data-mistake="high"] .cp-chip-step i{background:#ef4444}
.cp-stage[data-air="on"] .cp-chip-air i{background:#38bdf8}
.cp-stage[data-jaws="unchecked"] .cp-chip-couple i{background:#fbbf24}
.cp-stage[data-jaws="unchecked"] .cp-chip-couple b{color:#fde68a}
.cp-stage[data-jaws="checked"] .cp-chip-couple i{background:#31d67b}
.cp-stage[data-jaws="checked"] .cp-chip-couple b{color:#86efac}
.cp-stage[data-jaws="top"] .cp-chip-couple i,.cp-stage[data-jaws="missed"] .cp-chip-couple i{background:#ef4444}
.cp-stage[data-jaws="top"] .cp-chip-couple b,.cp-stage[data-jaws="missed"] .cp-chip-couple b{color:#fca5a5}

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

/* labels: every label 11.5px or larger */
.cp-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}
.cp-t-cap{fill:#b6c0c5;font-size:11.5px;letter-spacing:.08em}
.cp-t-small{fill:#d3dade;font-size:11.5px;font-weight:700}
.cp-t-state{font-size:12.5px;font-weight:900;letter-spacing:.05em}
.cp-t-part{fill:#d3dade;font-size:11.5px}
.cp-t-act{fill:#fff;font-size:12px;font-weight:900}
.cp-t-on{fill:#1d262c;font-size:11.5px;stroke:none}
.cp-t-blue{fill:#1d4ed8}
.cp-t-red{fill:#b91c1c}
.cp-t-ok{fill:#86efac}
.cp-t-bad{fill:#fca5a5}

/* from above: in line or at an angle */
.cp-top-trailer{fill:#d7dcde}
.cp-top-cab{fill:#4f7a9a}
.cp-top-frame{fill:#6b767c}
.cp-top-tractor{transform-box:view-box;transform-origin:68px 39px;transition:transform .35s}
.cp-stage[data-angle="angled"] .cp-top-tractor{transform:rotate(-14deg)}
.cp-top-bad{display:none}
.cp-stage[data-angle="angled"] .cp-top-bad{display:inline}
.cp-stage[data-angle="angled"] .cp-top-ok{display:none}

/* the trailer: slightly low at rest, raised a little once coupled */
.cp-trailer{transform-box:view-box;transition:transform .4s}
.cp-stage[data-height="raised"] .cp-trailer{transform:translateY(-2px)}
.cp-stage[data-height="top"] .cp-trailer{transform:translateY(-6px)}
.cp-stage[data-height="high"] .cp-trailer{transform:translateY(-16px)}
.cp-stage[data-angle="angled"] .cp-trailer{transform:translateX(4px)}
.cp-rib{fill:none;stroke:#aab3b7;stroke-width:1}
.cp-apron,.cp-rail{fill:#3d474d}
.cp-pin{fill:#9aa5aa;stroke:#2a3133;stroke-width:.8}
.cp-socket{stroke:#0d1114;stroke-width:1}
.cp-gh-blue{fill:#3b82f6}
.cp-gh-red{fill:#ef4444}
.cp-plug{fill:#6b767c}

/* landing gear: down, raised slightly, raised all the way, or broken by an angled approach */
.cp-leg-out{fill:#59636a;stroke:#2a3133;stroke-width:1}
.cp-leg-in{fill:#8f9a9d}
.cp-foot{fill:#6b767c}
.cp-crank{fill:none;stroke:#8f9a9d;stroke-width:2;stroke-linecap:round}
.cp-leg-low{transform-box:view-box;transform-origin:245px 192px;transition:transform .45s}
.cp-stage[data-gear="slight"] .cp-leg-low{transform:translateY(-6px)}
.cp-stage[data-gear="up"] .cp-leg-low{transform:translateY(-34px)}
.cp-stage[data-gear="broken"] .cp-leg-low{transform:rotate(28deg)}
.cp-stage[data-height="high"][data-gear="down"] .cp-leg-low{transform:translateY(16px)}
.cp-crack{fill:none;stroke:#ef4444;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;display:none}
.cp-broken{display:none}
.cp-stage[data-gear="broken"] .cp-crack,.cp-stage[data-gear="broken"] .cp-broken{display:inline}

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

/* air lines and cord: coiled at the cab until connected */
.cp-line{fill:none;stroke-width:2.6;stroke-linecap:round}
.cp-line-blue{stroke:#3b82f6}
.cp-line-red{stroke:#ef4444}
.cp-cord{fill:none;stroke:#c7ced1;stroke-width:2.2;stroke-linecap:round;stroke-dasharray:4 2;display:none}
.cp-lines{display:none}
.cp-stage[data-air="on"] .cp-coil{display:none}
.cp-stage[data-air="on"][data-tractor="touch"] .cp-lines-touch,.cp-stage[data-air="on"][data-tractor="under"] .cp-lines-under{display:inline}
.cp-stage[data-elec="on"] .cp-cord{display:inline}

/* the tractor: clear of the trailer, just touching, or under it */
.cp-tractor{transform-box:view-box;transition:transform .6s cubic-bezier(.3,.8,.4,1)}
.cp-stage[data-tractor="apart"] .cp-tractor{transform:translateX(-62px)}
.cp-stage[data-tractor="touch"] .cp-tractor{transform:translateX(-40px)}
.cp-frame{fill:#3d474d}
.cp-glass{fill:#1b2a35;stroke:#9cc9e0;stroke-opacity:.4;stroke-width:1}
.cp-door{fill:none;stroke:#1d3446;stroke-width:1.2}
.cp-stack{fill:#9aa5aa}
.cp-bumper{fill:#8f9a9d}
.cp-mount{fill:#2a3133}
.cp-plate-top{fill:#59636a;stroke:#1d2428;stroke-width:1}
.cp-grease{fill:#9a8a52}
.cp-throat{fill:#111518}
.cp-plate{transform-box:view-box;transform-origin:171px 160px;transition:transform .4s}
.cp-stage[data-tractor="apart"] .cp-plate,.cp-stage[data-tractor="touch"] .cp-plate{transform:rotate(6deg)}

/* the gentle pull, the gap check and a gap */
.cp-tug,.cp-look,.cp-gap{display:none}
.cp-stage[data-tug="on"] .cp-tug,.cp-stage[data-look="on"] .cp-look,.cp-stage[data-height="top"] .cp-gap,.cp-stage[data-height="high"] .cp-gap{display:inline}
.cp-arrow{fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.cp-ring{fill:none;stroke:#31d67b;stroke-width:2;stroke-dasharray:4 3}
.cp-ring-bad{stroke:#ef4444}
.cp-arrow-bad{stroke:#fca5a5}

/* the jaws, from behind */
.cp-j{display:none}
.cp-stage[data-jaws="open"] .cp-j-open,.cp-stage[data-jaws="unchecked"] .cp-j-unchecked,.cp-stage[data-jaws="checked"] .cp-j-checked,
.cp-stage[data-jaws="top"] .cp-j-top,.cp-stage[data-jaws="missed"] .cp-j-missed{display:inline}
.cp-jaw{fill:#8f9a9d;stroke:#2a3133;stroke-width:1;transform-box:view-box;transition:transform .3s}
.cp-stage[data-jaws="open"] .cp-jaw-l{transform:translateX(-3px)}
.cp-stage[data-jaws="open"] .cp-jaw-r{transform:translateX(3px)}
.cp-shank{fill:#d3dade;stroke:#2a3133;stroke-width:1;transform-box:view-box;transition:transform .3s}
.cp-stage[data-jaws="open"] .cp-shank,.cp-stage[data-jaws="missed"] .cp-shank{display:none}
.cp-stage[data-jaws="checked"] .cp-shank{fill:#31d67b}
.cp-stage[data-jaws="top"] .cp-shank{fill:#ef4444;transform:translateY(-14px)}

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

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

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