/* Proper-gear-before-downgrade explainer: "Drive the 6% downgrade", a twilight mountain grade seen from the side.
   Hero, film, course offer and return banner reuse spring-brakes.css (.sbp-*); this file styles only .gd-*.
   The stage's data-heat (cool, warm, fade) colors the brake drums and the heat gauge; data-braking lights the trailer's
   brake lights; the tag's data-tone colors the status tag in the scene's top right corner. The script moves the truck group by its
   transform attribute, so no rule here may transform .gd-truck or .gd-fx. */
.gd-page{--gd-ok:#31d67b;--gd-warn:#ffb400;--gd-bad:#ff5a3c;--gd-cool:#7d8aa0;--gd-console:#14171f}
.gd-page .sbp-hero-grid.is-no-film{grid-template-columns:minmax(0,1fr)}
.gd-demo{padding-block:64px 72px;background:var(--paper)}
.gd-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}
.gd-head{grid-area:head}
.gd-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)}
.gd-svg{display:block;width:100%;height:auto;border-radius:10px;background:#0d1330}
.gd-panel{grid-area:panel;display:grid;gap:14px}

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

/* the scene */
.gd-stars{fill:#fff6e8;opacity:.7}
.gd-moon{fill:#f6ead2;opacity:.9}
.gd-lit{fill:#9a6f8c;opacity:.5}
.gd-snow{fill:#f3dfe6;opacity:.8}
.gd-rock-edge{fill:none;stroke:#4c4870;stroke-width:1;opacity:.7}
.gd-edge{fill:none;stroke:#e9e7ef;stroke-width:1.3;opacity:.8}
.gd-edge-far{stroke-width:.9;opacity:.45}
.gd-dash{fill:none;stroke:#ffc23d;stroke-width:1.6;stroke-dasharray:7 6;opacity:.95}
.gd-rail{stroke:#3a404d;stroke-width:.5}
.gd-posts{fill:#4b5261}
.gd-vignette{pointer-events:none}
.gd-sign-post{fill:#8b93a3}
.gd-sign-face{fill:#ffc21a;stroke:#141414;stroke-width:1.3}
.gd-sign-ink{fill:#141414}
.gd-sign-plate{fill:#ffc21a;stroke:#141414;stroke-width:1}
.gd-sign-text{fill:#141414;font-size:8.4px;font-weight:900;text-anchor:middle;letter-spacing:.02em}

/* the truck */
.gd-shadow{fill:#000;opacity:.45}
.gd-beam{fill:url(#gd-g-beam)}
.gd-wind{fill:none;stroke:#dfe6ff;stroke-width:.9;stroke-linecap:round}
.gd-trailer{fill:url(#gd-g-trailer);stroke:#8d8471;stroke-width:.7}
.gd-ribs{fill:none;stroke:#cdc4b0;stroke-width:.7}
.gd-stripe{fill:#1f6f8b}
.gd-shine{fill:none;stroke:#fff;stroke-width:.8;opacity:.7}
.gd-tail{fill:#7a1d14;transition:fill .12s}
.gd-brake-glow{fill:url(#gd-g-brake);opacity:0;transition:opacity .12s}
.gd-stage[data-braking="on"] .gd-tail{fill:#ff4b33}
.gd-stage[data-braking="on"] .gd-brake-glow{opacity:1}
.gd-marker{fill:#ffb53a}
.gd-bogie,.gd-frame{fill:#23252e}
.gd-flap{fill:#111}
.gd-landing{fill:none;stroke:#585e6b;stroke-width:1.1}
.gd-stack{fill:url(#gd-g-chrome)}
.gd-cab{fill:url(#gd-g-cab);stroke:#5e1a0b;stroke-width:.6}
.gd-cab-low{fill:#6b200d;opacity:.55}
.gd-cab-shine{fill:none;stroke:#ffc2a0;stroke-width:.8;stroke-linecap:round;opacity:.8}
.gd-glass,.gd-window{fill:url(#gd-g-glass)}
.gd-glare{fill:#fff;opacity:.55}
.gd-seam{fill:none;stroke:#6f220e;stroke-width:.5}
.gd-handle{fill:#e9e2db}
.gd-mirror{fill:#1b1d24;stroke:#1b1d24;stroke-width:.6}
.gd-hood-line{fill:none;stroke:#ff9a6b;stroke-width:.6;opacity:.7}
.gd-grille,.gd-bumper,.gd-tank{fill:url(#gd-g-chrome)}
.gd-headlamp{fill:#fffbe8}
.gd-lamp-glow{fill:url(#gd-g-lamp)}
.gd-tire{fill:url(#gd-g-tire)}
.gd-drum{fill:var(--gd-cool);transition:fill .35s}
.gd-rim{fill:#c8ceda;stroke:#717887;stroke-width:.4}
.gd-lugs{fill:none;stroke:#5a6070;stroke-width:.6;stroke-linecap:round}
.gd-hub{fill:#3a3f4c}
.gd-glow{fill:url(#gd-g-heat);pointer-events:none}
.gd-stage[data-heat="warm"] .gd-truck .gd-drum{fill:#f0a020}
.gd-stage[data-heat="fade"] .gd-truck .gd-drum{fill:#ff4a26}
.gd-stage.is-running[data-heat="fade"] .gd-truck .gd-glow{animation:gd-throb .5s ease-in-out infinite alternate}
@keyframes gd-throb{to{fill-opacity:.65}}

/* heat haze and brake smoke: the script sets their opacity from the brake heat */
.gd-fx{pointer-events:none}
.gd-puff{fill:url(#gd-g-smoke);transform-box:fill-box;transform-origin:center}
.gd-shimmer{fill:none;stroke:#ffd9a8;stroke-width:.7;stroke-linecap:round;opacity:.55;transform-box:fill-box}
.gd-stage.is-running .gd-fx .gd-puff{animation:gd-rise 1.3s ease-out infinite}
.gd-stage.is-running .gd-fx .gd-puff:nth-child(2){animation-delay:-.45s}
.gd-stage.is-running .gd-fx .gd-puff:nth-child(3){animation-delay:-.9s}
.gd-stage.is-running .gd-fx .gd-shimmer{animation:gd-haze .4s ease-in-out infinite alternate}
@keyframes gd-rise{from{transform:translate(0,4px) scale(.6);opacity:.95}to{transform:translate(-5px,-9px) scale(1.5);opacity:0}}
@keyframes gd-haze{from{transform:translateX(-.6px) scaleY(.9)}to{transform:translateX(.6px) scaleY(1.08)}}

/* the tag over the truck */
.gd-tag,.gd-ghost-tag{font-size:10.5px;font-weight:800;text-anchor:middle;paint-order:stroke;stroke:#0b0d16;stroke-width:3.2px;stroke-linejoin:round}
.gd-tag{fill:#eef0f6}
.gd-stage.is-js .gd-tag{font-size:13px;text-anchor:end;stroke-width:4px}
.gd-tag[data-tone="good"],.gd-stage.is-static .gd-tag{fill:var(--gd-ok)}
.gd-tag[data-tone="warn"]{fill:var(--gd-warn)}
.gd-tag[data-tone="bad"]{fill:#ff8a70}
.gd-ghost-tag{fill:#ff8a70}

/* without script: the outline of a high-gear truck further down, brakes glowing */
.gd-ghost,.gd-ghost-tag{display:none}
.gd-stage.is-static .gd-ghost,.gd-stage.is-static .gd-ghost-tag{display:inline}
.gd-ghost-body{fill:rgb(255 90 60/.1);stroke:#ff8a70;stroke-width:1.1;stroke-dasharray:3 2}
.gd-ghost .gd-drum{fill:#ff4a26}
.gd-ghost-smoke .gd-shimmer{opacity:.4}

/* controls: one dark console for rig, gear and the drive */
.gd-ask{margin:0;color:var(--ink);font-size:19px;line-height:1.25}
.gd-ask b{font-weight:800}
.gd-ask[hidden],.gd-controls[hidden]{display:none}
.gd-controls{display:grid;gap:12px;padding:14px;border-radius:16px;background:linear-gradient(180deg,#1e2130,var(--gd-console));box-shadow:0 18px 40px -28px rgb(0 0 0/.8),inset 0 1px 0 rgb(255 255 255/.07);color:#eceef4}
.gd-row{display:grid;gap:6px}
.gd-row-name{margin:0;color:#9ea6b8;font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.gd-seg{display:grid;gap:6px}
.gd-seg-rig{grid-template-columns:repeat(2,minmax(0,1fr))}
.gd-seg-gear{grid-template-columns:repeat(3,minmax(0,1fr))}
.gd-opt{position:relative;display:flex;align-items:center;gap:8px;min-width:0;min-height:48px;padding:8px 10px;border:0;border-radius:10px;background:linear-gradient(180deg,#2a2e3e,#1a1d28);box-shadow:inset 0 1px 0 rgb(255 255 255/.09),0 3px 0 #07080c,0 4px 10px -4px rgb(0 0 0/.6);color:#eceef4;font:inherit;font-size:14px;font-weight:700;line-height:1.2;text-align:left;cursor:pointer;transition:transform .12s,box-shadow .12s,background .15s}
.gd-opt:hover{background:linear-gradient(180deg,#323748,#1e2230)}
.gd-opt:active{transform:translateY(2px);box-shadow:inset 0 1px 0 rgb(255 255 255/.06),0 1px 0 #07080c}
.gd-opt[aria-pressed="true"]{transform:translateY(2px);background:linear-gradient(180deg,#3a3420,#252113);box-shadow:inset 0 0 0 2px var(--gd-warn),0 1px 0 #07080c}
.gd-opt:disabled{cursor:not-allowed;opacity:.5}
.gd-opt:disabled[aria-pressed="true"]{opacity:.85}
.gd-opt-art{flex:none;width:40px;height:16px}
.gd-opt-art .gd-art-box{fill:#e9e1cf}
.gd-opt-art .gd-art-cab{fill:#e0592b}
.gd-opt-art .gd-art-skirt{fill:none;stroke:#e9e1cf;stroke-width:1.6;stroke-linecap:round}
.gd-opt-art circle{fill:#0b0c11;stroke:#9ea6b8;stroke-width:.9}
.gd-gear{flex-direction:column;align-items:flex-start;gap:5px;min-height:62px;padding:8px 9px}
.gd-gear i{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#5c6378,#1b1e29 70%);box-shadow:0 0 0 1.5px #0a0b10,inset 0 1px 0 rgb(255 255 255/.25);color:#fff;font-style:normal;font-size:13px;font-weight:900}
.gd-gear[data-gd-gear="3"] i{box-shadow:0 0 0 1.5px #0a0b10,0 0 0 3px rgb(49 214 123/.5)}
.gd-gear[data-gd-gear="7"] i{box-shadow:0 0 0 1.5px #0a0b10,0 0 0 3px rgb(255 90 60/.45)}
.gd-gear[aria-pressed="true"] i{background:radial-gradient(circle at 35% 30%,#ffe08a,#e39a00 70%);color:#1a1405}
.gd-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)}
.gd-act{display:flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:8px 12px;border:0;border-radius:12px;background:#0b0d14;box-shadow:inset 0 0 0 1.5px rgb(255 255 255/.16);color:#fff;font:inherit;font-size:15px;font-weight:800;line-height:1.15;text-align:center;cursor:pointer;transition:transform .12s,background .15s,opacity .15s}
.gd-act:active{transform:translateY(1px)}
.gd-act:disabled{cursor:not-allowed;opacity:.38}
.gd-act-go{background:linear-gradient(180deg,#ffcc3d,#f0a400);box-shadow:0 3px 0 #a86f00,0 8px 18px -8px rgb(255 180 0/.7);color:#1a1405}
.gd-act-go::before{content:"";flex:none;width:0;height:0;border-block:6px solid transparent;border-left:9px solid currentColor}
.gd-act-go:hover:not(:disabled){background:linear-gradient(180deg,#ffd75e,#f5ad12)}
.gd-act-reset{font-weight:700;color:#cfd4e0}
.gd-act-reset::before{content:"";flex:none;width:9px;height:9px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%}
.gd-act-shift{background:linear-gradient(180deg,#252a3a,#161925);box-shadow:inset 0 0 0 1.5px rgb(110 210 255/.45)}
.gd-act-brake{background:linear-gradient(180deg,#3a1d19,#24110e);box-shadow:inset 0 0 0 1.5px rgb(255 90 60/.55)}
.gd-act-shift:hover:not(:disabled){background:linear-gradient(180deg,#2d3346,#1b1f2d)}
.gd-act-brake:hover:not(:disabled){background:linear-gradient(180deg,#45221d,#2b1410)}
.gd-opt:focus-visible,.gd-act:focus-visible{outline:3px solid var(--sbp-amber,#ffb400);outline-offset:3px}
.gd-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}
.gd-status[data-tone="good"]{border-left-color:#1f9e63}
.gd-status[data-tone="warn"]{border-left-color:#e0a000}
.gd-status[data-tone="bad"]{border-left-color:#e2503a}

@media (min-width:761px){
  .gd-page .sbp-film-frame.is-wide{aspect-ratio:auto;padding-bottom:58px;background:#0b0d0f}
  .gd-page .sbp-film-frame.is-wide video{aspect-ratio:16/9;width:100%;height:auto}
  .gd-page .sbp-film-frame.is-wide .sbp-play{bottom:58px}
  .gd-page .sbp-film-frame.is-wide .sbp-sound-on{left:12px;right:auto;top:auto;bottom:10px}
  .gd-page .sbp-film-frame.is-wide .sbp-pause{right:12px;top:auto;bottom:10px}
}
@media (max-width:900px){
  .gd-demo-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "stage" "panel";gap:16px}
}
@media (max-width:760px){
  .gd-demo{padding-block:36px 44px}
  .gd-stage{margin-inline:-8px;padding:7px 6px 6px;border-radius:14px}
  .gd-svg{border-radius:8px}
  .gd-hud{gap:5px;padding-bottom:7px}
  .gd-gauge{padding:6px 7px 6px}
  .gd-gauge-name,.gd-gauge small{font-size:9.5px;letter-spacing:.08em}
  .gd-gauge small{letter-spacing:0}
  .gd-gauge b{font-size:16px}
  .gd-panel{gap:10px}
  .gd-ask{font-size:17px}
  .gd-controls{gap:9px;margin-inline:-8px;padding:10px}
  .gd-row{gap:5px}
  .gd-row-name{font-size:10px}
  .gd-seg,.gd-drive{gap:6px}
  .gd-opt{min-height:44px;padding:7px 8px;font-size:13px;gap:6px}
  .gd-opt-art{width:32px;height:13px}
  .gd-gear{min-height:56px;gap:4px}
  .gd-gear i{width:21px;height:21px;font-size:12px}
  .gd-act{min-height:46px;padding:7px 8px;font-size:14px}
  .gd-status{font-size:15px;min-height:4.4em}
}
@media (prefers-reduced-motion:reduce){
  .gd-stage.is-running .gd-fx .gd-puff,.gd-stage.is-running .gd-fx .gd-shimmer,.gd-stage.is-running .gd-truck .gd-glow,.gd-stage.is-running .gd-gauge.is-bad b{animation:none}
  .gd-opt,.gd-act{transition:none}
}
