/* DANGEROUS placard explainer: a dry van with its roof and upper side cut away, the placards on its lower side wall,
   a Table 2 weight bar and a loading facility badge. Hero, film, course offer and return banner reuse
   spring-brakes.css (.sbp-*); this file styles only .dp-*. The script sets the stage's data-load, data-weight,
   data-facility, data-table, data-result, data-ta, data-tb and data-split states, places the placards and sizes the
   bar. Without script the picture shows the 1,500 lb mixed load with the DANGEROUS placard. Every SVG label is at
   least 11px in the 360 wide viewBox. */
.dp-page{--dp-go:#31d67b;--dp-amber:#fbbf24;--dp-red:#d7261e;--dp-console:#151b20}
.dp-page .sbp-hero-grid.is-no-film{grid-template-columns:minmax(0,1fr)}
.dp-page .sbp-answer-text{font-size:clamp(21px,2.1vw,28px);line-height:1.22}
.dp-demo{padding-block:64px 72px;background:var(--paper)}
.dp-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}
.dp-head{grid-area:head}
.dp-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)}
.dp-svg{display:block;width:100%;height:auto;border-radius:10px;background:#0f1316}
.dp-panel{grid-area:panel;display:grid;gap:14px;min-width:0}

/* the HUD: placard option, aggregate weight, rule trigger; script on */
.dp-hud{display:none;align-items:center;gap:6px;flex-wrap:wrap;padding:0 2px 10px}
.dp-stage.is-js .dp-hud{display:flex}
.dp-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.15}
.dp-chip i{flex:none;width:9px;height:9px;border-radius:50%;background:#3a4246;box-shadow:inset 0 0 0 1.5px #586166}
.dp-chip span{color:#a9b3b8;font-weight:600;white-space:nowrap}
.dp-chip b{color:#e8eef0;font-weight:800}
.dp-chip-placard i{background:var(--dp-amber);box-shadow:0 0 0 2px rgb(251 191 36/.2),0 0 10px rgb(251 191 36/.8)}
.dp-chip-placard b{color:#fde68a}
.dp-stage[data-result="none"] .dp-chip-placard i{background:var(--dp-go);box-shadow:0 0 0 2px rgb(49 214 123/.18)}
.dp-stage[data-result="none"] .dp-chip-placard b{color:var(--dp-go)}
.dp-stage[data-result="table1"] .dp-chip-placard i{background:#ef4444;box-shadow:0 0 0 2px rgb(239 68 68/.2),0 0 10px rgb(239 68 68/.85)}
.dp-stage[data-result="table1"] .dp-chip-placard b{color:#fca5a5}
.dp-chip-weight i{background:#38bdf8;box-shadow:0 0 0 2px rgb(56 189 248/.18)}
.dp-chip-trigger i{background:#e8eef0}

/* the trailer */
.dp-trailer{stroke:#0b0e10;stroke-width:1.2}
.dp-hold{stroke:#0b0e10;stroke-width:1}
.dp-cut{fill:none;stroke:var(--dp-amber);stroke-width:1.4;stroke-dasharray:5 3}
.dp-floor{fill:#7a5a30}
.dp-rib{fill:none;stroke:#9aa4a8;stroke-width:1}
.dp-pallet{fill:#8b6a3e}
.dp-box{stroke:#5b4020;stroke-width:.8}
.dp-lab{stroke:#1a1a1a;stroke-width:.5}
.dp-lab-flam{fill:var(--dp-red)}
.dp-lab-cor{fill:#f4f4f2}
.dp-lab-gas{fill:#f4f4f2}
.dp-split-line{fill:none;stroke:var(--dp-amber);stroke-width:2;stroke-dasharray:4 3;display:none}
.dp-stage[data-split="on"] .dp-split-line{display:inline}
.dp-drum{stroke:#2a3133;stroke-width:1}
.dp-drum-rings{fill:none;stroke:#2a3133;stroke-width:1.4}
.dp-tier{display:none}
.dp-stage[data-ta="1"] .dp-col-a .dp-tier-1,.dp-stage[data-ta="2"] .dp-col-a .dp-tier-1,.dp-stage[data-ta="2"] .dp-col-a .dp-tier-2,
.dp-stage[data-ta="3"] .dp-col-a .dp-tier{display:inline}
.dp-stage[data-tb="1"] .dp-col-b .dp-tier-1,.dp-stage[data-tb="2"] .dp-col-b .dp-tier-1,.dp-stage[data-tb="2"] .dp-col-b .dp-tier-2,
.dp-stage[data-tb="3"] .dp-col-b .dp-tier{display:inline}
.dp-stage[data-load="single"] .dp-col-b{display:none}
.dp-col-t{display:none}
.dp-stage[data-table="on"] .dp-col-t{display:inline}
.dp-stage[data-table="on"] .dp-t-empty{display:none}

/* labels: one text family, never below 11px */
.dp-t{font-size:11px;font-weight:800;text-anchor:middle;letter-spacing:.03em}
.dp-t-cls{font-size:11.5px}
.dp-t-flam{fill:#ff8f80}
.dp-t-cor{fill:#e8eef0}
.dp-t-tab{fill:#fca5a5}
.dp-t-wt{fill:#ffffff;font-size:11.5px}
.dp-t-empty{fill:#c3ccd0;font-size:11px;letter-spacing:.02em}
.dp-t-noplac{fill:#0f5132;font-size:12px;letter-spacing:.06em}
.dp-t-pl{fill:#ffffff;font-size:11px;font-weight:900;letter-spacing:0}
.dp-t-pl-dark{fill:#111111}
.dp-t-num{fill:#ffffff;font-size:12px;font-weight:900}
.dp-t-num-dark{fill:#111111}
.dp-t-cap{fill:#d3dade;font-size:11px;text-anchor:start;letter-spacing:.04em}
.dp-t-total{fill:#ffffff;font-size:12px;font-weight:900;text-anchor:end}
.dp-t-mark{fill:#f4f7f8;font-size:11px;letter-spacing:0}
.dp-t-badge{fill:#ffffff;font-size:11px;letter-spacing:0}
.dp-t-sides{fill:#ffffff;font-size:11px;letter-spacing:0}

/* the placards */
.dp-dia-out{stroke:#1a1a1a;stroke-width:1.4}
.dp-dia-in{fill:none;stroke-width:1.2}
.dp-plac-flammable .dp-dia-out{fill:var(--dp-red)}
.dp-plac-flammable .dp-dia-in{stroke:#ffffff}
.dp-plac-dangerous .dp-dia-out,.dp-plac-poison .dp-dia-out{fill:#ffffff}
.dp-plac-dangerous .dp-dia-in,.dp-plac-poison .dp-dia-in{stroke:#111111}
.dp-dia-red{fill:var(--dp-red)}
.dp-flame{fill:#ffffff}
.dp-skull{fill:#111111}
.dp-skull-eye{fill:#ffffff}
.dp-bones{fill:none;stroke:#111111;stroke-width:2.4;stroke-linecap:round}
.dp-noplac{display:none}
.dp-noplac rect{fill:#d1fae5;stroke:#0f5132;stroke-width:1.4}
.dp-stage[data-result="none"] .dp-noplac{display:inline}

/* the running gear */
.dp-leg,.dp-foot{fill:#4f5a5e}
.dp-tire{stroke:#000;stroke-width:1}
.dp-hub{fill:#aeb7ba}

/* the weight bar: Class 3 in red, Class 8 in light gray, marks at 1,001 and 2,205 lb */
.dp-bar{fill:#080b0d;stroke:#3d464b;stroke-width:1}
.dp-bar-a{fill:var(--dp-red)}
.dp-bar-b{fill:#cfd6d9}
.dp-stage.is-js .dp-bar-a,.dp-stage.is-js .dp-bar-b{transition:width .25s,x .25s}
.dp-bar-split{fill:none;stroke:#0b0f12;stroke-width:2.4;display:none}
.dp-stage[data-split="on"] .dp-bar-split{display:inline}
.dp-mark{fill:none;stroke:var(--dp-amber);stroke-width:1.8}

/* the facility badge and the four sides */
.dp-badge rect,.dp-sides rect{fill:#080b0d;stroke:#59636a;stroke-width:1}
.dp-stage[data-facility="two"] .dp-badge rect{stroke:var(--dp-amber)}
.dp-dock{fill:none;stroke:#a9b3b8;stroke-width:1.4;stroke-linejoin:round}
.dp-sides-dia{fill:var(--dp-amber)}
.dp-stage[data-result="none"] .dp-sides{opacity:.45}
.dp-stage[data-result="none"] .dp-sides-dia{fill:#59636a}

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

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