/*
 * Shop page and listings (docs/SHOP-PAGE.md). Markup: hrd-core's hrd/fitment-bar,
 * hrd/shop-grid and hrd/product-grid blocks.
 *   - .hrd-bar: Shopify's HRD collection hero, values from its fitment.css (§2.2);
 *   - .hrd-shop: direction F (§4.13): ink page, numbered index, HRD's vehicle
 *     tiles measured against HRD's master (two lines ≈21% of the tile, the slash
 *     bar 28% × 5.8% overlapping the baseline by ≈1.6%).
 * Motion (§4.14) runs only under the classes view.js sets for the moment it
 * runs (.is-leaving / .is-entered, .is-opening / .is-run), so nothing animates on
 * load or across a breakpoint; and never under reduced motion.
 */

.wp-site-blocks > .hrd-shop-page,
.wp-site-blocks > .hrd-listing { margin-block-start: 0; }
.hrd-shop-page.is-layout-flow > *,
.hrd-listing.is-layout-flow > * { margin-block: 0; }
.hrd-shop-page.is-layout-flow > .hrd-bar,
.hrd-listing.is-layout-flow > .hrd-bar { margin-bottom: clamp(28px, 3.5vw, 48px); } /* Shopify's gap under the hero (the reset above would zero it) */
.hrd-shop-page,
.hrd-listing { --ink: var(--wp--preset--color--ink); --sky: var(--wp--preset--color--sky); --sky45: rgba(145, 210, 255, 0.45); --band: #100E28; letter-spacing: -0.025em; line-height: 1.3; }
.hrd-shop-page { background: var(--ink); color: #fff; }
.hrd-shop-page :where(p, h1, h2, ol, ul),
.hrd-listing :where(p, h1, h2, ol, ul) { margin: 0; }
.hrd-shop-page .hrd-micro,
.hrd-listing .hrd-micro { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; line-height: 1.3; }

/* ---------- Fitment bar (Shopify .fitment-bar) ---------- */
.hrd-bar {
	--arrow: clamp(38px, 3.8vw, 58px);
	position: relative;
	overflow: hidden;
	padding: calc(var(--arrow) + 14px) var(--hrd-edge);
	margin: 0 0 clamp(28px, 3.5vw, 48px);
	background: var(--ink);
	color: #fff;
}
.hrd-bar__inner { position: relative; z-index: 2; }
@media (min-width: 1300px) { .hrd-bar__inner { padding-right: 684px; } } /* 676px copy column, as Shopify's */
.hrd-bar__arrow { position: absolute; z-index: 3; width: var(--arrow); height: var(--arrow); color: #fff; pointer-events: none; }
.hrd-bar__arrow svg { display: block; width: 100%; height: 100%; }
.hrd-bar__arrow--tl { top: 16px; left: 16px; }
.hrd-bar__arrow--tr { top: 16px; right: 16px; transform: rotate(90deg); }
.hrd-bar__arrow--br { right: 16px; bottom: 16px; transform: rotate(180deg); }
.hrd-bar__arrow--bl { left: 16px; bottom: 16px; transform: rotate(270deg); }
.hrd-bar__car {
	position: absolute;
	right: 76px;
	bottom: -135px;
	z-index: 1;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6.5%, #000 91%, transparent 100%);
	mask-image: linear-gradient(to right, transparent 0%, #000 6.5%, #000 91%, transparent 100%);
}
.hrd-bar__car img {
	display: block;
	width: auto;
	height: 429px;
	-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 48px);
	mask-image: linear-gradient(to bottom, transparent 0, #000 48px);
}
.hrd-bar__title { margin: 0 0 14px; font-size: clamp(32px, 5vw, 64px); font-weight: 700; line-height: 0.95; letter-spacing: -0.01em; text-transform: uppercase; text-wrap: balance; color: #fff; }
.hrd-bar__sub { margin: -2px 0 14px; color: rgba(255, 255, 255, 0.75); }
.hrd-bar__count { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; color: rgba(255, 255, 255, 0.75); }
.hrd-bar .hrd-slashes { --hz: 16px; color: var(--sky); flex: none; }
.hrd-bar__line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; font-size: 14px; }
.hrd-bar__line strong { color: var(--sky); font-weight: 700; }
.hrd-bar__btn {
	min-height: 44px;
	padding: 12px 0;
	background: none;
	border: 0;
	color: #fff;
	font: inherit;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
a.hrd-bar__btn { display: inline-flex; align-items: center; }
.hrd-bar__btn.is-dim { color: rgba(255, 255, 255, 0.7); }
.hrd-bar__btn:hover,
.hrd-bar__btn:focus-visible { color: var(--sky); text-decoration-thickness: 2px; }
.hrd-bar :focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.hrd-bar__jump { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 9px; margin-top: 12px; } /* Shopify spaces 18px; 9 keeps all nine makes on one line in the 676px column */
.hrd-bar__jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; color: rgba(255, 255, 255, 0.75); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; }
.hrd-bar__jump a:hover,
.hrd-bar__jump a:focus-visible { color: var(--sky); text-decoration: underline; text-underline-offset: 4px; }
.hrd-bar__jump a[hidden] { display: none; }
.hrd-bar__jump a:not([hidden]) ~ a:not([hidden])::before { content: "/"; margin-right: 9px; color: rgba(255, 255, 255, 0.35); text-decoration: none; display: inline-block; }
.hrd-bar .hrd-dot { font-size: 1.4em; line-height: 0; vertical-align: -0.05em; }

/* Shop: the toggle words are the headline (stacked; each keeps the slash slot, so switching never shifts the second word). */
.hrd-bar__tabs { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0 0 18px; }
.hrd-bar__tab {
	position: relative;
	padding-bottom: 28px;
	color: rgba(255, 255, 255, 0.45);
	font-size: clamp(32px, 5vw, 64px);
	font-weight: 700;
	line-height: 0.95;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	text-decoration: none;
}
.hrd-bar__tab:hover { color: rgba(255, 255, 255, 0.8); }
.hrd-bar__tab[aria-current] { color: #fff; }
.hrd-bar__tab[aria-current]::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	--hz: 16px;
	width: calc(var(--hz) * 5.3);
	height: var(--hz);
	background: repeating-linear-gradient(55deg, var(--sky) 0 calc(var(--hz) * 0.33), transparent calc(var(--hz) * 0.33) calc(var(--hz) * 0.56));
}
.hrd-bar__meta { margin: 0 0 18px; color: rgba(255, 255, 255, 0.75); }
.hrd-bar__meta [hidden] { display: none; }

@media (max-width: 1299px) {
	.hrd-bar { padding-bottom: calc(min(42.8%, 223px) + 8px); }
	.hrd-bar__car { right: auto; left: 50%; bottom: 0; width: min(100%, 520px); transform: translate(-50%, 31.47%); }
	.hrd-bar__car img { width: 100%; height: auto; }
	.hrd-bar__arrow--bl,
	.hrd-bar__arrow--br { display: none; }
}
@media (max-width: 768px) {
	.hrd-bar { padding-top: 24px; padding-inline: var(--hrd-edge); }
	.hrd-shop-page.is-layout-flow > .hrd-bar,
	.hrd-listing.is-layout-flow > .hrd-bar { margin-bottom: 30px; }
	.hrd-bar__arrow { display: none; }
	.hrd-bar__title { margin-bottom: 10px; font-size: 30px; }
	.hrd-bar__tab { font-size: 34px; padding-bottom: 22px; }
	.hrd-bar__tab[aria-current]::after { --hz: 12px; }
	.hrd-bar .hrd-slashes { --hz: 14px; }
	.hrd-bar__count { margin-bottom: 16px; }
	.hrd-bar__jump a:not([hidden]) ~ a:not([hidden])::before { content: none; } /* wraps on phone; no separator at a line start */
	.hrd-bar__jump { gap: 0 22px; margin-top: 0; }
}

/* ---------- Shop body: index + tiles (direction F) ---------- */
.hrd-shop { padding: 0 var(--hrd-edge) 96px; }
.hrd-shop__view { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; }
.hrd-shop__view[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
	.hrd-shop__view.is-leaving { opacity: 0; transition: opacity 0.18s var(--wp--custom--ease-out); }
	.hrd-shop__view.is-entering { opacity: 0; }
	.hrd-shop__view.is-entered { transition: opacity 0.18s var(--wp--custom--ease-out); }
}
.hrd-index { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--hrd-head) + 24px); align-self: start; }
.hrd-index__k { margin: 0 0 12px; color: rgba(255, 255, 255, 0.6); }
.hrd-index ol { list-style: none; margin: 0; padding: 0; }
.hrd-index a {
	display: grid;
	grid-template-columns: 30px 1fr auto;
	align-items: baseline;
	padding: 2px 0;
	color: rgba(255, 255, 255, 0.45);
	font-size: 34px;
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.035em;
	text-decoration: none;
}
.hrd-index__n,
.hrd-index__c { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; }
.hrd-index a:not(.is-on) :is(.hrd-index__n, .hrd-index__c) { color: rgba(255, 255, 255, 0.6); } /* small text: 60% keeps 4.5:1 on ink (45% is for the 34px names, a large-text 3:1) */
.hrd-index__c { text-align: right; }
.hrd-index a:hover { color: rgba(255, 255, 255, 0.8); }
.hrd-index a.is-on { color: #fff; }
.hrd-index a.is-on .hrd-index__n { color: var(--sky); }
.hrd-index a:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.hrd-shop__group { scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--hrd-head) + 24px); }
.hrd-shop__group + .hrd-shop__group { margin-top: 40px; }
.hrd-shop__gh { display: flex; gap: 10px; margin: 0 0 12px; font-size: inherit; color: #fff; }
.hrd-shop__gc { color: rgba(255, 255, 255, 0.6); }
.hrd-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
[id^="family-"] { scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--hrd-head) + 24px); }

/* The tile: HRD's vehicle-filter tile */
.hrd-tile { position: relative; aspect-ratio: 1; container-type: inline-size; background: var(--band); }
.hrd-tile.is-car { box-shadow: inset 0 0 0 1px var(--sky); }
.hrd-tile__face {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	background: none;
	border: 0;
	border-radius: 0;
	color: #fff;
	font: inherit;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}
.hrd-tile__face:focus-visible { outline: 2px solid var(--sky); outline-offset: -2px; }
.hrd-tile__type { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hrd-tile__name { position: relative; z-index: 1; font-size: calc(var(--fs, 13.4) * 1cqi); font-weight: 700; line-height: 0.84; letter-spacing: -0.04em; text-transform: uppercase; }
.hrd-tile__name span { display: block; }
.hrd-tile__bar { --hz: 5.8cqi; display: block; width: 28cqi; height: var(--hz); margin-top: -2.2cqi; background: repeating-linear-gradient(55deg, var(--sky) 0 calc(var(--hz) * 0.33), transparent calc(var(--hz) * 0.33) calc(var(--hz) * 0.56)); }
.hrd-tile__foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 0 5.4cqi 4.6cqi; color: rgba(255, 255, 255, 0.6); text-align: left; }
.hrd-tile .hrd-tile__foot .hrd-micro { font-size: max(9px, 3.1cqi); }
.hrd-tile__foot .hrd-micro:last-child { white-space: nowrap; }
.hrd-tile__mark,
.hrd-tile__family { position: absolute; top: 4.6cqi; left: 5.4cqi; display: flex; align-items: center; gap: 6px; }
.hrd-tile__mark { color: var(--sky); }
.hrd-tile__mark[hidden] { display: none; }
.hrd-tile__mark i { width: 7px; height: 7px; border-radius: 50%; background: var(--sky); }
.hrd-tile__family { color: rgba(255, 255, 255, 0.6); }
.hrd-tile__go { position: absolute; top: 4.2cqi; right: 4.2cqi; width: 7cqi; height: 7cqi; color: var(--sky); transform: rotate(90deg); opacity: 0; }
.hrd-tile__go svg { display: block; width: 100%; height: 100%; }
.hrd-tile__face:hover .hrd-tile__go,
.hrd-tile__face:focus-visible .hrd-tile__go { opacity: 1; }

/* Open: the generation buttons, in the tile's own square */
.hrd-tile__gens { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; padding: 4.6cqi 5.4cqi 5.4cqi; background: var(--band); box-shadow: inset 0 0 0 1px var(--sky45); }
.hrd-tile__gens[hidden] { display: none; }
.hrd-tile.is-open .hrd-tile__face { visibility: hidden; }
.hrd-tile__head { display: flex; justify-content: space-between; align-items: center; min-height: 44px; margin: -4px 0 4px; color: rgba(255, 255, 255, 0.75); }
.hrd-tile__x { width: 44px; height: 44px; margin-right: -12px; padding: 0; background: none; border: 0; color: #fff; font: inherit; font-size: 26px; line-height: 1; cursor: pointer; }
.hrd-tile__x:focus-visible { outline: 2px solid var(--sky); outline-offset: -4px; }
.hrd-gens { flex: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 8px; }
.hrd-gens.is-list { grid-template-columns: 1fr; }
.hrd-gens li { display: flex; min-width: 0; }
.hrd-gen {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	gap: 6px;
	min-height: 44px;
	padding: 12px 14px;
	box-shadow: inset 0 0 0 1px var(--sky45);
	color: #fff;
	text-decoration: none;
}
.hrd-gen:hover { box-shadow: inset 0 0 0 1px var(--sky); }
.hrd-gen:focus-visible { outline: 2px solid var(--sky); outline-offset: -2px; }
.hrd-gen__code { font-size: min(34px, 10cqi); font-weight: 700; line-height: 0.95; letter-spacing: -0.03em; }
.hrd-gen__code.is-years { font-size: min(22px, 6.5cqi); }
.hrd-gen__meta { display: flex; flex-direction: column; gap: 2px; color: rgba(255, 255, 255, 0.75); }
.hrd-gen__meta [hidden] { display: none; }
.hrd-gen__go { position: absolute; top: 10px; right: 10px; width: 12px; height: 12px; transform: rotate(90deg); }
.hrd-gen__go svg { display: block; width: 100%; height: 100%; }
.hrd-gens.is-list .hrd-gen { flex-direction: row; align-items: center; justify-content: space-between; padding: 0 14px; }
.hrd-gens.is-list .hrd-gen__code { font-size: 22px; }
.hrd-gens.is-list .hrd-gen__meta { flex-direction: row; gap: 10px; margin-left: auto; }
.hrd-gens.is-list .hrd-gen__go { position: static; margin-left: 12px; }
.hrd-gen.is-car { background: var(--sky); box-shadow: none; color: var(--ink); }
.hrd-gen.is-car .hrd-gen__meta { color: var(--ink); }

/* Opening: the face clears (0.12s), then head and buttons rise in, staggered. Type never crossfades over type. */
@media (prefers-reduced-motion: no-preference) {
	.hrd-tile.is-opening .hrd-tile__face { visibility: visible; opacity: 1; }
	.hrd-tile.is-opening .hrd-tile__gens { background: transparent; box-shadow: none; }
	.hrd-tile.is-opening :is(.hrd-tile__head, .hrd-gen) { opacity: 0; transform: translateY(6px); }
	.hrd-tile.is-opening.is-run .hrd-tile__face { opacity: 0; transition: opacity 0.12s ease-out; }
	.hrd-tile.is-opening.is-run .hrd-tile__gens { box-shadow: inset 0 0 0 1px var(--sky45); transition: box-shadow 0.2s ease-out 0.12s; } /* stays transparent (the tile is the same ink), so the face's fade shows */
	.hrd-tile.is-opening.is-run :is(.hrd-tile__head, .hrd-gen) { opacity: 1; transform: none; transition: opacity 0.2s var(--wp--custom--ease-out) calc(120ms + var(--i, 0) * 40ms), transform 0.2s var(--wp--custom--ease-out) calc(120ms + var(--i, 0) * 40ms); }
}

@media (max-width: 768px) {
	.hrd-shop { padding: 0 var(--hrd-edge) 72px; }
	.hrd-shop__view { display: block; }
	.hrd-index { top: calc(var(--wp-admin--admin-bar--height, 0px) + 65px); z-index: 3; margin: 0 calc(-1 * var(--hrd-edge)) 20px; padding: 0 var(--hrd-edge); background: var(--ink); border-bottom: 1px solid rgba(255, 255, 255, 0.2); overflow-x: auto; scrollbar-width: none; }
	.hrd-index::-webkit-scrollbar { display: none; }
	.hrd-index__k { display: none; }
	.hrd-index ol { display: flex; gap: 18px; white-space: nowrap; }
	.hrd-index a { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; font-size: 15px; line-height: 1; letter-spacing: -0.02em; }
	.hrd-index a:not(.is-on) { color: rgba(255, 255, 255, 0.6); } /* 15px: small text needs 4.5:1 */
	.hrd-index__n { display: none; }
	.hrd-shop__group { scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 125px); }
	.hrd-shop__group + .hrd-shop__group { margin-top: 28px; }
	.hrd-tiles { grid-template-columns: 1fr 1fr; }
	.hrd-tile__foot .hrd-micro:last-child { display: none; }
	.hrd-tile.is-open { grid-column: 1 / -1; aspect-ratio: auto; }
	.hrd-tile.is-open .hrd-tile__gens { position: relative; inset: auto; padding: 14px; }
	.hrd-tile.is-open .hrd-gens { grid-auto-rows: minmax(88px, auto); }
	.hrd-gens.is-list { grid-auto-rows: minmax(48px, auto); }
}

/* ---------- Listings: categories and generations (§2.2–2.3, §4.15: Shopify parity) ---------- */
.hrd-listing { background: #fff; color: var(--ink); }
.hrd-cards { display: flow-root; padding: 0 var(--hrd-edge) 96px; } /* its own formatting context: the first group's margin adds to the hero's, as on Shopify (no collapse) */
.hrd-cards__group { margin-top: clamp(36px, 5vw, 64px); scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--hrd-head) + 4px); }
.hrd-cards__group:first-child { margin-top: clamp(20px, 2.5vw, 36px); }
.hrd-cards__group[hidden] { display: none; }
.hrd-cards__gh { display: block; margin: 0 0 18px; color: var(--ink); font-size: clamp(34px, 3.4vw, 48px); font-weight: 700; line-height: 1; letter-spacing: -0.035em; }
.hrd-cards__count { margin-left: 14px; color: var(--wp--preset--color--gray); white-space: nowrap; } /* inline, so a long line name wraps with the count after it */
.hrd-cards__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 22px; }
.hrd-card[hidden] { display: none; }
.hrd-card__link { display: flex; flex-direction: column; align-items: center; padding-bottom: 7px; color: var(--ink); text-align: center; text-decoration: none; } /* 714 tall, as Shopify's card */
.hrd-card__link:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.hrd-card__img { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--wp--preset--color--specimen); }
.hrd-card__img img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.hrd-card__b { opacity: 0; }
@media (hover: hover) {
	.hrd-card__img.has-second:hover .hrd-card__a { opacity: 0; }
	.hrd-card__img.has-second:hover .hrd-card__b { opacity: 1; }
}
/* The second photo only ever shows on hover. A touch screen can't hover, so it is never seen there: out of the layout, a lazy
   image is not fetched at all (it was about 45% of the card image bytes on a phone, audit 2026-11-09). Nothing visible changes. */
@media (hover: none) {
	.hrd-card__img .hrd-card__b { display: none; }
}
.hrd-card__t1 { margin-top: 24px; font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -0.4px; }
.hrd-card__t2 { margin-top: 5px; color: var(--wp--preset--color--gray); font-size: 11px; font-weight: 700; line-height: 1.5; letter-spacing: 0.08em; text-transform: uppercase; }
.hrd-card__price { padding: 7px 0; color: #1C1D1D; font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -0.4px; }
.hrd-card__cta { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 7px; font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; }
.hrd-card__go { display: block; width: 9px; height: 9px; transform: rotate(90deg); }
.hrd-card__go svg { display: block; width: 100%; height: 100%; }
.hrd-card__link:hover .hrd-card__cta { text-decoration: underline; text-underline-offset: 3px; }
/* One line across a row: the title and subline sit at the top, the price, stock and "View part" at the bottom,
   so a title that wraps never pushes its price out of line with its neighbours' (SHOP-PAGE.md §8). */
.hrd-cards__grid > .hrd-card:not([hidden]) { display: flex; }
.hrd-cards__grid > .hrd-card > .hrd-card__link { flex: 1 1 auto; width: 100%; }
.hrd-card__price { margin-top: auto; }
.hrd-card__was { color: var(--wp--preset--color--gray); text-decoration-thickness: 1.5px; } /* size and place: .hrd-pair (hrd.css) */
.hrd-card__now { color: inherit; text-decoration: none; }
.hrd-cards__none,
.hrd-cards__empty { margin: 24px 0 0; color: var(--wp--preset--color--gray); font-size: 16px; }
@media (max-width: 768px) {
	.hrd-cards { padding: 0 var(--hrd-edge) 72px; }
	.hrd-cards__group:first-child { margin-top: 20px; }
	.hrd-cards__gh { font-size: 34px; }
	.hrd-cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 17px; }
	.hrd-card__t1 { font-size: 15px; }
	.hrd-card__price { font-size: 19px; }
}

/* ---------- Collection pages (docs/COLLECTION-PAGES.md §2.4–2.6) ---------- */

/* Cards: the stock line (as the product page's) and the fit tag garage.js fills. */
.hrd-card__stock { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; color: var(--wp--preset--color--gray); }
.hrd-card__stock b { color: var(--ink); }
.hrd-card__cta { margin-top: 4px; }
.hrd-card__tag { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 6px 9px 5px; background: #fff; color: var(--ink); }
.hrd-card__tag[hidden] { display: none; }
.hrd-card__tag.is-fit { background: var(--sky); }
.hrd-card__tag.is-fit::before { content: "\2713"; margin-right: 6px; letter-spacing: 0; }
/* Stars (§9.3): filled to the average, no number; five unlit stars where a part has no reviews yet, so every
   card carries the same row. They ride with the price at the card's foot, level across a row. */
.hrd-card__stars { position: relative; display: block; margin-top: auto; padding-top: 12px; color: rgba(4, 1, 29, 0.2); line-height: 0; }
.hrd-card__stars > span { display: inline-flex; gap: 2px; }
.hrd-card__stars-on { position: absolute; left: 0; top: 12px; width: var(--fill); overflow: hidden; color: var(--ink); }
.hrd-card__stars svg { flex: none; width: 13px; height: 13px; fill: currentColor; }
.hrd-card__stars + .hrd-card__price { margin-top: 0; }
@media (forced-colors: active) {
	.hrd-card__stars { color: GrayText; }
	.hrd-card__stars-on { color: CanvasText; }
}

/* Four columns on wide screens. */
@media (min-width: 1280px) {
	.hrd-cards__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 20px; }
	.hrd-card__t1 { margin-top: 20px; }
}
/* Balanced (§9.4): a line of 3, 6 or 9 parts, or of make groups of 3 or fewer, on 3 wide columns. */
@media (min-width: 1280px) {
	.hrd-cards.is-3up .hrd-cards__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
}

/* "Also for your <model>" (§9.6): after the line's own cards, the car's parts from other lines. */
.hrd-also { margin: 0 40px; padding: 56px 0 72px; box-shadow: inset 0 1px 0 var(--wp--preset--color--hairline); }
.hrd-also[hidden] { display: none; }
.hrd-also .hrd-cards__gh { font-size: clamp(30px, 2.8vw, 40px); text-wrap: balance; }
.hrd-listing .hrd-cards:has(+ .hrd-also:not([hidden])) { padding-bottom: 56px; }
@media (max-width: 768px) {
	.hrd-also { margin: 0 var(--hrd-edge); padding: 40px 0 48px; }
	.hrd-also .hrd-cards__head { flex-wrap: wrap; row-gap: 8px; }
	.hrd-also .hrd-cards__gh { font-size: 28px; }
}

/* Parent pages: each product line is a two-row preview with "Shop all" (lifted while a car narrows the page). */
.hrd-cards__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin: 0 0 18px; }
.hrd-cards__head .hrd-cards__gh { margin: 0; }
.hrd-cards__all,
.hrd-cards__more { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; color: var(--ink); font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; text-decoration: none; }
.hrd-cards__all > span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.hrd-cards__all .hrd-card__go,
.hrd-cards__more .hrd-card__go { width: 9px; height: 9px; }
.hrd-cards__more { display: flex; width: 100%; min-height: 56px; margin-top: 30px; box-shadow: inset 0 0 0 1px var(--ink); }
.hrd-cards__more:hover { background: var(--ink); color: #fff; }
.hrd-cards__all:focus-visible,
.hrd-cards__more:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.hrd-cards.is-narrowed .hrd-cards__more { display: none; }
@media (max-width: 1279px) {
	.hrd-cards:not(.is-narrowed) [data-cap] .hrd-card:nth-child(n+7) { display: none; } /* 2 rows of 3 (3 of 2 on phone) */
}
@media (min-width: 1280px) {
	.hrd-cards:not(.is-narrowed) [data-cap] .hrd-card:nth-child(n+9) { display: none; } /* 2 rows of 4 */
	.hrd-cards__more:not(.is-past-8) { display: none; }
}
.hrd-cards__group[data-cap] + .hrd-cards__group[data-cap] { margin-top: clamp(56px, 6vw, 88px); }
@media (max-width: 768px) {
	.hrd-cards__head { flex-wrap: wrap; gap: 0 16px; }
}

/* Category hero (§2.2): breadcrumb beside the top-left arrow (it points up a level), two-line title column, count + car line on one row, the sky Select button. */
.hrd-bar__crumb { position: absolute; z-index: 3; top: calc(2px - var(--arrow)); left: calc(var(--arrow) - 12px); display: flex; align-items: center; gap: 10px; height: var(--arrow); color: rgba(255, 255, 255, 0.45); }
.hrd-bar__crumb a { display: inline-flex; align-items: center; min-height: 44px; color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.hrd-bar__crumb a:hover,
.hrd-bar__crumb a:focus-visible { color: var(--sky); text-decoration: underline; text-underline-offset: 4px; }
.hrd-bar__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.hrd-bar__row .hrd-bar__count { margin: 0; }
.hrd-bar .hrd-bar__btn--select { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px 0 18px; background: var(--sky); color: var(--ink); font-size: 12px; text-decoration: none; }
.hrd-bar .hrd-bar__btn--select svg { flex: none; width: 24px; height: 24px; }
.hrd-bar .hrd-bar__btn--select:hover,
.hrd-bar .hrd-bar__btn--select:focus-visible { background: #fff; color: var(--ink); text-decoration: none; }
.hrd-bar .hrd-bar__btn--select:focus-visible { outline-offset: 3px; }
@media (min-width: 1300px) {
	.hrd-bar--category .hrd-bar__inner { padding-right: 600px; } /* 760px copy column: long names in two lines */
	.hrd-bar--category .hrd-bar__car { right: 56px; bottom: -96px; }
	.hrd-bar--category .hrd-bar__car img { height: 344px; }
}
@media (max-width: 768px) {
	.hrd-bar__crumb { position: relative; top: auto; left: auto; height: auto; margin: -14px 0 0; }
	.hrd-bar--category { padding-bottom: 112px; }
	.hrd-bar--category .hrd-bar__car { width: 270px; transform: translate(-50%, 34%); }
	.hrd-bar__row { gap: 14px 24px; }
	.hrd-bar--category .hrd-bar__line { gap: 10px 20px; }
}

/* The make bar (§2.3): white, under the hero; sticks under the header (--hrd-head; 65 on phone). */
.hrd-listing.is-layout-flow > .hrd-bar:has(~ .hrd-subbar) { margin-bottom: 0; } /* "~": view.js puts a scroll sentinel between them */
.hrd-subbar { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--hrd-head)); z-index: 40; background: #fff; box-shadow: inset 0 -1px 0 var(--wp--preset--color--hairline); }
.hrd-subbar[hidden] { display: none; }
.hrd-subbar__in { display: flex; align-items: center; gap: 24px; min-height: 52px; padding: 0 var(--hrd-edge); }
.hrd-subbar .hrd-bar__jump { flex: 1; min-width: 0; flex-wrap: nowrap; gap: 0 9px; margin: 0; overflow-x: auto; scrollbar-width: none; }
.hrd-subbar .hrd-bar__jump::-webkit-scrollbar { display: none; }
.hrd-subbar .hrd-bar__jump a { flex: none; min-height: 52px; color: var(--wp--preset--color--gray); white-space: nowrap; }
.hrd-subbar .hrd-bar__jump a:not([hidden]) ~ a:not([hidden])::before { color: #C8C8CC; }
.hrd-subbar .hrd-bar__jump a:hover { color: var(--ink); text-decoration: none; }
.hrd-subbar .hrd-bar__jump a.is-on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--sky); }
.hrd-subbar .hrd-bar__jump a:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.hrd-bar__n { margin-left: 6px; color: #6B6B70; font-size: 10px; letter-spacing: 0.1em; }
.hrd-subbar .hrd-bar__jump a.is-on .hrd-bar__n { color: var(--wp--preset--color--gray); }
.hrd-subbar__t { order: 2; margin: 0; color: var(--ink); white-space: nowrap; opacity: 0; transition: opacity 0.2s var(--wp--custom--ease-out); }
.hrd-subbar.is-stuck .hrd-subbar__t { opacity: 1; }
.hrd-subbar__fit { order: 3; margin: 0; color: var(--wp--preset--color--gray); white-space: nowrap; }
.hrd-subbar__dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--sky); vertical-align: 0.05em; }
.hrd-subbar ~ .hrd-cards .hrd-cards__group { scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--hrd-head) + 68px); }
.hrd-subbar ~ .hrd-cards .hrd-cards__group:first-child { margin-top: clamp(28px, 3.5vw, 44px); }
@media (prefers-reduced-motion: reduce) {
	.hrd-subbar__t { transition: none; }
}
@media (max-width: 768px) {
	.hrd-subbar { top: calc(var(--wp-admin--admin-bar--height, 0px) + 65px); }
	.hrd-subbar__in { min-height: 48px; padding: 0 var(--hrd-edge); }
	.hrd-subbar .hrd-bar__jump { gap: 0 20px; margin: 0 calc(-1 * var(--hrd-edge)); padding: 0 var(--hrd-edge); }
	.hrd-subbar .hrd-bar__jump a { min-height: 48px; }
	.hrd-subbar__t,
	.hrd-subbar__fit { display: none; }
	.hrd-subbar ~ .hrd-cards .hrd-cards__group { scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 124px); }
}

/* No fit (§2.7): what HRD makes for the car, and the ways forward. */
.hrd-cards__none { max-width: 820px; margin-top: clamp(32px, 4vw, 56px); }
.hrd-cards__none[hidden] { display: none; }
.hrd-none__h { margin: 0; color: var(--ink); font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; line-height: 1.12; letter-spacing: -0.035em; }
.hrd-none__h strong { font-weight: 700; }
.hrd-none__k { margin: 32px 0 6px !important; color: var(--wp--preset--color--gray); }
.hrd-none__lines { list-style: none; margin: 0; padding: 0; }
.hrd-none__lines a { display: grid; grid-template-columns: 1fr auto 12px; align-items: center; gap: 16px; min-height: 56px; color: var(--ink); text-decoration: none; box-shadow: inset 0 -1px 0 var(--wp--preset--color--hairline); font-size: 20px; font-weight: 700; letter-spacing: -0.03em; }
.hrd-none__lines a:hover span:first-child { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.hrd-none__lines a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.hrd-none__lines .hrd-micro { color: var(--wp--preset--color--gray); }
.hrd-none__go { display: block; width: 9px; height: 9px; transform: rotate(90deg); }
.hrd-none__go svg { display: block; width: 100%; height: 100%; }
.hrd-none__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 32px; }
.hrd-none__btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.hrd-none__btn:hover { background: #1d1a3d; color: #fff; }
.hrd-none__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; background: none; border: 0; color: var(--ink); font: inherit; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hrd-none__btn:focus-visible,
.hrd-none__link:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Page end (§2.8): about the line, then the ask ---------- */
.hrd-listing .hrd-cards { padding-bottom: 72px; }
.hrd-about { display: grid; grid-template-columns: 280px minmax(0, 780px); gap: 40px; margin: 0 40px; padding: 64px 0 88px; box-shadow: inset 0 1px 0 var(--wp--preset--color--hairline); color: var(--ink); }
.hrd-about__k { display: flex; flex-direction: column; gap: 14px; }
.hrd-about__k .hrd-slashes { --hz: 14px; display: block; color: var(--sky); }
.hrd-about__k h2 { margin: 0; color: var(--wp--preset--color--gray); }
.hrd-about > p { margin: 0; font-size: 20px; line-height: 1.5; letter-spacing: -0.015em; }

/* The ask (§2.8, §9.1), a Strip: the headline on the left, the form on one row on the right, their last lines
   on one baseline. 222px at 1440 (the code wall was 832). Below 1280 the form goes under the headline. */
.hrd-askwall { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 5vw, 88px); row-gap: 28px; align-items: end; padding: 56px var(--hrd-edge) 60px; background: var(--ink); color: #fff; }
.hrd-askwall :is(p, h2) { margin: 0; }
.hrd-askwall__head .hrd-slashes { --hz: 14px; display: block; color: var(--sky); }
.hrd-askwall__h { margin: 14px 0 10px !important; color: #fff; font-size: clamp(32px, 3.1vw, 44px); font-weight: 700; line-height: 0.95; letter-spacing: -0.035em; text-transform: uppercase; text-wrap: balance; }
.hrd-askwall__line { color: rgba(255, 255, 255, 0.75); font-size: 18px; line-height: 1.35; letter-spacing: -0.02em; }
.hrd-askwall__form { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr) minmax(0, 1.15fr) auto; column-gap: 16px; row-gap: 12px; align-items: end; }
.hrd-askwall__form[hidden] { display: none; }
.hrd-askwall__form > :is(.hrd-askwall__fine, .hrd-askwall__err, .hrd-askwall__ts) { grid-column: 1 / -1; }
.hrd-askwall label { margin: 0; }
.hrd-askwall__f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hrd-askwall__f > span { color: rgba(255, 255, 255, 0.7); }
.hrd-askwall__f input { box-sizing: border-box; width: 100%; height: 48px; min-height: 48px; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.45); color: #fff; font: inherit; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.hrd-askwall__f input::placeholder { color: rgba(255, 255, 255, 0.4); opacity: 1; font-weight: 400; }
.hrd-askwall__f input:focus { outline: none; box-shadow: inset 0 -2px 0 var(--sky); }
.hrd-askwall__f input[aria-invalid] { box-shadow: inset 0 -2px 0 #FF8A8A; }
.hrd-askwall__send { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 28px; background: var(--sky); border: 0; border-radius: 0; color: var(--ink); font: inherit; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.hrd-askwall__send:hover { background: #fff; }
.hrd-askwall__send:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hrd-askwall__send.is-sending { opacity: 0.6; cursor: progress; }
.hrd-askwall__fine { color: rgba(255, 255, 255, 0.6); font-size: 14px; }
.hrd-askwall__err { color: #FFB3B3; font-size: 14px; }
.hrd-askwall__err[hidden] { display: none; }
.hrd-askwall__ts:empty { display: none; }
.hrd-askwall__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hrd-askwall__sent { color: #fff; font-size: 24px; line-height: 1.3; letter-spacing: -0.02em; }
.hrd-askwall__sent b { color: var(--sky); }
.hrd-askwall__sent:focus { outline: none; }
.hrd-askwall__sent[hidden] { display: none; }
@media (max-width: 1279px) {
	.hrd-askwall { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
	.hrd-about { grid-template-columns: 1fr; gap: 18px; margin: 0 var(--hrd-edge); padding: 44px 0 56px; }
	.hrd-about > p { font-size: 17px; }
	.hrd-listing .hrd-cards { padding-bottom: 56px; }
	.hrd-askwall { row-gap: 24px; padding: 44px var(--hrd-edge) 48px; }
	.hrd-askwall__h { font-size: 34px; }
	.hrd-askwall__line { font-size: 17px; }
	.hrd-askwall__form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.hrd-askwall__f--vehicle,
	.hrd-askwall__send { grid-column: 1 / -1; width: 100%; }
}

/* A line's hero shows its Shop tile render instead of the race car (SHOP-PAGE.md §8.3, §8.6): whole, never
   masked or cropped. It keeps to the right on desktop and tablet: its column scales with the window (--rw) and
   the title column reserves it plus the corner arrow plus an 80px gap, so the title can never come near it and
   it never jumps under the title as the window narrows. Phones (<=768) show it in the band the car used. */
.hrd-bar--category.has-render { --rw: clamp(200px, 26vw, 400px); }
.hrd-bar--category.has-render .hrd-bar__inner { padding-right: calc(var(--rw) + var(--arrow) + 80px); }
.hrd-bar--category .hrd-bar__car--render { top: 20px; bottom: 20px; left: auto; right: calc(var(--arrow) + 32px); width: var(--rw); height: auto; transform: none; -webkit-mask-image: none; mask-image: none; }
.hrd-bar--category .hrd-bar__car--render img { width: 100%; height: 100%; max-width: none; object-fit: contain; -webkit-mask-image: none; mask-image: none; }
@media (max-width: 1299px) {
	.hrd-bar--category.has-render { padding-bottom: calc(var(--arrow) + 14px); }
}
@media (max-width: 768px) {
	.hrd-bar--category.has-render { padding-bottom: 112px; }
	.hrd-bar--category.has-render .hrd-bar__inner { padding-right: 0; }
	.hrd-bar--category .hrd-bar__car--render { top: auto; bottom: 10px; left: 50%; right: auto; width: min(100%, 520px); height: 98px; transform: translateX(-50%); }
}

/* Explicit overflow navigation for collection makes, including narrow desktops. */
.hrd-subbar__scroll { display: flex; align-items: center; flex: 1; min-width: 0; }
.hrd-subbar__move { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: #fff; color: var(--wp--preset--color--ink); font: inherit; font-size: 28px; cursor: pointer; }
.hrd-subbar__move[hidden] { display: none; }
.hrd-subbar__move:disabled { opacity: .3; cursor: default; }
.hrd-subbar__move:focus-visible { outline: 2px solid var(--wp--preset--color--ink); outline-offset: -3px; }
@media (max-width: 1279px) { .hrd-subbar__t { display: none; } }
@media (max-width: 768px) { .hrd-subbar__scroll .hrd-bar__jump { margin-inline: 0; padding-inline: 0; } }
