/*!
 * ROCKLINE — product page component layer.
 * Twenty Twenty-Five child theme. Enqueued after rockline.css (handle
 * "rockline") by inc/product-page.php, on pages using the "Product page"
 * template, and loaded on the editor canvas with add_editor_style().
 *
 * Same contract as rockline.css: colours, fonts and steps come from the
 * theme.json presets only — no hex values and no fallbacks. It reuses the
 * site's .rl-card corner-mark, .rl-eyebrow and is-style-rockline-* buttons,
 * and adds only what a product page needs:
 *   §01 section shell, breadcrumb, section menu
 *   §02 hero + Photo with call-outs (rockline/hotspot-stage, rockline/hotspot)
 *   §03 spec tiles
 *   §04 features
 *   §05 series chooser + comparison tables
 *   §06 compatible models + fitment note
 *   §07 quote CTA banner
 *   §08 phone quote bar
 *   §09 breakpoints
 *   §10 editor canvas
 *   §11 heavy-duty brake kit modifiers
 *   §12 heavy-duty suspension kit modifiers
 *
 * Every group in the patterns uses the default (flow) layout, so all layout
 * here is plain CSS on the rl- classes — nothing depends on WordPress's
 * generated wp-container-* rules.
 */

/* ==================================================================
   01 — Section shell
   ================================================================== */

/* The editor canvas has no .rl-product wrapper, so the tokens go there too. */
.rl-main {
	position: relative;
}

.rl-product,
.editor-styles-wrapper {
	/* Height of the sticky site header; rockline-product.js measures the real one. */
	--rl-sticky-top: 65px;
	--rl-gutter: clamp(20px, 5vw, 80px);
}

.rl-section {
	scroll-margin-top: calc(var(--rl-sticky-top) + 56px);
}

.rl-section--band {
	background: var(--wp--preset--color--grey-900);
	border-block: 1px solid var(--wp--preset--color--grey-700);
}

.rl-section__inner {
	max-width: 1440px;
	margin-inline: auto;
	padding: 96px var(--rl-gutter);
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--80);
}

.rl-section__head {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--40);
	max-width: 760px;
}

.rl-section__head--split {
	max-width: none;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--60) var(--wp--preset--spacing--90);
}

.rl-section__head--split > .wp-block-group {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--40);
}

/* Italic in a section heading is the orange highlight, as .rl-h1 em does on
   the homepage (the hero H1 carries .rl-h1, so rockline.css covers it). */
.rl-h2 em {
	font-style: normal;
	color: var(--wp--preset--color--orange);
}

.rl-lede {
	max-width: 560px;
	font-size: var(--wp--preset--font-size--body);
	line-height: var(--wp--custom--leading-body);
	color: var(--wp--preset--color--grey-200);
}

.rl-label {
	font-family: var(--wp--preset--font-family--signature);
	font-size: 10px;
	font-weight: 900;
	line-height: 1.4;
	letter-spacing: var(--wp--custom--tracking-label);
	text-transform: uppercase;
	color: var(--wp--preset--color--grey-300);
}

/* Images inside the product components are laid out by their parent; drop
   the core figure margin. */
.rl-feature .wp-block-image,
.rl-series__media .wp-block-image,
.rl-series__top .wp-block-image,
.rl-badge .wp-block-image {
	margin: 0;
}

/* --- Breadcrumb --------------------------------------------------------- */

.rl-crumbs {
	max-width: 1440px;
	margin-inline: auto;
	padding: var(--wp--preset--spacing--60) var(--rl-gutter) 0;
}

.rl-crumbs::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    /* Pin to the left edge: without it the strip starts at the gutter and,
       at 100% width, runs 1 gutter past the right edge (sideways scroll). */
    left: 0;
    pointer-events: none;
    height: 80px;
    z-index: 1;
    width: 100%;
    background: linear-gradient( 180deg, #000000 48%, transparent 98%);
}

.rl-crumbs ol {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
    position: relative;
    z-index: 2;
}

.rl-crumbs li {
	display: flex;
	gap: var(--wp--preset--spacing--30);
}

.rl-crumbs li + li::before {
	content: "/";
	color: var(--wp--preset--color--grey-500);
}

.rl-crumbs a {
	color: var(--wp--preset--color--grey-300);
	text-decoration: none;
}

.rl-crumbs a:hover {
	color: var(--wp--preset--color--white);
}

/* The current page is always the last crumb. */
.rl-crumbs li:last-child {
	color: var(--wp--preset--color--white);
}

/* --- Section menu --------------------------------------------------------
   Sticks directly under the site header. Scrolls sideways on phones rather
   than wrapping, so it never grows taller than one row. */

.rl-subnav {
	position: sticky;
	top: var(--rl-sticky-top);
	z-index: 20;
	background: color-mix(in srgb, var(--wp--preset--color--black) 92%, transparent);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--wp--preset--color--grey-700);
}

.rl-subnav__inner {
	max-width: 1440px;
	margin-inline: auto;
	padding-inline: var(--rl-gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--60);
}

.rl-subnav__title {
	flex: none;
	font-family: var(--wp--preset--font-family--headline);
	font-size: var(--wp--preset--font-size--lead);
	letter-spacing: var(--wp--custom--tracking-button);
	text-transform: uppercase;
	white-space: nowrap;
}

.rl-subnav ul {
	flex: 0 1 auto;
	min-width: 0;
	position: relative; /* offsetParent for the JS that scrolls the active link into view */
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	gap: var(--wp--preset--spacing--10);
	overflow-x: auto;
	scrollbar-width: none;
}

.rl-subnav ul::-webkit-scrollbar {
	display: none;
}

.rl-subnav li a {
	display: flex;
	align-items: center;
	height: 52px;
	padding-inline: var(--wp--preset--spacing--40);
	border-bottom: 2px solid transparent;
	font-family: var(--wp--preset--font-family--signature);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: var(--wp--custom--tracking-label);
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	color: var(--wp--preset--color--grey-300);
	transition:
		color var(--wp--custom--duration-fast) var(--wp--custom--ease-standard),
		border-color var(--wp--custom--duration-fast) var(--wp--custom--ease-standard);
}

.rl-subnav li a:hover {
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

.rl-subnav li a[aria-current="true"] {
	color: var(--wp--preset--color--white);
	border-bottom-color: var(--wp--preset--color--orange);
}

/* ==================================================================
   02 — Product hero
   ================================================================== */

/* The copy is two blocks, head (eyebrow, title, series) and body, so the
   photo can sit between them on phones. On desktop the photo is out of flow
   behind both, and the 1fr rows centre the pair vertically.
   --rl-hero-fx/fy are the photo's background-position as 0–1 fractions: the
   pin layer reads the same numbers, so pins and photo cannot drift apart. */
.rl-pdp-hero {
	--rl-hero-fx: .2;
	--rl-hero-fy: .5;
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-rows: 1fr auto auto 1fr;
	min-height: clamp(780px, 54vw, 880px);
	padding-block: var(--wp--preset--spacing--80) 96px;
	background-color: var(--wp--preset--color--black);
}

/* The Photo with call-outs block. Its photo is an inline background-image
   with background-size: cover, written by blocks/hotspot-stage/render.php. */
.rl-pdp-hero__stage {
	position: absolute;
	inset: 0;
	/* max-width: 1440px; */
	margin-inline: auto;
	container-type: size;
	background-color: var(--wp--preset--color--black);
	background-repeat: no-repeat;
	background-position: calc(var(--rl-hero-fx) * 100%) calc(var(--rl-hero-fy) * 100%);
}
.page-id-2 .rl-pdp-hero__stage {
	max-width: none;
}

/* Background video: a core Video block placed directly in the stage. Isolating
   the stage lets z-index -1 sit above its background and under the scrim. */
.rl-pdp-hero__stage:has(> .wp-block-video) {
	isolation: isolate;
}

/* -1px: the stage's height can be fractional on phones, and the scrim must still
   cover the video's last row of pixels. */
.rl-pdp-hero__stage:has(> .wp-block-video)::before {
	bottom: -1px;
}

/* Footage has bright frames behind the copy, so the side scrim is its own
   recipe here: lighter than the hero photo's, and clear by the middle of the
   shot. */
@media (min-width: 1201px) {
	.rl-pdp-hero__stage:has(> .wp-block-video)::before {
		background:
			linear-gradient(90deg, color-mix(in srgb, var(--wp--preset--color--black) 60%, transparent) 0%, color-mix(in srgb, var(--wp--preset--color--black) 45%, transparent) 36%, transparent 56%),
			linear-gradient(0deg, var(--wp--preset--color--black) 0%, transparent 16%);
	}
}

.rl-pdp-hero__stage > .wp-block-video {
	position: absolute;
	inset: 0;
	z-index: -1;
	margin: 0;
}

.rl-pdp-hero__stage > .wp-block-video video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Play button, added by rockline-product.js once the video has finished. It
   sits in the clear part of the shot; the copy layers span the full width, so
   they let clicks through everywhere except their own content. */
.rl-pdp-hero__play {
	position: absolute;
	top: 50%;
	left: var(--rl-play-x, 50%);
	z-index: 1;
	width: 72px;
	height: 72px;
	padding: 0;
	border: 0;
	cursor: pointer;
	background-color: var(--wp--preset--color--orange);
	transform: translate(-50%, -50%);
	transition: transform .2s ease;
}

.rl-pdp-hero__play[hidden] {
	display: none;
}

.rl-pdp-hero__play::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	border-style: solid;
	border-width: 12px 0 12px 20px;
	border-color: transparent transparent transparent var(--wp--preset--color--white);
	transform: translate(-35%, -50%);
}

.rl-pdp-hero__play:hover {
	transform: translate(-50%, -50%) scale(1.08);
}

.rl-pdp-hero__play:focus-visible {
	outline: 2px solid var(--wp--preset--color--white);
	outline-offset: 3px;
}

.rl-pdp-hero:has(.wp-block-video) > .rl-pdp-hero__head,
.rl-pdp-hero:has(.wp-block-video) > .rl-pdp-hero__body {
	pointer-events: none;
}

.rl-pdp-hero:has(.wp-block-video) > .rl-pdp-hero__head > *,
.rl-pdp-hero:has(.wp-block-video) > .rl-pdp-hero__body > * {
	pointer-events: auto;
}

/* Desktop: the video starts part-way across so the product clears the copy, and
   its left edge fades into the black hero rather than showing a hard line. */
@media (min-width: 1201px) {
	.rl-pdp-hero__stage:has(> .wp-block-video) {
		--rl-play-x: 70%;
	}

	.rl-pdp-hero__stage > .wp-block-video {
		left: 12%;
		-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
		mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
	}
}

/* Scrim: keeps the copy readable where the shot's floor lights reach left,
   and fades the bottom edge into the page. */
.rl-pdp-hero__stage::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, color-mix(in srgb, var(--wp--preset--color--black) 88%, transparent) 0%, color-mix(in srgb, var(--wp--preset--color--black) 55%, transparent) 34%, transparent 58%),
		linear-gradient(0deg, var(--wp--preset--color--black) 0%, transparent 16%);
}

/* Past 1440px the stage stops short of the viewport: feather its side edges
   into the page so the photo has no visible box. */
@media (min-width: 1441px) {
	.rl-pdp-hero__stage::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(90deg, var(--wp--preset--color--black) 0%, transparent 6%, transparent 90%, var(--wp--preset--color--black) 100%);
	}
    .page-id-2 .rl-pdp-hero__stage::after {
    	display: none;
    }
}

.rl-pdp-hero__head,
.rl-pdp-hero__body {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1440px;
	margin-inline: auto;
	padding-inline: var(--rl-gutter);
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--60);
}

.rl-pdp-hero__head > *,
.rl-pdp-hero__body > * {
	max-width: 460px;
}

.rl-pdp-hero__head {
	grid-row: 2;
}

.rl-pdp-hero__body {
	grid-row: 3;
	padding-top: var(--wp--preset--spacing--60);
}

.rl-pdp-hero__title {
	font-size: clamp(52px, 7vw, 104px);
	line-height: .86;
}

/* "Series I | Series II": the numerals are bold (orange here) and the bar
   is an inline-coloured mark, both from the editor's own formatting. */
.rl-pdp-hero__series {
	margin-top: calc(var(--wp--preset--spacing--30) * -1);
	font-family: var(--wp--preset--font-family--headline);
	font-size: clamp(28px, 2.6vw, 38px);
	line-height: 1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.rl-pdp-hero__series strong {
	font-weight: 400;
	color: var(--wp--preset--color--orange);
}

.rl-pdp-hero__series mark {
	padding-inline: var(--wp--preset--spacing--30);
}

.rl-pdp-hero__tagline {
	font-family: var(--wp--preset--font-family--signature);
	font-size: var(--wp--preset--font-size--body-sm);
	font-weight: 900;
	line-height: 1.6;
	letter-spacing: var(--wp--custom--tracking-eyebrow);
	text-transform: uppercase;
}

.rl-pdp-hero__lead {
	max-width: 520px;
	font-size: var(--wp--preset--font-size--lead);
	line-height: var(--wp--custom--leading-lead);
	color: var(--wp--preset--color--grey-200);
}

/* Roof-load figures: two numbers split by a hairline, ruled off from the
   lead above, with the no-drill tag underneath. */
.rl-loads {
	margin-top: var(--wp--preset--spacing--20);
	padding-top: var(--wp--preset--spacing--60);
	border-top: 1px solid var(--wp--preset--color--grey-700);
	max-width: 520px;
}

.rl-loads__row {
	display: grid;
	grid-template-columns: repeat(2, auto);
	justify-content: start;
	gap: var(--wp--preset--spacing--70);
}

.rl-loads__item {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--10);
}

.rl-loads__item + .rl-loads__item {
	padding-left: var(--wp--preset--spacing--70);
	border-left: 1px solid var(--wp--preset--color--grey-600);
}

.rl-loads__value {
	font-family: var(--wp--preset--font-family--headline);
	font-size: clamp(48px, 4.4vw, 64px);
	line-height: .9;
}

/* The unit ("kg") is the orange mark after the number. */
.rl-loads__value mark {
	margin-left: 4px;
	font-size: .5em;
}

/* A tinted tag rather than a solid orange bar, so it can't be mistaken for
   a button sitting next to the real CTAs. */
.rl-loads__badge {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: var(--wp--preset--spacing--60);
	padding: var(--wp--preset--spacing--20) 14px var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
	background: var(--wp--custom--orange-08);
	border: 1px solid var(--wp--custom--orange-32);
	font-family: var(--wp--preset--font-family--signature);
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 900;
	line-height: 1.4;
	letter-spacing: var(--wp--custom--tracking-label);
	text-transform: uppercase;
}

/* Check mark drawn in CSS: a paragraph can't hold an icon. */
.rl-loads__badge::before {
	content: "";
	flex: none;
	width: 10px;
	height: 5px;
	margin-top: -3px;
	border-left: 2px solid var(--wp--preset--color--orange);
	border-bottom: 2px solid var(--wp--preset--color--orange);
	transform: rotate(-45deg);
}

.rl-pdp-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--40);
	margin-top: var(--wp--preset--spacing--40);
}

/* --- Photo call-outs -----------------------------------------------------
   background-size: cover crops the photo differently at every viewport, so
   the pin layer recreates the photo's rendered box with container units:
   cover scales to whichever side overflows, then offsets by the same
   fractions as background-position. --x/--y are % of the PHOTO itself.
   --rl-img-ratio (width / height) comes from the block's photo; 16 / 9 is
   only the fallback for a photo with unknown dimensions. */

.rl-hotspots {
	--rl-img-w: max(100cqw, 100cqh * (var(--rl-img-ratio, 16 / 9)));
	--rl-img-h: max(100cqh, 100cqw / (var(--rl-img-ratio, 16 / 9)));
	position: absolute;
	z-index: 1;
	left: calc((100cqw - var(--rl-img-w)) * var(--rl-hero-fx));
	top: calc((100cqh - var(--rl-img-h)) * var(--rl-hero-fy));
	width: var(--rl-img-w);
	height: var(--rl-img-h);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: rl-pin;
	pointer-events: none;
}

.rl-hotspots li {
	counter-increment: rl-pin;
	position: absolute;
	left: var(--x);
	top: var(--y);
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	margin: 0;
	transform: translate(-14px, -14px);
	font-size: var(--wp--preset--font-size--body-sm);
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

/* Dark chip: the canopy is white, so bare white text over it would vanish. */
.rl-hotspots li > span {
	padding: 5px 10px;
	background: color-mix(in srgb, var(--wp--preset--color--black) 82%, transparent);
	border: 1px solid var(--wp--preset--color--grey-600);
}

.rl-hotspots li::before {
	content: counter(rl-pin);
	flex: none;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	background: var(--wp--preset--color--orange);
	box-shadow: 0 0 0 6px var(--wp--custom--orange-32);
	font-family: var(--wp--preset--font-family--signature);
	font-size: 11px;
	font-weight: 900;
}

/* Label sits to the left of the pin for call-outs near the right edge. */
.rl-hotspots li.is-left {
	flex-direction: row-reverse;
	transform: translate(calc(-100% + 14px), -14px);
}

/* Reveal, one call-out at a time at every screen size: the pin pops in,
   then its label slides out from it, then the next. Add a line here for a
   fourth or fifth pin. */
.rl-hotspots li:nth-child(1) { --rl-pin-at: 600ms; }
.rl-hotspots li:nth-child(2) { --rl-pin-at: 1300ms; }
.rl-hotspots li:nth-child(3) { --rl-pin-at: 2000ms; }
.rl-hotspots li:nth-child(4) { --rl-pin-at: 2700ms; }
.rl-hotspots li:nth-child(5) { --rl-pin-at: 3400ms; }

.rl-hotspots li::before {
	animation: rlPinIn 360ms var(--rl-pin-at, 0ms) both var(--wp--custom--ease-standard);
}

.rl-hotspots li > span {
	--rl-label-from: -10px;
	animation: rlLabelIn 360ms calc(var(--rl-pin-at, 0ms) + 220ms) both var(--wp--custom--ease-standard);
}

.rl-hotspots li.is-left > span {
	--rl-label-from: 10px;
}

@keyframes rlPinIn {
	from { opacity: 0; transform: scale(.3); }
	to   { opacity: 1; transform: none; }
}

@keyframes rlLabelIn {
	from { opacity: 0; transform: translateX(var(--rl-label-from)); }
	to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.rl-hotspots li::before,
	.rl-hotspots li > span {
		animation: none;
	}
}

/* ==================================================================
   03 — Spec tiles
   ================================================================== */

.rl-specs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
	gap: var(--wp--preset--spacing--60);
}

.rl-spec {
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--grey-800);
	border: 1px solid var(--wp--preset--color--grey-700);
}

.rl-spec::before {
	content: "";
	width: 72px;
	height: 3px;
	background: var(--wp--preset--color--orange);
}

.rl-spec__body {
	flex: 1;
	padding: var(--wp--preset--spacing--60) 28px var(--wp--preset--spacing--70);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rl-spec__value {
	font-family: var(--wp--preset--font-family--headline);
	font-size: 40px;
	line-height: 1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

/* The unit ("kg") is the orange mark after the number. */
.rl-spec__value mark {
	font-size: 24px;
}

.rl-spec__note {
	font-size: var(--wp--preset--font-size--body-sm);
	font-weight: 600;
	color: var(--wp--preset--color--orange);
}

.rl-swatches {
	display: flex;
	gap: var(--wp--preset--spacing--20);
}

.rl-swatch {
	flex: none;
	width: 20px;
	height: 20px;
	border: 1px solid var(--wp--preset--color--grey-500);
}

.rl-swatch--black { background: var(--wp--preset--color--black); }
.rl-swatch--white { background: var(--wp--preset--color--white); }

/* ==================================================================
   04 — Features
   ================================================================== */

/* Three corner-marked pillars: Structure / Panels / Everyday access. */
.rl-pillars {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	gap: var(--wp--preset--spacing--80) var(--wp--preset--spacing--90);
	padding-top: var(--wp--preset--spacing--30);
}

.rl-pillar {
	padding: var(--wp--preset--spacing--60) 0 0 var(--wp--preset--spacing--60);
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
}

.rl-pillar h3 {
	font-size: var(--wp--preset--font-size--heading-sm);
}

.rl-pillar ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--10);
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.4;
	color: var(--wp--preset--color--grey-200);
}

/* 2 x 2 at every width above phone. */
.rl-features {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--80) var(--wp--preset--spacing--60);
}

.rl-feature {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--40);
}

.rl-feature img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	background: var(--wp--preset--color--grey-900);
}

.rl-feature__caption {
	padding-left: var(--wp--preset--spacing--30);
	border-left: 2px solid var(--wp--preset--color--orange);
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--10);
}

.rl-feature h3 {
	font-size: 28px;
	line-height: 1;
}

.rl-feature p {
	font-size: var(--wp--preset--font-size--body);
	color: var(--wp--preset--color--grey-200);
}

/* Three features in one row. One column on tablets down. */
.rl-features--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 767px) {
	.rl-features--three {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ==================================================================
   05 — Series chooser + comparison
   ================================================================== */

.rl-series-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
	gap: var(--wp--preset--spacing--60);
}

.rl-series {
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--grey-800);
	border: 1px solid var(--wp--preset--color--grey-700);
}

/* Fixed-ratio stage; the cut-out is fitted inside it so both cards line up
   whatever the source image's proportions. */
.rl-series__media {
	--rl-stage-pad: var(--wp--preset--spacing--70);
	position: relative;
	aspect-ratio: 16 / 9;
	background:
		radial-gradient(ellipse 70% 60% at 50% 70%, var(--wp--custom--orange-08), transparent 70%),
		var(--wp--preset--color--black);
	border-bottom: 1px solid var(--wp--preset--color--grey-700);
}

.rl-series__media img {
	position: absolute;
	top: var(--rl-stage-pad);
	left: var(--rl-stage-pad);
	width: calc(100% - 2 * var(--rl-stage-pad));
	height: calc(100% - 2 * var(--rl-stage-pad));
	object-fit: contain;
}

.rl-series__body {
	flex: 1;
	padding: var(--wp--preset--spacing--70);
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--60);
}

.rl-series__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--60);
}

.rl-series__name {
	font-size: clamp(48px, 5vw, 72px);
	line-height: .86;
}

.rl-series__name strong {
	font-weight: 400;
	color: var(--wp--preset--color--orange);
}

.rl-series__key {
	flex: none;
	width: 56px;
}

.rl-series__key img {
	display: block;
	width: 100%;
	height: auto;
}

.rl-series__headline {
	margin-top: var(--wp--preset--spacing--30);
	font-family: var(--wp--preset--font-family--headline);
	font-size: 28px;
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.rl-series__desc {
	margin-top: var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--body);
	color: var(--wp--preset--color--grey-200);
}

/* Which doors the vehicle remote operates — the one thing that differs.
   Each chip names the door and says how it locks, so the state is in the
   text and not only in the colour. */
.rl-doors {
	margin-top: auto;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--20);
}

.rl-door {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: var(--wp--preset--spacing--30);
	border: 1px solid var(--wp--preset--color--grey-600);
	font-size: var(--wp--preset--font-size--body-sm);
	line-height: 1.25;
	color: var(--wp--preset--color--grey-300);
}

/* Padlock for remote doors, a dash for key-only ones; drawn with a mask so
   it takes the text colour. */
.rl-door::before {
	content: "";
	width: 18px;
	height: 18px;
	margin-bottom: var(--wp--preset--spacing--10);
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rl-door--on {
	border-color: var(--wp--preset--color--orange);
	background: var(--wp--custom--orange-08);
	color: var(--wp--preset--color--white);
}

.rl-door--on::before {
	background: var(--wp--preset--color--orange);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='5' y='11' width='14' height='10'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='5' y='11' width='14' height='10'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
}

.rl-door__state {
	font-size: var(--wp--preset--font-size--caption);
	color: var(--wp--preset--color--grey-300);
}

.rl-door--on .rl-door__state {
	color: var(--wp--preset--color--orange);
}

/* Option card: a full-bleed photo in place of a fitted cut-out. */
.rl-series--photo .rl-series__media {
	--rl-stage-pad: 0px;
}

.rl-series--photo .rl-series__media img {
	object-fit: cover;
}

/* The same chips listing an option's traits: no lock icon, white title. */
.rl-doors--traits .rl-door::before {
	display: none;
}

.rl-doors--traits .rl-door > p:first-child {
	font-weight: 600;
	color: var(--wp--preset--color--white);
}

@media (max-width: 767px) {
	.rl-doors--traits {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Shared-feature icon strip. */
.rl-badges {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border-block: 1px solid var(--wp--preset--color--grey-700);
}

.rl-badge {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--40);
	padding: var(--wp--preset--spacing--60);
	font-size: var(--wp--preset--font-size--body);
	font-weight: 600;
}

.rl-badge + .rl-badge {
	border-left: 1px solid var(--wp--preset--color--grey-700);
}

.rl-badge .wp-block-image {
	flex: none;
}

/* Supplied PNG icons. Their canvases differ in width but not much in
   height, so fixing the height keeps the artwork optically even. */
.rl-badge img {
	display: block;
	width: auto;
	height: 48px;
}

.rl-compare-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr));
	gap: var(--wp--preset--spacing--60) var(--wp--preset--spacing--80);
	align-items: start;
}

/* core/table renders figure > table + figcaption; the caption reads as the
   table's label, so it moves above the table. */
.rl-compare {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.rl-compare figcaption {
	order: -1;
	margin: 0;
	padding-bottom: var(--wp--preset--spacing--40);
	font-family: var(--wp--preset--font-family--signature);
	font-size: 10px;
	font-weight: 900;
	line-height: 1.4;
	letter-spacing: var(--wp--custom--tracking-label);
	text-align: left;
	text-transform: uppercase;
	color: var(--wp--preset--color--grey-300);
}

.rl-compare table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--body);
	color: var(--wp--preset--color--white);
}

.rl-compare thead {
	border: 0;
}

.rl-compare th,
.rl-compare td {
	padding: 14px var(--wp--preset--spacing--40);
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--grey-700);
	text-align: left;
	vertical-align: middle;
}

.rl-compare thead th {
	padding-block: 0 var(--wp--preset--spacing--30);
	white-space: nowrap;
	border-bottom-color: var(--wp--preset--color--grey-600);
	font-family: var(--wp--preset--font-family--headline);
	font-size: 22px;
	font-weight: 400;
	letter-spacing: var(--wp--custom--tracking-button);
	text-transform: uppercase;
}

.rl-compare thead th:first-child {
	padding-left: 0;
}

.rl-compare tbody th {
	padding-left: 0;
	font-weight: 400;
	color: var(--wp--preset--color--grey-200);
}

.rl-compare th:not(:first-child),
.rl-compare td {
	width: 110px;
	text-align: center;
}

.rl-compare td[colspan] {
	width: auto;
	font-weight: 600;
}

/* "Included": a ✓ given the orange inline colour in the editor becomes the
   orange disc with a white tick. */
.rl-compare td mark.has-orange-color {
	display: inline-grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background-color: var(--wp--preset--color--orange) !important; /* beats the mark's inline transparent background */
	color: var(--wp--preset--color--white) !important;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

/* Small second line under a value ("1 door"), set in grey in the editor. */
.rl-compare td mark.has-grey-300-color {
	display: block;
	font-size: var(--wp--preset--font-size--caption);
	line-height: 1.3;
}

/* ==================================================================
   06 — Compatible models
   ================================================================== */

/* Hairline grid drawn by the cells themselves (right + bottom edges), so a
   short last row leaves blank space rather than a filled grey hole. */
.rl-models {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
	border-top: 1px solid var(--wp--preset--color--grey-700);
	border-left: 1px solid var(--wp--preset--color--grey-700);
}

.rl-model {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--10);
	padding: var(--wp--preset--spacing--60);
	background: var(--wp--preset--color--grey-900);
	border-right: 1px solid var(--wp--preset--color--grey-700);
	border-bottom: 1px solid var(--wp--preset--color--grey-700);
}

.rl-model__name {
	font-family: var(--wp--preset--font-family--headline);
	font-size: 26px;
	line-height: 1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.rl-model__name sup {
	margin-left: 2px;
	font-size: .6em;
	color: var(--wp--preset--color--orange);
}

.rl-model__detail {
	font-size: var(--wp--preset--font-size--body-sm);
	color: var(--wp--preset--color--grey-300);
}

.rl-fitnote {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--60);
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60);
	background: var(--wp--custom--orange-08);
	border: 1px solid var(--wp--custom--orange-32);
}

.rl-fitnote__label {
	flex: none;
	padding: 6px 12px;
	background: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--white);
}

.rl-fitnote p:not(.rl-fitnote__label) {
	flex: 1 1 320px;
	font-size: var(--wp--preset--font-size--body-sm);
	color: var(--wp--preset--color--grey-200);
}

/* ==================================================================
   07 — Quote CTA banner
   Closes the page in place of a second contact form (the homepage owns
   that). The photo is the group's own background (Styles > Background),
   which WordPress writes inline at render time; copy stacks on the left over
   a dark scrim, and orange is kept for the subtitle and the primary CTA.
   ================================================================== */

.rl-cta {
	max-width: 1440px;
	margin-inline: auto;
	padding: 0 var(--rl-gutter) 96px;
}

.rl-cta__inner {
	position: relative;
	overflow: hidden;
	min-height: 420px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--60);
	padding: var(--wp--preset--spacing--80) clamp(24px, 4vw, 56px);
	background-color: var(--wp--preset--color--black);
	background-repeat: no-repeat;
	color: var(--wp--preset--color--white);
}

/* Scrim: dark enough behind the copy for 4.5:1 text, clear over the truck. */
.rl-cta__inner::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, color-mix(in srgb, var(--wp--preset--color--black) 88%, transparent) 0%, color-mix(in srgb, var(--wp--preset--color--black) 70%, transparent) 35%, transparent 65%);
}

.rl-cta__inner > * {
	position: relative;
	z-index: 1;
	max-width: 480px;
}

.rl-cta__title {
	font-size: var(--wp--preset--font-size--display-sm);
	color: var(--wp--preset--color--white);
}

.rl-cta__sub {
	margin-top: var(--wp--preset--spacing--30);
	font-family: var(--wp--preset--font-family--signature);
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 900;
	line-height: 1.4;
	letter-spacing: var(--wp--custom--tracking-eyebrow);
	text-transform: uppercase;
	color: var(--wp--preset--color--orange);
}

.rl-cta__copy {
	max-width: 420px;
	font-size: var(--wp--preset--font-size--body);
	line-height: var(--wp--custom--leading-body);
	color: var(--wp--preset--color--grey-200);
}

.rl-cta__btn {
	margin-top: var(--wp--preset--spacing--20);
}

/* ==================================================================
   08 — Phone quote bar
   Phones only. Hidden while the CTA banner or footer is on screen, so it
   never doubles up on the banner's own button.
   ================================================================== */

.rl-quotebar {
	display: none;
}

/* ==================================================================
   09 — Breakpoints
   ================================================================== */

@media (max-width: 1200px) {
	.rl-subnav__title {
		display: none;
	}

	/* Photo becomes a 2:1 band and the copy rides up onto its dark floor, so
	   photo and copy still read as one section.
	   2:1 is a touch wider than the shot, so cover leaves vertical slack;
	   bottom-aligning it (fy 1) trims empty dark sky rather than floor and
	   lifts the canopy away from the copy. Its legs then end about 35vw down
	   the 50vw-tall band, so copy starting at 37.5vw (overlap 12.5vw) clears
	   them. Right-aligned (fx 1) so the canopy, in the right half of the
	   shot, fills the frame. */
	.rl-pdp-hero {
		--rl-hero-fx: 1;
		--rl-hero-fy: 1;
		--rl-hero-overlap: 12.5vw;
		grid-template-rows: none;
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
		padding-block: 0 96px;
	}

	.rl-pdp-hero__head,
	.rl-pdp-hero__body {
		grid-row: auto;
	}

	/* Photo first; head and body follow it in source order. Grid, not flex:
	   a flex column will not size a size-contained box from aspect-ratio. */
	.rl-pdp-hero__stage {
		order: -1;
		position: relative;
		inset: auto;
		width: 100%;
		aspect-ratio: 2 / 1;
	}

	/* Deeper bottom scrim: the copy now starts on this part of the photo. */
	.rl-pdp-hero__stage::before {
		background: linear-gradient(0deg, var(--wp--preset--color--black) 0%, color-mix(in srgb, var(--wp--preset--color--black) 70%, transparent) 20%, transparent 42%);
	}

	.rl-pdp-hero__head {
		margin-top: calc(-1 * var(--rl-hero-overlap));
	}

	.rl-pdp-hero__head > *,
	.rl-pdp-hero__body > * {
		max-width: 640px;
	}
}

@media (max-width: 1100px) {
	.rl-cta__inner > * {
		max-width: 420px;
	}

	.rl-cta__inner::before {
		background: linear-gradient(90deg, color-mix(in srgb, var(--wp--preset--color--black) 88%, transparent) 0%, color-mix(in srgb, var(--wp--preset--color--black) 78%, transparent) 45%, color-mix(in srgb, var(--wp--preset--color--black) 20%, transparent) 85%);
	}

	.rl-badges {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rl-badge:nth-child(3) {
		border-left: 0;
	}

	.rl-badge:nth-child(n + 3) {
		border-top: 1px solid var(--wp--preset--color--grey-700);
	}
}

@media (max-width: 767px) {
	.rl-section__inner {
		padding-block: var(--wp--preset--spacing--90);
	}

	/* Phones: head, then photo, then body, in source order. 4:3 centred
	   crop. */
	.rl-pdp-hero {
		--rl-hero-fy: .5;
		--rl-hero-overlap: 0px;
	}

	.rl-pdp-hero__stage {
		order: 0;
		margin-top: var(--wp--preset--spacing--60);
		aspect-ratio: 4 / 3;
	}

	.rl-pdp-hero__stage::before {
		background: linear-gradient(0deg, var(--wp--preset--color--black) 0%, transparent 22%);
	}

	.rl-pdp-hero__head {
		padding-top: var(--wp--preset--spacing--70);
	}

	/* Labels stay on the photo, scaled down to fit a phone-width shot. */
	.rl-hotspots li {
		gap: 6px;
		transform: translate(-11px, -11px);
		font-size: var(--wp--preset--font-size--caption);
	}

	.rl-hotspots li.is-left,
	.rl-hotspots li.is-left-sm {
		flex-direction: row-reverse;
		transform: translate(calc(-100% + 11px), -11px);
	}

	/* Flipped labels slide in from the right, like .is-left. */
	.rl-hotspots li.is-left-sm > span {
		--rl-label-from: 10px;
	}

	.rl-hotspots li > span {
		padding: 3px 7px;
	}

	.rl-hotspots li::before {
		width: 22px;
		height: 22px;
		box-shadow: 0 0 0 4px var(--wp--custom--orange-32);
		font-size: 10px;
	}

	.rl-quotebar {
		position: fixed;
		inset: auto 0 0;
		z-index: 25;
		display: flex;
		align-items: center;
		gap: var(--wp--preset--spacing--40);
		padding: var(--wp--preset--spacing--30) 20px calc(var(--wp--preset--spacing--30) + env(safe-area-inset-bottom));
		background: var(--wp--preset--color--black);
		border-top: 1px solid var(--wp--preset--color--grey-700);
		transition: transform 200ms var(--wp--custom--ease-standard);
	}

	.rl-quotebar.is-hidden {
		transform: translateY(100%);
	}

	.rl-quotebar__label {
		flex: 1;
		min-width: 0;
		font-family: var(--wp--preset--font-family--headline);
		font-size: var(--wp--preset--font-size--lead);
		line-height: 1.1;
		text-transform: uppercase;
	}

	.rl-quotebar .wp-block-buttons {
		flex: none;
	}

	.rl-quotebar .wp-block-button__link {
		height: var(--wp--custom--control-h-md);
		padding-inline: 18px;
		font-size: var(--wp--preset--font-size--btn);
		line-height: var(--wp--custom--control-h-md);
	}

	.rl-product {
		padding-bottom: 72px;
	}
}

@media (max-width: 560px) {
	.rl-features {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Stays 2 x 2, icon over label, so the strip doesn't become a long list. */
	.rl-badge {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--wp--preset--spacing--20);
		padding: var(--wp--preset--spacing--40);
		font-size: var(--wp--preset--font-size--body-sm);
	}

	.rl-badge img {
		height: 40px;
	}

	.rl-series__media {
		--rl-stage-pad: var(--wp--preset--spacing--40);
	}

	.rl-loads__row {
		gap: var(--wp--preset--spacing--40);
	}

	.rl-loads__item + .rl-loads__item {
		padding-left: var(--wp--preset--spacing--40);
	}

	.rl-models {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rl-model {
		padding: var(--wp--preset--spacing--40);
	}

	.rl-model__name {
		font-size: 22px;
	}

	.rl-series__body {
		padding: var(--wp--preset--spacing--60) 20px;
	}

	.rl-series__key {
		width: 44px;
	}

	.rl-door {
		padding: 10px;
		font-size: var(--wp--preset--font-size--caption);
	}

	.rl-compare th,
	.rl-compare td {
		padding-inline: var(--wp--preset--spacing--20);
	}

	.rl-compare th:not(:first-child),
	.rl-compare td {
		width: 64px;
	}

	.rl-compare thead th {
		font-size: 18px;
	}

	/* The photo becomes a band across the top and the copy sits on black
	   below it. !important because WordPress writes the group's background
	   size and position inline. */
	.rl-cta__inner {
		min-height: 0;
		padding-top: 236px;
		background-size: auto 260px !important;
		background-position: 90% 0 !important;
	}

	.rl-cta__inner::before {
		background: linear-gradient(180deg, transparent 0, transparent 140px, var(--wp--preset--color--black) 260px);
	}
}

/* ==================================================================
   10 — Editor canvas
   The animations never run on the canvas (an author must see every pin),
   and the pins become clickable so they can be selected and moved; the copy
   column lets clicks through to them where it has no content.
   ================================================================== */

.editor-styles-wrapper .rl-hotspots li::before,
.editor-styles-wrapper .rl-hotspots li > span {
	animation: none;
}

.editor-styles-wrapper .rl-hotspots,
.editor-styles-wrapper .rl-hotspots li {
	pointer-events: auto;
}

.editor-styles-wrapper .rl-pdp-hero__head,
.editor-styles-wrapper .rl-pdp-hero__body {
	pointer-events: none;
}

.editor-styles-wrapper .rl-pdp-hero__head > *,
.editor-styles-wrapper .rl-pdp-hero__body > * {
	pointer-events: auto;
}

/* The phone quote bar is fixed off-canvas on the front end; in the editor
   show it in place so it can be edited. */
.editor-styles-wrapper .rl-quotebar {
	position: static;
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--40);
	padding: var(--wp--preset--spacing--30) var(--rl-gutter);
	border-top: 1px dashed var(--wp--preset--color--grey-600);
	transform: none;
}

/* ==================================================================
   11 — Heavy-duty brake kit modifiers
   Small variants of existing components for content that doesn't fit the
   canopy's counts. Later in the file than §09, so they win at every width.
   ================================================================== */

/* Three-figure icon strip (friction / temperature / warranty): a label
   paragraph over a headline-font value paragraph. Their type is set inline
   on the blocks; these rules are the fallback. One row on desktop, stacked
   rows on phones. */
.rl-badges--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rl-badge__label {
	font-size: var(--wp--preset--font-size--body-sm);
	line-height: 1.3;
	color: var(--wp--preset--color--grey-300);
}

.rl-badge__value {
	margin-top: 6px;
	font-family: var(--wp--preset--font-family--headline);
	font-size: clamp(24px, 2.2vw, 30px);
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--wp--preset--color--white);
}

@media (max-width: 1100px) {
	.rl-badges--three .rl-badge:nth-child(3) {
		border-left: 1px solid var(--wp--preset--color--grey-700);
	}

	.rl-badges--three .rl-badge:nth-child(n + 3) {
		border-top: 0;
	}
}

@media (max-width: 767px) {
	.rl-badges--three {
		grid-template-columns: minmax(0, 1fr);
	}

	.rl-badges--three .rl-badge {
		flex-direction: row;
		align-items: center;
		gap: var(--wp--preset--spacing--40);
		padding: var(--wp--preset--spacing--40) 0;
	}

	.rl-badges--three .rl-badge + .rl-badge,
	.rl-badges--three .rl-badge:nth-child(3) {
		border-left: 0;
		border-top: 1px solid var(--wp--preset--color--grey-700);
	}
}

/* Two chips (OEM vs ROCKLINE) instead of three doors, side by side at every
   width. */
.rl-doors--pair {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Test-data tables: the ROCKLINE result, set bold in the editor, is orange. */
.rl-compare td strong {
	font-weight: 600;
	color: var(--wp--preset--color--orange);
}

/* ==================================================================
   12 — Heavy-duty suspension kit modifiers
   The canopy's value columns are 110px wide, sized for ✓ marks. The
   suspension tables hold words, so these give them room. Later than §09,
   so they win at every width.
   ================================================================== */

/* Shock comparison: one full-width table, two wide value columns. */
.rl-compare--wide th:not(:first-child),
.rl-compare--wide td {
	width: 30%;
}

.rl-compare--wide td[colspan] {
	width: auto;
}

/* Lift & load ratings: load (row header) then a left-aligned setup column. */
.rl-compare--rating tbody th {
	width: 38%;
	white-space: nowrap;
}

.rl-compare--rating th:not(:first-child),
.rl-compare--rating td {
	width: auto;
	text-align: left;
}

/* "Best for" line on a shock option card. Type is set inline on the block. */
.rl-series__best {
	margin-top: var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--body-sm);
	font-weight: 600;
}

@media (max-width: 767px) {
	.rl-compare--wide th:not(:first-child),
	.rl-compare--wide td {
		width: 34%;
	}

	.rl-compare--wide td[colspan],
	.rl-compare--rating th:not(:first-child),
	.rl-compare--rating td {
		width: auto;
	}
}

/* ==================================================================
   Catalog — /products/ and /product-category/{slug}/
   templates/archive-rockline_product.html, taxonomy-product_category.html.
   Typography and colours are block attributes in the templates; this only
   carries what a block support cannot: chips, card hover, equal heights.
   ================================================================== */

/* Category links as chips. The current category is filled orange. */
.rl-catalog__cats {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--30);
	margin: 0;
	padding: 0;
	list-style: none;
}

.rl-catalog__cats li {
	margin: 0;
}

.rl-catalog__cats a {
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--control-h-md);
	padding: 0 var(--wp--preset--spacing--50);
	border: 1px solid var(--wp--preset--color--grey-600);
	color: var(--wp--preset--color--white);
	text-decoration: none;
	transition: border-color var(--wp--custom--duration-fast) var(--wp--custom--ease-standard),
		background-color var(--wp--custom--duration-fast) var(--wp--custom--ease-standard);
}

.rl-catalog__cats a:hover,
.rl-catalog__cats a:focus-visible {
	border-color: var(--wp--preset--color--orange);
}

.rl-catalog__cats .current-cat > a {
	border-color: var(--wp--preset--color--orange);
	background: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--black);
}

/* Product card: equal heights in a row, "View product" pinned to the bottom. */
.rl-catalog__grid > li {
	display: flex;
}

.rl-prodcard {
	display: flex;
	flex-direction: column;
	width: 100%;
	border: 1px solid var(--wp--preset--color--grey-700);
	transition: border-color var(--wp--custom--duration-fast) var(--wp--custom--ease-standard);
}

.rl-prodcard:hover,
.rl-prodcard:focus-within {
	border-color: var(--wp--preset--color--orange);
}

.rl-prodcard__media {
	margin: 0;
	overflow: hidden;
	background: var(--wp--preset--color--grey-900);
}

.rl-prodcard__media img {
	transition: transform 400ms var(--wp--custom--ease-standard);
}

.rl-prodcard:hover .rl-prodcard__media img {
	transform: scale(1.04);
}

.rl-prodcard__body {
	flex: 1;
}

.rl-prodcard__name,
.rl-prodcard__copy p,
.rl-prodcard__kind {
	margin: 0;
}

.rl-prodcard__name a,
.rl-prodcard__kind a {
	text-decoration: none;
}

.rl-prodcard__name a:hover {
	color: var(--wp--preset--color--orange);
}

/* The read-more link sits at the foot of the card, whatever the excerpt length. */
.rl-prodcard__more {
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--40);
	text-decoration: none;
}

.rl-prodcard__more::after {
	content: " \2192";
}

.rl-catalog__pages {
	margin-top: var(--wp--preset--spacing--60);
	gap: var(--wp--preset--spacing--40);
}

.rl-catalog__pages .current {
	color: var(--wp--preset--color--orange);
}

@media (max-width: 600px) {
	.rl-catalog .rl-section__inner {
		gap: var(--wp--preset--spacing--70);
	}
}
