/* Homepage hero: Delivery Scoreboard banner slide (since 2002, till date) — v9 */

/* ---------- light banner background ---------- */
.hhero .slide.ds-slide { overflow: hidden; background: radial-gradient(120% 90% at 50% 35%, #FFFFFF 0%, #FFF8F2 55%, #FFEBDC 100%); }
.hhero .slide.ds-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 0 18%, rgba(243, 112, 33, .07) 18% 30%, transparent 30% 100%); }
.ds-map { position: absolute; top: 4%; right: 3%; width: min(34vw, 460px); aspect-ratio: 792 / 876; opacity: .55; background: url(/assets/img/maps/trackon-india-network-light.svg?v=1) center / contain no-repeat; pointer-events: none; }
.ds-wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 28%; }
.hhero-shade { transition: opacity 1s ease; }
.hhero:has(.ds-slide.on) .hhero-shade { opacity: 0; }
.hhero:has(.ds-slide.on) .dots button { background: rgba(160, 160, 160, .75); }
.hhero:has(.ds-slide.on) .dots button.on { background: #F37021; }

/* ---------- centred content ---------- */
.hhero-copy { grid-template-columns: minmax(0, 1fr); }
.hcopy.ds-copy { min-width: 0; display: flex; justify-content: center; }
.ds { --cell: clamp(60px, 6.6vw, 112px); position: relative; width: 100%; max-width: 980px; margin: 0 auto; text-align: center; color: #1B1B1B; }
.ds > p, .ds > h2 { margin: 0; }
.ds-brand { display: flex; justify-content: center; align-items: center; font-family: var(--h, Montserrat, sans-serif); font-weight: 800; font-style: italic; font-size: clamp(40px, 4.6vw, 76px); letter-spacing: -.02em; line-height: 1; color: #1B1B1B; }
.ds-brand span { width: .5em; height: .2em; margin-right: -.1em; transform: translateY(-.34em) skewX(-22deg); background: #F37021; border-radius: 2px; }
.ds-pill { display: inline-block; margin-top: clamp(10px, 1.2vw, 18px) !important; padding: .2em 1.1em .26em; border-radius: 18px; background: linear-gradient(180deg, #FF8A3D, #F06418); color: #fff; font-family: var(--h, Montserrat, sans-serif); font-weight: 700; font-size: clamp(26px, 3.4vw, 54px); line-height: 1.15; box-shadow: 0 14px 28px -10px rgba(243, 112, 33, .75), inset 0 1px 0 rgba(255, 255, 255, .35); }
.ds-since { display: flex; align-items: center; gap: 18px; max-width: 720px; margin: clamp(10px, 1.1vw, 16px) auto 0 !important; font-family: var(--h, Montserrat, sans-serif); font-weight: 600; font-size: clamp(15px, 1.7vw, 26px); letter-spacing: .06em; text-transform: uppercase; color: #2A2A2A; }
.ds-since::before, .ds-since::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, transparent, #B5B5B5); }
.ds-since::after { background: linear-gradient(90deg, #B5B5B5, transparent); }

/* flip panel */
.ds-panel { position: relative; margin: clamp(14px, 1.6vw, 24px) auto 0; padding: clamp(8px, .9vw, 14px); width: max-content; max-width: 100%; border-radius: 20px; background: linear-gradient(180deg, #3A3A3A, #161616); box-shadow: -7px 0 0 #F37021, 7px 0 0 #F37021, 0 0 34px rgba(243, 112, 33, .5), 0 26px 40px -16px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .15); }
.ds-num { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 1.2vw, 18px); }
.ds-grp { display: flex; gap: 4px; padding: 5px; border-radius: 12px; background: #0E0E0E; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.fd { position: relative; display: block; width: calc(var(--cell) * .72); height: var(--cell); perspective: 500px; font-family: var(--h, Montserrat, sans-serif); font-weight: 800; font-size: calc(var(--cell) * .8); color: #fff; font-variant-numeric: tabular-nums; }
.fd > span { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fd > span b { display: block; height: var(--cell); line-height: var(--cell); text-align: center; }
.fd-t, .fd-ft { top: 0; border-radius: 7px 7px 0 0; background: linear-gradient(180deg, #3C3C3C, #2C2C2C); }
.fd-b, .fd-fb { bottom: 0; border-radius: 0 0 7px 7px; background: linear-gradient(180deg, #252525, #313131); }
.fd-b b, .fd-fb b { margin-top: calc(var(--cell) * -.5); }
.fd::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: #090909; z-index: 3; }
.fd::before { content: ""; position: absolute; z-index: 4; top: 50%; left: -3px; right: -3px; height: 10px; margin-top: -5px; background: radial-gradient(circle at 3px 50%, #5A5A5A 2.5px, transparent 3px), radial-gradient(circle at calc(100% - 3px) 50%, #5A5A5A 2.5px, transparent 3px); }
.fd-ft { z-index: 2; transform-origin: bottom; }
.fd-fb { z-index: 2; transform-origin: top; transform: rotateX(90deg); }
.fd.flip .fd-ft { animation: dsTop .3s ease-in forwards; }
.fd.flip .fd-fb { animation: dsBot .3s .3s ease-out forwards; }
@keyframes dsTop { to { transform: rotateX(-90deg); } }
@keyframes dsBot { to { transform: rotateX(0); } }

.ds-tag { margin-top: clamp(16px, 1.8vw, 28px) !important; font-family: var(--h, Montserrat, sans-serif); font-weight: 700; font-size: clamp(17px, 2.1vw, 34px); color: #1B1B1B; letter-spacing: 0; }
.ds-tag b { color: #F37021; font-weight: 700; }
.ds-under { display: block; width: min(420px, 60%); height: 18px; margin: 6px auto 0; }
.sb-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1024px) {
  .ds-map { width: 40vw; opacity: .4; }
}
@media (max-width: 600px) {
  .ds { --cell: 38px; }
  .ds-num { gap: 6px; }
  .ds-grp { gap: 2px; padding: 3px; border-radius: 8px; }
  .ds-panel { padding: 7px; border-radius: 14px; box-shadow: -5px 0 0 #F37021, 5px 0 0 #F37021, 0 0 24px rgba(243, 112, 33, .5); }
  .ds-since { gap: 10px; }
  .ds-map { width: 62vw; right: -12%; top: 2%; opacity: .35; }
  .ds-wave { height: 18%; }
}
@media (prefers-reduced-motion: reduce) {
  .fd.flip .fd-ft, .fd.flip .fd-fb { animation-duration: .01s; }
}
.hhero .slide.ds-slide::after { display: none !important; }
@media (max-width: 600px) { .ds .fd::before { display: none; } }

/* v11: no text shadows, site fonts only (wordmark keeps its logo styling) */
.ds, .ds * { text-shadow: none !important; }
.ds-pill, .ds-since, .ds-tag, .fd { font-family: var(--h, Montserrat, sans-serif); }

/* v12: on desktop the banner must not make the hero taller than it was (that left a maroon strip under the photos
   and pushed the track bar down). Take it out of flow and size it to the hero's own box. */
@media (min-width: 1025px) {
  .hhero:has(.ds-copy) .hhero-in { position: static; }
  .hhero:has(.ds-copy) .hhero-copy > .hcopy:not(.ds-copy) { position: relative; z-index: 2; }
  .hhero .hcopy.ds-copy { position: absolute; z-index: 2; left: 0; right: 0; top: 18px; bottom: 96px; container-type: size; align-items: center; align-self: stretch; justify-self: stretch; padding: 0 24px; }
  .ds { --cell: min(112px, 6.6vw, 20cqh); }
  .ds-brand { font-size: calc(var(--cell) * .68); }
  .ds-pill { font-size: calc(var(--cell) * .48); margin-top: calc(var(--cell) * .15) !important; border-radius: calc(var(--cell) * .16); }
  .ds-since { font-size: calc(var(--cell) * .23); margin-top: calc(var(--cell) * .13) !important; }
  .ds-panel { margin-top: calc(var(--cell) * .2); padding: calc(var(--cell) * .12); }
  .ds-tag { font-size: calc(var(--cell) * .3); margin-top: calc(var(--cell) * .24) !important; }
  .ds-under { height: calc(var(--cell) * .16); margin-top: 4px; }
}

/* ---------- v13: Delivery Scoreboard as a regular hero slide — text + flip counter on the left, India map SVG on the right ---------- */
.hhero .slide.dl-slide { overflow: hidden; background: radial-gradient(60% 90% at 74% 50%, rgba(243, 112, 33, .28), transparent 62%), linear-gradient(90deg, #9B2828 0%, #8E1B1E 34%, #5E1012 62%, #3A0809 100%); }
.hhero .slide.dl-slide::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.3px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 75%); mask-image: linear-gradient(90deg, transparent 30%, #000 75%); }
.dl-map { position: absolute; top: 50%; right: max(3%, calc((100% - var(--wrap, 1200px)) / 2)); height: 94%; aspect-ratio: 792 / 876; transform: translateY(-50%); pointer-events: none; filter: drop-shadow(0 0 30px rgba(243, 112, 33, .35)); }
.dl-map img { width: 100%; height: 100%; display: block; }

.hcopy.dl-copy .dl { --cell: clamp(40px, 3.6vw, 60px); max-width: 600px; }
.dl-since { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); font-family: var(--h); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #FFE3CC; }
.dl-since i { width: 8px; height: 8px; border-radius: 50%; background: #FF4B3E; animation: dlPulse 1.6s infinite; }
@keyframes dlPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 75, 62, .7); } 70% { box-shadow: 0 0 0 9px rgba(255, 75, 62, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 75, 62, 0); } }
.hcopy.dl-copy .htitle em { font-style: normal; color: #FF9A4D; }
.hcopy.dl-copy .ds-panel { margin: 4px 0 16px; padding: calc(var(--cell) * .14); border-radius: 16px; box-shadow: -5px 0 0 #F37021, 5px 0 0 #F37021, 0 0 28px rgba(243, 112, 33, .45), 0 20px 34px -14px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .15); }
.hcopy.dl-copy .ds-num { justify-content: flex-start; gap: calc(var(--cell) * .16); }
.hcopy.dl-copy .ds-grp { gap: 3px; padding: 4px; border-radius: 10px; }
.hcopy.dl-copy .fd::before { display: none; }
.hcopy.dl-copy .hsub { max-width: 440px; }
.hcopy.dl-copy .hsub b { color: #FFB27A; font-weight: 700; }

@media (max-width: 1024px) {
  .dl-map { height: auto; width: min(62vw, 420px); top: 4%; right: -6%; transform: none; opacity: .35; }
}
@media (max-width: 600px) {
  .hcopy.dl-copy .dl { --cell: 38px; }
  .hcopy.dl-copy .ds-num { gap: 6px; }
  .hcopy.dl-copy .ds-grp { gap: 2px; padding: 3px; border-radius: 8px; }
  .dl-map { width: 78vw; right: -18%; top: 2%; opacity: .3; }
}
@media (prefers-reduced-motion: reduce) { .dl-since i { animation: none; } }

/* v14: photo background like the other slides, bigger tagline, map nearer the centre, no buttons */
.hhero .slide.dl-slide { background: #3A0809; }
.hhero .slide.dl-slide > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hhero .slide.dl-slide::before { z-index: 1; background-image: none; -webkit-mask-image: none; mask-image: none; background: linear-gradient(90deg, rgba(155, 40, 40, .55) 0%, rgba(74, 12, 14, .35) 40%, rgba(30, 6, 8, .62) 70%, rgba(20, 4, 5, .75) 100%), radial-gradient(45% 70% at 66% 50%, rgba(20, 4, 5, .55), transparent 70%); }
.dl-map { z-index: 2; right: auto; left: 54%; transform: translate(-6%, -50%); height: 92%; }
.hcopy.dl-copy .hsub { max-width: 520px; font-size: clamp(18px, 1.55vw, 24px); line-height: 1.45; font-weight: 600; color: #fff; margin-top: 6px; }
@media (max-width: 1024px) { .dl-map { left: auto; right: -6%; transform: none; } }
@media (max-width: 600px) { .hcopy.dl-copy .hsub { font-size: 17px; } .dl-map { right: -18%; } }

/* v15: left copy — "Trackon" / "Live Delivery Scoreboard" / counter / tagline / "Since 2002" */
.hcopy.dl-copy .htitle .dl-brand { display: block; font-size: .62em; letter-spacing: .02em; color: #FFE3CC; margin-bottom: 4px; }
.hcopy.dl-copy .htitle em { display: block; }
.hcopy.dl-copy .ds-panel { margin: 14px 0 16px; }
.hcopy.dl-copy .dl-since { margin: 14px 0 0; }

/* v16: light sunrise background — light map in the open sky, no dark overlay on desktop */
.hhero .slide.dl-slide::before { background: radial-gradient(38% 55% at 58% 34%, rgba(255, 250, 244, .55), transparent 70%); }
.dl-map { left: 46%; top: 3%; height: 62%; transform: none; filter: drop-shadow(0 6px 18px rgba(201, 86, 26, .25)); }
@media (max-width: 1024px) {
  .hhero .slide.dl-slide::before { background: linear-gradient(180deg, rgba(155, 40, 40, .55) 0%, rgba(142, 27, 30, .82) 45%, rgba(94, 16, 18, .92) 100%); }
  .dl-map { left: auto; right: -6%; top: 3%; height: auto; width: min(62vw, 420px); opacity: .55; filter: none; }
}
@media (max-width: 600px) { .dl-map { right: -18%; width: 78vw; } }

/* v17: phones — keep the top of the photo bright, red only behind the text */
@media (max-width: 1024px) {
  .hhero .slide.dl-slide::before { background: linear-gradient(180deg, rgba(155, 40, 40, 0) 0%, rgba(155, 40, 40, .12) 28%, rgba(142, 27, 30, .82) 50%, rgba(120, 20, 22, .94) 100%); }
  .hhero:has(.dl-slide.on) .hhero-shade { opacity: .35; }
}

/* v18: light photo shown whole (no zoom-crop) and anchored right; solid Trackon red fills the left; bolder map in the sky */
@media (min-width: 1025px) {
  .hhero .slide.dl-slide { background: #9B2828; container-type: size; }
  .hhero .slide.dl-slide > picture img { left: auto; right: 0; width: auto; height: 100%; aspect-ratio: 1881 / 836; max-width: none; object-fit: cover; object-position: right bottom; }
  .hhero .slide.dl-slide::before { background: none; }
  .dl-map { left: calc(100% - 132cqh); right: auto; top: 3%; height: 58%; transform: none; filter: drop-shadow(0 0 1px rgba(255, 255, 255, .9)) drop-shadow(0 6px 16px rgba(194, 65, 12, .3)); }
}
@media (min-width: 1025px) {
  .hhero .slide.dl-slide > picture img { inset: 0 0 0 auto !important; left: auto !important; right: 0 !important; top: 0 !important; bottom: 0 !important; width: auto !important; height: 100% !important; max-width: none !important; aspect-ratio: 1881 / 836 !important; object-fit: cover !important; object-position: right bottom !important; }
}

@media (min-width: 1025px) { .dl-map { left: max(calc(100% - 132cqh), 51%); } }

/* v19: left copy reordered — headline / "Live Delivery Scoreboard | Since 1 January 2026" label / counter / tagline.
   The label is now the caption directly above the number instead of a footnote below it. */
.hcopy.dl-copy .htitle { margin-bottom: 0; }
.hcopy.dl-copy .dl-since { margin: 14px 0 0; }
.hcopy.dl-copy .dl-since span { opacity: .5; font-weight: 600; margin: 0 2px; }
.hcopy.dl-copy .ds-panel { margin: 8px 0 14px; }
@media (max-width: 600px) {
  /* too long for one line on a phone: drop the divider and let it read as two centred lines */
  .hcopy.dl-copy .dl-since { font-size: 10px; letter-spacing: .06em; padding: 6px 12px; gap: 7px; margin-top: 10px; line-height: 1.5; }
  .hcopy.dl-copy .dl-since i { width: 7px; height: 7px; flex: 0 0 auto; }
  .hcopy.dl-copy .dl-since span { display: none; }
}

/* v20: new full-width 1920x768 banner. The India map and the plane are part of the artwork now,
   so the separate SVG overlay is gone and the photo simply covers the slide — no right-anchoring,
   no red fill strip. Red sampled from the artwork itself so any crop edge is invisible. */
.hhero .slide.dl-slide { background: #5D0104; }
.hhero .slide.dl-slide::before { background: none; }
.hhero .slide.dl-slide > picture img { object-position: center; }
@media (min-width: 1025px) {
  /* The supplied artwork is 1920x768 (2.5:1) but the hero is wider than that, so a plain cover
     cropped the map and the plane off the top. Desktop is served a 3600x768 version whose left
     edge dissolves into the artwork's own red: it fills the slide edge to edge at any width,
     nothing is clipped and there is no seam. Anchored right so the truck never drifts. */
  .hhero .slide.dl-slide > picture img { inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; aspect-ratio: auto !important; object-fit: cover !important; object-position: right center !important; }
  /* short windows: scale the copy down instead of letting it overflow the hero */
  .hcopy.dl-copy .dl { --cell: clamp(34px, min(3.4vw, 7.2vh), 58px); }
  .hcopy.dl-copy .htitle { font-size: clamp(30px, min(3.1vw, 6.6vh), 52px); line-height: 1.1; }
  .hcopy.dl-copy .hsub { max-width: 600px; font-size: clamp(17px, min(1.5vw, 3vh), 23px); }
}
@media (max-width: 1024px) {
  /* artwork sits at the top, its own flat red runs behind the copy below it */
  .hhero .slide.dl-slide > picture img { object-position: center top; }
  .hhero .slide.dl-slide::before { background: linear-gradient(180deg, rgba(93, 1, 4, 0) 0%, rgba(93, 1, 4, 0) 38%, rgba(93, 1, 4, .6) 52%, rgba(93, 1, 4, .92) 66%, #5D0104 100%); }
  .hhero:has(.dl-slide.on) .hhero-shade { opacity: .15; }
}

/* ===== 2026-11-23: scoreboard hero - keep the scene clear of the copy (desktop) + fill the photo area (phone) ===== */
@media (min-width: 1025px) {
  .hhero .slide.dl-slide.dl-slide { background: rgb(93, 1, 5); }
  .hhero .slide.dl-slide.dl-slide > picture > img,
  .hhero .slide.dl-slide.dl-slide::before {
    --tl: max(76px, (100cqw - 1400px) / 2);                 /* left edge of .wrap */
    --tr: calc(var(--tl) + 590px);                          /* right edge of the widest copy line */
    --ih: min(100cqh, (100cqw - var(--tr) - 56px) / 1.64);  /* truck + boxes = right 35% of the 3600x768 art */
  }
  .hhero .slide.dl-slide.dl-slide > picture > img {
    inset: auto 0 0 auto !important;
    height: var(--ih) !important;
    width: auto !important;
    max-width: none !important;
    aspect-ratio: 3600 / 768 !important;
    object-fit: contain !important;
    object-position: right bottom !important;
    /* feather top + left edges so the art's lighter red melts into the flat background */
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 2.5%), linear-gradient(90deg, transparent 38%, #000 56%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(180deg, transparent 0, #000 2.5%), linear-gradient(90deg, transparent 38%, #000 56%);
    mask-composite: intersect;
  }
  .hhero .slide.dl-slide.dl-slide::before {
    content: ""; display: block; position: absolute; inset: 0; z-index: 1; mask-image: none;
    background: linear-gradient(90deg, rgb(93, 1, 5) 0, rgb(93, 1, 5) calc(var(--tr) - 160px), rgba(93, 1, 5, 0) calc(var(--tr) + 48px)) !important;
  }
}
@media (min-width: 1025px) and (max-width: 1100px) {
  .hhero .slide.dl-slide.dl-slide > picture > img,
  .hhero .slide.dl-slide.dl-slide::before { --tl: 20px; }
}
@media (max-width: 767px) {
  /* match the other slides: crisp full-width photo block, plain hero background below (no fades) */
  .hhero .slide.dl-slide.dl-slide { background: transparent; }
  .hhero .slide.dl-slide.dl-slide::before { display: none !important; }
  /* 720x1500 phone art: frame the map + plane + truck + boxes (rows ~150-640) inside the 3:2 photo block */
  .hhero .slide.dl-slide.dl-slide > picture > img { object-position: 50% 15% !important; mask-image: none !important; -webkit-mask-image: none !important; }
}

/* 2026-11-23c: phone - keep the "Live delivery scoreboard since 1 January 2026" pill on one line */
@media (max-width: 600px) {
  .hhero .hcopy.dl-copy .dl-since {
    white-space: nowrap;
    font-size: min(10px, 2.66vw);
    letter-spacing: .03em;
    padding: 6px 10px;
    max-width: 100%;
  }
}

/* 2026-11-23e: tablet / small laptop (768-1100) - stacked hero like phones: full 2.5:1 photo block on top, copy below on plain background.
   The art only has a text-safe zone in its left ~25%, so copy beside the photo always covered the trucks/people. */
@media (min-width: 768px) and (max-width: 1100px) {
  .hhero { --ph: calc((100vw - 15px) * .4); padding-top: 0 !important; min-height: 0 !important; align-items: flex-start !important; }
  .hhero .hhero-shade { display: none !important; }
  .hhero .slide:not(.fest) { background: transparent !important; }
  .hhero .slide:not(.fest)::before { display: none !important; }
  .hhero .slide.slide:not(.fest) > picture > img,
  .hhero .slide.slide:not(.fest) > img,
  .hhero .slide.dl-slide.dl-slide > picture > img {
    position: absolute !important; inset: 0 0 auto 0 !important;
    width: 100% !important; height: var(--ph) !important; max-width: none !important;
    aspect-ratio: auto !important; object-fit: cover !important; object-position: 50% 50% !important;
    -webkit-mask-image: none !important; mask-image: none !important;
  }
  .hhero .slide:not(.fest)::after {
    content: ""; display: block !important; position: absolute; left: 20px; top: var(--ph);
    width: 56px; height: 3px; border-radius: 0 0 3px 3px; background: var(--orange, #f37021);
  }
  .hhero .hhero-in { padding-top: calc(var(--ph) + 26px) !important; }
  .hhero-copy .htitle, .hhero-copy .hsub { text-shadow: none !important; }
  .hhero .hhero-copy { align-items: start !important; align-content: start !important; }
  .hhero .hhero-copy .hcopy { align-self: start !important; }
}

/* 2026-11-23f: tablets use the phone photos (no baked-in gradient) in a phone-shaped 3:2 block, capped so landscape tablets keep the copy in view */
@media (min-width: 768px) and (max-width: 1100px) {
  .hhero { --ph: calc((100vw - 15px) * .6667); }  /* fallback for browsers without cq units; children refine to 66.667cqw below */
  .hhero .slide.dl-slide.dl-slide > picture > img { object-position: 50% 50% !important; }
}
@media (min-width: 768px) and (max-width: 1100px) and (orientation: portrait) {
  /* portrait tablets get the 720x1500 phone art: frame the map + truck scene like on phones */
  .hhero .slide.dl-slide.dl-slide > picture > img { object-position: 50% 15% !important; }
}

/* 2026-11-23g: tablets - photo block is exactly 3:2 of the hero's real width, so the 1080x720 phone photos show uncropped */
@media (min-width: 768px) and (max-width: 1100px) {
  .hhero { container-type: inline-size; }
  @supports (width: 1cqw) { .hhero > * { --ph: 66.667cqw; } }
  /* scoreboard slide uses the 720x1500 phone art on all tablets: frame the map + truck scene like on phones */
  .hhero .slide.dl-slide.dl-slide > picture > img { object-position: 50% 15% !important; }
}

/* 2026-11-23h: phone - scoreboard pill: more right padding + width-scaled type so the text never touches the edge */
@media (max-width: 600px) {
  .hhero .hcopy.dl-copy .dl-since {
    font-size: clamp(8px, 2.5vw, 11px);
    letter-spacing: .03em;
    padding: 6px 14px 6px 12px;
  }
}

/* 2026-11-23k: desktop - lift the scoreboard scene above the Track bar (home.css pulls .tbar-wrap up 30px over the hero) so the boxes aren't covered */
@media (min-width: 1101px) {
  .hhero .slide.dl-slide.dl-slide > picture > img,
  .hhero .slide.dl-slide.dl-slide::before {
    --lift: 34px;
    --ih: min(100cqh - var(--lift) - 16px, (100cqw - var(--tr) - 56px) / 1.64);
  }
  .hhero .slide.dl-slide.dl-slide > picture > img { bottom: var(--lift) !important; }
}

/* 2026-11-23m: desktop - fill the space above the art with the art's own top-row colours (1px strip stretched, aligned to the image),
   so the background matches the image across its whole width instead of one flat red */
@media (min-width: 1101px) {
  .hhero .slide.dl-slide.dl-slide > picture {
    --tl: max(76px, (100cqw - 1400px) / 2);
    --tr: calc(var(--tl) + 590px);
    --lift: 34px;
    --ih: min(100cqh - var(--lift) - 16px, (100cqw - var(--tr) - 56px) / 1.64);
    position: absolute; inset: 0; display: block;
    background: url("../img/heroes/sb-network-wide-top.png?v=1") right top / calc(var(--ih) * 4.6875) 100% no-repeat;
  }
}
