/* Drain-air-tanks explainer: a cutaway air storage tank. Water and compressor oil pool along its bottom shift by shift,
   freeze in cold weather, and leave through the drain valve. Hero, film, course offer and return banner reuse
   spring-brakes.css (.sbp-*); this file styles only .dt-*. The script sets the stage's data-level (0 to 4 undrained
   shifts), data-temp, data-setup, data-ice, data-spray and data-risk states, sizes the pooled layer and the
   thermometer. Without script the picture shows a dry, freshly drained tank on a warm day with a manual drain.
   Every lesson label in the SVG is at least 10px in the 360 wide viewBox. */
.dt-page{--dt-air:#38bdf8;--dt-go:#31d67b;--dt-warn:#fbbf24;--dt-red:#ef4444;--dt-ice:#bfe9ff;--dt-console:#151b20}
.dt-page .sbp-hero-grid.is-no-film{grid-template-columns:minmax(0,1fr)}
.dt-demo{padding-block:64px 72px;background:var(--paper)}
.dt-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}
.dt-head{grid-area:head}
.dt-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)}
.dt-svg{display:block;width:100%;height:auto;border-radius:10px;background:#0f1316}
.dt-panel{grid-area:panel;display:grid;gap:14px;min-width:0}

/* the HUD: tank bottom, weather and drain setup; script on */
.dt-hud{display:none;align-items:center;gap:6px;flex-wrap:wrap;padding:0 2px 10px}
.dt-stage.is-js .dt-hud{display:flex}
.dt-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}
.dt-chip i{flex:none;width:9px;height:9px;border-radius:50%;background:var(--dt-go);box-shadow:0 0 0 2px rgb(49 214 123/.18);transition:background .2s,box-shadow .2s}
.dt-chip span{color:#a9b3b8;font-weight:600}
.dt-chip b{color:#e8eef0;font-weight:800}
.dt-stage[data-risk="wet"] .dt-chip-bottom i{background:var(--dt-air);box-shadow:0 0 0 2px rgb(56 189 248/.2),0 0 10px rgb(56 189 248/.8)}
.dt-stage[data-risk="warn"] .dt-chip-bottom i{background:var(--dt-warn);box-shadow:0 0 0 2px rgb(251 191 36/.2),0 0 10px rgb(251 191 36/.8)}
.dt-stage[data-risk="warn"] .dt-chip-bottom b{color:#fde68a}
.dt-stage[data-risk="fail"] .dt-chip-bottom i{background:var(--dt-red);box-shadow:0 0 0 2px rgb(239 68 68/.2),0 0 10px rgb(239 68 68/.85)}
.dt-stage[data-risk="fail"] .dt-chip-bottom b{color:#fca5a5}
.dt-chip-weather i{background:#fb923c;box-shadow:0 0 0 2px rgb(251 146 60/.2)}
.dt-stage[data-temp="cold"] .dt-chip-weather i{background:var(--dt-ice);box-shadow:0 0 0 2px rgb(191 233 255/.25),0 0 10px rgb(191 233 255/.8)}
.dt-stage[data-temp="cold"] .dt-chip-weather b{color:var(--dt-ice)}
.dt-chip-setup i{background:var(--dt-air);box-shadow:0 0 0 2px rgb(56 189 248/.18)}

/* parts and labels: every teaching label at least 10px in the 360 wide viewBox */
.dt-part{fill:#c3ccd0;font-size:10px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;paint-order:stroke;stroke:#0d1114;stroke-width:2.6px;stroke-linejoin:round}
.dt-part-mid{text-anchor:middle}
.dt-part-end{text-anchor:end}
.dt-part-strong{fill:#f2f6f7;font-size:11px}
.dt-part-soft{fill:#cfe9f5;font-size:11.5px;text-transform:none;letter-spacing:0;stroke:#0b1c23}
.dt-part-alc{fill:#bfe0ff}
.dt-part-heat{fill:#fdba74}
.dt-line{fill:none;stroke:#3d464b;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.dt-line-flow{fill:none;stroke:var(--dt-air);stroke-width:2;stroke-dasharray:4 7;stroke-linecap:round;opacity:.9}
.dt-stage[data-ice="on"] .dt-line-out{opacity:0}

/* the tank shell, the air and the pooled layer */
.dt-shell{stroke:#0b0e10;stroke-width:1.2}
.dt-well{stroke:#05080a;stroke-width:1}
.dt-shell-sheen{fill:none;stroke:#ffffff;stroke-opacity:.18;stroke-width:1}
.dt-vapor circle{fill:#e6f6ff;opacity:.55}
.dt-air-label{fill:#e6f6ff;font-size:13px;font-weight:900;letter-spacing:.08em;text-anchor:middle;paint-order:stroke;stroke:#0b1c23;stroke-width:3px;stroke-linejoin:round}
.dt-pool{fill:url(#dt-g-pool)}
.dt-stage[data-level="2"] .dt-pool,.dt-stage[data-level="3"] .dt-pool,.dt-stage[data-level="4"] .dt-pool{fill:url(#dt-g-sludge)}
.dt-oil{fill:#d9a441;opacity:.85}
.dt-stage.is-js .dt-pool,.dt-stage.is-js .dt-oil{transition:y .45s ease,height .45s ease}
.dt-pool-label{fill:#fff;font-size:10.5px;font-weight:900;letter-spacing:.04em;text-anchor:middle;text-transform:uppercase;paint-order:stroke;stroke:#1a1208;stroke-width:2.6px;stroke-linejoin:round;opacity:0;transition:opacity .2s}
.dt-stage:not([data-level="0"]) .dt-pool-label{opacity:1}
.dt-ice{opacity:0;transition:opacity .3s}
.dt-stage[data-ice="on"] .dt-ice{opacity:1}
.dt-crystal{fill:var(--dt-ice);stroke:#ffffff;stroke-width:.8;stroke-linejoin:round}
.dt-frost{fill:none;stroke:var(--dt-ice);stroke-width:2;stroke-dasharray:2 3}
.dt-stage[data-ice="on"] .dt-pool{fill:#9cc9de}

/* the blocked outlet */
.dt-block{opacity:0;transition:opacity .2s}
.dt-stage[data-ice="on"] .dt-block{opacity:1}
.dt-block-box{fill:#7f1d1d;stroke:var(--dt-red);stroke-width:1.4}
.dt-block-x{fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round}

/* the alcohol evaporator, shown for that setup only */
.dt-alcohol{display:none}
.dt-stage[data-setup="alcohol"] .dt-alcohol{display:inline}
.dt-jar{stroke:#1e3a5f;stroke-width:1}
.dt-jar-cap{fill:#4f5a5e;stroke:#2a3133;stroke-width:.8}
.dt-jar-feed{fill:none;stroke:#8fc4f0;stroke-width:2;stroke-dasharray:3 3}

/* the drains: manual valve and cable, or automatic drain with heater */
.dt-auto{display:none}
.dt-stage[data-setup="auto"] .dt-auto{display:inline}
.dt-stage[data-setup="auto"] .dt-manual{display:none}
.dt-valve-body,.dt-auto-body{stroke:#2a3133;stroke-width:1}
.dt-handle{transform-box:view-box;transform-origin:156px 210px;transition:transform .3s}
.dt-handle-bar{fill:#dc2626;stroke:#5f0f0f;stroke-width:.8}
.dt-stage[data-spray="on"] .dt-handle{transform:rotate(90deg)}
.dt-cable{fill:none;stroke:#a9b3b8;stroke-width:1.4}
.dt-cable-ring{fill:none;stroke:#e8eef0;stroke-width:1.8}
.dt-heater{fill:none;stroke:#fb923c;stroke-width:1.6;stroke-linecap:round}
.dt-spout{fill:none;stroke:#8d999e;stroke-width:4;stroke-linecap:round}
.dt-spray{opacity:0;transition:opacity .2s}
.dt-stage[data-spray="on"] .dt-spray{opacity:1}
.dt-spray-stream{fill:none;stroke:#9cc9de;stroke-width:2.2;stroke-linecap:round;stroke-dasharray:4 4}
.dt-puddle{fill:#5a4a2a;opacity:.7}

/* the thermometer */
.dt-thermo-tube{fill:#0b0d0e;stroke:#c9d0d2;stroke-width:1.4}
.dt-mercury{fill:#ef4444}
.dt-stage.is-js .dt-mercury{transition:y .4s ease,height .4s ease}
.dt-thermo-bulb{fill:#ef4444;stroke:#c9d0d2;stroke-width:1.4}
.dt-stage[data-temp="cold"] .dt-mercury,.dt-stage[data-temp="cold"] .dt-thermo-bulb{fill:#60a5fa}
.dt-thermo-freeze{fill:none;stroke:var(--dt-ice);stroke-width:1.4;stroke-dasharray:3 2}
.dt-thermo-txt{fill:#e8eef0;font-size:10px;font-weight:800;text-anchor:end;paint-order:stroke;stroke:#0d1114;stroke-width:2.4px}
.dt-thermo-txt-freeze{fill:var(--dt-ice)}
.dt-thermo-val{fill:#fff;font-size:13px;font-weight:900;text-anchor:middle;paint-order:stroke;stroke:#0d1114;stroke-width:3px}

/* the brake air card */
.dt-card-box{fill:#080b0d;stroke:var(--dt-go);stroke-width:1.2;transition:stroke .2s}
.dt-card-cap{fill:#a9b3b8;font-size:10px;font-weight:800;letter-spacing:.1em;text-anchor:middle;text-transform:uppercase}
.dt-card-big{font-size:15px;font-weight:900;letter-spacing:.05em;text-anchor:middle}
.dt-card-sub{fill:#d7dddd;font-size:11.5px;font-weight:700;text-anchor:middle}
.dt-risk{display:none}
.dt-stage[data-risk="ok"] .dt-risk-ok,.dt-stage[data-risk="wet"] .dt-risk-wet,.dt-stage[data-risk="warn"] .dt-risk-warn,.dt-stage[data-risk="fail"] .dt-risk-fail{display:inline}
.dt-risk-ok .dt-card-big{fill:var(--dt-go)}
.dt-risk-wet .dt-card-big{fill:var(--dt-air)}
.dt-risk-warn .dt-card-big{fill:var(--dt-warn)}
.dt-risk-fail .dt-card-big{fill:#fca5a5}
.dt-stage[data-risk="wet"] .dt-card-box{stroke:var(--dt-air)}
.dt-stage[data-risk="warn"] .dt-card-box{stroke:var(--dt-warn)}
.dt-stage[data-risk="fail"] .dt-card-box{stroke:var(--dt-red)}

/* motion, script on */
.dt-stage.is-js .dt-line-flow{animation:dt-flow .6s linear infinite}
.dt-stage.is-js .dt-spray-stream{animation:dt-flow .3s linear infinite}
.dt-stage.is-js .dt-vapor circle{transform-box:fill-box;animation:dt-float 3s ease-in-out infinite}
@keyframes dt-flow{to{stroke-dashoffset:-11}}
@keyframes dt-float{50%{transform:translateY(-3px)}}

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

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