/* Final QA wave (X1, November 22): heroes and hero scenes. Loads after every other section file. */

/* ================================================================ 1. Identifier tiles (B1-07)
   At 1024 to 1279 the half-width tile is narrower than the 12-character UEI, which clipped.
   The identifier takes the full row there as it does on phones; the other tiles pair up. */
@media (min-width: 1024px) and (max-width: 1279px) {
	.hero .scene__tiles.hl-tiles-span { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hero .hero__visual .scene__tiles.hl-tiles-span > .scene__tile.scene__tile:nth-child(n):not(.is-span-m) { grid-column: auto; }
	.hero .hero__visual .scene__tiles.hl-tiles-span > .scene__tile.scene__tile.is-span-m:nth-child(n) { grid-column: 1 / -1; }
}

/* ================================================================ 2. Map pin label (B5-04, B6-01, B6-03, B6-04)
   From 1024 to 1279 the map card is 361 to 492px wide and "Washington, DC" ran past its edge
   (clipped up to 14px). The short "DC" label, already used on phones, shows in that range. */
@media (min-width: 1024px) and (max-width: 1279px) {
	.sb-geo__lab--dc .sb-d-only { display: none; }
	.sb-geo__lab--dc .sb-m-only { display: inline; }
}

/* ================================================================ 4. Hero mini facts, three in a row (B6-01, B6-06)
   At 1024 to 1279 the side copy column is 431 to 556px, so three 160px facts wrapped 2 + 1.
   Three facts now share one row with a 16px gap; a value never wraps or shrinks below its
   own width (identifiers stay whole), and the labels wrap under it. */
@media (min-width: 1024px) and (max-width: 1279px) {
	.hero .hero__copy .minifacts:has(> :nth-child(3):last-child) { flex-wrap: nowrap; column-gap: 16px; }
	.hero .hero__copy .minifacts:has(> :nth-child(3):last-child) > .minifacts__item { flex: 1 1 0; width: auto; min-width: min-content; }
	.hero .hero__copy .minifacts:has(> :nth-child(3):last-child) .minifacts__v { white-space: nowrap; }
}

/* ================================================================ 5. Centered hero reference note (B10-02, B10-06, B11-05, B12-01)
   The note filled the centered copy column and centered its text, so at 1024 and 768 it wrapped
   to a short centered last line with the icon pinned far left; at 1440 it hugged its text, so
   its width moved when the web font swapped in (B11-05 CLS 0.0011). It is now a fixed 720px box
   (font-independent width), centered, with icon and left-aligned, balanced text as one unit. */
@media (min-width: 768px) {
	.hero.hero--centered .hero__copy > .note {
		box-sizing: border-box; width: min(100%, 720px); max-width: 720px; align-self: center;
		margin-inline: auto; align-items: flex-start; text-align: left;
	}
	.hero.hero--centered .hero__copy > .note .ico { flex: none; }
	.hero.hero--centered .hero__copy > .note > span { flex: 1 1 auto; min-width: 0; text-align: left; text-wrap-style: balance; }
}

/* ================================================================ 6. Font-swap shifts in hero scene cards
   B6-07: a long index label ("Claim an audited certification") fit one line in the fallback
   font and two in Inter, so the card grew about 20px after the swap (CLS 0.004 to 0.008).
   hero-scene.php marks labels of 24+ and 28+ characters; they reserve two lines where the web
   font wraps them (24+ at 1024 to 1279, 28+ from 1280), which is the height they end at anyway. */
@media (min-width: 1024px) and (max-width: 1279px) {
	.hero .scene__tile.is-l24 .scene__tile-l { min-height: 2lh; }
}
@media (min-width: 1280px) {
	.hero .scene__tile.is-l28 .scene__tile-l { min-height: 2lh; }
}
/* B5-05: the projected savings value tweens ($0 to $151K) and changed width as digits came in.
   Tabular figures in a fixed, right-aligned box. */
[data-scene="sliders"] .scene__result b,
.scene__card .scene__result b { display: inline-block; min-width: 6ch; text-align: right; font-variant-numeric: tabular-nums; }

/* ================================================================ 7. Centered image heroes (B4-08) and the editorial tag (B4-06)
   B4-08 (darkc): the 920x360 card showed 56% of a tall vault render. The dark centered hero has
   fold room (755px at 1440), so its card is 920x450 and shows about 75% of the subject; hero
   stays under 900px. center.php also asks for a 920px image, so the 1536px source is used
   instead of an upscaled 800px one. The four light center heroes keep the fold ratio. */
@media (min-width: 1024px) {
	.hero.hl.hero--darkc .imgcard--hero { aspect-ratio: 920 / 450; }
	.hero.hl.hero--darkc .imgcard--hero img { object-position: 50% 40%; }
}
/* B4-06 (editorial) at 768 to 1279: the right tag sat at mid height over the image's blue
   handle. It moves to the bottom right corner, which is plain floor in these renders. */
@media (min-width: 768px) and (max-width: 1279px) {
	.hero.hero--editorial .imgcard--hero .ftag--mr { top: auto; bottom: 28px; }
}

/* ================================================================ 8. Index tiles, odd count in one row (B6-08)
   A "below" card sets one column per tile (--per). The phone rule that widens the last odd
   tile still matched on desktop, so three tiles showed as 2 + a full-width third with an
   empty slot. From 768 the tiles share one row; --per:2 cards keep their wide last tile. */
@media (min-width: 768px) {
	.hero .scene__tiles:not(.is-mlong):not([style*="--per:2"]) > .scene__tile:last-child:nth-child(odd) { grid-column: auto; }
}
