/*
 * /lineup/: sunset → dusk → night. The --ln-* tokens (also used by the shared spec box on /build/,
 * styles/components/spec-sheet.css), the art bands behind the page's sections, the model cards and the
 * shop and tow links. Markup: blocks/rig-archive/render.php, inc/spec-sheet.php, inc/lineup.php.
 * Spec: docs/superpowers/specs/2026-11-20-lineup-redesign-design.md. No motion: hover and focus change
 * colour only.
 */

:root {
	--ln-night: #0c0f12;
	/* The spec box: painted light black metal (metal/box-*.webp) and the final comp's sampled colours
	 * (pale olive labels, sage Build pill with cream text, dark grey-rimmed side buttons, pale lime active row). */
	--ln-metal: #201f22;
	--ln-line: rgb(255 255 255 / 0.12);
	--ln-olive: #cfd5ab;
	--ln-olive-ink: #eef4c8;
	--ln-olive-rule: #a3aa86;
	--ln-price: #cdd0ad;
	--ln-sage: #56624d;
	--ln-sage-top: #69765d;
	--ln-sage-glow: 0 0 18px rgb(160 180 120 / 0.28);
	--ln-active: #c9e89e;
	--ln-active-glow: 0 0 14px rgb(201 232 158 / 0.35);
	--ln-dot: #77965f;
	--ln-chip-fill: rgb(0 0 0 / 0.3);
	--ln-chip-line: rgb(190 196 160 / 0.3);
	--ln-side-fill: #2c2b31;
	--ln-side-line: #6a6871;
	/* The cards and links keep their picks' bright glow green. */
	--ln-green: #97c459;
	--ln-glow: #7fd85a;
	--ln-head-glow: #d3ffcc;
	--ln-ink: #fff;
	--ln-body: #d2d1cf;
	--ln-label: #c2c1c0;
	--ln-chip: rgb(30 36 40 / 0.62);
	--ln-band-h: clamp(13rem, 22vw, 20rem);
}

/* ─── Bands: decorative art behind a section ────────────────────── */

.liv-lineup-band {
	position: absolute;
	z-index: 0;
	display: block;
	pointer-events: none;
}
.liv-lineup-band img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* The spec box over the dusk peaks (D3): the band fills the section and fades into the cards below. */
.liv-spec-sheet--banded {
	position: relative;
	overflow: hidden;
	overflow: clip;
	padding-block: clamp(3rem, 6vw, 6rem) clamp(3rem, 5vw, 5rem);
}
.liv-spec-sheet__band {
	inset: 0;
	-webkit-mask-image: linear-gradient(#000 70%, transparent 94%);
	mask-image: linear-gradient(#000 70%, transparent 94%);
}
.liv-spec-sheet__band img { object-position: 50% 30%; }
.liv-spec-sheet--banded > .liv-container {
	position: relative;
	z-index: 1;
}

/* ─── Model cards over the dusk ridges (D8) ─────────────────────── */

.liv-lineup-cards {
	--ln-cards-band-h: clamp(15rem, 26vw, 24rem);
	position: relative;
	overflow: hidden;
	overflow: clip;
	background: var(--ln-night);
	padding-top: calc(var(--ln-cards-band-h) * 0.5);
}
.liv-lineup-cards > .liv-lineup-band {
	top: 0;
	left: 0;
	right: 0;
	height: var(--ln-cards-band-h);
	-webkit-mask-image: linear-gradient(transparent, #000 18%, #000 50%, transparent 96%);
	mask-image: linear-gradient(transparent, #000 18%, #000 50%, transparent 96%);
}
.liv-lineup-cards > .liv-container {
	position: relative;
	z-index: 1;
}

.liv-archive__header--center {
	max-width: 760px;
	margin-inline: auto;
	text-align: center;
}
.liv-lineup-cards .liv-archive__header .liv-eyebrow { color: var(--ln-green); }
/* The comp sets the heading in a large plain sans over the ridges. */
.liv-lineup-cards .liv-archive__header .liv-section__title {
	font-family: var(--wp--preset--font-family--body);
	font-size: clamp(2.25rem, 4.6vw, 3.75rem);
	font-weight: 500;
	letter-spacing: -0.02em;
	color: var(--ln-ink);
	text-shadow: 0 2px 18px rgb(0 0 0 / 0.55);
}
.liv-lineup-cards .liv-archive__header .liv-section__lead {
	color: var(--ln-body);
	margin-inline: auto;
	text-shadow: 0 1px 10px rgb(0 0 0 / 0.6);
}

/* The comp's grid is narrower than the page: three portrait cards across about 1,040 px. */
.liv-rig-grid.liv-lineup-cards__grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.25rem, 2.2vw, 2rem);
	max-width: 1040px;
	margin-inline: auto;
}
@media (max-width: 1023px) {
	.liv-rig-grid.liv-lineup-cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; }
}
@media (max-width: 599px) {
	.liv-rig-grid.liv-lineup-cards__grid { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
}

/* The painted card (Gemini, card/shell.webp): its double bevel, dark glass and green corner wedge as a
 * 9-slice border image, so it fits any height. The card's own border, radius and shadow are off. */
.liv-lineup-cards .liv-lineup-card {
	position: relative;
	background: none;
	border: 1px solid transparent;
	border-radius: 0;
	box-shadow: none;
	border-image: url('../assets/img/lineup/card/shell.webp') 60 fill / 30px / 0 stretch;
	/* The photo frame sits 4.55% of the card's width in from each side, as in the painting. */
	padding: 4.55% 4.55% 0;
	overflow: visible;
	transition: none;
}
.liv-lineup-cards .liv-lineup-card:hover,
.liv-lineup-cards .liv-lineup-card:focus-visible {
	transform: none;
	box-shadow: none;
}
.liv-lineup-cards .liv-lineup-card:focus-visible {
	outline: 2px solid var(--ln-green);
	outline-offset: 3px;
}

/* The photo under the painted green frame with its notch (card/frame.webp, 800 x 602): the frame image is
 * opaque card outside the window, so the photo shows only through the notched window. The box keeps the
 * photos' own 16:10 shape (nothing cropped); the frame is a 9-slice (36 px sides and top, 80 px bottom with
 * the notch, scaled to the box's width through cqw), so its corners and notch never distort. */
.liv-lineup-cards .liv-lineup-card__media {
	position: relative;
	margin: 0;
	container-type: inline-size;
	aspect-ratio: 8 / 5;
	border-radius: 0;
	background: #000;
	overflow: hidden;
}
.liv-lineup-cards .liv-lineup-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: none;
}
.liv-lineup-cards .liv-lineup-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	border-style: solid;
	border-color: transparent;
	border-width: calc(100cqw * 36 / 800) calc(100cqw * 36 / 800) calc(100cqw * 80 / 800);
	border-image: url('../assets/img/lineup/card/frame.webp') 36 36 80 / 1 / 0 stretch;
	pointer-events: none;
}
.liv-lineup-cards .liv-lineup-card:hover .liv-card__media img { transform: none; }

.liv-lineup-cards .liv-lineup-card__body {
	flex: 1 1 auto;
	padding: 1rem 0.55rem 1.6rem;
	gap: 0.45rem;
}
/* Comp type: a sentence-case category, a bold sans title, then the tagline. */
.liv-lineup-cards .liv-lineup-card .liv-eyebrow {
	margin: 0;
	color: var(--ln-body);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}
.liv-lineup-cards .liv-lineup-card .liv-card__title {
	margin: 0;
	color: var(--ln-ink);
	font-family: var(--wp--preset--font-family--body);
	font-size: clamp(1.5rem, 2.2vw, 1.875rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.1;
	transition: color var(--liv-transition);
}
.liv-lineup-cards .liv-lineup-card:hover .liv-card__title,
.liv-lineup-cards .liv-lineup-card:focus-visible .liv-card__title { color: var(--ln-head-glow); }
.liv-lineup-card__tagline {
	margin: 0.15rem 0 0;
	color: var(--ln-body);
	font-size: 0.9375rem;
	line-height: 1.45;
}

/* The ballpark price as its own glowing green line ("Price" stays as a hidden term). */
.liv-lineup-card__price {
	margin: 0.35rem 0 0;
}
.liv-lineup-card__price dd {
	margin: 0;
	color: #8fe46a;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.875rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.4;
	text-transform: uppercase;
	text-shadow: 0 0 12px rgb(127 216 90 / 0.55);
}

/* Sleeps and Length below a hairline, in the comp's sentence case. */
.liv-lineup-cards .liv-lineup-card .liv-card__meta {
	margin-top: auto;
	padding-top: 0.9rem;
	border-top: 1px solid rgb(255 255 255 / 0.12);
	justify-content: start;
	column-gap: 2.75rem;
}
.liv-lineup-cards .liv-lineup-card .liv-card__meta dt {
	color: var(--ln-body);
	font-size: 0.875rem;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}
.liv-lineup-cards .liv-lineup-card .liv-card__meta dd {
	color: var(--ln-ink);
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.0625rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}

/* ─── Shop and tow links under the night sky (D9) ───────────────── */

.liv-lineup-links {
	position: relative;
	overflow: hidden;
	overflow: clip;
	background: var(--ln-night);
}
.liv-lineup-links--use {
	padding-block: clamp(4rem, 8vw, 7rem) clamp(4rem, 7vw, 6rem);
}
.liv-lineup-links--use > .liv-lineup-band {
	inset: 0;
	-webkit-mask-image: linear-gradient(transparent, #000 14%, #000 60%, transparent 100%);
	mask-image: linear-gradient(transparent, #000 14%, #000 60%, transparent 100%);
}
/* A soft night scrim on the left, behind the heading, so bright stars never sit under the text. */
.liv-lineup-links--use > .liv-lineup-band::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgb(12 15 18 / 0.6) 0%, rgb(12 15 18 / 0.35) 45%, transparent 75%);
}
.liv-lineup-links--tow {
	padding-block: clamp(2.5rem, 4.5vw, 4rem) clamp(4rem, 7vw, 6rem);
}
.liv-lineup-links > .liv-container {
	position: relative;
	z-index: 1;
}
.liv-lineup-links .liv-eyebrow { color: var(--ln-green); }
.liv-lineup-links .liv-section__title {
	color: var(--ln-head-glow);
	text-shadow: 0 0 18px rgb(127 216 90 / 0.45);
}

.liv-lineup-links .liv-collection__link-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.75rem;
}
@media (max-width: 900px) {
	.liv-lineup-links .liv-collection__link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
	.liv-lineup-links .liv-collection__link-grid { grid-template-columns: minmax(0, 1fr); }
}
.liv-lineup-links .liv-collection__link-grid a {
	height: 100%;
	padding: 0.9rem 1.1rem;
	background: var(--ln-chip);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border: 1px solid var(--ln-line);
	border-radius: 8px;
	box-shadow: inset 0 -2px 0 var(--ln-glow), 0 8px 16px -10px rgb(127 216 90 / 0.55);
	color: var(--ln-ink);
	font-size: 0.875rem;
	line-height: 1.35;
	transition: border-color var(--liv-transition), box-shadow var(--liv-transition);
}
.liv-lineup-links .liv-collection__link-grid a:hover,
.liv-lineup-links .liv-collection__link-grid a:focus-visible {
	transform: none;
	border-color: var(--ln-green);
	box-shadow: inset 0 -2px 0 var(--ln-glow), 0 10px 22px -10px rgb(127 216 90 / 0.8);
}
.liv-lineup-links .liv-collection__link-arrow { color: var(--ln-glow); }

/* Circuit lines: decorative, wide screens only, kept clear of the text. */
.liv-lineup-circuit {
	display: none;
	position: absolute;
	z-index: 0;
	pointer-events: none;
	color: var(--ln-glow);
	filter: drop-shadow(0 0 4px rgb(127 216 90 / 0.8));
}
@media (min-width: 1200px) {
	.liv-lineup-circuit { display: block; }
	.liv-lineup-links--use { padding-bottom: 7.5rem; }
}
.liv-lineup-circuit--band-foot {
	left: 50%;
	bottom: 0;
	width: 1440px;
	height: 120px;
	margin-left: -720px;
	opacity: 0.75;
}
.liv-lineup-circuit--tow-corner {
	top: 0;
	right: 0;
	width: 520px;
	height: 170px;
	opacity: 0.45;
}
