/* Cargo inspection schedule explainer: a 300 mile trip timeline (1 unit is 1 mile) with a pin at every cargo check, and
   two bars that fill toward 150 miles and 3 hours of driving since the last check. Hero, film, course offer and return
   banner reuse spring-brakes.css (.sbp-*); this file styles only .ci-*. The script sets the stage's data-load (open,
   sealed) and data-due (first, road, none) states, the pins, the truck, the bars and the readouts. Without script the
   picture shows mile 0 with the pre-trip check done. Every SVG text label is at least 11.5px in the 360-wide viewBox. */
.ci-page{--ci-miles:#38bdf8;--ci-hours:#a78bfa;--ci-pin:#4ade80;--ci-console:#151b20}
.ci-page .sbp-hero-grid.is-no-film{grid-template-columns:minmax(0,1fr)}
.ci-demo{padding-block:64px 72px;background:var(--paper)}
.ci-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}
.ci-head{grid-area:head}
.ci-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)}
.ci-svg{display:block;width:100%;height:auto;border-radius:10px;background:#0f1316}
.ci-panel{grid-area:panel;display:grid;gap:14px;min-width:0}

/* the HUD: load, checks made and the last reason; script on */
.ci-hud{display:none;align-items:center;gap:6px;flex-wrap:wrap;padding:0 2px 10px}
.ci-stage.is-js .ci-hud{display:flex}
.ci-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}
.ci-chip i{flex:none;width:9px;height:9px;border-radius:50%;background:#3a4246;box-shadow:inset 0 0 0 1.5px #586166}
.ci-chip span{color:#a9b3b8;font-weight:600}
.ci-chip b{color:#e8eef0;font-weight:800}
.ci-chip-load i{background:#d3dade}
.ci-stage[data-load="sealed"] .ci-chip-load i{background:#fbbf24}
.ci-chip-checks i,.ci-chip-last i{background:var(--ci-pin)}

/* the cards */
.ci-card{fill:#080b0d;fill-opacity:.88;stroke:#59636a;stroke-width:1}
.ci-card-next{stroke:var(--ci-pin)}
.ci-cap{fill:#b6c0c5;font-size:11.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.ci-big{fill:#fff;font-size:22px;font-weight:900}
.ci-sub{fill:#d3dade;font-size:12px;font-weight:700}

/* the trip road, pins and truck */
.ci-road{fill:#3a3f44;stroke:#0b0d0f;stroke-width:1}
.ci-tick{fill:none;stroke:#8f9a9d;stroke-width:1;stroke-dasharray:2 2}
.ci-scale,.ci-label,.ci-firstlabel{fill:#d3dade;font-size:11.5px;font-weight:800;letter-spacing:.03em;paint-order:stroke;stroke:#0d1114;stroke-width:2.6px;stroke-linejoin:round}
.ci-mid{text-anchor:middle}
.ci-end{text-anchor:end}
.ci-pins{fill:var(--ci-pin);stroke:#0d1114;stroke-width:1}
.ci-truck{transition:transform .35s ease-out}
.ci-box{fill:#c08a4a;stroke:#6b4a24;stroke-width:1}
.ci-cab{fill:#d9dee0;stroke:#2a3133;stroke-width:1}

/* since the last check */
.ci-val{fill:#fff;font-size:12.5px;font-weight:900}
.ci-track{fill:#1f262b;stroke:#3a4246;stroke-width:1}
.ci-bar{transition:width .35s ease-out}
.ci-bar-miles{fill:var(--ci-miles)}
.ci-bar-hours{fill:var(--ci-hours)}
.ci-first{fill:none;stroke:#fde68a;stroke-width:2;stroke-dasharray:3 2}
.ci-firstlabel{fill:#fde68a}
.ci-stage:not([data-due="first"]) .ci-first,.ci-stage:not([data-due="first"]) .ci-firstlabel{display:none}
.ci-rule{fill:#fde68a;font-size:12.5px;font-weight:800}
.ci-seal{display:none}
.ci-stage[data-load="sealed"] .ci-seal{display:inline}
.ci-seal-card{fill:#080b0d;fill-opacity:.94;stroke:#fbbf24;stroke-width:1.4}
.ci-seal-big{fill:#fbbf24;font-size:20px;font-weight:900}
.ci-seal-sub{fill:#e8eef0;font-size:12.5px;font-weight:700}

/* controls: one dark console, every button the same dark face and white text, amber when active or focused */
.ci-controls[hidden]{display:none}
.ci-controls{display:grid;gap:12px;padding:14px;border-radius:16px;background:linear-gradient(180deg,#232b31,var(--ci-console));box-shadow:0 18px 40px -28px rgb(0 0 0/.8),inset 0 1px 0 rgb(255 255 255/.07);color:#e8eef0}
.ci-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}
.ci-btn:hover{background:linear-gradient(180deg,#38434b,#20282d)}
.ci-btn:active{transform:translateY(2px);box-shadow:inset 0 1px 0 rgb(255 255 255/.06),0 1px 0 #06090b}
.ci-btn[aria-pressed="true"]{transform:translateY(2px);box-shadow:inset 0 0 0 2px var(--sbp-amber,#ffb400),0 1px 0 #06090b}
.ci-btn:focus-visible{outline:3px solid var(--sbp-amber,#ffb400);outline-offset:3px}
.ci-name{display:grid;gap:3px;min-width:0}
.ci-name small{color:#a9b3b8;font-size:13px;font-weight:600}
.ci-group{display:grid;gap:6px}
.ci-label-text{margin:0;color:#a9b3b8;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.ci-seg-row{display:grid;gap:6px}
.ci-seg-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.ci-seg-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.ci-btn-seg{justify-content:center;padding:8px 6px;text-align:center;font-size:15px}
.ci-reset{justify-self:start;gap:8px;min-height:44px;padding:8px 16px 8px 12px;font-size:15px}
.ci-reset-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ci-status{display:block;min-height:6.5em;padding:12px 14px 12px 16px;border-left:5px solid var(--ci-pin);border-radius:0 10px 10px 0;background:var(--white,#fffffc);color:var(--ink);font-size:16px;font-weight:600;line-height:1.45}
.ci-text{margin:0;max-width:40em;color:var(--ink);font-size:17px;line-height:1.6}
.ci-text strong{display:block;margin-bottom:2px;font-weight:700}

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