/*!
 * Driveway / Stepfox Car Dealer — tokens, atoms, dark scheme (handle `stepfox-cd`).
 *
 * Every block's `style` and enqueued globally on the front end. Component
 * sheets (cards, vehicle, components, dealers, engage, finance, map) load
 * AFTER this one and may override any atom at equal specificity.
 *
 *  1. Light palette FALLBACKS — :where(:root), zero specificity: a block
 *     theme's theme.json (or the Elementor theme's theme.css) always wins, so
 *     the blocks look right even on a non-Driveway theme.
 *  2. Dark scheme — :root[data-sfcd-scheme="dark"] re-maps all 16 colour
 *     presets, the gradients and the shadows. Written by includes/scheme.php.
 *  3. Tokens — --sfcd-* (radii, spacing, fonts, shadows, motion) and the
 *     semantic colours: deal rating (--sfcd-deal-great|good|fair|high),
 *     condition (--sfcd-cond-new|used|certified), open/closed, "-strong"
 *     fills that carry 12px labels.
 *  4. Atoms — .sfcd-btn, .sfcd-icon-btn, .sfcd-chip (+ condition / label /
 *     status / price-drop variants), .sfcd-deal (deal-rating pill),
 *     .sfcd-badge, .sfcd-pill--*, .sfcd-monogram, .sfcd-strike,
 *     .sfcd-input/.sfcd-select/.sfcd-textarea/.sfcd-range/.sfcd-check,
 *     .sfcd-field, .sfcd-seg, .sfcd-icon, .sfcd-avatar, .sfcd-glass,
 *     .sfcd-empty, .sfcd-skeleton, .sfcd-visually-hidden, .sfcd-reveal,
 *     theme toggle, toaster, sticky bar base, loops & fields helpers,
 *     utilities.
 *
 * House rule: every colour is var(--wp--preset--color--<slug>) so the dark
 * scheme flips everything. Hex values appear only in sections 1–2, the print
 * palette, and the fixed on-photo white.
 *
 * Contrast: text on a filled brand colour uses the `base` preset (near-white
 * in light, near-black in dark). Fills that carry small labels use the
 * "-strong" aliases (--sfcd-accent-strong, --sfcd-neon-strong): a deeper tone
 * in light mode so 12px labels pass 4.5:1, the plain preset in dark mode.
 */

/* ==========================================================================
   1. Light palette fallbacks (theme presets win)
   ========================================================================== */

:where(:root) {
	--wp--preset--color--base: #f2f3f5;
	--wp--preset--color--panel: #ffffff;
	--wp--preset--color--panel-2: #e6e8ec;
	--wp--preset--color--line: rgba(14, 17, 22, 0.10);
	--wp--preset--color--ink: #0e1116;
	--wp--preset--color--muted: #596372;
	--wp--preset--color--accent: #c2410c;
	--wp--preset--color--accent-2: #1d4ed8;
	--wp--preset--color--neon: #0b8a5f;
	--wp--preset--color--violet: #1b2a4a;
	--wp--preset--color--turf: #dfe8f7;
	--wp--preset--color--gold: #8a6400;
	--wp--preset--color--glass: rgba(255, 255, 255, 0.86);
	--wp--preset--color--glass-2: rgba(242, 243, 245, 0.80);
	--wp--preset--color--edge: rgba(14, 17, 22, 0.08);
	--wp--preset--color--transparent: rgba(0, 0, 0, 0);

	/* Ember and charge-green deep enough to carry a 12px label: 5.2:1 and
	   4.8:1 with the base text colour (the plain presets are 4.6:1 / 3.9:1 —
	   icons, dots and large type only). */
	--sfcd-accent-strong: #b73a09;
	--sfcd-neon-strong: #067350;
	--sfcd-gold-strong: #7e5c02;

	--wp--preset--gradient--brand: linear-gradient(135deg, #c2410c 0%, #f59e0b 100%);
	--wp--preset--gradient--cobalt: linear-gradient(135deg, #1d4ed8 0%, #1b2a4a 100%);
	--wp--preset--gradient--ocean: linear-gradient(135deg, #1d4ed8 0%, #1b2a4a 100%);
	--wp--preset--gradient--dusk: linear-gradient(180deg, #1b2a4a 0%, #090b0f 100%);
	--wp--preset--gradient--scrim: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);

	--wp--preset--shadow--depth-0: 0 1px 0 rgba(14, 17, 22, 0.04);
	--wp--preset--shadow--depth-1: 0 1px 2px rgba(14, 17, 22, 0.06), 0 1px 3px rgba(14, 17, 22, 0.06);
	--wp--preset--shadow--depth-2: 0 6px 16px -6px rgba(14, 17, 22, 0.14), 0 2px 4px -2px rgba(14, 17, 22, 0.06);
	--wp--preset--shadow--depth-3: 0 14px 32px -12px rgba(14, 17, 22, 0.22), 0 4px 10px -4px rgba(14, 17, 22, 0.08);
	--wp--preset--shadow--depth-4: 0 28px 64px -20px rgba(14, 17, 22, 0.32), 0 10px 24px -10px rgba(14, 17, 22, 0.14);
	--wp--preset--shadow--ring: 0 0 0 1px rgba(14, 17, 22, 0.10);
	--wp--preset--shadow--ring-hot: 0 0 0 3px rgba(194, 65, 12, 0.30);
}

:root[data-sfcd-scheme="light"] {
	color-scheme: light;
}

/* ==========================================================================
   2. Dark scheme — re-maps the presets themselves, so core blocks, Elementor
      chrome and every plugin component switch through one contract.
   ========================================================================== */

:root[data-sfcd-scheme="dark"] {
	color-scheme: dark;

	--wp--preset--color--base: #090b0f;
	--wp--preset--color--panel: #12151b;
	--wp--preset--color--panel-2: #1a1e26;
	--wp--preset--color--line: rgba(255, 255, 255, 0.09);
	--wp--preset--color--ink: #f3f5f8;
	--wp--preset--color--muted: #9aa3b2;
	--wp--preset--color--accent: #ff7a3d;
	--wp--preset--color--accent-2: #6c9bff;
	--wp--preset--color--neon: #34e0a1;
	--wp--preset--color--violet: #9db7f5;
	--wp--preset--color--turf: #14213d;
	--wp--preset--color--gold: #f5c451;
	--wp--preset--color--glass: rgba(9, 11, 15, 0.82);
	--wp--preset--color--glass-2: rgba(26, 30, 38, 0.72);
	--wp--preset--color--edge: rgba(255, 255, 255, 0.10);
	--wp--preset--color--transparent: rgba(0, 0, 0, 0);

	/* The bright night tones already pass with near-black text (7.6:1 / 11:1). */
	--sfcd-accent-strong: var(--wp--preset--color--accent);
	--sfcd-neon-strong: var(--wp--preset--color--neon);
	--sfcd-gold-strong: var(--wp--preset--color--gold);

	--wp--preset--gradient--brand: linear-gradient(135deg, #ff7a3d 0%, #f5b03b 100%);
	--wp--preset--gradient--cobalt: linear-gradient(135deg, #2f5fe0 0%, #14213d 100%);
	--wp--preset--gradient--ocean: linear-gradient(135deg, #2f5fe0 0%, #14213d 100%);
	--wp--preset--gradient--dusk: linear-gradient(180deg, #14213d 0%, #05070a 100%);
	--wp--preset--gradient--scrim: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.74) 100%);

	--wp--preset--shadow--depth-0: 0 1px 0 rgba(0, 0, 0, 0.40);
	--wp--preset--shadow--depth-1: 0 1px 2px rgba(0, 0, 0, 0.50), 0 0 0 1px rgba(255, 255, 255, 0.04);
	--wp--preset--shadow--depth-2: 0 8px 20px -8px rgba(0, 0, 0, 0.60), 0 0 0 1px rgba(255, 255, 255, 0.05);
	--wp--preset--shadow--depth-3: 0 18px 40px -14px rgba(0, 0, 0, 0.70), 0 0 0 1px rgba(255, 255, 255, 0.06);
	--wp--preset--shadow--depth-4: 0 30px 70px -20px rgba(0, 0, 0, 0.80), 0 0 0 1px rgba(255, 255, 255, 0.07);
	--wp--preset--shadow--ring: 0 0 0 1px rgba(255, 255, 255, 0.12);
	--wp--preset--shadow--ring-hot: 0 0 0 3px rgba(255, 122, 61, 0.42);
}

/* Photography reads a touch too bright on a night palette. */
:root[data-sfcd-scheme="dark"] :where(.sfcd-dim-in-dark, .sfcd-card img, .sfcd-gallery img, .sfcd-make-tile img, .sfcd-loc-tile img) {
	filter: brightness(0.92) contrast(1.02);
}

/* A visitor's own light/dark switch cross-fades the surfaces (fx.js adds the
   class for 0.4 s; never on first paint, never under reduced motion). */
:root.sfcd-scheme-anim :where(body, body *, body *::before, body *::after) {
	transition:
		background-color 0.35s var(--sfcd-ease, ease),
		border-color 0.35s var(--sfcd-ease, ease),
		color 0.35s var(--sfcd-ease, ease),
		fill 0.35s var(--sfcd-ease, ease),
		stroke 0.35s var(--sfcd-ease, ease),
		box-shadow 0.35s var(--sfcd-ease, ease),
		filter 0.35s var(--sfcd-ease, ease),
		opacity 0.24s var(--sfcd-ease, ease),
		transform 0.3s var(--sfcd-ease-out, ease) !important;
}

/* ==========================================================================
   3. Tokens
   ========================================================================== */

:root {
	/* Colour aliases (always presets, so they flip with the scheme). */
	--sfcd-base: var(--wp--preset--color--base);
	--sfcd-panel: var(--wp--preset--color--panel);
	--sfcd-panel-2: var(--wp--preset--color--panel-2);
	--sfcd-line: var(--wp--preset--color--line);
	--sfcd-ink: var(--wp--preset--color--ink);
	--sfcd-muted: var(--wp--preset--color--muted);
	--sfcd-accent: var(--wp--preset--color--accent);
	--sfcd-accent-2: var(--wp--preset--color--accent-2);
	--sfcd-neon: var(--wp--preset--color--neon);
	--sfcd-navy: var(--wp--preset--color--violet);
	--sfcd-turf: var(--wp--preset--color--turf);
	--sfcd-gold: var(--wp--preset--color--gold);
	--sfcd-glass: var(--wp--preset--color--glass);
	--sfcd-glass-2: var(--wp--preset--color--glass-2);
	--sfcd-edge: var(--wp--preset--color--edge);

	/* Text on filled brand colours: the `base` preset — near-white on the
	   deep light-mode fills, near-black on the bright dark-mode fills (both
	   pass contrast). */
	--sfcd-on-fill: var(--wp--preset--color--base);
	/* Text on photography is always white. */
	--sfcd-on-photo: #fff;

	/* Deal rating vs market (never colour alone — every use carries a label):
	   great = charge green, good = cobalt, fair = brass, high = ember. The
	   plain tokens colour dots, gauges and borders; "-text" reads on the panel
	   surface; "-bg" is the soft wash behind a pill. */
	--sfcd-deal-great: var(--wp--preset--color--neon);
	--sfcd-deal-good: var(--wp--preset--color--accent-2);
	--sfcd-deal-fair: var(--wp--preset--color--gold);
	--sfcd-deal-high: var(--wp--preset--color--accent);
	--sfcd-deal-none: var(--wp--preset--color--muted);
	--sfcd-deal-great-text: var(--sfcd-neon-strong);
	--sfcd-deal-good-text: var(--wp--preset--color--accent-2);
	--sfcd-deal-fair-text: var(--sfcd-gold-strong);
	--sfcd-deal-high-text: var(--sfcd-accent-strong);
	--sfcd-deal-great-bg: color-mix(in srgb, var(--sfcd-deal-great) 14%, var(--wp--preset--color--panel));
	--sfcd-deal-good-bg: color-mix(in srgb, var(--sfcd-deal-good) 13%, var(--wp--preset--color--panel));
	--sfcd-deal-fair-bg: color-mix(in srgb, var(--sfcd-deal-fair) 16%, var(--wp--preset--color--panel));
	--sfcd-deal-high-bg: color-mix(in srgb, var(--sfcd-deal-high) 13%, var(--wp--preset--color--panel));

	/* Condition (New / Used / Certified Pre-Owned) and the open / closed
	   state of a dealership. */
	--sfcd-cond-new: var(--wp--preset--color--accent-2);
	--sfcd-cond-used: var(--wp--preset--color--muted);
	--sfcd-cond-certified: var(--sfcd-neon-strong);
	--sfcd-open: var(--sfcd-neon-strong);
	--sfcd-closed: var(--wp--preset--color--muted);

	/* One focus colour for every plugin control. */
	--sfcd-focus: var(--wp--preset--color--accent);

	/* Radii */
	--sfcd-radius-card: 16px;
	--sfcd-radius-input: 12px;
	--sfcd-radius-btn: 12px;
	--sfcd-radius-chip: 999px;
	--sfcd-radius-sm: 8px;
	--sfcd-radius-lg: 24px;

	/* Spacing scale 4/8/12/16/24/32/48/64/96 */
	--sfcd-space-1: 4px;
	--sfcd-space-2: 8px;
	--sfcd-space-3: 12px;
	--sfcd-space-4: 16px;
	--sfcd-space-5: 24px;
	--sfcd-space-6: 32px;
	--sfcd-space-7: 48px;
	--sfcd-space-8: 64px;
	--sfcd-space-9: 96px;

	/* Fonts: Driveway's three (Archivo display, Inter body, Space Grotesk
	   numbers) as theme presets, with system fallbacks for any other theme. */
	--sfcd-font-display: var(--wp--preset--font-family--display, "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif);
	--sfcd-font-ui: var(--wp--preset--font-family--ui, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
	--sfcd-font-body: var(--wp--preset--font-family--body, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
	--sfcd-font-num: var(--wp--preset--font-family--num, "Space Grotesk", var(--sfcd-font-ui));

	/* Elevation */
	--sfcd-shadow-0: var(--wp--preset--shadow--depth-0);
	--sfcd-shadow-1: var(--wp--preset--shadow--depth-1);
	--sfcd-shadow-2: var(--wp--preset--shadow--depth-2);
	--sfcd-shadow-3: var(--wp--preset--shadow--depth-3);
	--sfcd-shadow-4: var(--wp--preset--shadow--depth-4);
	--sfcd-ring: var(--wp--preset--shadow--ring);
	--sfcd-ring-hot: var(--wp--preset--shadow--ring-hot);

	/* Motion */
	--sfcd-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--sfcd-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--sfcd-dur-1: 0.15s;
	--sfcd-dur-2: 0.24s;
	--sfcd-dur-3: 0.6s;

	/* Layout (fx.js measures the real header) */
	--sfcd-header-h: 72px;
	--sfcd-sticky-top: 0px;
	--sfcd-blur: 14px;
	--sfcd-tap: 44px;
}

/* ==========================================================================
   4. Atoms
   ========================================================================== */

/* ---- Box model -------------------------------------------------------------
   WordPress sets no global box-sizing, and links default to content-box, so
   every plugin element opts into border-box (zero specificity: any component
   rule can still override). */

:where([class^="sfcd-"], [class*=" sfcd-"]),
:where([class^="sfcd-"], [class*=" sfcd-"])::before,
:where([class^="sfcd-"], [class*=" sfcd-"])::after {
	box-sizing: border-box;
}

/* ---- Icons ---------------------------------------------------------------- */

.sfcd-icon {
	display: inline-block;
	flex: none;
	vertical-align: -0.2em;
	overflow: visible;
	pointer-events: none;
}

/* ---- Accessibility helpers ----------------------------------------------- */

.sfcd-visually-hidden,
.sfcd-sr,
.sfcd-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Zero-specificity fallback for themes that ship no .screen-reader-text
   (fields print it); never !important, so skip links still appear on focus. */
:where(.screen-reader-text:not(:focus):not(:focus-within)) {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.sfcd-skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 100001;
	padding: 10px 16px;
	border-radius: var(--sfcd-radius-btn);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
	font: 700 14px/1.2 var(--sfcd-font-ui);
	text-decoration: none;
}

[id^="sfcd-"],
[data-sfcd-anchor] {
	scroll-margin-top: calc(var(--sfcd-header-h) + 24px);
}

/* One focus language for every plugin control. */
:where([class^="sfcd-"], [class*=" sfcd-"]):focus-visible {
	outline: 2px solid var(--sfcd-focus);
	outline-offset: 2px;
}

:where([class^="sfcd-"], [class*=" sfcd-"]):focus:not(:focus-visible) {
	outline: none;
}

/* Numbers: tabular, so prices and facts align in lists. */
.sfcd-num,
.sfcd-price {
	font-family: var(--sfcd-font-num);
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

.sfcd-eyebrow {
	display: inline-block;
	color: var(--sfcd-accent-strong);
	font: 800 12px/1.2 var(--sfcd-font-ui);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.sfcd-muted {
	color: var(--wp--preset--color--muted);
}

/* ---- Buttons --------------------------------------------------------------
   .sfcd-btn + --primary (ember) | --secondary (ink) | --ghost / --outline |
   --soft | --danger | --link | --icon ; sizes --sm | --lg ; --block
   Colour rules repeat with :is(:link,:visited) to out-rank page-builder
   link colours (e.g. `.elementor-kit-N a`). */

.sfcd-btn {
	--sfcd-btn-bg: var(--wp--preset--color--panel);
	--sfcd-btn-fg: var(--wp--preset--color--ink);
	--sfcd-btn-bd: var(--wp--preset--color--line);

	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: var(--sfcd-tap);
	padding: 10px 18px;
	border: 1px solid var(--sfcd-btn-bd);
	border-radius: var(--sfcd-radius-btn);
	background: var(--sfcd-btn-bg);
	color: var(--sfcd-btn-fg);
	font: 700 15px/1.2 var(--sfcd-font-ui);
	letter-spacing: 0.005em;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
	transition:
		background-color var(--sfcd-dur-1) var(--sfcd-ease),
		border-color var(--sfcd-dur-1) var(--sfcd-ease),
		color var(--sfcd-dur-1) var(--sfcd-ease),
		box-shadow var(--sfcd-dur-2) var(--sfcd-ease),
		transform var(--sfcd-dur-2) var(--sfcd-ease),
		filter var(--sfcd-dur-1) var(--sfcd-ease);
}

.sfcd-btn:is(:link, :visited) {
	color: var(--sfcd-btn-fg);
	text-decoration: none;
}

.sfcd-btn .sfcd-icon {
	width: 1.15em;
	height: 1.15em;
}

.sfcd-btn:active {
	transform: translateY(1px) scale(0.99);
}

.sfcd-btn:focus-visible {
	outline: 2px solid var(--sfcd-focus);
	outline-offset: 2px;
}

.sfcd-btn[disabled],
.sfcd-btn[aria-disabled="true"],
.sfcd-btn.is-disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

.sfcd-btn.is-loading {
	color: transparent !important;
	pointer-events: none;
}

.sfcd-btn.is-loading::after {
	content: "";
	position: absolute;
	inset: 0;
	width: 18px;
	height: 18px;
	margin: auto;
	border: 2px solid currentColor;
	border-color: var(--sfcd-btn-fg) var(--sfcd-btn-fg) var(--sfcd-btn-fg) transparent;
	border-radius: 50%;
	animation: sfcd-spin 0.7s linear infinite;
}

.sfcd-btn--primary {
	--sfcd-btn-bg: var(--sfcd-accent-strong);
	--sfcd-btn-fg: var(--sfcd-on-fill);
	--sfcd-btn-bd: var(--sfcd-accent-strong);
	box-shadow: var(--sfcd-shadow-1);
}

/* Contrast: every ember fill that carries a label uses --sfcd-accent-strong
   (deep ember in light, the accent itself in dark, so dark is unchanged).
   Component sheets load after this one, hence the :root-scoped overrides of
   their filled CTAs (vehicle rail / sticky bar, search form, filters). */
:root :is(.sfcd-p-btn--primary, .sfcd-v-btn--primary) {
	--_bg: var(--sfcd-accent-strong);
	--_bd: var(--sfcd-accent-strong);
}

:root :is(.sfcd-p-btn--primary, .sfcd-v-btn--primary):hover {
	--_bg: color-mix(in srgb, var(--sfcd-accent-strong) 88%, var(--wp--preset--color--ink));
	--_bd: var(--_bg);
}

:root :is(.sfcd-sf__submit, .sfcd-filters__apply, .sfcd-filters__badge) {
	background: var(--sfcd-accent-strong);
}

@media (hover: hover) {
	:root :is(.sfcd-sf__submit, .sfcd-filters__apply):hover {
		background: color-mix(in srgb, var(--sfcd-accent-strong) 88%, var(--wp--preset--color--ink));
	}
}

.sfcd-btn--secondary {
	--sfcd-btn-bg: var(--wp--preset--color--ink);
	--sfcd-btn-fg: var(--wp--preset--color--base);
	--sfcd-btn-bd: var(--wp--preset--color--ink);
}

.sfcd-btn--cobalt,
.sfcd-btn--blue {
	--sfcd-btn-bg: var(--wp--preset--color--accent-2);
	--sfcd-btn-fg: var(--sfcd-on-fill);
	--sfcd-btn-bd: var(--wp--preset--color--accent-2);
}

.sfcd-btn--ghost,
.sfcd-btn--outline {
	--sfcd-btn-bg: var(--wp--preset--color--transparent);
	--sfcd-btn-fg: var(--wp--preset--color--ink);
	--sfcd-btn-bd: var(--wp--preset--color--line);
}

.sfcd-btn--soft {
	--sfcd-btn-bg: var(--wp--preset--color--panel-2);
	--sfcd-btn-fg: var(--wp--preset--color--ink);
	--sfcd-btn-bd: var(--wp--preset--color--panel-2);
}

.sfcd-btn--danger {
	--sfcd-btn-fg: var(--sfcd-accent-strong);
}

.sfcd-btn--glass {
	--sfcd-btn-bg: var(--wp--preset--color--glass);
	--sfcd-btn-fg: var(--wp--preset--color--ink);
	--sfcd-btn-bd: var(--wp--preset--color--edge);
	-webkit-backdrop-filter: blur(var(--sfcd-blur)) saturate(1.5);
	backdrop-filter: blur(var(--sfcd-blur)) saturate(1.5);
}

.sfcd-btn--link {
	--sfcd-btn-bg: var(--wp--preset--color--transparent);
	--sfcd-btn-bd: var(--wp--preset--color--transparent);
	min-height: 0;
	padding: 0;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.sfcd-btn--link:is(:link, :visited) {
	text-decoration: underline;
}

.sfcd-btn--sm {
	min-height: 36px;
	padding: 7px 14px;
	border-radius: 10px;
	font-size: 14px;
}

.sfcd-btn--lg {
	min-height: 54px;
	padding: 14px 26px;
	border-radius: 14px;
	font-size: 16px;
}

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

.sfcd-btn--icon {
	width: var(--sfcd-tap);
	min-width: var(--sfcd-tap);
	padding: 0;
	border-radius: 999px;
}

@media (hover: hover) {
	.sfcd-btn:hover,
	.sfcd-btn:is(:link, :visited):hover {
		--sfcd-btn-bd: var(--wp--preset--color--ink);
		color: var(--sfcd-btn-fg);
	}

	.sfcd-btn--primary:hover,
	.sfcd-btn--primary:is(:link, :visited):hover,
	.sfcd-btn--secondary:hover,
	.sfcd-btn--secondary:is(:link, :visited):hover,
	.sfcd-btn--cobalt:hover,
	.sfcd-btn--cobalt:is(:link, :visited):hover,
	.sfcd-btn--blue:hover,
	.sfcd-btn--blue:is(:link, :visited):hover {
		--sfcd-btn-bd: var(--sfcd-btn-bg);
		filter: brightness(1.06) saturate(1.04);
		box-shadow: var(--sfcd-shadow-2);
		transform: translateY(-1px);
	}

	.sfcd-btn--soft:hover,
	.sfcd-btn--ghost:hover,
	.sfcd-btn--outline:hover {
		--sfcd-btn-bg: var(--wp--preset--color--panel-2);
	}

	.sfcd-btn--link:hover {
		--sfcd-btn-bd: var(--wp--preset--color--transparent);
		text-decoration-thickness: 2px;
	}
}

/* Round icon button (share, save, call, socials). */
.sfcd-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 40px;
	min-width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background: var(--wp--preset--color--panel);
	color: var(--wp--preset--color--ink);
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--sfcd-dur-1) var(--sfcd-ease), border-color var(--sfcd-dur-1) var(--sfcd-ease), color var(--sfcd-dur-1) var(--sfcd-ease), transform var(--sfcd-dur-2) var(--sfcd-ease);
}

.sfcd-icon-btn:is(:link, :visited) {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.sfcd-icon-btn:has(.sfcd-icon-btn__text) {
	width: auto;
	padding: 0 14px 0 12px;
	font: 700 14px/1 var(--sfcd-font-ui);
}

.sfcd-icon-btn[aria-pressed="true"] {
	color: var(--wp--preset--color--accent);
}

.sfcd-icon-btn:active {
	transform: scale(0.94);
}

@media (hover: hover) {
	.sfcd-icon-btn:hover,
	.sfcd-icon-btn:is(:link, :visited):hover {
		border-color: var(--wp--preset--color--ink);
		background: var(--wp--preset--color--panel-2);
		color: var(--wp--preset--color--ink);
	}
}

/* ---- Chips ----------------------------------------------------------------
   Small labels over photos and in lists. Over photos they sit on the panel
   colour (always legible); semantic variants are filled with text in the
   `base` colour (near-white in light mode, near-black in dark mode).

   Vocabulary (what the markup emits):
     condition   .sfcd-chip--deal | --cond | --condition  + --new | --used |
                 --certified  → neutral pill with a coloured dot
     label       .sfcd-chip--label + --new-arrival | --hot | --low-miles |
                 --one-owner | --rare | --special-offer  → filled
     price drop  .sfcd-chip--drop (also --price-drop)     → charge-green fill
     status      .sfcd-chip--status + --available | --pending | --sold
     featured    .sfcd-chip--featured */

.sfcd-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.sfcd-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 26px;
	padding: 4px 10px;
	border: 0;
	border-radius: var(--sfcd-radius-chip);
	background: var(--wp--preset--color--panel);
	color: var(--wp--preset--color--ink);
	box-shadow: var(--sfcd-shadow-1);
	font: 700 12px/1.2 var(--sfcd-font-ui);
	letter-spacing: 0.01em;
	white-space: nowrap;
	text-decoration: none;
}

a.sfcd-chip:is(:link, :visited) {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.sfcd-chip .sfcd-icon {
	width: 14px;
	height: 14px;
}

.sfcd-chip__dot {
	width: 7px;
	height: 7px;
	flex: none;
	border-radius: 50%;
	background: var(--_cond, currentColor);
}

/* Condition: neutral pill with a coloured dot. A chip without a dot element
   draws its own. */
:is(.sfcd-chip--deal, .sfcd-chip--cond, .sfcd-chip--condition) {
	--_cond: var(--sfcd-cond-used);
}

:is(.sfcd-chip--deal, .sfcd-chip--cond, .sfcd-chip--condition):not(:has(> .sfcd-chip__dot))::before {
	content: "";
	width: 7px;
	height: 7px;
	flex: none;
	border-radius: 50%;
	background: var(--_cond);
}

:is(.sfcd-chip--deal, .sfcd-chip--cond, .sfcd-chip--condition).sfcd-chip--new {
	--_cond: var(--sfcd-cond-new);
}

:is(.sfcd-chip--deal, .sfcd-chip--cond, .sfcd-chip--condition).sfcd-chip--used {
	--_cond: var(--sfcd-cond-used);
}

:is(.sfcd-chip--deal, .sfcd-chip--cond, .sfcd-chip--condition).sfcd-chip--certified {
	--_cond: var(--sfcd-cond-certified);
}

/* Filled label variants. */
.sfcd-chip--new-arrival,
.sfcd-chip--new:not(.sfcd-chip--deal, .sfcd-chip--cond, .sfcd-chip--condition) {
	background: var(--wp--preset--color--accent-2);
	color: var(--sfcd-on-fill);
}

.sfcd-chip--hot {
	background: var(--sfcd-accent-strong);
	color: var(--sfcd-on-fill);
}

.sfcd-chip--low-miles {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
}

.sfcd-chip--one-owner {
	background: var(--wp--preset--color--turf);
	color: var(--wp--preset--color--accent-2);
	box-shadow: none;
}

.sfcd-chip--rare {
	background: var(--wp--preset--color--violet);
	color: var(--sfcd-on-fill);
}

.sfcd-chip--special-offer,
.sfcd-chip--featured {
	background: var(--wp--preset--color--gold);
	color: var(--sfcd-on-fill);
}

.sfcd-chip--drop,
.sfcd-chip--price-drop {
	background: var(--sfcd-neon-strong);
	color: var(--sfcd-on-fill);
}

/* Status. */
.sfcd-chip--sold {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
}

.sfcd-chip--pending {
	background: var(--wp--preset--color--panel-2);
	color: var(--wp--preset--color--ink);
}

.sfcd-chip--available {
	background: var(--sfcd-deal-great-bg);
	color: var(--sfcd-deal-great-text);
	box-shadow: none;
}

/* Interactive chips (quick searches, active filters). */
.sfcd-chip--active {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
}

a.sfcd-chip--active:is(:link, :visited) {
	color: var(--wp--preset--color--base);
}

.sfcd-chip--outline {
	background: var(--wp--preset--color--transparent);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--line);
}

.sfcd-chip--lg {
	min-height: 40px;
	padding: 8px 16px;
	font-size: 14px;
}

@media (hover: hover) {
	a.sfcd-chip:hover,
	button.sfcd-chip:hover {
		box-shadow: var(--sfcd-shadow-2), inset 0 0 0 1px var(--wp--preset--color--ink);
	}
}

/* ---- Deal rating (price vs market) -----------------------------------------
   <span class="sfcd-deal sfcd-deal--great"><span class="sfcd-deal__dot"></span>
   Great deal <span class="sfcd-deal__pct">−9%</span></span>
   The data attribute works the same: <span class="sfcd-deal" data-deal="fair">.
   Colour is never the only signal: the label always travels with it. */

.sfcd-deal {
	--_c: var(--sfcd-deal-none);
	--_t: var(--wp--preset--color--muted);
	--_bg: var(--wp--preset--color--panel-2);

	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 24px;
	padding: 3px 10px;
	border-radius: var(--sfcd-radius-chip);
	background: var(--_bg);
	color: var(--_t);
	font: 700 12px/1.2 var(--sfcd-font-ui);
	letter-spacing: 0.01em;
	white-space: nowrap;
}

.sfcd-deal:not(:has(> .sfcd-deal__dot))::before,
.sfcd-deal__dot {
	content: "";
	width: 7px;
	height: 7px;
	flex: none;
	border-radius: 50%;
	background: var(--_c);
}

.sfcd-deal__pct {
	font-family: var(--sfcd-font-num);
	font-variant-numeric: tabular-nums;
	font-weight: 700;
}

.sfcd-deal--great,
.sfcd-deal[data-deal="great"] {
	--_c: var(--sfcd-deal-great);
	--_t: var(--sfcd-deal-great-text);
	--_bg: var(--sfcd-deal-great-bg);
}

.sfcd-deal--good,
.sfcd-deal[data-deal="good"] {
	--_c: var(--sfcd-deal-good);
	--_t: var(--sfcd-deal-good-text);
	--_bg: var(--sfcd-deal-good-bg);
}

.sfcd-deal--fair,
.sfcd-deal[data-deal="fair"] {
	--_c: var(--sfcd-deal-fair);
	--_t: var(--sfcd-deal-fair-text);
	--_bg: var(--sfcd-deal-fair-bg);
}

.sfcd-deal--high,
.sfcd-deal[data-deal="high"] {
	--_c: var(--sfcd-deal-high);
	--_t: var(--sfcd-deal-high-text);
	--_bg: var(--sfcd-deal-high-bg);
}

/* ---- Monogram (generated from a name + brand colour; never a real logo) ----
   <span class="sfcd-monogram" style="--sfcd-mono:#c2410c;--sfcd-mono-size:48px">BM</span> */

.sfcd-monogram {
	--sfcd-mono: var(--wp--preset--color--violet);

	display: inline-grid;
	place-items: center;
	flex: none;
	width: var(--sfcd-mono-size, 40px);
	height: var(--sfcd-mono-size, 40px);
	border-radius: var(--sfcd-mono-radius, 50%);
	background: var(--sfcd-mono);
	color: var(--sfcd-mono-ink, #fff);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
	font: 800 calc(var(--sfcd-mono-size, 40px) * 0.36) / 1 var(--sfcd-font-display);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	overflow: hidden;
}

.sfcd-monogram--tile {
	--sfcd-mono-radius: 22%;
}

/* ---- Struck-through previous price ---------------------------------------- */

.sfcd-strike {
	color: var(--wp--preset--color--muted);
	font-family: var(--sfcd-font-num);
	font-variant-numeric: tabular-nums;
	font-weight: 500;
	text-decoration: line-through;
	text-decoration-thickness: 1px;
}

/* ---- Count badge (header saved counter, filter counts) -------------------- */

.sfcd-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--sfcd-accent-strong);
	color: var(--sfcd-on-fill);
	font: 800 11px/1 var(--sfcd-font-num);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0;
}

.sfcd-badge[hidden] {
	display: none;
}

.sfcd-badge.is-bump {
	animation: sfcd-bump 0.35s var(--sfcd-ease-out);
}

.sfcd-badge--soft {
	background: var(--wp--preset--color--panel-2);
	color: var(--wp--preset--color--ink);
}

/* ---- Pills on photos (photo count, video, 3D) ----------------------------
   Only the modifiers are styled: bare `.sfcd-pill` is also the search-form
   radio pill, owned by components.css. */

.sfcd-pill--count,
.sfcd-pill--icon,
.sfcd-pill--glass {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-height: 26px;
	padding: 4px 9px;
	border-radius: 999px;
	background: var(--wp--preset--color--glass);
	color: var(--wp--preset--color--ink);
	-webkit-backdrop-filter: blur(10px) saturate(1.5);
	backdrop-filter: blur(10px) saturate(1.5);
	box-shadow: var(--sfcd-shadow-1);
	font: 700 12px/1 var(--sfcd-font-num);
	font-variant-numeric: tabular-nums;
}

.sfcd-pill--icon {
	justify-content: center;
	width: 26px;
	padding: 0;
}

.sfcd-pill--count .sfcd-icon,
.sfcd-pill--icon .sfcd-icon {
	width: 14px;
	height: 14px;
}

/* ---- Glass surface -------------------------------------------------------- */

.sfcd-glass {
	background: var(--wp--preset--color--glass);
	-webkit-backdrop-filter: blur(var(--sfcd-blur)) saturate(1.6);
	backdrop-filter: blur(var(--sfcd-blur)) saturate(1.6);
	box-shadow: var(--sfcd-shadow-2), inset 0 0 0 1px var(--wp--preset--color--edge);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.sfcd-glass,
	.sfcd-btn--glass,
	.sfcd-pill--count,
	.sfcd-pill--icon,
	.sfcd-pill--glass {
		background: var(--wp--preset--color--panel);
	}
}

/* ---- Avatar --------------------------------------------------------------- */

.sfcd-avatar {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: var(--sfcd-avatar-size, 32px);
	height: var(--sfcd-avatar-size, 32px);
	border-radius: 50%;
	object-fit: cover;
	background: var(--wp--preset--color--panel-2);
	box-shadow: 0 0 0 2px var(--wp--preset--color--panel);
	overflow: hidden;
}

.sfcd-avatar--initials {
	background: var(--wp--preset--color--turf);
	color: var(--wp--preset--color--accent-2);
	font: 800 calc(var(--sfcd-avatar-size, 32px) * 0.38) / 1 var(--sfcd-font-ui);
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

/* ---- Form controls -------------------------------------------------------- */

.sfcd-field {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.sfcd-field__label,
.sfcd-label {
	color: var(--wp--preset--color--muted);
	font: 800 11px/1.2 var(--sfcd-font-ui);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sfcd-field__hint {
	color: var(--wp--preset--color--muted);
	font: 400 13px/1.45 var(--sfcd-font-body);
}

.sfcd-field__error {
	color: var(--wp--preset--color--accent);
	font: 600 13px/1.4 var(--sfcd-font-body);
}

.sfcd-input,
.sfcd-select,
.sfcd-textarea {
	box-sizing: border-box;
	display: block;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--sfcd-radius-input);
	background-color: var(--wp--preset--color--panel);
	color: var(--wp--preset--color--ink);
	font: 500 15px/1.35 var(--sfcd-font-body);
	box-shadow: var(--sfcd-shadow-0);
	transition: border-color var(--sfcd-dur-1) var(--sfcd-ease), box-shadow var(--sfcd-dur-1) var(--sfcd-ease), background-color var(--sfcd-dur-1) var(--sfcd-ease);
	-webkit-appearance: none;
	appearance: none;
}

.sfcd-textarea {
	min-height: 120px;
	resize: vertical;
}

.sfcd-input::placeholder,
.sfcd-textarea::placeholder {
	color: var(--wp--preset--color--muted);
	opacity: 0.85;
}

/* Chevron drawn with two gradients in currentColor — follows the scheme. */
.sfcd-select {
	padding-right: 40px;
	background-image:
		linear-gradient(45deg, var(--wp--preset--color--transparent) 50%, currentColor 50%),
		linear-gradient(135deg, currentColor 50%, var(--wp--preset--color--transparent) 50%);
	background-position:
		calc(100% - 20px) calc(50% + 1px),
		calc(100% - 15px) calc(50% + 1px);
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	cursor: pointer;
	text-overflow: ellipsis;
}

.sfcd-select::-ms-expand {
	display: none;
}

@media (hover: hover) {
	.sfcd-input:hover,
	.sfcd-select:hover,
	.sfcd-textarea:hover {
		border-color: var(--wp--preset--color--muted);
	}
}

.sfcd-input:focus,
.sfcd-select:focus,
.sfcd-textarea:focus {
	border-color: var(--wp--preset--color--accent);
	box-shadow: var(--sfcd-ring-hot);
	outline: none;
}

.sfcd-input[aria-invalid="true"],
.sfcd-select[aria-invalid="true"],
.sfcd-textarea[aria-invalid="true"] {
	border-color: var(--wp--preset--color--accent);
}

.sfcd-input:disabled,
.sfcd-select:disabled,
.sfcd-textarea:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.sfcd-input--sm,
.sfcd-select--sm {
	min-height: 40px;
	padding-top: 8px;
	padding-bottom: 8px;
	font-size: 14px;
}

/* Input with a leading icon: <span class="sfcd-input-wrap"><svg…><input class="sfcd-input"></span> */
.sfcd-input-wrap {
	position: relative;
	display: block;
}

.sfcd-input-wrap > .sfcd-icon {
	position: absolute;
	top: 50%;
	left: 14px;
	color: var(--wp--preset--color--muted);
	transform: translateY(-50%);
}

.sfcd-input-wrap > .sfcd-input {
	padding-left: 42px;
}

/* Checkbox / radio */
.sfcd-check {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--wp--preset--color--ink);
	font: 500 15px/1.35 var(--sfcd-font-body);
	cursor: pointer;
}

.sfcd-check input[type="checkbox"],
.sfcd-check input[type="radio"],
input.sfcd-check-input {
	width: 18px;
	height: 18px;
	margin: 0;
	flex: none;
	accent-color: var(--wp--preset--color--accent);
	cursor: pointer;
}

/* Range */
.sfcd-range {
	width: 100%;
	height: 28px;
	margin: 0;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	--sfcd-range-pct: 50%;
}

.sfcd-range::-webkit-slider-runnable-track {
	height: 4px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--wp--preset--color--accent) 0 var(--sfcd-range-pct), var(--wp--preset--color--line) var(--sfcd-range-pct) 100%);
}

.sfcd-range::-moz-range-track {
	height: 4px;
	border-radius: 999px;
	background: var(--wp--preset--color--line);
}

.sfcd-range::-moz-range-progress {
	height: 4px;
	border-radius: 999px;
	background: var(--wp--preset--color--accent);
}

.sfcd-range::-webkit-slider-thumb {
	width: 22px;
	height: 22px;
	margin-top: -9px;
	border: 2px solid var(--wp--preset--color--accent);
	border-radius: 50%;
	background: var(--wp--preset--color--panel);
	box-shadow: var(--sfcd-shadow-2);
	-webkit-appearance: none;
	appearance: none;
	transition: transform var(--sfcd-dur-1) var(--sfcd-ease);
}

.sfcd-range::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border: 2px solid var(--wp--preset--color--accent);
	border-radius: 50%;
	background: var(--wp--preset--color--panel);
	box-shadow: var(--sfcd-shadow-2);
}

.sfcd-range:active::-webkit-slider-thumb {
	transform: scale(1.12);
}

.sfcd-range:focus-visible {
	outline: none;
}

.sfcd-range:focus-visible::-webkit-slider-thumb {
	box-shadow: var(--sfcd-ring-hot);
}

.sfcd-range:focus-visible::-moz-range-thumb {
	box-shadow: var(--sfcd-ring-hot);
}

/* Segmented control (New / Used / Certified, Map / List) */
.sfcd-seg {
	display: inline-flex;
	align-items: stretch;
	gap: 2px;
	padding: 3px;
	border-radius: 999px;
	background: var(--wp--preset--color--panel-2);
}

.sfcd-seg__opt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 36px;
	padding: 6px 16px;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--transparent);
	color: var(--wp--preset--color--muted);
	font: 700 14px/1 var(--sfcd-font-ui);
	cursor: pointer;
	transition: background-color var(--sfcd-dur-1) var(--sfcd-ease), color var(--sfcd-dur-1) var(--sfcd-ease), box-shadow var(--sfcd-dur-1) var(--sfcd-ease);
}

.sfcd-seg__opt[aria-pressed="true"],
.sfcd-seg__opt[aria-selected="true"],
.sfcd-seg__opt.is-active,
.sfcd-seg input:checked + .sfcd-seg__opt {
	background: var(--wp--preset--color--panel);
	color: var(--wp--preset--color--ink);
	box-shadow: var(--sfcd-shadow-1);
}

/* ---- Empty states --------------------------------------------------------- */

.sfcd-empty {
	margin: 0;
	padding: 28px 20px;
	border: 1px dashed var(--wp--preset--color--line);
	border-radius: var(--sfcd-radius-card);
	background: var(--wp--preset--color--panel);
	color: var(--wp--preset--color--muted);
	font: 500 15px/1.5 var(--sfcd-font-body);
	text-align: center;
}

.sfcd-empty--error {
	border-style: solid;
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 13px;
}

/* ---- Skeleton shimmer ----------------------------------------------------- */

.sfcd-skeleton,
.sfcd-skel {
	position: relative;
	display: block;
	min-height: 1em;
	border-radius: var(--sfcd-radius-sm);
	background: var(--wp--preset--color--panel-2);
	overflow: hidden;
	color: var(--wp--preset--color--transparent) !important;
}

.sfcd-skeleton::after,
.sfcd-skel::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--wp--preset--color--transparent) 0%, var(--wp--preset--color--glass) 50%, var(--wp--preset--color--transparent) 100%);
	opacity: 0.7;
	transform: translateX(-100%);
	animation: sfcd-shimmer 1.4s var(--sfcd-ease) infinite;
}

/* ---- Fields & loops (composable blocks) ----------------------------------- */

.sfcd-f {
	min-width: 0;
}

.sfcd-f.is-empty {
	display: none;
}

/* Separate rule: a browser without :has() must not drop the one above. */
.sfcd-loop.is-empty:not(:has(.sfcd-empty, .sfcd-loop__empty)) {
	display: none;
}

.sfcd-loop {
	min-width: 0;
}

/* Loops render their template once per item as DIRECT children of the loop
   root, so the root's grid (set in the editor via Looks) lays them out. */
.sfcd-loop > * {
	min-width: 0;
}

.sfcd-loop-item {
	display: contents;
}

/* Stretched link: covers the nearest positioned ancestor (cards, tiles). */
.sfcd-stretched-link::after,
.sfcd-f-vehicle-link::after,
.sfcd-f-make-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* ---- Theme toggle (car-dealer/theme-toggle) ------------------------------ */

.sfcd-theme-toggle {
	display: inline-flex;
	align-items: center;
}

.sfcd-scheme-toggle {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background: var(--wp--preset--color--panel);
	color: var(--wp--preset--color--ink);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color var(--sfcd-dur-1) var(--sfcd-ease), border-color var(--sfcd-dur-1) var(--sfcd-ease), color var(--sfcd-dur-1) var(--sfcd-ease);
}

.sfcd-scheme-toggle__icons {
	display: grid;
	place-items: center;
}

.sfcd-scheme-toggle__icon {
	display: grid;
	grid-area: 1 / 1;
	place-items: center;
	transition: opacity var(--sfcd-dur-2) var(--sfcd-ease), transform var(--sfcd-dur-3) var(--sfcd-ease-out);
}

/* Icon variant: the moon offers dark mode, the sun offers light mode. */
.sfcd-scheme-toggle--icon .sfcd-scheme-toggle__icon--sun,
:root[data-sfcd-scheme="dark"] .sfcd-scheme-toggle--icon .sfcd-scheme-toggle__icon--moon {
	opacity: 0;
	transform: rotate(-90deg) scale(0.4);
}

:root[data-sfcd-scheme="dark"] .sfcd-scheme-toggle--icon .sfcd-scheme-toggle__icon--sun {
	opacity: 1;
	transform: none;
}

@media (hover: hover) {
	.sfcd-scheme-toggle:hover {
		border-color: var(--wp--preset--color--ink);
		background: var(--wp--preset--color--panel-2);
	}

	.sfcd-scheme-toggle--icon:hover .sfcd-scheme-toggle__icon {
		transform: rotate(-14deg);
	}

	:root[data-sfcd-scheme="dark"] .sfcd-scheme-toggle--icon:hover .sfcd-scheme-toggle__icon--sun {
		transform: rotate(45deg);
	}

	.sfcd-scheme-toggle--icon:hover .sfcd-scheme-toggle__icon--sun,
	:root[data-sfcd-scheme="dark"] .sfcd-scheme-toggle--icon:hover .sfcd-scheme-toggle__icon--moon {
		transform: rotate(-90deg) scale(0.4);
	}
}

/* Switch variant: track + thumb showing the CURRENT scheme. */
.sfcd-scheme-toggle--switch {
	width: 58px;
	height: 32px;
	padding: 3px;
	place-items: center start;
	background: var(--wp--preset--color--panel-2);
}

.sfcd-scheme-toggle__track {
	display: block;
	width: 100%;
	height: 100%;
}

.sfcd-scheme-toggle__thumb {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--wp--preset--color--panel);
	color: var(--wp--preset--color--gold);
	box-shadow: var(--sfcd-shadow-2);
	transition: transform var(--sfcd-dur-2) var(--sfcd-ease-out), background-color var(--sfcd-dur-2) var(--sfcd-ease);
}

.sfcd-scheme-toggle__thumb .sfcd-icon {
	width: 15px;
	height: 15px;
}

.sfcd-scheme-toggle--switch .sfcd-scheme-toggle__icon--moon,
:root[data-sfcd-scheme="dark"] .sfcd-scheme-toggle--switch .sfcd-scheme-toggle__icon--sun {
	opacity: 0;
	transform: scale(0.4);
}

:root[data-sfcd-scheme="dark"] .sfcd-scheme-toggle--switch .sfcd-scheme-toggle__icon--moon {
	opacity: 1;
	transform: none;
}

:root[data-sfcd-scheme="dark"] .sfcd-scheme-toggle__thumb {
	color: var(--wp--preset--color--violet);
	transform: translateX(24px);
}

/* Over a transparent hero header the toggle reads on photography. */
.sfcd-on-photo .sfcd-scheme-toggle,
.is-transparent-header .sfcd-scheme-toggle {
	border-color: rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.12);
	color: var(--sfcd-on-photo);
}

/* ---- Password gate (protected vehicle / dealer pages) ---------------------
   helpers.php stepfox_cd_password_gate_html(): wraps core's password form. */

.sfcd-password-gate {
	display: grid;
	justify-items: start;
	gap: 14px;
	width: min(560px, calc(100% - 32px));
	margin: clamp(32px, 6vw, 72px) auto;
	padding: clamp(24px, 4vw, 40px);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--sfcd-radius-card);
	background: var(--wp--preset--color--panel);
	color: var(--wp--preset--color--ink);
	box-shadow: var(--sfcd-shadow-3);
	font: 400 16px/1.55 var(--sfcd-font-body);
}

.sfcd-password-gate__icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--wp--preset--color--panel-2);
	color: var(--wp--preset--color--accent);
}

.sfcd-password-gate__title {
	margin: 0;
	color: var(--wp--preset--color--ink);
	font: 700 clamp(26px, 3.4vw, 34px)/1.1 var(--sfcd-font-display);
	letter-spacing: -0.02em;
}

.sfcd-password-gate .post-password-form {
	display: grid;
	gap: 14px;
	width: 100%;
	margin: 0;
}

.sfcd-password-gate .post-password-form p {
	margin: 0;
	color: var(--wp--preset--color--muted);
}

.sfcd-password-gate .post-password-form p:has(input[type="password"]) {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 10px;
}

.sfcd-password-gate .post-password-form label {
	display: grid;
	flex: 1 1 220px;
	gap: 6px;
	color: var(--wp--preset--color--ink);
	font: 700 13px/1.3 var(--sfcd-font-ui);
}

.sfcd-password-gate input[type="password"] {
	box-sizing: border-box;
	width: 100%;
	min-height: var(--sfcd-tap);
	padding: 10px 14px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--sfcd-radius-input);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
	font: 400 16px/1.2 var(--sfcd-font-body);
}

.sfcd-password-gate input[type="password"]:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 1px;
}

.sfcd-password-gate input[type="submit"] {
	min-height: var(--sfcd-tap);
	padding: 10px 22px;
	border: 0;
	border-radius: var(--sfcd-radius-btn);
	background: var(--sfcd-accent-strong);
	color: var(--sfcd-on-fill);
	font: 700 15px/1.2 var(--sfcd-font-ui);
	cursor: pointer;
}

@media (hover: hover) {
	.sfcd-password-gate input[type="submit"]:hover {
		background: color-mix(in srgb, var(--sfcd-accent-strong) 88%, var(--wp--preset--color--ink));
	}
}

/* ---- Site header: core/navigation collapse + overlay (block theme) ---------
   themes/driveway/parts/header.html (gen-parts.php) tags its flex row
   `.sfcd-header-row` and its core/navigation `.sfcd-header-navigation`.
   Eight destinations (New · Used · Certified · Map Search · Dealers · Finance
   · Trade-in · Journal) + brand + Saved/Compare/toggle/CTA need ~1280px, far
   above core's 600px overlay breakpoint, so the overlay switches on at
   <=1320px and the row re-orders to brand · actions · hamburger. The bar CTA
   ("Value my trade") hides at <=1024px through Looks and its overlay twin (any
   navigation item classed `sfcd-nav-cta`) becomes the menu's closing button. */

.sfcd-header-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container {
	flex-wrap: nowrap;
}

.sfcd-header-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content {
	white-space: nowrap;
}

/* Order by role, never by :last-child: in the Site Editor the row's children
   are interleaved with Looks' hidden <style> holders and editor wrappers, and
   Looks' editor rules (#block-<clientId>, !important) give the navigation
   flex-grow:1 — in the editor max-width:max-content caps that growth at the
   hamburger (never on an open overlay, whose rows would shrink with it). */
@media (max-width: 1320px) {
	.sfcd-header-row {
		flex-wrap: nowrap !important;
	}

	.sfcd-header-row > * {
		order: 2 !important;
	}

	.sfcd-header-row > :first-child {
		flex-grow: 1 !important;
		order: 1 !important;
		min-width: 0;
	}

	.sfcd-header-row > :has(> .wp-block-site-title, > .wp-block-site-logo, > .wp-block-image) {
		flex-grow: 1 !important;
		order: 1 !important;
		min-width: 0;
	}

	.sfcd-header-row .sfcd-header-navigation {
		flex: 0 0 auto !important;
		order: 3 !important;
		margin-left: 0 !important;
		justify-content: flex-end !important;
	}

	.editor-styles-wrapper .sfcd-header-row .sfcd-header-navigation:not(:has(.is-menu-open)) {
		max-width: max-content !important;
	}

	.sfcd-header-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none !important;
	}

	.sfcd-header-navigation .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex !important;
	}
}

/* Open / close: 44px targets drawn as the same 40px ring as the theme toggle. */
.sfcd-header-navigation .wp-block-navigation__responsive-container-open,
.sfcd-header-navigation .wp-block-navigation__responsive-container-close {
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	width: var(--sfcd-tap);
	min-width: var(--sfcd-tap);
	height: var(--sfcd-tap);
	min-height: var(--sfcd-tap);
	border-radius: 999px;
	color: var(--wp--preset--color--ink);
	-webkit-tap-highlight-color: transparent;
}

.sfcd-header-navigation .wp-block-navigation__responsive-container-open {
	position: relative;
}

/* The close button keeps core's position:absolute (placed below). */
.sfcd-header-navigation .wp-block-navigation__responsive-container-close {
	display: flex;
}

.sfcd-header-navigation .wp-block-navigation__responsive-container-open::before,
.sfcd-header-navigation .wp-block-navigation__responsive-container-close::before {
	content: "";
	position: absolute;
	inset: 2px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: inherit;
	background: var(--wp--preset--color--panel);
	transition: background-color var(--sfcd-dur-1) var(--sfcd-ease), border-color var(--sfcd-dur-1) var(--sfcd-ease);
}

.sfcd-header-navigation .wp-block-navigation__responsive-container-open svg,
.sfcd-header-navigation .wp-block-navigation__responsive-container-close svg {
	position: relative;
	width: 22px;
	height: 22px;
}

.sfcd-header-navigation .wp-block-navigation__responsive-container-open:focus-visible,
.sfcd-header-navigation .wp-block-navigation__responsive-container-close:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 0;
}

@media (hover: hover) {
	.sfcd-header-navigation .wp-block-navigation__responsive-container-open:hover::before,
	.sfcd-header-navigation .wp-block-navigation__responsive-container-close:hover::before {
		border-color: var(--wp--preset--color--ink);
		background: var(--wp--preset--color--panel-2);
	}
}

/* The overlay: full-screen sheet, left-aligned rows with hairlines, the close
   button where the hamburger sits (row 60px / 72px, gutters 16 / 22 / 28). */
.sfcd-header-navigation {
	--sfcd-menu-gutter: 28px;
	--sfcd-menu-row: 72px;
}

@media (max-width: 1024px) {
	.sfcd-header-navigation {
		--sfcd-menu-gutter: 22px;
	}
}

@media (max-width: 768px) {
	.sfcd-header-navigation {
		--sfcd-menu-gutter: 16px;
		--sfcd-menu-row: 60px;
	}
}

.sfcd-header-navigation .wp-block-navigation__responsive-container.is-menu-open {
	padding: 0;
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
}

.sfcd-header-navigation .is-menu-open .wp-block-navigation__responsive-close {
	max-width: none;
	min-height: 100%;
}

.sfcd-header-navigation .is-menu-open .wp-block-navigation__responsive-dialog {
	min-height: 100%;
}

.sfcd-header-navigation .is-menu-open .wp-block-navigation__responsive-dialog::before {
	content: "";
	position: absolute;
	top: var(--sfcd-menu-row);
	right: 0;
	left: 0;
	border-top: 1px solid var(--wp--preset--color--line);
}

.sfcd-header-navigation .is-menu-open .wp-block-navigation__responsive-container-close {
	top: calc((var(--sfcd-menu-row) - var(--sfcd-tap)) / 2);
	right: var(--sfcd-menu-gutter);
}

.sfcd-header-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	padding: calc(var(--sfcd-menu-row) + 12px) var(--sfcd-menu-gutter) max(32px, env(safe-area-inset-bottom));
	align-items: stretch;
}

.sfcd-header-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0;
	width: 100%;
	align-items: stretch;
}

.sfcd-header-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
	align-items: stretch;
	border-bottom: 1px solid var(--wp--preset--color--line);
	font-size: inherit;
}

.sfcd-header-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 58px;
	padding: 6px 2px;
	color: var(--wp--preset--color--ink);
	font-family: var(--sfcd-font-display);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.015em;
	text-decoration: none;
}

.sfcd-header-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after {
	content: "";
	flex: none;
	width: 9px;
	height: 9px;
	margin-right: 6px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	opacity: 0.35;
	transform: rotate(45deg);
	transition: opacity var(--sfcd-dur-1) var(--sfcd-ease), transform var(--sfcd-dur-2) var(--sfcd-ease);
}

.sfcd-header-navigation .is-menu-open .wp-block-navigation-item__content[aria-current="page"],
.sfcd-header-navigation .is-menu-open .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--accent);
}

@media (hover: hover) {
	.sfcd-header-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover::after {
		opacity: 1;
		transform: translateX(3px) rotate(45deg);
	}
}

.sfcd-header-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
	border-radius: 6px;
}

/* The overlay CTA ("Value my trade"): a full-width filled button. */
.sfcd-header-navigation .wp-block-navigation__responsive-container.is-menu-open .sfcd-nav-cta {
	margin-top: 24px;
	border-bottom: 0;
}

.sfcd-header-navigation .wp-block-navigation__responsive-container.is-menu-open .sfcd-nav-cta > .wp-block-navigation-item__content {
	justify-content: center;
	min-height: 54px;
	padding: 14px 24px;
	border-radius: var(--sfcd-radius-btn);
	background: var(--sfcd-accent-strong);
	color: var(--sfcd-on-fill);
	font: 700 17px/1.2 var(--sfcd-font-ui);
	letter-spacing: 0;
	box-shadow: var(--sfcd-shadow-2);
}

.sfcd-header-navigation .wp-block-navigation__responsive-container.is-menu-open .sfcd-nav-cta > .wp-block-navigation-item__content::after {
	content: none;
}

@media (hover: hover) {
	.sfcd-header-navigation .wp-block-navigation__responsive-container.is-menu-open .sfcd-nav-cta > .wp-block-navigation-item__content:hover {
		filter: brightness(1.06) saturate(1.04);
	}
}

/* ---- Toaster (window.sfcdToast) -------------------------------------------- */

.sfcd-toaster {
	position: fixed;
	left: 50%;
	bottom: max(20px, env(safe-area-inset-bottom));
	z-index: 100000;
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	gap: 8px;
	width: max-content;
	max-width: calc(100vw - 32px);
	pointer-events: none;
	transform: translateX(-50%);
}

.sfcd-toaster__item {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: min(440px, calc(100vw - 32px));
	padding: 10px 8px 10px 12px;
	border-radius: 14px;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
	box-shadow: var(--sfcd-shadow-4);
	font: 600 14px/1.35 var(--sfcd-font-ui);
	pointer-events: auto;
	animation: sfcd-toast-up var(--sfcd-dur-2) var(--sfcd-ease-out) both;
}

.sfcd-toaster__item.is-leaving {
	animation: sfcd-toast-down var(--sfcd-dur-2) var(--sfcd-ease) both;
}

.sfcd-toaster__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-2);
	color: var(--sfcd-on-fill);
}

.sfcd-toaster__item--error .sfcd-toaster__icon {
	background: var(--wp--preset--color--accent);
}

.sfcd-toaster__item--info .sfcd-toaster__icon {
	background: var(--wp--preset--color--violet);
}

/* Warning (e.g. "compare up to 4 cars"): brass on the ink toast — reads as
   a caution, never as a success. */
.sfcd-toaster__item--warning .sfcd-toaster__icon {
	background: var(--wp--preset--color--gold);
}

:root[data-sfcd-scheme="dark"] .sfcd-toaster__item--warning .sfcd-toaster__icon {
	color: var(--wp--preset--color--base);
}

.sfcd-toaster__icon .sfcd-icon,
.sfcd-toaster__icon svg {
	width: 14px;
	height: 14px;
}

.sfcd-toaster__msg {
	flex: 1 1 auto;
	min-width: 0;
}

.sfcd-toaster__action,
.sfcd-toaster__action:is(:link, :visited) {
	flex: none;
	color: inherit;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

.sfcd-toaster__close {
	display: grid;
	place-items: center;
	flex: none;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--transparent);
	color: inherit;
	opacity: 0.7;
	cursor: pointer;
}

.sfcd-toaster__close:hover,
.sfcd-toaster__close:focus-visible {
	opacity: 1;
}

.sfcd-toaster__close svg {
	width: 16px;
	height: 16px;
}

/* ---- Sticky bar base ([data-sfcd-sticky-bar], fx.js / gallery.js) ----------
   Zero-specificity base: vehicle.css owns the real look of .sfcd-sticky-bar. */

:where([data-sfcd-sticky-bar]) {
	position: fixed;
	top: var(--sfcd-sticky-top, 0px);
	right: 0;
	left: 0;
	z-index: 90;
	background: var(--wp--preset--color--glass);
	-webkit-backdrop-filter: blur(var(--sfcd-blur)) saturate(1.6);
	backdrop-filter: blur(var(--sfcd-blur)) saturate(1.6);
	box-shadow: var(--sfcd-shadow-2);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-110%);
	transition: transform var(--sfcd-dur-2) var(--sfcd-ease-out), opacity var(--sfcd-dur-2) var(--sfcd-ease), visibility 0s linear var(--sfcd-dur-2);
}

:where([data-sfcd-sticky-bar].is-visible) {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: transform var(--sfcd-dur-2) var(--sfcd-ease-out), opacity var(--sfcd-dur-2) var(--sfcd-ease), visibility 0s;
}

/* ---- Reveal on scroll ------------------------------------------------------
   The pre-paint script adds `sfcd-js` to <html>; fx.js adds `sfcd-fx` when it
   boots and `.is-visible` as elements enter the viewport. If fx.js never
   boots, the fail-safe animation reveals everything after 2.5 s. */

.sfcd-js .sfcd-reveal:not(.is-visible) {
	opacity: 0;
	transform: translate3d(0, 18px, 0);
}

.sfcd-js .sfcd-reveal--fade:not(.is-visible) {
	transform: none;
}

.sfcd-js .sfcd-reveal--zoom:not(.is-visible) {
	transform: scale(0.97);
}

.sfcd-js .sfcd-reveal--left:not(.is-visible) {
	transform: translate3d(-22px, 0, 0);
}

.sfcd-js .sfcd-reveal--right:not(.is-visible) {
	transform: translate3d(22px, 0, 0);
}

.sfcd-reveal {
	transition: opacity var(--sfcd-dur-3) var(--sfcd-ease-out), transform var(--sfcd-dur-3) var(--sfcd-ease-out);
	transition-delay: var(--sfcd-reveal-delay, 0s);
}

.sfcd-js:not(.sfcd-fx) .sfcd-reveal:not(.is-visible) {
	animation: sfcd-reveal-failsafe 0.01s linear 2.5s forwards;
}

/* ---- Lift on hover (cards, tiles) ----------------------------------------- */

@media (hover: hover) and (pointer: fine) {
	.sfcd-lift {
		transition: transform var(--sfcd-dur-2) var(--sfcd-ease), box-shadow var(--sfcd-dur-2) var(--sfcd-ease);
	}

	.sfcd-lift:hover {
		box-shadow: var(--sfcd-shadow-3);
		transform: translateY(-3px);
	}
}

/* ---- Utilities ------------------------------------------------------------- */

.sfcd-truncate {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sfcd-nowrap {
	white-space: nowrap;
}

.sfcd-tnum {
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

.sfcd-stack {
	display: grid;
	gap: var(--sfcd-gap, 12px);
}

.sfcd-cluster {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sfcd-gap, 8px);
}

.sfcd-divider {
	height: 0;
	margin: 0;
	border: 0;
	border-top: 1px solid var(--wp--preset--color--line);
}

/* Inline facts separated by a middle dot: mileage · fuel · transmission. */
.sfcd-dot-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 0;
}

.sfcd-dot-list > * + *::before {
	content: "\00b7";
	margin: 0 0.5em;
	color: var(--wp--preset--color--muted);
	font-weight: 800;
}

@media (max-width: 781px) {
	.sfcd-hide-mobile {
		display: none !important;
	}
}

@media (min-width: 782px) {
	.sfcd-hide-desktop {
		display: none !important;
	}
}

/* ---- Keyframes (prefixed: animate.css owns the bare names) ---------------- */

@keyframes sfcd-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes sfcd-shimmer {
	to {
		transform: translateX(100%);
	}
}

@keyframes sfcd-bump {
	0% {
		transform: scale(1);
	}
	40% {
		transform: scale(1.35);
	}
	100% {
		transform: scale(1);
	}
}

@keyframes sfcd-toast-up {
	from {
		opacity: 0;
		transform: translate3d(0, 12px, 0) scale(0.98);
	}
}

@keyframes sfcd-toast-down {
	to {
		opacity: 0;
		transform: translate3d(0, 8px, 0) scale(0.98);
	}
}

@keyframes sfcd-reveal-failsafe {
	to {
		opacity: 1;
		transform: none;
	}
}

/* ==========================================================================
   5. Reduced motion & print
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.sfcd-js .sfcd-reveal,
	.sfcd-js .sfcd-reveal:not(.is-visible) {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
		animation: none !important;
	}

	.sfcd-btn,
	.sfcd-icon-btn,
	.sfcd-scheme-toggle,
	.sfcd-scheme-toggle__icon,
	.sfcd-scheme-toggle__thumb,
	.sfcd-lift,
	.sfcd-toaster__item,
	.sfcd-badge,
	:where([data-sfcd-sticky-bar]) {
		transition: none !important;
		animation: none !important;
	}

	.sfcd-skeleton::after,
	.sfcd-skel::after {
		animation: none;
	}

	:root.sfcd-scheme-anim :where(body, body *, body *::before, body *::after) {
		transition: none !important;
	}

	/* Stepfox Looks animations have no reduced-motion guard of their own. */
	[id^="block_"],
	[class*="block_"] {
		animation: none !important;
	}
}

@media print {
	.sfcd-scheme-toggle,
	.sfcd-theme-toggle,
	.sfcd-toaster,
	[data-sfcd-sticky-bar],
	.sfcd-icon-btn,
	.sfcd-btn--icon {
		display: none !important;
	}

	.sfcd-reveal {
		opacity: 1 !important;
		transform: none !important;
	}

	/* Paper is light: print a dark-scheme page with the daylight palette. */
	:root[data-sfcd-scheme="dark"] {
		color-scheme: light;
		--wp--preset--color--base: #ffffff;
		--wp--preset--color--panel: #ffffff;
		--wp--preset--color--panel-2: #eef0f3;
		--wp--preset--color--line: rgba(14, 17, 22, 0.14);
		--wp--preset--color--ink: #0e1116;
		--wp--preset--color--muted: #596372;
		--wp--preset--color--accent: #c2410c;
		--wp--preset--color--accent-2: #1d4ed8;
		--wp--preset--color--neon: #0b8a5f;
		--wp--preset--color--violet: #1b2a4a;
		--wp--preset--color--turf: #dfe8f7;
		--wp--preset--color--gold: #8a6400;
		--wp--preset--color--glass: #ffffff;
		--wp--preset--color--glass-2: #ffffff;
		--wp--preset--color--edge: rgba(14, 17, 22, 0.10);
		--sfcd-accent-strong: #b73a09;
		--sfcd-neon-strong: #067350;
		--sfcd-gold-strong: #7e5c02;
	}
}

/* ---- Touch: the 40px icon toggle keeps its look, the hit area is 44px ----- */
@media (pointer: coarse), (max-width: 767.98px) {
	.sfcd-scheme-toggle--icon {
		position: relative;
	}

	.sfcd-scheme-toggle--icon::after {
		content: "";
		position: absolute;
		inset: -3px;
	}
}
