/*
Theme Name: eAutoFinance
Theme URI: http://dev.weblex.uz:8012
Author: eAutoFinance
Description: Used-car dealership theme, first pass from the HTML template.
Version: 1.4.14
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: eautofinance
*/

/* Fira Sans, latin subset, OFL (assets/fonts/fira-sans/OFL.txt). Self-hosted: the CSP only allows font-src 'self'. */
@font-face {
	font-family: "Fira Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/fira-sans/fira-sans-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Fira Sans";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/fira-sans/fira-sans-latin-500-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Fira Sans";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/fira-sans/fira-sans-latin-600-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Fira Sans";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/fira-sans/fira-sans-latin-700-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Fira Sans";
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src: url("assets/fonts/fira-sans/fira-sans-latin-900-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Design tokens. Source of truth: design/tokens/*.md — change values there first. */
:root {
	--color-bg-page: #fcfbfb;
	--color-bg-surface: #ffffff;
	--color-bg-subtle: #f5f5f5;
	--color-bg-muted: #f3f3f3;
	--color-bg-dark: #111111;
	--color-bg-accent-subtle: #d1e4ff;
	--color-scrim: rgba(0, 0, 0, 0.32);

	--color-fg-default: #111111;
	--color-fg-muted: #5c5c5c;
	--color-fg-on-dark: #ffffff;
	--color-fg-muted-on-dark: #c8c8c8;
	--color-fg-on-accent: #ffffff;
	--color-fg-on-accent-subtle: #001d36;
	--color-fg-danger: #b00020;

	--color-accent-primary: #006ab1;
	--color-accent-on-dark: #7eb8e8;
	--color-rating: #fbbc04;

	--color-border: #dbdbdb;
	--color-border-subtle: #f4f4f4;
	--color-border-strong: #72777f;
	--color-border-on-dark: rgba(200, 200, 200, 0.28);

	/* Dark surfaces (hero, callback band, footer): #111 under a
	   fine white grain, and a soft white spotlight behind the car (colors.md). */
	--surface-dark-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0.14 0 0 0 -0.055'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
	--surface-dark-glow: radial-gradient(closest-side, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05) 45%, rgba(255, 255, 255, 0));
	/* The white lot car behind the home hero and the footer, in grey: at 0.12
	   its brightest pixel under text is about #454545 (colors.md). */
	--surface-dark-car-opacity: 0.12;

	--color-focus: #111111;
	--color-focus-on-dark: #7eb8e8;

	--state-hover: rgba(17, 17, 17, 0.08);
	--state-hover-on-accent: rgba(255, 255, 255, 0.08);
	--state-hover-on-dark: rgba(255, 255, 255, 0.08);
	--state-pressed: rgba(17, 17, 17, 0.12);
	--state-pressed-on-accent: rgba(255, 255, 255, 0.1);

	--font-sans: "Fira Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--text-xs: 0.75rem;
	--leading-xs: 1rem;
	--text-sm: 0.875rem;
	--leading-sm: 1.25rem;
	--text-md: 1rem;
	--leading-md: 1.5rem;
	--text-lg: 1.125rem;
	--leading-lg: 1.75rem;
	--text-xl: 1.375rem;
	--leading-xl: 1.75rem;
	--text-2xl: 1.5rem;
	--leading-2xl: 2rem;
	--text-3xl: 2rem;
	--leading-3xl: 2.5rem;
	--text-display-min: 2.25rem;
	--text-display-max: 3.75rem;
	--text-display: clamp(var(--text-display-min), 1.5rem + 2.5vw, var(--text-display-max));
	--leading-display: 1.125;
	--weight-regular: 400;
	--weight-medium: 500;
	--weight-semibold: 600;
	--weight-bold: 700;

	/* Sizes are in rem, so the whole layout follows --root-size (spacing.md:
	   "Масштаб"). At the default 16px root they are the pixel values noted. */
	--root-size: 100%;
	--container-max: 82.5rem; /* 1320 */

	--space-1: 0.25rem; /* 4 */
	--space-2: 0.5rem; /* 8 */
	--space-3: 0.75rem; /* 12 */
	--space-4: 1rem; /* 16 */
	--space-5: 1.25rem; /* 20 */
	--space-6: 1.5rem; /* 24 */
	--space-8: 2rem; /* 32 */
	--space-10: 2.5rem; /* 40 */
	--space-12: 3rem; /* 48 */
	--card-inset: 0.9375rem; /* 15 */
	--card-gap: var(--space-6);
	--section-gap: var(--space-10);
	/* Marketing pages (home): content edge to the next section's heading.
	   clamp(64px, 8vw, 112px): ~64 at 390, ~80 at 1024, 112 from 1400. */
	--section-rhythm: clamp(calc(var(--space-12) + var(--space-4)), 8vw, calc(var(--space-12) * 2 + var(--space-4)));

	--chip-height: 2rem; /* 32 */
	--control-height: 2.5rem; /* 40 */
	--control-height-sm: 2.25rem; /* 36 */
	--touch-target: 3rem; /* 48 */
	--control-height-lg: 2.75rem; /* 44 */
	--field-height: 3.5rem; /* 56 */
	--header-height: 4.5rem; /* 72 */
	--logo-height: 2rem; /* 32 */
	--logo-height-sm: 1.75rem; /* 28 */
	--menu-max-height: 17.5rem; /* 280 */

	--radius-xs: 5px;
	--radius-sm: 8px;
	--radius-md: 10px;
	--radius-lg: 16px;
	--radius-full: 9999px;

	--shadow-card: 0 4px 24px rgba(225, 225, 225, 0.25);
	--shadow-menu: 0 4px 24px rgba(17, 17, 17, 0.12);
	--shadow-lift: 0 12px 32px rgba(17, 17, 17, 0.1);

	--focus-width: 2px;
	--focus-offset: 2px;
	--focus-ring: var(--focus-width) solid var(--color-focus);
	--focus-ring-on-dark: var(--focus-width) solid var(--color-focus-on-dark);

	--duration-short: 150ms;
	--duration-medium: 280ms;
	--duration-long: 400ms;
	--duration-leave: 200ms;
	--duration-roll: 500ms;
	--duration-arrive: 960ms;
	--ease-standard: cubic-bezier(0.2, 0, 0, 1);
	--ease-decelerate: cubic-bezier(0.05, 0.7, 0.1, 1);
	--ease-accelerate: cubic-bezier(0.3, 0, 1, 1);
	--ease-brake: cubic-bezier(0.25, 0.75, 0.3, 1);
	--ease-sway: cubic-bezier(0.45, 0, 0.55, 1);
	--roll-in: 36%;
	--roll-out: -20%;
	--lean: -1deg;
	--lean-back: 0.5deg;
	--stagger: 40ms;
	--lift: -2px;
}

/* Wide screens: the layout grows the way browser zoom grows it (client
   2026-10-15), through the root size; laptops, tablets and phones keep 16px.
   A percentage, so a reader's own default font size still counts. */
@media (min-width: 1600px) {
	:root {
		--root-size: 110%;
	}
}

@media (min-width: 1800px) {
	:root {
		--root-size: 120%;
	}
}

@media (min-width: 2400px) {
	:root {
		--root-size: 140%;
	}
}

html {
	font-size: var(--root-size);
}

@media (min-width: 1400px) {
	.container,
	.container-lg,
	.container-md,
	.container-sm,
	.container-xl,
	.container-xxl {
		max-width: var(--container-max);
	}
}

/* ==========================================================================
   Buttons: one system for every button and button-like link.
   - .eaf-btn              base: pill, --control-height (40), --text-sm, medium.
                           The md size: card buttons and other compact rows.
   - .eaf-btn--lg          --control-height-lg (44), --text-md: hero, header,
                           mobile menu, forms, footer, filter sheet, contact.
   - .eaf-btn--primary     brand fill, white text. One per view where possible.
   - .eaf-btn--secondary   1px outline, no fill: every other action.
   - .eaf-btn--on-dark     on #111 (hero, footer): the on-dark focus ring; the
                           secondary also takes the on-dark line, text, hover.
   - .eaf-btn--block       full width.
   Hover and press lay an inset layer over the fill; the fill never changes.
   Text buttons ("Clear all", "Show all N makes") and the Filters / Sort pills
   keep their own rules. An icon inside sits at 16px after the label.
   ========================================================================== */
.eaf-btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-1);
	min-height: var(--control-height);
	margin: 0;
	padding: 0 var(--space-5);
	border: 1px solid transparent;
	border-radius: var(--radius-full);
	background: transparent;
	color: var(--color-fg-default);
	font-family: var(--font-sans);
	font-size: var(--text-sm);
	font-weight: var(--weight-medium);
	line-height: var(--leading-sm);
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: none;
	cursor: pointer;
}

.eaf-btn.eaf-btn--lg {
	min-height: var(--control-height-lg);
	padding: 0 var(--space-6);
	font-size: var(--text-md);
	line-height: var(--leading-md);
}

.eaf-btn.eaf-btn--block {
	display: flex;
	width: 100%;
}

.eaf-btn > i {
	--fa-width: auto;
	font-size: 16px;
	line-height: 1;
}

.eaf-btn.eaf-btn--primary,
.eaf-btn.eaf-btn--primary:hover,
.eaf-btn.eaf-btn--primary:focus,
.eaf-btn.eaf-btn--primary:active {
	border-color: var(--color-accent-primary);
	background: var(--color-accent-primary);
	color: var(--color-fg-on-accent);
	text-decoration: none;
}

.eaf-btn.eaf-btn--secondary,
.eaf-btn.eaf-btn--secondary:hover,
.eaf-btn.eaf-btn--secondary:focus,
.eaf-btn.eaf-btn--secondary:active {
	border-color: var(--color-border-strong);
	background: transparent;
	color: var(--color-fg-default);
	text-decoration: none;
}

.eaf-btn.eaf-btn--secondary.eaf-btn--on-dark,
.eaf-btn.eaf-btn--secondary.eaf-btn--on-dark:hover,
.eaf-btn.eaf-btn--secondary.eaf-btn--on-dark:focus,
.eaf-btn.eaf-btn--secondary.eaf-btn--on-dark:active {
	border-color: var(--color-border-on-dark);
	color: var(--color-fg-on-dark);
}

.eaf-btn.eaf-btn--primary:hover {
	box-shadow: inset 0 0 0 100vmax var(--state-hover-on-accent);
}

.eaf-btn.eaf-btn--secondary:hover {
	box-shadow: inset 0 0 0 100vmax var(--state-hover);
}

.eaf-btn.eaf-btn--secondary.eaf-btn--on-dark:hover {
	box-shadow: inset 0 0 0 100vmax var(--state-hover-on-dark);
}

.eaf-btn.eaf-btn--primary:active {
	box-shadow: inset 0 0 0 100vmax var(--state-pressed-on-accent);
}

.eaf-btn.eaf-btn--secondary:active {
	box-shadow: inset 0 0 0 100vmax var(--state-pressed);
}

/* White at 10 %: the same layer as a pressed filled button. */
.eaf-btn.eaf-btn--secondary.eaf-btn--on-dark:active {
	box-shadow: inset 0 0 0 100vmax var(--state-pressed-on-accent);
}

.eaf-btn:focus-visible {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
}

.eaf-btn.eaf-btn--on-dark:focus-visible {
	outline: var(--focus-ring-on-dark);
	outline-offset: var(--focus-offset);
}

.eaf-btn:disabled {
	cursor: default;
}

.eaf-foot__logo img {
	display: block;
	width: auto;
	height: var(--logo-height-sm);
	filter: brightness(0) invert(1);
}

@media (min-width: 992px) {
	.eaf-foot__logo img {
		height: var(--logo-height);
	}
}

/* Home hero (docs/redesign.md §12–13): text, the Evox profile of a real lot
   car, one white search bar with quick links, the callback button. Dark
   surface, no vendor layers (skyline, circle, lightning).
   Below 992px: text → callback → car → search bar (field, chip strip,
   submit).
   From 992px everything stands on the bar as on a floor: the text block and
   the callback button are bottom-aligned on the left, the car on the right
   with its wheels on the bar's top edge; the bar sits half over the light
   page below. The car is decoration: no caption, no link. */
.banner-section-four {
	position: relative;
	isolation: isolate;
	padding-block: var(--space-6);
	background: var(--surface-dark-texture), var(--color-bg-dark);
	overflow-x: clip;
}

/* A lot car behind a dark surface (template-parts/backdrop-car.php): the
   white front 3/4 cutout of eaf_backdrop_car(), in grey at
   --surface-dark-car-opacity, under all content and cropped by the screen
   edge. It does not move. */
.eaf-backdrop-car {
	position: absolute;
	z-index: -1;
	display: block;
	opacity: var(--surface-dark-car-opacity);
	pointer-events: none;
}

.eaf-backdrop-car img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	filter: grayscale(1);
}

/* The header and the hero are one surface: the hero starts under the header,
   and its car runs up behind the menu. Below 992px it sits behind the
   heading; from 992px it fills the dark band on the left and fades out
   before the car standing on the bar. */
.eaf-backdrop-car--hero {
	top: 0;
	left: -18vw;
	width: min(150vw, 920px);
	-webkit-mask-image: linear-gradient(to right, var(--color-bg-dark) 45%, transparent 95%);
	mask-image: linear-gradient(to right, var(--color-bg-dark) 45%, transparent 95%);
}

@media (min-width: 992px) {
	.eaf-backdrop-car--hero {
		bottom: var(--space-12);
		left: -4vw;
		width: auto;
		-webkit-mask-image: linear-gradient(to right, var(--color-bg-dark) 35%, transparent 80%);
		mask-image: linear-gradient(to right, var(--color-bg-dark) 35%, transparent 80%);
	}

	.eaf-backdrop-car--hero img {
		width: auto;
		height: 100%;
	}
}

/* Dark surfaces share one treatment (colors.md, "Тёмные поверхности"): the
   grain is the surface's top background layer; the spotlight is a ::before at
   z-index -1 inside the surface's isolated stacking context, so it paints over
   the surface fill and under all content. Hero: behind the car box, so every
   car that rolls in reads lit. Band: behind the message, top left. Footer:
   faint, top right, behind the call group. None of them moves; the hero's
   light only settles in once, under the arriving car (motion.md). */
.eaf-hero__car::before,
.eaf-callback__message::before,
.eaf-foot__body::before {
	content: "";
	position: absolute;
	z-index: -1;
	background: var(--surface-dark-glow);
	pointer-events: none;
}

.eaf-hero__car::before {
	inset: -60% -25% -40%;
}

.eaf-callback__message::before {
	inset: -45% 5% 25% -35%;
}

.eaf-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas:
		"text"
		"car"
		"search";
	gap: var(--space-4);
}

.eaf-hero__text,
.eaf-hero__car,
.eaf-hero__search {
	min-width: 0;
}

.eaf-hero__text {
	grid-area: text;
}

.banner-section-four .eaf-hero h1 {
	margin: 0 0 var(--space-4);
	color: var(--color-fg-on-dark);
	font-size: var(--text-display);
	line-height: var(--leading-display);
	text-align: left;
	text-wrap: balance;
}

.banner-section-four .eaf-hero h1::before {
	content: none;
}

.banner-section-four .eaf-hero p {
	margin: 0;
	text-align: left;
}

.banner-section-four .eaf-hero .eaf-hero__lead {
	max-width: 56ch;
	margin-bottom: var(--space-4);
	color: var(--color-fg-muted-on-dark);
	font-size: var(--text-lg);
	line-height: var(--leading-lg);
}

/* The address: one quiet line under the lead. */
.banner-section-four .eaf-hero .eaf-hero__address {
	color: var(--color-fg-muted-on-dark);
	font-size: var(--text-md);
	line-height: var(--leading-md);
}

/* The lot: Evox profiles trimmed to the car and its soft shadow (about
   2.3–3.1 : 1, 1200 px wide). One stage for all of them, as tall as the
   tallest profile in the lineup needs (--eaf-lot-ratio, set from the data),
   so the bar never moves when another car rolls in. Every car stands on the
   stage's bottom edge and its right end (contain, bottom right); eaf-lot.js
   stacks the incoming car over the outgoing one.
   The car leans around its rear wheel (bottom, about 80 % across a profile
   facing left). */
.eaf-hero__car {
	grid-area: car;
	justify-self: center;
	position: relative;
	width: 100%;
	max-width: 640px;
	margin: 0;
}

.eaf-hero__stage {
	position: relative;
	aspect-ratio: var(--eaf-lot-ratio, 5 / 2);
}

.eaf-hero__pic {
	position: absolute;
	inset: 0;
	display: block;
	transform-origin: 80% 100%;
}

canvas.eaf-hero__pic {
	width: 100%;
	height: 100%;
}

.eaf-hero__pic img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: right bottom;
}

/* Search bar: a white block. Below 992px the parts stack (field on a subtle
   fill, a chip strip that runs to the bar's edges, the submit full width). */
.eaf-hero__search {
	grid-area: search;
	padding: var(--space-3);
	border-radius: var(--radius-md);
	background: var(--color-bg-surface);
	box-shadow: var(--shadow-menu);
}

.eaf-hero__form {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-3);
	margin: 0;
}

.eaf-hero__field {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--space-2);
	padding-inline: var(--space-3);
	border-radius: var(--radius-sm);
	background: var(--color-bg-subtle);
}

.eaf-hero__field > i {
	flex: 0 0 auto;
	color: var(--color-fg-muted);
	font-size: 20px;
}

.eaf-hero__field input {
	flex: 1 1 auto;
	min-width: 0;
	height: var(--control-height-lg);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--color-fg-default);
	font-family: var(--font-sans);
	font-size: var(--text-md);
	line-height: var(--leading-md);
	box-shadow: none;
	outline: none;
}

.eaf-hero__field input::placeholder {
	color: var(--color-fg-muted);
	opacity: 1;
}

/* The ring sits on the field, not the bare input. */
.eaf-hero__field:focus-within {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
}

/* Quick links: catalog chips with a live count. The padding keeps focus
   rings inside the scroll clip. */
.eaf-hero__chips {
	display: flex;
	gap: var(--space-2);
	margin: 0 calc(var(--space-3) * -1);
	padding: var(--space-1) var(--space-3);
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
}

.eaf-hero__chips::-webkit-scrollbar {
	display: none;
}

.eaf-hero__chips li {
	flex: 0 0 auto;
}

.eaf-hero__chip,
.eaf-hero__chip:hover,
.eaf-hero__chip:focus {
	color: var(--color-fg-default);
	text-decoration: none;
}

.eaf-hero__count {
	color: var(--color-fg-muted);
	font-weight: var(--weight-regular);
}

.eaf-hero__submit {
	width: 100%;
}

/* Inside the white bar the ring is the light-surface one. */
.banner-section-four .eaf-hero__search :focus-visible,
.banner-section-four .eaf-hero__search a:focus-visible {
	outline-color: var(--color-focus);
}

/* The one entrance (motion.md, "Hero"): on first paint, and again when
   eaf-vt.js brings the home page in, the first car drives in from the right
   and brakes into place. Three parts on separate properties so each keeps its
   own curve: the travel (--ease-brake), the opacity (in by 30 % of the way)
   and the lean (nose dips while braking, rocks back, settles). The light
   under it settles a beat later. Swaps
   after that are eaf-lot.js, only on a chip or the search. */
@media (prefers-reduced-motion: no-preference) {
	.eaf-hero__pic[data-eaf-lot-first] {
		animation:
			eaf-car-roll var(--duration-arrive) var(--ease-brake) both,
			eaf-car-show calc(var(--duration-arrive) * 0.3) linear both,
			eaf-car-lean var(--duration-arrive) linear both;
	}

	.eaf-hero__car::before {
		animation: eaf-car-show calc(var(--duration-arrive) - var(--duration-leave)) var(--ease-standard) var(--duration-leave) both;
	}
}

@keyframes eaf-car-roll {
	from {
		translate: var(--roll-in) 0;
	}
}

@keyframes eaf-car-show {
	from {
		opacity: 0;
	}
}

/* Level while rolling, nose down as the brakes bite, a small rock back when
   it stops, level. */
@keyframes eaf-car-lean {
	0%,
	30% {
		rotate: 0deg;
		animation-timing-function: var(--ease-sway);
	}

	68% {
		rotate: var(--lean);
		animation-timing-function: var(--ease-sway);
	}

	86% {
		rotate: var(--lean-back);
		animation-timing-function: var(--ease-sway);
	}

	100% {
		rotate: 0deg;
	}
}

/* From 768px the bar is one row: field, hairline, submit; chips under it. */
@media (min-width: 768px) {
	.eaf-hero__car {
		max-width: 520px;
	}

	.eaf-hero__search {
		padding: var(--space-3) var(--space-3) var(--space-4) var(--space-4);
	}

	.eaf-hero__form {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"field submit"
			"row row";
		column-gap: var(--space-6);
	}

	.eaf-hero__field {
		grid-area: field;
		padding-inline: var(--space-1) var(--space-3);
		background: transparent;
	}

	/* Hairline between the field and the submit. */
	.eaf-hero__field::after {
		content: "";
		position: absolute;
		top: var(--space-2);
		bottom: var(--space-2);
		right: calc(var(--space-3) * -1);
		width: 1px;
		background: var(--color-border);
	}

	.eaf-hero__row {
		grid-area: row;
	}

	.eaf-hero__chips {
		flex-wrap: wrap;
		margin: 0;
		padding: 0;
		overflow: visible;
	}

	.eaf-hero__submit {
		grid-area: submit;
		width: auto;
	}
}

/* From 992px everything stands on the bar. One row above it: the text block
   centred on the car, --space-8 clear of the bar; the car overlaps the bar by
   --space-2, so its wheels touch the bar's top edge (the bar is drawn over
   the car's transparent bottom padding). */
@media (min-width: 992px) {
	/* The dark band stops half-way down the bar; the rest is the page. */
	.banner-section-four {
		padding-block: var(--section-rhythm) 0;
		background: var(--surface-dark-texture), linear-gradient(to bottom, var(--color-bg-dark) calc(100% - var(--space-12)), transparent 0);
	}

	.eaf-hero {
		grid-template-areas:
			"text"
			"search";
		gap: 0;
	}

	.eaf-hero.eaf-hero--car {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
		grid-template-areas:
			"text car"
			"search search";
		column-gap: var(--space-12);
	}

	.eaf-hero__text {
		align-self: center;
		padding-bottom: var(--space-8);
	}

	.eaf-hero__car {
		position: relative;
		align-self: end;
		justify-self: end;
		max-width: 41.25rem; /* 660 */
		margin-bottom: calc(var(--space-2) * -1);
	}

	.eaf-hero__search {
		position: relative;
		z-index: 1;
	}

	/* Chips from the left; the rest of the row stays empty under the car. */
	.eaf-hero__row {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
	}
}

/* Footer. Vendor squares, yellow title rule, and #212121 bar are turned off. */
.footer.eaf-foot {
	isolation: isolate;
	overflow-x: clip;
	background: var(--surface-dark-texture), var(--color-bg-dark);
	color: var(--color-fg-muted-on-dark);
	font-family: var(--font-sans);
	word-spacing: normal;
	letter-spacing: normal;
	padding: 0 0 var(--space-6);
}

.footer.eaf-foot::before,
.footer.eaf-foot::after {
	content: none;
	display: none;
}

.eaf-foot__press {
	background: var(--color-bg-surface);
	padding: var(--space-5) 0;
}

/* Press logos and trust seals: one file per logo, all cut at their strip's
   height (footer.php). Press fills the row, every logo shrinking by the same
   ratio from its natural width; seals keep one height. */
.eaf-foot__logos {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.eaf-foot__logos li {
	flex: 0 1 auto;
	min-width: 0;
}

.eaf-foot__logos img {
	display: block;
	width: 100%;
	height: auto;
}

/* The dark part: the car behind it is cropped by the screen edge. */
.eaf-foot__main {
	position: relative;
}

.eaf-foot__body {
	position: relative;
	padding-top: var(--space-10);
}

/* The footer's spotlight: faint, top right, over the car. */
.eaf-foot__body::before {
	top: 0;
	right: -60%;
	width: 140%;
	aspect-ratio: 2 / 1;
	opacity: 0.7;
}

@media (min-width: 992px) {
	.eaf-foot__body {
		padding-top: var(--space-12);
	}

	.eaf-foot__body::before {
		right: -20%;
		width: 70%;
	}
}

/* One grid. The brand column (logo, statement, call group, social) leads;
   then Used Cars, Quick Links, Information.
   Below 768px: brand, then Used Cars and Quick Links side by side, then
   Information. 768–991px: brand across (call group on the right), then three
   columns. From 992px: four columns in one row.
   Two type sizes only: column titles and the phone at --text-md, everything
   else at --text-sm. */
.eaf-foot__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-8) var(--space-6);
}

.eaf-foot__brand,
.eaf-foot__col--info {
	grid-column: 1 / -1;
}

.eaf-foot__brand {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	justify-items: start;
	align-content: start;
	gap: var(--space-4);
}

.eaf-foot__logo {
	display: block;
	border-radius: var(--radius-sm);
}

.eaf-foot__statement {
	max-width: 52ch;
	margin: 0;
	color: var(--color-fg-muted-on-dark);
	font-size: var(--text-sm);
	line-height: var(--leading-sm);
	font-weight: var(--weight-regular);
	text-wrap: pretty;
}

.eaf-foot__call {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin-top: var(--space-2);
}

.eaf-foot__call-label {
	margin: 0;
	color: var(--color-fg-muted-on-dark);
	font-size: var(--text-sm);
	line-height: var(--leading-sm);
}

.eaf-foot .eaf-foot__cta {
	margin-top: var(--space-3);
}

@media (min-width: 768px) {
	.eaf-foot__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.eaf-foot__brand {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"logo call"
			"statement call";
		column-gap: var(--space-8);
	}

	.eaf-foot__logo {
		grid-area: logo;
	}

	.eaf-foot__statement {
		grid-area: statement;
	}

	.eaf-foot__call {
		grid-area: call;
		align-self: center;
		align-items: flex-end;
		margin-top: 0;
		text-align: right;
	}

	.eaf-foot__col--info {
		grid-column: auto;
	}
}

@media (min-width: 992px) {
	.eaf-foot__grid {
		grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 3fr);
		gap: var(--space-8);
	}

	.eaf-foot__brand {
		grid-column: auto;
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: none;
	}

	.eaf-foot__logo,
	.eaf-foot__statement,
	.eaf-foot__call {
		grid-area: auto;
	}

	.eaf-foot__call {
		align-self: start;
		align-items: flex-start;
		margin-top: var(--space-2);
		text-align: left;
	}
}

.eaf-foot a {
	color: var(--color-fg-muted-on-dark);
	text-decoration: none;
}

.eaf-foot a:focus-visible {
	outline: var(--focus-ring-on-dark);
	outline-offset: var(--focus-offset);
}

.eaf-foot a.eaf-foot__phone {
	color: var(--color-fg-on-dark);
	font-size: var(--text-md);
	line-height: var(--leading-md);
	font-weight: var(--weight-medium);
	white-space: nowrap;
}

.eaf-foot a.eaf-foot__phone:hover,
.eaf-foot__list a:hover,
.eaf-foot__legal a:hover,
.eaf-foot .eaf-foot__powered a:hover {
	color: var(--color-accent-on-dark);
}

.eaf-foot__label {
	margin: 0 0 var(--space-3);
	color: var(--color-fg-on-dark);
	font-size: var(--text-md);
	line-height: var(--leading-md);
	font-weight: var(--weight-medium);
}

.eaf-foot__list,
.eaf-foot__legal {
	list-style: none;
	margin: 0;
	padding: 0;
}

.eaf-foot__list {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-1);
}

.eaf-foot__list a {
	display: inline-block;
	padding: var(--space-1) 0;
	font-size: var(--text-sm);
	line-height: var(--leading-sm);
}

.eaf-foot__address {
	margin: 0 0 var(--space-3);
	color: var(--color-fg-muted-on-dark);
	font-size: var(--text-sm);
	line-height: var(--leading-sm);
	font-style: normal;
}

.eaf-foot__hours {
	display: flex;
	flex-direction: column;
	margin: 0;
	color: var(--color-fg-muted-on-dark);
	font-size: var(--text-sm);
	line-height: var(--leading-sm);
	font-variant-numeric: tabular-nums;
}

.eaf-foot__seals {
	margin-top: var(--space-10);
	padding-top: var(--space-6);
	border-top: 1px solid var(--color-border-on-dark);
}

.eaf-foot__logos--seals {
	max-width: 47.5rem; /* 760 */
	margin-inline: auto;
}

.eaf-foot__logos--seals li {
	flex: none;
}

.eaf-foot__logos--seals img {
	width: auto;
	height: 2.5rem;
}

.eaf-foot__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	flex-wrap: wrap;
	margin-top: var(--space-6);
	padding-top: var(--space-4);
	border-top: 1px solid var(--color-border-on-dark);
}

.eaf-foot__bar p {
	margin: 0;
	font-size: var(--text-sm);
	line-height: var(--leading-sm);
	color: var(--color-fg-muted-on-dark);
}

.eaf-foot__powered {
	white-space: nowrap;
}

/* A link inside the sentence: underlined, so it does not lean on colour. */
.eaf-foot .eaf-foot__powered a {
	color: var(--color-fg-on-dark);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.eaf-foot__legal {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2) var(--space-5);
	padding-right: var(--space-12);
}

.eaf-foot__legal a {
	font-size: var(--text-sm);
	line-height: var(--leading-sm);
}

/* Phones: every logo whole. Press in four columns, seals wrap two by two. */
@media (max-width: 767.98px) {
	.eaf-foot__seals {
		margin-top: var(--space-8);
	}

	.eaf-foot__logos--press {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: var(--space-4) var(--space-3);
		justify-items: center;
	}

	.eaf-foot__logos--press img {
		width: auto;
		max-width: 100%;
		max-height: 2rem;
	}

	.eaf-foot__logos--seals {
		flex-wrap: wrap;
		justify-content: center;
		gap: var(--space-4) var(--space-6);
	}

	.eaf-foot__logos--seals img {
		height: 2rem;
	}
}

/* Footer: top right behind the link columns, fading out above the seals. */
.eaf-backdrop-car--foot {
	top: var(--space-6);
	right: -35%;
	width: 120%;
	-webkit-mask-image: linear-gradient(to bottom, var(--color-bg-dark) 45%, transparent 95%);
	mask-image: linear-gradient(to bottom, var(--color-bg-dark) 45%, transparent 95%);
}

@media (min-width: 768px) {
	.eaf-backdrop-car--foot {
		right: -12%;
		width: 72%;
	}
}

@media (min-width: 992px) {
	.eaf-backdrop-car--foot {
		top: var(--space-4);
		right: max(-8%, calc((100% - 1440px) / 2));
		width: min(60%, 61.25rem); /* 980 */
	}
}

/* Muted text on light surfaces. System stack: vendor Google Fonts is blocked by CSP. */
body {
	background: var(--color-bg-page);
	color: var(--color-fg-muted);
	font-family: var(--font-sans);
	overflow-x: clip;
}

/* A page shorter than the window (the ones waiting for copy, on a tall
   screen) keeps the footer on the bottom edge, not the page background under it. */
.main-wrapper {
	display: flex;
	flex-direction: column;
	min-height: 100dvh;
}

.main-wrapper > main {
	flex: 1 0 auto;
}

::selection {
	background: var(--color-bg-accent-subtle);
	color: var(--color-fg-on-accent-subtle);
}

.listing-content,
.listing-content p,
.listing-title,
.listing-title a,
.price,
.eaf-specs,
.eaf-specs dt,
.eaf-specs dd,
.eaf-history,
.eaf-factory,
.breadcrumb-title,
.breadcrumb,
.eaf-vhead__title,
.eaf-vhead__price,
.eaf-quote__title,
.eaf-quote__lead,
.eaf-lead-dialog__name,
.eaf-lead-dialog__price,
.eaf-lhead__count {
	user-select: text;
}

.listing-content p,
.listing-details-group p,
.featues-info span,
.description-list p {
	color: var(--color-fg-muted);
}

/* Listing cards: same photo box and sale price, no rental-red / hover zoom jump.
   Column stays a block so the theme's 24px card margin is the gap between rows. */
.car-section .row > [class*="col-"],
[data-eaf-grid] > [data-eaf-card] {
	display: block;
}

/* Similar vehicles: one row, so the card without a mileage stretches to its
   neighbours and the buttons line up. The card margin still ends the row. */
.details-car-grid .row > [class*="col-"] {
	display: flex;
	align-items: stretch;
}

.listing-item {
	width: 100%;
	height: auto;
	display: flex;
	flex-direction: column;
	margin: 0 0 var(--card-gap);
	padding: var(--card-inset);
	border: 0;
	border-radius: var(--radius-md);
	background: var(--color-bg-surface);
	box-shadow: var(--shadow-card);
}

.listing-item .listing-img {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-sm);
	overflow: hidden;
}

/* Two photos per card: the first, and the second on mouse hover only.
   Touch screens and keyboard focus keep the first photo. */
.listing-item .listing-img > a {
	position: relative;
	display: block;
	height: 100%;
}

/* No box without a mouse: the lazy hover photo is then never fetched. */
.listing-item .listing-img .eaf-card-hover {
	display: none;
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
	.listing-item .listing-img .eaf-card-hover {
		display: block;
	}

	.listing-item:hover .eaf-card-hover {
		opacity: 1;
	}

	@media (prefers-reduced-motion: no-preference) {
		.listing-item .listing-img .eaf-card-hover {
			transition: opacity var(--duration-medium) var(--ease-standard);
		}
	}
}

.listing-item .listing-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 60%;
	transform: none;
	transition: none;
}

.listing-item:hover .listing-img img {
	transform: none;
}

.listing-item:hover .listing-title a {
	color: var(--color-accent-primary) !important;
}

.listing-item .listing-content {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	margin-top: var(--space-4);
}

.listing-item .listing-content .listing-features {
	border-bottom: 0;
	margin: 0;
	padding: 0;
}

.listing-item .listing-content .listing-features .listing-title {
	margin: 0 0 var(--space-4);
	color: var(--color-fg-default);
	font-size: var(--text-md);
	font-weight: var(--weight-medium);
	line-height: var(--leading-md);
	white-space: normal;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	min-height: calc(var(--leading-md) * 2);
}

.listing-item .listing-content .listing-features .listing-title a {
	color: var(--color-fg-default);
	font-weight: var(--weight-medium);
	user-select: text;
}

.listing-item .listing-title a:hover,
.listing-item .listing-title a:focus-visible {
	color: var(--color-accent-primary) !important;
}

.listing-item .listing-img a:focus-visible,
.listing-item .listing-title a:focus-visible {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
}

/* The photo box clips overflow, so the ring on the photo link sits inside.
   It is drawn on a layer above both photos: the hover photo is positioned and
   would otherwise paint over the link's own outline. */
.listing-item .listing-img a:focus-visible {
	outline: 0;
}

.listing-item .listing-img > a::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.listing-item .listing-img > a:focus-visible::after {
	outline: var(--focus-ring);
	outline-offset: calc(var(--focus-width) * -1);
}

/* The vendor animates "all" on links and buttons, so the focus ring would fade
   in from 0 px and a quick Tab never shows it. Animate colour only. */
.listing-item a,
.listing-item .eaf-btn {
	transition-property: color, background-color, box-shadow;
	transition-duration: var(--duration-short);
	transition-timing-function: var(--ease-standard);
}

.listing-item .listing-content .price {
	margin: 0 0 var(--space-1);
	color: var(--color-fg-default);
	font-size: var(--text-xl);
	font-weight: var(--weight-medium);
	line-height: var(--leading-xl);
}

.listing-item .listing-content .listing-details-group {
	margin: 0 0 var(--space-4);
}

.listing-item .listing-content .listing-details-group ul {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-2) var(--space-4);
	margin: 0;
}

.listing-item .listing-content .listing-details-group ul li {
	display: flex;
	flex: none;
	max-width: none;
	min-width: 0;
	gap: var(--space-2);
	justify-content: flex-start;
	align-items: flex-start;
}

.listing-item .listing-content .listing-details-group ul li span {
	flex: 0 0 16px;
	line-height: 0;
}

.listing-item .listing-content .listing-details-group ul li span img {
	width: 16px;
	height: 16px;
	filter: brightness(0);
	opacity: 0.55;
}

.listing-item .listing-content .listing-details-group ul li span i {
	--fa-width: auto;
	width: 16px;
	font-size: 16px;
	color: var(--color-fg-muted);
}

.listing-item .listing-content .listing-details-group ul li p {
	margin: 0;
	color: var(--color-fg-muted);
	font-size: var(--text-sm);
	line-height: var(--leading-sm);
	white-space: normal;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.listing-item .listing-content .listing-location-details {
	background: transparent;
	padding: 0;
	margin: 0 0 var(--space-4);
	color: var(--color-fg-muted);
}

.listing-item .listing-content .listing-location-details .listing-price,
.listing-item .listing-content .listing-location-details .listing-price h6 {
	color: var(--color-fg-muted);
	font-size: var(--text-sm);
	font-weight: var(--weight-regular);
}

.listing-item .listing-button {
	margin-top: auto;
}

/* Home, Shop by make: one light panel per make in the car card's columns
   (four across from 768px, two below), no card frame and no arrow (client
   2026-11-24). The whole panel is the link: make and count on top, the Evox
   profile of the newest car of that make standing on the bottom. A make
   without a cutout shows its first lot photo cropped to the same box. */
.eaf-make,
.eaf-make:hover,
.eaf-make:focus {
	color: var(--color-fg-default);
	text-decoration: none;
}

.eaf-make {
	display: flex;
	flex-direction: column;
	padding: var(--space-4) var(--space-4) var(--space-3);
	border-radius: var(--radius-md);
	background: var(--color-bg-muted);
}

.eaf-make__name {
	font-size: var(--text-md);
	font-weight: var(--weight-semibold);
	line-height: var(--leading-md);
}

.eaf-make__count {
	color: var(--color-fg-muted);
	font-size: var(--text-sm);
	line-height: var(--leading-sm);
}

/* The cutouts are trimmed to the car (about 2.3–3.1 : 1). Each one is fitted
   into the same 5:2 box, bottom-aligned, so every car stands on one line and
   tall SUVs and long sedans keep their own proportions. */
.eaf-make__pic {
	display: block;
	margin-top: auto;
	padding-top: var(--space-4);
}

.eaf-make__pic img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 5 / 2;
	object-fit: contain;
	object-position: center bottom;
}

.eaf-make__pic--photo img {
	border-radius: var(--radius-sm);
	object-fit: cover;
	object-position: center;
}

@media (min-width: 992px) {
	.eaf-make {
		padding: var(--space-5) var(--space-5) var(--space-4);
	}

	.eaf-make__name {
		font-size: var(--text-lg);
		line-height: var(--leading-lg);
	}
}

[data-eaf-card].eaf-card-hidden {
	display: none;
}

.accordion .filter-title button {
	width: 100%;
	border: 0;
	padding: 0;
	background: transparent;
	font-size: var(--text-lg);
	color: var(--color-fg-default);
	display: flex;
	justify-content: space-between;
	align-items: center;
	text-align: left;
}

.accordion .filter-title button:focus-visible {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
}

.breadcrumb-bar {
	padding: var(--space-6) 0;
}

.listing-page .breadcrumb-bar {
	padding-bottom: var(--space-6);
}

.breadcrumb-bar .breadcrumb-title {
	font-size: var(--text-2xl);
	font-weight: var(--weight-regular);
	line-height: var(--leading-2xl);
	margin: 0 0 var(--space-2);
	font-family: var(--font-sans);
}

.breadcrumb-bar .breadcrumb {
	color: var(--color-fg-muted-on-dark);
}

.breadcrumb-bar .breadcrumb li a,
.breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before {
	color: var(--color-fg-muted-on-dark);
}

.breadcrumb-bar .breadcrumb-item.active {
	color: var(--color-accent-on-dark);
}

.breadcrumb-bar .breadcrumb li a:hover,
.breadcrumb-bar .breadcrumb li a:focus-visible {
	color: var(--color-accent-on-dark);
}

.breadcrumb-bar .breadcrumb li a:focus-visible {
	outline: var(--focus-ring-on-dark);
	outline-offset: var(--focus-offset);
}

.grid-listview ul li a:focus-visible {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
}

.car-listing .sidebar-form > .product-search {
	margin: 0 0 var(--space-6);
	border-bottom: 0;
}

.car-listing .eaf-filter .product-search {
	margin: 0;
	border-bottom: 0;
}

.car-listing .form-custom .form-control {
	height: var(--control-height);
	margin: 0;
	padding: 0 var(--space-8) 0 var(--space-3);
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-xs);
	background: var(--color-bg-surface);
	color: var(--color-fg-default);
	font-size: var(--text-sm);
	line-height: var(--leading-sm);
}

.car-listing .form-custom .form-control::placeholder {
	color: var(--color-fg-muted);
}

.car-listing .form-custom .form-control:focus-visible {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
	background: var(--color-bg-surface);
}

.eaf-filter-hint {
	margin: 0;
	color: var(--color-fg-muted);
	font-size: var(--text-sm);
	line-height: var(--leading-sm);
}

.eaf-empty-inventory p {
	margin: var(--space-2) 0 0;
	color: var(--color-fg-muted);
	font-size: var(--text-sm);
	line-height: var(--leading-sm);
}

.eaf-empty-inventory {
	padding: var(--space-12) var(--space-6);
	text-align: center;
	background: var(--color-bg-surface);
	border-radius: var(--radius-md);
}

.eaf-empty-inventory h3 {
	margin: 0 0 var(--space-2);
	color: var(--color-fg-default);
}

.eaf-empty-inventory .eaf-btn {
	margin-top: var(--space-4);
}

/* ==========================================================================
   Home sections below the hero (docs/redesign.md, section 12)
   ========================================================================== */

/* Rhythm: one --section-rhythm from the end of a section's content to the
   next heading (and around the dark callback band); sections carry it as
   padding-top only, so nothing doubles. The vendor's 60/50 px padding, white
   FAQ band and rounded grey makes band are dropped. */
.category-section-four,
.car-section,
.eaf-how,
.faq-section-four,
.categories-section {
	padding: var(--section-rhythm) 0 0;
	border-radius: 0;
	background: transparent;
}

.categories-section {
	padding-bottom: var(--section-rhythm);
}

/* Below 992px the hero keeps --space-6 of dark under its bar. */
@media (max-width: 991.98px) {
	.banner-section-four + .category-section-four {
		padding-top: calc(var(--section-rhythm) - var(--space-6));
	}
}

.category-section-four .view-all-btn,
.car-section .view-all-btn {
	margin-top: var(--space-6);
}

.car-section .view-all-btn {
	margin-top: 0;
}

/* Section headings: no stars (vendor ::before/::after star.svg) and no
   title-head.png rule; the size of the inner page titles, one step up on
   wide screens. */
.section-heading.heading-four {
	margin: 0 0 var(--space-8);
}

.section-heading.heading-four h2 {
	display: block;
	margin: 0;
	padding: 0;
	color: var(--color-fg-default);
	font-family: var(--font-sans);
	font-size: var(--text-2xl);
	font-weight: var(--weight-semibold);
	line-height: var(--leading-2xl);
	letter-spacing: normal;
	text-wrap: balance;
}

.section-heading.heading-four h2::before,
.section-heading.heading-four h2::after {
	content: none;
}

.section-heading.heading-four p {
	max-width: none;
	margin: var(--space-2) 0 0;
	color: var(--color-fg-muted);
	font-size: var(--text-md);
	line-height: var(--leading-md);
}

@media (min-width: 992px) {
	.section-heading.heading-four h2 {
		font-size: var(--text-3xl);
		line-height: var(--leading-3xl);
	}
}

/* How buying works: three steps, then three value tiles. Only the tiles are
   cards; nothing here is clickable, so nothing reacts to hover. */
.eaf-how__steps,
.eaf-how__values {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
}

.eaf-how__steps {
	gap: var(--space-6);
	margin-bottom: var(--space-8);
}

.eaf-how__values {
	gap: var(--card-gap);
}

.eaf-how__step {
	display: flex;
	align-items: flex-start;
	gap: var(--space-4);
}

.eaf-how__step-icon,
.eaf-how__value-icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-full);
	font-size: 24px;
}

.eaf-how__step-icon {
	width: 48px;
	height: 48px;
	background: var(--color-accent-primary);
	color: var(--color-fg-on-accent);
}

.eaf-how__value {
	padding: var(--space-6);
	border-radius: var(--radius-md);
	background: var(--color-bg-surface);
	box-shadow: var(--shadow-card);
}

.eaf-how__value-icon {
	width: 40px;
	height: 40px;
	margin-bottom: var(--space-4);
	background: var(--color-bg-subtle);
	color: var(--color-fg-default);
}

.eaf-how .eaf-how__title {
	margin: 0 0 var(--space-1);
	color: var(--color-fg-default);
	font-family: var(--font-sans);
	font-size: var(--text-lg);
	font-weight: var(--weight-medium);
	line-height: var(--leading-lg);
}

.eaf-how__value .eaf-how__title {
	font-size: var(--text-md);
	line-height: var(--leading-md);
}

.eaf-how p {
	margin: 0;
	color: var(--color-fg-muted);
	font-size: var(--text-md);
	line-height: var(--leading-md);
}

@media (min-width: 768px) {
	.eaf-how__steps,
	.eaf-how__values {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	.eaf-how__values {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* FAQ: the vendor teal #127384 icon becomes the brand blue, the open
   question's icon the default text colour; both carry white glyphs. */
.faq-accordion.accordion .accordion-item {
	margin-bottom: var(--space-6);
	padding-bottom: var(--space-6);
	border-color: var(--color-border);
	background: transparent;
}

.faq-accordion.accordion .accordion-item:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
}

.faq-accordion.accordion .accordion-item .accordion-button {
	gap: var(--space-4);
	color: var(--color-fg-default);
	font-family: var(--font-sans);
	font-size: var(--text-lg);
	font-weight: var(--weight-medium);
	line-height: var(--leading-lg);
}

.faq-accordion.accordion .accordion-item .accordion-button::after,
.faq-accordion.accordion .accordion-item .accordion-button:not(.collapsed)::after {
	flex: none;
	width: 24px;
	height: 24px;
	font-size: 16px;
	transform: none;
}

.faq-accordion.accordion .accordion-item .accordion-button::after {
	content: "\ebc0"; /* bx-plus: the vendor had plus and minus swapped */
	background: var(--color-accent-primary);
	color: var(--color-fg-on-accent);
}

.faq-accordion.accordion .accordion-item .accordion-button:not(.collapsed)::after {
	content: "\eb8b"; /* bx-minus */
	background: var(--color-fg-default);
	color: var(--color-fg-on-dark);
}

.faq-accordion.accordion .accordion-item .accordion-body {
	padding: var(--space-3) 0 0;
}

.faq-accordion.accordion .accordion-item .accordion-body p {
	margin: 0;
	color: var(--color-fg-muted);
	font-size: var(--text-md);
	line-height: var(--leading-md);
}

/* Links inside an answer (home and /faq/): underlined body text, accent on hover. */
.faq-accordion .accordion-body p a {
	color: var(--color-fg-default);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.faq-accordion .accordion-body p a:hover {
	color: var(--color-accent-primary);
}

.faq-accordion .accordion-body p a:focus-visible {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
}

/* The /faq/ page: the same accordion under the light page head. */
.eaf-faq {
	padding: 0 0 var(--section-gap);
}

@media (prefers-reduced-motion: no-preference) {
	.faq-accordion.accordion .accordion-item .accordion-button::after {
		transition-property: background-color, color;
		transition-duration: var(--duration-short);
		transition-timing-function: var(--ease-standard);
	}
}

/* All makes on the lot: an open list, alphabetical, two to four columns.
   Neutral links that turn brand blue, as in the footer. */
.eaf-all-makes {
	margin: 0;
	padding: 0;
	list-style: none;
	columns: 2;
	column-gap: var(--space-6);
}

.eaf-all-makes li {
	break-inside: avoid;
}

.eaf-all-makes a {
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	min-height: var(--control-height-sm);
	color: var(--color-fg-default);
	font-size: var(--text-md);
	line-height: var(--leading-md);
}

.eaf-all-makes__count {
	color: var(--color-fg-muted);
}

.eaf-all-makes a:hover,
.eaf-all-makes a:hover .eaf-all-makes__count {
	color: var(--color-accent-primary);
}

@media (min-width: 768px) {
	.eaf-all-makes {
		columns: 3;
	}
}

@media (min-width: 992px) {
	.eaf-all-makes {
		columns: 4;
	}
}

/* --------------------------------------------------------------------------
   Home: reviews and callback band (front-page.php, eaf_reviews()).
   Reviews read like a Google Business profile in the theme's language: the
   score line, then white cards. Below 992px one swipe row (the next card
   peeks in); from 992px three columns, two rows, so a mouse reaches all six.
   Nothing here is clickable except the source link, so no hover on cards.
   The callback band is a full-bleed #111 band between light sections: the
   heading and an Evox front 3/4 cutout of a lot car on the left, the drawer's
   form in one white card on the right (stacked below 992px).
   -------------------------------------------------------------------------- */
.eaf-reviews {
	padding: var(--section-rhythm) 0 0;
}

/* The score line plays the sub-line: --space-2 under the title, then the
   cards one heading gap (--space-8) below, as in every other section. */
.eaf-reviews .section-heading.heading-four {
	margin-bottom: var(--space-2);
}

.eaf-reviews__summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--space-2) var(--space-3);
	margin: 0 0 var(--space-8);
}

.eaf-reviews__score {
	color: var(--color-fg-default);
	font-size: var(--text-3xl);
	font-weight: var(--weight-medium);
	line-height: var(--leading-3xl);
}

/* Stars are decoration: the score and the group's aria-label carry the value. */
.eaf-stars {
	display: inline-flex;
	align-items: center;
	color: var(--color-rating);
	font-size: 14px;
	line-height: 1;
}

.eaf-stars.eaf-stars--lg {
	font-size: 20px;
}

.eaf-reviews__link {
	color: var(--color-accent-primary);
	font-size: var(--text-md);
	font-weight: var(--weight-medium);
	line-height: var(--leading-md);
}

.eaf-reviews__link:hover,
.eaf-reviews__link:focus-visible {
	color: var(--color-fg-on-accent-subtle);
	text-decoration: underline;
}

/* The row scrolls, which clips the card shadow: pad it and pull it back. */
.eaf-reviews__list {
	display: flex;
	gap: var(--card-gap);
	margin: calc(var(--space-6) * -1) 0;
	padding: var(--space-6) 0;
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.eaf-reviews__list::-webkit-scrollbar {
	display: none;
}

.eaf-review {
	display: flex;
	flex: 0 0 85%;
	flex-direction: column;
	gap: var(--space-3);
	min-width: 0;
	padding: var(--space-6);
	border-radius: var(--radius-md);
	background: var(--color-bg-surface);
	box-shadow: var(--shadow-card);
	scroll-snap-align: start;
}

.eaf-review__head {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	min-width: 0;
}

.eaf-review__avatar {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--radius-full);
	background: var(--color-accent-primary);
	color: var(--color-fg-on-accent);
	font-size: var(--text-md);
	font-weight: var(--weight-medium);
	line-height: 1;
}

.eaf-review__who {
	min-width: 0;
}

.eaf-review__name,
.eaf-review__source {
	margin: 0;
	overflow-wrap: anywhere;
}

.eaf-review__name {
	color: var(--color-fg-default);
	font-size: var(--text-md);
	font-weight: var(--weight-medium);
	line-height: var(--leading-md);
}

.eaf-review__source {
	color: var(--color-fg-muted);
	font-size: var(--text-sm);
	line-height: var(--leading-sm);
}

.eaf-review__text {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: var(--color-fg-default);
	font-size: var(--text-md);
	line-height: var(--leading-md);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 5;
	line-clamp: 5;
}

@media (min-width: 768px) {
	.eaf-review {
		flex-basis: calc((100% - var(--card-gap)) / 2.2);
	}
}

@media (min-width: 992px) {
	.eaf-reviews__list {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		margin: 0;
		padding: 0;
		overflow: visible;
	}
}

/* The Reviews page (templates/testimonials.php): the score line left under
   the head, the same cards in a grid at every width with the full text, then
   Browse Used Cars. */
.eaf-reviews.eaf-reviews--page {
	padding: 0 0 var(--section-gap);
}

.eaf-reviews--page .eaf-reviews__summary {
	justify-content: flex-start;
	margin-bottom: var(--space-6);
}

.eaf-reviews--page .eaf-reviews__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	margin: 0;
	padding: 0;
	overflow: visible;
}

.eaf-reviews--page .eaf-review__text {
	display: block;
	-webkit-line-clamp: unset;
	line-clamp: none;
}

.eaf-reviews__next {
	margin-top: var(--space-8);
}

@media (min-width: 768px) {
	.eaf-reviews--page .eaf-reviews__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	.eaf-reviews--page .eaf-reviews__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Request a callback: a dark band that says why to leave a number. Left: the
   message (heading, lead, two reassurance lines, the phone) with the light
   behind its top-left corner. Right: the white form card with its own
   "Request a callback" title. Below 992px: message, then the card. No car:
   the hero's lot is the page's one picture of cars on dark. */
.eaf-callback {
	isolation: isolate;
	margin-top: var(--section-rhythm);
	padding-block: var(--section-rhythm);
	background: var(--surface-dark-texture), var(--color-bg-dark);
	color: var(--color-fg-muted-on-dark);
	overflow: clip;
}

.eaf-callback__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-10);
}

.eaf-callback__intro {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
}

.eaf-callback__message {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.eaf-callback .section-heading.heading-four {
	margin-bottom: var(--space-4);
	text-align: left;
}

.eaf-callback .section-heading.heading-four h2 {
	color: var(--color-fg-on-dark);
}

.eaf-callback .eaf-callback__lead {
	max-width: 48ch;
	margin: 0 0 var(--space-6);
	color: var(--color-fg-on-dark);
	font-size: var(--text-xl);
	font-weight: var(--weight-regular);
	line-height: var(--leading-xl);
	text-wrap: pretty;
}

.eaf-callback__points {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	max-width: 52ch;
	margin: 0 0 var(--space-8);
	padding: 0;
	list-style: none;
}

.eaf-callback__points li {
	display: flex;
	align-items: flex-start;
	gap: var(--space-3);
	color: var(--color-fg-muted-on-dark);
	font-size: var(--text-md);
	line-height: var(--leading-md);
	text-wrap: pretty;
}

/* The glyph sits in a box one text line tall, so it centres on the first
   line whatever the wrap. */
.eaf-callback__points i {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: var(--leading-md);
	color: var(--color-fg-muted-on-dark);
	font-size: 18px;
}

.eaf-callback__call-label {
	margin: 0;
	color: var(--color-fg-muted-on-dark);
	font-size: var(--text-md);
	line-height: var(--leading-md);
}

.eaf-callback a.eaf-callback__phone {
	color: var(--color-fg-on-dark);
	font-size: var(--text-xl);
	font-weight: var(--weight-medium);
	line-height: var(--leading-xl);
	text-decoration: none;
	white-space: nowrap;
}

.eaf-callback a.eaf-callback__phone:hover {
	color: var(--color-accent-on-dark);
}

.eaf-callback a.eaf-callback__phone:focus-visible {
	color: var(--color-accent-on-dark);
	outline: var(--focus-ring-on-dark);
	outline-offset: var(--focus-offset);
}

/* The form card: no light shadow on #111 (it glowed, as in the hero). */
.eaf-callback__card {
	width: 100%;
	padding: var(--space-6);
	border-radius: var(--radius-md);
	background: var(--color-bg-surface);
	color: var(--color-fg-default);
	box-shadow: none;
}

.eaf-callback .eaf-callback__form-title {
	margin: 0 0 var(--space-4);
	color: var(--color-fg-default);
	font-family: var(--font-sans);
	font-size: var(--text-lg);
	font-weight: var(--weight-medium);
	line-height: var(--leading-lg);
}

@media (min-width: 992px) {
	/* The message and the card side by side, the message centred on the
	   card's height. */
	.eaf-callback__grid {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: var(--space-12);
		align-items: center;
	}

	.eaf-callback__card {
		justify-self: end;
		max-width: 35rem; /* 560 */
	}
}

.eaf-callback__form .eaf-md-field:first-child {
	margin-top: 0;
}

.eaf-callback .eaf-callback__submit {
	margin-top: var(--space-4);
}

.eaf-lead-form.is-sent .eaf-callback__submit {
	display: none;
}

@media (min-width: 768px) {
	.eaf-callback__card {
		padding: var(--space-8);
	}
}

.eaf-lead-drawer[hidden] {
	display: none;
}

.eaf-lead-drawer {
	position: fixed;
	inset: 0;
	z-index: 1080;
}

.eaf-lead-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: var(--color-scrim);
}

.eaf-lead-dialog {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(25rem, 100%); /* 400 */
	height: 100%;
	overflow: auto;
	border-radius: var(--radius-lg) 0 0 var(--radius-lg);
	background: var(--color-bg-surface);
	color: var(--color-fg-default);
	font-family: var(--font-sans);
}

.eaf-lead-dialog__hero {
	flex: 0 0 auto;
	background: var(--color-bg-subtle);
}

.eaf-lead-dialog__hero img {
	display: block;
	width: 100%;
	height: 10rem; /* 160 */
	object-fit: cover;
}

/* Below the photo the dialog is the vehicle page form card: name and price
   (the page's header strip), the .eaf-history row, then .eaf-quote. */
.eaf-lead-dialog__summary {
	padding: var(--space-6) var(--space-6) 0;
}

.eaf-lead-dialog__body {
	padding: var(--space-6);
}

.eaf-lead-drawer.is-callback .eaf-lead-dialog__car {
	display: none;
}

.eaf-lead-dialog__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-1) var(--space-4);
	margin: 0;
}

.eaf-lead-dialog__summary .eaf-history {
	margin: var(--space-6) 0 0;
}

.eaf-lead-dialog__hero[hidden] + .eaf-lead-dialog__summary .eaf-lead-dialog__head {
	padding-right: var(--touch-target);
}

/* From 768px a centred window, the car on the left on a grey panel, the form
   on the right: ~540px tall instead of ~960 in one column, so the button is in
   view on a 1280×609 window (drawer-fit.js). The callback has one column. */
@media (min-width: 768px) {
	.eaf-lead-drawer {
		display: flex;
		align-items: center;
		justify-content: center;
		padding: var(--space-6);
	}

	.eaf-lead-dialog {
		position: relative;
		top: auto;
		right: auto;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: min(56rem, 100%); /* 896 */
		height: auto;
		max-height: 100%;
		border-radius: var(--radius-lg);
		box-shadow: var(--shadow-menu);
	}

	.eaf-lead-drawer.is-callback .eaf-lead-dialog {
		grid-template-columns: minmax(0, 1fr);
		width: min(28rem, 100%); /* 448 */
	}

	.eaf-lead-dialog__car {
		background: var(--color-bg-subtle);
	}

	.eaf-lead-dialog__hero img {
		height: auto;
		aspect-ratio: 16 / 10;
	}

	.eaf-lead-dialog__summary {
		padding-bottom: var(--space-6);
	}

	.eaf-lead-dialog__summary .eaf-history {
		padding-bottom: 0;
		border-bottom: 0;
	}

	.eaf-lead-dialog__hero[hidden] + .eaf-lead-dialog__summary .eaf-lead-dialog__head {
		padding-right: 0;
	}

	.eaf-lead-dialog .eaf-quote__title {
		padding-right: var(--touch-target);
	}
}

/* Callback mode (header button): the heading is the first line, clear of the close button. */
.eaf-lead-drawer.is-callback .eaf-quote__title {
	padding-right: var(--touch-target);
}

.eaf-lead-dialog__name,
.eaf-lead-dialog__price {
	margin: 0;
	color: var(--color-fg-default);
	font-size: var(--text-xl);
	font-weight: var(--weight-semibold);
	line-height: var(--leading-xl);
}

.eaf-lead-dialog__name {
	flex: 1 1 auto;
	min-width: 0;
	text-wrap: balance;
	overflow-wrap: anywhere;
}

.eaf-lead-dialog__price {
	white-space: nowrap;
}

.eaf-lead-dialog .eaf-md-field, .eaf-quote .eaf-md-field {
	position: relative;
	margin-top: var(--space-4);
}

.eaf-lead-dialog .eaf-md-field input,
.eaf-quote .eaf-md-field input {
	box-sizing: border-box;
	width: 100%;
	height: var(--field-height);
	margin: 0;
	padding: var(--space-5) var(--space-4) var(--space-1);
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--color-fg-default);
	font-size: var(--text-md);
	font-weight: var(--weight-regular);
	line-height: var(--leading-md);
}

.eaf-lead-dialog .eaf-md-field input::placeholder,
.eaf-quote .eaf-md-field input::placeholder {
	color: transparent;
}

.eaf-lead-dialog .eaf-md-field label,
.eaf-quote .eaf-md-field label {
	position: absolute;
	top: var(--space-4);
	left: var(--space-3);
	margin: 0;
	padding: 0 var(--space-1);
	background: var(--color-bg-surface);
	color: var(--color-fg-muted);
	font-size: var(--text-md);
	font-weight: var(--weight-regular);
	line-height: var(--leading-md);
	pointer-events: none;
	transition-property: top, font-size, line-height, color;
	transition-duration: var(--duration-short);
	transition-timing-function: var(--ease-standard);
}

.eaf-lead-dialog .eaf-md-field input:hover,
.eaf-quote .eaf-md-field input:hover {
	border-color: var(--color-fg-default);
}

.eaf-lead-dialog .eaf-md-field input:focus,
.eaf-quote .eaf-md-field input:focus,
.eaf-lead-dialog .eaf-md-field input:focus-visible,
.eaf-quote .eaf-md-field input:focus-visible,
.eaf-lead-dialog .eaf-md-field input:not(:placeholder-shown),
.eaf-quote .eaf-md-field input:not(:placeholder-shown),
.eaf-lead-dialog .eaf-md-field input:-webkit-autofill,
.eaf-quote .eaf-md-field input:-webkit-autofill {
	outline: none;
}

.eaf-lead-dialog .eaf-md-field input:focus,
.eaf-quote .eaf-md-field input:focus,
.eaf-lead-dialog .eaf-md-field input:focus-visible,
.eaf-quote .eaf-md-field input:focus-visible {
	border-color: var(--color-accent-primary);
	box-shadow: inset 0 0 0 1px var(--color-accent-primary);
}

.eaf-lead-dialog .eaf-md-field input:focus + label,
.eaf-quote .eaf-md-field input:focus + label,
.eaf-lead-dialog .eaf-md-field input:not(:placeholder-shown) + label,
.eaf-quote .eaf-md-field input:not(:placeholder-shown) + label,
.eaf-lead-dialog .eaf-md-field input:-webkit-autofill + label,
.eaf-quote .eaf-md-field input:-webkit-autofill + label {
	top: 0;
	font-size: var(--text-xs);
	line-height: var(--leading-xs);
	transform: translateY(-50%);
}

.eaf-lead-dialog .eaf-md-field input:focus + label,
.eaf-quote .eaf-md-field input:focus + label {
	color: var(--color-accent-primary);
}

.eaf-lead-dialog .eaf-lead-form__hint, .eaf-quote .eaf-lead-form__hint {
	margin: var(--space-1) var(--space-4) 0;
	color: var(--color-fg-muted);
	font-size: var(--text-xs);
	font-weight: var(--weight-regular);
	line-height: var(--leading-xs);
}

.eaf-lead-dialog .eaf-quote__note,
.eaf-quote .eaf-quote__note {
	margin: var(--space-4) 0 0;
	color: var(--color-fg-muted);
	font-size: var(--text-xs);
	line-height: var(--leading-xs);
}

.eaf-lead-dialog .eaf-quote__note a,
.eaf-quote .eaf-quote__note a {
	color: var(--color-accent-primary);
}

/* The submit is .eaf-btn primary lg block (Buttons); only its spacing here. */
.eaf-lead-dialog .eaf-quote__submit,
.eaf-quote .eaf-quote__submit {
	margin-top: var(--space-4);
}

.eaf-lead-dialog .eaf-lead-form.is-sent .eaf-lead-form__status {
	background: var(--color-bg-accent-subtle);
	color: var(--color-fg-on-accent-subtle);
}

.eaf-lead-drawer__close {
	position: absolute;
	top: var(--space-1);
	right: var(--space-1);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--touch-target);
	height: var(--touch-target);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--radius-full);
	background: transparent;
	color: var(--color-fg-default);
	cursor: pointer;
}

.eaf-filters__close {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: var(--touch-target);
	height: var(--touch-target);
	margin: 0 calc(var(--space-3) * -1) 0 0;
	padding: 0;
	border: 0;
	border-radius: var(--radius-full);
	background: transparent;
	color: var(--color-fg-default);
	cursor: pointer;
}

.eaf-lead-drawer__close::before,
.eaf-filters__close::before {
	content: "";
	position: absolute;
	width: var(--control-height);
	height: var(--control-height);
	border-radius: inherit;
	background: var(--color-bg-surface);
}

.eaf-lead-drawer__close svg,
.eaf-filters__close svg {
	position: relative;
	display: block;
	width: 24px;
	height: 24px;
}

.eaf-lead-drawer__close:hover::before,
.eaf-filters__close:hover::before {
	box-shadow: inset 0 0 0 100vmax var(--state-hover);
}

.eaf-lead-drawer__close:focus-visible,
.eaf-filters__close:focus-visible {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
}

@media (prefers-reduced-motion: no-preference) {
	.eaf-lead-dialog {
		animation: eaf-sheet-in var(--duration-long) var(--ease-decelerate);
	}
}

@media (prefers-reduced-motion: reduce) {
	.eaf-lead-dialog .eaf-md-field label,
	.eaf-quote .eaf-md-field label {
		transition: none;
	}
}

@keyframes eaf-sheet-in {
	from { transform: translateX(100%); }
	to { transform: translateX(0); }
}

@media (max-width: 400px) {
	.eaf-lead-dialog {
		border-radius: 0;
	}
}

.eaf-lead-form label {
	display: block;
	margin: var(--space-4) 0 var(--space-2);
	color: var(--color-fg-default);
}

.eaf-lead-form input {
	width: 100%;
	min-height: var(--field-height);
	padding: var(--space-2) var(--space-3);
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-sm);
	color: var(--color-fg-default);
}

.eaf-lead-form__hint,
.eaf-lead-form__status {
	margin: var(--space-2) 0 var(--space-4);
	color: var(--color-fg-muted);
}

.eaf-detail-card.review-sec,
.eaf-quote-card.review-sec {
	border: 0;
	box-shadow: var(--shadow-card);
}

.detail-product {
	margin: 0 0 var(--card-gap);
	padding: var(--card-inset);
	border-radius: var(--radius-md);
}

/* Section headings on the vehicle page: same size and weight as the form heading, no accent bar. */
.eaf-section-title {
	margin: 0 0 var(--space-4);
	color: var(--color-fg-default);
	font-size: var(--text-xl);
	font-weight: var(--weight-medium);
	line-height: var(--leading-xl);
	letter-spacing: normal;
}

.details-car-grid .eaf-section-title {
	margin-bottom: var(--space-6);
}

.eaf-specs {
	display: grid;
	grid-template-columns: 1fr;
	margin: 0;
}

.eaf-specs div {
	display: grid;
	grid-template-columns: 7.5rem minmax(0, 1fr);
	gap: var(--space-4);
	align-items: baseline;
	min-width: 0;
	padding: var(--space-3) 0;
	border-bottom: 1px solid var(--color-border-subtle);
}

.eaf-specs dt {
	margin: 0;
	color: var(--color-fg-muted);
	font-size: var(--text-sm);
	font-weight: var(--weight-regular);
	line-height: var(--leading-sm);
}

.eaf-specs dd {
	margin: 0;
	color: var(--color-fg-default);
	font-size: var(--text-sm);
	font-weight: var(--weight-medium);
	line-height: var(--leading-sm);
}

.eaf-specs div:first-child {
	padding-top: 0;
}

.eaf-specs div:last-child,
.eaf-equipment li:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

@media (min-width: 768px) {
	.eaf-specs {
		grid-template-columns: 1fr 1fr;
		column-gap: var(--space-8);
	}

	.eaf-specs div:nth-child(-n + 2) {
		padding-top: 0;
	}

	.eaf-specs div:nth-last-child(2):nth-child(odd),
	.eaf-equipment li:nth-last-child(2):nth-child(odd) {
		padding-bottom: 0;
		border-bottom: 0;
	}
}

/* DataOne factory data, set apart from the listing facts by a labelled rule. */
.eaf-factory {
	margin: var(--space-5) 0 0;
	padding: var(--space-5) 0 0;
	border-top: 1px solid var(--color-border);
}

.eaf-section-title + .eaf-factory {
	margin-top: 0;
}

.eaf-factory__source {
	margin: 0 0 var(--space-4);
	color: var(--color-fg-muted);
	font-size: var(--text-sm);
	font-weight: var(--weight-medium);
	line-height: var(--leading-sm);
}

.eaf-factory__title {
	margin-top: var(--space-8);
}

.eaf-equipment {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
}

.eaf-equipment li {
	display: grid;
	gap: var(--space-1);
	margin: 0;
	padding: var(--space-3) 0;
	border-bottom: 1px solid var(--color-border-subtle);
}

.eaf-equipment li:first-child {
	padding-top: 0;
}

.eaf-equipment__name {
	color: var(--color-fg-default);
	font-size: var(--text-sm);
	font-weight: var(--weight-medium);
	line-height: var(--leading-sm);
}

.eaf-equipment__value,
.eaf-equipment-all__group li span {
	color: var(--color-fg-muted);
	font-size: var(--text-sm);
	font-weight: var(--weight-regular);
	line-height: var(--leading-sm);
}

@media (min-width: 768px) {
	.eaf-equipment {
		grid-template-columns: 1fr 1fr;
		column-gap: var(--space-8);
	}

	.eaf-equipment li:nth-child(-n + 2) {
		padding-top: 0;
	}
}

.eaf-equipment-all {
	margin: var(--space-4) 0 0;
}

.eaf-equipment-all summary {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	margin: 0 calc(var(--space-2) * -1);
	padding: var(--space-2);
	color: var(--color-accent-primary);
	font-size: var(--text-md);
	font-weight: var(--weight-medium);
	line-height: var(--leading-md);
	list-style: none;
	cursor: pointer;
}

.eaf-equipment-all summary::-webkit-details-marker {
	display: none;
}

.eaf-equipment-all summary:hover {
	color: var(--color-fg-on-accent-subtle);
}

.eaf-equipment-all summary:hover span {
	text-decoration: underline;
}

.eaf-equipment-all summary:focus-visible {
	border-radius: var(--radius-sm);
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
}

.eaf-equipment-all summary i {
	--fa-width: auto;
	font-size: var(--text-sm);
}

.eaf-equipment-all[open] summary i {
	transform: rotate(180deg);
}

.eaf-equipment-all__groups {
	column-gap: var(--space-8);
	margin: var(--space-4) 0 0;
}

@media (min-width: 768px) {
	.eaf-equipment-all__groups {
		columns: 2;
	}
}

.eaf-equipment-all__group {
	margin: 0 0 var(--space-6);
	break-inside: avoid;
}

.eaf-equipment-all__group h3 {
	margin: 0 0 var(--space-2);
	color: var(--color-fg-default);
	font-size: var(--text-md);
	font-weight: var(--weight-medium);
	line-height: var(--leading-md);
}

.eaf-equipment-all__group ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.eaf-equipment-all__group li {
	margin: 0;
	padding: var(--space-1) 0;
	color: var(--color-fg-default);
	font-size: var(--text-sm);
	line-height: var(--leading-sm);
}

/* Vehicle gallery: 4:3 photo, thumbnail rail (right from 992px, below it under that), full-screen viewer. */
.eaf-gallery__stage {
	display: grid;
	gap: var(--space-3);
}

.eaf-gallery__main {
	width: 100%;
	aspect-ratio: 4 / 3;
	margin: 0;
	border-radius: var(--radius-sm);
	background: var(--color-bg-subtle);
	cursor: zoom-in;
}

.eaf-gallery__main .swiper-slide img,
.eaf-viewer__main .swiper-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.eaf-viewer__main .swiper-slide img {
	object-fit: contain;
}

.eaf-gallery__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: var(--control-height);
	height: var(--control-height);
	margin-top: calc(var(--control-height) / -2);
	padding: 0;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-full);
	background: var(--color-bg-surface);
	color: var(--color-fg-default);
	cursor: pointer;
}

.eaf-gallery__arrow--prev {
	left: var(--space-3);
}

.eaf-gallery__arrow--next {
	right: var(--space-3);
}

.eaf-gallery__arrow i,
.eaf-gallery__all i,
.eaf-viewer__close i {
	font-size: 16px;
	line-height: 1;
}

.eaf-gallery__all {
	position: absolute;
	left: var(--space-3);
	bottom: var(--space-3);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	box-sizing: border-box;
	height: var(--chip-height);
	padding: 0 var(--space-3);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-full);
	background: var(--color-bg-surface);
	color: var(--color-fg-default);
	font-size: var(--text-sm);
	line-height: var(--leading-sm);
	font-weight: var(--weight-medium);
	cursor: pointer;
}

.eaf-gallery__arrow:hover,
.eaf-gallery__all:hover {
	box-shadow: inset 0 0 0 100vmax var(--state-hover);
}

.eaf-gallery__arrow:focus-visible,
.eaf-gallery__all:focus-visible,
.eaf-gallery__thumb:focus-visible {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
}

/* These sit on the photo, so a light halo keeps the dark ring visible on any shot. */
.eaf-gallery__arrow:focus-visible,
.eaf-gallery__all:focus-visible {
	box-shadow: 0 0 0 calc(2 * var(--focus-offset) + var(--focus-width)) var(--color-bg-surface);
}

.eaf-gallery__rail {
	position: relative;
	min-width: 0;
}

.eaf-gallery__thumbs,
.eaf-viewer__thumbs {
	display: flex;
	gap: var(--space-3);
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.eaf-gallery__thumbs::-webkit-scrollbar,
.eaf-viewer__thumbs::-webkit-scrollbar {
	display: none;
}

.eaf-gallery__thumbs li {
	flex: 0 0 calc((100% - 4 * var(--space-3)) / 4.5);
}

.eaf-gallery__thumb {
	display: block;
	box-sizing: border-box;
	width: 100%;
	aspect-ratio: 4 / 3;
	padding: 0;
	border: 2px solid transparent;
	border-radius: var(--radius-sm);
	background: var(--color-bg-subtle);
	overflow: hidden;
	cursor: pointer;
}

.eaf-gallery__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: calc(var(--radius-sm) - 2px);
	object-fit: cover;
}

.eaf-gallery__thumb:hover {
	border-color: var(--color-border-strong);
}

/* The rails scroll (overflow), which would cut an outside ring: draw it inside. */
.eaf-gallery__thumb:focus-visible,
.eaf-viewer .eaf-viewer__thumbs .eaf-gallery__thumb:focus-visible {
	outline-offset: calc(var(--focus-width) * -1);
}

.eaf-gallery__thumb[aria-current="true"] {
	border-color: var(--color-accent-primary);
}

@media (min-width: 992px) {
	/* Rail width 20% minus the gap keeps four stacked 4:3 thumbs exactly as tall as the 4:3 photo. */
	.eaf-gallery__stage {
		grid-template-columns: minmax(0, 1fr) calc(20% - var(--space-3));
	}

	.eaf-gallery__rail .eaf-gallery__thumbs {
		position: absolute;
		inset: 0;
		flex-direction: column;
		overflow-x: hidden;
		overflow-y: auto;
	}

	.eaf-gallery__rail .eaf-gallery__thumbs li {
		flex: 0 0 calc((100% - 3 * var(--space-3)) / 4);
	}

	.eaf-gallery__rail .eaf-gallery__thumb {
		height: 100%;
		aspect-ratio: auto;
	}
}

html:has(.eaf-viewer[open]) {
	overflow: hidden;
}

.eaf-viewer {
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: var(--space-4);
	border: 0;
	background: var(--color-bg-dark);
	color: var(--color-fg-on-dark);
	font-family: var(--font-sans);
}

.eaf-viewer[open] {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

.eaf-viewer::backdrop {
	background: var(--color-scrim);
}

.eaf-viewer__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
}

.eaf-viewer__count {
	margin: 0;
	color: var(--color-fg-on-dark);
	font-size: var(--text-sm);
	line-height: var(--leading-sm);
	font-weight: var(--weight-medium);
}

.eaf-viewer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: var(--touch-target);
	height: var(--touch-target);
	padding: 0;
	border: 1px solid var(--color-border-on-dark);
	border-radius: var(--radius-full);
	background: transparent;
	color: var(--color-fg-on-dark);
	cursor: pointer;
}

.eaf-viewer__close:hover {
	border-color: var(--color-fg-muted-on-dark);
	box-shadow: inset 0 0 0 100vmax var(--state-hover-on-dark);
}

.eaf-viewer__main {
	flex: 1 1 auto;
	width: 100%;
	min-height: 0;
}

.eaf-viewer .eaf-gallery__arrow {
	width: var(--touch-target);
	height: var(--touch-target);
	margin-top: calc(var(--touch-target) / -2);
}

.eaf-viewer__thumbs {
	flex: 0 0 auto;
	justify-content: safe center;
}

.eaf-viewer__thumbs li {
	flex: 0 0 112px;
}

.eaf-viewer .eaf-gallery__thumb {
	background: transparent;
}

.eaf-viewer .eaf-gallery__thumb:hover {
	border-color: var(--color-fg-muted-on-dark);
}

.eaf-viewer .eaf-gallery__thumb[aria-current="true"] {
	border-color: var(--color-accent-on-dark);
}

.eaf-viewer .eaf-gallery__thumb:focus-visible,
.eaf-viewer__close:focus-visible {
	outline: var(--focus-ring-on-dark);
	outline-offset: var(--focus-offset);
}

@media (max-width: 767.98px) {
	.eaf-viewer {
		padding: var(--space-3);
	}

	.eaf-viewer__thumbs li {
		flex-basis: 80px;
	}
}

/* Vehicle page body: gallery, form, details. Below 992px the form follows the gallery, before the details. */
.eaf-vlayout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--card-gap);
}

.eaf-vlayout__info {
	display: grid;
	gap: var(--card-gap);
	align-content: start;
}

.eaf-vlayout .detail-product,
.eaf-vlayout .review-sec {
	margin: 0;
	padding: var(--space-4);
}

@media (min-width: 576px) {
	.eaf-vlayout .detail-product,
	.eaf-vlayout .review-sec {
		padding: var(--space-6);
	}
}

@media (min-width: 992px) {
	.eaf-vlayout {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
		grid-template-rows: auto 1fr;
		grid-template-areas:
			"media side"
			"info side";
		column-gap: var(--space-10);
	}

	.eaf-vlayout__media {
		grid-area: media;
	}

	.eaf-vlayout__side {
		grid-area: side;
	}

	.eaf-vlayout__info {
		grid-area: info;
	}
}

/* The form card is about 720px tall: on shorter windows a sticky card would hide its own submit button. */
@media (min-width: 992px) and (min-height: 840px) {
	.eaf-vlayout .eaf-quote-card {
		position: sticky;
		top: calc(var(--header-height) + var(--space-6));
		z-index: 2;
	}
}

/* Below 992px the form is not sticky: eaf-vbar.js shows this bar while neither the price nor the form is on screen. */
.eaf-vbar {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 98;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
	border-top: 1px solid var(--color-border);
	background: var(--color-bg-surface);
	transform: translateY(100%);
	visibility: hidden;
	transition: transform var(--duration-medium) var(--ease-standard), visibility 0s linear var(--duration-medium);
}

.eaf-vbar[hidden] {
	display: none;
}

.eaf-vbar.is-shown {
	transform: none;
	visibility: visible;
	transition: transform var(--duration-medium) var(--ease-decelerate);
}

.eaf-vbar__price {
	margin: 0;
	color: var(--color-fg-default);
	font-size: var(--text-xl);
	font-weight: var(--weight-semibold);
	line-height: var(--leading-xl);
	white-space: nowrap;
}

.eaf-vbar-shown .progress-wrap {
	bottom: calc(var(--eaf-vbar-h) + var(--space-4));
}

@media (max-width: 991.98px) {
	.footer.eaf-foot {
		padding-bottom: calc(var(--space-6) + var(--eaf-vbar-h, 0px));
	}
}

@media (min-width: 992px) {
	.eaf-vbar {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.eaf-vbar,
	.eaf-vbar.is-shown,
	.progress-wrap {
		transition: none;
	}
}

/* Similar vehicles on phones: one swipeable row, the next card peeks in. */
/* Home, Used cars for sale: the same row on phones. */
@media (max-width: 767.98px) {
	/* The scroller clips on both axes: padding gives the card shadow and the
	   lift room, the negative margin keeps the layout where it was. */
	.details-car-grid > .row,
	.car-section .eaf-home-cars {
		flex-wrap: nowrap;
		margin-block: calc(var(--space-6) * -1);
		padding-block: var(--space-6);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
	}

	.details-car-grid > .row > [class*="col-"],
	.car-section .eaf-home-cars > [class*="col-"] {
		display: flex;
		flex: 0 0 85%;
		max-width: 85%;
		scroll-snap-align: start;
	}
}

.product-detail-head {
	margin-top: var(--section-gap);
	padding: var(--space-4) 0;
}

.product-detail-head .detail-page-head {
	flex-wrap: wrap;
	gap: var(--space-3) var(--space-6);
}

.product-detail-head .detail-headings {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2) var(--space-6);
	min-width: 0;
}

.product-detail-head .detail-page-head .list-rating {
	margin-bottom: 0;
}

/* Vehicle title band: crumbs, h1 and price on the page background, left aligned. */
.eaf-vhead {
	padding: var(--space-8) 0 var(--space-6);
}

.eaf-vhead + .product-details {
	padding-top: 0;
}

.eaf-vhead__crumbs .breadcrumb {
	margin: 0 0 var(--space-3);
	color: var(--color-fg-muted);
	font-size: var(--text-sm);
	line-height: var(--leading-sm);
}

.eaf-vhead__crumbs .breadcrumb-item + .breadcrumb-item::before {
	color: var(--color-fg-muted);
}

.eaf-vhead__crumbs a {
	color: var(--color-fg-muted);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.eaf-vhead__crumbs a:hover {
	color: var(--color-accent-primary);
}

.eaf-vhead__crumbs a:focus-visible {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
}

.eaf-vhead__main {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-2) var(--space-8);
}

.eaf-vhead__title,
.eaf-vhead__price {
	margin: 0;
	color: var(--color-fg-default);
	font-family: var(--font-sans);
	font-size: var(--text-2xl);
	font-weight: var(--weight-semibold);
	line-height: var(--leading-2xl);
	letter-spacing: normal;
}

.eaf-vhead__title {
	flex: 1 1 auto;
	min-width: 0;
	text-wrap: balance;
}

/* The muted line under a page title: Get Pre-Approved, Reviews, the pages
   still waiting for copy (template-parts/page-pending.php). */
.eaf-vhead__lead {
	max-width: 60ch;
	margin: var(--space-3) 0 0;
	color: var(--color-fg-muted);
	font-size: var(--text-md);
	line-height: var(--leading-md);
	text-wrap: pretty;
}

.eaf-vhead__lead a[href^="tel:"] {
	white-space: nowrap;
}

.eaf-vhead__lead a {
	color: var(--color-fg-default);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.eaf-vhead__lead a:hover {
	color: var(--color-accent-primary);
}

.eaf-vhead__lead a:focus-visible {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
}

.eaf-vhead.eaf-pending {
	padding-bottom: var(--section-gap);
}

.eaf-vhead__price {
	white-space: nowrap;
}

.eaf-vhead__facts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2) var(--space-6);
	margin: var(--space-3) 0 0;
	padding: 0;
	list-style: none;
}

.eaf-vhead__facts li {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	margin: 0;
	color: var(--color-fg-muted);
	font-size: var(--text-md);
	line-height: var(--leading-md);
}

.eaf-vhead__facts img {
	width: 16px;
	height: 16px;
	filter: brightness(0);
	opacity: 0.55;
}

@media (min-width: 992px) {
	.eaf-vhead__title,
	.eaf-vhead__price {
		font-size: var(--text-3xl);
		line-height: var(--leading-3xl);
	}
}

/* Catalog head: the same band with the result count, Filters and Sort. */
.eaf-lhead + .car-listing {
	padding-top: 0;
}

/* 404: the light head with two ways on, then "All makes on the lot"
   (template-parts/all-makes.php, its own --section-rhythm above). */
.eaf-nfhead__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	margin-top: var(--space-6);
}

/* Contact: the same head, then the "Talk to a person" band straight under it
   (no extra rhythm above the dark band; the head's bottom padding is the gap),
   then "Visit the lot": address, Directions, phone and email, then "Quick
   Response" with the hours; the map beside both from 992px. Below 992px:
   address, map, Quick Response, hours. */
.eaf-chead + .eaf-callback {
	margin-top: 0;
}

.eaf-visit {
	padding-block: var(--section-rhythm);
}

.eaf-visit__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-8);
}

.eaf-visit__info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}

.eaf-visit .section-heading.heading-four {
	margin-bottom: var(--space-4);
	text-align: left;
}

.eaf-visit__address {
	max-width: 20ch;
	margin: 0 0 var(--space-6);
	color: var(--color-fg-default);
	font-size: var(--text-2xl);
	font-style: normal;
	font-weight: var(--weight-regular);
	line-height: var(--leading-2xl);
	text-wrap: balance;
}

.eaf-visit__reach {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	margin: var(--space-8) 0 0;
	padding: 0;
	list-style: none;
}

.eaf-visit__reach li {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	margin: 0;
	font-size: var(--text-md);
	line-height: var(--leading-md);
}

.eaf-visit__reach i {
	flex: none;
	width: var(--space-5);
	color: var(--color-fg-muted);
	font-size: var(--text-md);
	text-align: center;
}

.eaf-visit__reach a {
	color: var(--color-fg-default);
	text-decoration: underline;
	text-underline-offset: 0.2em;
	overflow-wrap: anywhere;
}

.eaf-visit__reach a:hover {
	color: var(--color-accent-primary);
}

.eaf-visit__reach a:focus-visible {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
}

/* Quick Response: two muted paragraphs and the hours, today's row lifted. */
.eaf-visit__hours {
	min-width: 0;
}

.eaf-visit__text {
	max-width: 60ch;
	margin: 0 0 var(--space-4);
	color: var(--color-fg-muted);
	font-size: var(--text-md);
	line-height: var(--leading-md);
}

.eaf-hours {
	max-width: 60ch;
	margin: var(--space-6) 0 0;
}

.eaf-hours__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0 var(--space-4);
	padding: var(--space-2) var(--space-3);
	border-radius: var(--radius-sm);
	color: var(--color-fg-default);
	font-size: var(--text-md);
	line-height: var(--leading-md);
}

.eaf-hours__row + .eaf-hours__row {
	margin-top: var(--space-1);
}

.eaf-hours__row dt,
.eaf-hours__row dd {
	margin: 0;
	font-weight: inherit;
}

.eaf-hours__row dd {
	font-variant-numeric: tabular-nums;
}

.eaf-hours__row.is-today {
	background: var(--state-hover);
	font-weight: var(--weight-medium);
}

/* The map: a card in the theme's language (radius 10, theme shadow). */
.eaf-visit__map {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-md);
	background: var(--color-bg-muted);
	box-shadow: var(--shadow-card);
}

.eaf-visit__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (min-width: 768px) {
	.eaf-visit__map {
		aspect-ratio: 16 / 10;
	}
}

@media (min-width: 992px) {
	/* Left: address block, then Quick Response; the map spans both. */
	.eaf-visit__grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		grid-template-areas:
			"info map"
			"hours map";
		gap: var(--space-12);
	}

	.eaf-visit__info {
		grid-area: info;
	}

	.eaf-visit__hours {
		grid-area: hours;
	}

	.eaf-visit__map {
		grid-area: map;
		aspect-ratio: auto;
	}
}

/* Get Pre-Approved (templates/pre-approved.php, templates/application.php):
   the contact head with a muted line under the title. The hub: one card per
   application, side by side from 768px. An application: the Jotform form in a
   theme card, "Questions first?" beside it from 992px and under it below. */
.eaf-apply__switch {
	max-width: 60ch;
	margin: var(--space-1) 0 0;
	color: var(--color-fg-muted);
	font-size: var(--text-md);
	line-height: var(--leading-md);
}

.eaf-apply__need-label {
	color: var(--color-fg-default);
	font-weight: var(--weight-medium);
}

.eaf-apply__switch a,
.eaf-apply__talk a,
.eaf-apply__fallback a,
.eaf-apply__aside p a {
	color: var(--color-fg-default);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.eaf-apply__switch a:hover,
.eaf-apply__talk a:hover,
.eaf-apply__fallback a:hover,
.eaf-apply__aside p a:hover {
	color: var(--color-accent-primary);
}

.eaf-apply a:focus-visible,
.eaf-apply__switch a:focus-visible {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
}

.eaf-apply {
	padding-bottom: var(--section-gap);
}

.eaf-apply__choices {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--card-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.eaf-apply__choice {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: var(--space-6);
	border-radius: var(--radius-md);
	background: var(--color-bg-surface);
	box-shadow: var(--shadow-card);
}

.eaf-apply__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: var(--space-4);
	border-radius: var(--radius-full);
	background: var(--color-accent-primary);
	color: var(--color-fg-on-accent);
	font-size: 24px;
}

.eaf-apply .eaf-apply__name,
.eaf-apply .eaf-apply__aside-title {
	margin: 0 0 var(--space-2);
	color: var(--color-fg-default);
	font-family: var(--font-sans);
	font-size: var(--text-xl);
	font-weight: var(--weight-semibold);
	line-height: var(--leading-xl);
	letter-spacing: normal;
}

.eaf-apply__for,
.eaf-apply__need,
.eaf-apply__talk,
.eaf-apply__aside p {
	margin: 0;
	color: var(--color-fg-muted);
	font-size: var(--text-md);
	line-height: var(--leading-md);
}

.eaf-apply__for {
	color: var(--color-fg-default);
}

.eaf-apply__need {
	margin: var(--space-2) 0 var(--space-6);
}

.eaf-apply__start {
	margin-top: auto;
}

.eaf-apply__talk {
	margin-top: var(--space-6);
}

@media (min-width: 768px) {
	.eaf-apply__choices {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* The Jotform form is 690px wide on its own grey page; the column stops there
   so the grey never shows beside it. The frame starts tall and eaf-jotform.js
   sets the form's height; "Loading…" sits behind it until the form paints. */
.eaf-apply__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-8);
}

.eaf-apply__main {
	min-width: 0;
	max-width: 690px;
}

.eaf-apply__frame {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-md);
	background: var(--color-bg-surface);
	box-shadow: var(--shadow-card);
}

.eaf-apply__loading {
	position: absolute;
	inset: var(--space-8) var(--space-6) auto;
	margin: 0;
	color: var(--color-fg-muted);
	font-size: var(--text-md);
	line-height: var(--leading-md);
	text-align: center;
}

.eaf-apply__frame iframe {
	position: relative;
	display: block;
	width: 100%;
	height: 40rem;
	border: 0;
	scroll-margin-top: calc(var(--header-height) + var(--space-4));
}

.eaf-apply__fallback {
	margin: var(--space-3) 0 0;
	color: var(--color-fg-muted);
	font-size: var(--text-sm);
	line-height: var(--leading-sm);
}

.eaf-apply__aside {
	align-self: start;
	padding: var(--space-6);
	border-radius: var(--radius-md);
	background: var(--color-bg-surface);
	box-shadow: var(--shadow-card);
}

.eaf-apply__aside p {
	margin-bottom: var(--space-4);
}

@media (min-width: 992px) {
	.eaf-apply__layout {
		grid-template-columns: minmax(0, 690px) minmax(15rem, 22rem);
	}

	.eaf-apply__aside {
		position: sticky;
		top: calc(var(--header-height) + var(--space-6));
	}
}

.eaf-vhead__crumbs .breadcrumb-item.active {
	color: var(--color-fg-muted);
}

.eaf-lhead__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3) var(--space-4);
	margin-top: var(--space-4);
}

.eaf-lhead__count {
	margin: 0;
	color: var(--color-fg-muted);
	font-size: var(--text-md);
	line-height: var(--leading-md);
}

.eaf-lhead__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
	min-width: 0;
}

.eaf-pill {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	box-sizing: border-box;
	min-height: var(--touch-target);
	margin: 0;
	padding: 0 var(--space-4);
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-full);
	background: var(--color-bg-surface);
	color: var(--color-fg-default);
	font-family: var(--font-sans);
	font-size: var(--text-md);
	font-weight: var(--weight-medium);
	line-height: var(--leading-md);
	white-space: nowrap;
}

button.eaf-pill {
	cursor: pointer;
}

button.eaf-pill:hover,
.eaf-sort:hover {
	box-shadow: inset 0 0 0 100vmax var(--state-hover);
}

button.eaf-pill:focus-visible,
.eaf-sort:focus-within {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
}

.eaf-lhead__filters i {
	--fa-width: auto;
}

.eaf-lhead__active {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: var(--space-5);
	height: var(--space-5);
	padding: 0 var(--space-1);
	border-radius: var(--radius-full);
	background: var(--color-accent-primary);
	color: var(--color-fg-on-accent);
	font-size: var(--text-xs);
	font-weight: var(--weight-semibold);
	line-height: 1;
}

.eaf-lhead__active[hidden] {
	display: none;
}

.eaf-sort {
	min-width: 0;
	padding-right: 0;
}

.eaf-sort label {
	display: inline-flex;
	align-items: center;
	margin: 0;
	color: var(--color-fg-muted);
	font-weight: var(--weight-regular);
	cursor: pointer;
}

.eaf-sort label i {
	--fa-width: auto;
	display: none;
	color: var(--color-fg-default);
}

.eaf-sort select {
	align-self: stretch;
	min-width: 0;
	margin: 0;
	padding: 0 calc(var(--space-4) + var(--space-6)) 0 0;
	border: 0;
	border-radius: 0 var(--radius-full) var(--radius-full) 0;
	background: transparent;
	color: inherit;
	font: inherit;
	appearance: none;
	cursor: pointer;
}

.eaf-sort select:focus {
	outline: none;
}

.eaf-sort > i {
	--fa-width: auto;
	position: absolute;
	right: var(--space-4);
	font-size: var(--text-sm);
	pointer-events: none;
}

/* Filters and Sort share one row on a 360px phone only without the word. */
@media (max-width: 575.98px) {
	.eaf-pill {
		padding: 0 var(--space-3);
	}

	.eaf-sort {
		padding-right: 0;
	}

	.eaf-sort select {
		padding-right: calc(var(--space-3) + var(--space-6));
	}

	.eaf-sort > i {
		right: var(--space-3);
	}

	.eaf-sort label i {
		display: inline-block;
	}

	.eaf-sort__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

/* Filters: a column from 992px, a sheet below it (Bootstrap offcanvas-lg). */
.car-listing .eaf-filters .sidebar-form {
	margin: 0;
	padding: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.eaf-filters__head {
	display: flex;
	align-items: center;
	gap: var(--space-4);
}

.eaf-filters__title {
	flex: 1 1 auto;
	margin: 0;
	color: var(--color-fg-default);
	font-family: var(--font-sans);
	font-size: var(--text-xl);
	font-weight: var(--weight-medium);
	line-height: var(--leading-xl);
}

.eaf-filters__clear {
	margin: 0 calc(var(--space-2) * -1);
	padding: var(--space-2);
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--color-accent-primary);
	font-family: var(--font-sans);
	font-size: var(--text-md);
	font-weight: var(--weight-medium);
	line-height: var(--leading-md);
	cursor: pointer;
}

.eaf-filters__clear:hover {
	color: var(--color-fg-on-accent-subtle);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.eaf-filters__clear:focus-visible {
	outline: var(--focus-ring);
	outline-offset: 0;
}

@media (max-width: 991.98px) {
	.eaf-filters {
		--bs-offcanvas-width: 400px;
		--bs-offcanvas-border-width: 0;
		--bs-offcanvas-bg: var(--color-bg-surface);
		--bs-offcanvas-color: var(--color-fg-default);
		--bs-offcanvas-transition: transform var(--duration-long) var(--ease-decelerate);
	}

	.eaf-filters.hiding {
		--bs-offcanvas-transition: transform var(--duration-medium) var(--ease-standard);
	}

	.eaf-filters__head {
		padding: var(--space-2) var(--space-4) var(--space-2) var(--space-5);
		border-bottom: 1px solid var(--color-border);
	}

	.eaf-filters .offcanvas-body {
		padding: var(--space-4) var(--space-5) 0;
	}

	.eaf-filters__foot {
		padding: var(--space-3) var(--space-5) calc(var(--space-3) + env(safe-area-inset-bottom));
		border-top: 1px solid var(--color-border);
	}

	.eaf-filters__show {
		width: 100%;
	}
}

.offcanvas-backdrop {
	background-color: var(--color-scrim);
}

.offcanvas-backdrop.show {
	opacity: 1;
}

@media (max-width: 575.98px) {
	.eaf-filters {
		--bs-offcanvas-width: 100%;
	}
}

@media (min-width: 992px) {
	.eaf-lhead__filters {
		display: none;
	}

	.eaf-pill {
		min-height: var(--control-height);
	}

	.eaf-filters-wrap {
		padding: var(--space-5) var(--space-5) 0;
		border-radius: var(--radius-md);
		background: var(--color-bg-surface);
		box-shadow: var(--shadow-card);
	}

	.eaf-filters__head {
		margin-bottom: var(--space-5);
	}

	.eaf-filters .offcanvas-body {
		display: block;
	}
}

.eaf-chips {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	margin: 0 0 var(--space-5);
}

.eaf-chips[hidden] {
	display: none;
}

.eaf-chips__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	min-width: 0;
	flex: 1 1 auto;
}

.eaf-chip {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	box-sizing: border-box;
	height: var(--chip-height);
	margin: 0;
	padding: 0 var(--space-3);
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-full);
	background: var(--color-bg-surface);
	color: var(--color-fg-default);
	font-family: var(--font-sans);
	font-size: var(--text-sm);
	font-weight: var(--weight-medium);
	line-height: var(--leading-sm);
	white-space: nowrap;
	cursor: pointer;
}

.eaf-chip i {
	--fa-width: auto;
	font-size: var(--text-xs);
}

.eaf-chip:hover,
.eaf-chip:focus-visible {
	box-shadow: inset 0 0 0 100vmax var(--state-hover);
}

.eaf-chip:focus-visible {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
}

.eaf-chips__clear {
	flex: 0 0 auto;
	margin: 0 calc(var(--space-2) * -1);
	padding: var(--space-2);
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--color-accent-primary);
	font-family: var(--font-sans);
	font-size: var(--text-md);
	font-weight: var(--weight-medium);
	line-height: var(--leading-md);
	white-space: nowrap;
	cursor: pointer;
}

.eaf-chips__clear:hover {
	color: var(--color-fg-on-accent-subtle);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.eaf-chips__clear:focus-visible {
	outline: var(--focus-ring);
	outline-offset: 0;
}

@media (max-width: 991.98px) {
	.eaf-chips__list {
		flex-wrap: nowrap;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
	}

	.eaf-chips__list::-webkit-scrollbar {
		display: none;
	}
}

/* Each group: line, title, body. The legend stays floated (Bootstrap) so it
   behaves like a normal block instead of a "rendered legend" that sits on the
   fieldset border and ignores its padding. Spacing lives on the fieldset and
   the body, not on the legend. */
.eaf-filter {
	display: block;
	min-width: 0;
	margin: 0;
	padding: var(--space-6) 0;
	border: 0;
	border-top: 1px solid var(--color-border);
}

.eaf-filter__title {
	float: left;
	width: 100%;
	margin: 0;
	padding: 0;
	color: var(--color-fg-default);
	font-family: var(--font-sans);
	font-size: var(--text-md);
	font-weight: var(--weight-medium);
	line-height: var(--leading-md);
}

.eaf-filter__body {
	clear: both;
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	padding-top: var(--space-4);
}

.eaf-filter__list {
	display: flex;
	flex-direction: column;
}

.eaf-filter__search {
	margin: 0;
}

/* "Show all 17 makes" reads as one more row of the list: same pitch, text
   lined up with the make names (checkbox 20px + gap), no extra air above. */
.eaf-filter__more {
	min-height: var(--control-height-sm);
	margin: 0 calc(var(--space-2) * -1);
	padding: 0 var(--space-2) 0 calc(var(--space-2) + 20px + var(--space-3));
	border: 0;
	border-radius: var(--radius-xs);
	background: transparent;
	text-align: start;
	color: var(--color-accent-primary);
	font-family: var(--font-sans);
	font-size: var(--text-md);
	font-weight: var(--weight-medium);
	line-height: var(--leading-md);
	cursor: pointer;
}

.eaf-filter__more:hover {
	color: var(--color-fg-on-accent-subtle);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.eaf-filter__more:focus-visible {
	outline: var(--focus-ring);
	outline-offset: 0;
}

.eaf-filter__list + .eaf-filter__more {
	margin-top: calc(var(--space-4) * -1);
}

.eaf-range {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-3);
}

.eaf-range__field {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	min-width: 0;
	margin: 0;
}

.eaf-range__label {
	color: var(--color-fg-muted);
	font-size: var(--text-sm);
	line-height: var(--leading-sm);
}

.eaf-range__field select {
	width: 100%;
	height: var(--control-height);
	padding: 0 var(--space-3);
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-xs);
	background: var(--color-bg-surface);
	color: var(--color-fg-default);
	font-family: var(--font-sans);
	font-size: var(--text-sm);
	line-height: var(--leading-sm);
}

.eaf-range__field select:focus-visible {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
}

/* Custom select (assets/js/eaf-select.js): button + listbox over the native
   <select>, which stays in the DOM as the value source but out of tab order. */
.eaf-select {
	position: relative;
	width: 100%;
	min-width: 0;
}

.eaf-select .eaf-select__native {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 1px;
	height: 1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip-path: inset(50%);
	opacity: 0;
	pointer-events: none;
}

.eaf-select__trigger {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--space-2);
	box-sizing: border-box;
	width: 100%;
	height: var(--control-height);
	margin: 0;
	padding: 0 var(--space-3);
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-xs);
	background: var(--color-bg-surface);
	color: var(--color-fg-default);
	font-family: var(--font-sans);
	font-size: var(--text-sm);
	font-weight: var(--weight-regular);
	line-height: var(--leading-sm);
	text-align: left;
	cursor: pointer;
	transition: border-color var(--duration-short) var(--ease-standard);
}

.eaf-select__trigger:hover {
	border-color: var(--color-fg-default);
}

.eaf-select__trigger:focus {
	outline: none;
}

.eaf-select__trigger:focus-visible {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
}

.eaf-select__value {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.eaf-select__chevron {
	--fa-width: auto;
	flex: none;
	font-size: 12px;
	transition: transform var(--duration-short) var(--ease-standard);
}

.eaf-select__trigger[aria-expanded="true"] .eaf-select__chevron {
	transform: rotate(180deg);
}

.eaf-select__list {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 20;
	box-sizing: border-box;
	min-width: 100%;
	max-height: var(--menu-max-height);
	margin: var(--space-1) 0 0;
	padding: var(--space-1) 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-bg-surface);
	box-shadow: var(--shadow-menu);
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(calc(var(--space-1) * -1)) scale(0.98);
	transform-origin: top center;
	transition:
		opacity var(--duration-short) var(--ease-standard),
		transform var(--duration-short) var(--ease-standard),
		visibility 0s linear var(--duration-short);
}

.eaf-select__list.is-up {
	top: auto;
	bottom: 100%;
	margin: 0 0 var(--space-1);
	transform: translateY(var(--space-1)) scale(0.98);
	transform-origin: bottom center;
}

.eaf-select.is-open .eaf-select__list {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition:
		opacity var(--duration-short) var(--ease-standard),
		transform var(--duration-short) var(--ease-standard),
		visibility 0s;
}

.eaf-select__list:focus {
	outline: none;
}

.eaf-select__option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	min-height: var(--control-height);
	padding: 0 var(--space-3);
	color: var(--color-fg-default);
	font-size: var(--text-sm);
	font-weight: var(--weight-regular);
	line-height: var(--leading-sm);
	white-space: nowrap;
	cursor: pointer;
}

.eaf-select__option.is-active {
	box-shadow: inset 0 0 0 100vmax var(--state-hover);
}

.eaf-select__list:focus-visible .eaf-select__option.is-active {
	outline: var(--focus-ring);
	outline-offset: calc(var(--focus-width) * -1);
}

.eaf-select__option[aria-selected="true"] {
	font-weight: var(--weight-medium);
}

.eaf-select__check {
	--fa-width: auto;
	flex: none;
	font-size: 12px;
	visibility: hidden;
}

.eaf-select__option[aria-selected="true"] .eaf-select__check {
	visibility: visible;
}

/* Sort capsule: the trigger fills the pill, the list hangs under the pill. */
.eaf-sort--custom > i {
	display: none;
}

.eaf-sort .eaf-select {
	position: static;
	display: flex;
	align-self: stretch;
	width: auto;
}

.eaf-sort .eaf-select__trigger {
	height: auto;
	padding: 0 calc(var(--space-4) + var(--space-6)) 0 0;
	border: 0;
	border-radius: 0 var(--radius-full) var(--radius-full) 0;
	background: transparent;
	color: inherit;
	font: inherit;
}

.eaf-sort .eaf-select__trigger:focus-visible {
	outline: none;
}

.eaf-sort .eaf-select__chevron {
	position: absolute;
	right: var(--space-4);
	font-size: 14px;
}

.eaf-sort .eaf-select__list {
	right: 0;
	left: auto;
}

@media (max-width: 575.98px) {
	.eaf-sort .eaf-select__trigger {
		padding-right: calc(var(--space-3) + var(--space-6));
	}

	.eaf-sort .eaf-select__chevron {
		right: var(--space-3);
	}
}

@media (prefers-reduced-motion: reduce) {
	.eaf-select__trigger,
	.eaf-select__chevron,
	.eaf-select__list,
	.eaf-select.is-open .eaf-select__list {
		transition: none;
	}
}

.eaf-check {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	min-height: var(--control-height-sm);
	margin: 0 calc(var(--space-2) * -1);
	padding: 0 var(--space-2);
	border-radius: var(--radius-xs);
	color: var(--color-fg-default);
	font-size: var(--text-md);
	line-height: var(--leading-md);
	cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
	.eaf-check:hover {
		box-shadow: inset 0 0 0 100vmax var(--state-hover);
	}
}

.eaf-check[hidden] {
	display: none;
}

.eaf-check input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

.eaf-check__box {
	box-sizing: border-box;
	position: relative;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-xs);
	background: var(--color-bg-surface);
}

.eaf-check input:checked + .eaf-check__box {
	background: var(--color-fg-default);
	border-color: var(--color-fg-default);
}

.eaf-check input:checked + .eaf-check__box::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 6px;
	height: 11px;
	border: solid var(--color-fg-on-dark);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.eaf-check input:focus-visible + .eaf-check__box {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
}

.eaf-check__name {
	min-width: 0;
}

.eaf-check__count {
	margin-left: auto;
	color: var(--color-fg-muted);
	font-size: var(--text-sm);
	line-height: var(--leading-sm);
}

/* Site header (header.php): one component on every page, the home page
   included: white bar, colour logo, like eautolease.com. Sticky everywhere,
   so the hero and the sticky form card start below it. */
html {
	scroll-padding-top: var(--header-height);
}

.eaf-header {
	position: sticky;
	top: 0;
	box-sizing: border-box;
	height: var(--header-height);
	border-bottom: 1px solid var(--color-border);
	background: var(--color-bg-surface);
	box-shadow: none;
	font-family: var(--font-sans);
}

/* Below 992px: menu button, centred logo, call button (and the pill from 768px). */
.eaf-header__bar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: var(--space-2);
	height: 100%;
}

.eaf-header__logo {
	display: block;
	grid-column: 2;
	border-radius: var(--radius-sm);
}

.eaf-header__logo img,
.eaf-menu__logo img {
	display: block;
	width: auto;
	height: var(--logo-height-sm);
}

.eaf-header__nav {
	display: none;
}

.eaf-header__actions {
	display: flex;
	grid-column: 3;
	align-items: center;
	justify-content: flex-end;
	gap: var(--space-2);
}

/* Icon buttons: 48px target, pulled 4px towards the edge so the focus ring still fits on screen. */
.eaf-header__icon,
.eaf-header__phone {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	min-width: var(--touch-target);
	height: var(--touch-target);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--radius-full);
	background: transparent;
	color: var(--color-fg-default);
	font-family: var(--font-sans);
	font-size: var(--text-md);
	font-weight: var(--weight-medium);
	line-height: var(--leading-md);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.eaf-header__burger {
	grid-column: 1;
	justify-self: start;
	margin-left: calc(var(--space-1) * -1);
}

.eaf-header__burger svg {
	display: block;
	width: 24px;
	height: 24px;
}

.eaf-header__phone {
	margin-right: calc(var(--space-1) * -1);
}

.eaf-header__phone i {
	font-size: 18px;
	color: inherit;
}

.eaf-header__phone-number {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.eaf-header__icon:hover,
.eaf-header__phone:hover {
	color: var(--color-fg-default);
	box-shadow: inset 0 0 0 100vmax var(--state-hover);
}

.eaf-header__icon:active,
.eaf-header__phone:active {
	box-shadow: inset 0 0 0 100vmax var(--state-pressed);
}

/* The header pill is .eaf-btn primary lg (Buttons); hidden below 768px. */
.eaf-header__cta {
	display: none;
}

@media (min-width: 768px) {
	.eaf-header__actions .eaf-header__cta {
		display: inline-flex;
	}

	.eaf-header__phone {
		margin-right: 0;
	}
}

/* From 992px: logo, the five links, then phone and pill on the right. */
@media (min-width: 992px) {
	.eaf-header__bar {
		display: flex;
		gap: var(--space-6);
	}

	.eaf-header__burger {
		display: none;
	}

	.eaf-header__logo img {
		height: var(--logo-height);
	}

	.eaf-header__nav {
		display: block;
		flex: 1 1 auto;
	}

	.eaf-header__nav ul {
		display: flex;
		justify-content: center;
		gap: var(--space-1);
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.eaf-header__nav a {
		display: inline-flex;
		align-items: center;
		height: var(--control-height-lg);
		padding: 0 var(--space-3);
		border-radius: var(--radius-sm);
		color: var(--color-fg-default);
		font-size: var(--text-md);
		font-weight: var(--weight-medium);
		line-height: var(--leading-md);
		text-decoration: none;
	}

	.eaf-header__nav a:hover,
	.eaf-header__nav a.is-current {
		color: var(--color-accent-primary);
	}

	.eaf-header__nav a.is-current {
		text-decoration: underline;
		text-underline-offset: 0.35em;
	}

	.eaf-header__actions {
		flex: 0 0 auto;
		gap: var(--space-4);
	}
}

/* Six links (with About, out until its copy arrives) need ~565px; below
   1400px the bar has 488–543 (nav-fit.js), so the links pack tighter there,
   and one type step down while the phone is an icon. */
@media (min-width: 992px) and (max-width: 1399.98px) {
	.eaf-header__nav ul {
		gap: 0;
	}

	.eaf-header__nav a {
		padding: 0 var(--space-2);
		white-space: nowrap;
	}
}

@media (min-width: 992px) and (max-width: 1199.98px) {
	.eaf-header__nav a {
		font-size: var(--text-sm);
		line-height: var(--leading-sm);
	}
}

/* From 1200px the number is written out: a text link, not an icon button. */
@media (min-width: 1200px) {
	.eaf-header__phone {
		padding: 0 var(--space-2);
		border-radius: var(--radius-sm);
	}

	.eaf-header__phone i {
		font-size: 16px;
		color: var(--color-fg-muted);
	}

	.eaf-header__phone-number {
		position: static;
		width: auto;
		height: auto;
		overflow: visible;
		clip-path: none;
	}

	.eaf-header__phone:hover,
	.eaf-header__phone:hover i {
		color: var(--color-accent-primary);
		box-shadow: none;
	}
}

/* Mobile menu: Bootstrap offcanvas (Esc, focus trap, focus return), white
   like the Filters sheet. Never shown from 992px. */
.eaf-menu {
	font-family: var(--font-sans);
}

@media (max-width: 991.98px) {
	.eaf-menu {
		--bs-offcanvas-width: min(400px, calc(100% - var(--touch-target)));
		--bs-offcanvas-border-width: 0;
		--bs-offcanvas-bg: var(--color-bg-surface);
		--bs-offcanvas-color: var(--color-fg-default);
		--bs-offcanvas-transition: transform var(--duration-long) var(--ease-decelerate);
	}

	.eaf-menu.hiding {
		--bs-offcanvas-transition: transform var(--duration-medium) var(--ease-standard);
	}
}

@media (min-width: 992px) {
	.eaf-menu.offcanvas-lg {
		display: none;
	}
}

.eaf-menu__head {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	box-sizing: border-box;
	height: var(--header-height);
	padding: 0 var(--space-4) 0 var(--space-5);
	border-bottom: 1px solid var(--color-border);
}

.eaf-menu__logo {
	display: block;
	border-radius: var(--radius-sm);
}

.eaf-menu .eaf-menu__body {
	display: block;
	padding: var(--space-2) 0 calc(var(--space-6) + env(safe-area-inset-bottom));
}

.eaf-menu__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.eaf-menu__list a {
	display: flex;
	align-items: center;
	min-height: var(--touch-target);
	padding: 0 var(--space-5);
	color: var(--color-fg-default);
	font-size: var(--text-md);
	font-weight: var(--weight-medium);
	line-height: var(--leading-md);
	text-decoration: none;
}

.eaf-menu__list a:hover {
	color: var(--color-fg-default);
	box-shadow: inset 0 0 0 100vmax var(--state-hover);
}

.eaf-menu__list a:active {
	box-shadow: inset 0 0 0 100vmax var(--state-pressed);
}

.eaf-menu__list a.is-current {
	color: var(--color-accent-primary);
	text-decoration: underline;
	text-underline-offset: 0.35em;
}

.eaf-menu__list a:focus-visible {
	outline-offset: calc(var(--focus-width) * -1);
}

.eaf-menu__contact {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	margin: var(--space-2) var(--space-5) 0;
	padding-top: var(--space-4);
	border-top: 1px solid var(--color-border);
}

.eaf-menu__phone {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	min-height: var(--touch-target);
	border-radius: var(--radius-sm);
	color: var(--color-fg-default);
	font-size: var(--text-md);
	font-weight: var(--weight-medium);
	line-height: var(--leading-md);
	text-decoration: none;
}

.eaf-menu__phone i {
	font-size: 16px;
	color: var(--color-fg-muted);
}

.eaf-menu__phone:hover,
.eaf-menu__phone:hover i {
	color: var(--color-accent-primary);
}

.eaf-menu .eaf-menu__cta {
	display: flex;
}

.product-detail-head .detail-page-head h3 {
	margin: 0 0 var(--space-2);
	color: var(--color-fg-default);
	font-size: var(--text-3xl);
	font-weight: var(--weight-regular);
	line-height: var(--leading-3xl);
}

.product-detail-head .details-btn a {
	box-sizing: border-box;
	height: var(--control-height);
	margin: 0;
	padding: 0 var(--space-6);
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-full);
	background: var(--color-bg-surface);
	color: var(--color-accent-primary);
	font-size: var(--text-sm);
	font-weight: var(--weight-medium);
	line-height: var(--leading-sm);
	text-decoration: none;
}

.product-detail-head .details-btn a:hover,
.product-detail-head .details-btn a:focus-visible {
	background: var(--color-bg-accent-subtle);
	color: var(--color-fg-on-accent-subtle);
}

.product-details {
	padding: var(--section-gap) 0 var(--space-8);
}

.details-car-grid {
	padding: var(--space-12) 0 0;
}

.details-slider-heading {
	margin: 0 0 var(--space-6);
}

.details-slider-heading h3 {
	margin: 0;
	color: var(--color-fg-default);
	font-size: var(--text-2xl);
	font-weight: var(--weight-regular);
	line-height: var(--leading-2xl);
}

@media (max-width: 991.96px) {
	.product-detail-head {
		padding: var(--space-4);
	}

	.product-detail-head .detail-page-head {
		display: flex;
	}

	.product-details {
		padding: var(--space-8) 0 var(--space-6);
	}

	.product-detail-head .details-btn a {
		margin: 0 0 var(--space-4);
	}
}

@media (max-width: 767.96px) {
	.details-slider-heading h3 {
		margin-top: 0;
	}
}

.eaf-quote__title {
	margin: 0 0 var(--space-2);
	color: var(--color-fg-default);
	font-size: var(--text-xl);
	font-weight: var(--weight-medium);
	line-height: var(--leading-xl);
	text-wrap: balance;
}

.eaf-quote__lead {
	margin: 0 0 var(--space-5);
	color: var(--color-fg-muted);
	font-size: var(--text-sm);
	font-weight: var(--weight-regular);
	line-height: var(--leading-sm);
	text-wrap: pretty;
}

.eaf-offer-call {
	margin: var(--space-3) 0 0;
	color: var(--color-fg-muted);
	font-size: var(--text-sm);
	line-height: var(--leading-sm);
}

.eaf-offer-call a,
.eaf-quote__note a {
	color: var(--color-accent-primary);
	font-weight: var(--weight-semibold);
}

.eaf-offer-call a:hover,
.eaf-quote__note a:hover,
.eaf-offer-call a:focus-visible,
.eaf-quote__note a:focus-visible {
	color: var(--color-fg-on-accent-subtle);
	text-decoration: underline;
}

.eaf-offer-call a:focus-visible,
.eaf-quote__note a:focus-visible {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
}

.eaf-quote__note {
	margin: var(--space-2) 0 0;
	color: var(--color-fg-muted);
	font-size: var(--text-sm);
	line-height: var(--leading-sm);
}

.eaf-quote .eaf-lead-form__status {
	margin: 0;
	padding: var(--space-4);
	border-radius: var(--radius-sm);
	background: var(--color-bg-dark);
	color: var(--color-fg-on-dark);
}

.eaf-quote .eaf-lead-form__status strong {
	display: block;
	margin-bottom: var(--space-1);
	font-weight: var(--weight-semibold);
}

.eaf-lead-form.is-sent .eaf-quote__fields,
.eaf-lead-form.is-sent .eaf-quote__note,
.eaf-lead-form.is-sent .eaf-quote__submit {
	display: none;
}

.eaf-lead-form.is-sent .eaf-lead-form__status {
	margin: var(--space-4) 0 0;
	padding: var(--space-4);
	border-radius: var(--radius-sm);
	background: var(--color-bg-dark);
	color: var(--color-fg-on-dark);
}

/* eaf-lead.js focuses the thanks line once the fields are gone. */
.eaf-lead-form__status:focus {
	outline: none;
}

/* Sending: the API answers within a second or two; the label says "Sending…". */
.eaf-lead-form.is-sending [type="submit"] {
	cursor: progress;
}

.eaf-lead-form__error {
	margin: var(--space-3) 0 0;
	color: var(--color-fg-danger);
	font-size: var(--text-sm);
	line-height: var(--leading-sm);
}

.eaf-lead-form__error a {
	color: inherit;
	font-weight: var(--weight-semibold);
	text-decoration: underline;
}

.eaf-lead-form__error a:focus-visible {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
}

/* The centred window holds about 550px (drawer-fit.js, 1280×609): with the reCAPTCHA line in the note, the call line moves up. */
@media (min-width: 768px) {
	.eaf-lead-dialog .eaf-quote .eaf-offer-call {
		margin-top: var(--space-4);
		padding-top: var(--space-4);
	}
}

/* The honeypot (eaf_lead_trap()): autofill and screen readers skip display: none. */
.eaf-lead-trap {
	display: none;
}

/* Hidden as Google allows: each form carries the reCAPTCHA line (eaf_recaptcha_notice()). visibility, not display, or reCAPTCHA stops working. */
.grecaptcha-badge {
	visibility: hidden;
}

/* Vehicle history at the top of the form card: one cell per fact, each with its own icon, split by the same rule as the call line. Blue stays for the button. */
.eaf-history {
	margin: 0 0 var(--space-6);
	padding: 0 0 var(--space-6);
	border-bottom: 1px solid var(--color-border);
}

.eaf-history__label {
	margin: 0 0 var(--space-3);
	color: var(--color-fg-muted);
	font-size: var(--text-sm);
	font-weight: var(--weight-medium);
	line-height: var(--leading-sm);
}

.eaf-history__list {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.eaf-history__list li {
	display: grid;
	align-content: start;
	margin: 0;
	padding: 0 var(--space-4);
	border-left: 1px solid var(--color-border);
	color: var(--color-fg-default);
	font-size: var(--text-md);
	font-weight: var(--weight-medium);
	line-height: var(--leading-md);
	text-wrap: balance;
	overflow-wrap: anywhere;
}

.eaf-history__list li:first-child {
	padding-left: 0;
	border-left: 0;
}

.eaf-history__list li:last-child {
	padding-right: 0;
}

.eaf-history__list i {
	--fa-width: auto;
	justify-self: start;
	margin: 0 0 var(--space-2);
	font-size: 20px;
	line-height: var(--leading-md);
}

.eaf-history__note {
	color: var(--color-fg-muted);
	font-size: var(--text-sm);
	font-weight: var(--weight-regular);
	line-height: var(--leading-sm);
}

.eaf-quote .eaf-offer-call {
	margin: var(--space-6) 0 0;
	padding-top: var(--space-6);
	border-top: 1px solid var(--color-border);
	color: var(--color-fg-muted);
	font-size: var(--text-sm);
	font-weight: var(--weight-regular);
	line-height: var(--leading-sm);
}

.eaf-quote .eaf-offer-call a {
	font-weight: var(--weight-medium);
}

.eaf-quote .eaf-lead-form__status,
.eaf-quote .eaf-lead-form.is-sent .eaf-lead-form__status {
	border-radius: var(--radius-sm);
	background: var(--color-bg-accent-subtle);
	color: var(--color-fg-on-accent-subtle);
}

.eaf-lead-form input:focus-visible {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
}

body.eaf-lead-open {
	overflow: hidden;
}

@view-transition {
	navigation: auto;
}

/* eaf-vt.js focuses the page heading so screen readers announce it; it is not a control. */
.breadcrumb-title[tabindex="-1"]:focus,
h1[tabindex="-1"]:focus {
	outline: none;
}

@media (prefers-reduced-motion: no-preference) {
	@keyframes eaf-fade {
		from { opacity: 0; }
		to { opacity: 1; }
	}

	::view-transition-old(root) {
		animation: eaf-fade var(--duration-medium) var(--ease-standard) reverse;
	}

	::view-transition-new(root) {
		animation: eaf-fade var(--duration-medium) var(--ease-standard);
	}
}

@media (prefers-reduced-motion: reduce) {
	::view-transition-group(*),
	::view-transition-old(*),
	::view-transition-new(*) {
		animation: none !important;
	}
}

/* ==========================================================================
   Motion and hover system (design/tokens/motion.md, colors.md)
   - Transitions name their properties, never "all": the vendor's
     "transition: all 0.2s / 0.5s" also animated outlines (a focus ring that
     fades in from 0 px) and layout.
   - State changes: --duration-short + --ease-standard. Panels and photos
     appearing: --duration-medium + --ease-decelerate. Drawer, sheet and menu
     slide in: --duration-long + --ease-decelerate; out: --duration-medium.
   - Hover: filled buttons keep their fill and get an inset white layer;
     text links shift colour (accent links also underline); neutral controls
     get the --state-hover tint; cards swap the photo and colour the title.
     Nothing zooms, lifts or moves its neighbours.
   - Focus: one ring everywhere, the on-dark ring on #111 surfaces.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
	a,
	button,
	summary,
	input,
	textarea,
	.btn,
	.form-control,
	.eaf-sort,
	.eaf-check,
	.eaf-make__name,
	.eaf-header,
	.eaf-menu__list a,
	.contact-section .contact-info-area .single-contact-info,
	.contact-section .contact-info-area .single-contact-info i,
	.contact-section .contact-info-area .single-contact-info h3,
	.contact-section .contact-info-area .single-contact-info a,
	.progress-wrap::after {
		transition-property: color, background-color, border-color, box-shadow, opacity;
		transition-duration: var(--duration-short);
		transition-timing-function: var(--ease-standard);
	}

	/* Icons that turn with their control. */
	.eaf-equipment-all summary i {
		transition: transform var(--duration-short) var(--ease-standard);
	}

	/* Content that enters: the chip row, the Model group after a make is
	   picked, the drawer's scrim. Chips themselves are rebuilt on every
	   change, so only their row fades in. */
	.eaf-chips:not([hidden]),
	.eaf-filter[data-eaf-models]:not([hidden]),
	.eaf-lead-drawer__backdrop {
		animation: eaf-fade var(--duration-medium) var(--ease-decelerate);
	}

	.eaf-lead-drawer.is-closing .eaf-lead-dialog {
		animation: eaf-sheet-out var(--duration-medium) var(--ease-standard) forwards;
	}

	/* The centred window (768px and up) fades with its scrim instead of sliding. */
	@media (min-width: 768px) {
		.eaf-lead-dialog {
			animation: eaf-fade var(--duration-medium) var(--ease-decelerate);
		}

		.eaf-lead-drawer.is-closing .eaf-lead-dialog {
			animation: eaf-fade-out var(--duration-medium) var(--ease-standard) forwards;
		}
	}

	/* Its own name: re-using eaf-fade with "reverse" would not restart the
	   finished open animation, and the scrim would vanish at once. */
	.eaf-lead-drawer.is-closing .eaf-lead-drawer__backdrop {
		animation: eaf-fade-out var(--duration-medium) var(--ease-standard) forwards;
	}

	/* Bootstrap's backdrop under the Filters sheet. */
	.offcanvas-backdrop.fade {
		transition: opacity var(--duration-medium) var(--ease-decelerate);
	}

	/* Back to top: enters from below; follows the phone bar up and down. */
	.progress-wrap {
		transition:
			opacity var(--duration-medium) var(--ease-standard),
			transform var(--duration-medium) var(--ease-standard),
			visibility 0s linear var(--duration-medium),
			bottom var(--duration-medium) var(--ease-standard),
			box-shadow var(--duration-short) var(--ease-standard);
	}

	.progress-wrap.is-shown {
		transition:
			opacity var(--duration-medium) var(--ease-decelerate),
			transform var(--duration-medium) var(--ease-decelerate),
			visibility 0s,
			bottom var(--duration-medium) var(--ease-standard),
			box-shadow var(--duration-short) var(--ease-standard);
	}
}

@keyframes eaf-fade-out {
	from { opacity: 1; }
	to { opacity: 0; }
}

@keyframes eaf-sheet-out {
	from { transform: translateX(0); }
	to { transform: translateX(100%); }
}

.eaf-lead-drawer.is-closing {
	pointer-events: none;
}

/* Reduced motion: no transition anywhere. Swiper is left alone: it waits for
   transitionend, and eaf-gallery.js already sets its speed to 0. */
@media (prefers-reduced-motion: reduce) {
	*:not(.swiper-wrapper, .swiper-slide),
	*::before,
	*::after {
		transition-duration: 0s !important;
		transition-delay: 0s !important;
	}
}

/* Focus: one ring. Bootstrap and the vendor drop the outline on .btn,
   .accordion-button and others, so those are named here. */
/* Vendor a:focus { outline: 0 } outranks a bare :focus-visible. */
:focus-visible,
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.accordion-button:focus-visible {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
}

.banner-section-four :focus-visible,
.banner-section-four a:focus-visible,
.banner-section-four .btn:focus-visible,
.breadcrumb-bar :focus-visible,
.eaf-foot :focus-visible,
.eaf-viewer :focus-visible {
	outline-color: var(--color-focus-on-dark);
}

/* Vendor: .btn:focus { box-shadow: none !important }. A clicked button keeps
   focus, so without this its hover layer would vanish until blur. Only the
   old vendor templates still use .btn; site buttons are .eaf-btn. */
.btn:focus:hover {
	box-shadow: inset 0 0 0 100vmax var(--state-hover-on-accent) !important;
}

.btn:active,
.btn:focus:active {
	box-shadow: inset 0 0 0 100vmax var(--state-pressed-on-accent) !important;
}

/* Neutral controls pressed. */
button.eaf-pill:active,
.eaf-sort:active,
.eaf-chip:active,
.eaf-gallery__arrow:active,
.eaf-gallery__all:active {
	box-shadow: inset 0 0 0 100vmax var(--state-pressed);
}

.eaf-lead-drawer__close:active::before,
.eaf-filters__close:active::before {
	box-shadow: inset 0 0 0 100vmax var(--state-pressed);
}

/* Card title: the two-line clamp (overflow: hidden) cut the link's ring on
   two sides. The title block draws it instead; its own outline is not clipped. */
.listing-item .listing-features .listing-title a:focus-visible {
	outline: 0;
}

.listing-item .listing-features .listing-title:has(a:focus-visible) {
	border-radius: var(--radius-xs);
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
}

/* Neutral links on light surfaces shift to the brand blue. */
.contact-section .contact-info-area .single-contact-info a,
.contact-section .contact-info-area .single-contact-info:hover a {
	color: var(--color-fg-muted);
}

.contact-section .contact-info-area .single-contact-info a:hover,
.contact-section .contact-info-area .single-contact-info:hover a:hover {
	color: var(--color-accent-primary);
}

/* Make tiles: the name turns brand blue like a car card's title; the panel
   lifts and takes the pressed layer (below). */
.eaf-make:hover .eaf-make__name {
	color: var(--color-accent-primary);
}

/* Lift (redesign.md section 13, motion.md): only what leads somewhere, the
   vehicle card and the make tile, rises by --lift onto --shadow-lift. Mouse
   only, like the photo swap; transform does not move the neighbours. With
   reduced motion the shadow still changes, the card stays put. */
@media (hover: hover) and (pointer: fine) {
	.listing-item:hover,
	.eaf-make:hover {
		box-shadow: var(--shadow-lift);
	}

	@media (prefers-reduced-motion: no-preference) {
		.listing-item,
		.eaf-make {
			transition:
				box-shadow var(--duration-medium) var(--ease-standard),
				transform var(--duration-medium) var(--ease-standard);
		}

		.listing-item:hover,
		.eaf-make:hover {
			transform: translateY(var(--lift));
		}

		/* The trailing arrow of "Browse used cars", "View all used cars",
		   "View more cars" steps forward; the colour layer stays as it is. */
		.eaf-btn > .bx-right-arrow-alt {
			transition: transform var(--duration-short) var(--ease-standard);
		}

		.eaf-btn:hover > .bx-right-arrow-alt {
			transform: translateX(var(--space-1));
		}
	}
}

.eaf-make:active {
	box-shadow: inset 0 0 0 100vmax var(--state-pressed);
	transform: none;
}

/* Chips and pills: the --state-hover tint plus the border darkening to
   --color-fg-default, the same rule as the text fields. */
.eaf-chip:hover,
button.eaf-pill:hover,
.eaf-sort:hover {
	border-color: var(--color-fg-default);
}

/* Reveal on first view (eafInitReveal in eaf-vt.js). Inert: no template
   carries data-eaf-reveal yet; the hero car is the page's one moment.
   [data-eaf-reveal] fades and rises itself; [data-eaf-reveal="stagger"]
   stays put and its children follow one --stagger apart (--i, capped at 8).
   .eaf-reveal-on is set by the script only (never without JS or with
   reduced motion); anything on screen at start gets .is-instant. */
@media (prefers-reduced-motion: no-preference) {
	.eaf-reveal-on [data-eaf-reveal]:not([data-eaf-reveal="stagger"]):not(.is-revealed),
	.eaf-reveal-on [data-eaf-reveal="stagger"]:not(.is-revealed) > * {
		opacity: 0;
		transform: translateY(var(--space-3));
	}

	.eaf-reveal-on [data-eaf-reveal].is-revealed:not([data-eaf-reveal="stagger"], .is-instant),
	.eaf-reveal-on [data-eaf-reveal="stagger"].is-revealed:not(.is-instant) > * {
		animation: eaf-reveal var(--duration-medium) var(--ease-decelerate) calc(var(--stagger) * min(var(--i, 0), 8)) backwards;
	}
}

@keyframes eaf-reveal {
	from {
		opacity: 0;
		transform: translateY(var(--space-3));
	}
}

/* Not clickable, so no hover: contact cards. The vendor flipped them to #111
   and grew the icon. */
.contact-section .contact-info-area .single-contact-info:hover {
	background: var(--color-bg-surface);
}

.contact-section .contact-info-area .single-contact-info:hover i {
	background: var(--color-accent-primary);
	color: var(--color-fg-on-accent);
	font-size: 26px;
}

.contact-section .contact-info-area .single-contact-info:hover h3 {
	color: var(--color-fg-default);
}

@media (max-width: 991.98px) {
	.contact-section .contact-info-area .single-contact-info:hover i {
		font-size: 16px;
	}
}

/* Contact form fields: the same field language as the vehicle form. */
.input-block .form-control {
	border-color: var(--color-border-strong);
	background: var(--color-bg-surface);
	color: var(--color-fg-default);
}

.input-block .form-control:hover {
	border-color: var(--color-fg-default);
}

.input-block .form-control:focus {
	outline: 0;
	border-color: var(--color-accent-primary);
	background: var(--color-bg-surface);
	box-shadow: inset 0 0 0 1px var(--color-accent-primary);
}

/* Catalog search fields darken their border like the other fields. */
.car-listing .form-custom .form-control:hover {
	border-color: var(--color-fg-default);
}

/* FAQ rows sit flush with the text, so a tint reads as a highlighter:
   they shift colour like the other text controls instead. */
.accordion .accordion-item .accordion-button:hover {
	color: var(--color-accent-primary);
}

/* Back to top: a white disc so the arrow passes contrast over the dark
   footer too; the vendor ring rgba(75, 64, 237, 0.2) becomes the border token.
   A real <button> (footer.php). backToTop.js still draws the ring and scrolls;
   eaf-vt.js shows it (.is-shown) only once the first screen is scrolled past,
   so it never sits on the hero's buttons or the search bar; below 1200px, where
   it covers the cards' buttons, only while the page scrolls up or at its end. */
.progress-wrap {
	right: var(--space-4);
	bottom: var(--space-4);
	width: var(--control-height);
	height: var(--control-height);
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--color-bg-surface);
	box-shadow: inset 0 0 0 2px var(--color-border);
	appearance: none;
}

.progress-wrap svg {
	display: block;
}

.progress-wrap::after {
	width: 100%;
	height: 100%;
	border: 0;
	line-height: var(--control-height);
}

.progress-wrap,
.progress-wrap.active-progress {
	opacity: 0;
	visibility: hidden;
	transform: translateY(var(--space-4));
}

.progress-wrap.is-shown,
.progress-wrap.active-progress.is-shown {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.progress-wrap:focus-visible {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
}

.progress-wrap:hover {
	box-shadow: inset 0 0 0 2px var(--color-border), inset 0 0 0 100vmax var(--state-hover);
}

.progress-wrap::after {
	color: var(--color-accent-primary);
}

/* Card photo badges (eaf_vehicle_badges): one pill top-left, where the make
   plate used to be. Above the hover photo and the focus layer, and click-through
   so the photo link still works. Solid surfaces keep the text readable on any photo. */
.listing-item .listing-img .eaf-badge {
	position: absolute;
	top: var(--space-3);
	left: var(--space-3);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	padding: var(--space-1) var(--space-3);
	border-radius: var(--radius-full);
	background: var(--color-bg-surface);
	box-shadow: var(--shadow-menu);
	color: var(--color-fg-default);
	font-family: var(--font-sans);
	font-size: var(--text-sm);
	font-weight: var(--weight-medium);
	line-height: var(--leading-sm);
	white-space: nowrap;
	pointer-events: none;
}

.listing-item .listing-img .eaf-badge--sold {
	background: var(--color-bg-dark);
	color: var(--color-fg-on-dark);
}

/* Sold card: the photo is dimmed with the scrim token, and the button slot
   stays empty at button height so the card lines up with its neighbours. */
.eaf-card--sold .listing-img > a::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: var(--color-scrim);
	pointer-events: none;
}

.listing-item .eaf-card-sold-slot {
	min-height: var(--control-height);
}

/* Sold vehicle page: the history card stands alone, without the form below it. */
.eaf-quote-card--sold .eaf-history {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.eaf-card--sold .listing-img > a::after {
	z-index: 1;
}

/* Skip link (header.php): hidden until focused, then a small card over the header. */
.eaf-skip.visually-hidden-focusable:focus,
.eaf-skip.visually-hidden-focusable:focus-visible {
	position: fixed !important;
	top: calc(env(safe-area-inset-top, 0px) + var(--space-2));
	left: var(--space-2);
	z-index: 1090;
	padding: var(--space-2) var(--space-4);
	border-radius: var(--radius-sm);
	background: var(--color-bg-surface);
	color: var(--color-fg-default);
	font-size: var(--text-sm);
	box-shadow: var(--shadow-menu);
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
	transition: none;
}

#main:focus {
	outline: none;
}

/* Coming soon (template-parts/coming-soon.php): the public page before launch.
   It loads without the vendor and Bootstrap sheets, so it sets its own base. */
.eaf-soon {
	margin: 0;
	background: var(--color-bg-page);
	color: var(--color-fg-default);
	font-family: var(--font-sans);
	font-size: var(--text-md);
	line-height: var(--leading-md);
}

.eaf-soon__main {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--space-6);
	min-height: 100vh;
	min-height: 100svh;
	padding: var(--space-12) var(--space-6);
	text-align: center;
}

.eaf-soon__logo {
	display: block;
	width: auto;
	height: calc(var(--logo-height) * 1.5);
}

.eaf-soon__title {
	margin: 0;
	font-size: var(--text-display);
	font-weight: var(--weight-bold);
	line-height: var(--leading-display);
}

.eaf-soon__lot {
	display: flex;
	flex-direction: column;
	margin: 0;
	color: var(--color-fg-muted);
	font-size: var(--text-sm);
	font-style: normal;
	line-height: var(--leading-sm);
}
