/* Wave 6 speed / per-country cheap pages (speed-pages-build.mjs, 18/11/2026). Loaded after hero-b.css and best-dc.css.
   On the speed pages the hero keeps hero B as it ships (copy, price, buttons, payment row) and its world map is replaced by
   the chart of the measured rows: one dot per request, one bar per country median. The lead moves under the h1 so the
   answer sits in the first screen. Everything is scoped under the hero id or .spd-*: no other page is touched. */
/* order: title, price and buttons, then the answer; the lead comes after the buttons so a late web-font swap in its lines
   moves nothing above it (layout shift budget 0.05), and the chart is pinned to the top of its column for the same reason */
#mhb.spd-hero .mhb-in,#rhb.spd-hero .rhb-in{grid-template-rows:auto auto auto minmax(0,1fr)}
#mhb.spd-hero .mhb-head,#rhb.spd-hero .rhb-head{grid-area:1/1/2/2}
#mhb.spd-hero .mhb-buy,#rhb.spd-hero .rhb-buy{grid-area:2/1/3/2}
#mhb.spd-hero .mhb-lead,#rhb.spd-hero .rhb-lead{grid-area:3/1/4/2;margin:22px 0 0;padding-right:20px;font-size:17px;line-height:1.55}
#mhb.spd-hero .spd-scene,#rhb.spd-hero .spd-scene{grid-area:1/2/5/3;min-width:0;margin:6px 0 0 12px;align-self:start;display:block}
/* a breadcrumb that wraps only once the web font arrives would push the whole first screen down: keep two lines' room */
@media (max-width:959px){#mhb.spd-page .mhb-crumbs,#rhb.spd-page .rhb-crumbs{min-height:2.7em;align-content:flex-start;flex-wrap:wrap}}
#mhb.spd-hero .mhb-lead strong,#rhb.spd-hero .rhb-lead strong{color:#fff;font-weight:600}

.spd-scene{--spd-ink:#C9D1E3;--spd-dim:#96A1BA;--spd-dot:#9CC4FF;--spd-med:#fff;--spd-grid:rgba(255,255,255,.12);padding:18px 18px 14px;border:1px solid rgba(255,255,255,.16);border-radius:20px;background:rgba(255,255,255,.03)}
.spd-scene .spd-cap{display:block;margin:0 0 8px}
.spd-scene .spd-cap b{display:block;font-size:16px;font-weight:600;color:#fff;letter-spacing:-.01em}
.spd-scene .spd-cap span{display:block;margin-top:4px;font-size:13.5px;line-height:1.45;color:var(--spd-dim)}
.spd-scene .spd-svg{display:block;width:100%;height:auto;aspect-ratio:var(--spd-ar,560/431);overflow:visible}
.spd-scene .spd-lab{fill:var(--spd-ink);font:500 15px/1 var(--font-body,'InterVar',system-ui,sans-serif)}
.spd-scene .spd-val{fill:#fff;font:600 12.5px/1 var(--font-body,'InterVar',system-ui,sans-serif)}
.spd-scene .spd-tick{fill:var(--spd-dim);font:500 13px/1 var(--font-body,'InterVar',system-ui,sans-serif)}
.spd-scene .spd-grid{stroke:var(--spd-grid);stroke-width:1}
.spd-scene .spd-dot{fill:var(--spd-dot);fill-opacity:.5;stroke:#000;stroke-width:.8}
.spd-scene .spd-dot.is-over{fill-opacity:.85}
.spd-scene .spd-dot:hover{fill-opacity:1;stroke:#fff}
.spd-scene .spd-med{fill:var(--spd-med)}
.spd-scene .spd-legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:8px 0 0;font-size:13px;color:var(--spd-dim)}
.spd-scene .spd-legend a{color:#fff;text-decoration:underline;text-underline-offset:3px;margin-left:auto;min-height:24px;display:inline-flex;align-items:center}
.spd-scene .spd-k-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--spd-dot);opacity:.7;margin-right:-8px}
.spd-scene .spd-k-med{display:inline-block;width:3px;height:12px;border-radius:2px;background:var(--spd-med);margin-right:-8px}
/* the rows arrive one after the other, the way the samples were taken; still frame = the full chart */
@media (prefers-reduced-motion:no-preference){
  .spd-scene .spd-row{animation:spd-in .5s ease-out both;animation-delay:calc(var(--i) * 60ms)}
  @keyframes spd-in{from{opacity:0;transform:translateX(-6px)}to{opacity:1;transform:none}}
}
.spd-table td b{font-variant-numeric:tabular-nums}
.spd-table td{font-variant-numeric:tabular-nums}

@media (max-width:959px){
  #mhb.spd-hero .mhb-head,#rhb.spd-hero .rhb-head{order:1}
  #mhb.spd-hero .mhb-buy,#rhb.spd-hero .rhb-buy{order:2}
  #mhb.spd-hero .mhb-lead,#rhb.spd-hero .rhb-lead{order:3;margin-top:20px;padding-right:0;font-size:16.5px}
  #mhb.spd-hero .spd-scene,#rhb.spd-hero .spd-scene{order:4;margin:22px 0 0;padding:14px 12px 12px}
  .spd-scene .spd-lab{font-size:19px}
  .spd-scene .spd-tick{font-size:17px}
  .spd-scene .spd-val{font-size:16px}
}
