/* Baffled-tanker explainer: "Stop hard, then take the curve", a stainless tanker in side cutaway with a rear-view inset.
   Hero, film, course offer and return banner reuse spring-brakes.css (.sbp-*); this file styles only .bt-*.
   The stage's data-design (baffled, smooth, bulkhead) shows the walls inside the tank and picks the liquid color
   (milk for the smooth bore food tank); data-fill (outage, over) shows the air space or the vent spill; .is-lift
   shows the lifting wheels. The script sets the transform of .bt-rig, .bt-roll and the slosh group, so no rule
   here may transform them. Every button shares one dark console color with white text; pressed and focus get an
   amber ring only. */
.bt-page{--bt-ok:#31d67b;--bt-warn:#ffb400;--bt-bad:#ff5a3c;--bt-console:#14171f;--bt-btn:#0e1018;--bt-btn-hover:#181b26}
.bt-page .sbp-hero-grid.is-no-film{grid-template-columns:minmax(0,1fr)}
.bt-demo{padding-block:64px 72px;background:var(--paper)}
.bt-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}
.bt-head{grid-area:head}
.bt-stage{grid-area:stage;margin:0;padding:10px;border-radius:16px;background:linear-gradient(170deg,#1f2233,#0c0e16 80%);box-shadow:0 30px 60px -34px rgb(0 0 0/.75),inset 0 1px 0 rgb(255 255 255/.06);min-width:0}
.bt-svg{display:block;width:100%;height:auto;border-radius:10px;background:#9fc0dc}
.bt-panel{grid-area:panel;display:grid;gap:14px;min-width:0}

/* instrument strip over the scene: surge, roll and outage; script on */
.bt-hud{display:none;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:0 0 10px}
.bt-stage.is-js .bt-hud{display:grid}
.bt-gauge{display:grid;grid-template-columns:minmax(0,1fr);align-items:baseline;gap:2px;margin:0;padding:7px 9px 8px;border-radius:9px;background:linear-gradient(180deg,#0b0d14,#121522);box-shadow:inset 0 0 0 1px rgb(255 255 255/.08),inset 0 1px 0 rgb(255 255 255/.05);line-height:1;min-width:0}
.bt-gauge-name{color:#9ea6b8;font-size:10.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bt-gauge b{color:#eef0f6;font-size:19px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .2s}
.bt-gauge small{color:#7f879a;font-size:10.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bt-meter{display:block;width:100%;height:4px;margin:3px 0 1px;overflow:visible}
.bt-meter-track{fill:#262a39}
.bt-meter-fill{fill:var(--bt-ok);transition:fill .2s}
.bt-meter-tick{fill:none;stroke:#eef0f6;stroke-width:1.2;opacity:.65;vector-effect:non-scaling-stroke}
.bt-gauge.is-ok b{color:var(--bt-ok)}
.bt-gauge.is-warn b{color:var(--bt-warn)}
.bt-gauge.is-warn .bt-meter-fill{fill:var(--bt-warn)}
.bt-gauge.is-bad b{color:#ff8a70}
.bt-gauge.is-bad .bt-meter-fill{fill:var(--bt-bad)}
.bt-gauge.is-bad{box-shadow:inset 0 0 0 1px rgb(255 90 60/.55),0 0 18px -6px rgb(255 90 60/.7)}
.bt-stage.is-running .bt-gauge.is-bad b{animation:bt-blink .6s steps(2,jump-none) infinite}
@keyframes bt-blink{50%{color:#7a2a1e}}

/* the scene */
.bt-cloud{fill:#fff;opacity:.55}
.bt-farm{fill:#7b938f;opacity:.75}
.bt-shoulder{fill:none;stroke:#e9e7ef;stroke-width:1.4;opacity:.75}
.bt-shoulder-near{opacity:.4}
.bt-lane{fill:none;stroke:#ffc23d;stroke-width:2.2;stroke-dasharray:14 12;opacity:.95}
.bt-sign-post{fill:#8b93a3}
.bt-sign-face{fill:#ffc21a;stroke:#141414;stroke-width:1.2}
.bt-sign-ink{fill:#141414}
.bt-sign-plate{fill:#ffc21a;stroke:#141414;stroke-width:.9}
.bt-sign-text{fill:#141414;font-size:7.6px;font-weight:900;text-anchor:middle}
.bt-sign-small{font-size:4.4px;letter-spacing:.06em}
.bt-stage[data-move="curve"] .bt-sign-face,.bt-stage[data-move="curve"] .bt-sign-plate{stroke:#ff5a3c;stroke-width:1.8}
.bt-stage[data-move="slow"] .bt-sign-face,.bt-stage[data-move="slow"] .bt-sign-plate{stroke:#1f9e63;stroke-width:1.8}
.bt-vignette{pointer-events:none}

/* the rig */
.bt-shadow{fill:#000;opacity:.4}
.bt-frame{fill:#23252e}
.bt-flap{fill:#111}
.bt-landing{fill:none;stroke:#585e6b;stroke-width:2}
.bt-shell{fill:url(#bt-g-steel);stroke:#4c5560;stroke-width:.8}
.bt-ring{fill:none;stroke:#66707c;stroke-width:1.1}
.bt-shell-shine{fill:none;stroke:#fff;stroke-width:1;opacity:.85}
.bt-rail{fill:none;stroke:#c9d0d8;stroke-width:1;stroke-linecap:round}
.bt-dome{fill:url(#bt-g-steel);stroke:#4c5560;stroke-width:.6}
.bt-vent{fill:url(#bt-g-chrome)}
.bt-dome-x{display:none}
.bt-stage[data-design="bulkhead"] .bt-dome-x{display:inline}
.bt-inner{fill:url(#bt-g-inner)}
.bt-polish{fill:none;stroke:#fff;stroke-width:3;opacity:.12;display:none}
.bt-stage[data-design="smooth"] .bt-polish{display:inline}
.bt-liq{fill:url(#bt-g-liq)}
.bt-surf{fill:none;stroke:#fff3c4;stroke-width:1.2;stroke-linejoin:round;opacity:.9}
.bt-caustic{fill:none;stroke:#fff1b8;stroke-width:.7;opacity:.35}
.bt-stage[data-design="smooth"] .bt-liq{fill:url(#bt-g-milk)}
.bt-stage[data-design="smooth"] .bt-surf{stroke:#ffffff}
.bt-stage[data-design="smooth"] .bt-caustic{stroke:#c8bda4}
.bt-baffle{fill:url(#bt-g-wall);stroke:#4c5560;stroke-width:.5;display:none}
.bt-bulkheads{display:none}
.bt-stage[data-design="baffled"] .bt-baffle{display:inline}
.bt-stage[data-design="bulkhead"] .bt-bulkheads{display:inline}
.bt-bulkhead{fill:url(#bt-g-head);stroke:#2d343d;stroke-width:.6}
.bt-rivets{fill:none;stroke:#d5dbe2;stroke-width:1.4;stroke-linecap:round}
.bt-bay circle{fill:#0e1018;stroke:#eef0f6;stroke-width:.8;opacity:.85}
.bt-bay text{fill:#fff;font-size:7.2px;font-weight:900;text-anchor:middle}
.bt-outage-line{fill:none;stroke:#e9eef3;stroke-width:.8;stroke-dasharray:3 2.4;opacity:.8}
.bt-bracket{fill:none;stroke:#fff;stroke-width:1;stroke-linecap:round;stroke-linejoin:round}
.bt-outage-text,.bt-over-text{font-size:7.6px;font-weight:800;paint-order:stroke;stroke:#1b2028;stroke-width:2.4px;stroke-linejoin:round}
.bt-outage-text{fill:#fff;text-anchor:end}
.bt-over-text{fill:#ff8a70;text-anchor:middle;display:none}
.bt-stage.is-running .bt-outage{opacity:.35}
.bt-stage[data-fill="over"] .bt-outage{display:none}
.bt-stage[data-fill="over"] .bt-over-text{display:inline}
.bt-spill,.bt-drip{fill:#f0a020;stroke:#8a4e05;stroke-width:.5;opacity:0;display:none}
.bt-stage[data-design="smooth"] .bt-spill,.bt-stage[data-design="smooth"] .bt-drip{fill:#fffaf0}
.bt-stage[data-fill="over"] .bt-spill,.bt-stage[data-fill="over"] .bt-drip{display:inline;opacity:.95}
.bt-stage[data-fill="over"] .bt-drip{animation:bt-drip 1.1s ease-in infinite}
@keyframes bt-drip{from{transform:translateY(-4px);opacity:0}30%{opacity:.95}to{transform:translateY(14px);opacity:0}}
.bt-cut{fill:none;stroke:#f4f7fa;stroke-width:1.6;filter:drop-shadow(0 0 1.2px rgb(0 0 0/.6))}
.bt-fifth{fill:#3a3d47}
.bt-stack{fill:url(#bt-g-chrome)}
.bt-cab{fill:url(#bt-g-cab);stroke:#5e1a0b;stroke-width:.6}
.bt-cab-low{fill:#6b200d;opacity:.5}
.bt-glass{fill:url(#bt-g-glass)}
.bt-glare{fill:#fff;opacity:.55}
.bt-seam{fill:none;stroke:#6f220e;stroke-width:.6}
.bt-tank,.bt-grille,.bt-bumper{fill:url(#bt-g-chrome)}
.bt-lamp{fill:#fffbe8}
.bt-tire{fill:url(#bt-g-tire)}
.bt-rim{fill:#c8ceda;stroke:#717887;stroke-width:.6}
.bt-spoke{fill:none;stroke:#5a6070;stroke-width:1.1;stroke-linecap:round}
.bt-hub{fill:#3a3f4c}
.bt-shove-arrow{fill:none;stroke:#ff5a3c;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.bt-shove-text{fill:#ff5a3c;font-size:7.6px;font-weight:900;text-anchor:end;paint-order:stroke;stroke:#fff;stroke-width:2.4px;stroke-linejoin:round}

/* labels */
.bt-caption{fill:#1f2733;font-size:7.6px;font-weight:800;letter-spacing:.16em;opacity:.75}
.bt-tag{fill:#1f2733;font-size:12px;font-weight:800;paint-order:stroke;stroke:#f2f6fa;stroke-width:3.4px;stroke-linejoin:round}
.bt-tag[data-tone="good"],.bt-stage.is-static .bt-tag{fill:#13804c}
.bt-tag[data-tone="warn"]{fill:#9a6200}
.bt-tag[data-tone="bad"]{fill:#c4321c}

/* rear view inset */
.bt-card{fill:#10131c;stroke:#eef0f6;stroke-opacity:.35;stroke-width:1}
.bt-card-title{fill:#c9cfdb;font-size:7px;font-weight:800;letter-spacing:.18em;text-anchor:middle}
.bt-curve-icon{fill:none;stroke:#ffc23d;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.bt-mini-road{fill:none;stroke:#5b6170;stroke-width:1.6}
.bt-axle,.bt-mini-frame{fill:#2b2e38}
.bt-mini-tire{fill:#08090c;stroke:#3b3f4a;stroke-width:.8}
.bt-barrel{fill:url(#bt-g-barrel);stroke:#3e4652;stroke-width:.8}
.bt-barrel-rim{fill:none;stroke:#f4f7fa;stroke-width:1.2;opacity:.8}
.bt-bore{fill:url(#bt-g-bore)}
.bt-face{fill:url(#bt-g-steel);opacity:.85;display:none}
.bt-stage[data-design="baffled"] .bt-face-baffle{display:inline}
.bt-stage[data-design="bulkhead"] .bt-face-solid{display:inline;fill:url(#bt-g-head)}
.bt-liq-r{fill:url(#bt-g-liq-r)}
.bt-stage[data-design="smooth"] .bt-liq-r{fill:url(#bt-g-milk-r)}
.bt-stage[data-design="baffled"] .bt-liq-r{opacity:.88}
.bt-liq-full{display:none}
.bt-stage[data-fill="over"] .bt-liq-full{display:inline}
.bt-stage[data-fill="over"] .bt-liq-part{display:none}
.bt-push{fill:none;stroke:#c4321c;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.bt-stage.is-static .bt-push{opacity:.9}
.bt-lift{fill:#ff8a70;font-size:7.6px;font-weight:900;text-anchor:start;paint-order:stroke;stroke:#10131c;stroke-width:2.6px;stroke-linejoin:round;display:none}
.bt-stage.is-static .bt-lift,.bt-stage.is-lift .bt-lift{display:inline}
.bt-stage.is-lift .bt-lift{animation:bt-blink-svg .5s steps(2,jump-none) infinite}
@keyframes bt-blink-svg{50%{opacity:.35}}
.bt-note{fill:#ffc23d;font-size:8.2px;font-weight:800;text-anchor:middle}

/* controls: one dark console; every button the same color */
.bt-ask{margin:0;color:var(--ink);font-size:19px;line-height:1.25}
.bt-ask b{font-weight:800}
.bt-ask[hidden],.bt-controls[hidden]{display:none}
.bt-controls{display:grid;gap:12px;padding:14px;border-radius:16px;background:linear-gradient(180deg,#1e2130,var(--bt-console));box-shadow:0 18px 40px -28px rgb(0 0 0/.8),inset 0 1px 0 rgb(255 255 255/.07);color:#fff}
.bt-row{display:grid;gap:6px}
.bt-row-name{margin:0;color:#9ea6b8;font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.bt-seg{display:grid;gap:6px}
.bt-seg-design{grid-template-columns:repeat(3,minmax(0,1fr))}
.bt-seg-fill{grid-template-columns:repeat(2,minmax(0,1fr))}
.bt-drive{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-top:4px;border-top:1px solid rgb(255 255 255/.08)}
.bt-opt,.bt-act{display:flex;align-items:center;gap:8px;min-width:0;min-height:50px;padding:8px 10px;border:0;border-radius:12px;background:var(--bt-btn);box-shadow:inset 0 0 0 1.5px rgb(255 255 255/.16);color:#fff;font:inherit;font-size:14px;font-weight:800;line-height:1.2;cursor:pointer;transition:transform .12s,background .15s,box-shadow .15s,opacity .15s}
.bt-opt{flex-direction:column;align-items:flex-start;gap:6px;text-align:left}
.bt-act{justify-content:center;text-align:center;font-size:15px}
.bt-opt:hover:not(:disabled),.bt-act:hover:not(:disabled){background:var(--bt-btn-hover)}
.bt-opt:active,.bt-act:active{transform:translateY(1px)}
.bt-opt[aria-pressed="true"]{box-shadow:inset 0 0 0 2px var(--bt-warn)}
.bt-opt:disabled,.bt-act:disabled{cursor:not-allowed;opacity:.42}
.bt-opt:disabled[aria-pressed="true"]{opacity:.8}
.bt-opt:focus-visible,.bt-act:focus-visible{outline:3px solid var(--sbp-amber,#ffb400);outline-offset:3px}
.bt-opt-art{flex:none;width:40px;height:16px}
.bt-art-shell{fill:#c3cbd4;stroke:#eef2f6;stroke-width:.8}
.bt-art-liq{fill:#e99b1c}
.bt-art-milk{fill:#f6f1e4}
.bt-art-shine{fill:none;stroke:#fff;stroke-width:1.2;stroke-linecap:round}
.bt-art-wall{fill:none;stroke:#3a4250;stroke-width:1.8}
.bt-art-holes{stroke-dasharray:2.2 1.6}
.bt-art-gap{fill:none;stroke:#fff;stroke-width:.9;stroke-dasharray:2 1.6}
.bt-art-drop{fill:#e99b1c}
.bt-status{display:block;min-height:5.9em;padding:12px 14px 12px 16px;border-left:5px solid #9aa3b5;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}
.bt-status[data-tone="good"]{border-left-color:#1f9e63}
.bt-status[data-tone="warn"]{border-left-color:#e0a000}
.bt-status[data-tone="bad"]{border-left-color:#e2503a}

@media (min-width:761px){
  .bt-page .sbp-film-frame.is-wide{aspect-ratio:auto;padding-bottom:58px;background:#0b0d0f}
  .bt-page .sbp-film-frame.is-wide video{aspect-ratio:16/9;width:100%;height:auto}
  .bt-page .sbp-film-frame.is-wide .sbp-play{bottom:58px}
  .bt-page .sbp-film-frame.is-wide .sbp-sound-on{left:12px;right:auto;top:auto;bottom:10px}
  .bt-page .sbp-film-frame.is-wide .sbp-pause{right:12px;top:auto;bottom:10px}
}
@media (max-width:900px){
  .bt-demo-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "stage" "panel";gap:16px}
}
@media (max-width:760px){
  .bt-demo{padding-block:36px 44px}
  .bt-stage{margin-inline:-8px;padding:7px 6px 6px;border-radius:14px}
  .bt-svg{border-radius:8px}
  .bt-hud{gap:5px;padding-bottom:7px}
  .bt-outage-text,.bt-over-text,.bt-lift,.bt-shove-text{font-size:9.4px}
  .bt-note{font-size:9.6px}
  .bt-card-title{font-size:8.4px;letter-spacing:.1em}
  .bt-caption{font-size:8.8px;letter-spacing:.12em}
  .bt-gauge{padding:6px 7px}
  .bt-gauge-name,.bt-gauge small{font-size:9.5px;letter-spacing:.06em}
  .bt-gauge small{letter-spacing:0}
  .bt-gauge b{font-size:16px}
  .bt-panel{gap:10px}
  .bt-ask{font-size:17px}
  .bt-controls{gap:9px;margin-inline:-8px;padding:10px}
  .bt-row{gap:5px}
  .bt-row-name{font-size:10px}
  .bt-seg,.bt-drive{gap:6px}
  .bt-opt{min-height:46px;padding:7px 8px;font-size:13px;gap:5px}
  .bt-opt-art{width:32px;height:13px}
  .bt-act{min-height:46px;padding:7px 8px;font-size:14px}
  .bt-status{font-size:15px;min-height:4.4em}
}
@media (prefers-reduced-motion:reduce){
  .bt-stage.is-running .bt-gauge.is-bad b,.bt-stage[data-fill="over"] .bt-drip,.bt-stage.is-lift .bt-lift{animation:none}
  .bt-opt,.bt-act{transition:none}
}
