/* Approved Curve-inspired direction. Product colors are independent of chart series.
   The dark navigation and photographic homepage own their inverse color tokens. */
@font-face { font-family: Barlow; src: url('/fonts/barlow-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Barlow; src: url('/fonts/barlow-500.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: Barlow; src: url('/fonts/barlow-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Barlow; src: url('/fonts/barlow-700.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('/fonts/barlow-condensed-500.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('/fonts/barlow-condensed-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('/fonts/barlow-condensed-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Teko; src: url('/fonts/teko-500.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: Teko; src: url('/fonts/teko-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Teko; src: url('/fonts/teko-700.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --background: #edf0e7; --foreground: #101510;
  --card: #fafbf7; --card-foreground: #101510;
  --popover: #fafbf7; --popover-foreground: #101510;
  --primary: #ff791f; --primary-foreground: #101510;
  --accent: #ff791f; --accent-foreground: #101510;
  --accent-ink: #a84400; --accent-soft: #f8dec9;
  --secondary: #dce3d4; --secondary-foreground: #101510;
  --muted: #e2e8db; --muted-foreground: #56614e; --muted-fine: #56614e;
  --recess: #e1e7d9; --border: #c8d0c0; --rule: #cdd5c4;
  --input: #79866d; --ring: #a84400; --destructive: #a12323;
  --radius: 0; --r-panel: 0; --r-control: 0;
  --font-body: Barlow, Arial, sans-serif;
  --font-display: Teko, 'Arial Narrow', sans-serif;
  --font-label: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-sans: Barlow, Arial, sans-serif;
  --title-text-micro: 12px; --text-micro: calc(var(--title-text-micro) + 2px);
  --title-text-tiny: 12px; --text-tiny: calc(var(--title-text-tiny) + 2px);
  --title-text-mini: 13px; --text-mini: calc(var(--title-text-mini) + 2px);
  --title-text-caption: 13px; --text-caption: calc(var(--title-text-caption) + 2px);
  --title-text-small: 14px; --text-small: calc(var(--title-text-small) + 2px);
  --title-text-ui: 15px; --text-ui: calc(var(--title-text-ui) + 2px);
  --title-text-ui-lg: 16px; --text-ui-lg: calc(var(--title-text-ui-lg) + 2px);
  --title-text-body-sm: 16px; --text-body-sm: calc(var(--title-text-body-sm) + 2px);
  --title-text-body: 16px; --text-body: calc(var(--title-text-body) + 2px);
  --title-text-lead: 18px; --text-lead: calc(var(--title-text-lead) + 2px);
  --heading-page: clamp(54px, 6.4vw, 80px); --heading-hero: clamp(64px, 7.7vw, 96px);
  --heading-section: 40px; --heading-subsection: 21px;
  --heading-section-line: 1; --heading-subsection-line: 1.3;
}
html { --header-h: 113px; }
body { line-height: 1.55; }
.content { max-width: 1280px; padding: 42px 5% 72px; }
h1, h2 { font-weight: 600; letter-spacing: -.015em; text-transform: uppercase; }
h1 { line-height: .98; margin-bottom: 18px; }
h2 { line-height: 1.05; }
h3, h4 { font-family: var(--font-body); }
.eyebrow, .home-kicker, .vp-eyebrow, .home-sheet-kicker, .catalog-part-badge { font-family: var(--font-label); font-size: 15px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.breadcrumb { font-family: var(--font-body); font-size: 15px; margin-bottom: 28px; }
.panel { box-shadow: none; border-radius: 0; border: 0; }
.spec-panel { background: transparent; padding: 28px 0; }
.panel h2, .bench-title strong, .tool-directory strong { font-family: var(--font-display); font-weight: 600; }
.panel h2 { text-transform: uppercase; }
.panel h3, .panel h4 { font-family: var(--font-body); }
.primary-button { font-family: var(--font-label); font-size: 18px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; min-height: 48px; padding: 0 22px; }
.quiet-button { border: 0; font-weight: 600; }
.primary-button:hover { background: #ee6a11; color: #101510; }
.choice, .choice-buttons button, .unit-switch { border-radius: 0; }
.choice.is-selected, .choice-buttons button.is-selected, .unit-switch button.active { color: var(--accent-foreground); }

/* Flat, rectangular fields replace the cut-corner treatment. Composite controls still own
   their field surface; focus rings and invalid-state feedback stay visible. */
:root body :is(.field-control, .tool-search, .pc-search, .search-control, [data-slot="input-group"], input:not([type]), input[type="text"], input[type="search"], input[type="number"], input[type="email"], input[type="password"], input[type="url"], input[type="tel"], input[type="date"], input[type="datetime-local"], textarea, select, [data-slot="select-trigger"]) {
  --control-surface: var(--recess); background-image: none; clip-path: none; border-radius: 0;
}
:root body :is(.field-control, .tool-search, .pc-search, .search-control, [data-slot="input-group"], input:not([type]), input[type="text"], input[type="search"], input[type="number"], input[type="email"], input[type="password"], input[type="url"], input[type="tel"], input[type="date"], input[type="datetime-local"], textarea, select, [data-slot="select-trigger"]):is(:focus-within, [data-state="open"]) {
  --control-surface: var(--card); outline: 2px solid var(--ring); outline-offset: 2px; box-shadow: none;
}
:root body :is(.field-control, .tool-search, .pc-search, .search-control, [data-slot="input-group"]) :is(input, textarea):focus-visible { outline: none; background: transparent; }
/* Search focus uses a warm surface rather than a perimeter outline. */
:root body :is(.search-control, .tool-search, .pc-search):focus-within {
  --control-surface: var(--accent-soft); background-color: var(--accent-soft); outline: none; box-shadow: none;
}
:root body form.site-search:focus-within { background-color: #f8dec9; outline: none; box-shadow: none; }
:root body form.site-search :is(.search-control, input[type="search"]):focus-within { background: transparent; outline: none; box-shadow: none; }
:root body :is(.site-search, .search-control) button:focus-visible { background: #101510; color: #fafbf7; outline: none; box-shadow: none; }
:root body :is(input, textarea, select, [data-slot="select-trigger"])[aria-invalid="true"],
:root body :is(.field-control, .tool-search, .pc-search, .search-control, [data-slot="input-group"]):has([aria-invalid="true"]) { outline: 2px solid var(--destructive); outline-offset: 2px; }
.field-control input, .field input { font-family: var(--font-body); }

/* Keep navigation inverse, including its dialogs and the saved-vehicle rail. */
.topbar, .site-footer, .home-hero {
  --foreground: #edf0e7; --card: #111610; --card-foreground: #edf0e7;
  --popover: #181e15; --popover-foreground: #edf0e7; --secondary: #2b3425;
  --secondary-foreground: #edf0e7; --recess: #1c2418;
  --muted-foreground: #bec8b6; --muted-fine: #bec8b6;
  --accent-ink: #ff791f; --accent-soft: #442814; --rule: #30392a;
  --border: #44513b; --input: #849576; --ring: #ffad75;
  color: var(--foreground); color-scheme: dark;
}
.topbar { background: #111610; border: 0; }
.topbar-inner { max-width: 1280px; padding: 0 5%; height: 78px; gap: 20px; }
.refresh-brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; flex: none; color: #edf0e7; }
.brand.refresh-brand img { display: block; width: 232px; height: auto; }
.refresh-brand-tagline { padding-left: 44px; color: #bec8b6; font: 500 11px/1 var(--font-label); letter-spacing: .18em; text-transform: uppercase; }
.topnav { margin-left: auto; gap: 12px; font-family: var(--font-label); font-size: 19px; font-weight: 600; letter-spacing: .1em; }
.topnav-item > a { padding: 0 2px; gap: 7px; }
.topnav-item > a > svg { display: none; }
.topnav-item > a.active { background: transparent; color: var(--accent); }
.topnav-item > a.active::before { display: none; }
.topnav-after-sep { margin-left: 4px; padding-left: 16px; }
.topnav-after-sep::before { display: block; background: #53604a; }
.topbar-inner > .header-search { margin-left: 0; }
.header-search-label { display: none; }
.header-search-trigger { color: #bec8b6; padding: 0 8px; }
.header-search-trigger > span { display: none; }
.header-catalog-link { display: inline-flex; flex: none; align-items: center; gap: 14px; min-height: 44px; padding: 0 17px; background: var(--accent); color: #101510; font: 700 15px var(--font-label); letter-spacing: .08em; text-transform: uppercase; }
.nav-menu summary { background: transparent; }
.nav-menu nav { max-height: calc(100dvh - var(--header-h) - 16px); overflow-y: auto; }
.nav-menu nav a { font-family: var(--font-label); font-size: 24px; font-weight: 600; letter-spacing: .04em; }
.nav-menu nav a.active::before { display: none; }
.vehicle-rail { border-top-color: #30392a; border-left: 0; }
.vehicle-rail-inner { max-width: 1280px; padding-inline: 5%; }
.vehicle-rail-label { font-family: var(--font-label); font-size: 14px; letter-spacing: .12em; }
.vehicle-rail-id { border-left: 0; }
/* Keep ascenders and descenders inside the ellipsis boxes after the type-size increase. */
.vehicle-rail-text { align-items: center; }
.vehicle-rail-name strong, .vehicle-rail-sub { line-height: 1.4; padding-block: 2px; }
@media (min-width: 901px) {
  html { --header-h: 117px; }
  .vehicle-rail-inner { height: 36px; }
}

/* Full-bleed photography and three direct routes into the catalog. */
.content.home { padding-top: 0; }
.home-hero, .home-hero.is-catalog { min-height: 520px; padding: 36px max(5vw, calc((100vw - 1152px) / 2)) 28px; background: #111610; border: 0; align-items: center; }
.home-hero::before, html[data-home-scene] .home-hero::before { inset: 0 0 0 auto; width: min(80%, 1100px); height: auto; background-image: url('/img/home/field-buggy.webp'); background-position: center 45%; background-size: cover; mask-image: linear-gradient(90deg, transparent, #000 22%); }
/* The foreground subjects occupy different parts of these owner-supplied photos.
   A narrower desktop image area avoids zooming past the vehicle, with a soft join to the copy. */
html[data-home-scene="crawling"] .home-hero::before { width: min(65%, 1000px); background-image: url('/img/home/field-crawling.webp'); background-position: left 60%; }
html[data-home-scene="bashing"] .home-hero::before { background-image: url('/img/home/field-rocks.webp'); background-position: center 58%; }
html[data-home-scene="drifting"] .home-hero::before { background-image: url('/img/home/field-track.webp'); background-position: center bottom; }
.home-hero::after { background: linear-gradient(90deg, #0a120aeb 0%, #0a120aa8 45%, #0a120a0d 100%); }
.home-hero-copy { width: min(100%, 760px); }
.home-hero .home-kicker { color: var(--accent); margin-bottom: 12px; font-size: 15px; }
.home-hero .home-kicker::before { display: none; }
.home-hero h1, .home-hero.is-catalog h1 { font-size: var(--heading-hero); line-height: .95; letter-spacing: -.015em; }
.home-hero .home-accent { color: var(--accent); }
.home-hero .home-lede { max-width: 470px; margin: 14px 0 18px; color: #d8dfd1; font-size: 21px; line-height: 1.55; }
.home-search-wrap, .home-hero .home-search { max-width: 670px; }
.home-search-examples { margin-top: 10px; gap: 15px; color: var(--muted-fine); font-size: 15px; }
.home-search-examples a { color: inherit; }
.home-catalog-stats { margin-top: 16px; max-width: 660px; }
.home-catalog-stats dl { gap: 26px; }
.home-catalog-stats dd { color: #edf0e7; font-family: Teko, sans-serif; font-size: 30px; }
.home-catalog-stats dt { font-family: var(--font-label); font-size: 15px; letter-spacing: .06em; }
.home-mobile-shortcuts { display: none; }
.home-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 calc(-1 * max(0px, (100vw - 100%) / 2)); padding: 0 max(5vw, calc((100vw - 1152px) / 2)); background: var(--accent); color: #101510; border: 0; }
.home-paths > a { padding: 22px 20px 22px 0; border: 0; background: transparent; }
.home-paths > a + a { padding-left: 28px; border-left: 1px solid #d66117; }
.home-paths strong { color: #101510; font: 600 31px/1 Teko, sans-serif; text-transform: uppercase; letter-spacing: -.01em; }
.home-paths strong svg { color: #101510; }
.home-paths a > span { font-size: 16px; color: #101510; }
.home-featured, .home .latest, .home .bench { margin-top: 40px; }
.home-featured-head { margin-bottom: 18px; }
.home-heading { font-size: 48px; line-height: 1; }
.home-sheet { background: var(--card); border: 0; }
.home-sheet-body { padding: 30px; }
.home-compare-model { background: var(--recess); }
.home-sheet-photo, .home-compare-photo { background: #fff; }
.home-sheet-photo img, .home-compare-photo img { mix-blend-mode: normal; }
.home-sheet-figs { background: var(--recess); padding: 20px; }
.home-sheet-figs > div { border: 0; }
.home-sheet-head .home-sheet-kicker { color: var(--muted-foreground); }
.home-featured-grid { gap: 24px; }
/* Narrow examples keep model identities and both part numbers inside the card. */
@container (max-width: 420px) {
  .home-sheet-id { grid-template-columns: 88px minmax(0, 1fr); grid-template-areas: "photo maker" "photo model" "facts facts" "grade grade"; gap: 4px 12px; }
  .home-sheet-photo { grid-area: photo; }
  .home-sheet-name { display: contents; }
  .home-sheet-maker { grid-area: maker; align-self: end; }
  .home-sheet-model { grid-area: model; }
  .home-sheet-facts { grid-area: facts; margin-top: 6px; }
  .home-sheet-grade { grid-area: grade; font-family: var(--font-body); line-height: 1.35; }
  .home-sheet-grade::before { flex: none; }
  .home-compare-model { display: grid; align-content: start; align-items: start; gap: 6px; }
  .home-compare-model > span:last-child { overflow-wrap: anywhere; }
  .home-compare-model code { white-space: normal; overflow-wrap: anywhere; }
  .home-compare-parts p { grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr); row-gap: 4px; }
  .home-compare-parts p > span { grid-column: 1 / -1; }
  .home-compare-parts code { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .home-compare-parts code:last-child { text-align: right; }
}
.bench-card { background: var(--card); border: 0; padding: 28px; }
.bench-title strong { font-size: 32px; }

/* Catalog landing keeps every existing class and its paginated destination. */
.catalog-intro h1 { max-width: 750px; }
.catalog-intro p:not(.eyebrow) { color: var(--muted-foreground); max-width: 600px; }
.catalog-landing .catalog-classes { margin-top: 46px; }
.catalog-landing .latest-title { font-family: Teko, sans-serif; font-size: 42px; line-height: 1; }
.catalog-class-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.catalog-class-card { gap: 0; padding: 0; background: var(--recess); }
.catalog-class-photo, .catalog-class-photo.is-cutout { height: 180px; margin: 0; background: var(--recess); }
.catalog-class-photo img { padding: 18px 12px; }
.catalog-class-card h3 { min-height: 0; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 600 32px/1 Teko, sans-serif; }
.catalog-class-card h3 svg { flex: none; color: var(--accent-ink); }
.catalog-brand-entry { padding: 30px; margin-top: 34px; background: var(--card); }
.catalog-brand-entry strong { font: 600 36px/1 Teko, sans-serif; text-transform: uppercase; }
.catalog-brand-grid a { font-family: var(--font-label); font-size: 24px; }
.catalog-brand-grid a { display: grid; grid-template-columns: 110px minmax(0, 1fr) 18px; gap: 16px; padding: 18px; }
.catalog-brand-mark { display: grid; place-items: center; width: 100%; height: 58px; min-width: 0; }
.catalog-brand-mark .vh-brand { width: auto; height: auto; max-width: 100%; max-height: 50px; object-fit: contain; }
.catalog-brand-initial { color: var(--muted-foreground); font: 600 36px/1 var(--font-display); }
.catalog-brand-name { min-width: 0; line-height: 1.2; }
.index-filters-panel, .compare-filter-panel { background: var(--popover); color: var(--popover-foreground); border: 0; border-radius: 0; box-shadow: 0 12px 28px #10151024; }

/* Secondary catalog actions share one surface, type scale and icon treatment. */
.index-controls :is(.index-makers-button, .index-saved), .vp-parts-controls .vp-filter-toggle, .vp-heading-top .compare-link, .vh-top-actions .compare-link, .compare-filter-trigger, .catalog-landing-actions a {
  --toolbar-icon: var(--muted-foreground); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 0; background: var(--card); color: var(--foreground); font: 600 18px/1.3 var(--font-label); letter-spacing: .02em; text-decoration: none; white-space: nowrap;
}
.vp-parts-controls :is(.vp-filter-toggle, .compare-link) { background: transparent; }
.vp-filter-listing { display: grid; grid-template-columns: 66px minmax(0, 1fr); align-items: center; gap: 12px; margin-bottom: 10px; }
.vp-filter-listing > span { color: var(--muted-foreground); font-size: var(--text-small); }
.vp-filter-listing .parts-listing-filter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vp-filter-listing .parts-listing-filter button { min-width: 0; min-height: 44px; padding: 8px 6px; }
@media (max-width: 640px) { .vp-filter-listing { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

.index-controls :is(.index-makers-button, .index-saved) > svg, .vp-parts-controls .vp-filter-toggle > svg, .compare-link > svg, .compare-filter-trigger > svg, .catalog-landing-actions a > svg { flex: none; color: var(--toolbar-icon, var(--muted-foreground)); }
.index-controls :is(.index-makers-button, .index-saved):hover, .vp-parts-controls .vp-filter-toggle:hover, .compare-link:hover, .compare-filter-trigger:hover, .catalog-landing-actions a:hover { --toolbar-icon: var(--foreground); background: var(--secondary); color: var(--foreground); }
.index-controls :is(.index-makers-button, .index-saved):is(.is-active, .is-on, [aria-expanded="true"]), .vp-parts-controls .vp-filter-toggle:is([aria-expanded="true"], :has(.vp-filter-count)), .compare-filter-trigger:is([aria-expanded="true"], :has(.compare-filter-count)) { --toolbar-icon: var(--accent-ink); background: var(--accent-soft); color: var(--accent-ink); }
.index-controls :is(.index-makers-button, .index-saved):focus-visible, .vp-parts-controls .vp-filter-toggle:focus-visible, .compare-link:focus-visible, .compare-filter-trigger:focus-visible, .catalog-landing-actions a:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.index-controls .facet-value { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; background: var(--recess); color: var(--muted-foreground); font: 600 15px/1 var(--font-label); }
.index-controls .is-active .facet-value { background: var(--accent); color: var(--accent-foreground); }
/* Product photos often contain their own white backdrop. Keep their whole stage white
   so contained images do not leave contrasting bands around the original photo. */
.index-stage, .index-stage.latest-cover.has-photo { background: #fff; }
.index-stage img:not(.is-cover) { mix-blend-mode: normal; }
.index-card { background: var(--card); border: 0; box-shadow: none; }
/* Photo overlays keep inverse text independently of the light page palette. */
.index-compare { --foreground: #edf0e7; --muted-foreground: #bec8b6; color: var(--foreground); }
.index-compare:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.index-card > b { font-family: Teko, sans-serif; font-size: 28px; line-height: 1.05; text-transform: uppercase; font-weight: 600; }
.index-card-maker { font-family: var(--font-label); letter-spacing: .12em; font-size: 15px; }
.index-tags { color: var(--muted-foreground); }
.setup-stage.is-mark.tone-dark img { filter: none; }
.latest.is-compact .latest-card { background: var(--recess); padding: 15px; }
.latest.is-compact .latest-card > b { font-family: var(--font-body); font-weight: 600; font-size: 16px; }
.latest-tag.is-corrected { color: #296c3e; background: #dce9d9; }
.latest-tag.is-soon { color: #235e86; background: #dbe8ed; }
.latest-tag.is-filled { color: #23675f; background: #d6e8e0; }
.latest-tag.is-background { color: #614288; background: #e9e1f0; }

/* Vehicle pages: useful hero actions, one photo and a full-width fact band. */
.vehicle-detail { --vehicle-gutter: 5%; }
/* Make inline references recognizable without changing navigation or action buttons. */
.vehicle-detail a, .vehicle-detail a:is(:hover, :focus-visible) { text-decoration: none; }
.vehicle-detail :is(.out-link, .text-link, .retained-document > a, .src-title-link, .vh-fn a, .owner-reference a:not(.maintenance-bundle-card), .vh-refs a, .spec-related a, .gear-parts a, .vp-documents a, .vp-lineage-evidence a, .vp-references a, .vp-fitment a, .part-diagram-source a) {
  color: var(--accent-ink); font-weight: 600; text-decoration: none;
}
.vehicle-detail :is(.out-link, .text-link, .retained-document > a, .src-title-link, .vh-fn a, .owner-reference a:not(.maintenance-bundle-card), .vh-refs a, .spec-related a, .gear-parts a, .vp-documents a, .vp-lineage-evidence a, .vp-references a, .vp-fitment a, .part-diagram-source a):is(:hover, :focus-visible) {
  color: var(--ring); background-color: var(--accent-soft);
}
.vehicle-detail .out-link .out-mark { color: currentColor; }
.vh-hero { gap: 44px; margin: 22px 0 30px; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.vh-hero h1 { font-size: clamp(52px, 6vw, 78px); line-height: 1; margin: 20px 0; }
.vh-top { flex-wrap: wrap; gap: 18px; }
.vh-top .vh-brand-link { max-width: 240px; min-height: 56px; align-items: center; }
.vh-top .vh-brand { width: auto; height: 48px; max-width: 100%; max-height: 48px; object-fit: contain; object-position: left center; }
/* Preserve maker artwork: the legacy light tone includes full-color logos. */
.vh-brand.is-dark, .vh-brand.is-light { filter: none; }
/* These originals contain white lettering. Give them contrast without recoloring it. */
:is(.vh-brand, .setup-stage.is-mark img):is([src$="/cen-racing.png"], [src$="/infinity.svg"], [src$="/primal-rc.png"], [src$="/rlaarlo.png"], [src$="/team-losi-racing.svg"], [src$="/team-magic.png"]) { background: #26301f; padding: 6px; }
.vh-sub, .vh-aka { font-size: 17px; line-height: 1.5; }
/* Vehicle actions and Parts controls share a defined rail with the same icon and type treatment. */
.vehicle-action-bar { border-block: 1px solid var(--rule); padding: 4px 0; }
.vh-top-actions.vehicle-action-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; width: 100%; margin: 18px 0 0; }
.vehicle-action-bar :is(.fav-button, .compare-link, .share-button, .vp-filter-toggle), .catalog-landing-actions a { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 8px 12px; border: 0; background: transparent; color: var(--foreground); font: 600 var(--text-ui)/1.3 var(--font-body); letter-spacing: 0; }
.vh-top-actions.vehicle-action-bar :is(.fav-button, .compare-link, .share-button) { width: 100%; }
.vh-top-actions.vehicle-action-bar > .share { justify-content: center; }
.vh-top-actions.vehicle-action-bar .share .share-button { width: 100%; }
.vehicle-action-bar :is(.fav-button, .compare-link, .share-button, .vp-filter-toggle) > svg, .catalog-landing-actions a > svg { flex: none; width: 19px; height: 19px; color: var(--accent-ink); stroke-width: 1.8; }
.vehicle-action-bar :is(.fav-button, .compare-link, .share-button, .vp-filter-toggle):hover, .catalog-landing-actions a:hover { background: var(--secondary); color: var(--foreground); }
.vehicle-action-bar :is(.fav-button, .compare-link, .share-button, .vp-filter-toggle):focus-visible, .catalog-landing-actions a:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
.vehicle-action-bar .fav-button.is-on { background: var(--accent-soft); color: var(--accent-ink); }
.vehicle-action-bar .vp-filter-toggle:is([aria-expanded="true"], :has(.vp-filter-count)) { background: var(--accent-soft); color: var(--accent-ink); }
.vh-stage { background: #fff; aspect-ratio: 1.45; }
.vh-stage img { mix-blend-mode: normal; padding: 22px; }
.vh-photo figcaption { font-size: 14px; margin-top: 10px; }
.vehicle-fact-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--accent); color: #101510; margin: 30px 0 38px; padding: 0 22px; }
.vehicle-fact-band > div { min-width: 0; padding: 22px; display: flex; flex-direction: column-reverse; gap: 4px; }
.vehicle-fact-band > div + div { border-left: 1px solid #d66117; }
.vehicle-fact-band dt { font: 600 15px/1.3 var(--font-label); letter-spacing: .13em; text-transform: uppercase; }
.vehicle-fact-band dd { margin: 0; font: 600 40px/1 Teko, sans-serif; white-space: nowrap; }
.vehicle-fact-band dd.is-word { font: 600 28px/1.2 var(--font-label); text-transform: uppercase; }
.vh-group-head { border-left: 0; min-height: 44px; padding: 10px 14px; }
.vh-group-head, .vp-group-header {
  --foreground: #edf0e7; --muted-fine: #bec8b6; --accent-ink: #ff791f;
  background: #243021; color: var(--foreground);
}
.vh-group-head, .vp-group-head { font: 600 20px/1.2 var(--font-label); letter-spacing: .06em; text-transform: uppercase; }
.vh-group-head .help-button { color: #d8e0d1; border-color: #7e8b75; }
.vh-group-head .help-button:is(:hover, [aria-expanded="true"]) { background: #edf0e7; color: #243021; border-color: #edf0e7; }
.vehicle-workbench .vp-tabs, .compare-tabs { gap: 28px; border-bottom-color: var(--rule); }
.vehicle-workbench .vp-tabs button, .compare-tabs button { color: var(--muted-foreground); font: 600 23px/1 var(--font-label); letter-spacing: .06em; text-transform: uppercase; }
.vehicle-workbench .vp-tabs button[aria-selected="true"], .compare-tabs button[aria-selected="true"] { color: var(--foreground); border-bottom-color: var(--foreground); }
.vehicle-workbench .vp-tabs { overflow: visible; flex-wrap: wrap; }
.vp-search-toolbar { margin-bottom: 24px; }
.vp-search-toolbar .vp-search > svg { display: none; }
.vp-search-toolbar .unified-search-submit span { display: none; }
.vp-group-header { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 6px 14px; margin-top: 12px; border: 0; }
.vp-group-head { flex: 1; min-width: 0; padding: 0; background: transparent; color: inherit; }
.vp-group-count { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 24px; padding: 2px 7px; border: 0; background: #edf0e7; color: #243021; font: 500 var(--text-caption)/1 var(--font-mono); white-space: nowrap; }
.vp-group-header .vp-section-documents { position: relative; flex: 0 1 auto; gap: 4px 12px; align-items: center; margin: 0; padding: 0; }
.vp-section-documents .vp-section-document { display: inline-flex; align-items: baseline; gap: 5px; }
.vp-section-documents .vp-section-document > small { display: inline; font-size: 14px; }
.vp-section-documents a { white-space: nowrap; }
.vp-section-documents details > div { position: absolute; z-index: 3; top: 100%; right: 0; width: min(380px, 70vw); padding: 10px 12px; background: #243021; box-shadow: 0 8px 20px #10151030; }
.vp-part { border-bottom-color: var(--rule); padding-block: 4px; gap: 4px; }
.vp-part-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 12px; }
.vp-part h3, .vp-part h4 { font: 600 16px/1.35 var(--font-body); text-transform: none; }
.vp-part-meta { font-size: 16px; }
.vp-part-meta code { font-size: 16px; }
.vp-part-supplier { grid-column: 1 / -1; }
.vp-part-main > .vp-part-spec { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.vp-part-main > .vp-part-spec details[open] { flex-basis: 100%; }
.vp-part-main > .vp-fitment { grid-column: 1 / -1; margin-block: 2px; }
.vp-part-spec-row strong, .vh-basis-inline.is-derived-from-replacement-part, .vh-table .vh-basis.is-derived-from-replacement-part { color: #315f87; }
/* Keep the spec title and its secondary information together without stacked margins. */
.vh-spec-head { align-items: center; gap: 4px 20px; margin-bottom: 8px; }
.vh-spec-head h2 { margin: 0; }
.vh-spec-meta { gap: 0 16px; }
.vh-spec-meta .vh-updated { white-space: nowrap; }
.vh-spec-meta .feedback-link { min-height: 44px; font-size: var(--text-small); white-space: nowrap; }
@media (max-width: 640px) {
  .vh-spec-head { flex-direction: column; align-items: stretch; gap: 2px; }
  .vh-spec-meta { justify-content: space-between; gap: 0 12px; }
}
.vh-table tbody tr:nth-child(even) { background: var(--recess); }
.vh-table :is(td, th) { padding: 8px 12px; border-bottom-color: var(--rule); }
.vh-table .vh-group th { padding: 16px 0 0; background: transparent; border-bottom: 0; }
.vh-table tbody:first-of-type .vh-group th { padding-top: 0; }
.vh-table .vh-spec-sources { margin-top: 0; }
.vh-table .vh-spec-sources:not([open]) { display: inline-block; vertical-align: baseline; margin-left: 12px; }
.vh-table .vh-spec-sources summary { min-height: 24px; }
@media (pointer: coarse) { .vh-table .vh-spec-sources summary { min-height: 44px; } }
/* Supporting sections keep a visible hierarchy after a long specification or parts list. */
.vh-support-grid { gap: 20px; margin-top: 28px; }
.vh-support-grid .vh-support-card { background: var(--card); padding: 24px; gap: 16px; }
.vh-support-card > h2 { font-size: 32px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.vh-support-related > .vh-support-card { grid-column: 1 / -1; }
.vh-support-card > .vh-background-details, .vh-support-card .vh-support-footer { margin-top: 0; }
.vh-support-card .vh-support-footer { padding-top: 12px; border-top: 1px solid var(--rule); }
.vh-support-previews a { height: 100%; background: var(--background); padding: 10px; }
.vh-support-preview-stage { background: #fff; height: 124px; }
.vh-support-preview-stage img { mix-blend-mode: normal; }
.vehicle-connection-photo { background: #fff; }
.vehicle-connection-photo img { mix-blend-mode: normal; }
/* Related vehicles use one repeatable hierarchy, with actions anchored below the evidence. */
.vehicle-discovery-groups.is-single .vehicle-connections { gap: 16px; }
.vehicle-connections > li, .vehicle-connections > li:last-child { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--background); border: 0; }
.vehicle-connection-name { grid-template-columns: 76px minmax(0, 1fr) 16px; gap: 10px; min-height: 58px; align-items: center; }
.vehicle-connection-photo { height: 58px; }
.vehicle-connection-name b { font-size: 17px; }
.vehicle-connection-reason { margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.4; color: var(--foreground); font-weight: 600; }
.vehicle-connection-details { display: grid; gap: 10px; }
.vehicle-connection-overlap { display: grid; gap: 3px; margin: 0; padding: 10px 12px; background: #dce8d9; }
.vehicle-connection-overlap strong, .vehicle-connection-card-count { color: #286343; }
.vehicle-connection-overlap strong { font-size: 17px; line-height: 1.3; }
.vehicle-connection-overlap span { color: #435b3e; font-size: 15px; }
.vehicle-connection-equipment, .vehicle-connection-facts { display: grid; gap: 5px; margin: 0; padding: 0; font-size: 16px; line-height: 1.45; color: var(--foreground); }
.vehicle-connection-equipment li, .vehicle-connection-facts li { position: relative; padding-left: 12px; }
.vehicle-connection-equipment li::before, .vehicle-connection-facts li::before { content: "•"; position: absolute; left: 0; color: var(--muted-foreground); }
.vehicle-connection-example { margin: 0; }
.vehicle-connection-actions { display: grid; gap: 6px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--rule); }
.vehicle-connection-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vehicle-connection-compare > a { justify-content: center; min-height: 44px; padding: 6px 8px; background: var(--card); font: 600 18px/1.25 var(--font-label); text-align: center; }
.vehicle-connection-compare > a:only-child { grid-column: 1 / -1; }
.vehicle-connection-compare > a:hover { background: var(--secondary); text-decoration: none; }
.vehicle-connection-resources { display: flex; flex-wrap: wrap; gap: 0 12px; }
.vehicle-connection-resources a { font-size: 16px; line-height: 1.4; }
.vehicle-connections.has-resources .vehicle-connection-resources { min-height: 36px; }
@media (min-width: 768px) { .vehicle-connection-reason { min-height: 30px; } }
@media (max-width: 767px) { .vehicle-connections .vehicle-connection-resources:empty { display: none; } }
.vp-detail-card { background: transparent; padding: 0; }
.vp-detail-card h1 { max-width: 900px; }
.vp-detail-nav { font-size: 16px; }
.compat-conversion-strip, .compat-card, .compat-detail-card { box-shadow: none; background: var(--card); border: 0; }
.compat-basis { background: #dce8f1; color: #28577e; }
.ur-logo-dark { background: #111820; }

/* The comparison retains its ledger, grouping and source-backed data. */
.compare-intro h1 { font-size: clamp(52px, 6vw, 78px); line-height: .98; }
.compare-intro h1 span { color: var(--accent-ink); }
.compare-intro p { color: var(--muted-foreground); font-size: 18px; }
.compare-vehicle-card { background: var(--recess); border: 0; }
.compare-vehicle-card img { background: #fff; mix-blend-mode: normal; }
.compare-table :is(th, td) { border-color: var(--rule); }
.compare-grade.is-verified { color: #245d3b; border: 0; }
.compare-grade.is-community, .compare-est { color: #815b00; }
.compare-bar { background: #d9dfd2; }
.pc-shared, .catalog-part-model-evidence p { color: #256445; }
.pc-row.is-shared > .pc-row-summary { background: #dce9d4; }
.pc-row.is-shared > .pc-row-summary:hover { background: #d1e3c8; }
.pc-cell, .pc-part, .pc-vehicle-label { border-color: var(--rule); }
.gearing-matrix-cell.is-boxed, .gearing-matrix-cell.is-boxed:not(.is-selected) small { color: #286343; }
.catalog-part-heading { background: var(--recess); border: 0; padding: 26px; }
.catalog-part-models { border-color: var(--rule); }
.search-vehicle-results ul > li { border-color: var(--rule); }
.search-vehicle-results strong { font-weight: 600; }
.search-vehicle-results li > a.search-vehicle-result { grid-template-columns: 96px minmax(0, 1fr) 20px; gap: 14px; }
.search-vehicle-result > .search-vehicle-photo { display: grid; place-items: center; width: 96px; height: 72px; grid-column: 1; grid-row: 1; overflow: hidden; background: #fff; }
.search-vehicle-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.search-vehicle-photo img.is-cover { object-fit: cover; }
.search-vehicle-photo > svg { width: 36px; height: 36px; color: var(--muted-foreground); }
.search-vehicle-result > .search-vehicle-copy { display: grid; gap: 3px; min-width: 0; grid-column: 2; grid-row: 1; overflow-wrap: anywhere; }
.search-vehicle-results li > a.search-vehicle-result > svg { grid-column: 3; grid-row: 1; }
@media (max-width: 640px) {
  .search-vehicle-results li > a.search-vehicle-result { grid-template-columns: 80px minmax(0, 1fr) 18px; gap: 10px; }
  .search-vehicle-result > .search-vehicle-photo { width: 80px; height: 60px; }
}
.catalog-part-meta code { color: var(--accent-ink); }
.warning, .notice { color: #815b00; }
.danger-button { color: #982323; border-color: #a12323; }
.setup-menu [data-slot=dropdown-menu-item][data-variant=destructive], .setup-menu [data-slot=dropdown-menu-item][data-variant=destructive] svg { color: #982323; }
.ms-page { --ms-good: #286343; --ms-warn: #815b00; --ms-bad: #a12323; --ms-inset: #e1e7d9; }

/* Consistent dark footer without moving any functional links. */
.site-footer { background: #111610; padding-top: 12px; border: 0; }
.site-footer > .refresh-footer-grid { max-width: 1280px; padding: 44px 5%; display: grid; grid-template-columns: 1.2fr 1fr 1.1fr; gap: 45px; align-items: start; }
.refresh-footer-brand { display: inline-flex; align-items: center; }
.refresh-footer-brand img { display: block; width: 248px; height: auto; max-width: 100%; }
.refresh-footer-grid p { margin-top: 18px; color: #bec8b6; font-size: 17px; }
.refresh-footer-grid :is(a, button) > span { font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; }
.site-footer .refresh-footer-grid nav { display: flex; flex-direction: column; align-items: start; gap: 4px; }
.site-footer .refresh-footer-grid h2 { font: 600 13px/1.3 var(--font-label); color: #a0af95; letter-spacing: .15em; margin: 0 0 12px; }
.site-footer .refresh-footer-grid a:not(.refresh-footer-brand), .site-footer .refresh-footer-grid button { font-size: 17px; min-height: 35px; }
.site-footer > .refresh-footer-bottom { max-width: 1280px; display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 12px 30px; margin: auto; padding: 20px 5% 26px; border-top: 1px solid #30392a; }
.refresh-footer-bottom > span, .refresh-footer-bottom p, .refresh-footer-bottom nav { color: #aab79f; font: 400 14px/1.5 Barlow, sans-serif; margin: 0; }
.site-footer .refresh-footer-bottom nav { flex: none; flex-wrap: nowrap; margin-left: auto; gap: 24px; }

@media (max-width: 1180px) {
  .header-catalog-link { display: none; }
  .topbar-inner { gap: 24px; }
  .topnav { gap: 22px; }
  .catalog-class-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .home-hero::before, html[data-home-scene] .home-hero::before { width: 90%; }
  .topbar-inner { height: 72px; }
  html { --header-h: 107px; }
  .topbar-inner > .header-search { margin-left: auto; }
  .topbar-inner > .nav-menu { margin-left: 0; }
  .catalog-class-photo { height: 145px; }
  .catalog-brand-grid a { grid-template-columns: 88px minmax(0, 1fr) 18px; gap: 12px; }
  .catalog-class-card h3 { font-size: 29px; padding: 16px; }
  .home-featured-grid { grid-template-columns: minmax(0, 1fr); }
  .home-paths strong { font-size: 27px; }
  .home-paths a > span { font-size: 15px; }
}
@media (max-width: 640px) {
  :root { --heading-page: 54px; --heading-hero: 64px; --heading-section: 36px; --heading-subsection: 20px;
  --title-text-body: 16px; --text-body: calc(var(--title-text-body) + 2px);
  --title-text-body-sm: 16px; --text-body-sm: calc(var(--title-text-body-sm) + 2px);
  --title-text-ui: 16px; --text-ui: calc(var(--title-text-ui) + 2px);
  --title-text-small: 14px; --text-small: calc(var(--title-text-small) + 2px);
  --title-text-caption: 13px; --text-caption: calc(var(--title-text-caption) + 2px);
  --title-text-mini: 13px; --text-mini: calc(var(--title-text-mini) + 2px);
  --title-text-tiny: 12px; --text-tiny: calc(var(--title-text-tiny) + 2px);
  --title-text-micro: 12px; --text-micro: calc(var(--title-text-micro) + 2px);
  --title-text-lead: 17px; --text-lead: calc(var(--title-text-lead) + 2px); }
  html { --header-h: 107px; }
  .content { padding: 28px 6% 48px; }
  .topbar-inner { padding-inline: 5%; gap: 4px; }
  .brand.refresh-brand img { width: 196px; }
  .refresh-brand-tagline { padding-left: 37px; font-size: 10px; }
  .vehicle-rail-inner { padding-inline: 5%; }
  .home-hero, .home-hero.is-catalog { --home-photo-height: clamp(260px, 53vw, 340px); min-height: 0; padding: 24px 6% var(--home-photo-height); align-items: start; }
  /* Give the photo its own space below the controls instead of cropping a wide scene
     into the entire tall hero or covering the vehicle with the search field. */
  .home-hero::before, html[data-home-scene] .home-hero::before { inset: auto 0 0; width: auto; height: var(--home-photo-height); background-size: cover; background-position: 68% 42%; mask-image: linear-gradient(180deg, transparent, #000 18%); }
  html[data-home-scene="crawling"] .home-hero::before { background-position: 18% 62%; }
  html[data-home-scene="bashing"] .home-hero::before { background-position: 63% 58%; }
  html[data-home-scene="drifting"] .home-hero::before { background-position: 70% bottom; }
  .home-hero::after { background: linear-gradient(0deg, #0a120a33, transparent 35%); }
  .home-hero .home-kicker { font-size: 14px; letter-spacing: .1em; margin-bottom: 12px; }
  .home-hero h1, .home-hero.is-catalog h1 { font-size: clamp(54px, 14vw, 68px); line-height: .95; }
  .home-hero .home-lede { margin: 12px 0 16px; font-size: 19px; max-width: 330px; }
  .home-search-examples { gap: 12px; margin-top: 10px; font-size: 14px; }
  .home-search-examples > span { display: none; }
  .home-catalog-stats { margin-top: 16px; }
  .home-catalog-stats dl { gap: 16px; }
  .home-catalog-stats dd { font-size: 28px; }
  .home-catalog-stats dt { font-size: 14px; letter-spacing: .03em; }
  .home-paths { grid-template-columns: minmax(0, 1fr); padding-inline: 6vw; }
  .home-paths > a, .home-paths > a + a { padding: 18px 0; border: 0; }
  .home-paths > a + a { border-top: 1px solid #d66117; }
  .home-paths strong { font-size: 32px; }
  .home-paths a > span { font-size: 16px; }
  .home-featured, .home .latest, .home .bench { margin-top: 28px; }
  .home-heading { font-size: 40px; }
  .home-sheet { padding: 0; }
  .home-sheet-body { padding: 18px; }
  .home-sheet-figs { padding: 16px; }
  .catalog-landing .catalog-classes { margin-top: 32px; }
  .catalog-class-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .catalog-class-photo, .catalog-class-photo.is-cutout { height: 130px; }
  .catalog-class-card h3 { font-size: 25px; line-height: 1; padding: 14px; }
  .catalog-class-card h3 svg { width: 16px; }
  .catalog-class-photo img { padding: 12px; }
  .catalog-brand-entry { padding: 24px; }
  .catalog-brand-entry strong { font-size: 32px; }
  .latest.is-compact .latest-card { padding: 12px; }
  .latest.is-compact .latest-card > b { font-size: 14px; }
  .index-card > b { font-size: 26px; }
  .vh-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .vh-hero h1 { font-size: 56px; margin: 20px 0 16px; }
  .vh-top { gap: 12px; }
  .vh-top .vh-brand-link { max-width: 45%; min-height: 44px; }
  .vh-top .vh-brand { height: 40px; max-width: 100%; max-height: 40px; }
  .vh-top-actions { flex-wrap: wrap; }
  /* Compact vehicle introductions without shrinking type or action targets. The
     current model is already the title, and Garage remains in the main menu. */
  html:has(.vehicle-detail) { --header-h: 95px; }
  body:has(.vehicle-detail) .topbar-inner { height: 60px; }
  .content.vehicle-detail { padding-top: 12px; }
  .vehicle-detail > .eyebrow[aria-label="Breadcrumb"] { margin-bottom: 0; }
  .vehicle-detail > .eyebrow[aria-label="Breadcrumb"] > span:last-child { display: none; }
  .vehicle-detail > .eyebrow[aria-label="Breadcrumb"] a { display: inline-flex; align-items: center; min-height: 44px; }
  .vehicle-detail .vh-hero { margin: 8px 0 20px; gap: 12px; }
  .vehicle-detail .vh-top { margin-bottom: 0; }
  .vehicle-detail .vh-hero h1 { margin: 8px 0; }
  .vehicle-detail .vh-prices { margin: 0; }
  .vehicle-detail .vh-top-actions.vehicle-action-bar { margin-top: 8px; padding-block: 0; }
  .vh-photo .vh-stage { aspect-ratio: 1.5; max-height: 250px; }
  .vehicle-fact-band { grid-template-columns: repeat(4, auto); padding: 0 12px; margin: 24px 0 28px; }
  .vehicle-fact-band > div { padding: 20px 6px; border: 0 !important; gap: 5px; }
  .vehicle-fact-band dt { font-size: 14px; letter-spacing: .04em; }
  .vehicle-fact-band dd { font-size: 34px; }
  .vehicle-fact-band dd.is-word { font-size: 22px; }
  .vehicle-workbench .vp-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; padding: 0; overflow: visible; }
  .vehicle-workbench .vp-tabs button { min-width: 0; min-height: 44px; font-size: 20px; padding: 8px 0; letter-spacing: .01em; }
  .vp-group-header { padding: 6px 12px; }
  .vh-group-head, .vp-group-head { font-size: 18px; }
  .vp-part h3, .vp-part h4 { font-size: 16px; }
  .vp-part-main { gap: 3px 8px; }
  .vp-part-meta { justify-content: flex-end; max-width: 108px; gap: 3px 5px; }
  .vp-part-meta code { font-size: 15px; }
  .vh-table :is(td, th) { padding: 8px; }
  .vh-support-grid .vh-support-card { padding: 18px; }
  .vh-support-card > h2 { font-size: 30px; }
  .vh-support-previews, .vh-support-previews.is-three { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .vh-support-previews a { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 3px 12px; align-items: center; }
  .vh-support-preview-stage { grid-row: 1 / span 2; height: 66px; }
  .vh-support-previews b { align-self: end; }
  .vh-support-previews small { align-self: start; }
  .catalog-brand-grid a { grid-template-columns: minmax(0, 1fr) 18px; gap: 10px; padding: 14px; font-size: 20px; align-content: start; }
  .catalog-brand-mark { grid-column: 1 / -1; height: 58px; }
  .catalog-brand-mark .vh-brand { max-width: 132px; max-height: 48px; }
  .compare-intro h1 { font-size: 54px; }
  .site-footer > .refresh-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; padding: 32px 6%; }
  .refresh-footer-grid > div:first-child { grid-column: 1/-1; }
  .site-footer .refresh-footer-grid h2 { font-size: 13px; }
  .site-footer .refresh-footer-grid a:not(.refresh-footer-brand), .site-footer .refresh-footer-grid button { font-size: 16px; }
  .site-footer > .refresh-footer-bottom { gap: 12px; padding: 20px 6%; }
  .site-footer .refresh-footer-bottom nav { gap: 16px; }
}
@media (max-width: 360px) {
  .refresh-brand { gap: 6px; }
  .brand.refresh-brand img { width: 164px; }
  .refresh-brand-tagline { padding-left: 31px; }
  .catalog-class-card h3 { padding: 12px; font-size: 22px; }
  .catalog-class-photo, .catalog-class-photo.is-cutout { height: 105px; }
  .vehicle-fact-band { padding-inline: 6px; }
  .vehicle-fact-band dd { font-size: 31px; }
  .vehicle-fact-band dd.is-word { font-size: 20px; }
  .vehicle-workbench .vp-tabs button { font-size: 18px; }
}

/* Reference disclosures use fill and spacing rather than decorative outlines. */
.eq-vehicle-links, .eq-vehicle-links li a, .eq-card, .eq-equipment-icon, .maintenance-bundle-card { border: 0; }
.pc-vehicle { background: var(--recess); border: 0; }
.pc-vehicle-thumb { background: #fff; }
.pc-vehicle-thumb img { mix-blend-mode: normal; }
.cmp-table :is(th, td) { border-color: var(--rule); }

/* Pinned vehicle identities and assembly bands remain distinct from comparison data. */
.pc-grid-head { background: var(--recess); border-bottom: 2px solid var(--accent); box-shadow: none; }
.pc-grid-models > span { padding: 10px 12px; }
.compare-names :is(th, td) { background: var(--recess) !important; box-shadow: none; }
.compare-vehicle-letter { background: var(--accent); color: var(--accent-foreground); }
.compare-vehicle-identity > .compare-maker { color: var(--muted-foreground); }
.compare-vehicle-identity > .compare-model { font-weight: 700; }
.pc-category-heading, .compare-section th {
  --foreground: #edf0e7; --accent-ink: #ff791f;
  min-height: 44px; padding: 10px 14px; border: 0; background: #243021; color: var(--foreground);
}
.pc-category-heading, .compare-section-title { font: 600 20px/1.2 var(--font-label); letter-spacing: .06em; text-transform: uppercase; }
.pc-category-heading .vp-type-icon { color: var(--accent-ink); }
.pc-category-heading small, .compare-section-count { padding: 3px 7px; background: #edf0e7; color: #243021; font: 500 var(--text-caption)/1.3 var(--font-body); letter-spacing: 0; text-transform: none; }
@media (max-width: 760px) {
  .pc-grid-models > span { padding: 10px 8px; }
  .pc-category-heading, .compare-section th { padding: 10px 12px; }
  .pc-category-heading, .compare-section-title { font-size: 18px; }
}

/* Raise reading and control text by one 2px step. Keep title roles on their
   original scale, including headings that use a reading token or utility. */
:root {
  --title-text-xs: .75rem; --text-xs: calc(var(--title-text-xs) + 2px);
  --title-text-sm: .875rem; --text-sm: calc(var(--title-text-sm) + 2px);
  --title-text-base: 1rem; --text-base: calc(var(--title-text-base) + 2px);
  --title-text-lg: 1.125rem; --text-lg: calc(var(--title-text-lg) + 2px);
  --title-text-xl: 1.25rem; --text-xl: calc(var(--title-text-xl) + 2px);
  --title-text-2xl: 1.5rem; --text-2xl: calc(var(--title-text-2xl) + 2px);
  --title-text-3xl: 1.875rem; --text-3xl: calc(var(--title-text-3xl) + 2px);
  --title-text-4xl: 2.25rem; --text-4xl: calc(var(--title-text-4xl) + 2px);
}
:is(h1, h2, h3, h4, h5, h6, .figure-title, .index-card > b, .latest-card > b,
    .home-paths strong, .bench-title strong, .tool-directory strong,
    .catalog-brand-entry strong, .catalog-brand-initial, .catalog-brand-grid a,
    .vehicle-connection-name b, .article-index-text b, .home-class-title,
    .src-title-link, .facet-group-title, .compare-tray-title, .vp-result-heading,
    .pinion-curve-axis-title, .assistant-results-heading, .assistant-related-heading,
    .vh-group-head, .vp-group-head, .pc-category-heading, .compare-section-title) {
  --text-micro: var(--title-text-micro);
  --text-tiny: var(--title-text-tiny);
  --text-mini: var(--title-text-mini);
  --text-caption: var(--title-text-caption);
  --text-small: var(--title-text-small);
  --text-ui: var(--title-text-ui);
  --text-ui-lg: var(--title-text-ui-lg);
  --text-body-sm: var(--title-text-body-sm);
  --text-body: var(--title-text-body);
  --text-lead: var(--title-text-lead);
  --text-xs: var(--title-text-xs);
  --text-sm: var(--title-text-sm);
  --text-base: var(--title-text-base);
  --text-lg: var(--title-text-lg);
  --text-xl: var(--title-text-xl);
  --text-2xl: var(--title-text-2xl);
  --text-3xl: var(--title-text-3xl);
  --text-4xl: var(--title-text-4xl);
}

/* Applied filters and missing-data feedback stay separate in compact catalog layouts. */
.vehicle-index > :is(.index-unrecorded, .index-empty) { margin: 0; line-height: 1.5; }
.vehicle-index > .index-picked { align-items: center; }
.vehicle-index > .index-picked > li { min-width: 0; max-width: 100%; }
.vehicle-index > .index-picked button { min-height: 36px; height: auto; padding-block: 6px; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; }
/* Padding keeps the gap inside the chip row even in block layout and across wrapped rows. */
.catalog-browse-page .catalog-index > .index-picked { margin: 0; padding-bottom: 16px; }
.catalog-browse-page .catalog-index > .index-unrecorded { margin: 0; padding-bottom: 12px; }
.catalog-browse-page .index-grid > li, .catalog-browse-page .index-card { min-width: 0; }
.catalog-browse-page .index-card > :is(b, small, .index-card-maker, .index-tags) { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .catalog-browse-page .catalog-intro h1 { margin-bottom: 2px; }
  .catalog-browse-page .catalog-index > .index-bar { margin-top: 10px; padding-top: 8px; }
  .catalog-paged .index-controls :is(.index-makers-button, .index-saved) { height: auto; padding-block: 6px; white-space: normal; flex-wrap: wrap; align-content: center; }
  .catalog-paged .index-controls .index-makers-button .facet-value { position: static; inset: auto; flex: none; }
  .catalog-browse-page .index-card > b { white-space: normal; text-wrap: wrap; }
}

/* Motion follows interactions and real loading state. No content is hidden for scroll reveals. */
.search-activity { display: flex; align-items: center; gap: 10px; margin: 10px 0; color: var(--muted-foreground); font-size: var(--text-small); line-height: 1.4; }
.search-activity-signal { display: inline-flex; flex: none; align-items: center; gap: 3px; width: 18px; height: 18px; color: var(--accent-ink); }
.search-activity-signal i { width: 3px; height: 14px; background: currentColor; transform-origin: center; }
.search-activity-signal i:nth-child(2) { height: 18px; }
.catalog-search-list .search-activity { padding: 8px 12px; margin: 0; }
.home-hero .search-activity { color: #bec8b6; }
@media (prefers-reduced-motion: no-preference) {
  .search-activity-signal i { animation: search-signal 1s ease-in-out infinite; }
  .search-activity-signal i:nth-child(2) { animation-delay: .12s; }
  .search-activity-signal i:nth-child(3) { animation-delay: .24s; }
  .search-submit-spinner { animation: search-turn .85s linear infinite; }
  .catalog-search-list, .header-search-dialog[open] { animation: search-discover-in .18s ease-out; }
  .search-vehicle-results > ul > li { animation: search-result-in .28s ease-out both; }
  .search-vehicle-results > ul > li:nth-child(2) { animation-delay: 30ms; }
  .search-vehicle-results > ul > li:nth-child(3) { animation-delay: 60ms; }
  .search-vehicle-results > ul > li:nth-child(n+4) { animation-delay: 90ms; }
  :is(.home-paths a, .search-vehicle-results a, .latest-row a, .vehicle-connection-name) > svg { transition: transform .18s ease-out; }
  :is(.primary-button, .quiet-button, .vehicle-action-bar button, .vehicle-action-bar a, .catalog-search-list a, [role="tab"]) { transition: background-color .16s ease-out, color .16s ease-out, box-shadow .16s ease-out; }
  :is(.primary-button, .quiet-button):active:not(:disabled) { scale: .98; }
  :is(.home-paths a, .search-vehicle-results a, .latest-row a, .vehicle-connection-name):focus-visible > svg { transform: translateX(3px); }
  @media (hover: hover) and (pointer: fine) {
    :is(.home-paths a, .search-vehicle-results a, .latest-row a, .vehicle-connection-name):hover > svg { transform: translateX(3px); }
    .home-sheet, .vh-support-preview { transition: box-shadow .2s ease-out; }
    .home-sheet:hover { box-shadow: 0 5px 18px #1015100c; }
  }
  @keyframes search-signal { 0%, 100% { transform: scaleY(.4); opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }
  @keyframes search-turn { to { transform: rotate(360deg); } }
  @keyframes search-discover-in { from { opacity: .6; translate: 0 -4px; } }
  @keyframes search-result-in { from { opacity: .45; translate: 0 5px; } }
}

/* Availability is text-labelled so the status remains clear without its color. */
.production-status { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 0; font-size: var(--text-caption); font-weight: 400; line-height: 1.4; color: var(--muted-foreground); background: none; white-space: normal; }
.production-status::before { content: ""; width: 5px; height: 5px; flex: none; border-radius: 50%; background: var(--muted-foreground); }
.production-status.is-listed::before { background: #287046; }
.production-status.is-discontinued::before { background: var(--accent-ink); }
.vh-production-status { margin: 6px 0 0; }
.index-card > .production-status { align-self: flex-start; margin-top: 6px; }
