/* Liquid surge and outage explainer: a cutaway tank truck rolling toward a stop line. Hero, film, course offer and return
   banner reuse spring-brakes.css (.sbp-*); this file styles only .ls-*. The script sets the stage's data-fill (full,
   outage, part), data-tank (smooth, baffled), data-brake (none, hard, steady), data-warm (true, false) and data-surge
   (none, small, moderate, strong) states, the liquid surface, the truck's push and the readouts. Without script the
   picture shows a partly filled smooth bore tank before the stop. Every SVG text label is at least 11.5px in the
   360-wide viewBox. */
.ls-page{--ls-liquid:#38bdf8;--ls-bad:#ef4444;--ls-good:#31d67b;--ls-console:#151b20}
.ls-page .sbp-hero-grid.is-no-film{grid-template-columns:minmax(0,1fr)}
.ls-demo{padding-block:64px 72px;background:var(--paper)}
.ls-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}
.ls-head{grid-area:head}
.ls-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)}
.ls-svg{display:block;width:100%;height:auto;border-radius:10px;background:#0f1316}
.ls-panel{grid-area:panel;display:grid;gap:14px;min-width:0}

/* the HUD; script on */
.ls-hud{display:none;align-items:center;gap:6px;flex-wrap:wrap;padding:0 2px 10px}
.ls-stage.is-js .ls-hud{display:flex}
.ls-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}
.ls-chip i{flex:none;width:9px;height:9px;border-radius:50%;background:#3a4246;box-shadow:inset 0 0 0 1.5px #586166}
.ls-chip span{color:#a9b3b8;font-weight:600}
.ls-chip b{color:#e8eef0;font-weight:800}
.ls-chip-fill i{background:var(--ls-liquid)}
.ls-stage[data-fill="full"] .ls-chip-fill i{background:var(--ls-bad)}
.ls-chip-tank i{background:#d3dade}
.ls-chip-brake i{background:#3a4246}
.ls-stage[data-brake="hard"] .ls-chip-brake i{background:var(--ls-bad)}
.ls-stage[data-brake="steady"] .ls-chip-brake i{background:var(--ls-good)}

/* the road and the stop line */
.ls-road{fill:#2c3135;stroke:#0b0d0f;stroke-width:1}
.ls-lane{fill:none;stroke:#e8eef0;stroke-opacity:.55;stroke-width:1.6}
.ls-stopline{fill:none;stroke:#fff;stroke-width:4;stroke-linecap:round}
.ls-part{fill:#d3dade;font-size:11.5px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;paint-order:stroke;stroke:#0d1114;stroke-width:2.6px;stroke-linejoin:round}
.ls-end{text-anchor:end}
.ls-mid{text-anchor:middle}

/* the truck and the cutaway tank */
.ls-truck{transition:transform .5s cubic-bezier(.3,1.5,.5,1)}
.ls-frame{fill:#3a4246;stroke:#1b2023;stroke-width:1}
.ls-shell{fill:#1a2126;stroke:#c9d1d4;stroke-width:3}
.ls-room{fill:#0c1013}
.ls-liquid{fill:url(#ls-g-liquid);stroke:#a5dcfb;stroke-width:1.4;transition:d .45s ease-out}
.ls-baffles{display:none}
.ls-baffles path{fill:none;stroke:#c9d1d4;stroke-width:3;stroke-linecap:round}
.ls-stage[data-tank="baffled"] .ls-baffles{display:inline}
.ls-over{fill:none;stroke:var(--ls-bad);stroke-width:2.4;stroke-linecap:round;opacity:0}
.ls-stage[data-fill="full"][data-warm="true"] .ls-over{opacity:1}
.ls-stage[data-fill="full"][data-warm="true"] .ls-shell{stroke:var(--ls-bad)}
.ls-cab{fill:#ffb400;stroke:#5c3d00;stroke-width:1.4}
.ls-glass{fill:#1e3a4a}
.ls-wheel{fill:#15191c;stroke:#59636a;stroke-width:2.4}
.ls-push{fill:none;stroke:var(--ls-bad);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;opacity:0;transition:opacity .25s}
.ls-stage[data-surge="moderate"] .ls-push,.ls-stage[data-surge="strong"] .ls-push{opacity:1}

/* the cards */
.ls-card{fill:#080b0d;fill-opacity:.88;stroke:#59636a;stroke-width:1}
.ls-cap{fill:#b6c0c5;font-size:11.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.ls-big{fill:#fff;font-size:24px;font-weight:900}
.ls-stage[data-surge="strong"] .ls-big,.ls-stage[data-surge="moderate"] .ls-big{fill:var(--ls-bad)}
.ls-stage[data-brake="steady"][data-surge="small"] .ls-big{fill:var(--ls-good)}
.ls-sub{fill:#e8eef0;font-size:12.5px;font-weight:700}
.ls-warn{fill:var(--ls-bad);font-size:13px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;paint-order:stroke;stroke:#0d1114;stroke-width:3px;stroke-linejoin:round}

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

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