/* School bus danger zones explainer: a bus seen from above with its danger zones, a child to place and three mirror
   views. Hero, film, course offer and return banner reuse spring-brakes.css (.sbp-*); this file styles only .dz-*.
   The script sets the stage's data-zone (front10, front30, left, right, rear, blind), data-mirror (flat, convex,
   crossover) and data-seen (yes, no, other), moves the child and writes the readouts. Without script the picture
   shows a child in the first 10 ft in front, seen in the crossover mirrors. Every SVG text label is at least 11.5px
   in the 360-wide viewBox. */
.dz-page{--dz-hot:#ef4444;--dz-zone:#fb923c;--dz-go:#31d67b;--dz-bus:#fbbf24;--dz-view:#6ed2ff;--dz-console:#151b20}
.dz-page .sbp-hero-grid.is-no-film{grid-template-columns:minmax(0,1fr)}
.dz-demo{padding-block:64px 72px;background:var(--paper)}
.dz-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}
.dz-head{grid-area:head}
.dz-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)}
.dz-svg{display:block;width:100%;height:auto;border-radius:10px;background:#12181c}
.dz-panel{grid-area:panel;display:grid;gap:14px;min-width:0}

/* the HUD: where the child is and which mirror you check; script on */
.dz-hud{display:none;align-items:center;gap:6px;flex-wrap:wrap;padding:0 2px 10px}
.dz-stage.is-js .dz-hud{display:flex}
.dz-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}
.dz-chip i{flex:none;width:9px;height:9px;border-radius:50%;background:var(--dz-go)}
.dz-chip span{color:#a9b3b8;font-weight:600}
.dz-chip b{color:#e8eef0;font-weight:800}
.dz-stage[data-seen="no"] .dz-chip-zone i,.dz-stage[data-seen="other"] .dz-chip-zone i{background:var(--dz-hot)}
.dz-chip-mirror i{background:var(--dz-view)}

/* the road, the zones and the mirror views */
.dz-lane{fill:none;stroke:#e8eef0;stroke-opacity:.35;stroke-width:1.4;stroke-dasharray:10 8}
.dz-zone{stroke:#0d1114;stroke-width:1;transition:fill-opacity .2s,stroke .2s}
.dz-zone-hot{fill:var(--dz-hot);fill-opacity:.5}
.dz-zone-ring{fill:var(--dz-zone);fill-opacity:.32}
.dz-zone-blind{fill:#8f9a9d;fill-opacity:.18;stroke:#a9b3b8;stroke-dasharray:5 4}
.dz-stage[data-zone="front10"] [data-dz-area="front10"],.dz-stage[data-zone="front30"] [data-dz-area="front30"],.dz-stage[data-zone="left"] [data-dz-area="left"],.dz-stage[data-zone="right"] [data-dz-area="right"],.dz-stage[data-zone="rear"] [data-dz-area="rear"],.dz-stage[data-zone="blind"] [data-dz-area="blind"]{fill-opacity:.75;stroke:#fff;stroke-width:2}
.dz-view{display:none;fill:var(--dz-view);fill-opacity:.22;stroke:var(--dz-view);stroke-width:1.4;stroke-dasharray:3 3}
.dz-stage[data-mirror="flat"] [data-dz-view="flat"],.dz-stage[data-mirror="convex"] [data-dz-view="convex"],.dz-stage[data-mirror="crossover"] [data-dz-view="crossover"]{display:inline}

/* the bus */
.dz-bus{fill:var(--dz-bus);stroke:#6b4a10;stroke-width:1.6}
.dz-hood{fill:#e0a516;stroke:#6b4a10;stroke-width:1}
.dz-door{fill:#1e3a4a}
.dz-mirror-mark{fill:#d3dade;stroke:#0d1114;stroke-width:1}
.dz-bus-label{fill:#1f1503;font-size:12px;font-weight:900;letter-spacing:.08em}
.dz-label{fill:#fff;font-size:11.5px;font-weight:800;letter-spacing:.03em;paint-order:stroke;stroke:#0d1114;stroke-width:2.6px;stroke-linejoin:round}
.dz-note{fill:#d3dade;font-size:11.5px;font-weight:700}
.dz-mid{text-anchor:middle}

/* the child */
.dz-child{transition:transform .25s ease-out}
.dz-halo{fill:#080b0d;fill-opacity:.6;stroke:var(--dz-go);stroke-width:2.6}
.dz-stage[data-seen="no"] .dz-halo,.dz-stage[data-seen="other"] .dz-halo{stroke:var(--dz-hot)}
.dz-head-dot{fill:#fff}
.dz-body{fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round}

/* the card */
.dz-card{fill:#080b0d;fill-opacity:.9;stroke:var(--dz-go);stroke-width:1.4}
.dz-stage[data-seen="no"] .dz-card,.dz-stage[data-seen="other"] .dz-card{stroke:var(--dz-hot)}
.dz-cap{fill:#fff;font-size:13px;font-weight:800}
.dz-verdict{fill:#b6f5cf;font-size:12.5px;font-weight:700}
.dz-stage[data-seen="no"] .dz-verdict,.dz-stage[data-seen="other"] .dz-verdict{fill:#fecaca}

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

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