/* Supply-pressure-gauge explainer: a live cab dash with a dual-needle supply gauge, an application gauge, the LOW AIR
   light, the parking brake knob and a cutaway of the primary and secondary tanks. Hero, film, course offer and return
   banner reuse spring-brakes.css (.sbp-*); this file styles only .sp-*. The script turns each needle about its gauge's
   center (supply 1.8 degrees per PSI, application 2.7) and sets the stage's data-pedal, data-leak, data-flow, data-lamp
   and data-knob states. Without script the stylesheet's angles show normal driving: 120 and 116 PSI, pedal up. */
.sp-page{--sp-pri:#14b8a6;--sp-sec:#f59e0b;--sp-red:#ef4444;--sp-ok:#31d67b;--sp-console:#151b20}
.sp-page .sbp-hero-grid.is-no-film{grid-template-columns:minmax(0,1fr)}
.sp-demo{padding-block:64px 72px;background:var(--paper)}
.sp-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}
.sp-head{grid-area:head}
.sp-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)}
.sp-svg{display:block;width:100%;height:auto;border-radius:10px;background:#0f1316}
.sp-panel{grid-area:panel;display:grid;gap:14px}

/* tell-tales above the dash: engine, leak, compressor; script on */
.sp-hud{display:none;align-items:center;gap:6px;flex-wrap:wrap;padding:0 2px 10px}
.sp-stage.is-js .sp-hud{display:flex}
.sp-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}
.sp-chip i{flex:none;width:9px;height:9px;border-radius:50%;background:#3a4246;box-shadow:inset 0 0 0 1.5px #586166;transition:background .2s,box-shadow .2s}
.sp-chip span{color:#a9b3b8;font-weight:600}
.sp-chip b{color:#e8eef0;font-weight:800}
.sp-chip-engine.is-on i{background:var(--sp-ok);box-shadow:0 0 0 2px rgb(49 214 123/.18),0 0 10px rgb(49 214 123/.8)}
.sp-chip-engine.is-on b{color:var(--sp-ok)}
.sp-stage:not([data-leak="none"]) .sp-chip-leak i{background:var(--sp-red);box-shadow:0 0 0 2px rgb(239 68 68/.2),0 0 10px rgb(239 68 68/.85)}
.sp-stage:not([data-leak="none"]) .sp-chip-leak b{color:#fca5a5}
.sp-stage[data-flow="pump"] .sp-chip-comp i{background:var(--sp-sec);box-shadow:0 0 0 2px rgb(245 158 11/.2),0 0 10px rgb(245 158 11/.85)}
.sp-stage[data-flow="pump"] .sp-chip-comp b{color:#fde68a}

/* the dash and panel */
.sp-panel-shade{fill:#000;opacity:.5}
.sp-panel-edge{fill:none;stroke:#fff;stroke-opacity:.55;stroke-width:1}
.sp-screws{fill:#c9cfce;stroke:#5a6466;stroke-width:.9}
.sp-screw-slots{fill:none;stroke:#4a5254;stroke-width:.9;stroke-linecap:round}

/* both gauges: chrome bezel, dial, scale */
.sp-bezel-shade{fill:#0b0f11;opacity:.5}
.sp-bezel-cup{fill:#0b0d0e}
.sp-bezel{fill:none;stroke:url(#sp-g-chrome);stroke-width:7}
.sp-bezel-app{stroke-width:6}
.sp-bezel-inner{fill:none;stroke:#2c2e2f;stroke-width:1.3}
.sp-ring{fill:none;stroke:#2a2522;stroke-width:1}
.sp-arc-low{fill:none;stroke:#dc2626;stroke-width:7}
.sp-arc-ok{fill:none;stroke:#16a34a;stroke-width:7}
.sp-ticks{fill:none;stroke:#1d1916;stroke-width:2.4;stroke-linecap:round}
.sp-ticks-minor{fill:none;stroke:#3a3430;stroke-width:1.4;stroke-linecap:round}
.sp-ticks-fine{fill:none;stroke:#6a615a;stroke-width:.9;stroke-linecap:round}
.sp-app-ink{stroke:#e9f2ef}
.sp-ticks-fine.sp-app-ink{stroke:#9fb4b3}
.sp-num{fill:#1f1c19;font-size:10.5px;font-weight:800;text-anchor:middle}
.sp-num-low{fill:#b91c1c}
.sp-num-ok{fill:#15803d}
.sp-num-app{fill:#e9f2ef;font-size:7.2px;font-weight:800;text-anchor:middle}
.sp-unit{fill:#4b4741;font-size:8px;font-weight:800;letter-spacing:.1em;text-anchor:middle}
.sp-unit-app{fill:#9fb4b3;font-size:6px}
.sp-gauge-name{fill:#2b2420;font-size:6.6px;font-weight:800;letter-spacing:.12em;text-anchor:middle;text-transform:uppercase}
.sp-gauge-name-app{fill:#e9f2ef;font-size:5.6px}
.sp-key{fill:#2b2420;font-size:6.8px;font-weight:800;letter-spacing:.06em}
.sp-key-pri,.sp-key-sec{fill:none;stroke-width:3.2;stroke-linecap:round}
.sp-key-pri{stroke:#0f766e}
.sp-key-sec{stroke:#d97706}

/* the needles: teal primary, amber diamond secondary, copper application */
.sp-needle{transform-box:view-box;transform-origin:0 0}
.sp-needle-pri{transform:rotate(81deg)}
.sp-needle-sec{transform:rotate(73.8deg)}
.sp-needle-app{transform:rotate(-135deg)}
.sp-blade-pri{fill:#0f766e;stroke:#0a4f49;stroke-width:.5}
.sp-blade-sec{fill:#e08a0b;stroke:#8a5206;stroke-width:.5}
.sp-blade-app{fill:#ffb37b}
.sp-needle-shadow{fill:#1c140c;opacity:.24}
.sp-stage.is-js .sp-needle-pri,.sp-stage.is-js .sp-needle-sec{transition:transform .6s cubic-bezier(.3,1.3,.55,1)}
.sp-stage.is-js .sp-needle-app{transition:transform .7s cubic-bezier(.3,1.35,.55,1)}
.sp-stage.is-js:not([data-flow="idle"]) .sp-needle-pri,.sp-stage.is-js:not([data-flow="idle"]) .sp-needle-sec{transition:transform .16s linear}
.sp-cap{fill:url(#sp-g-cap);stroke:#3b4446;stroke-width:.8}
.sp-cap-dot{fill:#2a3133}
.sp-glass{fill:#fff;opacity:.34;pointer-events:none}
.sp-glass-dot{opacity:.5}
.sp-glass-app{opacity:.16}
.sp-plate rect{fill:#161b1e;stroke:#6d7377;stroke-width:.8}
.sp-plate-lbl{fill:#b6c3c8;font-size:7.2px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
.sp-plate-val{fill:#ffc49b;font-size:9.5px;font-weight:800;text-anchor:end}

/* the LOW AIR light: dark lens until either tank falls below 60 PSI */
.sp-lamp-housing{fill:#111517;stroke:#5c6568;stroke-width:1}
.sp-lamp-lens{fill:#3a1212;stroke:#1a0707;stroke-width:1;transition:fill .15s}
.sp-lamp-glow{fill:#ff3b30;opacity:0;transition:opacity .15s}
.sp-lamp-shine{fill:none;stroke:#fff;stroke-opacity:.14;stroke-width:1.4;stroke-linecap:round}
.sp-lamp-text{fill:#6e2a2a;font-size:8.6px;font-weight:900;letter-spacing:.08em;text-anchor:middle;transition:fill .15s}
.sp-lamp-cap{fill:#2c3236;font-size:5.6px;font-weight:800;letter-spacing:.12em;text-anchor:middle;text-transform:uppercase}
.sp-lamp .sp-lamp-cap{fill:#8f9ba1}
.sp-stage[data-lamp="on"] .sp-lamp-lens{fill:#ff3b30;stroke:#ff8a80}
.sp-stage[data-lamp="on"] .sp-lamp-glow{opacity:.95}
.sp-stage[data-lamp="on"] .sp-lamp-text{fill:#fff4f2}
.sp-stage.is-js[data-lamp="on"] .sp-lamp-glow,.sp-stage.is-js[data-lamp="on"] .sp-lamp-lens{animation:sp-pulse 1s ease-in-out infinite}
@keyframes sp-pulse{50%{opacity:.55}}

/* the parking brake knob: pops out toward the driver when the spring brakes apply */
.sp-knob-grommet{fill:#0d1012;stroke:url(#sp-g-chrome);stroke-width:2.4}
.sp-knob-hole{fill:#050607}
.sp-knob-pull{transform-box:view-box;transform-origin:306px 168px}
.sp-knob-shadow{fill:#000;opacity:.35}
.sp-knob-stem{fill:none;stroke:#8d999e;stroke-width:5;stroke-linecap:round;opacity:0}
.sp-knob-face{fill:url(#sp-g-knob);stroke:#6e5410;stroke-width:1.3;stroke-linejoin:round}
.sp-knob-shine{fill:none;stroke:#fff6c8;stroke-width:1.5;stroke-linecap:round;opacity:.7}
.sp-knob-text{fill:#4a3806;font-size:5.4px;font-weight:900;letter-spacing:.06em;text-anchor:middle}
.sp-stage[data-knob="out"] .sp-knob-pull{transform:translateY(-4px) scale(1.22)}
.sp-stage[data-knob="out"] .sp-knob-stem{opacity:1}
.sp-stage[data-knob="out"] .sp-knob-shadow{opacity:.55}
.sp-stage.is-js .sp-knob-pull{transition:transform .32s cubic-bezier(.2,1.6,.5,1)}

/* the cutaway: tanks, fill bars, pipes and the air jets */
.sp-under-edge{fill:none;stroke:#fff;stroke-opacity:.1;stroke-width:1;stroke-dasharray:4 3}
.sp-under-lbl{fill:#8f9ba1;font-size:7px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.sp-pipe{fill:none;stroke:#3d464b;stroke-width:4;stroke-linecap:round}
.sp-pipe-flow{fill:none;stroke:#fde68a;stroke-width:1.6;stroke-dasharray:3 5;opacity:0}
.sp-stage[data-flow="pump"] .sp-pipe-flow{opacity:.9;animation:sp-flow .5s linear infinite}
@keyframes sp-flow{to{stroke-dashoffset:-8}}
.sp-tank-body{stroke:#0b0e10;stroke-width:1.2}
.sp-strap{fill:none;stroke:#11161a;stroke-width:3.4;opacity:.75}
.sp-tank-name{fill:#f2f6f7;font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;paint-order:stroke;stroke:#0b1214;stroke-width:2.6px;stroke-linejoin:round}
.sp-tank-val{fill:#fff;font-size:11px;font-weight:900;text-anchor:end;paint-order:stroke;stroke:#0b1214;stroke-width:2.8px;stroke-linejoin:round}
.sp-drain{fill:none;stroke:#8d999e;stroke-width:3;stroke-linecap:round}
.sp-jet{opacity:0;transition:opacity .2s}
.sp-jet-stream{fill:none;stroke:#e6f6ff;stroke-width:1.6;stroke-linecap:round;stroke-dasharray:4 4;opacity:.85}
.sp-puff{fill:#e6f6ff;opacity:.5}
.sp-stage[data-leak="primary"] .sp-jet-pri,.sp-stage[data-leak="both"] .sp-jet-pri,.sp-stage[data-leak="both"] .sp-jet-sec{opacity:1}
.sp-stage[data-flow="idle"] .sp-jet{opacity:0}
.sp-stage.is-js .sp-jet-stream{animation:sp-flow .35s linear infinite}
.sp-stage.is-js .sp-puff{transform-box:fill-box;transform-origin:center;animation:sp-puff .9s ease-out infinite}
.sp-stage.is-js .sp-puff-b{animation-delay:.3s}
.sp-stage.is-js .sp-puff-c{animation-delay:.6s}
@keyframes sp-puff{from{transform:scale(.4);opacity:.75}to{transform:scale(1.8);opacity:0}}

/* controls: one dark console, five truck controls and a reset */
.sp-ask{margin:0;color:var(--ink);font-size:20px;line-height:1.25}
.sp-ask[hidden],.sp-controls[hidden]{display:none}
.sp-ask b{font-weight:800}
.sp-controls{display:grid;gap:10px;padding:14px;border-radius:16px;background:linear-gradient(180deg,#232b31,var(--sp-console));box-shadow:0 18px 40px -28px rgb(0 0 0/.8),inset 0 1px 0 rgb(255 255 255/.07);color:#e8eef0}
.sp-acts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.sp-btn{position:relative;display:flex;align-items:center;gap:12px;min-width:0;min-height:64px;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-size:16px;font-weight:700;line-height:1.2;text-align:left;cursor:pointer;transition:transform .08s,box-shadow .12s,background .12s}
.sp-btn:hover{background:linear-gradient(180deg,#38434b,#20282d)}
.sp-btn:active{transform:translateY(2px);box-shadow:inset 0 1px 0 rgb(255 255 255/.06),0 1px 0 #06090b}
.sp-btn[aria-pressed="true"]{transform:translateY(2px);box-shadow:inset 0 0 0 2px var(--sp-ring,#ffb37b),0 1px 0 #06090b;background:linear-gradient(180deg,#2b2a28,#1d1c1b)}
.sp-btn-leak,.sp-btn-drain{--sp-ring:var(--sp-red)}
.sp-btn-pump{--sp-ring:var(--sp-sec)}
.sp-btn-knob{grid-column:1/-1;min-height:56px}
.sp-stage[data-knob="out"]~.sp-panel .sp-btn-knob{box-shadow:inset 0 0 0 2px #f2c230,0 3px 0 #06090b}
.sp-name{display:grid;gap:3px;min-width:0}
.sp-name small{color:#a9b3b8;font-size:13px;font-weight:600}
.sp-icon{flex:none;width:44px;height:30px}
.sp-icon-floor{fill:#3d464b}
.sp-icon-valve{fill:#8f9a9d}
.sp-icon-plate{fill:#d7dddd;transform-box:view-box;transform-origin:7px 25px;transition:transform .2s}
.sp-btn-pedal[aria-pressed="true"] .sp-icon-plate{fill:#ffb37b;transform:rotate(22deg)}
.sp-icon-pin{fill:#e9eef0}
.sp-icon-tank{fill:#4a555b}
.sp-icon-pri{fill:var(--sp-pri)}
.sp-icon-sec{fill:var(--sp-sec)}
.sp-icon-ok{fill:var(--sp-ok);opacity:.85}
.sp-icon-air{fill:none;stroke:#e6f6ff;stroke-width:1.6;stroke-linecap:round}
.sp-icon-arrow{fill:none;stroke:#fde68a;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sp-icon-grommet{fill:#0d1012;stroke:#8d999e;stroke-width:1.5}
.sp-icon-knob{fill:#f2c230;stroke:#6e5410;stroke-width:1.2;stroke-linejoin:round}
.sp-reset{justify-self:start;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 14px 8px 12px;border:0;border-radius:999px;background:#080b0d;box-shadow:inset 0 0 0 1px rgb(255 255 255/.14);color:#dfe6e9;font-size:15px;font-weight:700;cursor:pointer}
.sp-reset:hover{box-shadow:inset 0 0 0 1px rgb(255 255 255/.32)}
.sp-reset-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sp-btn:focus-visible,.sp-reset:focus-visible{outline:3px solid var(--sbp-amber);outline-offset:3px}
.sp-status{display:block;min-height:7.3em;padding:12px 14px 12px 16px;border-left:5px solid #8f9ba1;border-radius:0 10px 10px 0;background:var(--white,#fffffc);color:var(--ink);font-size:16px;font-weight:600;line-height:1.45;transition:border-color .2s}
.sp-stage[data-lamp="on"]~.sp-panel .sp-status{border-left-color:var(--sp-red)}
.sp-stage[data-knob="out"]~.sp-panel .sp-status{border-left-color:#f2c230}
.sp-text{margin:0;max-width:40em;color:var(--ink);font-size:17px;line-height:1.6}

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