/* Emergency triangle placement explainer: a truck stopped on the shoulder, seen from above, with the places a reflective
   warning triangle can go. Hero, film, course offer and return banner reuse spring-brakes.css (.sbp-*); this file
   styles only .et-*. The script sets the stage's data-road (divided, twolane, hill) and data-walk (none, facing, back)
   states, each triangle's data-on, and the readouts. Without script the picture shows the divided highway with all
   three triangles out. Every SVG text label is at least 11.5px in the 360-wide viewBox. */
.et-page{--et-tri:#ef4444;--et-amber:#fbbf24;--et-console:#151b20}
.et-page .sbp-hero-grid.is-no-film{grid-template-columns:minmax(0,1fr)}
.et-demo{padding-block:64px 72px;background:var(--paper)}
.et-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}
.et-head{grid-area:head}
.et-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)}
.et-svg{display:block;width:100%;height:auto;border-radius:10px;background:#0f1316}
.et-panel{grid-area:panel;display:grid;gap:14px;min-width:0}

/* the HUD: road, triangles out and how you carry them; script on */
.et-hud{display:none;align-items:center;gap:6px;flex-wrap:wrap;padding:0 2px 10px}
.et-stage.is-js .et-hud{display:flex}
.et-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}
.et-chip i{flex:none;width:9px;height:9px;border-radius:50%;background:#3a4246;box-shadow:inset 0 0 0 1.5px #586166}
.et-chip span{color:#a9b3b8;font-weight:600}
.et-chip b{color:#e8eef0;font-weight:800}
.et-chip-road i{background:#d3dade}
.et-chip-count i{background:var(--et-tri)}
.et-stage[data-walk="facing"] .et-chip-walk i{background:#4ade80}
.et-stage[data-walk="back"] .et-chip-walk i{background:var(--et-tri)}

/* the scene */
.et-median{fill:#3f6b3a;opacity:0;transition:opacity .25s}
.et-stage[data-road="divided"] .et-median,.et-stage[data-road="hill"] .et-median{opacity:1}
.et-road{stroke:#0b0d0f;stroke-width:1}
.et-lane{fill:none;stroke:#e8eef0;stroke-opacity:.55;stroke-width:1.6}
.et-center{fill:none;stroke:var(--et-amber);stroke-width:1.6;opacity:0;transition:opacity .25s}
.et-stage[data-road="twolane"] .et-center{opacity:1}
.et-stage[data-road="twolane"] .et-lane{opacity:0}
.et-arrow{fill:none;stroke:#7dd3fc;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.et-arrow-same,.et-arrow-oncoming{display:none}
.et-stage[data-road="divided"] .et-arrow-same,.et-stage[data-road="hill"] .et-arrow-same{display:inline}
.et-stage[data-road="twolane"] .et-arrow-oncoming{display:inline}
.et-shoulder{fill:#1d2226}
.et-edge{fill:none;stroke:#e8eef0;stroke-width:1.4}
.et-hill{display:none}
.et-stage[data-road="hill"] .et-hill{display:inline}
.et-hill-body{fill:#4d6b3c;fill-opacity:.9;stroke:#2c4022;stroke-width:1.2}
.et-trailer{fill:#d9dee0;stroke:#2a3133;stroke-width:1.2}
.et-cab{fill:#c08a4a;stroke:#6b4a24;stroke-width:1.2}
.et-glass{fill:#1e3a4a}
.et-flasher{fill:var(--et-amber);animation:et-blink 1s steps(2,start) infinite}
@keyframes et-blink{to{fill:#4a3a10}}

/* the triangle places */
.et-ghost{fill:none;stroke:#8f9a9d;stroke-width:1.2;stroke-dasharray:3 3}
.et-tri{fill:var(--et-tri);stroke:#fff;stroke-width:1.4;stroke-linejoin:round;opacity:0;transform-box:fill-box;transform-origin:50% 100%;transform:scale(.4);transition:opacity .18s,transform .18s}
.et-tri[data-on="true"]{opacity:1;transform:scale(1)}
.et-slot-far{display:none}
.et-stage[data-road="hill"] .et-slot-far{display:inline}
.et-stage[data-road="hill"] .et-slot-b200{display:none}
.et-dist,.et-part{fill:#d3dade;font-size:11.5px;font-weight:800;letter-spacing:.03em;paint-order:stroke;stroke:#0d1114;stroke-width:2.6px;stroke-linejoin:round}
.et-part{text-transform:uppercase}
.et-mid{text-anchor:middle}
.et-end{text-anchor:end}
.et-card{fill:#080b0d;fill-opacity:.88;stroke:#59636a;stroke-width:1}
.et-cap{fill:#b6c0c5;font-size:11.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.et-big{fill:#fff;font-size:24px;font-weight:900}
.et-sub{fill:#d3dade;font-size:12px;font-weight:700}
.et-rule{fill:#fde68a;font-size:12.5px;font-weight:800}
.et-note{fill:#a9b3b8;font-size:11.5px;font-weight:700}

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

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