/* ============================================================
   paultan.org/research — styles
   Native extension of the paultan.org (Breezy) visual language:
   Arial · #f3f3f3 ground · white 10px-radius cards · soft shadows
   · 14px bold titles / 12px grey dates · centered bold section
   headings · #a60f0f red pills.
   ============================================================ */

:root {
  --red:        #a60f0f;
  --red-dark:   #8a0c0c;
  --ink:        #1a1a1a;
  --muted:      #63666f;
  --ground:     #ededed;
  --card-line:  rgba(0, 0, 0, .08);
  --chip-bg:    #f4f4f5;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

/* Desktop lifts inherited (unstyled) reading text a notch; px-sized
   components keep their own size, reading-prose classes are a flat 16px. */
@media (min-width: 980px) {
  body { font-size: 15px; }
}

a { color: inherit; }

img { display: block; max-width: 100%; height: auto; }

.wrap { max-width: 700px; margin: 0 auto; padding-left: 10px; padding-right: 10px; }

/* ── App bar — same black sticky bar as the main site ──── */

.appbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .97);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.appbar-in {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.appbar-logo { line-height: 0; }
.appbar-logo img { width: 104px; height: auto; }

/* mobile: burger left · logo · search field right (badge lives in the drawer) */
.appbar-section { display: none; }
.appbar-nav { display: none; }

.burger {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 40px;
  height: 40px;
  margin-left: -8px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4.5px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.burger span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 1px;
  background: #e9ebed;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* (appbar search removed — a dedicated .search-strip row sits below the bar) */

/* drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(0,0,0,.55);
}
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1002;
  width: 78%;
  max-width: 300px;
  background: #111;
  padding: 18px 20px;
  overflow-y: auto;
  box-shadow: 6px 0 30px rgba(0,0,0,.4);
}
.drawer-brand {
  margin: 4px 0 16px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.drawer-brand img { width: 118px; height: auto; }
.drawer-brand em {
  font-style: normal;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #000;
  background: #fff;
  border-radius: 999px;
  padding: 3px 9px;
  vertical-align: 2px;
  margin-left: 6px;
}
.drawer a {
  display: block;
  padding: 12px 10px;
  margin: 0 -10px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  color: #e9ebed;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.drawer a:active { background: #232323; }
.drawer-back {
  margin-bottom: 14px !important;
  border-bottom: 1px solid #2c2c2c;
  color: #9a9a9a !important;
  font-weight: normal !important;
}
html.drawer-open { overflow: hidden; }

/* Desktop language switcher (the drawer — mobile-only — has the other one) */
.appbar-langs { display: none; }
@media (min-width: 980px) {
  .appbar-langs { display: flex; gap: 4px; margin-left: auto; }   /* flush right, matching the main news site */
  .appbar-langs a {
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    color: #9a9a9a;
    text-decoration: none;
  }
  .appbar-langs a:hover { color: #fff; }
  .appbar-langs a.is-current { color: #fff; background: #2a2a2a; }
}

/* ── Drawer revamp: head/close, language pills, grouped sections ── */
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 12px; }
.drawer-head .drawer-brand { margin: 0; padding: 0; }
.drawer-close {
  -webkit-appearance: none; appearance: none;
  background: none; border: 0;
  color: #9a9a9a; font-size: 26px; line-height: 1;
  padding: 4px 8px; margin-right: -8px; cursor: pointer;
}
.drawer-langs { display: flex; gap: 6px; margin: 0 0 14px; }
.drawer-langs a {
  flex: 1; text-align: center;
  padding: 7px 0; margin: 0;
  font-size: 12.5px; font-weight: bold;
  color: #c9c9c9; background: #1d1d1d;
  border: 1px solid #2c2c2c; border-radius: 8px;
}
.drawer-langs a.is-current { color: #fff; background: #2a2a2a; border-color: #4a4a4a; }
.drawer-eyebrow {
  margin: 16px 0 4px;
  font-size: 10px; font-weight: bold;
  text-transform: uppercase; letter-spacing: .12em;
  color: #7d7d7d;
}
.drawer-brands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 2px; }
.drawer-brands a.drawer-make {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 2px 6px; margin: 0;
  background: #1d1d1d; border-radius: 8px;
}
.drawer-brands img { width: 36px; height: 36px; object-fit: contain; background: #fff; border-radius: 6px; padding: 3px; }
.drawer-brands span { font-size: 11px; font-weight: normal; color: #c9c9c9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.drawer-all { font-size: 12.5px !important; color: #9a9a9a !important; font-weight: normal !important; padding: 8px 10px !important; }
.drawer-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.drawer-chips a {
  display: inline-block; padding: 6px 11px; margin: 0;
  font-size: 12.5px; font-weight: normal;
  color: #d9d9d9; background: #1d1d1d;
  border: 1px solid #2c2c2c; border-radius: 999px;
}
.drawer-cross { margin-top: 18px; padding-top: 8px; border-top: 1px solid #2c2c2c; }
.drawer-cross .drawer-back { border-bottom: 0; margin-bottom: 0 !important; }

/* ── Hero (search-first, wireframe IA dir A) ───────────── */

.hero { padding: 24px 10px 6px; text-align: center; }

.hero-shell { padding-top: 14px; }
.hero-box {
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  padding: 22px 14px 20px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}

.hero-title {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
  line-height: 1.2;
}

.hero-stats {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.hero-sub {
  max-width: 480px;
  margin: 8px auto 0;
  font-size: 14px;
  color: var(--muted);
}
.hero-sub strong { color: var(--ink); }

.hero-search {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin: 16px auto 0;
}
.hero-search-field {
  position: relative;
  flex: 1;
  min-width: 0;
}
.hero-search-field input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  font-size: 16px;          /* ≥16px stops iOS zoom-on-focus */
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  padding: 11px 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  -webkit-appearance: none;
  appearance: none;
}
.hero-search-field input:focus { outline: 0; border-color: var(--red); }

/* Ghost typewriter demo — JS toggles .is-animating on the field wrapper */
.hero-search-ghost {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  max-width: calc(100% - 36px);
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  font-size: 16px;
  line-height: 1;
  color: var(--muted);
  opacity: .68;
}
.hero-search-field.is-animating .hero-search-ghost { display: flex; }

.hero-search-caret {
  flex: 0 0 2px;
  width: 2px;
  height: 1.05em;
  margin-left: 1px;
  background: var(--red);
  animation: hero-search-caret-blink 1s step-end infinite;
}
@keyframes hero-search-caret-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.hero-search button {
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
@media (hover:hover) { .hero-search button:hover { background: var(--red-dark); } }

/* Secondary "Advanced search" button + extra starter chips — desktop only
   (mobile keeps the lean search bar + the 6 existing chips). */
.hero-adv, .hero-chip-desk { display: none; }
@media (min-width: 980px) {
  .hero-adv {
    display: inline-flex;
    align-items: center;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--card-line);
    border-radius: 999px;
    padding: 11px 18px;
    text-decoration: none;
    white-space: nowrap;
  }
  .hero-chip-desk { display: inline-block; }
}
@media (hover:hover) { .hero-adv:hover { border-color: var(--red); color: var(--red); } }

/* ── Search strip: dedicated row below the appbar (all pages except home and
      the search page, which carry their own field). Reuses the .search-bar
      pill; the ghost typewriter rides inside .strip-field. ── */
.search-strip { padding: 12px 0 2px; }
.strip-field { position: relative; flex: 1 1 auto; min-width: 0; }
.strip-field input[type="search"] { width: 100%; }
.search-bar .hero-search-ghost { left: 0; }
.strip-field.is-animating .hero-search-ghost { display: flex; }

/* ── Search-results hero: one cohesive, left-aligned search bar (not the homepage
      centered hero field). Icon + input + Search button share a single pill. ── */
.search-hero { padding-top: 18px; padding-bottom: 2px; text-align: left; }

.search-bar {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 620px;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  padding: 5px 5px 5px 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search-bar:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(166,15,15,.10); }
.search-bar-ico { flex: none; display: flex; margin-right: 10px; color: var(--muted); }
.search-bar input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  font-family: Arial, sans-serif;
  font-size: 16px;               /* ≥16px stops iOS zoom-on-focus */
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  padding: 10px 8px 10px 0;
  -webkit-appearance: none;
  appearance: none;
}
.search-bar input[type="search"]::-webkit-search-decoration,
.search-bar input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-bar input::placeholder { color: var(--muted); }
.search-bar button {
  flex: none;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: 999px;
  padding: 11px 22px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
@media (hover:hover) { .search-bar button:hover { background: var(--red-dark); } }

.search-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.search-chips-label { font-size: 12px; font-weight: bold; color: var(--muted); }
.search-chips .chip-active {
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  background: var(--red);
  border: 1px solid var(--red);
  border-radius: 999px;
  padding: 6px 12px;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
@media (hover:hover) { .search-chips .chip-active:hover { background: var(--red-dark); border-color: var(--red-dark); } }
.search-clear {
  font-size: 12px;
  font-weight: bold;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 6px;
  margin-left: 2px;
}
@media (hover:hover) { .search-clear:hover { color: var(--red); text-decoration: underline; } }

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 13px;
}
.hero-chips a {
  font-size: 12px;
  font-weight: bold;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  padding: 7px 13px;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
@media (hover:hover) { .hero-chips a:hover { color: var(--red); border-color: var(--red); } }
.hero-chips .chip-active,
.hero-chips a.is-demo-active {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}
.hero-chips a.is-demo-active {
  animation: hero-chip-pulse 1.4s ease-out;
}
@keyframes hero-chip-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(200, 16, 46, .4); }
  70%  { box-shadow: 0 0 0 10px rgba(200, 16, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-search-ghost { display: none !important; }
  .hero-chips a.is-demo-active { animation: none; }
}

.err-code {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: bold;
  color: var(--red);
}

/* ── Sections — centered bold headings like the homepage ─ */

.section { padding: 26px 10px 4px; }

.section-tinted {
  margin-top: 26px;
  padding: 4px 0 22px;
  background: transparent;
  border: 0;
}

.section-head {
  display: block;
  text-align: center;
  border: 0;
  padding: 0 0 14px;
  margin: 0;
}

.section-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
}

.section-note {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* right-aligned "view all" link in section heads — desktop only */
.section-link { display: none; }

/* ── Cards — pt-featured-grid idiom ────────────────────── */

.launch-grid,
.coming-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 12px;
}

.card { min-width: 0; position: relative; }
/* "+ Compare" button floated over the card's top-right, above the card-link */
.card-cb-btn { position: absolute; top: 8px; right: 8px; z-index: 3; background: rgba(255,255,255,.94); backdrop-filter: blur(2px); }

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  transition: box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
@media (hover:hover) {
  .card-link:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.06); }
  .card-link:hover .card-title { color: var(--red); }
}
.card-link:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

.card-media {
  margin: 0;
  aspect-ratio: 16 / 9;
  background: #fff;
  overflow: hidden;
  line-height: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule-soft, #f0f0f0);
}
.card-media img { width: 100%; height: 100%; object-fit: contain; }

.card-noimg {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ececec, #f6f6f6);
}

.card-body { padding: 10px 12px 12px; }

.card-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
}

/* "Launched …" line inside model cards is hidden everywhere (make page + homepage). */
.card-date { display: none; }

.card-title {
  margin: 0 0 4px;
  font-size: 17px;          /* matches the Latest-news content titles (.pt-search-result-title) */
  line-height: 1.3;
  font-weight: bold;
  color: var(--ink);
  transition: color .15s ease;
}
@media (max-width: 560px) {
  .card-title { font-size: 15px; }
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 6px;
}

.card-gen, .card-chip { font-size: 11px; color: var(--muted); }
.card-chip::before { content: "· "; }
/* Powertrain badge (EV/Hybrid/PHEV) — leads the meta, coloured so it reads at a
   glance; pure ICE models show none. The first meta item drops the "· " prefix. */
.card-fuel { font-size: 11px; font-weight: bold; }
.card-fuel-ev { color: #0a7d3f; }
.card-fuel-hybrid, .card-fuel-phev { color: #16808a; }
.card-meta > :first-child::before { content: none; }

.card-price {
  margin: 0;
  font-size: 13px;
  font-weight: bold;
  color: var(--ink);
}
.card-price-tba { color: var(--muted); font-weight: normal; }

.chip-coming {
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  padding: 3px 9px;
}
.chip-offsale {   /* discontinued models: muted, not alarming — the specs still matter to used buyers */
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  background: #f0f0f0;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  padding: 2px 8px;
}

/* homepage launches: show only the first 4 cards on mobile */
.launch-grid-home .card:nth-child(n+5) { display: none; }
@media (min-width: 700px) {
  .launch-grid-home .card:nth-child(n+5) { display: block; }
}

/* lead card spans both columns, bigger text */
.card-lead { grid-column: 1 / -1; }
.card-lead .card-title { font-size: 18px; }
.card-lead .card-price { font-size: 15px; }
.card-lead .card-body { padding: 12px 14px 14px; }

/* ── Chip + tile indexes — pt-tag-view-all idiom ───────── */

.chip-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  background: none;
  border: 0;
}

.chip-grid-loose { grid-template-columns: repeat(2, 1fr); }

.chip-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  -webkit-tap-highlight-color: transparent;
}
@media (hover:hover) {
  .chip-link:hover span { color: var(--red); }
}
.chip-link:active { transform: translateY(1px); }
.chip-link em {
  font-size: 12px;
  font-style: normal;
  font-weight: normal;
  color: var(--muted);
}

.tile-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tile-link {
  display: block;
  padding: 14px 12px;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  -webkit-tap-highlight-color: transparent;
}
@media (hover:hover) {
  .tile-link:hover strong { color: var(--red); }
}
.tile-link:active { transform: translateY(1px); }
.tile-logo, .tile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin-bottom: 8px;
}
.tile-logo img { max-height: 40px; max-width: 76px; width: auto; height: auto; }
.tile-icon img { max-height: 34px; width: auto; }

.chip-logo {
  flex: none;
  width: 26px;
  max-height: 26px;
  object-fit: contain;
  align-self: center;
}

/* Make page — left-aligned logo + title lockup (wireframe screen 2) */
.make-hero { text-align: left; }
.make-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.make-head-logo {
  flex: none;
  width: 76px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  padding: 8px;
}
.make-head-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.make-head-text { min-width: 0; }
.make-head .hero-title { margin: 0; }
.make-head .hero-stats { margin: 4px 0 0; }

/* ── Make page: overview + facts ───────────────────────── */
.make-intro { padding-top: 6px; }
.make-overview {
  margin: 0;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}
.make-overview strong { font-weight: bold; }
/* when the note introduces a card grid (make page "no longer on sale"), give the cards room */
.make-overview + .launch-grid { margin-top: 16px; }

.make-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--rule-soft, #f0f0f0);
}
.make-facts > div { min-width: 0; flex: 0 1 auto; padding-right: 14px; }
.make-facts > div + div { border-left: 1px solid var(--rule-soft, #f0f0f0); padding-left: 14px; }
.make-facts dt { font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.make-facts dd { margin: 2px 0 0; font-size: 13px; font-weight: bold; color: var(--ink); }
.make-facts dd a { color: var(--red); text-decoration: none; }
@media (hover:hover) { .make-facts dd a:hover { text-decoration: underline; } }
@media (max-width: 560px) {
  .make-facts > div { flex: 1 1 45%; padding: 0; }
  .make-facts > div + div { border-left: 0; padding-left: 0; }
}

/* ── Brand news — matches Breezy WP theme search results ─ */
.pt-search-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.pt-search-result {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  box-sizing: border-box;
}
@media (max-width: 700px) {
  .pt-search-results { grid-template-columns: 1fr; }
  .pt-search-results .pt-search-result:nth-child(n+5) { display: none; }   /* 4 on mobile, 6 on desktop */
}
.pt-search-result-body { flex: 1 1 auto; min-width: 0; }
.pt-search-result-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.4;
  color: #666;
}
.pt-search-result-cat {
  color: #a60f0f;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .3px;
  font-size: 11px;
  text-decoration: none;
}
.pt-search-result-sep { color: #bbb; }
.pt-search-result-time { color: #666; }
.pt-search-result-title {
  margin: 0;
  padding: 0;
  font-size: 17px;
  line-height: 1.3;
  font-weight: bold;
  color: #393a3b;
}
.pt-search-result-title a { color: #393a3b; text-decoration: none; }
@media (hover:hover) { .pt-search-result-title a:hover { color: var(--red); } }
.pt-search-result-thumb {
  flex: 0 0 144px;
  width: 144px;
  aspect-ratio: 40 / 21;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
  display: block;
}
.pt-search-result-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px) {
  .pt-search-result-thumb { flex: 0 0 120px; width: 120px; }
  .pt-search-result-title { font-size: 15px; }
}

/* ── FAQ accordion ─────────────────────────────────────── */
.faq { background: #fff; border: 1px solid var(--card-line); border-radius: 10px; overflow: hidden; }
.faq-item + .faq-item { border-top: 1px solid var(--rule-soft, #f0f0f0); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: bold;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--muted); font-weight: bold; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0; padding: 0 16px 14px; font-size: 16px; color: var(--ink); line-height: 1.6; }

.make-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}
.make-chip {
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: bold;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
a.make-chip { display: inline-block; text-decoration: none; }   /* EV-hub brand chips are links, not filter buttons */
.make-chip em { font-style: normal; font-weight: normal; color: var(--muted); }
.make-chip.is-active { color: #fff; background: var(--red); border-color: var(--red); }
.make-chip.is-active em { color: rgba(255,255,255,.75); }
@media (hover:hover) { .make-chip:not(.is-active):hover { border-color: var(--red); color: var(--red); } }

.tile-link strong {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
  transition: color .15s ease;
}
.tile-link em {
  font-size: 12px;
  font-style: normal;
  color: var(--muted);
}

/* ── Search results layout: rail + grid/list (wireframe) ── */

.results-wrap { padding-top: 16px; }
.filter-rail { display: none; }

.mob-filters {
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
}
.mob-filters summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: bold;
  -webkit-tap-highlight-color: transparent;
}
.mob-filters summary::-webkit-details-marker { display: none; }
.mob-filters summary::after { content: " ▾"; color: var(--muted); }
.mob-filters[open] summary::after { content: " ▴"; }
.mob-filters-body { padding: 0 14px 14px; border-top: 1px solid var(--card-line); }

.frail-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 12px 0 2px;
  font-size: 14px;
}
.frail-head a { font-size: 12px; font-weight: bold; color: var(--red); text-decoration: none; }

.frail-group { margin-top: 2px; }
.frail-label {
  margin: 0 0 7px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

/* accordion groups */
.frail-acc { border-top: 1px solid var(--rule-soft, #f0f0f0); }
.frail-acc:first-of-type { border-top: 0; }
.frail-acc > summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  -webkit-tap-highlight-color: transparent;
}
.frail-acc > summary::-webkit-details-marker { display: none; }
.frail-acc > summary::after {
  content: "▾";
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
}
.frail-acc[open] > summary::after { content: "▴"; }
.frail-acc > summary i {
  font-style: normal;
  color: var(--red);
  font-size: 8px;
  line-height: 1;
}
.frail-acc .frail-options, .frail-acc .frail-price { padding-bottom: 12px; }
.frail-options { list-style: none; margin: 0; padding: 0; }
.frail-options li + li { margin-top: 2px; }
/* long lists (all 51 makes): show ~8 rows, scroll for the tail */
.frail-scroll { max-height: 264px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
/* rows normally bleed 6px past the list for the hover pill (margin 0 -6px);
   inside a scroll container that negative margin reads as x-overflow */
.frail-scroll .frail-opt { margin: 0; }
.frail-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  margin: 0 -6px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
@media (hover:hover) { .frail-opt:hover { background: var(--chip-bg); } }
.frail-box {
  flex: none;
  width: 15px;
  height: 15px;
  border: 1.5px solid #b9bcc2;
  border-radius: 4px;
  background: #fff;
  position: relative;
}
.frail-opt em {
  margin-left: auto;
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
}
.frail-zero { opacity: .42; }
.frail-opt.is-active { font-weight: bold; }
.frail-opt.is-active .frail-box { background: var(--red); border-color: var(--red); }
.frail-opt.is-active .frail-box::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 10px;
}

/* ── Search advisor note (async, above the results) ─────── */
#ptr-advisor { margin: 0 0 16px; }
.advisor-box {
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  animation: advisor-in .25s ease-out;
}
@keyframes advisor-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .advisor-box { animation: none; } }
/* loading skeleton: shimmer lines + staged status; collapses on no-answer */
.advisor-box-leaving { opacity: 0; transition: opacity .2s ease; }
.advisor-skel-line {
  display: block;
  height: 12px;
  margin: 7px 0;
  border-radius: 6px;
  background: linear-gradient(90deg, #eee 25%, #f7f7f7 45%, #eee 65%);
  background-size: 200% 100%;
  animation: advisor-shimmer 1.3s linear infinite;
}
.advisor-skel-line-short { width: 62%; }
@keyframes advisor-shimmer {
  from { background-position: 180% 0; }
  to   { background-position: -20% 0; }
}
.advisor-status {
  margin: 9px 0 0;
  font-size: 12px;
  color: var(--muted);
  animation: advisor-pulse 1.4s ease-in-out infinite;
}
@keyframes advisor-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .45; }
}
@media (prefers-reduced-motion: reduce) {
  .advisor-skel-line, .advisor-status { animation: none; }
}

.advisor-eyebrow {
  margin: 0 0 5px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--red);
}
.advisor-note { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink); }
.advisor-stories { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.advisor-story {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
.advisor-story em {
  flex: none;
  font-style: normal;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--red);
}
.advisor-story span {
  font-weight: bold;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (hover:hover) { .advisor-story:hover span { color: var(--red); text-decoration: underline; } }

.results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 2px 0 12px;
}
.results-head h1 { margin: 0; font-size: 18px; }
.results-q { font-weight: normal; color: var(--muted); font-size: 15px; }

.results-tools { display: flex; align-items: center; gap: 14px; }

.sort-links { font-size: 12px; color: var(--muted); }
.sort-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 6px;
}
.sort-links a.is-active { color: #fff; background: var(--ink); }

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--card-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.view-toggle a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 30px;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.view-toggle a.is-active { color: #fff; background: var(--ink); }

.results-capped { margin: 0 0 12px; font-size: 12px; color: var(--muted); }

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 22px;
}
.pager a {
  display: inline-block;
  min-width: 34px;
  padding: 8px 10px;
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}
.pager a.is-active { color: #fff; background: var(--red); border-color: var(--red); }
@media (hover:hover) { .pager a:hover:not(.is-active) { color: var(--red); } }
.pager-gap { color: var(--muted); }
.pager-step { white-space: nowrap; }

.card-match, .match-note {
  display: block;
  margin: 5px 0 0;
  font-size: 11px;
  color: var(--red);
}

.frail-price {
  display: flex;
  align-items: center;
  gap: 6px;
}
.frail-price input {
  width: 0;
  flex: 1;
  font-family: Arial, sans-serif;
  font-size: 13px;
  padding: 7px 9px;
  border: 1px solid var(--card-line);
  border-radius: 7px;
  -webkit-appearance: none;
  appearance: none;
}
.frail-price input:focus { outline: 0; border-color: var(--red); }
.frail-price span { color: var(--muted); }
.frail-price button {
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 7px;
  padding: 8px 11px;
  cursor: pointer;
}

.grid-results { /* cols inherited from .launch-grid (2 mobile) */ }

/* ── Search result rows (wireframe IA results dir B) ───── */

.result-list { display: flex; flex-direction: column; gap: 8px; }

.result-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  -webkit-tap-highlight-color: transparent;
}
@media (hover:hover) {
  .result-row:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
  .result-row:hover .result-info strong { color: var(--red); }
}
.result-row:active { transform: translateY(1px); }

.result-thumb {
  flex: none;
  width: 128px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #eee;
  line-height: 0;
}
.result-thumb img { width: 100%; height: 100%; object-fit: cover; }

.result-info { flex: 1; min-width: 0; }
.result-info strong {
  display: block;
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink);
  transition: color .15s ease;
}
.result-info small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
}

.result-price { flex: none; text-align: right; }
.result-price b { display: block; font-size: 13px; color: var(--ink); }
.result-price small { display: block; margin-top: 3px; font-size: 12px; color: var(--red); font-weight: bold; }
.result-price small.offsale { color: var(--muted); font-weight: normal; }

.empty-note {
  margin: 0;
  padding: 22px 14px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
}
.empty-note a { color: var(--red); font-weight: bold; }

/* "All N brands →" — pt-tag-view-all idiom */
.view-all {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 13px 16px;
  text-align: center;
  background: var(--chip-bg);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--card-line);
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}
@media (hover:hover) { .view-all:hover { color: var(--red); } }

.section-head-left { text-align: left; }
.section-head-left h2 { font-size: 17px; }

/* ── Breadcrumbs ───────────────────────────────────────── */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  /* Use longhand margin/padding only — shorthands on `.crumbs` or `.wrap`
     clobber each other's horizontal inset or vertical offset. */
  margin-bottom: 14px;
  padding-top: 18px;
  font-size: 12.5px;
  color: var(--muted);
}
.crumbs a { color: var(--muted); text-decoration: none; font-weight: bold; }
@media (hover:hover) { .crumbs a:hover { color: var(--red); text-decoration: underline; } }
.crumbs-sep { color: #c2c2c2; font-weight: normal; }
.crumbs-here, .crumbs span:not(.crumbs-sep) { color: var(--ink); font-weight: bold; }

.hero-stats a { color: var(--muted); }
@media (hover:hover) { .hero-stats a:hover { color: var(--red); } }

/* interior heroes without breadcrumbs above */
.hero-compact { padding-top: 18px; }
.crumbs + .hero { padding-top: 0; }
.crumbs + .search-hero { padding-top: 0; }

.status-banner {
  display: inline-block;
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: bold;
  color: var(--muted);
  background: var(--chip-bg);
  border: 1px solid var(--card-line);
  border-radius: 999px;
  padding: 6px 14px;
}
.status-banner-coming { color: #fff; background: var(--red); border-color: var(--red); }
/* breathing room when the banner follows the descriptor/share-strip row */
.mi-subrow + .status-banner { margin-top: 12px; }

/* ── Model page hero + gallery ─────────────────────────
   Layout via grid-template-areas so DOM order (featured, gallery, info)
   reflows per breakpoint:
     mobile  : featured → gallery teaser → info  (single column)
     desktop : [featured | info info info] then gallery full-width below
*/

.model-layout {
  display: grid;
  grid-template-columns: 1fr;
  /* mobile: info card first (name/price/monthly above the fold — matches the
     spin-page order), then the gallery teaser; no featured hero */
  grid-template-areas: "info" "gallery";
  gap: 18px 26px;
  align-items: start;
}
.model-featured { grid-area: feat; min-width: 0; display: none; }   /* hidden on mobile */
.model-gallery  { grid-area: gallery; min-width: 0; }
.model-info     { grid-area: info; min-width: 0; }

/* When the generation has a 360 spin, the featured slot returns as the hero
   (mobile: info card first — compact on spin pages — then the spin, then the
   gallery teaser). */
.model-layout.has-spin { grid-template-areas: "info" "feat" "gallery"; }
.model-layout.has-spin .model-featured { display: block; }

.model-hero {
  display: block;
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--card-line);
  background: #eee;
  line-height: 0;
}
.model-hero img { width: 100%; height: 100%; object-fit: cover; }
.model-hero .card-noimg { display: block; width: 100%; height: 100%; }
.model-hero-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  background: rgba(0, 0, 0, .6);
  border-radius: 999px;
  padding: 4px 10px;
  line-height: 1.2;
}

/* gallery thumbnail rows */
.gallery-row { display: grid; gap: 8px; }
.gallery-row + .gallery-row { margin-top: 8px; }
.gallery-row-4 { grid-template-columns: repeat(2, 1fr); }   /* mobile teaser: 2×2 */
.gallery-row-8 { display: none; }                            /* hidden on mobile */

.gshot {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
}
.gshot img { width: 100%; height: 100%; object-fit: cover; transition: opacity .15s ease; }
@media (hover:hover) { .gshot:hover img { opacity: .85; } }
/* in-grid used-car unit: spans 2x2 photo cells, holds four composite tiles */
.gal-uc { grid-column: span 2; grid-row: span 2; position: relative; background: #f6f6f6; border-radius: 8px; padding: 6px; }
.gal-uc-in { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; height: 100%; }
.gal-uc-tile { display: block; min-height: 0; border-radius: 6px; overflow: hidden; background: #fff; }
.gal-uc-tile img { width: 100%; height: 100%; object-fit: cover; }
.gal-uc-chip { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 3px 9px; background: var(--red, #d0021b); color: #fff; font-size: 11px; font-weight: bold; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
/* best-of category pick rows */
.bp-list { list-style: none; margin: 0; padding: 0; }
.bp-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 9px 0; border-top: 1px solid var(--rule-soft, #f0f0f0); }
.bp-list li:first-child { border-top: 0; }
.bp-cat { flex: 0 0 100%; font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
@media (min-width: 640px) { .bp-cat { flex: 0 0 220px; } }
.bp-car { font-size: 15px; font-weight: bold; }
.bp-car a { color: var(--ink); text-decoration: none; }
@media (hover:hover) { .bp-car a:hover { color: var(--red); } }
.bp-fact { margin-left: auto; font-style: normal; font-weight: bold; color: var(--red); font-variant-numeric: tabular-nums; }
.bp-overall { background: #fafafa; border-radius: 8px; padding: 12px 10px !important; margin-top: 6px; border-top: 0 !important; }
.bp-reason { flex: 0 0 100%; margin: 2px 0 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
@media (min-width: 640px) { .bp-overall .bp-reason { margin-left: 230px; } }
.mi-calc-link, .vd-loan-link { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: bold; color: var(--red, #d0021b); text-decoration: none; }

/* "View all N photos →" link below the model-page teaser */
.gallery-all-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: bold;
  color: var(--red);
  text-decoration: none;
}
.gallery-all-link:hover { text-decoration: underline; }

/* Dedicated gallery page: dense responsive thumbnail grid */
.gallery-all-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* dense: the 2x2 used-car units land mid-flow; photos backfill any gap */
  grid-auto-flow: dense;
  gap: 8px;
}
@media (min-width: 560px) { .gallery-all-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .gallery-all-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; } }

/* "+N more" overlay on the last gallery thumbnail.
   gshot-more-mobile sits on row A's last cell (mobile teaser);
   gshot-more-desktop sits on row B's last cell (desktop 8-up).
   Each shows only at its breakpoint. */
.gshot-more {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  background: rgba(0, 0, 0, .5);
}
.gshot-more small {
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .85;
}
.gshot-more-desktop { display: none; }   /* desktop overlay hidden on mobile */

/* ── Model header card ─────────────────────────────────── */

.model-info {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  padding: 18px;
}

/* Gallery page hero — same solid card language as the model info panel. */
.gallery-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  padding: 18px;
  text-align: left;
}
.gallery-hero .hero-title { font-size: 22px; }
.gallery-hero .hero-stats a { color: var(--muted); }

/* Long-gallery section nav — a full-width sticky bar directly under the app bar
   (top:56px) with scroll-spied Exterior/Interior tabs + back-to-top. Kept at the
   TOP on purpose: the compare tray floats at the bottom, so a bottom pill clashed
   with it. Hidden while the photo viewer is open. */
.gal-secnav {
  position: sticky;
  top: 56px;                    /* directly under the sticky .appbar (height 56) */
  z-index: 500;                 /* under the app bar (1000), over the grid */
  margin-top: 12px;             /* gap from the hero card in flow; when stuck this
                                   margin tucks under the app bar so there's no gap */
}
.viewer-open .gal-secnav { display: none; }   /* lightbox up → hide */
/* Contained rounded bar (not a full-width white strip) so it aligns with the
   hero card + grid; the grid is contained too, so nothing peeks past its sides
   when it sticks. Chrome lives on the .wrap inner. */
.gal-secnav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;               /* fills the .wrap content box → same 1040px width,
                                   inset, as the hero card + grid (not the wider .wrap) */
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
}
.gal-secnav-tabs { display: flex; gap: 2px; }
.gal-secnav-tabs a {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  color: var(--muted);
  text-decoration: none;
}
.gal-secnav-tabs a.is-active { color: var(--ink); background: var(--ground); }
.gal-secnav-tabs a em { font-style: normal; font-weight: normal; color: var(--muted); margin-left: 4px; }
.gal-secnav-top {
  border: 0; background: transparent; cursor: pointer;
  font-size: 18px; line-height: 1; color: var(--muted); padding: 8px 10px;
}
@media (hover: hover) {
  .gal-secnav-tabs a:not(.is-active):hover, .gal-secnav-top:hover { color: var(--red); }
}

/* Section jump targets clear the app bar (56) + the sticky section nav (~45). */
#exterior, #interior { scroll-margin-top: 104px; }

.mi-top { display: flex; flex-direction: column; gap: 14px; }

/* make + model on one line; make is a muted prefix link */
.model-info .hero-title { margin: 0; line-height: 1.1; }
.mi-make { color: var(--muted); text-decoration: none; font-weight: bold; }
@media (hover:hover) { .mi-make:hover { color: var(--red); } }
.mi-gen { color: var(--muted); font-weight: normal; }

.model-descriptor {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.model-descriptor a { color: var(--muted); }
@media (hover:hover) { .model-descriptor a:hover { color: var(--red); } }

/* ── Price + monthly: two balanced stat figures ─────────── */
.mi-price { min-width: 0; position: relative; }

.mi-figures { display: flex; flex-direction: column; gap: 14px; }   /* mobile: stacked */
.mi-fig { min-width: 0; }
.mi-fig + .mi-fig { padding-top: 14px; border-top: 1px solid var(--rule-soft, #f0f0f0); }

.mi-fig-label {
  display: block;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.mi-fig-val { display: block; margin-top: 3px; font-size: 22px; font-weight: bold; line-height: 1.1; white-space: nowrap; }
/* Let a long price RANGE wrap (only breaks at the en-dash — the RM numbers have
   no break points, so a single price stays on one line) instead of overflowing
   its column into the monthly figure (e.g. Lexus LX RM1,540,000–RM1,715,000). */
.mi-fig-price { color: var(--ink); white-space: normal; }
/* Two-colour system: ink for facts (whole price range, one colour), red only
   for the single accent (monthly). Hierarchy comes from size, not more colours. */
.mi-fig-price em { font-style: normal; font-weight: bold; color: inherit; }
.mi-fig-mo { display: flex; align-items: center; gap: 8px; }
.mi-mo-amount { color: var(--red); }
.mi-mo-amount small { font-size: 13px; font-weight: bold; color: inherit; }
.mi-fig-sub { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.mi-fig-sub a { color: var(--red); font-weight: bold; text-decoration: none; }

/* Mobile: compact hero card. Est. monthly collapses to ONE line (label ·
   amount · calculator · terms) and paddings/dividers tighten — the card was
   pushing the actual car photo below the fold. Desktop (≥900px) untouched. */
@media (max-width: 899.98px) {
  .model-info { padding: 14px 16px; }
  .mi-top { gap: 10px; }
  .mi-figures { gap: 10px; }
  .mi-fig + .mi-fig { padding-top: 10px; }
  .mi-fig-val { font-size: 20px; }
  .mi-monthly { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
  /* Label is redundant next to the red "RM x/mo" + terms — visually hidden
     (not display:none) so screen readers keep the "Est. monthly" context;
     the "est." prefix below preserves the estimate cue for sighted users. */
  .mi-monthly .mi-fig-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
  .mi-monthly .mi-fig-val { margin-top: 0; font-size: 15px; }
  .mi-monthly .mi-mo-amount small { font-size: 11px; }
  .mi-monthly .mi-calc-btn { width: 26px; height: 26px; border-radius: 6px; }
  .mi-monthly .mi-fig-sub { margin: 0 0 0 auto; font-size: 11px; white-space: nowrap; }
  .mi-monthly .mi-fig-sub::before { content: "est. "; }
  .model-keyspecs { margin-top: 10px; padding-top: 8px; }
  .model-keyspecs .spec-row { padding-right: 14px; }
  .mi-runcosts { margin-top: 10px; padding-top: 8px; }
  /* AI-studio featured shot beside the title — mobile only (desktop has the
     spin viewer / gallery right there). */
  .mi-head { display: flex; align-items: center; gap: 12px; }
  .mi-head-text { min-width: 0; }
}
@media (min-width: 900px) {
  .mi-thumb { display: none; }
}
.mi-thumb {
  flex: none;
  width: 104px;
  height: 66px;
  object-fit: cover;
  border: 1px solid var(--card-line);
  border-radius: 8px;
  background: #fff;
}

/* Trim chips — jump straight to the variant page */
.mi-varchips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
}
.mi-varchips a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 10px;
  background: var(--chip-bg);
  border: 1px solid var(--card-line);
  border-radius: 999px;
  font-size: 12px;
  text-decoration: none;
  color: var(--ink);
}
.mi-varchips b { font-weight: bold; }
.mi-varchips em { font-style: normal; color: var(--muted); white-space: nowrap; }
.mi-varchips .mi-varchips-more { color: var(--red); font-weight: bold; }
@media (hover:hover) { .mi-varchips a:hover { border-color: var(--ink); } }

/* Running-costs chips */
.mi-runcosts { display: flex; flex-wrap: wrap; gap: 6px; }
.rc-chip {
  display: inline-flex;
  padding: 3px 9px;
  background: var(--chip-bg);
  border: 1px solid var(--card-line);
  border-radius: 999px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

/* Sticky mini-bar — mobile only; research.js shows it when the hero card
   scrolls out of view and pins it just below the sticky appbar. */
.mi-stickybar {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 900;             /* under the appbar (1000) and drawer */
  background: #fff;
  border-bottom: 1px solid var(--card-line);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.mi-stickybar-in {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;   /* match .appbar-in — the two bars read as one header block */
}
.mi-sb-name {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.mi-sb-price { flex: none; font-size: 12px; color: var(--muted); white-space: nowrap; }
.mi-sb-cta {
  flex: none;
  margin-left: auto;
  padding: 5px 12px;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
}
@media (min-width: 900px) { .mi-stickybar { display: none; } }

.mi-calc-btn {
  -webkit-appearance: none; appearance: none;
  flex: none;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted);
  background: var(--chip-bg);
  border: 1px solid var(--card-line);
  border-radius: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
@media (hover:hover) { .mi-calc-btn:hover { color: var(--red); border-color: var(--red); } }
.mi-calc-btn[aria-expanded="true"] { color: #fff; background: var(--red); border-color: var(--red); }

.mi-price-tba { font-size: 20px; color: var(--ink); }

/* calculator popover */
.mi-calc-pop {
  margin-top: 12px;
  width: 100%;
  max-width: 280px;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  box-shadow: 0 6px 20px -8px rgba(0,0,0,.3);
  padding: 12px 14px;
  text-align: left;
}
.mi-calc-pop label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 10px;
}
.mi-calc-field {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--card-line);
  border-radius: 8px;
  padding: 0 10px;
}
.mi-calc-field:focus-within { border-color: var(--red); }
.mi-calc-field input {
  width: 56px;
  border: 0;
  padding: 8px 0;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: bold;
  text-align: right;
  -webkit-appearance: none; appearance: none;
  background: transparent;
}
.mi-calc-field input:focus { outline: 0; }
.mi-calc-field i { font-style: normal; font-size: 12px; color: var(--muted); }
.mi-calc-disc { margin: 2px 0 0; font-size: 11px; font-weight: normal; color: var(--muted); }

/* spec line — compact "LABEL value" pairs on one wrapping line (one form for
   spin and non-spin pages alike) */
.model-keyspecs {
  display: flex;
  flex-wrap: wrap;
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--rule-soft, #f0f0f0);
}
.model-keyspecs .spec-row {
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  padding: 2px 18px 2px 0;
  border-bottom: 0;
}
.model-keyspecs .spec-row dt {
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
}
.model-keyspecs .spec-row dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: bold;
  text-align: left;
  color: var(--ink);
}

@media (min-width: 900px) {
  /* Standardised header (Paul, 2026-07-17): ONE layout for spin and no-spin —
     info card left, visual right (spin OR press hero), first gallery row under
     the visual so the right column fills to the card's height instead of a
     fixed-ratio image floating in air. 8-up row stays full width below. */
  .model-layout,
  .model-layout.has-spin {
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas:
      "info info feat feat"
      "info info g4 g4"
      "g8 g8 g8 g8";
    align-items: start;
  }
  .model-featured { display: block; }
  .model-gallery { display: contents; }          /* rows become grid items */
  .model-gallery .gallery-row-4 { grid-area: g4; }
  .model-gallery .gallery-row-8 { grid-area: g8; }

  .model-info { padding: 24px 26px; }
  .model-info .hero-title { font-size: 30px; }

  /* card: stacked bands, one left rail; price+monthly side-by-side */
  .mi-top { flex-direction: column; gap: 12px; }
  .mi-price { text-align: left; }
  .mi-figures { flex-direction: row; justify-content: flex-start; gap: 22px; }
  .mi-fig { text-align: left; }
  .mi-fig + .mi-fig { padding-top: 0; border-top: 0; padding-left: 22px; border-left: 1px solid var(--rule-soft, #f0f0f0); }
  .mi-fig-mo { justify-content: flex-start; }
  .mi-fig-val { font-size: 24px; }

  /* descriptor, then Compare/share on its OWN line — always. A one-row
     flex-wrap layout rendered differently per language (EN's long descriptor
     wrapped the actions down, CN's short one kept them beside it — Paul,
     2026-07-17); explicit stacking keeps every locale identical. */
  .mi-subrow { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
  .mi-subrow .model-descriptor, .mi-subrow .mi-cb { margin: 0; }

  .model-descriptor a { white-space: nowrap; }
  .mi-calc-pop { position: absolute; left: 0; top: 100%; z-index: 20; margin-top: 8px; text-align: left; }

  .model-keyspecs .spec-row dd { font-size: 14px; }
  .model-keyspecs .spec-row dt { white-space: nowrap; }   /* "EV RANGE" must not wrap */

  /* show both rows; row A = 4-up, row B = 8-up */
  .gallery-row-4 { grid-template-columns: repeat(4, 1fr); }
  .gallery-row-8 { display: grid; grid-template-columns: repeat(8, 1fr); }
  .gshot-more-mobile { display: none; }    /* row A overlay is mobile-only */
  .gshot-more-desktop { display: flex; }   /* row B overlay shows on desktop */
}

/* ── Photo viewer (Swiper lightbox) ────────────────────── */

html.viewer-open { overflow: hidden; }

.ptr-viewer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #0a0a0a;   /* fully opaque — a 95% overlay let the site header ghost through at the top */
  display: flex;
  align-items: center;
  justify-content: center;
}
/* the display:flex above beats the UA `[hidden]{display:none}` — restore it */
.ptr-viewer[hidden] { display: none; }
.ptr-v-swiper { width: 100%; height: 100%; }
.ptr-v-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 104px;   /* bottom room for the thumbnail strip */
  box-sizing: border-box;
}
.ptr-v-swiper .swiper-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}
.ptr-v-close, .ptr-v-prev, .ptr-v-next {
  position: absolute;
  z-index: 2;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.ptr-v-close {
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
}
.ptr-v-prev, .ptr-v-next {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}
.ptr-v-prev { left: 12px; }
.ptr-v-next { right: 12px; }
.ptr-v-prev.swiper-button-disabled, .ptr-v-next.swiper-button-disabled { opacity: .3; cursor: default; }
@media (hover:hover) {
  .ptr-v-close:hover, .ptr-v-prev:hover, .ptr-v-next:hover { background: rgba(255, 255, 255, .25); }
}
.ptr-v-counter {
  position: absolute;
  bottom: 96px;                 /* sits just above the thumbnail strip */
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 13px;
  color: #fff;
  background: rgba(0, 0, 0, .5);
  border-radius: 999px;
  padding: 5px 14px;
}
/* Zoomed-view thumbnail strip. Scoped under .ptr-viewer to outrank Swiper's
   own `.swiper{position:relative}` (its bundle CSS loads after research.css at
   equal specificity, which otherwise drops the strip into the flex row and
   squashes the main image). */
.ptr-viewer .ptr-v-thumbs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 2;
  height: 72px;
  padding: 0 12px;
  box-sizing: border-box;
}
.ptr-v-thumbs .swiper-slide {
  width: 104px;
  height: 70px;
  opacity: .45;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  transition: opacity .15s;
}
.ptr-v-thumbs .swiper-slide-thumb-active { opacity: 1; box-shadow: 0 0 0 2px #fff; }
.ptr-v-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 560px) {
  .ptr-v-prev, .ptr-v-next { display: none; }   /* swipe on mobile */
  .ptr-viewer .ptr-v-thumbs { height: 56px; }
  .ptr-v-thumbs .swiper-slide { width: 80px; height: 54px; }
  .ptr-v-swiper .swiper-slide { padding-bottom: 84px; }
  .ptr-v-counter { bottom: 78px; }
}

/* ── Variant row: clickable link + inline spec peek ───── */

.variant-block { min-width: 0; }

/* Desktop billboard (980×250 / 980×150 / 970×250 — WP unit sizes).
   COLLAPSED BY DEFAULT (zero footprint — 0-height at its real document
   position, which keeps GPT lazy-load working): the wrapper only gains
   margins when a creative actually renders (.is-filled via slotRenderEnded),
   and the creative's own height expands it. No-fill = nothing, ever.
   Margins are visually symmetric: below-ad 2px + the next .section's 26px
   internal top padding ≈ above-ad 24px + the hero's 4px bottom padding. */
.ad-billboard { display: flex; justify-content: center; margin: 0 auto; overflow: hidden; }
/* BETWEEN-SECTIONS placement (model/variant pages): ~44px of fixed structure
   (section padding + card offset) sits below the creative and ~0 above — all
   the wrapper's margin goes on top; ≈40 above vs ≈44 below reads symmetric. */
.ad-billboard.is-filled { margin: 40px auto 0; overflow: visible; }
/* IN-SECTION placement (compare page: between the verdict card and the picks
   cards — no section structure below) → simple symmetric margins. */
.ad-billboard-insection.is-filled { margin: 26px auto; }
/* VARIANT page: compact hero above (6px visual tail), plain card wrap below
   (24px internal offset) → 24/6 margins ≈ 30px visible both sides. */
.ad-billboard-variant.is-filled { margin: 24px auto 6px; }
/* MODEL editorial sidebar (pt_intext1): the 360px grid column IS the layout —
   the wrapper needs no margins in either state, and the grid handles centering. */
.ad-intext-side, .ad-intext-side.is-filled { margin: 0; }
/* Overview + what's-new two-col: text left, 360px ad sidebar right (desktop
   only — matches the ≥1020px GPT branch that defines pt_intext1). */
.model-ed-aside { display: none; }
.model-ed-stack { margin-top: 14px; }   /* which-variant / verdict boxes stacked below what's-new */
@media (min-width: 1020px) {
  /* fit-content: the column is the creative's width (≤360) when filled and
     collapses to zero on no-fill — no dead 360px strip beside the text. */
  .model-ed-grid { display: grid; grid-template-columns: minmax(0, 1fr) fit-content(360px); gap: 0 28px; align-items: start; }
  /* No fill -> the ad track is already 0; drop the column gap too so the text
     is truly full width (progressive: pre-:has browsers keep a 28px sliver). */
  .model-ed-grid:not(:has(.is-filled)) { column-gap: 0; }
  .model-ed-aside { display: block; }
}
/* BUILDER top slot: FIXED desktop reservation — every add/remove reloads the
   page, and a collapsing slot would shove the toolbar mid-task on each
   rebuild. Band holds whether filled or not; mobile stays collapse-only. */
@media (min-width: 1020px) {
  /* .is-filled variant included at equal+ specificity: the generic
     .ad-billboard.is-filled margin rule was overriding the reserved margins
     ON FILL (24→40 top, 24→0 bottom) — a 16px nudge that defeated the whole
     point of the fixed reservation (Paul, 2026-08-13). */
  .ad-billboard-reserved,
  .ad-billboard-reserved.is-filled { min-height: 250px; margin: 24px auto; overflow: visible; }
}

/* Brand top-sellers line under the make sales chart */
.jpj-topline { margin: 8px 0 4px; font-size: 13px; color: var(--muted); }
.jpj-topline a { color: var(--ink); font-weight: 600; text-decoration: none; }
@media (hover:hover) { .jpj-topline a:hover { color: var(--red); } }

/* Previous-generation shortcut under the variant list */
.prevgen-tip {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.prevgen-tip a { color: var(--ink); font-weight: 600; text-decoration: none; }
@media (hover:hover) { .prevgen-tip a:hover { color: var(--red); } }

/* Previous model years: collapsed reference list of superseded (off-sale)
   model-year rows inside the on-sale generation */
.oldyears { margin-top: 14px; }
.oldyears summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  -webkit-tap-highlight-color: transparent;
}
.oldyears summary::-webkit-details-marker { display: none; }
.oldyears summary::after { content: " ▾"; }
.oldyears[open] summary::after { content: " ▴"; }
@media (hover:hover) { .oldyears summary:hover { color: var(--ink); } }

/* Other-on-sale-generations block: per-gen subheading above each variant list */
.other-gen-group + .other-gen-group { margin-top: 22px; }
.other-gen-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: bold;
}
.other-gen-title a { color: var(--ink); text-decoration: none; }
@media (hover:hover) { .other-gen-title a:hover { color: var(--red); } }
.other-gen-years { font-size: 12px; font-weight: normal; color: var(--muted); }

.variant-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  overflow: hidden;
}

.variant-link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
@media (hover:hover) { a.variant-link:hover .result-info strong { color: var(--red); } }
a.variant-link:active { background: #fafafa; }

/* Variant rows: thumbnail + roomier type (the old 13-14px floated in a
   1100px-wide row; these rows now match the Generations list below). */
.variant-link .result-thumb { width: 96px; border-radius: 8px; }
.variant-link .result-info strong { font-size: 17px; }
.variant-link .result-info small { font-size: 13px; margin-top: 3px; }
.variant-link .result-price b { font-size: 17px; }
.variant-link .result-price small { font-size: 12px; }

/* Mobile: too narrow for thumb+info+price+toggle in one flex row — grid the
   link (thumb left; title then price beside it; meta full-width below) and
   drop the Specs toggle to a full-width strip at the card's bottom. */
@media (max-width: 699px) {
  .variant-row { flex-wrap: wrap; }
  .variant-link {
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-areas:
      "thumb head"
      "thumb price"
      "meta  meta";
    column-gap: 12px;
    row-gap: 2px;
    align-items: start;
  }
  .variant-link .result-thumb { grid-area: thumb; align-self: center; }
  .variant-link .result-info { display: contents; }          /* split title/meta into grid areas */
  .variant-link .result-info strong { grid-area: head; font-size: 16px; }
  .variant-link .result-info small { grid-area: meta; margin-top: 6px; font-size: 12.5px; }
  .variant-link .result-price {
    grid-area: price;
    display: flex;
    align-items: baseline;
    gap: 8px;
    text-align: left;
  }
  .variant-link .result-price b { font-size: 16px; }
  /* bottom strip: Specs (left, fills) then Compare (right) */
  .variant-specs-toggle.is-ready {
    flex: 1 1 auto;
    justify-content: center;
    border-left: 0;
    border-top: 1px solid var(--rule-soft, #f0f0f0);
    padding: 8px 0;
  }
  .variant-cb-toggle {
    flex: none; border-left: 1px solid var(--card-line);
    border-top: 1px solid var(--rule-soft, #f0f0f0);
    padding: 8px 18px;
  }
  /* No per-variant photos → trim name (left) and price (right) share the top
     line, meta full-width below. Tighter, and a clean "trim → price" column
     you can scan down; matches the desktop row. */
  .variant-link.no-thumb {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "head  price"
      "meta  meta";
    align-items: baseline;
    column-gap: 12px;
  }
  .variant-link.no-thumb .result-price {
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 2px;
  }
}
@media (min-width: 700px) {
  .variant-link { gap: 16px; padding: 12px 16px; }
  .variant-link .result-thumb { width: 136px; }
}

.variant-specs-toggle {
  display: none;          /* shown only once JS marks it ready */
  flex: none;
  align-items: center;
  gap: 4px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: var(--muted);
  background: none;
  border: 0;
  border-left: 1px solid var(--card-line);
  padding: 0 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.variant-specs-toggle.is-ready { display: inline-flex; }
.variant-specs-toggle::after { content: "▾"; font-size: 10px; }
.variant-specs-toggle[aria-expanded="true"]::after { content: "▴"; }
@media (hover:hover) { .variant-specs-toggle:hover { color: var(--red); } }

.variant-sheet {
  background: #fff;
  border: 1px solid var(--card-line);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  margin-top: -1px;
  padding: 14px 14px 6px;
}

.spec-sheet { column-gap: 26px; }

.spec-group { margin-bottom: 14px; break-inside: avoid; }
.spec-group h4 {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--red);
}
.spec-group dl { margin: 0; }

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 6px 0;
  border-bottom: 1px solid var(--rule-soft, #f0f0f0);
  font-size: 13px;
}
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { color: var(--muted); flex: none; max-width: 46%; }
.spec-row dd { margin: 0; font-weight: bold; text-align: right; overflow-wrap: anywhere; }
.spec-row dd.spec-tick { color: #3f7d4f; }

@media (min-width: 700px) {
  .spec-sheet { column-count: 2; }
}

.variant-sheet-label {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--red);
}
.spec-highlights { margin: 0; column-gap: 26px; }
@media (min-width: 700px) { .spec-highlights { column-count: 2; } }

.variant-permalink { margin: 10px 0 8px; font-size: 13px; }
.variant-permalink a { color: var(--red); font-weight: bold; text-decoration: none; }
.variant-permalink a:hover { text-decoration: underline; }

/* ── Variant detail page ──────────────────────────────── */

.vd-wrap { padding-top: 14px; }
.vd-main { min-width: 0; }

.vd-sheet {
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  padding: 14px 14px 6px;
}

.vd-price-card {
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  padding: 16px;
  margin-top: 14px;
}
.vd-price-label {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.vd-price { margin: 0; font-size: 26px; font-weight: bold; color: var(--red); }
.vd-price-tba { color: var(--muted); font-size: 20px; }
.vd-price-note { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.vd-monthly {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--card-line);
}
.vd-monthly b { display: block; font-size: 16px; }
.vd-monthly small { font-size: 11px; color: var(--muted); }

.vd-siblings {
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  padding: 14px 16px 16px;
  margin-top: 12px;
}
.vd-siblings ul { list-style: none; margin: 0; padding: 0; }
.vd-siblings li + li { border-top: 1px solid var(--rule-soft, #f0f0f0); }
.vd-siblings a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  color: var(--ink);
}
@media (hover:hover) { .vd-siblings a:hover span { color: var(--red); } }
.vd-siblings em { font-style: normal; font-weight: normal; color: var(--muted); }
.vd-back { margin-top: 10px; padding: 10px 12px; font-size: 13px; }

/* Mobile: shopping info first — price + annual costs surface above colours.
   The main/side wrappers flatten (display:contents) so their children can be
   ordered individually in one column; desktop's two-column grid is untouched. */
@media (max-width: 979.98px) {
  .vd-wrap { display: flex; flex-direction: column; }
  .vd-main, .vd-side { display: contents; }
  .vd-main > .model-hero { order: 1; }
  .vd-price-card { order: 2; }
  .vd-annual { order: 3; }
  /* mobile ad slot: same order as .vd-annual — source order (it follows the
     annual card in the DOM) places it directly BELOW it, above Colours.
     Without this it defaulted to order:0 and floated above the hero image. */
  .vd-side .ad-billboard { order: 3; }
  .vd-colours { order: 4; margin-top: 14px; }
  .vd-sheet { order: 5; }
  .vd-options { order: 6; }
  .vd-siblings { order: 7; }
  .vd-back { order: 8; }
}

@media (min-width: 980px) {
  .vd-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: start;
    padding-top: 24px;
  }
  .vd-side { position: sticky; top: 70px; }
  .vd-price-card, .vd-side .vd-siblings { margin-top: 0; }
  .vd-siblings { margin-top: 12px; }
}
.result-price .tba { color: var(--muted); font-weight: bold; }
.onsale-tag { color: #3f7d4f; }
.result-row.is-current { border-color: var(--ink); }

/* ── Footer ───────────────────────────────────────────── */

/* ── Footer ───────────────────────────────────────────── */

.colophon {
  margin-top: 34px;
  background: #fff;
  border-top: 1px solid var(--card-line);
  color: var(--muted);
}

.colophon-in {
  padding-top: 18px;
  padding-bottom: 24px;
  font-size: 12px;
  text-align: center;
}

.colophon-brand {
  font-size: 15px;
  font-weight: bold;
  color: var(--ink);
  margin: 0 0 8px;
}
.colophon-brand span { color: var(--red); }

.colophon a { color: var(--ink); }
.colophon p { margin: 3px 0; }

/* ── Tablet (≥700px) ──────────────────────────────────── */

@media (min-width: 700px) {
  .launch-grid, .coming-grid { grid-template-columns: repeat(3, 1fr); }
  .chip-grid, .chip-grid-loose { grid-template-columns: repeat(3, 1fr); }
  .tile-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-title { font-size: 28px; }
  .result-thumb { width: 176px; }
  .result-info strong, .result-price b { font-size: 14px; }
}

/* ── Desktop (≥980px) ─────────────────────────────────── */

@media (min-width: 980px) {
  .wrap { max-width: 1080px; padding-left: 20px; padding-right: 20px; }

  /* masthead becomes a full app bar: logo · badge · nav · search (wireframe app-top) */
  .burger { display: none; }
  .drawer, .drawer-overlay { display: none !important; }
  .appbar-in { gap: 16px; }
  .appbar-logo img { width: 126px; }
  .appbar-section {
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #000;
    background: #fff;
    border-radius: 999px;
    padding: 4px 11px;
    text-decoration: none;
  }
  .appbar-nav { display: flex; gap: 22px; margin-left: 14px; }
  .appbar-nav a {
    font-size: 13.5px;
    font-weight: bold;
    color: #c9c9c9;
    text-decoration: none;
  }
  .appbar-nav a:hover { color: #fff; }

  /* hero: contained card, generous padding */
  .hero-shell { padding-top: 28px; }
  .hero-box { padding: 40px 40px 34px; }
  .hero-title { font-size: 34px; }
  .hero-stats { font-size: 13px; }
  .hero-search { max-width: 600px; margin-top: 20px; }

  /* sections: left-aligned head with right-aligned link (wireframe row.between) */
  .section { padding-top: 44px; }
  .section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    text-align: left;
    padding-bottom: 16px;
  }
  .section-head h2 { font-size: 22px; }
  .section-note { margin: 0; }
  .section-link {
    display: inline;
    font-size: 13px;
    font-weight: bold;
    color: var(--red);
    text-decoration: none;
    white-space: nowrap;
  }
  .section-link:hover { text-decoration: underline; }
  .view-all { display: none; }

  /* launches: 4-up (wireframe grid-trend); lead card goes horizontal across the row */
  .launch-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  /* coming soon matches launches at 4-up; extra cars simply wrap to new rows */
  .coming-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .card-date, .card-gen, .card-chip, .card-fuel { font-size: 12px; }

  .card-lead .card-link {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  }
  .card-lead .card-media {
    aspect-ratio: auto;
    min-height: 100%;
    border-bottom: 0;
    border-right: 1px solid var(--card-line);
  }
  .card-lead .card-body {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .card-lead .card-title { font-size: 24px; }
  .card-lead .card-date, .card-lead .card-gen, .card-lead .card-chip { font-size: 12px; }
  .card-lead .card-price { font-size: 17px; }

  /* brand & body tiles: 6-up like the wireframe desktop grids */
  .tile-grid { grid-template-columns: repeat(6, 1fr); gap: 12px; }
  .chip-grid, .chip-grid-loose { grid-template-columns: repeat(4, 1fr); }

  /* search: left filter rail + results column (wireframe results dir A) */
  .results-wrap {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    padding-top: 24px;
  }
  .filter-rail {
    display: block;
    background: #fff;
    border: 1px solid var(--card-line);
    border-radius: 10px;
    padding: 4px 16px 18px;
    position: sticky;
    top: 70px;
  }
  .mob-filters { display: none; }
  .results-head h1 { font-size: 20px; }
  .grid-results { grid-template-columns: repeat(3, 1fr); }
  .result-list { max-width: none; }
  .section-head-left { max-width: none; margin-left: 0; margin-right: 0; }
  .empty-note { max-width: none; }

  .colophon-in { padding-top: 24px; padding-bottom: 30px; font-size: 13px; }
}

/* ── Carro certified inventory (research API fragment) ── */

.ptr-carro-loading { min-height: 200px; }

/* Mobile — 2 columns × 3 rows (compact tiles) */
@media (max-width: 979px) {
  .ptr-carro-mgrid-in {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .ptr-carro-tile {
    min-width: 0;
    border: 1px solid var(--card-line);
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
  }

  /* image-600x500f composite — 5:3 cover from top crops off the baked-in price/title bar */
  .ptr-carro-tile-img {
    aspect-ratio: 5 / 3;
    line-height: 0;
    background: var(--ground);
    overflow: hidden;
  }

  .ptr-carro-tile-img a { display: block; height: 100%; }

  .ptr-carro-tile-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
  }

  .ptr-carro-tile-body { padding: 8px 10px 10px; }

  .ptr-carro-tile-title {
    margin: 0 0 3px;
    font-size: 13px;
    line-height: 1.25;
    font-weight: bold;
  }

  .ptr-carro-tile-title a {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--ink);
    text-decoration: none;
  }

  .ptr-carro-tile-price {
    margin: 0;
    font-size: 14px;
    line-height: 1.2;
    font-weight: bold;
    color: var(--ink);
  }

  .ptr-carro-tile .ptr-carro-chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 6px;
    padding: 6px 8px;
    gap: 5px;
    box-sizing: border-box;
    border-radius: 8px;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
  }

  .ptr-carro-tile .ptr-carro-chat-btn svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: currentColor;
  }
}

@media (max-width: 979px) and (hover: hover) {
  .ptr-carro-tile-title a:hover { color: var(--red); }
}

.ptr-carro .ptr-carro-chat-btn--whatsapp { background: #25D366; }
.ptr-carro .ptr-carro-chat-btn--line { background: #06C755; }

/* Desktop — 4 columns × 2 rows */
@media (min-width: 980px) {
  .ptr-carro-dgrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .ptr-carro-dtile {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--card-line);
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    background: #fff;
  }

  .ptr-carro-dtile a {
    display: block;
    color: inherit;
    text-decoration: none;
  }

  .ptr-carro-dtile-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 3;
    object-fit: cover;
  }

  /* MY desktop: price/title baked into image-600x500f composite */
  .ptr-carro-dtile--overlay .ptr-carro-dtile-img {
    aspect-ratio: auto;
    object-fit: contain;
  }

  .ptr-carro-dtile-cap {
    min-height: 47px;
    background: var(--red);
    padding: 6px 10px;
    box-sizing: border-box;
  }

  .ptr-carro-dtile-title {
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ptr-carro-dtile-price {
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-link, .card-title, .tile-link strong { transition: none; }
}

/* ── Compare pages ───────────────────────────────────────── */
.cmp-title { margin: 4px 0 16px; font-size: 22px; font-weight: bold; line-height: 1.25; }

.cmp-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 16px;
}
.cmp-side {
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  padding: 10px;
  min-width: 0;
}
.cmp-side-media { display: block; border-radius: 8px; overflow: hidden; background: #f4f4f4; aspect-ratio: 16/9; }
.cmp-side-media img { width: 100%; height: 100%; object-fit: cover; }
.cmp-side-media .card-noimg { display: block; width: 100%; height: 100%; }
.cmp-side-name { margin: 10px 2px 8px; font-size: 15px; line-height: 1.3; }
.cmp-side-name a { color: var(--ink); text-decoration: none; }
.cmp-side-offsale { margin: -4px 2px 8px; font-size: 12px; color: var(--muted); }

/* Mobile sticky mini-bar: which column is which car, pinned under the appbar
   once the hero cards scroll away (mirrors .mi-stickybar) */
.cmp-stickybar {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 900;             /* under the appbar (1000) and drawer */
  background: #fff;
  border-bottom: 1px solid var(--card-line);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.cmp-stickybar-in {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;   /* match .appbar-in — the two bars read as one header block */
}
.cmp-sb-side { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; }
.cmp-sb-side b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-sb-side small { font-size: 12px; color: var(--red); font-weight: 600; white-space: nowrap; }
.cmp-sb-side:last-child { justify-content: flex-end; text-align: right; }
.cmp-stickybar em { font-size: 11px; font-weight: 700; font-style: normal; color: var(--muted); flex: 0 0 auto; }
@media (min-width: 900px) { .cmp-stickybar { display: none; } }
@media (hover:hover) { .cmp-side-name a:hover { color: var(--red); } }
/* variant field: select and single-variant label share one look; the select
   only adds a chevron (native OS select chrome stripped) */
.cmp-variant, .cmp-variant-single {
  display: block;
  width: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink);
  background: var(--chip-bg);
  border: 1px solid var(--card-line);
  border-radius: 8px;
  padding: 8px 10px;
}
select.cmp-variant {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2363666f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 13px;
  cursor: pointer;
}
select.cmp-variant:focus { outline: 0; border-color: var(--red); }
.cmp-vs {
  align-self: center;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  padding: 7px 10px;
}

.cmp-verdict { margin-bottom: 16px; }

.cmp-table {
  width: 100%;
  margin-top: 16px;   /* breathing room after the pros/cons cards — matches their own top gap */
  /* fixed layout: long single-word values (e.g. "Electroluminescent") must
     wrap inside their column instead of widening the table past the phone */
  table-layout: fixed;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  overflow: hidden;
  font-size: 14px;
}
.cmp-table tr { border-bottom: 1px solid var(--rule-soft, #f0f0f0); }
.cmp-table tr:last-child { border-bottom: 0; }
.cmp-table .cmp-group th {
  padding: 12px 14px 8px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  text-align: left;
  background: #fafafa;
}
.cmp-table th[scope="row"] {
  width: 30%;
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: normal;
  color: var(--muted);
  text-align: left;
}
.cmp-table td {
  width: 35%;
  padding: 9px 14px;
  font-weight: bold;
  color: var(--ink);
}
/* winner cell: green — red reads as "worse" in a comparison context */
.cmp-table .cmp-col-label { width: 30%; }
.cmp-table td, .cmp-table th[scope="row"] { overflow-wrap: break-word; }
.cmp-table td.is-win { background: #f3faf5; }
.cmp-tick { font-style: normal; color: #178a4c; margin-left: 6px; font-size: 12px; }
.cmp-note { margin: 10px 2px 0; font-size: 12px; color: var(--muted); }

.cmp-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.cmp-hub-pair {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: bold;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
.cmp-hub-pair span { flex: 1; min-width: 0; }
.cmp-hub-pair span + em + span { text-align: right; }
.cmp-hub-pair em {
  flex: none;
  font-style: normal;
  font-size: 11px;   /* "vs" connector — kept small so the model names lead, but at the site's floor */
  font-weight: bold;
  text-transform: uppercase;
  color: var(--red);
}
@media (hover:hover) { .cmp-hub-pair:hover { border-color: var(--red); } }
/* hub variant with feature images: image above, name below, VS between */
.cmp-hub-pair-img { padding: 12px; align-items: center; }
.chp-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.chp-col img, .chp-col .card-noimg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: #f4f4f4;
}
.chp-col b { font-size: 13.5px; line-height: 1.25; text-align: center; }
.cmp-hub-pair-img em { align-self: center; }

@media (min-width: 700px) {
  .cmp-title { font-size: 26px; }
  .cmp-head { gap: 16px; }
  .cmp-side { padding: 14px; }
  .cmp-side-name { font-size: 17px; }
  /* hub pairs: 2-up on desktop — 3-up cramped the image cards and clipped names */
  .cmp-hub-grid { grid-template-columns: repeat(2, 1fr); }
}

/* search compare-mode CTA → full comparison page */
.cmp-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
}
.cmp-cta em { font-style: normal; font-weight: bold; color: var(--red); }
@media (hover:hover) { .cmp-cta:hover { border-color: var(--red); } }
/* rivals: chip columns track the card grid above (3-up ≥700, 4-up ≥980) so
   each compare link sits directly under its rival card */
.rivals-compare { margin-top: 12px; }
@media (min-width: 700px) { .rivals-compare { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .rivals-compare { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

/* ── Variant page: ownership costs, colours, options, regional prices ───── */
.vd-regions { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--rule-soft, #f0f0f0); }
.vd-regions li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 13px; }
.vd-regions li span { color: var(--muted); }
.vd-regions li em { font-style: normal; font-weight: bold; color: var(--ink); }

.vd-annual-list { list-style: none; margin: 0; padding: 0; }
.vd-annual-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--rule-soft, #f0f0f0);
}
.vd-annual-list li:last-child { border-bottom: 0; }
.vd-annual-list li span { color: var(--ink); min-width: 0; }
.vd-annual-list li span small { display: block; font-size: 11px; color: var(--muted); }
.vd-annual-list li em { font-style: normal; font-weight: bold; color: var(--ink); white-space: nowrap; }
.vd-annual-note { margin: 10px 0 0; font-size: 11px; color: var(--muted); line-height: 1.5; }

.vd-colours {
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.vd-block-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.vd-block-label + .swatch-list { margin-bottom: 14px; }
.vd-colours .vd-block-label:last-of-type + .swatch-list { margin-bottom: 0; }
/* variant page: positioning lede under the hero + trim-compare block */
.vd-lede { margin: 10px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink); }
.vd-step { margin: 0 0 18px; padding: 14px 16px; background: var(--card-bg, #fafafa); border: 1px solid var(--card-line); border-radius: 10px; }
.vd-step .vd-block-label { margin-bottom: 10px; }
.vd-step-line { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink); }
.vd-step-line + .vd-step-line { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--card-line); }
/* Sibling names are links, not emphasis — bolding the OTHER variant on this
   variant's page read as highlighting the wrong car (Paul, 2026-10-25). */
.vd-step-line a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--card-line); text-underline-offset: 3px; }
@media (hover:hover) { .vd-step-line a:hover { color: var(--red); text-decoration-color: var(--red); } }
.swatch-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.swatch-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); }
.swatch {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.15);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.55);
}
.swatch-list em { font-style: normal; font-size: 11px; color: var(--muted); }

/* compare editorial blocks (GSC content brief) */
.cmp-picks { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 16px; }
@media (min-width: 700px) { .cmp-picks { grid-template-columns: 1fr 1fr; } }
.cmp-pick {
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  padding: 12px 14px;
}
.cmp-pick em {
  display: block;
  font-style: normal;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--red);
  margin-bottom: 4px;
}
.cmp-pick p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); }

.cmp-diffs {
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.cmp-diffs ul { margin: 0; padding-left: 18px; }
.cmp-diffs li { font-size: 14px; line-height: 1.55; margin: 4px 0; color: var(--ink); }

.cmp-proscons { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
@media (min-width: 700px) { .cmp-proscons { grid-template-columns: 1fr 1fr; } }
.cmp-pc-side { background: #fff; border: 1px solid var(--card-line); border-radius: 10px; padding: 12px 16px; }
.cmp-pc-list { list-style: none; margin: 0; padding: 0; }
.cmp-pc-list li { position: relative; padding: 4px 0 4px 24px; font-size: 14px; line-height: 1.45; color: var(--ink); }
.cmp-pc-list li::before { position: absolute; left: 0; top: 4px; font-weight: bold; }
.cmp-pc-list li.is-pro::before { content: "+"; color: #178a4c; }
.cmp-pc-list li.is-con::before { content: "–"; color: var(--red); }

/* Compare editorial sub-labels read as first-class (13px, not tiny 11px
   eyebrows) so the primary content — verdict, picks, key differences,
   pros/cons — isn't visually out-shouted by the 17px FAQ/related headings
   below it. Scoped to compare; the same base classes stay 11px elsewhere. */
.cmp-verdict .advisor-eyebrow,
.cmp-pick em,
.cmp-diffs .vd-block-label,
.cmp-pc-side .vd-block-label { font-size: 13px; }

/* model-page evergreen editorial */
.model-edit-p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink); max-width: 760px; }
.model-edit-variants { margin: 6px 0 2px; }
.mi-runcosts {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--rule-soft, #f0f0f0);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}
.model-edit-variants { margin-bottom: 14px; }

/* ── Mobile filters tooltip (once a day, research.js) ──── */

/* ── EV hub ─────────────────────────────────────────────── */
/* Block CENTERED, text LEFT: heroes are text-align:center, which left this
   640px block stuck at the left edge with centre-ragged lines — unreadable on
   long intros (Paul, 2026-08-19, sedan page). */
.ev-intro { max-width: 640px; margin: 10px auto 0; text-align: left; font-size: 16px; line-height: 1.6; color: var(--muted); }
.ev-boards { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 760px) { .ev-boards { grid-template-columns: repeat(3, 1fr); } }
.ev-board { background: #fff; border: 1px solid var(--card-line); border-radius: 10px; padding: 14px 16px; }
.ev-board ol { list-style: none; margin: 6px 0 0; padding: 0; counter-reset: evb; }
.ev-board li { counter-increment: evb; }
.ev-board li + li { border-top: 1px solid var(--rule-soft, #f0f0f0); }
.ev-board a { display: flex; align-items: baseline; gap: 8px; padding: 8px 0; font-size: 13.5px; font-weight: bold; color: var(--ink); text-decoration: none; }
.ev-board ol a::before { content: counter(evb); flex: none; width: 18px; font-size: 11px; color: var(--muted); }   /* ranks: LIST links only — a bare link in a board (best index) was printing a stray 0 */
.ev-board a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-board a em { margin-left: auto; font-style: normal; font-weight: bold; color: var(--red); white-space: nowrap; }
@media (hover:hover) { .ev-board a:hover span { color: var(--red); } }
.ev-rt-calc { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 14px 0 4px; }
.ev-rt-calc label { font-size: 12px; font-weight: bold; color: var(--muted); }
.ev-rt-calc input {
  /* 16px minimum: iOS Safari auto-zooms on focus below that, leaving the
     page horizontally pannable afterwards */
  width: 110px; padding: 9px 10px; font-size: 16px; font-weight: bold;
  border: 1px solid var(--card-line); border-radius: 8px;
}
.ev-rt-result { font-size: 15px; font-weight: bold; color: var(--red); }
.ev-rt-result small { display: block; font-size: 11px; font-weight: normal; color: var(--muted); }
.ev-rt-tables { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }
@media (min-width: 640px) { .ev-rt-tables { grid-template-columns: 1fr 1fr; } }
.ev-rt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ev-rt-table caption { text-align: left; font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-bottom: 6px; }
.ev-rt-table td { padding: 6px 8px; border-top: 1px solid var(--rule-soft, #f0f0f0); }
.ev-rt-table td:last-child { text-align: right; font-weight: bold; white-space: nowrap; }
.ev-rt-table small { color: var(--muted); font-weight: normal; }
.drawer-chips a.is-ev { border-color: #4a4a4a; color: #fff; }
.hub-tip { margin: 0 0 12px; font-size: 13px; }
.hub-tip a { display: inline-block; padding: 8px 12px; background: #fff; border: 1px solid var(--card-line); border-radius: 8px; color: var(--ink); font-weight: bold; text-decoration: none; }
@media (hover:hover) { .hub-tip a:hover { color: var(--red); } }
.price-body-chips { justify-content: flex-start; margin-top: 0; }
.price-neighbours { display: flex; flex-wrap: wrap; gap: 10px; }
.price-neighbours .view-all { margin: 0; }
/* calculators read as forms, not toolbars: capped width, max two columns
   (Paul, 2026-07-13 — the 4-across desktop row looked odd) */
.tool-box { max-width: 680px; margin-left: auto; margin-right: auto; }
.tool-hero .ev-intro { max-width: none; }
.tool-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 4px; }
@media (min-width: 480px) { .tool-grid { grid-template-columns: 1fr 1fr; } }
.tool-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: bold; color: var(--muted); }
/* display:flex above beats the UA's [hidden]{display:none} — restore it, or
   the road-tax mode toggle can never actually hide the other mode's fields */
.tool-grid label[hidden] { display: none; }
.tool-grid input, .tool-grid select {
  /* 16px minimum: iOS Safari auto-zooms on focus below that.
     width/min-width pin selects with long options inside their grid cell */
  width: 100%; min-width: 0;
  padding: 9px 10px; font-size: 16px; font-weight: bold;
  border: 1px solid var(--card-line); border-radius: 8px; background: #fff; color: var(--ink);
}
.tool-result { margin-top: 16px; border-top: 1px solid var(--rule-soft, #f0f0f0); padding-top: 12px; }
.tool-result-main { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0; font-weight: bold; }
.tool-result-main em { font-style: normal; font-size: 24px; color: var(--red); font-variant-numeric: tabular-nums; }
.tool-result-rows { list-style: none; margin: 10px 0 0; padding: 0; font-size: 13.5px; }
.tool-result-rows li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid var(--rule-soft, #f0f0f0); }
.tool-result-rows li[hidden] { display: none; }
.mv-table th { padding: 6px 8px; font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); text-align: left; border-bottom: 1px solid var(--rule-soft, #f0f0f0); }
.mv-table th:last-child, .mv-table td:last-child { text-align: right; }
.mv-table td small { color: var(--muted); }
@media (max-width: 560px) { .mv-table .mv-sold { display: none; } }
.mv-chart { margin: 4px 0 18px; }
.mv-chart figcaption { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 0 0 10px; max-width: 640px; }
.mv-chart svg { display: block; max-width: 560px; }
.mv-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.mv-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.mv-key { width: 18px; height: 0; display: inline-block; }
.mv-key-model { border-top: 3px solid var(--red, #d0021b); }
.mv-key-market { border-top: 3px dashed #c4c4c4; }
.jpj-chart { display: block; max-width: 560px; margin-top: 6px; }
.bs-note { margin: -6px 0 12px; font-size: 13px; color: var(--muted); text-align: center; }
.bs-list { list-style: none; margin: 0; padding: 0; counter-reset: bs; display: grid; grid-template-columns: 1fr; gap: 0 28px; }
@media (min-width: 640px) { .bs-list { grid-template-columns: 1fr 1fr; } }
.bs-list li { counter-increment: bs; border-top: 1px solid var(--rule-soft, #f0f0f0); }
.bs-list li:first-child { border-top: 0; }
@media (min-width: 640px) { .bs-list li:nth-child(6) { border-top: 0; } }
.bs-list a { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; font-size: 14px; font-weight: bold; color: var(--ink); text-decoration: none; }
.bs-list a::before { content: counter(bs); flex: none; width: 20px; font-size: 11px; color: var(--muted); }
.bs-list em { margin-left: auto; font-style: normal; font-weight: bold; color: var(--red); font-variant-numeric: tabular-nums; }
@media (hover:hover) { .bs-list a:hover span { color: var(--red); } }
.tool-result-rows em { font-style: normal; font-weight: bold; font-variant-numeric: tabular-nums; }
.tool-result-link { margin: 12px 0 0; }

/* ── Car comparison builder (/compare/build/) ──────────────────────────────── */
.cb-empty { text-align: center; padding: 34px 16px; max-width: 560px; margin: 0 auto; }
.cb-empty p { margin: 0 0 12px; color: var(--muted); }
.cb-empty-lead { font-size: 15px; }
.cb-empty-hint { font-size: 13px; margin-top: 12px; }
/* Empty-builder starters: recents (client-rendered) + popular pairs */
.cb-recent, .cb-starters { margin-top: 30px; }
.cb-recent-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-recent-chip {
  padding: 9px 14px; font-size: 13.5px; font-weight: bold; cursor: pointer;
  background: #fff; border: 1px solid var(--card-line); border-radius: 999px; color: var(--ink);
}
@media (hover:hover) { .cb-recent-chip:hover { border-color: var(--red); color: var(--red); } }
.cb-add-btn {
  font-family: Arial, sans-serif; font-size: 14px; font-weight: bold;
  color: #fff; background: var(--red); border: 0; border-radius: 8px;
  padding: 9px 16px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
@media (hover:hover) { .cb-add-btn:hover { filter: brightness(1.08); } }
.cb-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 12px; }
.cb-diff-toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: bold; cursor: pointer; }
.cb-bridge { margin-left: auto; font-size: 13px; font-weight: bold; color: var(--red); text-decoration: none; }
@media (hover:hover) { .cb-bridge:hover { text-decoration: underline; } }

/* Horizontal scroll only; the page scrolls vertically. A JS-driven clone (see
   research.js) keeps the header row pinned to the viewport top on page scroll
   — pure-CSS sticky can't reach the viewport from inside a horizontal-overflow
   container, and the internal-scroll-box alternative felt wrong (Paul). */
.cb-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--card-line); border-radius: 10px; }
/* JS sticky-header clone: a fixed strip mirroring the header + its h-scroll */
.cb-sticky-wrap { position: fixed; top: 0; z-index: 55; overflow: hidden; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.12); display: none; }
.cb-sticky-wrap .cb-table { margin: 0; }
.cb-sticky-wrap .cb-group, .cb-sticky-wrap tbody { display: none; }
/* table-layout:fixed → car columns are EQUAL width regardless of content
   (colgroup drives widths); table min-width (inline, scales with car count)
   keeps them ≥150px so 5 cars scroll rather than crush. */
.cb-table { border-collapse: collapse; width: 100%; table-layout: fixed; font-size: 13px; background: #fff; }
.cb-table th, .cb-table td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--card-line); overflow-wrap: break-word; word-break: break-word; }
/* frozen first column */
.cb-rowlabel {
  position: sticky; left: 0; z-index: 2; background: #fafafa;
  font-weight: normal; color: var(--muted);
  border-right: 1px solid var(--card-line);
}
.cb-col { background: #fff; position: relative; }
/* header row: sticky to the TOP of the scroll box */
.cb-head-row th { position: sticky; top: 0; z-index: 3; background: #fff; border-bottom: 2px solid var(--card-line); vertical-align: top; }
.cb-head-row .cb-rowlabel, .cb-corner { z-index: 5; background: #fff; }   /* top-left corner: sticky both ways */
.cb-remove {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; line-height: 18px;
  text-align: center; border: 0; border-radius: 50%; background: #eee; color: var(--muted);
  font-size: 15px; cursor: pointer; padding: 0;
}
@media (hover:hover) { .cb-remove:hover { background: var(--red); color: #fff; } }
.cb-col-name { display: block; font-weight: bold; color: var(--ink); text-decoration: none; padding-right: 22px; line-height: 1.25; }
@media (hover:hover) { .cb-col-name:hover { color: var(--red); } }
.cb-trim { max-width: 100%; margin-top: 6px; font-size: 12px; padding: 3px 4px; border: 1px solid var(--card-line); border-radius: 6px; background: #fff; }
.cb-trim-static { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.cb-col-price { display: block; margin-top: 6px; font-weight: bold; color: var(--red); font-size: 14px; }
.cb-addcol { vertical-align: middle; text-align: center; }
.cb-addcol-cell { background: #fff; }

.cb-group th {
  background: var(--ink); color: #fff; font-size: 11px; font-weight: bold;
  text-transform: uppercase; letter-spacing: .05em; padding: 6px 12px;
  position: sticky; left: 0;
}
.cb-row td { font-variant-numeric: tabular-nums; }
.cb-win { background: rgba(30,160,90,.12); font-weight: bold; color: #12703f; }
.cb-table.cb-diffonly .cb-same { display: none; }

@media (min-width: 700px) {
  .cb-table { font-size: 14px; }
}

/* comparison tray (floating, site-wide) + picker modal + toggle buttons */
.cb-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ink); color: #fff; box-shadow: 0 -2px 12px rgba(0,0,0,.25); }
.cb-tray-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 9px 14px; }
/* single slim line: chips scroll horizontally instead of wrapping (a 4-5 car
   tray was stacking chips a third of a phone screen tall) */
.cb-tray-chips { display: flex; flex-wrap: nowrap; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cb-tray-chips::-webkit-scrollbar { display: none; }
.cb-tray-chip { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.14); border-radius: 999px; padding: 4px 6px 4px 10px; font-size: 12px; white-space: nowrap; }
.cb-tray-chip b { font-weight: bold; }
.cb-tray-chip button { border: 0; background: rgba(255,255,255,.2); color: #fff; width: 17px; height: 17px; border-radius: 50%; line-height: 15px; font-size: 13px; cursor: pointer; padding: 0; }
.cb-tray-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.cb-tray-clear { border: 0; background: transparent; color: rgba(255,255,255,.7); font-size: 13px; cursor: pointer; }
.cb-tray-go { background: var(--red); color: #fff; font-weight: bold; font-size: 14px; text-decoration: none; padding: 8px 16px; border-radius: 8px; white-space: nowrap; }
@media (max-width: 560px) { .cb-tray-chip b { max-width: 92px; overflow: hidden; text-overflow: ellipsis; } }

.cb-modal { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; padding: 16px; }
.cb-modal-box { position: relative; background: #fff; border-radius: 12px; padding: 22px 20px; width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 10px; }
.cb-modal-x { position: absolute; top: 8px; right: 10px; border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.cb-modal-title { margin: 0 0 4px; font-size: 17px; font-weight: bold; }
.cb-pick { width: 100%; font-size: 16px; padding: 10px; border: 1px solid var(--card-line); border-radius: 8px; background: #fff; }
.cb-pick:disabled { opacity: .5; }
.cb-pick-add { margin-top: 4px; }

/* "+ Compare" toggle buttons on cards / pages */
.cb-btn {
  display: inline-flex; align-items: center; gap: 5px; font-family: Arial, sans-serif;
  font-size: 12px; font-weight: bold; color: var(--ink); background: #fff;
  border: 1px solid var(--card-line); border-radius: 999px; padding: 5px 11px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.cb-btn::before { content: "+"; font-size: 14px; line-height: 1; }
.cb-btn.is-in { color: #fff; background: var(--red); border-color: var(--red); }
.cb-btn.is-in::before { content: "✓"; }
@media (hover:hover) { .cb-btn:not(.is-in):hover { border-color: var(--red); color: var(--red); } }
/* On phones the labelled pill is too big over a card render — collapse the
   card overlay button to an icon-only circle (＋ / ✓); the tray + toast carry
   the feedback. The in-flow buttons (model/variant pages) keep their label. */
@media (max-width: 699px) {
  .card-cb-btn { width: 32px; height: 32px; padding: 0; gap: 0; justify-content: center; border-radius: 50%; }
  .card-cb-btn .cb-btn-label { display: none; }
  .card-cb-btn::before { font-size: 18px; }
}

/* builder: off-sale column badge + max-cars toast */
.cb-col-off { font-style: normal; font-size: 10px; font-weight: bold; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-left: 4px; }
.cb-toast {
  position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%) translateY(8px);
  background: var(--ink); color: #fff; font-size: 13px; font-weight: bold; padding: 9px 16px;
  border-radius: 999px; z-index: 80; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.cb-toast.is-in { opacity: 1; transform: translateX(-50%) translateY(0); }


/* builder column header car render; hidden in the sticky clone (keeps it slim) */
.cb-col-img { display: block; width: 150px; height: 90px; object-fit: contain; margin: 2px auto 6px; }
.cb-sticky-wrap .cb-col-img { display: none; }

/* column reorder: ‹ › buttons (work on touch AND desktop — HTML5 drag doesn't
   fire on touch). Top-left of each header; hidden in the sticky clone. */
.cb-move { position: absolute; top: 5px; left: 6px; display: flex; gap: 3px; }
.cb-mv {
  width: 22px; height: 22px; line-height: 20px; text-align: center; padding: 0;
  border: 1px solid var(--card-line); border-radius: 5px; background: #fff;
  color: var(--muted); font-size: 15px; font-weight: bold; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
@media (hover:hover) { .cb-mv:hover { border-color: var(--red); color: var(--red); } }
.cb-sticky-wrap .cb-move { display: none; }

/* per-variant "+ Compare" side cell in the model-page variant rows (icon-only
   to keep the row compact; matches the Specs toggle's full-height side style) */
.variant-cb-toggle {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  border: 0; border-left: 1px solid var(--card-line); background: none;
  color: var(--muted); font-family: Arial, sans-serif; font-size: 12px; font-weight: bold;
  padding: 0 14px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.variant-cb-toggle::before { content: "+"; font-size: 16px; line-height: 1; }
.variant-cb-toggle.is-in { color: #fff; background: var(--red); }
.variant-cb-toggle.is-in::before { content: "✓"; font-size: 13px; }
@media (hover:hover) { .variant-cb-toggle:not(.is-in):hover { color: var(--red); } }

/* ── Compare-builder share strip (WhatsApp · copy · more → slide-up sheet),
   mirrors the paultan single-post pt-cshare bar ── */
.cb-cshare { display: inline-flex; align-items: center; gap: 6px; }
.cb-toolbar .cb-cshare, .cmp-title-row .cb-cshare { margin-left: auto; }   /* push right beside a heading/toolbar */
/* share-strip host rows on the entity pages */
.vd-hero-actions, .mi-cb { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
/* The row zeroes the title's own margins, so it must carry the title's old
   4px/16px+ spacing itself — without it the share bar hugged the car cards. */
.cmp-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 18px; }
.cmp-title-row .cmp-title { margin: 0; }
.cb-cshare-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--card-line);
  background: #fff; color: var(--ink); cursor: pointer; padding: 0;
  -webkit-tap-highlight-color: transparent; text-decoration: none;
}
@media (hover:hover) { .cb-cshare-btn:hover { border-color: var(--red); color: var(--red); } }
.cb-cshare-toast {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-size: 11px; font-weight: bold; white-space: nowrap;
  padding: 4px 8px; border-radius: 6px; opacity: 0; transition: opacity .2s; pointer-events: none;
}
.cb-cshare-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
.cb-cshare-overlay[hidden] { display: none; }   /* author display:flex defeats [hidden] — must override */
.cb-cshare-sheet {
  width: 100%; max-width: 520px; background: #fff; border-radius: 16px 16px 0 0;
  padding: 6px 16px calc(20px + env(safe-area-inset-bottom)); animation: cb-sheet-up .22s ease;
}
@keyframes cb-sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .cb-cshare-sheet { animation: none; } }
.cb-cshare-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 2px 8px; }
.cb-cshare-head span { font-size: 16px; font-weight: bold; }
.cb-cshare-close { border: 0; background: none; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; }
.cb-cshare-full { display: flex; flex-direction: column; gap: 4px; }
.cb-cshare-full-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  font-family: Arial, sans-serif; font-size: 15px; font-weight: bold; color: var(--ink);
  background: none; border: 0; padding: 12px 8px; border-radius: 8px; cursor: pointer; text-decoration: none;
}
@media (hover:hover) { .cb-cshare-full-btn:hover { background: var(--chip-bg, #f4f4f4); } }

/* share strip in hub heroes (below the intro) */
.hero-share { margin-top: 14px; }
.make-hero .hero-share { margin-top: 12px; }

/* ── Carro lead-funnel button + modal (Paul, 2026-10-23) ──
   Button renders only for makes in the autodeals manifest; the overlay is a
   bottom sheet on mobile and a centered modal from 900px. The embed iframe
   inside auto-resizes via its own postMessage, so the sheet just scrolls. */
.lead-btn {
  -webkit-appearance: none; appearance: none;
  border: 0;
  cursor: pointer;
  background: var(--red);
  color: #fff;
  font-weight: bold;
  font-family: inherit;
}
.lead-btn-card {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}
@media (hover:hover) { .lead-btn:hover { filter: brightness(1.08); } }
/* stickybar variant inherits .mi-sb-cta pill metrics; buttons need line-height */
button.mi-sb-cta { border: 0; cursor: pointer; font-family: inherit; line-height: normal; }

.leadform-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;            /* above the appbar (1000) and stickybars */
  background: rgba(0, 0, 0, .5);
}
.leadform-sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-radius: 14px 14px 0 0;
  /* overlay-relative, not vh: iOS vh is the LARGE viewport, which let the
     bottom-anchored sheet poke above the visible top with the close on it */
  max-height: calc(100% - 24px);
  display: flex;
  flex-direction: column;
  padding: 10px 0 env(safe-area-inset-bottom, 0);
}
.leadform-close {
  -webkit-appearance: none; appearance: none;
  /* own non-scrolling flex row — sticky+float inside the scroller lost it
     off-screen on iOS once the embed grew taller than the sheet */
  flex: none;
  align-self: flex-end;
  margin: 0 10px 8px;
  width: 34px; height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f0f0f0;
  color: #444;
  font-size: 20px;
  line-height: 34px;
  cursor: pointer;
}
.leadform-mount {
  min-height: 220px;
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.leadform-loading { padding: 40px 20px; text-align: center; color: var(--muted); }
@media (min-width: 900px) {
  .leadform-sheet {
    left: 50%; right: auto; top: 50%; bottom: auto;
    transform: translate(-50%, -50%);
    width: 480px;
    max-width: calc(100vw - 32px);
    max-height: calc(100% - 48px);
    border-radius: 14px;
  }
}

/* ── Compare page: derived blocks (compare-extras, Paul 2026-10-25) ──────── */
.cmp-pairing-note { margin: 10px 2px 0; font-size: 13px; color: var(--muted); }
.cmp-equip { margin: 20px 0; display: grid; gap: 16px; }
@media (min-width: 700px) {
  .cmp-equip:has(.cmp-equip-side[data-side="r"]):has(.cmp-equip-side[data-side="l"]) {
    grid-template-columns: 1fr 1fr;
  }
  .cmp-equip > .cmp-note { grid-column: 1 / -1; }
}
.cmp-equip-side {
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  padding: 14px 16px;
}
.cmp-equip-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cmp-equip-chips span {
  font-size: 12.5px;
  line-height: 1;
  padding: 6px 10px;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--ink);
  white-space: nowrap;
}
.cmp-equip .cmp-note { margin: 0 2px; }
.cmp-size { margin: 20px 0; }
.cmp-size-prose { font-size: 14px; line-height: 1.6; color: var(--ink); margin: 0 0 12px; }
.cmp-size-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--ink); margin-bottom: 6px; }
.cmp-size-key { display: inline-flex; align-items: center; gap: 7px; }
.cmp-size-key i { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.cmp-size-svg { display: block; width: 100%; height: auto; }
/* Dimension-label sizes are viewBox units, so they scale with the drawing:
   the 24-unit attribute is sized for phones (~9px rendered at 350px wide).
   On wider viewports the SVG renders near 1:1 and 24px reads poster-sized,
   so shrink the labels (and their white halo) once the drawing has room.
   Scoped to .cmp-size (compare + model pages): inside the variant spec sheet
   the same SVG sits in a half-width column, where 24 units still reads small. */
@media (min-width: 700px) {
  .cmp-size .cmp-size-svg text { font-size: 15px; stroke-width: 3.5px; }
}
/* Model-page dimensions section: don't let the silhouette fill the whole wrap. */
#dimensions .cmp-size { max-width: 860px; }
/* Variant spec sheet: diagram slots between the Dimensions heading and rows. */
.spec-group .cmp-size-svg { margin: 2px 0 4px; }
.spec-group .cmp-note { margin: 0 0 10px; }
.cmp-reviews-2 { display: grid; gap: 20px; }
@media (min-width: 900px) { .cmp-reviews-2 { grid-template-columns: 1fr 1fr; } }
.cmp-reviews-2 .pt-search-results { grid-template-columns: 1fr; }
.cmp-reviews-col .vd-block-label { margin: 0 0 8px; }
.cmp-reviews .pt-search-result-title { font-size: 15px; margin: 0; }
