/* Truck page animations: coverage map + fatal crash chart (HTML/SVG rebuild of the GIFs) */
.tmap{position:relative;width:100%;aspect-ratio:1080/608;border-radius:18px;overflow:hidden;border:1px solid #1e2742;background:#05070f;box-shadow:0 24px 64px rgba(0,0,0,.5)}
.tmap.narrow{aspect-ratio:780/600}
.tm-svg{display:block;width:100%;height:100%}
.tm-svg text{font-family:Inter,system-ui,sans-serif}
.tm-stars .tw{animation:tmTw 3.6s ease-in-out infinite}
@keyframes tmTw{0%,100%{opacity:.9}50%{opacity:.15}}
.tm-title .t1{font-family:"Playfair Display",Georgia,serif!important;font-weight:700;font-size:22.5px;fill:#fff}
.tm-title .t2{font-weight:600;font-size:8px;letter-spacing:.2em;fill:#60a5fa}
.tm-title .t3{stroke:#3b82f6;stroke-width:1.5}
.tm-base path{fill:#121a30;fill-opacity:.9;stroke:#3a4a7a;stroke-opacity:.6;stroke-width:.7}
.tm-cov path{fill:url(#tmCov);stroke:#9db9ff;stroke-opacity:.75;stroke-width:.7}
.tm-covline path{fill:none;stroke-linejoin:round}
.tm-covline .g{stroke:#6ff5bf;stroke-width:3.2;opacity:.75}
.tm-covline .c{stroke:#c3ffe0;stroke-width:1;opacity:.95}
.tm-nation{fill:none;stroke:#7aa7ff;stroke-width:1;stroke-opacity:.65}
.tm-nation-glow{fill:none;stroke:#3b82f6;stroke-width:7;opacity:.3}
.tm-labels text{font-size:8.6px;font-weight:700;fill:#fff;letter-spacing:.04em;text-anchor:middle;paint-order:stroke;stroke:#1a2b7a;stroke-width:2px}
.tm-lead{stroke:#cfe0ff;stroke-width:.7;opacity:.8}
.tm-crit .ring{fill:rgba(9,14,34,.82);stroke:#3b6be0;stroke-width:1.2}
.tm-crit .ring-g{fill:none;stroke:#3b82f6;stroke-width:2.5;opacity:.55}
.tm-crit .ic *{fill:none;stroke:#a9c6ff;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.tm-crit text{font-size:9.6px;font-weight:600}
.tm-crit .w{fill:#e9eefb}.tm-crit .b{fill:#60a5fa}
.tm-legend text{font-size:7.6px;font-weight:600;letter-spacing:.14em;fill:#94a3b8}
.tm-legend .lg1{fill:#3557e0;stroke:#9db9ff;stroke-width:.8}.tm-legend .lg2{fill:#141a2e;stroke:#3a4a78;stroke-width:.8}
.tm-chip rect{fill:#10172c;stroke:#2f3e6e;stroke-width:.8}
.tm-chip text{font-size:7px;font-weight:700;fill:#cdd8f6;text-anchor:middle;letter-spacing:.04em}
.tm-sweep{opacity:0}
/* animation states */
.tmap .tm-title,.tmap .tm-base,.tmap .tm-nation,.tmap .tm-nation-glow,.tmap .tm-cov path,.tmap .tm-labels,.tmap .tm-labels text,.tmap .tm-covline,.tmap .tm-crit,.tmap .tm-legend,.tmap .tm-chip{opacity:0;transition:opacity .6s ease,transform .6s ease;transform-box:fill-box}
.tmap .tm-title{transform:translateY(-6px)}
.tmap .tm-crit{transform:translateX(-10px)}
.tmap .tm-labels{opacity:1}
.tmap.a1 .tm-title{opacity:1;transform:none}
.tmap.a2 .tm-base,.tmap.a2 .tm-nation,.tmap.a2 .tm-nation-glow{opacity:1;transition-duration:.9s}
.tmap.a3 .tm-cov path{opacity:1;transition-delay:var(--d)}
.tmap.a3 .tm-labels text{opacity:1;transition-delay:var(--d)}
.tmap.a3 .tm-covline{opacity:1;transition-delay:2.1s;transition-duration:1s}
.tmap.a3 .tm-sweep{animation:tmSweep 2.6s ease-in-out forwards}
@keyframes tmSweep{0%{opacity:0;transform:translateX(300px)}12%{opacity:1}88%{opacity:1}100%{opacity:0;transform:translateX(1220px)}}
.tmap.a4 .tm-crit{opacity:1;transform:none;transition-delay:calc(var(--i) * .38s)}
.tmap.a5 .tm-legend{opacity:1}
.tmap.a5 .tm-chip{opacity:1;transition-delay:calc(var(--i) * .05s);transition-duration:.35s}
.tmap .tm-fg{transition:opacity .7s ease}
.tmap.out .tm-fg{opacity:0}
.tmap.reset *,.tchart.reset *{transition:none!important;animation:none!important}
/* narrow (phones): crop to the map, title above */
.tmap.narrow .tm-left,.tmap.narrow .tm-legend,.tmap.narrow .tm-chips{display:none}
.tmap.narrow .tm-title{translate:290px -86px}
.tmap.narrow .tm-title .t1{font-size:27px}
.tmap.narrow .tm-labels text{font-size:11px}

/* ---------- chart ---------- */
.tchart{margin:0;container-type:inline-size}
.tc-card{background:linear-gradient(180deg,#0f1628 0%,#0a0d17 55%);border:1px solid #1e2742;border-radius:20px;padding:40px 44px 30px;box-shadow:0 24px 64px rgba(0,0,0,.45)}
.tc-title{font-family:"Playfair Display",Georgia,serif;font-weight:700;font-size:clamp(24px,4.4cqw,42px);line-height:1.15;color:#fff;margin:0 0 12px;letter-spacing:-.01em}
.tc-blue{color:#3b82f6}
.tc-sub{color:#8a94ad;font-size:15px;line-height:1.55;margin:0 0 26px;max-width:46em}
.tc-cols{display:grid;grid-template-columns:1fr 1fr;gap:0 44px}
.tc-list{list-style:none;margin:0;padding:0}
.tc-row{display:grid;grid-template-columns:24px 1fr auto;grid-template-rows:auto 9px;column-gap:0;row-gap:6px;align-items:baseline;margin-bottom:15px}
.tc-rank{font-size:11px;color:#4b5672;font-variant-numeric:tabular-nums}
.tc-name{font-weight:600;color:#fff;font-size:15px}
.tc-nums{color:#8a94ad;font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap}
.tc-nums b{color:#22c55e;font-weight:700}
.tc-track{grid-column:2/4;height:7px;border-radius:5px;background:#141b2e;align-self:center;overflow:visible}
.tc-bar{display:block;height:100%;width:var(--w);border-radius:5px;background:linear-gradient(90deg,#2f5fe0,#5b8cff);box-shadow:0 0 12px rgba(59,130,246,.55);transition:width 1.1s cubic-bezier(.2,.8,.2,1)}
.tc-foot{border-top:1px solid #1e2742;margin-top:12px;padding-top:16px;font-size:12.5px;line-height:1.65;color:#6b7690}
.tc-foot em{font-style:italic}
/* chart animation states */
.tchart .tc-ch{opacity:0}
.tchart .tc-sub,.tchart .tc-foot{opacity:0;transition:opacity .7s ease}
.tchart .tc-row{opacity:0;transform:translateY(6px);transition:opacity .45s ease,transform .45s ease}
.tchart .tc-bar{width:0}
.tchart.c1 .tc-ch{opacity:1;transition:opacity .01s calc(var(--c) * 42ms)}
.tchart.c2 .tc-sub{opacity:1}
.tchart.c3 .tc-row{opacity:1;transform:none;transition-delay:calc(var(--i) * .2s)}
.tchart.c3 .tc-bar{width:var(--w);transition-delay:calc(var(--i) * .2s + .15s)}
.tchart.c4 .tc-foot{opacity:1}
.tchart .tc-card{transition:opacity .7s ease}
.tchart.out .tc-card{opacity:0}
@container (max-width:640px){
  .tc-cols{grid-template-columns:1fr}
  .tc-card{padding:26px 18px 22px}
  .tc-name{font-size:14px}.tc-nums{font-size:12.5px}
  .tc-row{--i:var(--j)}
}
@media (prefers-reduced-motion:reduce){.tm-stars .tw{animation:none}}
