/* Fix wave 2026-11-22, builder F2: heroes and hero cards (qa/full-2026-11-22/FIXES.md).
   Load order note: files load sorted by name, so zz-fold-*.css and zz-motion.css load
   AFTER this file. Rules that compete with zz-fold-heroes.css carry a higher specificity
   on purpose (for example .hero.hero--scene-below or a doubled class). The homepage hero
   (.hm-hero) and the Contact hero (.ct-hero) do not carry .hero and are untouched. */

/* ================================================================ Hyphenated words
   keep_hyphens() wraps words such as K-12 and check-in so a line never breaks at the hyphen. */
.hero .hl-nb { white-space: nowrap; }

/* ================================================================ Facts strip, phones
   Odd counts (3 facts) wrapped 2 + 1 with an orphaned full-width tile. Rule: an odd count
   stacks one tile per row, value left and label right, so no tile is ever left alone;
   even counts keep the 2-up tiles of the phone frames. */
@media (max-width: 767px) {
	.hero .hero__facts .facts:has(> .facts__item:last-child:nth-child(odd)) { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.hero .hero__facts .facts:has(> .facts__item:last-child:nth-child(odd)) > .facts__item {
		grid-column: auto; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px;
	}
	.hero .hero__facts .facts:has(> .facts__item:last-child:nth-child(odd)) .facts__v { white-space: nowrap; font-size: 16px; line-height: 22px; }
	.hero .hero__facts .facts:has(> .facts__item:last-child:nth-child(odd)) .facts__l { text-align: right; }
}

/* ================================================================ Key/value rows, small phones
   Scene rows (rows, map and person cards) squeezed the value column at 390 (B15-09, B5-04).
   At 480 and below every row stacks the label over the value, left aligned. */
@media (max-width: 480px) {
	.hero .scene__rows .scene__row { flex-direction: column; gap: 2px; }
	.hero .scene__rows .scene__row dt { flex: none; }
	.hero .scene__rows .scene__row dd { text-align: left; font-size: 15px; }
}

/* ================================================================ Index tiles with an identifier
   A single-token value over 9 characters (the UEI on B1-07) takes a full row on phones and
   never breaks inside the token; the remaining tiles pair up (hero-scene.php sets the spans). */
.hero .scene__tile.is-token .scene__tile-v { overflow-wrap: normal; word-break: keep-all; }
@media (max-width: 767px) {
	.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; }
}

/* ================================================================ Scene "below" with 5+ rows
   B13-03 ran 951px at 1440. Five or more rows now sit in two columns (column 1 reads first)
   in the 1000px wide card, with a hairline between the columns. 768 to 1023: label over value. */
@media (min-width: 768px) {
	.hero .scene__rows.hl-rows2 {
		position: relative; display: grid; grid-auto-flow: column;
		grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--half, 3), auto);
		column-gap: 40px;
	}
	.hero .scene__rows.hl-rows2::before {
		content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--ink-10);
	}
	.hero .scene__rows.hl-rows2 .scene__row.is-c2-top { padding-top: 0; border-top: 0; }
}
@media (min-width: 768px) and (max-width: 1023px) {
	.hero .scene__rows.hl-rows2 .scene__row { flex-direction: column; gap: 2px; }
	.hero .scene__rows.hl-rows2 .scene__row dd { text-align: left; }
}
@media (min-width: 1024px) {
	.hero.hero--scene-below .scene:has(.hl-rows2) { width: 1000px; }
	.hero.hero--scene-below:has(.hl-rows2) .hero__facts { width: 1000px; max-width: 100%; }
}

/* ================================================================ Centered heroes at 768
   The facts strip shrank to its content and wrapped "$150 to $250" (B13-03). It now spans
   the same width as the visual above it, as on B13-05 and B12-10. */
@media (min-width: 768px) and (max-width: 1023px) {
	.hero.hero--centered .hero__facts { align-self: stretch; width: 100%; max-width: 720px; margin-inline: auto; }
	.hero.hero--centered .hero__facts .facts__v { white-space: nowrap; }
}

/* ================================================================ Location map (scene/map.php)
   A minimal map of the DC metro area: Virginia and Maryland split by the Potomac, the DC
   diamond, a soft halo on the McLean office. Fixed 12:5 ratio so the HTML labels and pins,
   placed in percent of the 480x200 drawing, stay on their spot at every width. */
.hero .sb-map.sb-geo {
	height: auto; aspect-ratio: 12 / 5; border-radius: 14px;
	background: var(--grad-well); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9);
	isolation: isolate;
}
.sb-geo__svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.sb-geo__lab {
	position: absolute; z-index: 1; transform: translate(-50%, -50%); white-space: nowrap;
	font: var(--fw-medium) 12px/16px var(--f-body); letter-spacing: .06em; text-transform: uppercase;
	color: var(--ink-55);
}
.sb-geo__lab.is-on { color: var(--c-white); }
.sb-geo__lab--md { left: 82%; top: 24%; }
.sb-geo__lab--va { left: 15%; top: 80%; }
.sb-geo__lab--dc { left: 71.5%; top: 48%; transform: translate(0, -50%); color: var(--c-blue); }
.sb-geo .sb-map__pin { width: 14px; height: 14px; margin: -7px 0 0 -7px; }
.sb-geo .sb-map__pin--office { left: 40.83%; top: 43%; }
.sb-geo .sb-map__pin--bethesda { left: 54.58%; top: 20%; }
.sb-geo .sb-map__dot { border-radius: 50%; box-shadow: inset 0 0 0 2.5px var(--c-white), 0 2px 6px rgba(1, 14, 208, .35); }
.sb-geo .sb-map__pin.is-inv .sb-map__dot { box-shadow: inset 0 0 0 2.5px var(--c-blue), 0 2px 6px rgba(1, 14, 208, .35); }
.sb-geo__tag {
	position: absolute; z-index: 2; transform: translateX(-50%); margin-top: 12px;
	padding: 4px 10px; border-radius: 20px; white-space: nowrap;
	background: var(--c-white); box-shadow: var(--sh-soft);
	font: var(--fw-medium) 12px/16px var(--f-body); color: var(--c-ink);
}
.sb-geo__tag--office { left: 40.83%; top: 43%; }
.sb-geo__tag--bethesda { left: 54.58%; top: 20%; }
@media (min-width: 768px) {
	.hero .sb-map.sb-geo { border-radius: 18px; }
	.sb-geo__lab { font-size: 12px; }
	.sb-geo__tag { margin-top: 14px; padding: 5px 12px; font-size: 13px; line-height: 18px; }
}
/* The pin drop and pulse come from scene-bento.css; the label pill fades with the panel. */
.hero [data-scene="map"] .sb-geo__tag { animation: sb-fade 600ms var(--ease-out-quart) 760ms both; }

/* ================================================================ Person monogram (scene/person.php)
   No "portrait to be supplied" line: a finished monogram tile in the brand style stands in
   until a real portrait arrives. */
.hero .sb-person__disc.hl-mono {
	position: relative; overflow: hidden; width: 64px; height: 64px; border-radius: 18px;
	background: var(--grad-brand); box-shadow: var(--sh-blue);
	font: var(--fw-medium) 22px/1 var(--f-head); letter-spacing: -.02em;
}
.hero .sb-person__disc.hl-mono::before {
	content: ""; position: absolute; inset: 0; border-radius: inherit;
	background: radial-gradient(120% 90% at 18% 0%, rgba(255, 255, 255, .32), rgba(255, 255, 255, 0) 58%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}
@media (min-width: 768px) {
	.hero .sb-person__disc.hl-mono { width: 88px; height: 88px; border-radius: 24px; font-size: 30px; }
}

/* Scene "below" heroes show their facts as centered mini facts under the buttons on desktop
   (as every side scene hero does); the strip under the card stays for phones and tablets. */
@media (min-width: 1024px) {
	.hero.hero--centered .hero__copy .minifacts { justify-content: center; gap: 48px; padding-top: 4px; }
	.hero.hero--centered .hero__copy .minifacts__item { width: auto; align-items: center; text-align: center; }
}

/* center (and darkc) heroes: facts moved into the copy as mini facts (center.php), and the
   image card 920x400 to 920x360, so B3-04, B4-04 and B9-04 sit inside the 1440x900 fold. */
@media (min-width: 1024px) {
	.hero.hl.hero--center .imgcard--hero, .hero.hl.hero--darkc .imgcard--hero { aspect-ratio: 920 / 360; }
	/* Copy gap 24 to 20, as on the scene "below" heroes (B4-04 has a two-line sub). */
	.hero.hl.hero--centered .hero__copy { gap: 20px; }
}

/* QA round 2: mini facts in the hero copy use 160px items (design 172) and the 24px gap,
   so three fit the copy column at 1280 and up (3 x 172 + 48 ran 8px past it at 1440), and
   wrap to 2 + 1 at 1024 (B3-03, B8-05, B9-03 overflowed the viewport at 1024). */
@media (min-width: 1024px) {
	.hero .hero__copy .minifacts { flex-wrap: wrap; row-gap: 16px; align-self: stretch; max-width: 100%; }
	.hero .hero__copy .minifacts__item { flex: 0 1 160px; width: auto; min-width: 120px; }
}

/* ================================================================ QA round 2 (F2)
   Editorial hero at 768 to 1023: copy and image card sat flush (0px). Stack them with the
   24px gap the other hero variants use at this width. */
@media (min-width: 768px) and (max-width: 1023px) {
	.hero.hero--editorial .hero__row { display: flex; flex-direction: column; gap: 24px; }
}

/* Hero stats: one size per row, not per item (a long value set its own smaller size).
   Mini facts (desktop): 20px when any value is medium length, 18px when any is long.
   Facts strip: phones 16px when any value is long; 768 and up 21px when any is very long. */
@media (min-width: 1024px) {
	.hero .minifacts:has(.minifacts__v--m) .minifacts__v { font-size: 20px; }
	.hero .minifacts:has(.minifacts__v--s) .minifacts__v { font-size: 18px; line-height: 26px; }
}
@media (max-width: 767px) {
	.hero .hero__facts .facts:has(.is-mlong) .facts__v { font-size: 16px; line-height: 22px; }
}
@media (min-width: 768px) {
	.hero .hero__facts .facts:has(.is-long) .facts__v { font-size: 21px; }
}
