/* =========================================================================
   DESIGN TOKENS — spacing, widths, typography, radii
   ========================================================================= */
:root {
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --content-width: 720px;
  --spec-width: 960px;
  --full-width: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 150ms var(--ease-out);
  --transition-normal: 250ms var(--ease-out);
}

:root {
  --bg: #F4EFE6;
  --surface: #FBF8F2;
  --card: #FFFFFF;
  --ink: #1F1B16;
  --muted: #6B6258;
  --line: #E0D7C8;
  --copper: #B05C32;
  --copper-deep: #8A4524;
  /* Accessible copper for small TEXT. Bare --copper (#B05C32) is only 4.15:1 on
     --bg, which fails WCAG AA (4.5:1) for normal-size text. --copper-text is
     5.25:1 on --bg / 5.68:1 on --surface — passes AA while staying brighter and
     more copper than --copper-deep. Use --copper-text for small foreground text;
     keep --copper for borders, fills, accent-colors, and large (≥24px) icons,
     where the 3:1 non-text threshold applies and copper clears it. */
  --copper-text: #9A4E25;
  --shadow: 0 1px 2px rgba(31,27,22,.05), 0 8px 24px rgba(31,27,22,.06);
  --radius: 2px;
  --maxw: 1120px;
  /* Height of the sticky top nav (used to offset other sticky elements so
     they pin BELOW the nav, never behind it). Desktop ~56px when stuck. */
  --nav-h: 56px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--copper-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; letter-spacing: -.01em; line-height: 1.1; }

.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--copper-text); font-weight: 700; margin: 0 0 8px; }
.muted { color: var(--muted); }

/* ---------- Home header ---------- */
.hero-head {
  max-width: var(--maxw); margin: 0 auto; padding: 56px 20px 24px;
}
.hero-head h1 { font-size: clamp(40px, 7vw, 72px); margin: 0 0 12px; }
.hero-head .lede { font-size: clamp(16px, 2.2vw, 20px); color: var(--muted); max-width: 60ch; margin: 0; }

/* ---------- Home cinematic hero band ---------- */
.home-hero {
  position: relative; max-width: var(--maxw); margin: 12px auto 0; padding: 0;
  border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); background: #ddd6c8;
  isolation: isolate;
}
.home-hero-img {
  width: 100%; aspect-ratio: 16/7; object-fit: cover; display: block;
}
.home-hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(20,16,12,.86) 0%, rgba(20,16,12,.50) 42%, rgba(20,16,12,.18) 78%, rgba(20,16,12,.30) 100%);
}
.home-hero-inner {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: clamp(22px, 4vw, 44px) clamp(20px, 4vw, 46px); color: #fff;
}
.home-hero-inner h1 { font-size: clamp(38px, 6.4vw, 70px); margin: 0 0 12px; color: #fff; }
.home-hero-inner .lede { font-size: clamp(15px, 2.1vw, 20px); color: rgba(255,255,255,.92); max-width: 56ch; margin: 0; }
.home-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin: 22px 0 0; }
.home-hero-btn {
  display: inline-flex; align-items: center; min-height: 46px; padding: 11px 24px;
  background: var(--copper); color: #fff; font-weight: 700; font-size: 15px;
  border-radius: 999px; letter-spacing: .01em;
  transition: background .15s ease, transform .12s ease;
}
.home-hero-btn:hover { background: var(--copper-deep); text-decoration: none; transform: translateY(-1px); }
.home-hero-ghost { color: #fff; font-weight: 600; font-size: 15px; }
.home-hero-ghost:hover { color: #f0c9b4; text-decoration: none; }
@media (max-width: 560px) {
  .home-hero {
    margin-top: 8px; border-radius: 10px;
    display: flex; flex-direction: column; background: #17120d;
  }
  .home-hero-img { aspect-ratio: 3/2; }
  /* Text no longer overlays the photo on phones, so the scrim is unneeded —
     it previously caused the title to overflow the short 4/3 image. */
  .home-hero-shade { display: none; }
  .home-hero-inner { position: static; padding: 20px 20px 24px; }
  .home-hero-inner h1 { font-size: clamp(30px, 8.4vw, 40px); line-height: 1.06; margin-bottom: 10px; }
  .home-hero-inner .lede { font-size: 15px; max-width: none; }
  .home-hero-cta { gap: 12px; margin-top: 18px; }
  .home-hero-btn { width: 100%; justify-content: center; }
  .home-hero-ghost { width: 100%; text-align: center; }
}

/* ---------- Controls ---------- */
.controls {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 20px 28px;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  position: sticky; top: var(--nav-h); background: linear-gradient(var(--bg) 70%, transparent); z-index: 10;
}
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.seg-btn {
  font: inherit; font-weight: 500; padding: 9px 18px; border: 0; background: transparent;
  color: var(--muted); cursor: pointer; min-height: 44px;
}
.seg-btn + .seg-btn { border-left: 1px solid var(--line); }
.seg-btn.is-active { background: var(--copper); color: #fff; }
.select-wrap { font-size: 13px; color: var(--muted); display: inline-flex; flex-direction: column; gap: 4px; }
.select-wrap select {
  font: inherit; padding: 9px 12px; min-height: 44px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); color: var(--ink);
}
.count { margin-left: auto; font-size: 14px; color: var(--muted); }

/* ---------- Card grid ---------- */
.cards {
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px 64px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: inherit; box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(31,27,22,.06), 0 16px 40px rgba(31,27,22,.12); text-decoration: none; }
.card-media {
  position: relative; aspect-ratio: 3/2; overflow: hidden;
  background: radial-gradient(125% 135% at 50% 16%, #faf6ef 0%, #f0e8d8 52%, #e7ddc8 100%);
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  /* Same editorial treatment as .xcard: white studio ground drops to the brand
     cream under `darken`, silver body stays true. See .xcard-media note. */
  mix-blend-mode: darken;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.card:hover .card-media img { transform: scale(1.045); }
.card-year {
  position: absolute; top: 10px; left: 10px; background: rgba(31,27,22,.78); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 4px 9px; border-radius: 2px;
}
.card-body { padding: 16px 18px 18px; }
.card-title { font-size: 22px; margin: 0 0 12px; }
.card-title span { color: var(--copper-deep); }
.card-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.card-specs .spec dt { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.card-specs .spec dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; }

/* ---------- Detail ---------- */
.detail-nav { max-width: 880px; margin: 0 auto; padding: 24px 20px 0; }
.back-link { font-weight: 600; font-size: 14px; }
.detail { max-width: 880px; margin: 0 auto; padding: 16px 20px 56px; }
.detail-head h1 { font-size: clamp(34px, 6vw, 56px); margin: 0 0 14px; }
.detail-head h1 span { color: var(--copper-deep); }
.detail-hero { border-radius: var(--radius); overflow: hidden; background: #ddd6c8; margin: 8px 0 24px; box-shadow: var(--shadow); }
.detail-hero-img { width: 100%; height: auto; object-fit: cover; }
.detail-desc { font-size: 18px; color: #3a342c; max-width: 64ch; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 8px; }
.chip { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--copper-deep); background: rgba(176,92,50,.10); border: 1px solid rgba(176,92,50,.22); padding: 4px 10px; border-radius: 999px; }

.spec-table { margin: 36px 0 8px; }
.spec-table h2, .gallery h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.specs-grid { margin: 0; border-top: 1px solid var(--line); }
.specs-grid .spec {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 13px 2px; border-bottom: 1px solid var(--line);
}
.specs-grid .spec dt { margin: 0; color: var(--muted); font-size: 15px; }
.specs-grid .spec dd { margin: 0; font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; }
.spec-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; font-style: italic; }

.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 36px 0; }
.proscons h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 8px; }
.proscons .pros h3 { color: #3f7d54; }
.proscons .cons h3 { color: var(--copper-deep); }
.proscons ul { margin: 0; padding-left: 18px; }
.proscons li { margin: 6px 0; }

.gallery { margin: 40px 0 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gallery-img-wrap {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
/* Studio cutouts (trailer on a white sweep): blend the white into a warm
   cream sweep so the silver shell sits on a branded background. */
.gallery-img-wrap.is-cutout {
  background: radial-gradient(125% 135% at 50% 16%, #faf6ef 0%, #f0e8d8 52%, #e7ddc8 100%);
}
/* Full-bleed photos (interiors, lifestyle): render clean, edge to edge, with a
   fixed 16:9 frame so the grid stays even regardless of source ratio. */
.gallery-img-wrap.is-photo { background: #1a1a1a; }
.gallery-img { width: 100%; display: block; }
.gallery-img--cutout { mix-blend-mode: darken; }
.gallery-img--photo { aspect-ratio: 920 / 518; object-fit: cover; mix-blend-mode: normal; }

/* ---------- Floor plan ---------- */
.floorplan { margin: 40px 0 0; }
.floorplan h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.floorplan-fig { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); text-align: center; }
.floorplan-img { width: 100%; max-width: 460px; height: auto; display: block; margin: 0 auto; }
.floorplan-fig figcaption { margin-top: 12px; font-size: 12px; letter-spacing: .04em; }

/* ---------- Interior décor options ---------- */
.decor { margin: 40px 0 0; }
.decor h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.decor-intro { margin: 0 0 20px; max-width: 64ch; font-size: 14px; line-height: 1.5; }
.decor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.decor-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.decor-name { font-family: 'Fraunces', Georgia, serif; font-size: 20px; font-weight: 600; color: var(--ink); margin: 0 0 8px; line-height: 1.15; }
.decor-desc { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0 0 18px; }
.decor-swatches { display: flex; flex-wrap: wrap; gap: 14px; }
.decor-swatch { margin: 0; width: 84px; text-align: center; }
.decor-swatch img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
.decor-swatch figcaption { margin-top: 7px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); line-height: 1.2; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); max-width: var(--maxw); margin: 0 auto; padding: 28px 20px 56px; font-size: 13px; color: var(--muted); }
.site-footer p { margin: 0 0 6px; }

/* ---------- Hidden (filtered out) ---------- */
.card[hidden], .xcard[hidden] { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .proscons { grid-template-columns: 1fr; gap: 18px; }
  .decor-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .controls { gap: 12px; }
  .count { margin-left: 0; width: 100%; }
  .hero-head { padding-top: 40px; }
}

/* ---------- Community gallery ---------- */
.hero-cta { margin: 14px 0 0; }
.hero-cta a { font-weight: 700; }
.community { max-width: 1180px; margin: 0 auto; padding: 8px 20px 32px; }
.csec { margin: 0 0 56px; }
.csec-head { display: flex; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 8px; }
.csec-head h2 { font-size: clamp(24px, 3.5vw, 34px); margin: 0; }
.csec-count { font-size: 13px; color: var(--muted); font-weight: 700; letter-spacing: .06em; }
.csec-blurb { color: var(--muted); margin: 0 0 22px; max-width: 64ch; font-size: 15px; }
/* Masonry via CSS columns: photos keep their natural aspect ratio, no crop. */
.cgrid { columns: 3 280px; column-gap: 22px; }
.cphoto {
  margin: 0 0 22px; break-inside: avoid; -webkit-column-break-inside: avoid;
  display: block; background: transparent; border: 0; border-radius: 0;
  box-shadow: none; overflow: visible;
}
.cphoto-link { display: block; overflow: hidden; background: #e7e0d2; border-radius: 3px; }
.cphoto-link img { width: 100%; height: auto; display: block; transition: transform .35s ease, filter .35s ease; }
.cphoto-link:hover img { transform: scale(1.03); filter: brightness(1.03); }
.cphoto-cap { padding: 9px 2px 0; font-size: 13px; line-height: 1.45; }
.cphoto-desc { display: block; color: var(--ink); margin-bottom: 2px; }
.cphoto-credit { display: block; color: var(--muted); font-size: 12px; letter-spacing: .01em; }
.cphoto-credit a { color: var(--muted); }
.cphoto-credit a:hover { color: var(--copper-deep); }
.community-foot { max-width: 1180px; margin: 0 auto; padding: 0 20px 56px; font-size: 14px; }

/* ---------- Credits page ---------- */
.credits { max-width: 820px; margin: 0 auto; padding: 8px 20px 64px; }
.credit-list { list-style: none; margin: 0; padding: 0; }
.credit { display: flex; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.credit-thumb { flex: 0 0 auto; display: block; width: 120px; height: 90px; border-radius: var(--radius); overflow: hidden; background: #ddd6c8; }
.credit-thumb img { width: 100%; height: 100%; object-fit: cover; }
.credit-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.credit-title { font-weight: 500; color: var(--ink); }
.credit-by { color: var(--muted); font-size: 14px; }
.credit-lic { font-size: 13px; color: var(--muted); }

@media (max-width: 760px) {
  .cgrid { columns: 2 200px; column-gap: 16px; }
  .cphoto { margin-bottom: 16px; }
  .credit-thumb { width: 88px; height: 66px; }
}
@media (max-width: 440px) {
  .cgrid { columns: 1; }
}

/* ---------- Brand bar ---------- */
.brandbar {
  display: inline-flex; align-items: center; gap: 8px;
  max-width: var(--maxw); margin: 0 auto; padding: 18px 20px 0;
  width: 100%; font-family: 'Fraunces', Georgia, serif; font-weight: 600;
  font-size: 16px; color: var(--ink); letter-spacing: -.01em;
}
.brandbar:hover { text-decoration: none; color: var(--copper-deep); }
.brandbar-mark { color: var(--copper-text); font-size: 13px; transform: translateY(-1px); }

/* ---------- Family grid (home) ---------- */
.fam-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 8px 20px 72px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.fam {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  color: inherit; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.fam:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(31,27,22,.06), 0 20px 48px rgba(31,27,22,.16); text-decoration: none; }
.fam-media { position: relative; aspect-ratio: 16/10; background: #ddd6c8; overflow: hidden; }
.fam-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.fam:hover .fam-media img { transform: scale(1.05); }
.fam-plans {
  position: absolute; bottom: 10px; right: 10px; background: rgba(31,27,22,.80);
  color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(2px);
}
.fam-flag {
  position: absolute; top: 10px; left: 10px; background: var(--copper);
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 2px;
}
.fam-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; }
.fam-name { font-size: 27px; margin: 0; }
.fam-range { font-size: 15px; font-weight: 700; color: var(--copper-deep); margin: 0 0 10px; font-variant-numeric: tabular-nums; }
.fam-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 18px; margin: 0; justify-content: start; }
.fam-stats .spec dt { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.fam-stats .spec dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }

/* Tow class badges — used on family cards and explore cards */
.tow-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; letter-spacing: .03em;
  padding: 3px 10px; border-radius: 100px;
  line-height: 1.3;
}
.tow-badge--half-ton { background: color-mix(in srgb, #2e7d32 14%, var(--surface, #fff)); color: #2e7d32; }
.tow-badge--three-quarter { background: color-mix(in srgb, #e65100 12%, var(--surface, #fff)); color: #bf360c; }
.tow-badge--one-ton { background: color-mix(in srgb, #b71c1c 12%, var(--surface, #fff)); color: #b71c1c; }
.fam-body .tow-badge { margin-top: 8px; align-self: flex-start; }
.xcard-tow { margin-top: 6px; }
.xcard-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.xcard-tag { font-size: 10px; font-weight: 600; letter-spacing: .04em; padding: 2px 7px; border-radius: 999px; line-height: 1.4; color: var(--muted); background: color-mix(in srgb, var(--line) 50%, transparent); }
.xcard-tag--solo { color: #5b6abf; background: rgba(91,106,191,.10); }
.xcard-tag--family { color: #b05c32; background: rgba(176,92,50,.10); }
.xcard-tag--couples { color: #8b5a8b; background: rgba(139,90,139,.10); }
.xcard-tag--off-grid { color: #3a7d44; background: rgba(58,125,68,.10); }
.xcard-tag--luxury { color: #8b7632; background: rgba(139,118,50,.12); }
.xcard-tag--full-time { color: #4a7c8b; background: rgba(74,124,139,.10); }
.xcard-tag--national_parks { color: #6b7c3a; background: rgba(107,124,58,.10); }

/* ---------- Family page hero ---------- */
.fam-hero {
  position: relative; max-width: var(--maxw); margin: 12px auto 0; padding: 0 20px;
}
.fam-hero-img {
  width: 100%; aspect-ratio: 16/7; object-fit: cover;
  border-radius: 8px; box-shadow: var(--shadow); background: #ddd6c8;
}
.fam-hero-overlay {
  position: absolute; left: 20px; right: 20px; bottom: 0;
  padding: 28px 30px; border-radius: 0 0 8px 8px; color: #fff;
  background: linear-gradient(to top, rgba(20,16,12,.82) 0%, rgba(20,16,12,.45) 55%, rgba(20,16,12,0) 100%);
}
.fam-hero-overlay h1 { font-size: clamp(34px, 6vw, 60px); margin: 0; color: #fff; }
.fam-hero-meta { margin: 8px 0 0; font-size: clamp(14px, 2vw, 17px); color: rgba(255,255,255,.92); font-variant-numeric: tabular-nums; }
.eyebrow-light { color: #f0c9b4; }
.fam-flag-inline {
  position: static; display: inline-block; vertical-align: middle;
  margin-left: 10px; font-size: 12px;
}

@media (max-width: 900px) {
  .fam-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 560px) {
  .fam-grid { grid-template-columns: 1fr; }
  .fam-hero-img { aspect-ratio: 4/3; }
  .fam-hero-overlay { padding: 20px; }
}

/* ============================================================ */
/* Top navigation (all pages)                                   */
/* ============================================================ */
/* Top navigation (all pages) — sticky frosted bar.             */
/* The bar itself is full-bleed and pinned to the top so the    */
/* tabs stay reachable on very long pages (detail pages run     */
/* ~8000px; the mobile campsites list ~88000px). A max-width    */
/* inner wrapper keeps the brand+tabs aligned to the page grid. */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
/* Once the page is scrolled, app.js adds .is-stuck → hairline + soft shadow
   so the bar reads as a distinct layer floating over the content. */
.topnav.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(31,27,22,.02), 0 6px 20px -12px rgba(31,27,22,.35);
}
.topnav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: padding .25s ease;
}
.topnav.is-stuck .topnav-inner { padding-top: 9px; padding-bottom: 9px; }
.topnav .brandbar { padding: 0; margin: 0; width: auto; flex: 0 0 auto; }
.topnav-links { display: flex; gap: 6px; flex: 0 1 auto; }
.topnav-links a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  padding: 7px 13px; border-radius: 999px; min-height: 38px;
  display: inline-flex; align-items: center; white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}
.topnav-links a:hover { color: var(--ink); background: rgba(176,92,50,.08); text-decoration: none; }
.topnav-links a.is-active {
  color: var(--copper-deep); font-weight: 700; background: rgba(176,92,50,.10);
}
.topnav-links a.is-active:hover { background: rgba(176,92,50,.16); }
@media (max-width: 560px) {
  /* On phones the brand stacks above a single-line, horizontally scrollable
     tab strip — so the strip is always exactly one row tall (no wrap-jump
     between pages) and every tab stays one tap away. */
  .topnav-inner {
    flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 0 0;
  }
  .topnav .brandbar { padding: 0 16px; }
  .topnav-links {
    gap: 4px; padding: 2px 12px 9px; overflow-x: auto; flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    -ms-overflow-style: none; scroll-snap-type: x proximity;
  }
  .topnav-links::-webkit-scrollbar { display: none; }
  .topnav-links a { padding: 6px 13px; font-size: 13px; flex: 0 0 auto; scroll-snap-align: start; }
  /* On the stacked mobile layout the desktop symmetric-padding shrink would
     ADD bottom padding (the strip already sits flush). Override so the stuck
     bar tightens from the top instead of growing. */
  .topnav.is-stuck .topnav-inner { padding-top: 6px; padding-bottom: 0; }
}

/* ============================================================ */
/* Explore hub — editorial view toggle (magazine section divider,*/
/* NOT a SaaS pill). Two modes: By family / All floorplans.      */
/* ============================================================ */
.viewseg {
  max-width: var(--maxw); margin: 28px auto 4px; padding: 0 20px;
  display: flex; gap: 36px; align-items: flex-end;
  border-bottom: 1px solid var(--line);
}
.viewseg-btn {
  display: inline-flex; flex-direction: column; gap: 2px;
  padding: 0 0 14px; margin-bottom: -1px;
  color: var(--muted); border-bottom: 2px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.viewseg-btn:hover { color: var(--ink); text-decoration: none; border-bottom-color: var(--line); }
.viewseg-label {
  font-family: 'Fraunces', Georgia, serif; font-weight: 600;
  font-size: clamp(20px, 3vw, 28px); line-height: 1.05; letter-spacing: -.01em;
}
.viewseg-sub {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
}
.viewseg-btn.is-active { color: var(--copper-deep); border-bottom-color: var(--copper); }
.viewseg-btn.is-active .viewseg-sub { color: var(--copper-text); }
@media (max-width: 560px) {
  .viewseg { gap: 22px; margin-top: 20px; }
  .viewseg-btn { padding-bottom: 10px; }
  .viewseg-sub { font-size: 10px; letter-spacing: .12em; }
}

/* Hub views: JS toggles [hidden] on each. Without JS both are shown (the
   page is still complete + usable); the toggle just deep-links/scrolls. */
.hub-view[hidden] { display: none; }
.explore-shim-note {
  max-width: var(--maxw); margin: 18px auto 0; padding: 0 20px;
  font-size: 14px; font-weight: 600;
}

/* ============================================================ */
/* Explore page                                                 */
/* ============================================================ */
.explore-head { max-width: var(--maxw); margin: 0 auto; padding: 40px 20px 8px; }
.explore-head h1 { font-size: clamp(34px, 6vw, 60px); margin: 0 0 10px; }
.explore-head .lede { font-size: clamp(15px, 2vw, 19px); color: var(--muted); max-width: 64ch; margin: 0; }

/* Vehicle-type segmented control (All / Travel trailers / Motorhomes).
   Editorial, not a SaaS pill: letterspaced caps with a copper underline on the
   active segment, echoing the .viewseg hub toggle but lighter-weight. */
.xc-type {
  display: inline-flex; gap: 28px; align-items: flex-end;
  margin: 22px 0 0; border-bottom: 1px solid var(--line);
}
.xc-type-btn {
  appearance: none; background: none; border: 0; cursor: pointer;
  padding: 0 0 10px; margin-bottom: -1px;
  font-family: 'Fraunces', Georgia, serif; font-weight: 600;
  font-size: clamp(15px, 1.7vw, 19px); letter-spacing: .01em; line-height: 1.1;
  color: var(--muted); border-bottom: 2px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.xc-type-btn:hover { color: var(--ink); border-bottom-color: var(--line); }
.xc-type-btn.is-active { color: var(--copper-deep); border-bottom-color: var(--copper); }
@media (max-width: 560px) {
  .xc-type { gap: 18px; }
  .xc-type-btn { font-size: 15px; padding-bottom: 8px; }
}

/* --- Tow-vehicle matcher --- */
.tow-tool {
  max-width: var(--maxw); margin: 24px auto 0; padding: 0 20px;
}
.tow-tool-inner {
  background: linear-gradient(135deg, #2A2017 0%, #3A2A1C 100%); color: #F4EFE6;
  border-radius: 10px; padding: 24px 26px; display: flex; flex-wrap: wrap;
  gap: 26px 40px; align-items: flex-start; box-shadow: var(--shadow);
}
.tow-field { flex: 1 1 320px; min-width: 280px; }
.tow-field > label { display: block; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #E8B89A; font-weight: 700; margin-bottom: 10px; }
.tow-input-row { display: flex; align-items: center; gap: 10px; }
#tow-input {
  font: inherit; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums;
  width: 160px; padding: 10px 14px; border: 1px solid rgba(244,239,230,.25);
  border-radius: 6px; background: rgba(244,239,230,.06); color: #fff;
}
#tow-input:focus { outline: 2px solid var(--copper); outline-offset: 1px; }
.tow-unit { font-size: 18px; color: rgba(244,239,230,.7); font-weight: 600; }
.tow-clear { font: inherit; font-size: 13px; background: transparent; color: #E8B89A; border: 1px solid rgba(232,184,154,.4); border-radius: 999px; padding: 6px 14px; cursor: pointer; min-height: 38px; }
.tow-clear:hover { background: rgba(232,184,154,.12); }
.tow-hint { font-size: 13px; color: rgba(244,239,230,.66); margin: 12px 0 0; max-width: 52ch; line-height: 1.5; }
.tow-hint strong { color: #F4EFE6; }
.tow-presets { flex: 0 1 auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tow-presets-label { font-size: 13px; color: rgba(244,239,230,.7); width: 100%; margin-bottom: 2px; }
.tow-preset {
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 40px;
  background: rgba(244,239,230,.08); color: #F4EFE6; border: 1px solid rgba(244,239,230,.2);
  border-radius: 999px; padding: 8px 14px; font-variant-numeric: tabular-nums;
}
.tow-preset:hover { background: rgba(244,239,230,.16); }
.tow-preset.is-active { background: var(--copper); border-color: var(--copper); color: #fff; }
.tow-summary {
  max-width: var(--maxw); margin: 14px auto 0; font-size: 15px; color: var(--ink);
  background: #FBF3E9; border: 1px solid #E7CDB4; border-left: 3px solid var(--copper);
  border-radius: 6px; padding: 12px 16px;
}
.tow-insights-stat { display: block; font-weight: 600; margin-bottom: 2px; }
.tow-insights-picks { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.tow-pick {
  flex: 1 1 140px; display: flex; gap: 8px; align-items: flex-start;
  padding: 10px 12px; background: var(--bg, #FAF8F5); border: 1px solid var(--line, #E8E4DE);
  border-radius: 8px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.tow-pick:hover { border-color: var(--copper); box-shadow: 0 2px 8px rgba(184,115,51,.12); }
.tow-pick-icon { font-size: 20px; flex-shrink: 0; line-height: 1; margin-top: 1px; }
.tow-pick-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tow-pick-label { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.tow-pick-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tow-pick-stat { font-size: 12px; color: var(--muted); }
@media (max-width: 560px) { .tow-insights-picks { flex-direction: column; } .tow-pick { flex-basis: auto; } }

/* --- Explore controls --- */
.explore-controls { max-width: var(--maxw); margin: 28px auto 0; padding: 0 20px; display: flex; flex-direction: column; gap: 14px; }
.xc-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.xc-row-2 { align-items: center; }
.xc-search { flex: 1 1 280px; position: relative; }
.xc-search input {
  font: inherit; width: 100%; padding: 11px 14px; min-height: 46px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink);
}
.xc-search input:focus, .explore-controls select:focus { outline: 2px solid var(--copper); outline-offset: 1px; }

/* --- Search autocomplete dropdown --- */
.x-suggest {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 30;
  margin: 4px 0 0; padding: 4px 0; list-style: none;
  background: var(--surface, #F3EFEB); border: 1px solid var(--line, #E2DDD8);
  border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
  max-height: 320px; overflow-y: auto;
}
.x-suggest[hidden] { display: none; }
.x-suggest-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; cursor: pointer; font-size: 14px; color: var(--ink);
  transition: background 0.1s;
}
.x-suggest-item:hover, .x-suggest-item.is-focused {
  background: var(--copper, #B8763E); color: #fff;
}
.x-suggest-item .x-sug-thumb {
  width: 48px; height: 32px; object-fit: cover; border-radius: 4px;
  flex-shrink: 0; background: var(--line);
}
.x-suggest-item .x-sug-label { flex: 1; }
.x-suggest-item .x-sug-label strong { font-weight: 600; }
.x-suggest-item .x-sug-meta {
  font-size: 12px; color: var(--muted); white-space: nowrap;
}
.x-suggest-item:hover .x-sug-meta, .x-suggest-item.is-focused .x-sug-meta { color: rgba(255,255,255,.75); }

/* --- Swipe navigation hint --- */
.swipe-hint {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 40;
  padding: 12px 16px; border-radius: 8px;
  background: var(--ink, #1F1B16); color: var(--bg, #FAF8F5);
  font: 500 14px/1.3 'DM Sans', sans-serif;
  opacity: 0; pointer-events: none;
  transition: opacity 0.15s;
}
.swipe-hint.is-visible { opacity: 0.85; }
.swipe-hint--prev { left: 12px; }
.swipe-hint--next { right: 12px; }
.xc-sort, .xc-year, .xc-sleeps { display: flex; flex-direction: column; gap: 4px; }
.xc-sort label, .xc-year label, .xc-sleeps label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.explore-controls select {
  font: inherit; padding: 10px 12px; min-height: 46px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--surface); color: var(--ink);
}
.xc-tags { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; }
.tagfilter {
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 38px;
  background: var(--surface); color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px;
}
.tagfilter:hover { border-color: var(--copper); color: var(--copper-deep); }
.tagfilter[aria-pressed="true"] { background: var(--copper); border-color: var(--copper); color: #fff; }
.xc-reset { font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 38px; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; }
.xc-reset:hover { color: var(--ink); border-color: var(--muted); }
.xcount { max-width: var(--maxw); margin: 22px auto 0; padding: 0 20px; font-size: 14px; color: var(--muted); }
.xcount span { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.xcount-note { font-weight: 400; color: var(--muted); font-size: 13px; }

/* --- Explore grid --- */
.xgrid {
  max-width: var(--maxw); margin: 10px auto 0; padding: 0 20px 16px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.xcard {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .16s ease, box-shadow .16s ease, opacity .2s ease;
}
.xcard:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(31,27,22,.06), 0 16px 40px rgba(31,27,22,.12); }
.xcard.is-over { opacity: .5; }
.xcard.is-over:hover { opacity: .85; }
.xcard-link { color: inherit; display: flex; flex-direction: column; }
.xcard-link:hover { text-decoration: none; }
.xcard-media {
  position: relative; aspect-ratio: 3/2; overflow: hidden;
  background: radial-gradient(125% 135% at 50% 16%, #faf6ef 0%, #f0e8d8 52%, #e7ddc8 100%);
}
.xcard-media img {
  width: 100%; height: 100%; object-fit: cover;
  /* Studio shots ship on pure white; `darken` over the warm gradient drops the
     white to the brand cream while leaving the (darker) silver body true —
     turns an e-commerce cutout into an editorial "floating on warm light"
     frame. Non-white photos (the 2 Globetrotter grass shots) are all darker
     than the gradient, so darken preserves them intact. */
  mix-blend-mode: darken;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.xcard-link:hover .xcard-media img { transform: scale(1.045); }
.xcard-year { position: absolute; top: 10px; left: 10px; background: rgba(31,27,22,.78); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 4px 9px; border-radius: 2px; }
.xcard-body { padding: 14px 16px 6px; }
.xcard-title { font-size: 20px; margin: 0 0 10px; }
.xcard-title span { color: var(--copper-deep); }
.xcard-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 14px; margin: 0; }
.xcard-specs .spec dt { font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0; }
.xcard-specs .spec dd { margin: 1px 0 0; font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.xcard-foot { margin-top: auto; padding: 10px 16px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); }
.xcard-fit { font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.fit-comfortable { color: #3f7d54; }
.fit-within { color: #b07a1f; }
.fit-over { color: #b04a2f; }
.xcard-compare { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.xcard-compare input { width: 16px; height: 16px; accent-color: var(--copper); cursor: pointer; }
.xempty { max-width: var(--maxw); margin: 8px auto 0; padding: 40px 20px; text-align: center; color: var(--muted); font-size: 16px; }
.linklike { font: inherit; background: none; border: none; color: var(--copper-deep); cursor: pointer; text-decoration: underline; padding: 0; }

/* --- Compare sticky bar (explore) --- */
.cmp-bar {
  position: sticky; bottom: 16px; max-width: 560px; margin: 16px auto 40px;
  background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 12px 10px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  box-shadow: 0 10px 30px rgba(31,27,22,.28); z-index: 20;
}
.cmp-bar-text { font-size: 14px; }
.cmp-bar-text strong { font-size: 16px; }
.cmp-bar-actions { display: flex; gap: 8px; align-items: center; }
.cmp-bar-clear { font: inherit; font-size: 13px; background: transparent; color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 40px; }
.cmp-bar-clear:hover { color: #fff; }
.cmp-bar-go { font-size: 14px; font-weight: 700; background: var(--copper); color: #fff; border-radius: 999px; padding: 9px 18px; min-height: 40px; display: inline-flex; align-items: center; }
.cmp-bar-go:hover { background: var(--copper-deep); text-decoration: none; }
.cmp-bar-delta { display: block; font-size: 12px; color: rgba(255,255,255,.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cmp-bar-delta[hidden] { display: none; }
@media (max-width: 560px) { .cmp-bar { flex-wrap: wrap; border-radius: 16px; gap: 8px; } .cmp-bar-delta { white-space: normal; font-size: 11px; } }

@media (max-width: 900px) { .xgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .xgrid { grid-template-columns: 1fr; }
  .tow-tool-inner { padding: 18px; gap: 18px; }
  #tow-input { font-size: 22px; width: 130px; }
}

/* ============================================================ */
/* Compare page                                                 */
/* ============================================================ */
.cmp-pick { max-width: var(--maxw); margin: 22px auto 0; padding: 0 20px; position: relative; }
#cmp-search {
  font: inherit; width: 100%; max-width: 460px; padding: 12px 14px; min-height: 48px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink);
}
#cmp-search:focus { outline: 2px solid var(--copper); outline-offset: 1px; }
.cmp-suggest { list-style: none; margin: 4px 0 0; padding: 6px; position: absolute; z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); max-width: 460px; width: calc(100% - 40px); }
.cmp-suggest-item { font: inherit; display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 4px; cursor: pointer; color: var(--ink); min-height: 40px; }
.cmp-suggest-item:hover { background: rgba(176,92,50,.1); }
.cmp-chosen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cmp-chip { display: inline-flex; align-items: center; gap: 4px; background: rgba(176,92,50,.1); border: 1px solid rgba(176,92,50,.25); color: var(--copper-deep); font-size: 14px; font-weight: 600; padding: 6px 8px 6px 14px; border-radius: 999px; }
.cmp-chip-x { font: inherit; font-size: 18px; line-height: 1; background: none; border: 0; color: var(--copper-deep); cursor: pointer; padding: 0 4px; }
.cmp-chip-x:hover { color: var(--ink); }
.cmp-placeholder { max-width: var(--maxw); margin: 28px auto 64px; padding: 8px 20px; text-align: center; }
.cmp-empty-lead { color: var(--muted); font-size: 16px; margin: 12px 0 22px; }
.cmp-starter {
  display: grid; gap: 14px; text-align: left;
  grid-template-columns: repeat(3, 1fr); max-width: 980px; margin: 0 auto;
}
.cmp-starter-card {
  display: flex; flex-direction: column; gap: 7px;
  padding: 18px 18px 20px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink); text-decoration: none;
  transition: border-color .14s ease, transform .12s ease, box-shadow .14s ease;
}
.cmp-starter-card:hover {
  border-color: var(--copper); transform: translateY(-2px);
  box-shadow: var(--shadow); text-decoration: none;
}
.cmp-starter-tag {
  font: 700 11px/1 "DM Sans", sans-serif; letter-spacing: .06em; text-transform: uppercase;
  color: var(--copper-deep);
}
.cmp-starter-card strong { font: 600 16px/1.3 "Fraunces", serif; color: var(--ink); }
.cmp-starter-sub { font-size: 13px; color: var(--muted); line-height: 1.4; }
.cmp-empty-foot { color: var(--muted); font-size: 14.5px; margin: 24px 0 0; }
@media (max-width: 760px) {
  .cmp-starter { grid-template-columns: 1fr; max-width: 460px; }
}
.cmp-table-wrap { max-width: var(--maxw); margin: 28px auto 64px; padding: 0 20px; overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.cmp-table thead th { vertical-align: bottom; padding: 0 10px 14px; text-align: center; }
.cmp-table thead th:first-child { width: 1%; }
.cmp-col-head { display: flex; flex-direction: column; align-items: center; gap: 6px; color: inherit; }
.cmp-col-head img { width: 100%; max-width: 200px; aspect-ratio: 3/2; object-fit: cover; border-radius: 6px; background: #ddd6c8; box-shadow: var(--shadow); }
.cmp-col-name { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 18px; }
.cmp-col-year { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .06em; }
.cmp-table tbody th { text-align: left; font-weight: 600; color: var(--muted); font-size: 14px; padding: 13px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cmp-table tbody td { text-align: center; padding: 13px 10px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.cmp-table tbody tr:nth-child(odd) td, .cmp-table tbody tr:nth-child(odd) th { background: rgba(176,92,50,.03); }
.cmp-best { color: #3f7d54; position: relative; }
.cmp-best::after { content: '★'; font-size: 10px; margin-left: 4px; vertical-align: top; color: #3f7d54; }
@media (max-width: 560px) {
  .cmp-col-name { font-size: 15px; }
  .cmp-table tbody th, .cmp-table tbody td { font-size: 13px; padding: 10px 6px; }
}

/* --- Detail page: towing callout --- */
.tow-callout {
  margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center;
  background: linear-gradient(135deg, #2A2017 0%, #3A2A1C 100%); color: #F4EFE6;
  border-radius: 8px; padding: 20px 24px;
}
.tow-callout-main { flex: 0 0 auto; }
.tow-callout-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #E8B89A; font-weight: 700; margin: 0 0 4px; }
.tow-callout-value { font-family: 'Fraunces', Georgia, serif; font-size: 30px; font-weight: 600; margin: 0; font-variant-numeric: tabular-nums; }
.tow-callout-value span { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; color: rgba(244,239,230,.7); margin-left: 8px; letter-spacing: .02em; }
.tow-callout-note { flex: 1 1 280px; font-size: 13px; line-height: 1.5; color: rgba(244,239,230,.78); margin: 0; }
.tow-callout-note a { color: #E8B89A; font-weight: 600; white-space: nowrap; }
.tow-callout-note a:hover { color: #fff; }
@media (max-width: 560px) { .tow-callout { padding: 16px 18px; } .tow-callout-value { font-size: 26px; } }

/* ============================================================
   ESTIMATORS — off-grid endurance (detail pages)
   ============================================================ */
.estimator {
  max-width: var(--maxw); margin: 26px auto 0; padding: 26px 28px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.est-head h2 {
  font-family: 'Fraunces', Georgia, serif; font-size: 24px; font-weight: 600;
  margin: 0 0 6px; letter-spacing: -.01em;
}
.est-sub { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0 0 18px; max-width: 70ch; }
.est-controls {
  display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end;
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.est-field { display: flex; flex-direction: column; gap: 6px; }
.est-field-wide { flex: 1 1 280px; min-width: 240px; }
.est-field label { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.est-field select, .est-field input[type="number"] {
  font: inherit; padding: 10px 12px; min-height: 46px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--card); color: var(--ink);
}
.est-field select:focus, .est-field input:focus { outline: 2px solid var(--copper); outline-offset: 1px; border-color: var(--copper); }
.est-field-check { padding-bottom: 4px; }
.est-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); cursor: pointer; min-height: 46px; }
.est-check input { width: 18px; height: 18px; accent-color: var(--copper); }
.est-input-suffix { display: inline-flex; align-items: center; gap: 6px; }
.est-input-suffix input { width: 92px; }
.est-input-suffix span { font-size: 14px; color: var(--muted); font-weight: 600; }

.est-result { padding: 20px 0 4px; }
.est-big { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.est-number {
  font-family: 'Fraunces', Georgia, serif; font-size: 44px; font-weight: 600;
  line-height: 1; color: var(--copper-deep); font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.est-per { font-family: 'DM Sans', sans-serif; font-size: 18px; color: var(--muted); font-weight: 500; margin-left: 2px; }
.est-number-cap {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  color: var(--copper-text); background: rgba(176,92,50,.1); padding: 5px 11px; border-radius: 100px;
}
.est-detail { font-size: 14px; color: var(--muted); margin: 12px 0 0; }

.est-bars { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.est-bar { display: grid; grid-template-columns: 96px 1fr 76px; align-items: center; gap: 12px; }
.est-bar-label { font-size: 13px; color: var(--ink); font-weight: 500; }
.est-bar-track { height: 8px; background: #EDE5D6; border-radius: 100px; overflow: hidden; }
.est-bar-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--copper), var(--copper-deep)); border-radius: 100px; }
.est-bar-val { font-size: 13px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

.est-method { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.est-method summary { font-size: 13px; font-weight: 600; color: var(--copper-text); cursor: pointer; list-style: none; }
.est-method summary::-webkit-details-marker { display: none; }
.est-method summary::before { content: '+ '; font-weight: 700; }
.est-method[open] summary::before { content: '– '; }
.est-method p { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 10px 0 2px; max-width: 80ch; }

@media (max-width: 640px) {
  .estimator { padding: 20px 18px; }
  .est-number { font-size: 36px; }
  .est-bar { grid-template-columns: 80px 1fr 64px; gap: 8px; }
}

/* ===================== Tow-safety calculator ===================== */
.towtool {
  max-width: var(--maxw); margin: 26px auto 0; padding: 26px 28px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.tow-head h2 {
  font-family: 'Fraunces', Georgia, serif; font-size: 24px; font-weight: 600;
  margin: 0 0 6px; letter-spacing: -.01em;
}
.tow-sub { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0 0 18px; max-width: 72ch; }
.tow-sub strong { color: var(--ink); }
.tow-controls {
  display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end;
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.tow-field { display: flex; flex-direction: column; gap: 6px; }
.tow-field-wide { flex: 1 1 360px; min-width: 260px; }
.tow-field label { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.tow-field select {
  font: inherit; padding: 10px 12px; min-height: 46px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--card); color: var(--ink); max-width: 100%;
}
.tow-field select:focus { outline: 2px solid var(--copper); outline-offset: 1px; border-color: var(--copper); }

/* Verdict banner — color-coded by safety grade. */
.tow-verdict {
  margin: 20px 0 0; padding: 16px 18px; border-radius: 8px;
  border: 1px solid var(--line); border-left-width: 4px;
  display: flex; flex-direction: column; gap: 6px;
}
.tow-verdict-badge { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tow-verdict-label { font-family: 'Fraunces', Georgia, serif; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.tow-verdict-vehicle { font-size: 13px; font-weight: 600; color: var(--muted); }
.tow-verdict-blurb { font-size: 14px; line-height: 1.5; color: var(--ink); margin: 0; }
/* Grade palettes: green (ok), amber (tight), red (over). */
.tow-verdict.tow-ok { background: #EEF6EE; border-color: #BFE0C0; border-left-color: #3E8E41; }
.tow-verdict.tow-ok .tow-verdict-label { color: #2E6B30; }
.tow-verdict.tow-tight { background: #FBF3E3; border-color: #EAD49C; border-left-color: #C9920E; }
.tow-verdict.tow-tight .tow-verdict-label { color: #9A6C04; }
.tow-verdict.tow-over { background: #FBEDEA; border-color: #ECC2B8; border-left-color: #C0492E; }
.tow-verdict.tow-over .tow-verdict-label { color: #9E3A22; }

/* The three usage meters. */
.tow-checks { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.tow-check { display: flex; flex-direction: column; gap: 5px; }
.tow-check-top { display: flex; justify-content: space-between; align-items: baseline; }
.tow-check-label { font-size: 13px; color: var(--ink); font-weight: 600; }
.tow-check-pct { font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.tow-check-track { height: 9px; background: #EDE5D6; border-radius: 100px; overflow: hidden; }
.tow-check-fill { display: block; height: 100%; border-radius: 100px; }
.tow-check-fill.tow-ok { background: linear-gradient(90deg, #5BAE5E, #3E8E41); }
.tow-check-fill.tow-tight { background: linear-gradient(90deg, #E2B23C, #C9920E); }
.tow-check-fill.tow-over { background: linear-gradient(90deg, #D26A4F, #C0492E); }
.tow-check-nums { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.tow-config { max-width: var(--maxw); margin: 16px 0 0; font-size: 13px; }
.tow-config a { color: var(--copper-deep); font-weight: 600; }
.tow-config a:hover { color: var(--copper-text); }

.tow-method { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.tow-method summary { font-size: 13px; font-weight: 600; color: var(--copper-text); cursor: pointer; list-style: none; }
.tow-method summary::-webkit-details-marker { display: none; }
.tow-method summary::before { content: '+ '; font-weight: 700; }
.tow-method[open] summary::before { content: '– '; }
.tow-method p { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 10px 0 2px; max-width: 82ch; }
.tow-method ul { margin: 8px 0; padding-left: 20px; }
.tow-method li { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 4px 0; }
.tow-method strong { color: var(--ink); }

@media (max-width: 640px) {
  .towtool { padding: 20px 18px; }
  .tow-verdict-label { font-size: 18px; }
  .tow-field-wide { flex-basis: 100%; }
}

/* ===================== Campground Finder ===================== */
.cg-hero { max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 20px; }
.cg-hero .eyebrow { font: 600 12px/1 "DM Sans", sans-serif; letter-spacing: .18em; color: var(--copper-text); margin: 0 0 14px; }
.cg-hero h1 { font: 600 clamp(34px, 6vw, 56px)/1.02 "Fraunces", serif; margin: 0 0 14px; letter-spacing: -.01em; }
.cg-hero .lede { font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 70ch; margin: 0; }
.cg-hero .lede strong { color: var(--ink); }

/* ---- curated collections rail (editorial discovery lenses) ---- */
.cg-collections { max-width: var(--maxw); margin: 0 auto; padding: 8px 24px 4px; }
.cg-col-scroll::-webkit-scrollbar { height: 6px; }
.cg-col-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.cg-col:hover { border-color: rgba(176,92,50,.45); transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.cg-col:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
.cg-col-eyebrow { font: 700 9.5px/1 "DM Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-text); }
.cg-col-label { font: 600 15px/1.15 "Fraunces", serif; letter-spacing: -.005em; }
.cg-col-count { font: 600 11px/1 "DM Sans", sans-serif; color: var(--muted); letter-spacing: .02em; }
.cg-col.is-on { background: var(--copper); border-color: var(--copper); color: #fff; box-shadow: var(--shadow); }
.cg-col.is-on .cg-col-eyebrow, .cg-col.is-on .cg-col-count { color: rgba(255,255,255,.82); }
.cg-col-all { justify-content: center; min-width: 0; }
.cg-col-all .cg-col-label { font-size: 14px; }
@media (prefers-reduced-motion: reduce) {
  .cg-col { transition: none; }
  .cg-col:hover { transform: none; }
}
@media (max-width: 640px) {
  .cg-collections { padding: 6px 16px 2px; }
  .cg-col { min-width: 124px; padding: 10px 13px; }
}

.cg-ctl { display: flex; flex-direction: column; gap: 6px; }
.cg-ctl-grow { flex: 1 1 220px; min-width: 180px; }
.cg-ctl label, .cg-check { font: 600 12px/1 "DM Sans", sans-serif; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.cg-ctl select:focus, .cg-ctl input:focus { outline: 2px solid var(--copper); outline-offset: 1px; border-color: var(--copper); }
.cg-len-wrap { display: flex; align-items: center; gap: 6px; }
.cg-len-wrap input { width: 92px; }
.cg-len-unit { font: 500 14px "DM Sans", sans-serif; color: var(--muted); }
.cg-ctl-check { flex-direction: column; gap: 8px; align-items: start; }
.cg-check { display: inline-flex; align-items: center; gap: 7px; text-transform: none; letter-spacing: 0; cursor: pointer; color: var(--ink); font-weight: 500; }
.cg-check input { width: 16px; height: 16px; accent-color: var(--copper); }
.cg-reset:hover { border-color: var(--copper); background: var(--surface); }

.cg-summary { max-width: var(--maxw); margin: 6px auto 0; padding: 6px 24px 0; font: 500 15px "DM Sans", sans-serif; color: var(--muted); }
.cg-summary strong { color: var(--ink); font-weight: 700; }
.cg-src-tag { display: inline-block; margin-left: 8px; padding: 3px 9px; border-radius: 999px; font: 600 11px/1 "DM Sans", sans-serif; letter-spacing: .03em; vertical-align: middle; }
.cg-src-live { background: #e3f1e8; color: #2e7d4f; }
.cg-src-static { background: #ece6da; color: var(--muted); }
.cg-src-fallback { background: #fbeede; color: var(--copper-deep); }

/* #cg-map.cg-map (id+class) deliberately out-specifies MapLibre's
   `.maplibregl-map{position:relative}`, which loads AFTER site.css and would
   otherwise win the cascade tie and kill the sticky desktop map. */
/* First-paint placeholder inside the map box — replaces the blank gray flash
   until the basemap style loads. app.js removes it in onMapReady() (every init
   path — vector load, raster fallback, watchdog — converges there). */
.cg-map-loading-pin { font-size: 26px; color: var(--copper); opacity: .75; animation: cgPinPulse 1.4s ease-in-out infinite; }
.cg-map-loading-txt { font: 600 13px/1 "DM Sans", sans-serif; letter-spacing: .04em; }
@keyframes cgPinPulse { 0%,100% { transform: translateY(0); opacity: .55; } 50% { transform: translateY(-4px); opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .cg-map-loading-pin { animation: none; } }
/* Honest fallback when WebGL is unavailable: the interactive map can't draw,
   but the full list below still works. Replaces the loading placeholder. */
.cg-map-fallback-pin { font-size: 26px; color: var(--copper); opacity: .8; }
.cg-map-fallback strong { font: 600 16px/1.2 "Fraunces", serif; color: var(--ink); }
.cg-map-fallback span { font: 500 13px/1.5 "DM Sans", sans-serif; max-width: 30ch; }
/* Basemap switcher — a compact editorial segmented control, lower-left of the
   map. Frosted light shell so it reads over both the warm paper vector map and
   dark satellite imagery. */
.cg-basemap-btn:hover { color: var(--ink); }
.cg-basemap-btn.is-on { background: var(--copper); color: #fff; box-shadow: 0 1px 4px rgba(160,82,45,.4); }
.cg-basemap-btn:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .cg-basemap-btn { transition: none; } }
@media (max-width: 640px) { .cg-basemap-btn { padding: 6px 11px; font-size: 11px; } }
.cg-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-height: 200px; }
.cg-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(31,27,22,.06), 0 14px 32px rgba(31,27,22,.10); }
.cg-card-img { width: 100%; height: 132px; object-fit: cover; display: block; background: #e7e0d3; }
.cg-card-noimg { display: grid; place-items: center; font-size: 30px; color: var(--line); }
.cg-card-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 5px; }
.cg-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cg-card-name { font: 600 16px/1.18 "Fraunces", serif; margin: 2px 0 0; letter-spacing: -.005em; }
.cg-card-where { font: 500 12.5px "DM Sans", sans-serif; color: var(--muted); margin: 0; }
.cg-card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 0; font: 500 12.5px "DM Sans", sans-serif; color: var(--ink); }
.cg-card-meta span { white-space: nowrap; }
.cg-stars { font: 600 13px "DM Sans", sans-serif; color: var(--copper-deep); }

.cg-fit { font: 600 11px/1 "DM Sans", sans-serif; letter-spacing: .02em; padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.cg-fit-fits { background: #e3f1e8; color: #2e7d4f; }
.cg-fit-tight { background: #fbf0d8; color: #9a6a10; }
.cg-fit-no { background: #f7e0db; color: #c0392b; }
.cg-fit-unknown { background: #ece6da; color: var(--muted); }
.cg-fit-limit { background: #efeae0; color: #6b6258; }

.cg-empty { grid-column: 1 / -1; padding: 40px 16px; text-align: center; color: var(--muted); font: 500 16px "DM Sans", sans-serif; }
.cg-loading { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 48px 16px; color: var(--muted); font: 500 16px "DM Sans", sans-serif; }
.cg-retry { margin-left: 8px; font: 600 14px "DM Sans", sans-serif; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 18px; cursor: pointer; }
.cg-retry:hover { border-color: var(--copper); color: var(--copper); }
.cg-more { max-width: var(--maxw); margin: 0 auto; padding: 4px 24px 0; text-align: center; }
.cg-more-btn { font: 600 14px "DM Sans", sans-serif; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 28px; cursor: pointer; }
.cg-more-btn:hover { border-color: var(--copper); color: var(--copper); }
.cg-src { max-width: var(--maxw); margin: 18px auto 0; padding: 0 24px; font-size: 12.5px; line-height: 1.55; }

/* Popup inner content → editorial (.cg-pop is our markup inside the MapLibre popup) */
.cg-pop { font: 500 13px/1.45 "DM Sans", sans-serif; color: var(--ink); min-width: 170px; }
.cg-pop strong { font: 600 15px "Fraunces", serif; }
.cg-pop a { color: var(--copper-text); font-weight: 600; text-decoration: none; }
.cg-pop-fit { display: inline-block; margin-top: 4px; padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; }
/* MapLibre popup chrome → editorial (popup created with className 'cg-ml-popup') */
.cg-ml-popup .maplibregl-popup-close-button:hover { background: #f1ece2; color: var(--ink); }
.cg-ml-popup .maplibregl-popup-tip { border-top-color: var(--surface); }

@media (max-width: 880px) {
  .cg-layout { grid-template-columns: 1fr; }
  #cg-map.cg-map { height: 360px; position: relative; top: 0; order: -1; }
  .cg-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .cg-list { grid-template-columns: 1fr; }
  .cg-controls { gap: 12px; }
}

/* --- Fit confidence + "why this verdict" explainer (campground cards) ------ */
.cg-conf-posted { background: currentColor; opacity: .85; }
.cg-fit { display: inline-flex; align-items: center; }
.cg-fit-why-fits { background: #edf6f0; border-left-color: #2e7d4f; color: #2c6344; }
.cg-fit-why-tight { background: #fcf4e2; border-left-color: #c98a16; color: #855c10; }
.cg-fit-why-no { background: #fae7e2; border-left-color: #c0392b; color: #9c3022; }
.cg-fit-why-unknown { background: #efeee9; border-left-color: #9a9488; color: #6a6358; }
.cg-pop-why { display: block; margin: 4px 0 6px; font: 500 12px/1.4 "DM Sans", sans-serif; color: #555; }

/* --- Detail-page "Where the <model> fits" panel ------------------------- */
/* NB: container class is `.cgfit` (NOT `.cg-fit` — that's the pill chip used on
   campground cards; reusing it here collapsed the whole section into an inline
   nowrap pill and blew the layout out to ~3300px wide). */
.cgfit {
  max-width: var(--maxw); margin: 40px auto 8px; padding: 0 24px;
}
.cgfit-head { margin: 0 0 18px; }
.cgfit h2 {
  font: 600 26px/1.15 "Fraunces", serif; letter-spacing: -.01em;
  margin: 0 0 8px; color: var(--ink);
}
.cg-fit-sub strong { color: var(--ink); font-weight: 700; }

/* Four horizontal proportion bars: [label] [====track====] [value] */
.cg-bar-fits { background: #2e7d4f; }
.cg-bar-tight { background: #c98a16; }
.cg-bar-unknown { background: #9a9488; }
.cg-bar-no { background: #c0392b; }

/* Responsive card grid — was unconstrained, so 6 cards forced horizontal
   overflow. Auto-fill keeps cards a sane width and wraps to rows. */
.cg-fit-cta { margin: 18px 0 0; }
.cg-fit-link:hover { border-bottom-color: var(--copper); }
.cg-fit-src { margin: 16px 0 0; max-width: 80ch; font-size: 12.5px; line-height: 1.55; }

@media (max-width: 560px) {
  .cgfit { padding: 0 18px; }
  .cgfit h2 { font-size: 22px; }
  .cg-bar { grid-template-columns: 108px 1fr 48px; gap: 9px; }
  .cg-bar-label { font-size: 12px; }
  .cgfit .cg-card-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* --- Enriched per-site fit: honesty banner, fit lines, badges/pills ------- */
.cg-fit-honesty-icon { color: var(--copper-text); font-size: 11px; line-height: 1.5; flex: 0 0 auto; }
/* Editorial pill badges (hookups / pull-through / elevation) */
.cg-card-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.cg-pill-hook-full { background: #e8f3ec; border-color: #bcdcc7; color: #2c6344; }
.cg-pill-hook-electric { background: #fcf4e2; border-color: #ecd9a8; color: #855c10; }
.cg-pill-hook-none { background: #f1ece4; border-color: var(--line); color: var(--muted); }
.cg-pill-pt { background: #efeaf6; border-color: #d4c9e6; color: #5a4a78; }
.cg-pill-el-low, .cg-pill-el-moderate { background: #f3ece0; color: var(--muted); }
.cg-pill-el-elevated { background: #eef1f5; border-color: #cdd6e0; color: #4a5a6e; }
.cg-pill-el-high { background: #e9eef5; border-color: #c0cee0; color: #355074; }
.cg-conf-persite { background: #2e7d4f; opacity: .9; }

/* Map clusters are GPU-rendered MapLibre circle+symbol layers (see app.js
   'cg-clusters'/'cg-cluster-count'), styled via paint props in JS — no DOM
   bubble elements, so the old .marker-cluster/.cg-cluster CSS was removed. */

/* --- Saved shortlist: heart button on cards + popups --------------------- */
.cg-card-outer { position: relative; display: flex; }
.cg-card-outer > .cg-card { flex: 1 1 auto; }
.cg-save:hover { transform: scale(1.08); background: var(--card); }
.cg-save.is-saved { background: var(--copper); color: #fff; border-color: var(--copper); }
.cg-pop-actions { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.cg-pop-save.is-saved { background: var(--copper); color: #fff; border-color: var(--copper); }

/* --- Saved tray --------------------------------------------------------- */
.cg-tray { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.cg-tray-heart { color: var(--copper); }
.cg-tray.has-saved .cg-tray-count { background: var(--copper); color: #fff; }
.cg-tray-empty { margin: 0; color: var(--muted); font: 500 13.5px "DM Sans", sans-serif; }
.cg-tray-head { display: flex; align-items: center; gap: 10px; font: 500 13px "DM Sans", sans-serif; color: var(--muted); margin-bottom: 8px; }
.cg-tray-head strong { color: var(--ink); }
.cg-tray-clear { margin-left: auto; font: 600 12px "DM Sans", sans-serif; cursor: pointer; color: var(--copper-deep); background: none; border: 0; text-decoration: underline; }
.cg-tray-scroll { overflow-x: auto; }
.cg-tray-table { width: 100%; border-collapse: collapse; font: 500 13px "DM Sans", sans-serif; }
.cg-tray-table th { text-align: left; font: 600 11px "DM Sans", sans-serif; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 0 10px 6px 0; white-space: nowrap; }
.cg-tray-table td { padding: 7px 10px 7px 0; border-top: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.cg-tr-name { white-space: normal; min-width: 160px; }
.cg-tr-name a { color: var(--ink); font-weight: 600; text-decoration: none; }
.cg-tr-name a:hover { color: var(--copper-deep); text-decoration: underline; }
.cg-tr-where { display: block; color: var(--muted); font-size: 11.5px; }
.cg-tr-x { width: 26px; height: 26px; border-radius: 50%; cursor: pointer; border: 1px solid var(--line); background: #faf4ee; color: var(--muted); font-size: 15px; line-height: 1; }
.cg-tr-x:hover { color: #c0392b; border-color: #e2b3aa; }

/* --- Share-this-view button --------------------------------------------- */
.cg-share:hover { background: var(--copper-deep); border-color: var(--copper-deep); }
.cg-share.is-copied { background: #2e7d4f; border-color: #2e7d4f; }

/* --- Availability drawer (#7 per-site fit, #8 hookups, #10 this weekend) -- */
.cg-avail-btn:hover { background: #f6e8dc; border-color: var(--copper); }
.cg-pop-avail { font: 600 12px "DM Sans", sans-serif; cursor: pointer; color: var(--copper-deep); background: #faf4ee; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }

.cg-drawer { position: fixed; inset: 0; z-index: 1000; }
.cg-drawer[hidden] { display: none; }
.cg-drawer-scrim { position: absolute; inset: 0; background: rgba(31,27,22,.42); backdrop-filter: blur(2px); animation: cgFade .18s ease; }
@keyframes cgFade { from { opacity: 0; } }
@keyframes cgSlide { from { transform: translateX(28px); opacity: .6; } }
.cg-drawer-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.cg-drawer-title { font: 600 19px/1.2 "Fraunces", serif; margin: 0; flex: 1; letter-spacing: -.01em; }
.cg-drawer-x { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; cursor: pointer; border: 1px solid var(--line); background: var(--surface); font-size: 20px; line-height: 1; color: var(--muted); }
.cg-drawer-x:hover { color: var(--ink); border-color: var(--copper); }
.cg-drawer-body { overflow-y: auto; padding: 16px 20px 28px; }

.cg-av-controls { margin-bottom: 12px; }
.cg-av-segs { display: flex; gap: 6px; background: #efe8dd; padding: 4px; border-radius: 10px; }
.cg-av-seg { flex: 1; cursor: pointer; font: 600 12.5px "DM Sans", sans-serif; color: var(--muted); background: transparent; border: 0; border-radius: 7px; padding: 8px 6px; }
.cg-av-seg.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(31,27,22,.12); }
.cg-av-range { font: 500 13px "DM Sans", sans-serif; color: var(--muted); margin: 9px 2px 0; }
.cg-av-range strong { color: var(--copper-deep); }

.cg-av-status { display: flex; align-items: center; gap: 9px; padding: 22px 4px; color: var(--muted); font: 500 14px "DM Sans", sans-serif; }
.cg-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #d9cdbb; border-top-color: var(--copper); animation: cgSpin .7s linear infinite; }
@keyframes cgSpin { to { transform: rotate(360deg); } }
.cg-av-error { padding: 16px; background: #fae7e2; border: 1px solid #e6bdb2; border-radius: 10px; font: 500 13.5px/1.5 "DM Sans", sans-serif; color: #9c3022; }
.cg-av-error a, .cg-av-none a { color: var(--copper-deep); font-weight: 600; }

.cg-av-headline { font: 500 15px/1.45 "DM Sans", sans-serif; color: var(--ink); margin: 14px 2px 6px; }
.cg-av-headline strong { color: var(--copper-deep); font-weight: 700; }
.cg-av-none { color: var(--muted); }
.cg-av-note { font: 500 12px/1.45 "DM Sans", sans-serif; color: var(--muted); margin: 0 2px 12px; }
.cg-av-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.cg-av-site { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; border-left-width: 3px; }
.cg-av-site.cg-av-fits { border-left-color: #2e7d4f; }
.cg-av-site.cg-av-tight { border-left-color: #c98a16; }
.cg-av-site.cg-av-limit, .cg-av-site.cg-av-unknown { border-left-color: #b6ab99; }
.cg-av-site-id { font: 600 14px "DM Sans", sans-serif; color: var(--ink); }
.cg-av-loop { font-weight: 500; color: var(--muted); font-size: 12px; }
.cg-av-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cg-av-fit { font: 600 11px/1 "DM Sans", sans-serif; padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.cg-av-hook { font: 600 11px/1 "DM Sans", sans-serif; padding: 4px 8px; border-radius: 999px; white-space: nowrap; background: #ece6da; color: var(--muted); }
.cg-av-hook.has-elec { background: #e3eef5; color: #2c5d7c; }
.cg-av-book { display: inline-block; margin-top: 4px; font: 600 13.5px "DM Sans", sans-serif; color: #fff; background: var(--copper); border-radius: 9px; padding: 11px 18px; text-decoration: none; }
.cg-av-book:hover { background: var(--copper-deep); }
body.cg-drawer-open { overflow: hidden; }

/* ---------- Upgrades & options ---------- */
.up-jump {
  max-width: var(--maxw); margin: 0 auto 8px; padding: 0 20px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.up-jump a {
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--copper-deep); background: rgba(176,92,50,.08);
  border: 1px solid rgba(176,92,50,.20); border-radius: 999px;
  padding: 6px 13px; white-space: nowrap;
}
.up-jump a:hover { background: rgba(176,92,50,.16); text-decoration: none; }
.upgrades { max-width: var(--maxw); margin: 0 auto; padding: 16px 20px 24px; }
.up-sec { margin: 0 0 52px; scroll-margin-top: 84px; }
.up-sec-head { display: flex; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 10px; }
.up-sec-head h2 { font-size: clamp(22px, 3.2vw, 32px); margin: 0; }
.up-sec-count { font-size: 13px; color: var(--muted); font-weight: 700; letter-spacing: .06em; }
.up-sec-blurb { color: var(--muted); margin: 0 0 22px; max-width: 72ch; font-size: 15px; }
/* Featured factory-program comparison table */
.up-table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 2px; padding: 22px 22px 16px; margin: 0 0 26px; box-shadow: 0 1px 2px rgba(40,28,16,.04); }
.up-table-title { font-family: var(--serif); font-size: clamp(17px, 2.4vw, 21px); margin: 0 0 6px; color: var(--ink); }
.up-table-intro { color: var(--muted); font-size: 14px; margin: 0 0 16px; max-width: 76ch; }
.up-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.up-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
.up-table thead th { text-align: left; font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--copper-deep); padding: 0 14px 9px 0; border-bottom: 2px solid var(--copper); white-space: nowrap; }
.up-table tbody th, .up-table tbody td { padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.4; }
.up-table tbody th { font-weight: 700; color: var(--ink); font-family: var(--sans); text-align: left; min-width: 150px; }
.up-table tbody td { color: var(--ink-soft, #4a4036); }
.up-table tbody tr:last-child th, .up-table tbody tr:last-child td { border-bottom: 0; }
.up-table-note { font-size: 12.5px; margin: 12px 0 0; max-width: 78ch; }
@media (max-width: 640px) { .up-table-wrap { padding: 16px 14px 12px; } }

.up-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.up-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
}
.up-media {
  position: relative; aspect-ratio: 16/9;
  background: linear-gradient(135deg, #e8dfd0 0%, #d8cbb6 100%);
  overflow: hidden;
}
.up-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(40,28,18,0) 55%, rgba(40,28,18,.18) 100%);
}
.up-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.up-card:hover .up-media img { transform: scale(1.045); }
.up-card-body { padding: 20px 22px 18px; display: flex; flex-direction: column; flex: 1; }
.up-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.up-name { font-family: 'Fraunces', Georgia, serif; font-size: 19px; font-weight: 600; color: var(--ink); margin: 0; line-height: 1.18; }
.up-badge {
  flex: 0 0 auto; font-size: 10.5px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid;
  white-space: nowrap; margin-top: 2px;
}
.up-badge.is-factory { color: #2f6b46; background: rgba(63,125,84,.10); border-color: rgba(63,125,84,.28); }
.up-badge.is-after { color: var(--copper-deep); background: rgba(176,92,50,.10); border-color: rgba(176,92,50,.26); }
.up-badge.is-both { color: #6a5330; background: rgba(160,120,50,.12); border-color: rgba(160,120,50,.30); }
.up-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.up-fits {
  font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; border: 1px solid; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
}
.up-fits::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; opacity: .85; }
.up-fits.is-trailer { color: #3a6ea5; background: rgba(58,110,165,.10); border-color: rgba(58,110,165,.28); }
.up-fits.is-coach { color: #8a5a2b; background: rgba(138,90,43,.10); border-color: rgba(138,90,43,.28); }
.up-fits.is-allrigs { color: #5a6a52; background: rgba(90,106,82,.10); border-color: rgba(90,106,82,.28); }
.up-price { font-size: 14px; font-weight: 700; color: var(--copper-deep); margin: 0 0 10px; letter-spacing: .01em; }
.up-why { font-size: 14px; line-height: 1.6; color: var(--ink); margin: 0 0 12px; }
.up-popular { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 0 0 12px; padding: 11px 13px; background: rgba(176,92,50,.05); border-left: 2px solid var(--copper); border-radius: 0 var(--radius) var(--radius) 0; }
.up-popular-label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--copper-deep); margin-bottom: 3px; }
.up-sources { margin-top: auto; font-size: 13px; }
.up-sources summary { cursor: pointer; color: var(--muted); font-weight: 600; letter-spacing: .02em; padding: 4px 0; }
.up-sources summary:hover { color: var(--copper-deep); }
.up-sources ul { margin: 6px 0 2px; padding-left: 18px; }
.up-sources li { margin: 4px 0; line-height: 1.45; }
.up-foot { max-width: var(--maxw); margin: 0 auto; padding: 0 20px 56px; font-size: 13px; }

/* --- Community-signal meter (●●●○) on each card + in the legend ---------- */
.up-consensus { display: flex; align-items: center; gap: 9px; margin: 0 0 11px; }
.up-pips { display: inline-flex; gap: 3px; align-items: center; }
.up-pip { width: 7px; height: 7px; border-radius: 999px; background: transparent; border: 1.5px solid var(--copper); opacity: .42; }
.up-pip.is-on { background: var(--copper); opacity: 1; }
.up-tier { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--copper-deep); }

/* --- Use-case chips on a card (non-interactive labels) ------------------- */
.up-ucs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.up-uc {
  font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--muted);
  background: rgba(31,27,22,.035); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 10px; line-height: 1.5;
}

/* --- The "why this signal" evidence line --------------------------------- */
.up-evidence { font-size: 12.5px; line-height: 1.55; color: var(--muted); margin: 0 0 12px; }
.up-evidence-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--copper-deep); margin-bottom: 3px; }

/* --- Legend: how the community signal is judged -------------------------- */
.up-legend { max-width: var(--maxw); margin: 0 auto 6px; padding: 0 20px; }
.up-legend > summary {
  cursor: pointer; font-size: 13px; font-weight: 700; letter-spacing: .02em;
  color: var(--copper-deep); padding: 8px 0; list-style: none; display: inline-flex; align-items: center; gap: 7px;
}
.up-legend > summary::-webkit-details-marker { display: none; }
.up-legend > summary::before { content: "▸"; font-size: 11px; transition: transform .15s ease; }
.up-legend[open] > summary::before { transform: rotate(90deg); }
.up-legend-body { padding: 6px 0 14px; max-width: 80ch; }
.up-legend-lede { font-size: 13.5px; line-height: 1.6; color: var(--ink); margin: 0 0 14px; }
.up-legend-row { display: grid; grid-template-columns: 70px 130px 1fr; gap: 12px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--line); }
.up-legend-name { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--copper-deep); }
.up-legend-blurb { font-size: 13px; line-height: 1.5; color: var(--muted); }
.up-legend-note { font-size: 12.5px; margin: 12px 0 0; }

/* --- Filter lens (revealed by JS) --------------------------------------- */
.up-lens { max-width: var(--maxw); margin: 8px auto 4px; padding: 16px 20px; }
.up-lens-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; }
.up-lens-label {
  flex: 0 0 64px; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.up-lens-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.up-chip {
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 38px;
  background: var(--surface); color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.up-chip:hover { border-color: var(--copper); color: var(--copper-deep); transform: translateY(-1px); }
.up-chip[aria-pressed="true"] { background: var(--copper); border-color: var(--copper); color: #fff; box-shadow: 0 2px 6px rgba(138,69,36,.22); }
.up-lens-foot { display: flex; align-items: center; gap: 16px; padding-top: 2px; border-top: 1px solid var(--line); margin-top: 4px; }
.up-lens-count { font-size: 14px; color: var(--muted); padding-top: 12px; font-variant-numeric: tabular-nums; }
.up-lens-reset {
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 38px;
  background: transparent; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 16px; margin-top: 10px;
}
.up-lens-reset:hover { color: var(--ink); border-color: var(--muted); }
.up-empty { max-width: var(--maxw); margin: 8px auto 0; padding: 0 20px 8px; font-size: 15px; color: var(--muted); }
.linkbtn { font: inherit; background: none; border: 0; padding: 0; color: var(--copper-deep); font-weight: 700; cursor: pointer; text-decoration: underline; }

@media (max-width: 860px) {
  .up-grid { grid-template-columns: 1fr; }
  .up-legend-row { grid-template-columns: 60px 1fr; }
  .up-legend-blurb { grid-column: 1 / -1; }
  .up-lens-label { flex-basis: 100%; }
}

/* ── "View on airstream.com" official source links ─────────────────────── */
.official-link {
  color: var(--copper-deep);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(176, 92, 50, .35);
  transition: border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.official-link:hover,
.official-link:focus-visible { color: var(--copper-text); border-bottom-color: var(--copper); }
.floorplan-fig figcaption .official-link { white-space: normal; }

/* ===========================================================================
   INTERACTIVE FLOORPLAN ZONES — touch-friendly numbered points over the
   official diagram (replaces the old hover-only hotspots that broke on mobile).
   The .floorplan-stage is an inline-block sized EXACTLY to the image, so the
   percentage-positioned dots land on the right spot at any width.
   =========================================================================== */
.floorplan-hint { font-size: 13px; color: var(--ink); margin: 0 0 14px; }
.floorplan-hint .muted { color: var(--muted); }
.floorplan-stage { position: relative; display: inline-block; line-height: 0; max-width: 460px; }
.floorplan-stage .floorplan-img { max-width: 460px; }
.fp-overlay { position: absolute; inset: 0; pointer-events: none; }

/* Each marker is a zero-size anchor placed at the zone's % point. The dot is
   centred on it and the popover is positioned relative to it — so the bubble
   tracks its own dot instead of the whole image. */
.fp-marker { position: absolute; width: 0; height: 0; }

/* The numbered dot, centred on its marker. pointer-events re-enabled here so
   the overlay stays click-through except on the actual targets. */
.fp-dot {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); pointer-events: auto;
  display: inline-flex; align-items: center; gap: 0; cursor: pointer;
  background: none; border: 0; padding: 0; margin: 0; z-index: 2;
}
.fp-dot-num {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 13px/1 var(--sans, system-ui); color: #fff;
  background: var(--copper, #b05c32); border: 2px solid #fff;
  box-shadow: 0 2px 7px rgba(60,40,20,.35); transition: transform .12s ease, background .12s ease;
}
.fp-dot:hover .fp-dot-num,
.fp-dot:focus-visible .fp-dot-num { transform: scale(1.14); background: var(--copper-deep, #8c4626); }
.fp-dot[aria-expanded="true"] .fp-dot-num { background: var(--copper-deep, #8c4626); transform: scale(1.14); }
.fp-dot:focus-visible { outline: none; }
.fp-dot:focus-visible .fp-dot-num { box-shadow: 0 0 0 3px rgba(176,92,50,.4), 0 2px 7px rgba(60,40,20,.35); }
/* The inline label that the dot would carry is hidden on the diagram (the
   legend below carries the words); it stays in the a11y tree via aria-label. */
.fp-dot-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The popover bubble shown when a dot is active. Anchored to the marker. */
.fp-pop {
  position: absolute; left: 0; bottom: 12px; transform: translateX(-50%);
  width: max-content; max-width: 230px; z-index: 5; text-align: left; line-height: 1.4;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  box-shadow: 0 8px 26px rgba(40,30,20,.22);
}
.fp-pop[hidden] { display: none; }
.fp-pop::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 7px solid transparent; border-top-color: var(--card);
}
/* Markers high on the diagram flip their bubble below the dot so it can't clip
   off the top of the figure. */
.fp-marker--below .fp-pop { bottom: auto; top: 12px; }
.fp-marker--below .fp-pop::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--card); }
.fp-pop-title { display: block; font-size: 13px; color: var(--ink); margin: 0 0 3px; }
.fp-pop-text { display: block; font-size: 12.5px; color: var(--muted); }

/* The always-visible legend below the diagram — the no-JS fallback and the
   primary small-screen experience. Highlights in sync with the active dot. */
.fp-legend { list-style: none; margin: 18px auto 0; padding: 0; max-width: 460px; text-align: left; }
.fp-leg-item { display: flex; gap: 11px; align-items: flex-start; padding: 8px 9px; border-radius: 9px; transition: background .12s ease; }
.fp-leg-item + .fp-leg-item { margin-top: 2px; }
.fp-leg-item.is-active { background: rgba(176,92,50,.09); }
.fp-leg-num {
  width: 22px; height: 22px; border-radius: 50%; flex: none; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 12px/1 var(--sans, system-ui); color: #fff; background: var(--copper, #b05c32);
}
.fp-leg-body { font-size: 13.5px; color: var(--muted); }
.fp-leg-body strong { color: var(--ink); font-weight: 700; }

.official-head { margin: 14px 0 0; font-size: 13px; letter-spacing: .02em; }
.fam-hero-official { margin: 12px 0 0; }
.official-link-light {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, .5);
  font-size: clamp(13px, 1.7vw, 15px);
}
.official-link-light:hover,
.official-link-light:focus-visible { color: #fff; border-bottom-color: #fff; }

/* =========================================================================
   OVERNIGHT STAYS PAGE — where to park your Airstream tonight (Recreation.gov)
   Two intents: "view" (off-grid, big views) and "utility" (full hookups).
   Photo-forward editorial cards; harmonized with the upgrades/campground
   card language. Class prefix: ov-.
   ========================================================================= */

/* Two-lens legend under the hero — a card per intent, accent-tinted. */
.ov-legend {
  max-width: var(--maxw); margin: 20px auto 8px; padding: 4px 20px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
.ov-legend-card {
  position: relative; display: grid; grid-template-columns: 46px 1fr;
  column-gap: 14px; align-items: start;
  padding: 18px 20px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  border-top: 3px solid var(--line);
}
.ov-legend-card--view { border-top-color: #3f7d54; }
.ov-legend-card--utility { border-top-color: var(--copper); }
.ov-legend-ico {
  grid-row: 1 / 3; align-self: start; width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
}
.ov-legend-card--view .ov-legend-ico { color: #2f6b46; background: rgba(63,125,84,.10); }
.ov-legend-card--utility .ov-legend-ico { color: var(--copper-deep); background: rgba(176,92,50,.10); }
.ov-legend-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.ov-legend-name { font-family: 'Fraunces', Georgia, serif; font-size: 17px; font-weight: 600; color: var(--ink); margin: 0; }
.ov-legend-n {
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 700;
  color: var(--copper-deep); background: rgba(176,92,50,.10);
  border: 1px solid rgba(176,92,50,.22); border-radius: 999px;
  padding: 1px 8px; margin-left: 5px; vertical-align: 1px; font-variant-numeric: tabular-nums;
}
.ov-legend-card--view .ov-legend-n { color: #2f6b46; background: rgba(63,125,84,.10); border-color: rgba(63,125,84,.24); }
.ov-legend-tag { font-size: 13px; font-weight: 600; color: var(--copper-deep); letter-spacing: .01em; margin: 4px 0 6px; }
.ov-legend-card--view .ov-legend-tag { color: #2f6b46; }
.ov-legend-blurb { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 0; }

/* Filter lens — icon chips (single-select with an "All" reset) + sort + count.
   Server-rendered hidden; app.js reveals it so no-JS readers get the full list. */
.ov-lens {
  max-width: var(--maxw); margin: 14px auto 2px; padding: 12px 20px 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}
.ov-lens-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.ov-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-size: 13.5px; font-weight: 600; letter-spacing: .01em;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 15px; min-height: 42px; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s, transform .12s;
}
.ov-chip .ov-ico { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.ov-chip:hover { border-color: var(--copper); color: var(--copper-deep); transform: translateY(-1px); }
.ov-chip.is-on { background: var(--copper); border-color: var(--copper); color: #fff; box-shadow: 0 2px 6px rgba(138,69,36,.22); }
.ov-chip[data-value="view"].is-on { background: #2f6b46; border-color: #2f6b46; box-shadow: 0 2px 6px rgba(47,107,70,.24); }
.ov-chip-n { font-size: 12px; font-weight: 700; opacity: .85; font-variant-numeric: tabular-nums; }
.ov-sort {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.ov-sort select {
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 12px; min-height: 42px; cursor: pointer;
}
.ov-sort select:hover { border-color: var(--copper); }
.ov-count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ov-empty { max-width: var(--maxw); margin: 8px auto; padding: 0 20px; color: var(--muted); }

/* Card grid — three up, photo-led. */
.ov-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.ov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 14px 0 8px; }
.ov-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.ov-card:hover { box-shadow: 0 2px 4px rgba(31,27,22,.06), 0 14px 36px rgba(31,27,22,.11); transform: translateY(-2px); }
/* The card sets display:flex, which (equal specificity) overrides the UA
   [hidden] rule — so hiding needs an explicit, higher-priority rule or the
   filter would update the count but never visually remove cards. (Same trap
   the stays/upgrades filters hit; keep this rule.) */
.ov-card[hidden] { display: none !important; }
.ov-media {
  position: relative; display: block; aspect-ratio: 3/2;
  background: linear-gradient(135deg, #e8dfd0 0%, #d8cbb6 100%); overflow: hidden;
}
.ov-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(40,28,18,0) 50%, rgba(40,28,18,.30) 100%);
}
.ov-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.ov-card:hover .ov-media img { transform: scale(1.05); }

/* Intent badge over the photo, lower-left, frosted + accent-tinted. */
.ov-badge {
  position: absolute; left: 11px; bottom: 11px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; padding: 5px 11px 5px 9px; border-radius: 999px;
  background: rgba(31,27,22,.55); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  border: 1px solid rgba(255,255,255,.22);
}
.ov-badge .ov-ico { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.ov-badge--view { background: rgba(47,107,70,.66); }
.ov-badge--utility { background: rgba(138,69,36,.64); }

.ov-body { padding: 16px 18px 17px; display: flex; flex-direction: column; flex: 1; }
.ov-head { margin-bottom: 4px; }
.ov-name { font-family: 'Fraunces', Georgia, serif; font-size: 18px; font-weight: 600; line-height: 1.18; margin: 0; }
.ov-name a { color: var(--ink); }
.ov-name a:hover { color: var(--copper-deep); }
.ov-loc { font-size: 13px; color: var(--copper-deep); font-weight: 600; letter-spacing: .02em; margin: 3px 0 0; }
.ov-forest { font-size: 12.5px; color: var(--muted); margin: 5px 0 0; line-height: 1.4; }

.ov-meta { display: flex; align-items: center; gap: 14px; margin: 11px 0 10px; flex-wrap: wrap; }
.ov-rating { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.ov-star { width: 15px; height: 15px; fill: #C9962B; }
.ov-reviews { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.ov-price { font-size: 14px; font-weight: 700; color: var(--copper-deep); letter-spacing: .01em; }
.ov-per { font-weight: 500; color: var(--muted); font-size: 12px; }

.ov-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ov-pill {
  font-size: 11px; font-weight: 600; letter-spacing: .03em;
  color: var(--muted); background: rgba(31,27,22,.04);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; white-space: nowrap;
}
.ov-pill--power { color: #2f6b46; background: rgba(63,125,84,.09); border-color: rgba(63,125,84,.26); }
.ov-pill--offgrid { color: #5a6b3c; background: rgba(120,140,70,.10); border-color: rgba(120,140,70,.28); }
.ov-pill--elev { color: var(--copper-deep); background: rgba(176,92,50,.07); border-color: rgba(176,92,50,.22); }
.ov-pill--len { color: var(--ink); }

.ov-link { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--copper-deep); letter-spacing: .01em; }
.ov-link:hover { color: var(--copper-text); }
.ov-foot { max-width: var(--maxw); margin: 0 auto; padding: 18px 20px 56px; font-size: 13px; line-height: 1.6; }

@media (max-width: 900px) {
  .ov-grid { grid-template-columns: repeat(2, 1fr); }
  .ov-legend { grid-template-columns: 1fr; gap: 12px; }
  .ov-sort { margin-left: 0; }
}
@media (max-width: 560px) {
  .ov-grid { grid-template-columns: 1fr; }
}

/* ===========================================================================
   CAMPSITES HUB — third lens (Boondocking) + 3-up legend.
   Boondocking is COMMUNITY data (OpenStreetMap), so it gets a visually distinct
   treatment from the verified Recreation.gov cards: a slate/indigo accent (vs
   view-green and utility-copper), an illustrated media slot instead of a photo,
   and an explicit "unverified" provenance line. The two data tiers must read
   as different at a glance — that's the honesty contract.
   =========================================================================== */

/* 3-up legend on wide screens; the responsive block already collapses to 1col */
.ov-legend--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1040px) { .ov-legend--3 { grid-template-columns: 1fr; } }

/* Boondock lens accent (slate-indigo, distinct from view/utility) */
.ov-badge--boondock { background: rgba(74,85,104,.66); }
.ov-legend-card--boondock { border-top-color: #4a5568; }
.ov-legend-card--boondock .ov-legend-ico { color: #3c4657; background: rgba(74,85,104,.10); }
.ov-legend-card--boondock .ov-legend-n { color: #3c4657; background: rgba(74,85,104,.10); border-color: rgba(74,85,104,.24); }
.ov-legend-card--boondock .ov-legend-tag { color: #3c4657; }

/* Tier chip in the legend tagline — names the data source honestly */
.ov-legend-tier {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; border-radius: 999px; padding: 1px 8px; margin-left: 6px;
  vertical-align: 1px;
}
.ov-legend-tier--verified { color: #2f6b46; background: rgba(63,125,84,.10); border: 1px solid rgba(63,125,84,.24); }
.ov-legend-tier--community { color: #3c4657; background: rgba(74,85,104,.12); border: 1px solid rgba(74,85,104,.26); }

/* Boondock card: same shell, illustrated media, honest provenance */
.ov-card--boondock { border-color: #d8d3c8; }
.ov-card--boondock:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.bd-media {
  position: relative; display: block; aspect-ratio: 3/2; overflow: hidden;
  background: linear-gradient(135deg, #efe7d8 0%, #e2d6c0 100%);
}
.bd-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* "Unverified · OpenStreetMap" line — the visual tell that this isn't gov data */
.bd-provenance {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; line-height: 1.35; color: #3c4657;
  background: rgba(74,85,104,.07); border: 1px solid rgba(74,85,104,.18);
  border-radius: 6px; padding: 6px 9px; margin: 10px 0 11px;
}
.bd-prov-ico { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Free / first-come pills (boondock-specific) */
.ov-pill--free { color: #2f6b46; background: rgba(63,125,84,.10); border-color: rgba(63,125,84,.26); }
.ov-pill--fcfs { color: #3c4657; background: rgba(74,85,104,.09); border-color: rgba(74,85,104,.24); }

.bd-coords { font-size: 12px; color: var(--muted); margin: 0 0 12px; font-variant-numeric: tabular-nums; }
.bd-coord-label { font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.bd-links { margin-top: auto; display: flex; align-items: baseline; gap: 16px; }
.bd-osm { font-size: 12px; font-weight: 600; color: var(--muted); }
.bd-osm:hover { color: var(--copper-deep); }

/* ---- Boondocking Intelligence Panel (bd-intel) ----
   The new data-rich section showing solar harvest, dark sky, nearest services,
   and best visit months — all from reliable, labeled sources. Sits between the
   pills and the coordinates, adding real planning value to each card.
   ----------------------------------------------------------------- */
.bd-media-badges {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  display: flex; gap: 5px;
}
.bd-darksky-pin {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .03em;
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  white-space: nowrap; cursor: default;
}

.bd-intel {
  background: rgba(74,85,104,.06); border: 1px solid rgba(74,85,104,.15);
  border-radius: 8px; padding: 10px 12px; margin: 10px 0 12px;
  display: flex; flex-direction: column; gap: 7px;
}
.bd-intel-row {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  font-size: 12px; line-height: 1.35;
}
.bd-intel-ico {
  font-size: 13px; flex: none; width: 18px; text-align: center;
}
.bd-intel-label {
  font-weight: 700; color: #3c4657; font-size: 11px; letter-spacing: .03em;
  text-transform: uppercase; flex: none; min-width: 38px;
}
.bd-intel-val {
  color: var(--ink); font-size: 12px; font-variant-numeric: tabular-nums;
}
.bd-solar-bar-wrap {
  height: 5px; background: rgba(74,85,104,.12); border-radius: 999px;
  overflow: hidden; margin: -3px 0 1px;
}
.bd-solar-bar-track {
  width: 100%; height: 100%;
}
.bd-solar-bar-fill {
  height: 100%; background: linear-gradient(90deg, #f0a85a 0%, #f5c842 100%);
  border-radius: 999px; transition: width .4s ease;
}
.bd-intel-note {
  font-size: 10.5px; color: var(--muted); margin: 2px 0 0; line-height: 1.4;
  font-style: italic;
}

/* ===========================================================================
   CAMPSITES MAP — one map for all three lenses, above the grid. Sits inline
   (not sticky like the Finder map) between the filter chips and the card grid.
   Reuses the same self-hosted China-safe basemap + /tiles/ proxy as the Finder.
   =========================================================================== */
.cs-map-wrap { margin: 4px 0 22px; }
#cs-map.cs-map {
  position: relative; height: 480px; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); background: #dfe5e2;
  overflow: hidden; z-index: 0;
}
/* First-paint placeholder until the basemap style loads (removed in onReady). */
.cs-map-loading {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; pointer-events: none;
  color: var(--muted); background: #dfe5e2;
}
.cs-map-loading-pin { font-size: 26px; color: var(--copper); opacity: .75; animation: cgPinPulse 1.4s ease-in-out infinite; }
.cs-map-loading-txt { font: 600 13px/1 "DM Sans", sans-serif; letter-spacing: .04em; }
@media (prefers-reduced-motion: reduce) { .cs-map-loading-pin { animation: none; } }
/* Honest fallback when WebGL/library can't load — the list below still works. */
.cs-map-fallback {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; text-align: center;
  padding: 24px; background: #dfe5e2; color: var(--muted);
}
.cs-map-fallback-pin { font-size: 26px; color: var(--copper); opacity: .8; }
.cs-map-fallback strong { font: 600 16px/1.2 "Fraunces", serif; color: var(--ink); }
.cs-map-fallback span { font: 500 13px/1.5 "DM Sans", sans-serif; max-width: 30ch; }

/* Caption under the map: the dot legend + the boondock-unverified caveat. */
.cs-map-note { margin: 10px 2px 0; font-size: 12.5px; line-height: 1.5; }
.cs-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  margin: 0 2px 0 7px; vertical-align: baseline; border: 1.5px solid #fff;
  box-shadow: 0 0 0 1px rgba(31,27,22,.12);
}
.cs-dot--view { background: #3f7d54; }
.cs-dot--utility { background: #b05c32; }
.cs-dot--boondock { background: #4a5568; }

/* Basemap switcher — identical editorial segmented control to the Finder. */
.cs-basemap {
  position: absolute; left: 10px; bottom: 10px; z-index: 2; display: inline-flex;
  padding: 3px; gap: 2px; border-radius: 999px; border: 1px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(28,25,20,.18);
}
.cs-basemap-btn {
  appearance: none; border: 0; cursor: pointer; background: transparent; color: #6b6258;
  font: 600 12px/1 "DM Sans", sans-serif; letter-spacing: .02em; padding: 7px 13px;
  border-radius: 999px; transition: background .18s ease, color .18s ease;
}
.cs-basemap-btn:hover { color: var(--ink); }
.cs-basemap-btn.is-on { background: var(--copper); color: #fff; box-shadow: 0 1px 4px rgba(160,82,45,.4); }
.cs-basemap-btn:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .cs-basemap-btn { transition: none; } }

/* Map popup — editorial card matching the site palette. */
.cs-ml-popup .maplibregl-popup-content {
  font-family: "DM Sans", sans-serif; padding: 13px 15px 12px; border-radius: 12px;
  border: 1px solid var(--line); box-shadow: 0 6px 26px rgba(28,25,20,.18); background: var(--surface);
}
.cs-ml-popup .maplibregl-popup-close-button { font-size: 18px; color: var(--muted); padding: 2px 7px; border-radius: 7px; }
.cs-ml-popup .maplibregl-popup-close-button:hover { background: #f1ece2; color: var(--ink); }
.cs-ml-popup .maplibregl-popup-tip { border-top-color: var(--surface); }
.cs-pop { display: flex; flex-direction: column; gap: 3px; min-width: 150px; }
.cs-pop-lens {
  align-self: flex-start; font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: #fff; padding: 2px 8px; border-radius: 999px; margin-bottom: 3px;
}
.cs-pop-lens--view { background: #3f7d54; }
.cs-pop-lens--utility { background: #b05c32; }
.cs-pop-lens--boondock { background: #4a5568; }
.cs-pop strong { font: 600 15px/1.25 "Fraunces", serif; color: var(--ink); }
.cs-pop-loc { font-size: 12.5px; color: var(--muted); }
.cs-pop-meta { font-size: 12.5px; color: var(--ink); font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.cs-pop-tier { font-size: 11px; font-weight: 600; color: #3c4657; margin-top: 2px; }
.cs-pop-tier--community::before { content: "\25b3"; margin-right: 4px; }
.cs-pop-actions { margin-top: 8px; }
.cs-pop-actions a { font-size: 12.5px; font-weight: 700; color: var(--copper-deep); }
.cs-pop-actions a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  #cs-map.cs-map { height: 360px; }
  .cs-basemap-btn { padding: 6px 11px; font-size: 11px; }
}

/* ============================================================
   FUEL COST ESTIMATOR (detail pages)
   ============================================================ */
.fuel-tool .est-number { color: var(--copper-deep); }
.fuel-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
}
.fuel-stat { display: flex; flex-direction: column; gap: 3px; }
.fuel-stat-value {
  font-family: 'Fraunces', Georgia, serif; font-size: 20px; font-weight: 600;
  color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.fuel-stat-label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

@media (max-width: 560px) {
  .fuel-stats { grid-template-columns: 1fr 1fr; }
  .fuel-stat-value { font-size: 17px; }
}

/* ============================================================
   PAYLOAD / PACKING CALCULATOR (detail pages)
   ============================================================ */
.payload-tool .est-number { color: var(--ink); font-size: 36px; }
.payload-ok { background: rgba(62,142,65,.12); color: #2E6B30; }
.payload-tight { background: rgba(201,146,14,.12); color: #9A6C04; }
.payload-over { background: rgba(192,73,46,.12); color: #9E3A22; }

.payload-gear { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.payload-gear-title {
  font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px;
}
.payload-gear-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px;
}
.payload-gear-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  font-size: 14px; cursor: pointer; transition: border-color .14s ease, background .14s ease;
}
.payload-gear-item:hover { border-color: var(--copper); background: rgba(176,92,50,.04); }
.payload-gear-item:has(input:checked) { border-color: var(--copper); background: rgba(176,92,50,.08); }
.payload-gear-check { width: 16px; height: 16px; accent-color: var(--copper); flex-shrink: 0; }
.payload-gear-name { flex: 1; font-weight: 500; }
.payload-gear-wt { font-size: 12px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }

@media (max-width: 560px) {
  .payload-tool .est-number { font-size: 28px; }
  .payload-gear-grid { grid-template-columns: 1fr; }
}

/* ===========================================================================
   MAINTENANCE PAGE — a sourced service calendar (class prefix: mt-).
   Harmonized with the upgrades card language: editorial cards, copper accents,
   a severity meter (●●○) and a two-dimension filter lens (cadence + severity).
   =========================================================================== */
.mt-jump {
  max-width: var(--maxw); margin: 0 auto 8px; padding: 0 20px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.mt-jump a {
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--copper-deep); background: rgba(176,92,50,.08);
  border: 1px solid rgba(176,92,50,.20); border-radius: 999px;
  padding: 6px 13px; white-space: nowrap;
}
.mt-jump a:hover { background: rgba(176,92,50,.16); text-decoration: none; }

.maintenance { max-width: var(--maxw); margin: 0 auto; padding: 16px 20px 24px; }
.mt-sec { margin: 0 0 52px; scroll-margin-top: 84px; }
.mt-sec-head { display: flex; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 10px; }
.mt-sec-head h2 { font-size: clamp(22px, 3.2vw, 32px); margin: 0; }
.mt-sec-count { font-size: 13px; color: var(--muted); font-weight: 700; letter-spacing: .06em; }
.mt-sec-blurb { color: var(--muted); margin: 0 0 22px; max-width: 74ch; font-size: 15px; line-height: 1.6; }

.mt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.mt-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
  border-left: 3px solid var(--line);
}
.mt-card[hidden] { display: none !important; }
/* Severity sets the card's left accent — a glanceable triage stripe. */
.mt-card.sev--safety { border-left-color: #b3402e; }
.mt-card.sev--preventive { border-left-color: var(--copper); }
.mt-card.sev--upkeep { border-left-color: #5a7350; }
.mt-card-body { padding: 17px 20px 17px; display: flex; flex-direction: column; flex: 1; }
.mt-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; flex-wrap: wrap; }

/* Interval pill — the "when" badge with its cadence icon, copper-tinted. */
.mt-interval {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--copper-deep); background: rgba(176,92,50,.09);
  border: 1px solid rgba(176,92,50,.22); border-radius: 999px;
  padding: 4px 11px 4px 8px; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.mt-ico { width: 15px; height: 15px; flex: none; }

/* Severity meter (●●○) + label, color-coded by tier. */
.mt-sev { display: inline-flex; align-items: center; gap: 7px; }
.mt-pips { display: inline-flex; gap: 3px; align-items: center; }
.mt-pip { width: 7px; height: 7px; border-radius: 999px; background: transparent; border: 1.5px solid var(--muted); opacity: .4; }
.mt-pip.is-on { opacity: 1; }
.mt-sev-label { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
/* Tier colors: safety = red, preventive = copper, upkeep = muted green. */
.mt-sev.is-safety .mt-pip.is-on { background: #b3402e; border-color: #b3402e; }
.mt-sev.is-safety .mt-sev-label { color: #b3402e; }
.mt-sev.is-preventive .mt-pip.is-on { background: var(--copper); border-color: var(--copper); }
.mt-sev.is-preventive .mt-sev-label { color: var(--copper-deep); }
.mt-sev.is-upkeep .mt-pip.is-on { background: #5a7350; border-color: #5a7350; }
.mt-sev.is-upkeep .mt-sev-label { color: #4c6344; }

.mt-name { font-family: 'Fraunces', Georgia, serif; font-size: 19px; font-weight: 600; color: var(--ink); margin: 0 0 9px; line-height: 1.2; }
.mt-why { font-size: 13.5px; line-height: 1.6; color: var(--ink); margin: 0 0 12px; }

/* The actionable "how to do it" block — set apart so it reads as the do-now. */
.mt-do {
  font-size: 13px; line-height: 1.55; color: var(--ink); margin: 0 0 11px;
  padding: 11px 13px; background: rgba(176,92,50,.05);
  border-left: 2px solid var(--copper); border-radius: 0 var(--radius) var(--radius) 0;
}
.mt-do p { margin: 0; }
.mt-do-label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--copper-deep); margin-bottom: 3px; }

/* Applies-to line — the conditional scoping (e.g. Suburban tanks only). */
.mt-applies { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 0 0 12px; }
.mt-applies-label { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 10px; color: var(--copper-deep); margin-right: 4px; }

.mt-sources { margin-top: auto; font-size: 13px; }
.mt-sources summary { cursor: pointer; color: var(--muted); font-weight: 600; letter-spacing: .02em; padding: 4px 0; }
.mt-sources summary:hover { color: var(--copper-deep); }
.mt-sources ul { margin: 6px 0 2px; padding-left: 18px; }
.mt-sources li { margin: 4px 0; line-height: 1.45; }

.mt-foot { max-width: var(--maxw); margin: 0 auto; padding: 0 20px 56px; font-size: 13px; line-height: 1.6; }

/* --- Legend: how to read the schedule ----------------------------------- */
.mt-legend { max-width: var(--maxw); margin: 0 auto 6px; padding: 0 20px; }
.mt-legend > summary {
  cursor: pointer; font-size: 13px; font-weight: 700; letter-spacing: .02em;
  color: var(--copper-deep); padding: 8px 0; list-style: none; display: inline-flex; align-items: center; gap: 7px;
}
.mt-legend > summary::-webkit-details-marker { display: none; }
.mt-legend > summary::before { content: "▸"; font-size: 11px; transition: transform .15s ease; }
.mt-legend[open] > summary::before { transform: rotate(90deg); }
.mt-legend-body { padding: 6px 0 14px; max-width: 82ch; }
.mt-legend-lede { font-size: 13.5px; line-height: 1.6; color: var(--ink); margin: 0 0 14px; }
.mt-legend-h { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--copper-deep); margin: 16px 0 4px; }
.mt-legend-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--line); }
.mt-legend-row .mt-legend-pips { grid-column: 1; }
.mt-legend-name { font-size: 12px; font-weight: 700; letter-spacing: .03em; color: var(--ink); }
.mt-legend-blurb { font-size: 13px; line-height: 1.5; color: var(--muted); }
/* When a row leads with the severity pips, the name sits next to them. */
.mt-legend-row .mt-legend-pips + .mt-legend-name { grid-column: 2; }
.mt-legend-row .mt-legend-pips ~ .mt-legend-blurb { grid-column: 1 / -1; }

/* --- Filter lens (revealed by JS) --------------------------------------- */
.mt-lens { max-width: var(--maxw); margin: 8px auto 4px; padding: 16px 20px; }
.mt-lens-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; }
.mt-lens-label {
  flex: 0 0 70px; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.mt-lens-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-chip {
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 38px;
  background: var(--surface); color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.mt-chip:hover { border-color: var(--copper); color: var(--copper-deep); transform: translateY(-1px); }
.mt-chip[aria-pressed="true"] { background: var(--copper); border-color: var(--copper); color: #fff; box-shadow: 0 2px 6px rgba(138,69,36,.22); }
.mt-lens-foot { display: flex; align-items: center; gap: 16px; padding-top: 2px; border-top: 1px solid var(--line); margin-top: 4px; }
.mt-lens-count { font-size: 14px; color: var(--muted); padding-top: 12px; font-variant-numeric: tabular-nums; }
.mt-lens-reset {
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 38px;
  background: transparent; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 16px; margin-top: 10px;
}
.mt-lens-reset:hover { color: var(--ink); border-color: var(--muted); }
.mt-empty { max-width: var(--maxw); margin: 8px auto 0; padding: 0 20px 8px; font-size: 15px; color: var(--muted); }

@media (max-width: 860px) {
  .mt-grid { grid-template-columns: 1fr; }
  .mt-lens-label { flex-basis: 100%; }
}

/* === MAINTENANCE v2 — hero stat, timeline, cost chips, diagrams, my-rig,
      budget rollup, checklist + compact/print. Reuses existing tokens only. === */

/* --- Hero stat line ----------------------------------------------------- */
.mt-hero-stat {
  margin: 14px 0 0; font-size: 14px; color: var(--muted);
  letter-spacing: .01em; font-variant-numeric: tabular-nums;
}
.mt-hero-stat strong { color: var(--copper-deep); font-weight: 700; }
.mt-hero-stat span { opacity: .5; margin: 0 4px; }

/* --- Cadence timeline ribbon -------------------------------------------- */
.mt-timeline {
  max-width: var(--maxw); margin: 22px auto 0; padding: 18px 20px 14px;
  background: linear-gradient(180deg, rgba(176,92,50,.05), rgba(176,92,50,.01));
  border: 1px solid var(--line); border-radius: var(--radius);
}
.mt-timeline-art { color: var(--copper-deep); }
.mt-timeline-art svg { display: block; width: 100%; height: auto; }
.mt-timeline-cap { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); text-align: center; }

/* --- Cost row: DIY vs Shop chips ---------------------------------------- */
.mt-cost { margin: 4px 0 14px; }
.mt-cost-label {
  display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--copper-deep); margin-bottom: 6px;
}
.mt-cost-est { color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: .01em; }
.mt-cost-chips { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.mt-cost-chip {
  display: inline-flex; align-items: baseline; gap: 5px;
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px;
  font-variant-numeric: tabular-nums; background: var(--surface);
}
.mt-cost-k { font-size: 9.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.mt-cost-v { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.mt-cost-chip.is-diy { border-color: rgba(90,115,80,.45); background: rgba(90,115,80,.07); }
.mt-cost-chip.is-diy .mt-cost-v { color: #46603c; }
.mt-cost-chip.is-pro { border-color: rgba(176,92,50,.35); background: rgba(176,92,50,.06); }
.mt-cost-chip.is-pro .mt-cost-v { color: var(--copper-deep); }
.mt-cost-note { font-size: 11.5px; line-height: 1.5; color: var(--muted); margin: 7px 0 0; }
.mt-cost-src { font-weight: 600; white-space: nowrap; }
/* When the budget basis is set, dim the non-active chip so cards echo the toggle. */
.mt-tools.basis-pro ~ #mt-main .mt-cost-chip.is-diy,
.maintenance.basis-pro .mt-cost-chip.is-diy { opacity: .5; }
.mt-tools.basis-diy ~ #mt-main .mt-cost-chip.is-pro,
.maintenance.basis-diy .mt-cost-chip.is-pro { opacity: .5; }

/* --- Diagram (collapsible inline line-art) ------------------------------ */
.mt-diagram { margin: 0 0 14px; border: 1px dashed var(--line); border-radius: var(--radius); }
.mt-diagram > summary {
  cursor: pointer; list-style: none; padding: 8px 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .03em; color: var(--copper-deep);
  display: inline-flex; align-items: center; gap: 7px;
}
.mt-diagram > summary::-webkit-details-marker { display: none; }
.mt-diagram-ico { font-size: 11px; transition: transform .15s ease; }
.mt-diagram[open] .mt-diagram-ico { transform: rotate(90deg); }
.mt-fig { margin: 0; padding: 4px 14px 16px; }
.mt-fig-art { color: var(--copper-deep); }
.mt-fig-art svg { display: block; width: 100%; max-width: 340px; height: auto; margin: 4px auto 0; }
.mt-fig-cap { font-size: 11.5px; line-height: 1.55; color: var(--muted); margin: 10px auto 0; text-align: center; max-width: 46ch; }

/* --- Control bar: my-rig selects + mode buttons ------------------------- */
.mt-tools { max-width: var(--maxw); margin: 10px auto 0; padding: 14px 20px; }
.mt-tools-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 24px; justify-content: space-between; }
.mt-tools-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; flex-basis: 100%; }
.mt-rig { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.mt-rig-sel { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: .03em; color: var(--muted); }
.mt-rig-sel select {
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 11px; min-height: 38px; cursor: pointer;
}
.mt-rig-sel select:focus-visible { outline: 2px solid var(--copper); outline-offset: 1px; }
.mt-modes { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-mode-btn {
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 38px;
  background: var(--surface); color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 15px;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.mt-mode-btn:hover { border-color: var(--copper); color: var(--copper-deep); }
.mt-mode-btn[aria-pressed="true"] { background: var(--copper); border-color: var(--copper); color: #fff; box-shadow: 0 2px 6px rgba(138,69,36,.22); }

/* --- Budget rollup bar -------------------------------------------------- */
.mt-budget {
  max-width: var(--maxw); margin: 10px auto 0; padding: 14px 20px;
  background: linear-gradient(180deg, rgba(176,92,50,.06), rgba(176,92,50,.02));
  border: 1px solid rgba(176,92,50,.22); border-radius: var(--radius);
}
.mt-budget-main { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.mt-budget-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--copper-deep); }
.mt-budget-figure { font-family: 'Fraunces', Georgia, serif; font-size: clamp(22px, 3vw, 30px); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.mt-budget-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); margin-left: auto; }
.mt-seg-btn { font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; border: 0; background: transparent; color: var(--muted); padding: 7px 16px; min-height: 36px; }
.mt-seg-btn.is-on { background: var(--copper); color: #fff; }
.mt-budget-note { font-size: 11.5px; line-height: 1.55; color: var(--muted); margin: 9px 0 0; max-width: 86ch; }

/* --- Checklist mode ----------------------------------------------------- */
.mt-check { margin: 0 0 8px; }
.mt-check-lab { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.mt-check-box { width: 17px; height: 17px; accent-color: var(--copper); cursor: pointer; }
.mt-card.is-done { opacity: .62; }
.mt-card.is-done .mt-name { text-decoration: line-through; text-decoration-color: var(--muted); }
.mt-card.is-done .mt-check-lab { color: #46603c; }
.mt-progress { font-size: 14px; font-weight: 600; color: var(--copper-deep); padding-top: 12px; font-variant-numeric: tabular-nums; }

/* --- Compact density (toggled) ------------------------------------------ */
.maintenance.is-compact .mt-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.maintenance.is-compact .mt-why,
.maintenance.is-compact .mt-do,
.maintenance.is-compact .mt-applies,
.maintenance.is-compact .mt-cost-note,
.maintenance.is-compact .mt-diagram { display: none; }
.maintenance.is-compact .mt-card-body { padding: 13px 15px; }
.maintenance.is-compact .mt-name { font-size: 16px; }
@media (max-width: 1000px) { .maintenance.is-compact .mt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .maintenance.is-compact .mt-grid { grid-template-columns: 1fr; } }

/* --- Print: a clean checklist a phone-free owner can carry to the rig ---- */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .detail-nav, .mt-jump, .mt-lens, .mt-tools,
  .mt-legend, .mt-empty, .mt-timeline, .mt-budget-seg { display: none !important; }
  .mt-budget { border: 1px solid #000; background: none; }
  .mt-card { break-inside: avoid; box-shadow: none; border: 1px solid #999; border-left: 3px solid #000; }
  .mt-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mt-do, .mt-diagram { background: none; }
  .mt-diagram[open] .mt-fig-art svg { max-width: 160px; }
  .mt-sources { display: none; }            /* keep the printout to action, not links */
  .mt-check { display: block !important; }  /* always show a tick box on paper */
  .mt-check-box { -webkit-appearance: none; appearance: none; width: 13px; height: 13px; border: 1.5px solid #000; }
  a[href]::after { content: ""; }            /* suppress URL expansion */
}

/* --- Responsive additions ----------------------------------------------- */
@media (max-width: 860px) {
  .mt-tools-row { gap: 14px; }
  .mt-budget-seg { margin-left: 0; }
  .mt-rig { width: 100%; }
  .mt-rig-sel { flex: 1 1 44%; }
  .mt-fig-art svg { max-width: 100%; }
}

/* =========================================================================
   SAVED FLOORPLANS — site-wide shortlist
   - .save-btn: heart toggle on cards (icon-only) + detail head (with text)
   - .nav-badge: live count pill on the Saved nav tab
   - .saved-* : the Saved page (grid of saved cards + toolbar + empty state)
   All colors are var-driven, so dark mode is handled by theme.css automatically.
   ========================================================================= */

/* ---- nav count badge ---- */
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: 5px;
  font: 700 11px/1 "DM Sans", sans-serif; font-variant-numeric: tabular-nums;
  color: #fff; background: var(--copper); border-radius: 999px;
}

/* ---- save buttons ---- */
.save-btn {
  -webkit-tap-highlight-color: transparent;
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
  cursor: pointer; border-radius: 999px;
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .12s ease;
}
.save-btn .save-heart { fill: none; stroke: currentColor; stroke-width: 1.8; transition: fill .16s ease, stroke .16s ease; }
.save-btn:hover { color: var(--copper-text); border-color: var(--copper); }
.save-btn:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
.save-btn.is-saved { color: var(--copper-text); border-color: var(--copper); background: rgba(176,92,50,.08); }
.save-btn.is-saved .save-heart { fill: var(--copper); stroke: var(--copper); }
.save-btn.save-pop { transform: scale(.86); }
/* card variant: compact icon-only, lives in the card foot next to Compare */
.save-btn--card { width: 34px; height: 34px; padding: 0; justify-content: center; flex: 0 0 auto; }
/* detail variant: full pill with label, sits beside the H1 */
.save-btn--detail { padding: 9px 16px; font: 700 14px/1 "DM Sans", sans-serif; align-self: center; }
.save-btn--detail .save-heart { width: 17px; height: 17px; }

/* the card foot now holds two actions (save + compare) on the right */
.xcard-foot-actions { display: flex; align-items: center; gap: 10px; }

/* detail head: title + save button on one row */
.detail-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.detail-head-row h1 { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .save-btn, .save-btn .save-heart { transition: none; }
  .save-btn.save-pop { transform: none; }
}

/* ---- Saved page ---- */
.saved-wrap { max-width: var(--maxw); margin: 8px auto 0; padding: 0 20px 40px; }
.saved-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding: 14px 18px; margin: 4px 0 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
}
.saved-summary { margin: 0; font-size: 14px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.saved-toolbar-actions { display: flex; align-items: center; gap: 10px; }
.saved-compare-btn {
  display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px;
  background: var(--copper); color: #fff; font-weight: 700; font-size: 14px;
  transition: background .16s ease;
}
.saved-compare-btn:hover { background: var(--copper-deep); text-decoration: none; }
.saved-clear-btn {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  padding: 9px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px;
  transition: color .16s ease, border-color .16s ease;
}
.saved-clear-btn:hover { color: var(--copper-text); border-color: var(--copper); }

.saved-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.saved-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .16s ease, box-shadow .16s ease;
}
.saved-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(31,27,22,.06), 0 16px 40px rgba(31,27,22,.12); }
.saved-card-link { color: inherit; display: flex; flex-direction: column; }
.saved-card-link:hover { text-decoration: none; }
.saved-card-media {
  position: relative; aspect-ratio: 3/2; overflow: hidden;
  background: radial-gradient(125% 135% at 50% 16%, #faf6ef 0%, #f0e8d8 52%, #e7ddc8 100%);
}
.saved-card-media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: darken; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.saved-card-link:hover .saved-card-media img { transform: scale(1.045); }
.saved-card-year { position: absolute; top: 10px; left: 10px; background: rgba(31,27,22,.78); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 4px 9px; border-radius: 2px; }
.saved-card-type { position: absolute; top: 10px; right: 10px; background: var(--copper); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 2px; }
.saved-card-body { padding: 14px 16px 6px; }
.saved-card-title { font-size: 20px; margin: 0 0 6px; }
.saved-card-title span { color: var(--copper-deep); }
.saved-card-specs { margin: 0 0 4px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.saved-card-price { margin: 0; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.saved-card-foot { margin-top: auto; padding: 10px 16px 14px; border-top: 1px solid var(--line); }
.saved-remove {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  padding: 6px 12px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 13px;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.saved-remove:hover { color: #b3402c; border-color: #d98a78; background: rgba(179,64,44,.06); }
.saved-remove svg { stroke: currentColor; }

/* empty state */
.saved-empty { text-align: center; max-width: 460px; margin: 30px auto 60px; padding: 0 16px; }
.saved-empty-art { color: var(--copper); opacity: .55; margin-bottom: 14px; }
.saved-empty-art svg { fill: none; stroke: currentColor; }
.saved-empty-lead { font: 700 22px/1.2 "Fraunces", Georgia, serif; margin: 0 0 8px; color: var(--ink); }
.saved-empty-sub { margin: 0 0 20px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.saved-empty-cta {
  display: inline-flex; align-items: center; padding: 11px 22px; border-radius: 999px;
  background: var(--copper); color: #fff; font-weight: 700; transition: background .16s ease;
}
.saved-empty-cta:hover { background: var(--copper-deep); text-decoration: none; }

@media (max-width: 900px) {
  .saved-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .saved-grid { grid-template-columns: 1fr; }
  .saved-toolbar { flex-direction: column; align-items: stretch; }
  .saved-toolbar-actions { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .saved-card, .saved-card-media img, .saved-compare-btn, .saved-remove { transition: none; }
}

/* ==========================================================================
   SMOOTH SCROLL + BACK-TO-TOP FAB + SECTION NAV + RELATED FLOORPLANS
   ========================================================================== */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* --- Back-to-top FAB --- */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--copper); color: #fff; border: none; cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
  opacity: 0; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, background .16s ease;
  pointer-events: none;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--copper-deep); }
.back-to-top:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: none; } }
@media (max-width: 560px) { .back-to-top { bottom: 18px; right: 18px; width: 40px; height: 40px; } }

/* --- Section quick-nav (detail pages) --- */
.secnav {
  position: sticky; top: var(--nav-h, 56px); z-index: 38;
  display: flex; gap: 2px; padding: 0 max(16px, calc((100% - 880px) / 2));
  background: color-mix(in srgb, var(--bg, #FAF8F5) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line, #E8E4DE);
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.secnav::-webkit-scrollbar { display: none; }
.secnav-link {
  flex-shrink: 0; padding: 10px 14px; font-size: 13px; font-weight: 600;
  color: var(--muted, #8C8580); text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease;
  letter-spacing: .02em; text-transform: uppercase;
}
.secnav-link:hover { color: var(--ink, #1F1B16); }
.secnav-link.is-active { color: var(--copper, #B8763E); border-bottom-color: var(--copper, #B8763E); }
.secnav-expand-all {
  flex-shrink: 0; margin-left: auto; padding: 8px 10px; border: none; background: transparent;
  color: var(--muted, #8C8580); cursor: pointer; transition: color 0.15s;
  display: flex; align-items: center; gap: 2px;
}
.secnav-expand-all:hover { color: var(--copper, #B8763E); }
.secnav-expand-all.is-expanded svg { transform: rotate(180deg); }
.secnav-expand-all svg { transition: transform 0.2s ease; }
@media (max-width: 560px) {
  .secnav { padding: 0 12px; }
  .secnav-link { padding: 8px 10px; font-size: 12px; }
}

/* --- Related floorplans --- */
.related { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line, #E8E4DE); }
.related h2 { font: 700 24px/1.2 "Fraunces", Georgia, serif; color: var(--ink, #1F1B16); margin: 0 0 20px; }
.related-grid { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; padding-bottom: 8px; scrollbar-width: thin; }
.rel-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border-radius: 12px; overflow: hidden;
  background: var(--card, #fff);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease;
  scroll-snap-align: start;
  flex: 0 0 260px; min-width: 220px;
}
.rel-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.10); }
.rel-media { aspect-ratio: 400/260; overflow: hidden; background: var(--surface, #F5F2ED); }
.rel-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.rel-card:hover .rel-media img { transform: scale(1.04); }
.rel-body { padding: 12px 14px 14px; }
.rel-title { font: 600 15px/1.3 "DM Sans", system-ui, sans-serif; margin: 0 0 4px; color: var(--ink, #1F1B16); }
.rel-title span { color: var(--copper, #B8763E); }
.rel-specs { font-size: 13px; color: var(--muted, #8C8580); margin: 0; }
@media (max-width: 900px) { .related-grid { gap: 14px; } }
@media (max-width: 560px) { .related-grid { gap: 12px; } .rel-body { padding: 8px 10px 10px; } .rel-title { font-size: 14px; } .rel-specs { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .rel-card, .rel-media img { transition: none; } }

/* ---- Print-optimized detail spec sheet ---- */
@media print {
  /* Hide chrome: nav, back-to-top, section quick-nav, lightbox, interactive tools */
  .topnav, .back-to-top, [data-secnav], #lightbox, .theme-toggle,
  .skip-link, .detail-nav, .save-btn, .tag-chips,
  .tow-callout a, .official-head, footer,
  .related, .back-link, .range-bar { display: none !important; }
  /* Reset background and colors for clean B&W output */
  body { background: #fff !important; color: #1a1a1a !important; margin: 0; padding: 0; font-size: 11pt; }
  [data-theme="dark"] * { background: transparent !important; color: #1a1a1a !important; border-color: #ccc !important; }
  /* Detail layout: remove max-width constraints for print */
  .detail { max-width: 100%; padding: 0 0.5in; }
  .detail-head { page-break-after: avoid; }
  .detail-hero { max-height: 3.5in; overflow: hidden; margin: 8pt 0; }
  .detail-hero-img { width: 100%; height: auto; max-height: 3.5in; object-fit: cover; }
  .detail-desc { font-size: 10pt; margin: 4pt 0 12pt; }
  /* Spec table: compact, bordered for print clarity */
  .spec-table { page-break-inside: avoid; margin: 12pt 0; }
  .specs-grid .spec { padding: 4pt 0; border-bottom: 0.5pt solid #ccc; }
  .specs-grid .spec dt { font-size: 9pt; }
  .specs-grid .spec dd { font-size: 10pt; }
  /* Tow callout: keep it compact */
  .tow-callout { border: 1pt solid #ccc; padding: 8pt 12pt; page-break-inside: avoid; }
  /* Interactive tools: collapse to static summary */
  .tool-card { page-break-inside: avoid; border: 0.5pt solid #ddd; padding: 8pt; margin: 8pt 0; }
  .tool-card input, .tool-card select, .tool-card button,
  .tool-controls, .tool-slider, .tool-range,
  .expand-toggle, details summary { display: none !important; }
  /* Floor plan */
  .floorplan { page-break-inside: avoid; }
  .floorplan-img { max-width: 100%; height: auto; max-height: 5in; }
  /* Gallery: compact 3-column grid, no lightbox zoom icons */
  .gallery { page-break-before: auto; }
  .gallery-grid { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 4pt; }
  .gallery-img-wrap { border: none; cursor: default; }
  .gallery-zoom { display: none !important; }
  .gallery-img { width: 100%; height: auto; max-height: 1.8in; object-fit: cover; }
  /* Pros/cons side by side */
  .proscons { display: flex; gap: 20pt; page-break-inside: avoid; }
  .pros, .cons { flex: 1; }
  /* Print URL at the bottom for reference */
  .detail::after { content: "Printed from Airstream Explorer · " attr(data-canonical); display: block; margin-top: 16pt; padding-top: 8pt; border-top: 0.5pt solid #aaa; font-size: 8pt; color: #888; }
  /* Share & copy buttons hidden in print */
  .share-actions { display: none !important; }
  /* Progress bar hidden */
  .reading-progress { display: none !important; }
  /* Swipe hints + autocomplete hidden */
  .swipe-hint, .x-suggest { display: none !important; }
  /* Detail pager nav + cross-family recs — not useful on paper */
  .detail-pager, .cross-family, .seasonal-guide, .next-steps { display: none !important; }
}

/* ---------- Seasonal camping guide ---------- */
.seasonal-guide {
  padding: 40px 0 24px;
  max-width: var(--reading, 880px);
  margin: 0 auto;
}
.seasonal-guide h2 {
  font-family: var(--display); font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600; margin: 0 0 6px; color: var(--ink);
}
.season-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px; margin-top: 18px;
}
.season-card {
  background: var(--surface, #fff); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px 18px;
}
.season-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.season-icon { font-size: 20px; line-height: 1; }
.season-name { font-weight: 700; font-size: 15px; color: var(--ink); flex: 1; }
.season-dots { display: flex; gap: 3px; }
.season-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line); transition: background .2s;
}
.season-dot--filled { background: var(--copper); }
.season-tips {
  list-style: none; margin: 0; padding: 0;
  font-size: 12.5px; line-height: 1.55; color: var(--muted);
}
.season-tips li { padding: 3px 0 3px 14px; position: relative; }
.season-tips li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--copper); opacity: .5;
}
@media (max-width: 560px) {
  .season-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .season-card { padding: 12px 14px; }
}

/* ---- Share / Copy / Print action buttons ---- */
.share-actions { display: flex; gap: 8px; margin: 8px 0 0; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 6px; cursor: pointer;
  font-size: 13px; font-weight: 500; font-family: inherit;
  border: 1px solid var(--line, #E2DDD8);
  background: var(--bg, #FAF8F5); color: var(--ink, #1F1B16);
  transition: background 0.15s, border-color 0.15s;
}
.share-btn:hover { background: var(--surface, #F3EFEB); border-color: var(--copper, #B8763E); }
.share-btn:active { transform: scale(0.97); }
.share-btn svg { flex-shrink: 0; }
.share-btn.is-copied { border-color: #4a8c5c; color: #4a8c5c; }
@media (max-width: 560px) { .share-actions { gap: 6px; } .share-btn { padding: 5px 10px; font-size: 12px; } }

/* ---- Reading progress bar (detail pages) ---- */

/* ======================================================================== */
/* SPEC GLOSSARY TOOLTIPS                                                   */
/* ======================================================================== */
.spec-tip {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted var(--muted);
  padding-bottom: 1px;
}
.spec-tip-text {
  display: none;
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  min-width: 220px;
  max-width: 300px;
  padding: 10px 14px;
  font: 400 13px/1.45 'DM Sans', sans-serif;
  letter-spacing: normal;
  text-transform: none;
  color: var(--bg);
  background: var(--ink);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  z-index: 20;
  pointer-events: none;
  white-space: normal;
}
.spec-tip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 16px;
  border: 6px solid transparent;
  border-top-color: var(--ink);
}
.spec-tip:hover .spec-tip-text,
.spec-tip:focus .spec-tip-text {
  display: block;
}
@media (max-width: 560px) {
  .spec-tip-text { min-width: 180px; max-width: 240px; font-size: 12px; }
}

/* ======================================================================== */
/* STANDOUT BADGES                                                          */
/* ======================================================================== */
.standout-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 4px;
}
.standout-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--copper-deep);
  background: rgba(176,92,50,.08);
  border: 1px solid rgba(176,92,50,.18);
  padding: 5px 12px;
  border-radius: 999px;
  line-height: 1.3;
}
.standout-icon { font-size: 14px; }

/* ======================================================================== */
/* EXPLORE STATS SUMMARY                                                    */
/* ======================================================================== */
.x-stats {
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: .02em;
  min-height: 1.4em;
  margin: -4px 0 4px;
}
.x-stats:empty { display: none; }

/* ======================================================================== */
/* SECTION REVEAL ANIMATIONS                                                */
/* ======================================================================== */
.reveal-ready {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s cubic-bezier(.2,.7,.35,1), transform .55s cubic-bezier(.2,.7,.35,1);
}
.reveal-ready.is-revealed {
  opacity: 1;
  transform: none;
}
/* Stagger consecutive revealed sections slightly */
.reveal-ready:nth-child(2) { transition-delay: .06s; }
.reveal-ready:nth-child(3) { transition-delay: .12s; }
@media (prefers-reduced-motion: reduce) {
  .reveal-ready { opacity: 1; transform: none; transition: none; }
}

/* ======================================================================== */
/* HERO CLICK-TO-LIGHTBOX                                                   */
/* ======================================================================== */
.detail-hero-btn {
  display: block; width: 100%; padding: 0; border: none; background: none;
  cursor: zoom-in; position: relative; overflow: hidden;
  border-radius: 10px;
}
.detail-hero-btn:focus-visible { outline: 2px solid var(--copper, #B8763E); outline-offset: 2px; }
.hero-zoom {
  position: absolute; bottom: 12px; right: 12px;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(31,27,22,.55); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .2s;
  pointer-events: none;
}
.detail-hero-btn:hover .hero-zoom,
.detail-hero-btn:focus-visible .hero-zoom { opacity: 1; }
@media (max-width: 560px) { .hero-zoom { width: 34px; height: 34px; } .hero-zoom svg { width: 18px; height: 18px; } }

/* ======================================================================== */
/* EXPLORE PRICE FILTER                                                     */
/* ======================================================================== */
.xc-price { display: flex; align-items: center; gap: 6px; }
.xc-price label { font-size: 13px; font-weight: 500; color: var(--muted, #8C857D); white-space: nowrap; }
.xc-price select {
  font-family: inherit; font-size: 13px; padding: 5px 8px;
  border: 1px solid var(--line, #E2DDD8); border-radius: 6px;
  background: var(--bg, #FAF8F5); color: var(--ink, #1F1B16);
}

/* ======================================================================== */
/* KEYBOARD HELP OVERLAY                                                    */
/* ======================================================================== */
.kb-help {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
}
.kb-help[hidden] { display: none; }
.kb-help-backdrop {
  position: absolute; inset: 0;
  background: rgba(31,27,22,.5);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.kb-help-panel {
  position: relative; z-index: 1;
  background: var(--card, #fff); color: var(--ink, #1F1B16);
  border-radius: 14px; box-shadow: 0 16px 48px rgba(0,0,0,.2);
  max-width: 420px; width: 92%; max-height: 80vh;
  overflow-y: auto; padding: 24px 28px 28px;
  animation: kbSlideUp .25s ease-out;
}
@keyframes kbSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.kb-help-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.kb-help-head h2 { font-size: 18px; font-weight: 600; margin: 0; }
.kb-help-close {
  border: none; background: none; font-size: 24px; cursor: pointer;
  color: var(--muted, #8C857D); line-height: 1; padding: 4px;
}
.kb-help-close:hover { color: var(--ink, #1F1B16); }
.kb-group { margin-bottom: 16px; }
.kb-group:last-child { margin-bottom: 0; }
.kb-group h3 {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted, #8C857D); margin: 0 0 8px;
}
.kb-row {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 0; font-size: 14px;
}
.kb-row kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 26px; padding: 0 7px;
  font-family: inherit; font-size: 12px; font-weight: 600;
  background: var(--surface, #F3EFEB); border: 1px solid var(--line, #E2DDD8);
  border-radius: 5px; box-shadow: 0 1px 1px rgba(0,0,0,.06);
  color: var(--ink, #1F1B16);
}
.kb-row span { color: var(--ink, #1F1B16); }
@media (max-width: 560px) {
  .kb-help-panel { padding: 20px 22px 24px; }
  .kb-row { font-size: 13px; }
}
@media print { .kb-help { display: none !important; } }

/* ======================================================================== */
/* EXPLORE CARD FOCUS STATE (keyboard nav)                                  */
/* ======================================================================== */
.xcard.is-kb-focus {
  outline: 2px solid var(--copper, #B8763E);
  outline-offset: 2px;
  border-radius: 10px;
}

/* ======================================================================== */
/* KEY STATS DASHBOARD — detail pages                                       */
/* ======================================================================== */
.key-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  background: var(--line, #E2DDD8);
  border: 1px solid var(--line, #E2DDD8);
  border-radius: 12px;
  overflow: hidden;
  margin: 24px 0 20px;
}
.key-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 18px 12px 16px;
  background: var(--card, #fff);
  text-align: center;
}
.key-stat-icon { font-size: 20px; line-height: 1; margin-bottom: 2px; }
.key-stat-value {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink, #1F1B16);
  letter-spacing: -.01em;
}
.key-stat-label {
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted, #8C857D);
  line-height: 1.3;
}
@media (max-width: 560px) {
  .key-stats { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); }
  .key-stat { padding: 14px 8px 12px; }
  .key-stat-value { font-size: 18px; }
  .key-stat-label { font-size: 10px; }
  .key-stat-icon { font-size: 17px; }
}

/* ======================================================================== */
/* WEIGHT CAPACITY VISUAL BAR — detail pages                                */
/* ======================================================================== */
.weight-bar {
  margin: 20px 0 24px;
  padding: 16px 20px;
  background: var(--card, #fff);
  border: 1px solid var(--line, #E2DDD8);
  border-radius: 12px;
}
.weight-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.weight-bar-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #1F1B16);
}
.weight-bar-gvwr {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted, #8C857D);
}
.weight-bar-track {
  display: flex;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface, #F3EFEB);
}
.weight-bar-dry {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink, #1F1B16);
  color: #fff;
  min-width: 60px;
  transition: width .6s cubic-bezier(.2,.7,.35,1);
}
.weight-bar-ccc {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--copper, #B8763E);
  color: #fff;
  min-width: 40px;
  transition: width .6s cubic-bezier(.2,.7,.35,1);
}
.weight-bar-seg-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.weight-bar-legend {
  display: flex;
  gap: 20px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted, #8C857D);
}
.weight-bar-legend-dry::before,
.weight-bar-legend-ccc::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 5px;
  vertical-align: -1px;
}
.weight-bar-legend-dry::before { background: var(--ink, #1F1B16); }
.weight-bar-legend-ccc::before { background: var(--copper, #B8763E); }
@media (max-width: 560px) {
  .weight-bar { padding: 12px 14px; }
  .weight-bar-track { height: 30px; }
  .weight-bar-seg-label { font-size: 11px; }
  .weight-bar-legend { flex-wrap: wrap; gap: 10px; font-size: 11px; }
}

/* ======================================================================== */
/* PHOTO COUNT BADGE — explore cards                                        */
/* ======================================================================== */
.xcard-photos {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(31,27,22,.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: 6px;
  line-height: 1;
  pointer-events: none;
  z-index: 2;
}
.xcard-photos svg { opacity: .85; }

/* ======================================================================== */
/* ENHANCED CARD HOVER — explore + family cards                             */
/* ======================================================================== */
.xcard-link {
  transition: transform .25s cubic-bezier(.2,.7,.35,1), box-shadow .25s ease;
}
.xcard-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(31,27,22,.10);
}
.xcard-media {
  overflow: hidden;
}
.xcard-media img {
  transition: transform .4s cubic-bezier(.2,.7,.35,1);
}
.xcard-link:hover .xcard-media img {
  transform: scale(1.04);
}
.card {
  transition: transform .25s cubic-bezier(.2,.7,.35,1), box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(31,27,22,.10);
}
.card-media {
  overflow: hidden;
}
.card-media img {
  transition: transform .4s cubic-bezier(.2,.7,.35,1);
}
.card:hover .card-media img {
  transform: scale(1.04);
}
.fam-card {
  transition: transform .25s cubic-bezier(.2,.7,.35,1), box-shadow .25s ease;
}
.fam-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(31,27,22,.10);
}
.fam-hero {
  overflow: hidden;
}
.fam-hero img {
  transition: transform .5s cubic-bezier(.2,.7,.35,1);
}
.fam-card:hover .fam-hero img {
  transform: scale(1.03);
}
@media (prefers-reduced-motion: reduce) {
  .xcard-link:hover, .card:hover, .fam-card:hover { transform: none; }
  .xcard-media img, .card-media img, .fam-hero img { transition: none; }
}

/* Family spec comparison table */
.fam-compare { margin: 3rem auto 0; max-width: 1120px; padding: 0 1rem; }
.fam-compare h2 { font-family: var(--ff-display); font-size: 1.5rem; margin-bottom: .25rem; }
.fc-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 1rem; border: 1px solid var(--line); border-radius: 8px; }
.fc-table { width: 100%; border-collapse: collapse; font-size: .875rem; white-space: nowrap; }
.fc-table th, .fc-table td { padding: .65rem .85rem; text-align: left; border-bottom: 1px solid var(--line); }
.fc-table thead th { font-weight: 600; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; position: sticky; top: 0; background: var(--surface, #fff); }
.fc-table tbody tr:last-child td { border-bottom: none; }
.fc-table tbody tr:hover { background: rgba(183,142,86,.06); }
.fc-link { color: var(--copper); font-weight: 600; text-decoration: none; }
.fc-link:hover { text-decoration: underline; }
.fc-best { color: var(--copper); font-weight: 600; }
.fc-sub { font-weight: 400; font-size: .7rem; opacity: .65; }
.fc-bar { display: block; height: 3px; background: var(--line); border-radius: 2px; margin-top: 4px; overflow: hidden; }
.fc-bar-fill { display: block; height: 100%; background: var(--copper); border-radius: 2px; transition: width .3s ease; }
@media (max-width: 640px) {
  .fc-table th, .fc-table td { padding: .5rem .6rem; font-size: .8rem; }
  .fam-compare h2 { font-size: 1.25rem; }
}

/* Lazy-load image fade-in */
img[loading="lazy"] { opacity: 0; transition: opacity .4s ease; }
img[loading="lazy"].is-loaded, img[loading="lazy"].gallery-img--cutout.is-loaded { opacity: 1; }
/* Cutout images use mix-blend-mode which needs opacity 1 to work; if JS hasn't
   loaded yet, don't hide them */
noscript img[loading="lazy"], img[loading="lazy"][data-no-fade] { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  img[loading="lazy"] { opacity: 1; transition: none; }
}

/* Unit toggle button */
.unit-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1.5px solid var(--line, #e0dbd4); border-radius: 6px;
  padding: 3px 8px; cursor: pointer; color: var(--ink, #1F1B16);
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: .04em; line-height: 1; transition: border-color .2s, color .2s, background .2s;
  margin-left: 6px; vertical-align: middle;
}
.unit-toggle:hover { border-color: var(--copper, #B78E56); color: var(--copper, #B78E56); }
.unit-toggle[aria-pressed="true"] { background: var(--copper, #B78E56); color: #fff; border-color: var(--copper, #B78E56); }
.unit-toggle:focus-visible { outline: 2px solid var(--copper, #B78E56); outline-offset: 2px; }
@media (max-width: 560px) { .unit-toggle { padding: 2px 6px; font-size: 11px; } }

/* Touch-friendly spec tooltips */
.spec-tip.is-tip-open .spec-tip-text {
  visibility: visible; opacity: 1; pointer-events: auto;
}

/* ---------------------------------------------------------------------------
   SPEC PERCENTILE INDICATORS — inline ranking bars on detail spec rows
   --------------------------------------------------------------------------- */
.spec-pct {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  vertical-align: middle;
}
.spec-pct-bar {
  display: inline-block;
  height: 4px;
  border-radius: 2px;
  min-width: 20px;
  max-width: 60px;
  transition: width 0.6s ease-out;
}
.spec-pct-text {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.spec-pct--top10 .spec-pct-bar { background: var(--copper, #c17f59); }
.spec-pct--top10 .spec-pct-text { color: var(--copper, #c17f59); }
.spec-pct--top20 .spec-pct-bar { background: #7b9e6b; }
.spec-pct--top20 .spec-pct-text { color: #7b9e6b; }
.spec-pct--top30 .spec-pct-bar { background: var(--muted, #8b8178); }
.spec-pct--top30 .spec-pct-text { color: var(--muted, #8b8178); }

/* ---------------------------------------------------------------------------
   QUICK VIEW MODAL — inline spec preview on explore cards
   --------------------------------------------------------------------------- */
.xcard-peek {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: var(--ink, #1f1b16);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
  z-index: 2;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.xcard:hover .xcard-peek,
.xcard-peek:focus-visible {
  opacity: 1;
  transform: scale(1);
}
.xcard-peek:hover {
  background: var(--copper, #c17f59);
  color: #fff;
}
@media (pointer: coarse) {
  .xcard-peek { opacity: 1; transform: scale(1); }
}

.quick-view {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.quick-view[hidden] { display: none; }
.qv-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.qv-panel {
  position: relative;
  background: var(--card, #fff);
  border-radius: 14px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  overflow: hidden;
  animation: qvIn 0.25s ease-out;
}
@keyframes qvIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.qv-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: var(--ink, #1f1b16);
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.qv-close:hover { background: #fff; }
.qv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(255,255,255,0.9); color: var(--ink, #1f1b16); cursor: pointer; z-index: 3; display: flex; align-items: center; justify-content: center; transition: background 0.15s, box-shadow 0.15s; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.qv-nav:hover { background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.18); }
.qv-nav--prev { left: -48px; }
.qv-nav--next { right: -48px; }
.qv-counter { position: absolute; bottom: -28px; left: 50%; transform: translateX(-50%); font-size: 12px; color: rgba(255,255,255,0.7); letter-spacing: 0.5px; white-space: nowrap; }
@media (max-width: 600px) {
  .qv-nav--prev { left: 8px; top: auto; bottom: -44px; transform: none; }
  .qv-nav--next { right: 8px; top: auto; bottom: -44px; transform: none; }
  .qv-counter { bottom: -44px; }
}
.qv-media { position: relative; }
.qv-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 40/26;
  object-fit: cover;
}
.qv-body { padding: 16px 20px 20px; }
.qv-year {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper, #c17f59);
  margin: 0 0 2px;
}
.qv-title {
  font-family: var(--ff-display, Fraunces, serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink, #1f1b16);
}
.qv-desc {
  font-size: 0.82rem;
  color: var(--muted, #8b8178);
  margin: 0 0 12px;
  line-height: 1.45;
}
.qv-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  margin: 0 0 16px;
  font-size: 0.82rem;
}
.qv-spec-item {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}
.qv-spec-label { color: var(--muted, #8b8178); }
.qv-spec-value { font-weight: 600; color: var(--ink, #1f1b16); }
.qv-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.qv-detail-btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 8px;
  background: var(--copper, #c17f59);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background 0.15s;
}
.qv-detail-btn:hover { background: var(--copper-dark, #a56a45); }
.qv-save-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 14px; border: 1.5px solid var(--line, #e8e0d8); border-radius: 8px;
  background: transparent; color: var(--ink, #1f1b16); font-weight: 600; font-size: 0.84rem;
  cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.qv-save-btn:hover { border-color: var(--copper, #c17f59); color: var(--copper, #c17f59); }
.qv-save-btn.is-saved { border-color: var(--copper, #c17f59); color: var(--copper, #c17f59); background: color-mix(in srgb, var(--copper, #c17f59) 8%, transparent); }
.qv-save-btn.is-saved svg { fill: currentColor; }
.qv-compare-label {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.84rem; font-weight: 500; color: var(--muted, #8b8178); cursor: pointer;
  user-select: none;
}
.qv-compare-label:hover { color: var(--ink, #1f1b16); }

/* Quick-view gallery thumbnail strip */
.qv-gallery-strip {
  display: flex; gap: 6px; padding: 8px 0 4px;
  overflow-x: auto; scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.qv-gallery-strip::-webkit-scrollbar { height: 4px; }
.qv-gallery-strip::-webkit-scrollbar-thumb { background: var(--line, #e8e0d8); border-radius: 2px; }
.qv-gallery-thumb {
  flex: 0 0 auto; width: 72px; height: 48px; border-radius: 6px;
  object-fit: cover; cursor: pointer; border: 2px solid transparent;
  opacity: 0.7; transition: opacity 0.15s, border-color 0.15s;
}
.qv-gallery-thumb:hover { opacity: 1; }
.qv-gallery-thumb.is-active { opacity: 1; border-color: var(--copper, #c17f59); }

/* ---------------------------------------------------------------------------
   ANIMATED KEY STATS — count-up animation on scroll
   --------------------------------------------------------------------------- */
.key-stat-value {
  transition: opacity 0.3s;
}
.key-stat-value.is-counting {
  /* During animation, prevent layout shift */
  min-width: 3ch;
  text-align: center;
}

/* ── Quiz overlay ─────────────────────────────────────────────────────── */
.quiz-overlay{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center}
.quiz-overlay[hidden]{display:none}
.quiz-backdrop{position:absolute;inset:0;background:rgba(31,27,22,.75);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.quiz-panel{position:relative;width:min(560px,92vw);max-height:90vh;overflow-y:auto;background:var(--bg,#FAF8F5);border-radius:16px;box-shadow:0 24px 80px rgba(0,0,0,.25);padding:0}
.quiz-header{display:flex;align-items:center;gap:12px;padding:20px 24px 0}
.quiz-progress{flex:1;height:4px;border-radius:2px;background:var(--line,#E4DED4)}
.quiz-progress-fill{display:block;height:100%;border-radius:2px;background:var(--copper,#B87333);transition:width .4s ease}
.quiz-close{flex-shrink:0;border:0;background:none;font-size:24px;line-height:1;cursor:pointer;color:var(--muted,#8B7E6A);padding:4px}
.quiz-close:hover{color:var(--ink,#1F1B16)}
.quiz-steps{position:relative}
.quiz-step{display:none;padding:32px 32px 24px;animation:quizFadeIn .35s ease}
.quiz-step.is-active{display:block}
.quiz-step-num{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted,#8B7E6A);margin:0 0 8px}
.quiz-q{font-family:var(--heading-font,'Fraunces',serif);font-size:1.6rem;font-weight:600;margin:0 0 6px;color:var(--ink,#1F1B16)}
.quiz-hint{font-size:.88rem;color:var(--muted,#8B7E6A);margin:0 0 24px}
.quiz-opts{display:flex;flex-direction:column;gap:10px}
.quiz-opt{display:flex;align-items:center;gap:14px;padding:14px 18px;border:1.5px solid var(--line,#E4DED4);border-radius:12px;background:var(--bg,#FAF8F5);cursor:pointer;transition:border-color .2s,background .2s,transform .15s;text-align:left}
.quiz-opt:hover{border-color:var(--copper,#B87333);background:color-mix(in srgb,var(--copper,#B87333) 6%,var(--bg,#FAF8F5))}
.quiz-opt.is-selected{border-color:var(--copper,#B87333);background:color-mix(in srgb,var(--copper,#B87333) 12%,var(--bg,#FAF8F5));transform:scale(1.01)}
.quiz-opt-icon{font-size:1.5rem;flex-shrink:0;width:40px;text-align:center}
.quiz-opt-label{font-weight:600;font-size:.95rem;color:var(--ink,#1F1B16)}
.quiz-opt-sub{font-size:.78rem;color:var(--muted,#8B7E6A);display:block;margin-top:1px}
.quiz-nav{padding:0 32px 24px;display:flex}
.quiz-back{border:0;background:none;color:var(--copper,#B87333);font-size:.9rem;cursor:pointer;padding:6px 0;font-weight:500}
.quiz-back:hover{text-decoration:underline}
.quiz-back[hidden]{display:none}

/* Quiz results */
.quiz-results .quiz-q{margin-bottom:4px}
.quiz-matches{display:flex;flex-direction:column;gap:10px;margin:16px 0}
.quiz-match{display:flex;align-items:center;gap:14px;padding:12px 14px;border:1.5px solid var(--line,#E4DED4);border-radius:12px;text-decoration:none;color:inherit;transition:border-color .2s,transform .15s,box-shadow .2s}
.quiz-match:hover{border-color:var(--copper,#B87333);transform:translateY(-1px);box-shadow:0 4px 16px rgba(0,0,0,.08)}
.quiz-match-rank{flex-shrink:0;width:28px;height:28px;border-radius:50%;background:var(--copper,#B87333);color:#fff;font-size:.82rem;font-weight:700;display:flex;align-items:center;justify-content:center}
.quiz-match-img{flex-shrink:0;width:100px;height:65px;object-fit:cover;border-radius:8px;background:var(--line,#E4DED4)}
.quiz-match-info{flex:1;min-width:0}
.quiz-match-title{font-family:var(--heading-font,'Fraunces',serif);font-size:1.05rem;font-weight:600;margin:0 0 2px;color:var(--ink,#1F1B16)}
.quiz-match-specs{font-size:.78rem;color:var(--muted,#8B7E6A);margin:0 0 6px}
.quiz-match-reasons{display:flex;flex-wrap:wrap;gap:4px}
.quiz-reason{font-size:.7rem;padding:2px 8px;border-radius:20px;background:color-mix(in srgb,var(--copper,#B87333) 12%,var(--bg,#FAF8F5));color:var(--copper,#B87333);font-weight:500}
.quiz-no-match{font-size:.9rem;color:var(--muted,#8B7E6A);text-align:center;padding:24px 0}
.quiz-no-match a{color:var(--copper,#B87333)}
.quiz-results-actions{display:flex;gap:10px;justify-content:center;margin-top:12px}
.quiz-restart,.quiz-explore{padding:10px 20px;border-radius:8px;font-size:.88rem;font-weight:500;cursor:pointer;border:1.5px solid var(--line,#E4DED4);background:var(--bg,#FAF8F5);color:var(--ink,#1F1B16);transition:border-color .2s,background .2s}
.quiz-explore{background:var(--copper,#B87333);color:#fff;border-color:var(--copper,#B87333)}
.quiz-restart:hover{border-color:var(--copper,#B87333)}
.quiz-explore:hover{background:color-mix(in srgb,var(--copper,#B87333) 85%,#000)}
.quiz-trigger{font-family:inherit}

@keyframes quizFadeIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* Mobile quiz adjustments */
@media(max-width:560px){
  .quiz-panel{border-radius:12px 12px 0 0;max-height:95vh;align-self:flex-end}
  .quiz-step{padding:24px 20px 20px}
  .quiz-match-img{width:70px;height:46px}
  .quiz-q{font-size:1.35rem}
  .quiz-nav{padding:0 20px 20px}
}

/* ── Gallery hover zoom ──────────────────────────────────────────────── */
.gallery-hoverable{overflow:hidden}
.gallery-hoverable .gallery-img{transition:transform .35s cubic-bezier(0.22,1,0.36,1)}
.gallery-hoverable:hover .gallery-img{transform:scale(1.05)}
.gallery-hoverable .gallery-zoom{transition:opacity .25s ease,transform .25s ease;opacity:0;transform:translateY(4px)}
.gallery-hoverable:hover .gallery-zoom{opacity:1;transform:none}

/* ======================================================================== */
/* EDITORIAL FOOTER — multi-column magazine-style footer                    */
/* ======================================================================== */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
  max-width: var(--wrap, 1120px);
  margin: 0 auto;
  padding: 0 var(--gutter, 20px);
}
.footer-heading {
  font-family: var(--display, 'Fraunces', serif);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--copper, #B8763E);
  margin: 0 0 12px;
  font-weight: 600;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li { margin: 0 0 8px; }
.footer-links a {
  color: var(--ink, #1F1B16);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--copper, #B8763E); }
.footer-about {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted, #8A8279);
  margin: 0;
}
.footer-legal {
  max-width: var(--wrap, 1120px);
  margin: 28px auto 0;
  padding: 16px var(--gutter, 20px) 0;
  border-top: 1px solid var(--line, #E2DDD8);
  font-size: 12px;
  line-height: 1.55;
}
.footer-legal a { color: var(--muted, #8A8279); }
.footer-legal a:hover { color: var(--copper, #B8763E); }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 20px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-col-about { order: -1; }
}

/* ======================================================================== */
/* BREADCRUMB NAVIGATION                                                    */
/* ======================================================================== */
.breadcrumb {
  max-width: var(--reading, 880px);
  margin: 0 auto;
  padding: 14px var(--gutter, 20px) 0;
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--muted, #8A8279);
}
.breadcrumb-list li { display: flex; align-items: center; }
.breadcrumb-list li + li::before {
  content: '›';
  margin: 0 8px;
  color: var(--line, #E2DDD8);
  font-size: 15px;
}
.breadcrumb-list a {
  color: var(--muted, #8A8279);
  text-decoration: none;
  transition: color 0.15s;
}
.breadcrumb-list a:hover { color: var(--copper, #B8763E); }
.breadcrumb-list [aria-current="page"] {
  color: var(--ink, #1F1B16);
  font-weight: 500;
}
@media print { .breadcrumb { display: none !important; } }

/* ======================================================================== */
/* FLOORPLAN ZOOM BUTTON                                                    */
/* ======================================================================== */
.floorplan-zoom-btn {
  display: block;
  width: 100%;
  border: none;
  background: none;
  padding: 0;
  cursor: zoom-in;
  position: relative;
  text-align: center;
}
.floorplan-zoom-btn:focus-visible {
  outline: 2px solid var(--copper, #B8763E);
  outline-offset: 4px;
  border-radius: 4px;
}
.floorplan-zoom-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted, #8A8279);
  letter-spacing: .02em;
  transition: color 0.15s;
}
.floorplan-zoom-btn:hover .floorplan-zoom-hint { color: var(--copper, #B8763E); }
@media print { .floorplan-zoom-hint { display: none !important; } }

/* -----------------------------------------------------------------------
   RADAR CHART — spec fingerprint on detail pages
   ----------------------------------------------------------------------- */
.detail-overview {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin: 0 0 32px;
}
.detail-overview .detail-desc {
  flex: 1;
  margin: 0;
}
.radar-chart {
  flex-shrink: 0;
  text-align: center;
}
.radar-svg {
  display: block;
  margin: 0 auto;
}
.radar-ring {
  fill: none;
  stroke: var(--line, #E5DED6);
  stroke-width: 0.8;
}
.radar-spoke {
  stroke: var(--line, #E5DED6);
  stroke-width: 0.5;
}
.radar-fill {
  fill: var(--copper, #B8763E);
  fill-opacity: 0.13;
}
.radar-stroke {
  fill: none;
  stroke: var(--copper, #B8763E);
  stroke-width: 2;
  stroke-linejoin: round;
}
.radar-dot {
  fill: var(--copper, #B8763E);
}
.radar-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  fill: var(--muted, #8A8279);
  letter-spacing: .01em;
}
.radar-hint {
  font-size: 12px;
  margin: 6px 0 0;
}
@media (max-width: 680px) {
  .detail-overview {
    flex-direction: column;
    align-items: center;
  }
  .radar-chart { order: -1; }
}

/* -----------------------------------------------------------------------
   CROSS-FAMILY RECOMMENDATIONS
   ----------------------------------------------------------------------- */
.cross-family {
  margin: 48px 0 0;
  padding: 40px 0 0;
  border-top: 1px solid var(--line, #E5DED6);
}
.cross-family h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  margin: 0 0 4px;
}
.cross-family-sub {
  font-size: 14px;
  margin: 0 0 20px;
}
.cross-family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.xfam-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  overflow: hidden;
  background: var(--card, #fff);
  border: 1px solid var(--line, #E5DED6);
  transition: transform .18s ease, box-shadow .18s ease;
}
.xfam-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.xfam-media img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 400/260;
  object-fit: cover;
}
.xfam-body {
  padding: 12px 14px 14px;
}
.xfam-title {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  margin: 0 0 4px;
  font-weight: 600;
}
.xfam-title span {
  font-weight: 400;
  color: var(--muted, #8A8279);
}
.xfam-specs {
  font-size: 13px;
  color: var(--muted, #8A8279);
  margin: 0;
}
.xfam-traits {
  font-size: 12px;
  margin: 6px 0 0;
  padding: 4px 8px;
  background: color-mix(in srgb, var(--copper, #B8763E) 8%, transparent);
  border-radius: 4px;
  color: var(--copper, #B8763E);
  display: inline-block;
}

/* -----------------------------------------------------------------------
   SCROLL-SPY: active section nav highlighting
   ----------------------------------------------------------------------- */
.secnav-link.is-active {
  color: var(--copper, #B8763E);
  border-bottom-color: var(--copper, #B8763E);
}

/* ==========================================================================
   Compatible tow vehicles table (detail pages)
   ========================================================================== */
.compat-vehicles { margin: 3rem 0; }
.compat-vehicles h2 { margin-bottom: 0.5rem; }
.compat-intro { color: var(--muted); margin-bottom: 1.25rem; }
.compat-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compat-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.compat-table th { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 2px solid var(--line); color: var(--muted); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
.compat-table td { padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--line); }
.compat-name { font-weight: 500; white-space: nowrap; }
.compat-rating { white-space: nowrap; }
.compat-margin { white-space: nowrap; font-variant-numeric: tabular-nums; }
.compat-badge { display: inline-block; padding: 0.15em 0.6em; border-radius: 999px; font-size: 0.78rem; font-weight: 600; line-height: 1.5; }
.compat-ok .compat-badge { background: #e8f5e9; color: #2e7d32; }
.compat-tight .compat-badge { background: #fff3e0; color: #e65100; }
.compat-over .compat-badge { background: #fbe9e7; color: #c62828; }
.compat-over { opacity: 0.6; }
.compat-over .compat-name { text-decoration: line-through; text-decoration-color: var(--muted); }

/* Explore tow vehicle picker */
#tow-vehicle-pick { width: 100%; padding: 0.5rem 0.6rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 0.92rem; background: var(--bg); color: var(--ink); }

/* Explore length/weight filter selects */
.xc-length, .xc-weight, .xc-axle { flex: 0 0 auto; }
.xc-length select, .xc-weight select, .xc-axle select { padding: 0.35rem 0.5rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 0.88rem; background: var(--bg); color: var(--ink); }
.xc-length label, .xc-weight label, .xc-axle label { font-size: 0.82rem; color: var(--muted); display: block; margin-bottom: 0.2rem; }

/* ==========================================================================
   Explore: Grid / List view toggle
   ========================================================================== */
.xc-layout { display: flex; gap: 4px; align-items: center; }
.xc-layout-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.csv-export-btn {
  display: inline-flex; align-items: center; gap: 4px; background: none;
  border: 1px solid var(--line); border-radius: 4px; padding: 4px 10px;
  font: inherit; font-size: .8rem; color: var(--muted); cursor: pointer;
  transition: border-color .15s, color .15s;
}
.csv-export-btn:hover { border-color: var(--copper); color: var(--ink); }
.csv-export-btn svg { flex-shrink: 0; }
.xc-row-layout { display: flex; align-items: center; gap: 12px; max-width: var(--maxw); margin: 14px auto 0; padding: 0 20px; }
.xc-layout-btn {
  background: none; border: 1px solid var(--line); border-radius: 4px;
  padding: 5px 7px; cursor: pointer; color: var(--muted); display: inline-flex;
  align-items: center; justify-content: center; transition: background .15s, color .15s, border-color .15s;
}
.xc-layout-btn.is-active { background: var(--copper); color: #fff; border-color: var(--copper); }
.xc-layout-btn:hover:not(.is-active) { border-color: var(--copper); color: var(--ink); }

.xgrid.is-list { grid-template-columns: 1fr; gap: 0; }
.xgrid.is-list .xcard {
  flex-direction: row; border-radius: 0; border-bottom: 1px solid var(--line);
  border-left: none; border-right: none; border-top: none; box-shadow: none;
}
.xgrid.is-list .xcard:first-child { border-top: 1px solid var(--line); }
.xgrid.is-list .xcard:hover { transform: none; box-shadow: none; background: color-mix(in srgb, var(--copper) 4%, var(--surface)); }
.xgrid.is-list .xcard-link { flex-direction: row; align-items: center; }
.xgrid.is-list .xcard-media { width: 120px; min-width: 120px; aspect-ratio: 3/2; border-radius: 4px; margin: 8px 0 8px 12px; }
.xgrid.is-list .xcard-media img { border-radius: 4px; }
.xgrid.is-list .xcard-body { padding: 10px 16px; flex: 1; min-width: 0; }
.xgrid.is-list .xcard-title { font-size: 16px; margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xgrid.is-list .xcard-specs { grid-template-columns: repeat(4, auto); gap: 4px 18px; }
.xgrid.is-list .xcard-specs .spec dd { font-size: 13px; }
.xgrid.is-list .xcard-foot { padding: 8px 14px; border-top: none; border-left: 1px solid var(--line); min-width: 140px; }
.xgrid.is-list .xcard-year { top: 6px; left: 6px; font-size: 10px; padding: 2px 6px; }
.xgrid.is-list .xcard-photos { display: none; }
.xgrid.is-list .xcard-peek { display: none; }
@media (max-width: 700px) {
  .xgrid.is-list .xcard-link { flex-direction: row; }
  .xgrid.is-list .xcard-media { width: 80px; min-width: 80px; margin: 6px 0 6px 8px; }
  .xgrid.is-list .xcard-specs { grid-template-columns: repeat(2, auto); gap: 2px 12px; }
  .xgrid.is-list .xcard-foot { flex-direction: column; min-width: auto; border-left: none; border-top: 1px solid var(--line); padding: 6px 10px; }
}

/* ==========================================================================
   Detail: prev/next floorplan navigation
   ========================================================================== */
.detail-pager {
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.detail-pager-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--muted);
  padding: 12px 0; transition: color .15s;
  text-decoration: none; min-width: 0;
}
.detail-pager-link:hover { color: var(--copper-deep); text-decoration: none; }
.detail-pager-link--prev { margin-right: auto; }
.detail-pager-link--next { margin-left: auto; text-align: right; }
.detail-pager-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: block; }
.detail-pager-name { font-size: 15px; font-weight: 600; color: var(--ink); display: block; }
.detail-pager-link:hover .detail-pager-name { color: var(--copper-deep); }
.detail-pager-arrow { font-size: 18px; color: var(--copper); flex-shrink: 0; }
@media (max-width: 560px) {
  .detail-pager { padding: 0 14px; }
  .detail-pager-name { font-size: 13px; }
}

/* ==========================================================================
   Saved: Recently Viewed section
   ========================================================================== */
.recent-section { max-width: var(--maxw); margin: 48px auto 0; padding: 0 20px 40px; }
.recent-section h2 { font-size: 22px; margin: 0 0 6px; }
.recent-lead { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.recent-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px;
}
.recent-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  padding: 10px 14px; text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.recent-card:hover { border-color: var(--copper); box-shadow: 0 2px 8px rgba(31,27,22,.08); text-decoration: none; }
.recent-card-thumb { width: 56px; height: 38px; border-radius: 3px; object-fit: cover; flex-shrink: 0; background: var(--bg); }
.recent-card-info { min-width: 0; }
.recent-card-model { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-card-year { font-size: 12px; color: var(--muted); }
.recent-clear { font: inherit; font-size: 13px; background: none; border: 1px solid var(--line); border-radius: 4px; padding: 5px 12px; color: var(--muted); cursor: pointer; float: right; margin-top: -32px; }
.recent-clear:hover { border-color: var(--copper); color: var(--ink); }

/* Home: recently viewed strip — compact horizontal scroll of recent models */
.home-recent { max-width: var(--maxw); margin: 0 auto; padding: 24px 20px 8px; }
.home-recent[hidden] { display: none; }
.home-recent-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.home-recent-title { font-family: var(--ff-display); font-size: 18px; font-weight: 600; margin: 0; color: var(--ink); }
.home-recent-clear { font: inherit; font-size: 12px; background: none; border: 1px solid var(--line); border-radius: 4px; padding: 4px 10px; color: var(--muted); cursor: pointer; }
.home-recent-clear:hover { border-color: var(--copper); color: var(--ink); }
.home-recent-strip { display: flex; gap: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
.home-recent-strip::-webkit-scrollbar { display: none; }
.home-recent-card { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px 8px 8px; text-decoration: none; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.home-recent-card:hover { border-color: var(--copper); box-shadow: 0 2px 10px rgba(31,27,22,.08); text-decoration: none; }
.home-recent-thumb { width: 72px; height: 48px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: var(--bg); }
.home-recent-info { min-width: 0; }
.home-recent-model { display: block; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-recent-year { display: block; font-size: 11px; color: var(--muted); }

/* ==========================================================================
   EXPLORE CARD RANGE BARS — inline fleet-position indicators
   Show where each model sits in the lineup for weight, length, and price.
   ========================================================================== */
.range-bar {
  display: block; margin-top: 3px;
}
.range-bar-track {
  display: block; width: 100%; height: 3px;
  background: var(--line); border-radius: 2px; overflow: hidden;
}
.range-bar-fill {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--copper), var(--copper-deep));
  border-radius: 2px;
  transition: width .4s cubic-bezier(.2,.7,.35,1);
}
.xgrid.is-list .range-bar { display: none; }
@media (max-width: 440px) {
  .range-bar { margin-top: 2px; }
  .range-bar-track { height: 2px; }
}

/* ==========================================================================
   IMAGE SHIMMER SKELETON — premium loading placeholder for lazy images.
   Shows an animated shimmer gradient before the real image loads.
   ========================================================================== */
@keyframes img-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
img[loading="lazy"]:not(.is-loaded) {
  background: linear-gradient(
    90deg,
    var(--surface) 25%,
    color-mix(in srgb, var(--line) 60%, transparent) 37%,
    var(--surface) 63%
  );
  background-size: 200% 100%;
  animation: img-shimmer 1.6s ease-in-out infinite;
}
/* Cutout images on cream — slightly different tint so shimmer blends */
.gallery-img--cutout:not(.is-loaded) {
  background: linear-gradient(
    90deg,
    #F5EDE4 25%,
    #E8DFD3 37%,
    #F5EDE4 63%
  );
  background-size: 200% 100%;
  animation: img-shimmer 1.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  img[loading="lazy"]:not(.is-loaded),
  .gallery-img--cutout:not(.is-loaded) {
    animation: none;
    background: var(--surface);
  }
}

/* ==========================================================================
   DETAIL HERO PARALLAX — subtle depth effect on scroll
   ========================================================================== */
.detail-hero {
  overflow: hidden;
  /* Slightly taller than content to allow parallax movement */
}
.detail-hero-btn img,
.detail-hero > img {
  transition: transform .1s linear;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .detail-hero-btn img,
  .detail-hero > img { will-change: auto; transition: none; }
}

/* ==========================================================================
   LAYOUT FEATURE FILTER CHIPS — bed/bath/layout type filters
   ========================================================================== */
.layoutfilter {
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; min-height: 34px;
  background: var(--surface); color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px;
  transition: border-color .15s, color .15s, background .15s;
}
.layoutfilter:hover { border-color: var(--copper); color: var(--copper-deep); }
.layoutfilter[aria-pressed="true"] { background: var(--copper-deep); border-color: var(--copper-deep); color: #fff; }
.xc-tags-layout { display: flex; flex-wrap: wrap; gap: 6px; }
.xc-row-3 { max-width: var(--maxw); margin: 0 auto; padding: 8px 20px 0; }

/* ==========================================================================
   ACTIVE FILTER SUMMARY PILLS — shows what's filtered with remove buttons
   ========================================================================== */
.active-filters {
  max-width: var(--maxw); margin: 10px auto 0; padding: 0 20px;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.active-filters[hidden] { display: none; }
.filter-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font: inherit; font-size: 12px; font-weight: 600;
  background: color-mix(in srgb, var(--copper) 12%, transparent);
  color: var(--copper-deep); border: 1px solid color-mix(in srgb, var(--copper) 30%, transparent);
  border-radius: 999px; padding: 4px 8px 4px 10px;
  white-space: nowrap; line-height: 1;
}
.filter-pill-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%; border: none; padding: 0;
  background: transparent; color: var(--copper-deep); cursor: pointer;
  font-size: 13px; font-weight: 700; line-height: 1;
  transition: background .15s;
}
.filter-pill-x:hover { background: color-mix(in srgb, var(--copper) 25%, transparent); }
.filter-clear-all {
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  background: transparent; color: var(--muted); border: none; padding: 4px 8px;
  text-decoration: underline; text-underline-offset: 2px;
}
.filter-clear-all:hover { color: var(--ink); }

/* ==========================================================================
   SCROLL TO TOP — floating action button
   ========================================================================== */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, background .15s, box-shadow .15s;
  pointer-events: none;
}
.scroll-top.is-visible {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.scroll-top:hover {
  background: var(--copper); color: #fff; border-color: var(--copper);
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.scroll-top[hidden] { display: none; }
@media (max-width: 560px) {
  .scroll-top { bottom: 20px; right: 16px; width: 40px; height: 40px; }
}
/* Don't overlap the compare bar when it's visible */
.cmp-bar:not([hidden]) ~ .scroll-top.is-visible,
body:has(.cmp-bar:not([hidden])) .scroll-top.is-visible { bottom: 80px; }
@media (prefers-reduced-motion: reduce) {
  .scroll-top { transition: none; }
}

/* ------------------------------------------------------------------ */
/* FINANCING CALCULATOR                                               */
/* ------------------------------------------------------------------ */
.finance-slider-row {
  display: flex; align-items: center; gap: 12px;
}
.finance-range {
  flex: 1; min-width: 120px; accent-color: var(--copper);
  height: 6px; cursor: pointer;
}
.finance-range-val {
  font-size: 13px; font-weight: 600; color: var(--ink);
  white-space: nowrap; min-width: 110px; text-align: right;
}
.finance-breakdown { margin-top: 16px; }
.finance-dl {
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--line); max-width: 340px;
}
.finance-dl-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.finance-dl-row dt { color: var(--muted); }
.finance-dl-row dd { font-weight: 600; margin: 0; }
.finance-dl-total dt,
.finance-dl-total dd { font-weight: 700; color: var(--ink); }
.est-caveat {
  font-size: 12px; margin-top: 14px; line-height: 1.5;
}
@media (max-width: 560px) {
  .finance-slider-row { flex-wrap: wrap; }
  .finance-range-val { min-width: auto; text-align: left; }
}

/* ------------------------------------------------------------------ */
/* NEXT STEPS — dealer / resources cards                              */
/* ------------------------------------------------------------------ */
.next-steps {
  padding: 40px 0 24px;
  max-width: var(--reading, 880px);
  margin: 0 auto;
}
.next-steps h2 {
  font-family: var(--display); font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600; margin: 0 0 18px; color: var(--ink);
}
.nextstep-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.nextstep-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card, #fff);
  text-decoration: none; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.nextstep-card:hover {
  border-color: var(--copper);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.nextstep-icon { flex-shrink: 0; color: var(--copper); }
.nextstep-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nextstep-title { font-weight: 600; font-size: 15px; }
.nextstep-sub { font-size: 13px; color: var(--muted); line-height: 1.4; }
.nextstep-arrow { flex-shrink: 0; font-size: 16px; color: var(--muted); margin-left: auto; }

/* =========================================================================
   YEAR-OVER-YEAR DIFF TABLE
   ========================================================================= */
.year-diff {
  padding: 32px 0 24px;
  max-width: var(--reading, 880px);
  margin: 0 auto;
}
.year-diff h2 {
  font-family: var(--display); font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600; margin: 0 0 6px; color: var(--ink);
}
.year-diff-sub {
  font-size: 14px; color: var(--muted); margin: 0 0 16px; line-height: 1.5;
}
.year-diff-table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--card, #fff);
}
.year-diff-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.year-diff-table th {
  text-align: left; font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); padding: 10px 14px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.year-diff-table td {
  padding: 9px 14px; border-bottom: 1px solid var(--line);
  white-space: nowrap; color: var(--ink);
}
.year-diff-table tbody tr:last-child td { border-bottom: none; }
.diff-field { font-weight: 500; }
.diff-arrow { text-align: center; font-size: 15px; }
.diff-from { color: var(--muted); }
.diff-delta { font-weight: 600; font-size: 13px; }
.diff-good .diff-delta { color: #2e7d32; }
.diff-warn .diff-delta { color: #c75000; }
.diff-neutral .diff-delta { color: var(--muted); }
.diff-good .diff-arrow { color: #2e7d32; }
.diff-warn .diff-arrow { color: #c75000; }
.year-diff-note { font-size: 13px; margin: 10px 0 0; }

@media (max-width: 560px) {
  .year-diff-table th,
  .year-diff-table td { padding: 8px 10px; font-size: 13px; }
}

/* =========================================================================
   OWNERSHIP COST — STACKED BAR + BREAKDOWN
   ========================================================================= */
.ownership-breakdown { margin-top: 16px; }
.own-bar-stack {
  display: flex; height: 28px; border-radius: 6px; overflow: hidden;
  margin-bottom: 16px; gap: 2px;
}
.own-bar {
  display: flex; align-items: center; justify-content: center;
  min-width: 40px; transition: flex .3s ease;
}
.own-bar-label {
  font-size: 11px; font-weight: 600; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 0 6px;
}
.own-bar--insurance     { background: #5C6BC0; }
.own-bar--storage       { background: #26A69A; }
.own-bar--maintenance   { background: #FF8F00; }
.own-bar--depreciation  { background: #78909C; }

/* =========================================================================
   COLLAPSIBLE DETAIL SECTIONS
   ========================================================================= */
.detail section[data-collapsible] > h2 {
  cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 8px;
}
.detail section[data-collapsible] > h2::after {
  content: ''; display: inline-block;
  width: 8px; height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .25s ease;
  margin-left: auto; flex-shrink: 0;
}
.detail section[data-collapsible].is-collapsed > h2::after {
  transform: rotate(-45deg);
}
.detail section[data-collapsible] > .est-head > h2 {
  cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 8px;
}
.detail section[data-collapsible] > .est-head > h2::after {
  content: ''; display: inline-block;
  width: 8px; height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .25s ease;
  margin-left: auto; flex-shrink: 0;
}
.detail section[data-collapsible].is-collapsed > .est-head > h2::after {
  transform: rotate(-45deg);
}
.section-collapse-body {
  overflow: hidden;
  transition: max-height .35s ease, opacity .25s ease;
  max-height: 5000px; opacity: 1;
}
.is-collapsed .section-collapse-body {
  max-height: 0; opacity: 0;
}

/* ====================== COMPARE VERDICT + DIFF ====================== */
.cmp-diff {
  display: inline; font-size: 0.8em; color: var(--muted); margin-left: 4px;
}
.cmp-best .cmp-diff { color: var(--muted); }
.cmp-verdict th, .cmp-verdict td {
  border-top: 2px solid var(--line);
  font-weight: 600; padding-top: 12px;
}
.cmp-verdict-lead {
  color: var(--copper, #b87333); font-weight: 700;
}
.cmp-share-row {
  display: flex; justify-content: flex-end; margin-bottom: 12px;
}
.cmp-share-btn { font-size: 0.85em; }

/* ====================== SAVED RECOMMENDATIONS ====================== */
.recs-section {
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--line);
}
.recs-section h2 { margin-bottom: 4px; }
.recs-lead {
  color: var(--muted); font-size: 0.92em; margin-bottom: 20px;
}
.recs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.recs-card {
  display: flex; flex-direction: column;
  background: var(--card, #fff); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.recs-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.recs-card img {
  width: 100%; height: 140px; object-fit: cover;
  background: var(--line);
}
.recs-card-info {
  padding: 12px 14px; display: flex; flex-direction: column; gap: 4px;
}
.recs-card-info strong { font-size: 0.95em; }
.recs-card-meta {
  font-size: 0.82em; color: var(--muted);
}

/* ====================== TRIP READY CHECKLIST ====================== */
.trip-ready {
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.trip-ready .collapsible-trigger {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px;
  cursor: pointer; user-select: none;
  background: var(--card, #fff);
  margin: 0; font-size: 1.2em;
}
.trip-ready .collapsible-icon {
  margin-left: auto;
  width: 10px; height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}
.trip-ready .collapsible-trigger[aria-expanded="false"] .collapsible-icon {
  transform: rotate(-45deg);
}
.trip-count {
  font-size: 0.65em; font-weight: 400;
  color: var(--muted); margin-left: 4px;
}
.trip-ready .collapsible-body {
  padding: 0 20px 20px;
}
.trip-intro {
  color: var(--muted); font-size: 0.9em; margin-bottom: 16px;
}
.trip-progress {
  height: 6px; background: var(--line); border-radius: 3px;
  margin-bottom: 20px; overflow: hidden;
}
.trip-progress-fill {
  height: 100%; background: var(--copper, #b87333);
  border-radius: 3px; width: 0;
  transition: width 0.4s ease;
}
.trip-groups {
  display: grid; gap: 20px;
}
.trip-group-title {
  font-size: 0.88em; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted);
  margin-bottom: 8px; font-weight: 600;
}
.trip-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.trip-item { margin: 0; }
.trip-label {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 6px;
  cursor: pointer; transition: background 0.15s ease;
  font-size: 0.92em;
}
.trip-label:hover { background: rgba(184,115,51,0.06); }
.trip-check {
  width: 18px; height: 18px; flex-shrink: 0;
  accent-color: var(--copper, #b87333);
}
.trip-check:checked ~ .trip-text {
  text-decoration: line-through; color: var(--muted);
}
.trip-icon { font-size: 1.1em; flex-shrink: 0; width: 22px; text-align: center; }
.trip-actions {
  margin-top: 16px; display: flex; justify-content: flex-end;
}
.trip-reset {
  font-size: 0.85em; padding: 6px 14px;
  background: transparent; border: 1px solid var(--line);
  border-radius: 6px; cursor: pointer; color: var(--muted);
  transition: border-color 0.2s ease;
}
.trip-reset:hover { border-color: var(--copper, #b87333); }
@media (max-width: 560px) {
  .trip-ready .collapsible-trigger { padding: 14px 16px; font-size: 1.05em; }
  .trip-ready .collapsible-body { padding: 0 16px 16px; }
  .recs-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .recs-card img { height: 100px; }
}

/* --- Spec row tap-to-copy --- */
.specs-copyable dt,
.specs-copyable dd { cursor: pointer; transition: background-color .15s; }
.specs-copyable dt:hover,
.specs-copyable dd:hover { background-color: var(--line, rgba(0,0,0,.04)); border-radius: 4px; }
.specs-copyable dt.is-copied,
.specs-copyable dd.is-copied { background-color: rgba(166,126,83,.12); border-radius: 4px; }
.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink, #1F1B16);
  color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.copy-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
[data-theme="dark"] .copy-toast {
  background: #E8E0D4;
  color: #1F1B16;
}

/* ======================================================================== */
/* STICKY DETAIL SUMMARY BAR                                                */
/* ======================================================================== */
.detail-sticky-summary {
  position: fixed; top: var(--nav-h, 56px); left: 0; right: 0; z-index: 45;
  background: color-mix(in srgb, var(--bg, #FAF8F5) 90%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line, #E2DDD8);
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-size: 13px;
}
.detail-sticky-summary[hidden] { display: block !important; opacity: 0; transform: translateY(-100%); pointer-events: none; }
.detail-sticky-summary:not([hidden]) { opacity: 1; transform: translateY(0); }
.sticky-summary-inner {
  max-width: 880px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 8px; flex-wrap: nowrap;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.sticky-summary-inner::-webkit-scrollbar { display: none; }
.sticky-summary-title { font-family: var(--heading-font, 'Fraunces', serif); font-weight: 700; font-size: 15px; white-space: nowrap; }
.sticky-summary-sep { color: var(--muted, #8C8579); }
.sticky-summary-stat { white-space: nowrap; color: var(--muted, #8C8579); font-weight: 500; }
.sticky-summary-cta {
  margin-left: auto; white-space: nowrap; font-weight: 600; font-size: 12px;
  color: var(--copper, #B8763E); text-decoration: none; padding: 4px 10px;
  border: 1px solid var(--copper, #B8763E); border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.sticky-summary-cta:hover { background: var(--copper, #B8763E); color: #fff; }
@media (max-width: 560px) {
  .sticky-summary-inner { padding: 8px 14px; gap: 6px; }
  .sticky-summary-title { font-size: 13px; }
  .sticky-summary-stat { font-size: 12px; }
}
@media print { .detail-sticky-summary { display: none !important; } }

/* ======================================================================== */
/* WEIGHT BUDGET WATERFALL                                                  */
/* ======================================================================== */
.weight-budget { margin: 0 0 24px; }
.wb-intro { font-size: 14px; color: var(--muted, #8C8579); margin: 0 0 14px; }
.wb-bar-wrap { padding: 2px 0 10px; }
.wb-bar {
  display: flex; height: 32px; border-radius: 6px; overflow: hidden;
  background: var(--surface, #F3EFEB);
}
.wb-seg {
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: #fff;
  transition: width 0.4s ease;
  min-width: 0;
}
.wb-seg-pct { opacity: 0.9; }
.wb-fresh { background: #4A8FB8; }
.wb-waste { background: #7C6F64; }
.wb-propane { background: #D4833E; }
.wb-gear { background: #4A8C5C; }
.wb-legend {
  display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 8px;
  font-size: 13px; color: var(--ink, #1F1B16);
}
.wb-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.wb-legend-dot { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.wb-legend-dot.wb-fresh { background: #4A8FB8; }
.wb-legend-dot.wb-waste { background: #7C6F64; }
.wb-legend-dot.wb-propane { background: #D4833E; }
.wb-legend-dot.wb-gear { background: #4A8C5C; }
.wb-verdict { font-size: 13px; margin: 6px 0 0; padding: 8px 12px; border-radius: 6px; }
.wb-verdict--good { background: rgba(74,140,92,0.1); color: #3a7a4e; }
.wb-verdict--ok { background: rgba(212,131,62,0.1); color: #b07030; }
.wb-verdict--tight { background: rgba(180,60,60,0.1); color: #a04040; }

/* ======================================================================== */
/* COMPARE RADAR OVERLAY                                                    */
/* ======================================================================== */
.cmp-radar-wrap { margin: 32px 0 0; text-align: center; }
.cmp-radar-title { font-family: var(--heading-font, 'Fraunces', serif); font-size: 20px; margin: 0 0 4px; }
.cmp-radar-sub { margin: 0 0 16px; }
.cmp-radar-chart { display: flex; justify-content: center; }
.cmp-radar-legend { display: flex; justify-content: center; gap: 20px; margin: 14px 0 0; font-size: 14px; font-weight: 500; }
.cmp-radar-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.cmp-radar-legend-dot { width: 12px; height: 12px; border-radius: 3px; }
@media print { .cmp-radar-wrap { display: none !important; } }

/* ======================================================================== */
/* SIZE SCALE — visual length comparison                                    */
/* ======================================================================== */
.size-scale { max-width: var(--reading-w, 880px); margin: 36px auto; padding: 0 var(--page-px, 24px); }
.size-scale h2 { font-family: var(--heading-font, 'Fraunces', serif); font-size: 24px; margin: 0 0 4px; }
.size-scale-intro { color: var(--muted); font-size: 15px; margin: 0 0 20px; }
.size-scale-chart { display: flex; flex-direction: column; gap: 10px; }
.size-ref-row { display: grid; grid-template-columns: 140px 1fr 70px; align-items: center; gap: 10px; }
.size-ref-label { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.size-ref-label--trailer { font-weight: 600; color: var(--ink); }
.size-ref-ft { opacity: 0.6; }
.size-ref-track { height: 22px; border-radius: 4px; background: color-mix(in srgb, var(--line) 50%, transparent); overflow: hidden; position: relative; }
.size-ref-bar { height: 100%; border-radius: 4px; background: color-mix(in srgb, var(--ink) 15%, transparent); transition: width 0.6s ease; }
.size-ref-bar--trailer { background: var(--copper); }
.size-ref--fits .size-ref-bar { background: color-mix(in srgb, #4A8C5C 25%, transparent); }
.size-ref-verdict { font-size: 12px; font-weight: 500; text-align: right; color: #4A8C5C; }
.size-ref-verdict--no { color: var(--muted); opacity: 0.7; }
@media (max-width: 560px) {
  .size-ref-row { grid-template-columns: 110px 1fr 55px; gap: 6px; }
  .size-ref-label { font-size: 12px; }
  .size-ref-track { height: 18px; }
}
@media print { .size-scale { break-inside: avoid; } }

/* ── Weight context ─────────────────────────────────────────────────────── */
.weight-context { max-width: var(--reading-w, 880px); margin: 36px auto; padding: 0 var(--page-px, 24px); }
.weight-context h2 { font-family: var(--heading-font, 'Fraunces', serif); font-size: 24px; margin: 0 0 4px; }
.wctx-intro { font-size: 15px; margin: 0 0 20px; }
.wctx-grid { display: flex; flex-direction: column; gap: 18px; }
.wctx-item { display: flex; align-items: flex-start; gap: 14px; }
.wctx-icon { font-size: 28px; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.wctx-detail { flex: 1; min-width: 0; }
.wctx-text { display: block; font-size: 15px; font-weight: 500; margin-bottom: 8px; color: var(--ink); }
.wctx-bars { display: flex; flex-direction: column; gap: 4px; }
.wctx-bar { height: 22px; border-radius: 4px; display: flex; align-items: center; padding: 0 8px; font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; transition: width .6s ease; }
.wctx-bar--trailer { background: var(--copper); color: #fff; }
.wctx-bar--ref { background: color-mix(in srgb, var(--ink) 12%, transparent); color: var(--muted); }
.wctx-bar-label { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) {
  .wctx-icon { font-size: 22px; }
  .wctx-text { font-size: 14px; }
  .wctx-bar { height: 18px; font-size: 10px; }
}
@media print { .weight-context { break-inside: avoid; } }

/* ======================================================================== */
/* COST PER NIGHT — camping vs hotel comparison                             */
/* ======================================================================== */
.cn-comparison { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 16px 0 20px; flex-wrap: wrap; }
.cn-side { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 28px; border-radius: 12px; background: var(--surface); min-width: 160px; flex: 1; max-width: 240px; }
.cn-side--airstream { border: 2px solid var(--copper); }
.cn-side--hotel { border: 2px solid var(--line); }
.cn-icon { font-size: 20px; margin: 0 0 6px; }
.cn-amount { font-family: var(--heading-font, 'Fraunces', serif); font-size: 36px; font-weight: 700; line-height: 1.1; }
.cn-side--airstream .cn-amount { color: var(--copper); }
.cn-label { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.cn-detail { font-size: 12px; color: var(--muted); opacity: 0.7; margin: 2px 0 0; }
.cn-vs { font-family: var(--heading-font, 'Fraunces', serif); font-size: 16px; color: var(--muted); font-weight: 600; }
.cn-verdict { text-align: center; font-size: 15px; padding: 12px 16px; border-radius: 8px; margin: 0 0 12px; }
.cn-verdict--saves { background: rgba(74,140,92,0.08); color: #3a7a4e; }
.cn-verdict--over { background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--muted); }
@media (max-width: 480px) {
  .cn-comparison { flex-direction: column; gap: 12px; }
  .cn-side { max-width: 100%; width: 100%; padding: 16px 20px; }
  .cn-amount { font-size: 30px; }
}
.cn-fee-presets { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 0; }
.cn-fee-preset { font-size: 11px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 20px; background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; transition: all .15s ease; }
.cn-fee-preset:hover { border-color: var(--copper); color: var(--ink); }
.cn-fee-preset.is-active { background: var(--copper); border-color: var(--copper); color: #fff; }
@media print { .cost-night { break-inside: avoid; } }

/* ======================================================================== */
/* TOW COMPATIBILITY BANNER — persistent context from explore selection     */
/* ======================================================================== */
.tow-banner { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 8px; font-size: 14px; line-height: 1.4; margin: 0 0 16px; max-width: var(--reading-w, 880px); margin-left: auto; margin-right: auto; position: relative; }
.tow-banner--ok { background: rgba(74,140,92,0.08); color: #3a7a4e; border: 1px solid rgba(74,140,92,0.2); }
.tow-banner--over { background: rgba(180,60,60,0.06); color: #a04040; border: 1px solid rgba(180,60,60,0.15); }
.tow-banner-icon { font-size: 18px; flex-shrink: 0; }
.tow-banner-dismiss { position: absolute; top: 6px; right: 8px; background: none; border: none; font-size: 18px; cursor: pointer; color: inherit; opacity: 0.5; padding: 2px 6px; line-height: 1; }
.tow-banner-dismiss:hover { opacity: 1; }
@media print { .tow-banner { break-inside: avoid; } }
/* === Fleet-wide standout badges on explore cards === */
.xcard-fleet-badges {
  position: absolute; bottom: 8px; left: 8px;
  display: flex; flex-wrap: wrap; gap: 4px;
  z-index: 2; pointer-events: none;
}
.fleet-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 8px; border-radius: 999px;
  font: 600 11px/1 "DM Sans", system-ui, sans-serif;
  letter-spacing: .02em; backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255,255,255,.88); color: var(--ink, #1F1B16);
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.fleet-badge-icon { font-size: 12px; }
.fleet-badge--fleet-lightest { background: rgba(74,140,92,.12); color: #2e6b3e; }
.fleet-badge--fleet-affordable { background: rgba(184,118,62,.12); color: #8a5524; }
.fleet-badge--fleet-offgrid { background: rgba(56,120,72,.12); color: #2e6b3e; }
.fleet-badge--fleet-cargo { background: rgba(100,100,160,.10); color: #4a4a80; }
.fleet-badge--fleet-value { background: rgba(184,118,62,.15); color: #8a5524; }
.fleet-badge--fleet-tanks { background: rgba(60,130,180,.12); color: #2a6a8a; }
[data-theme="dark"] .fleet-badge {
  background: rgba(30,28,24,.82); color: #e8e0d4;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
[data-theme="dark"] .fleet-badge--fleet-lightest { background: rgba(74,140,92,.22); color: #7bc68e; }
[data-theme="dark"] .fleet-badge--fleet-affordable { background: rgba(184,118,62,.22); color: #d4a66a; }
[data-theme="dark"] .fleet-badge--fleet-offgrid { background: rgba(56,120,72,.22); color: #7bc68e; }
[data-theme="dark"] .fleet-badge--fleet-cargo { background: rgba(100,100,160,.20); color: #a8a8d0; }
[data-theme="dark"] .fleet-badge--fleet-value { background: rgba(184,118,62,.25); color: #d4a66a; }
[data-theme="dark"] .fleet-badge--fleet-tanks { background: rgba(60,130,180,.22); color: #7ab8d4; }
@media (max-width: 560px) {
  .fleet-badge { font-size: 10px; padding: 2px 6px; }
}

/* === Gallery slideshow autoplay === */
.gallery-autoplay {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: auto; background: none; border: 1px solid var(--line, #E8E4DE);
  color: var(--muted, #8C8580); padding: 5px 12px; border-radius: 999px;
  font: 600 13px/1 "DM Sans", system-ui, sans-serif; cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.gallery-autoplay:hover { color: var(--copper, #B8763E); border-color: var(--copper, #B8763E); }
.gallery-autoplay.is-playing { color: var(--copper, #B8763E); border-color: var(--copper, #B8763E); }
.gallery-autoplay svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gallery-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.gallery-head h2 { margin: 0; }

/* === Homepage hero animated counters === */
.hero-stat { display: inline; }
.hero-stat.is-counting { font-variant-numeric: tabular-nums; }

/* ====================== AT A GLANCE — computed detail summary ====================== */
.glance-summary {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: color-mix(in srgb, var(--copper) 6%, var(--surface));
  border-radius: 12px;
  border-left: 3px solid var(--copper);
}
.glance-heading {
  font: 600 0.75rem/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--copper);
  margin: 0 0 0.75rem;
}
.glance-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.glance-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink);
}
.glance-icon {
  flex-shrink: 0;
  font-size: 1rem;
}
.glance-text {
  flex: 1;
}

/* ====================== PERSONAL NOTES ====================== */
.personal-notes {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.notes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.notes-title {
  font: 600 0.95rem/1.2 var(--sans);
  color: var(--ink);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.notes-icon {
  opacity: 0.6;
}
.notes-status {
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.2s;
}
.notes-status--saved {
  color: #3a9a5c;
}
.notes-status--saving {
  color: var(--copper);
}
.notes-input {
  display: block;
  width: 100%;
  min-height: 80px;
  max-height: 300px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: 0.9rem/1.5 var(--sans);
  resize: vertical;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.notes-input:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--copper) 15%, transparent);
}
.notes-input::placeholder {
  color: var(--muted);
  opacity: 0.8;
}
.notes-hint {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
}

/* ====================== PRINT SPEC SHEET — professional layout ====================== */
@media print {
  /* Hide everything interactive and non-essential */
  .topnav,
  .site-footer,
  .back-link,
  .detail-nav,
  .breadcrumb,
  .secnav,
  .detail-sticky-summary,
  .share-actions,
  .official-head,
  .save-btn,
  .standout-badges,
  .tow-callout,
  .tow-banner,
  .collapsible-trigger .collapsible-icon,
  .detail-pager,
  .gallery,
  .gallery-autoplay,
  .lightbox,
  .quick-view,
  #back-to-top,
  #scroll-top,
  .scroll-to-top,
  #kb-help,
  .skip-link,
  .next-steps,
  .cross-family,
  .related-section,
  .trip-reset,
  .quiz-overlay,
  .cmp-bar,
  .theme-toggle,
  .unit-toggle,
  .tow-tool,
  .explore-controls,
  .xc-layout,
  .xc-layout-actions,
  .csv-export-btn,
  .filter-pill,
  .active-filters,
  .xcount,
  .x-stats,
  .tagfilter,
  .layoutfilter,
  .xc-reset,
  .fab,
  .hero-zoom,
  .gallery-zoom,
  .floorplan-zoom-hint,
  .floorplan-zoom-btn,
  .detail-hero-btn,
  .notes-hint {
    display: none !important;
  }

  /* Reset page basics */
  body {
    font-size: 11pt;
    color: #1a1a1a;
    background: #fff;
    margin: 0;
    padding: 0;
  }
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* Detail page print layout */
  .detail {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
  .detail-head {
    text-align: center;
    padding-bottom: 0.5cm;
    border-bottom: 2px solid #1a1a1a;
    margin-bottom: 0.5cm;
  }
  .detail-head h1 {
    font-size: 20pt;
    margin: 0 0 2pt;
  }
  .eyebrow {
    font-size: 9pt;
    color: #666;
  }

  /* Hero image — full width, not too tall */
  .detail-hero {
    margin: 0.3cm 0;
    text-align: center;
  }
  .detail-hero img {
    max-width: 100%;
    max-height: 7cm;
    object-fit: contain;
    border-radius: 0;
  }

  /* Overview + glance summary compact */
  .detail-overview {
    margin: 0.3cm 0;
    page-break-inside: avoid;
  }
  .detail-desc {
    font-size: 10pt;
    margin: 0 0 0.3cm;
  }
  .glance-summary {
    background: #f7f5f2;
    border-left: 3px solid #a67c52;
    padding: 0.3cm 0.5cm;
    margin: 0.3cm 0;
    page-break-inside: avoid;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .glance-heading {
    font-size: 8pt;
    color: #a67c52;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .glance-item {
    font-size: 9pt;
    line-height: 1.4;
  }

  /* Specs table — compact 2-column */
  .spec-table {
    page-break-inside: avoid;
    margin: 0.3cm 0;
  }
  .spec-table h2 {
    font-size: 13pt;
    margin: 0 0 0.2cm;
  }
  .specs-grid {
    font-size: 10pt;
  }
  .spec {
    padding: 3pt 0;
    border-bottom: 0.5pt solid #ddd;
  }
  .spec dt { font-size: 9pt; }
  .spec-tip-text { display: none !important; }
  .spec-pct { display: none !important; }

  /* Weight budget — keep it, compact */
  .weight-budget {
    page-break-inside: avoid;
    margin: 0.3cm 0;
  }
  .wb-bar-wrap {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Collapsible sections: force all open for print */
  .collapsible-body,
  .section-collapse-body {
    display: block !important;
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible !important;
  }
  [hidden] {
    /* Don't force all hidden elements visible — only collapsible bodies above */
  }
  .is-collapsed .section-collapse-body {
    max-height: none !important;
    opacity: 1 !important;
  }

  /* Tool sections — hide interactive inputs, keep static output */
  .est-head select,
  .est-head input,
  .tow-config,
  .tow-sources,
  .fuel-sub,
  .own-slider-row,
  .cn-slider-row,
  .og-controls,
  #payload-controls,
  .payload-presets {
    display: none !important;
  }

  /* Notes — show content but hide textarea chrome */
  .personal-notes {
    page-break-inside: avoid;
    border: 1pt solid #ccc;
    padding: 0.3cm;
    margin: 0.3cm 0;
  }
  .notes-status { display: none !important; }

  /* Key stats row */
  .key-stats {
    page-break-inside: avoid;
    margin: 0.2cm 0;
  }

  /* Radar chart — keep, it's visual context */
  .cmp-radar-wrap {
    max-width: 8cm;
    margin: 0.3cm auto;
    page-break-inside: avoid;
  }

  /* Size scale diagram */

  /* Floorplan — essential for print */
  .floorplan {
    page-break-inside: avoid;
    margin: 0.3cm 0;
  }
  .floorplan-img {
    max-height: 10cm;
  }

  /* Seasonal guide */
  .seasonal-guide {
    page-break-inside: avoid;
  }

  /* Pros/cons */
  .proscons {
    page-break-inside: avoid;
  }

  /* Page footer for print */
  @page {
    margin: 1.5cm;
    @bottom-center {
      content: "Airstream Explorer · airstream-explorer.pages.dev";
      font-size: 8pt;
      color: #999;
    }
  }
}

/* =========================================================================
   RESALE VALUE PROJECTOR
   ========================================================================= */
.resale-projector { margin-top: var(--space-lg, 2.5rem); }
.resale-intro { margin-bottom: 1rem; }
.resale-condition { margin-bottom: 1.5rem; }
.resale-condition label { font-size: 0.85rem; font-weight: 600; margin-right: 0.5rem; }
.resale-condition select { font-size: 0.9rem; padding: 0.3rem 0.6rem; border: 1px solid var(--line, #ddd); border-radius: 6px; background: var(--surface, #fff); color: var(--ink, #1F1B16); }

.resale-chart {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.5rem;
  height: 180px;
  padding-bottom: 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--line, #ddd);
  margin-bottom: 1rem;
}
.resale-col { display: flex; flex-direction: column; align-items: center; flex: 1; height: 100%; }
.resale-bars { display: flex; gap: 3px; align-items: flex-end; flex: 1; width: 100%; }
.resale-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 4px;
  transition: height 0.4s ease;
  position: relative;
}
.resale-bar--airstream { background: var(--copper, #B87333); }
.resale-bar--industry { background: var(--muted, #999); opacity: 0.5; }
.resale-bar-val { font-size: 0.65rem; font-weight: 700; padding-top: 3px; color: #fff; white-space: nowrap; }
.resale-label { font-size: 0.75rem; color: var(--muted, #666); margin-top: 0.35rem; font-weight: 500; }

.resale-legend { display: flex; gap: 1.5rem; margin-bottom: 1.25rem; }
.resale-legend-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--muted, #666); }
.resale-legend-dot { width: 10px; height: 10px; border-radius: 2px; }
.resale-legend-dot--airstream { background: var(--copper, #B87333); }
.resale-legend-dot--industry { background: var(--muted, #999); opacity: 0.5; }

.resale-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.resale-hl { text-align: center; padding: 1rem; border-radius: 10px; background: var(--surface, rgba(0,0,0,0.02)); }
.resale-hl-label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted, #666); margin-bottom: 0.25rem; }
.resale-hl-value { display: block; font-family: var(--ff-display, 'Fraunces', serif); font-size: 1.5rem; font-weight: 700; color: var(--copper, #B87333); }
.resale-hl-note { display: block; font-size: 0.8rem; color: var(--ink, #1F1B16); margin-top: 0.25rem; }

/* =========================================================================
   TRIP COST ESTIMATOR
   ========================================================================= */
.trip-cost-tool { margin-top: var(--space-lg, 2.5rem); }

/* -----------------------------------------------------------------------
   MONTHLY PAYMENT ESTIMATE on explore cards
   ----------------------------------------------------------------------- */
.spec-monthly-label { font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.spec-monthly-val { font-size: 12px; color: var(--muted); font-weight: 500; }
.xgrid.is-list .spec-monthly-label,
.xgrid.is-list .spec-monthly-val { font-size: 11px; }

/* -----------------------------------------------------------------------
   SECTION ANCHOR LINKS — detail page heading permalinks
   ----------------------------------------------------------------------- */
.section-anchor {
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 8px; vertical-align: middle;
  opacity: 0; transition: opacity .2s;
  color: var(--muted); text-decoration: none;
  position: relative;
}
.section-anchor:hover { color: var(--copper); }
h2:hover .section-anchor,
.collapsible-trigger:hover .section-anchor,
.section-anchor:focus-visible { opacity: 1; }
@media (hover: none) { .section-anchor { opacity: .4; } }
.anchor-toast {
  position: absolute; top: -28px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 500;
  padding: 3px 8px; border-radius: 4px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.anchor-toast.is-visible { opacity: 1; }
@media print { .section-anchor { display: none !important; } }

/* SMART PRESETS — one-click filter combinations                            */
/* ========================================================================= */
.smart-presets {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  max-width: var(--maxw, 1120px); margin: 0 auto 24px; padding: 0 20px;
}
.smart-preset {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface, #FAF7F2); border: 1px solid var(--line, #E8E2D8);
  border-radius: 12px; padding: 10px 16px; cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  text-align: left; font-family: inherit; font-size: 14px; color: var(--ink, #1F1B16);
}
.smart-preset:hover {
  border-color: var(--copper, #B8763E); box-shadow: 0 2px 8px rgba(184,118,62,.12);
  transform: translateY(-1px);
}
.smart-preset.is-active {
  border-color: var(--copper, #B8763E); background: color-mix(in srgb, var(--copper, #B8763E) 8%, var(--surface, #FAF7F2));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--copper, #B8763E) 20%, transparent);
}
.smart-preset-icon { font-size: 22px; flex-shrink: 0; line-height: 1; }
.smart-preset-text { display: flex; flex-direction: column; gap: 1px; }
.smart-preset-label { font-weight: 600; font-size: 14px; line-height: 1.2; }
.smart-preset-desc { font-size: 11px; color: var(--muted, #8A8279); line-height: 1.3; }
@media (max-width: 560px) {
  .smart-presets { gap: 8px; padding: 0 12px; }
  .smart-preset { padding: 8px 12px; gap: 8px; }
  .smart-preset-icon { font-size: 18px; }
  .smart-preset-label { font-size: 13px; }
  .smart-preset-desc { font-size: 10px; }
}

/* NEAREST MATCHES — shown when filters return 0 results                    */
/* ========================================================================= */
.x-nearest { max-width: var(--maxw, 1120px); margin: 0 auto; padding: 0 20px 24px; }
.x-nearest-title {
  font-size: 14px; font-weight: 600; color: var(--muted, #8A8279);
  text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px;
}
.x-nearest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.x-nearest-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface, #FAF7F2); border: 1px solid var(--line, #E8E2D8);
  border-radius: var(--radius, 12px); padding: 14px 16px;
  text-decoration: none; color: var(--ink, #1F1B16);
  transition: border-color .2s, box-shadow .2s;
}
.x-nearest-card:hover {
  border-color: var(--copper, #B8763E);
  box-shadow: 0 2px 8px rgba(184,118,62,.1);
}
.x-nearest-thumb { width: 72px; height: 48px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: #ddd6c8; }
.x-nearest-info { flex: 1; min-width: 0; }
.x-nearest-name { font-weight: 600; font-size: 15px; margin: 0 0 2px; }
.x-nearest-reason { font-size: 12px; color: var(--muted, #8A8279); margin: 0; }

/* BROWSE-SIMILAR LINKS — spec table → explore deep links                   */
/* ========================================================================= */
.browse-links {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line, #E8E2D8);
}
.browse-links-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted, #8A8279); font-weight: 600;
}
.browse-link {
  font-size: 13px; color: var(--copper, #B8763E); text-decoration: none;
  padding: 4px 10px; border: 1px solid color-mix(in srgb, var(--copper, #B8763E) 30%, transparent);
  border-radius: 6px; transition: background .2s, border-color .2s;
  white-space: nowrap;
}
.browse-link:hover {
  background: color-mix(in srgb, var(--copper, #B8763E) 8%, transparent);
  border-color: var(--copper, #B8763E);
}

/* ── Scroll-reveal animations ───────────────────────────────────────────── */
.reveal-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s cubic-bezier(.16,1,.3,1), transform .55s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
.reveal-section.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-section:nth-child(2n) { transition-delay: .06s; }
.reveal-section:nth-child(3n) { transition-delay: .12s; }

@media (prefers-reduced-motion: reduce) {
  .reveal-section { opacity: 1; transform: none; transition: none; will-change: auto; }
}

/* ── Smooth collapsible transitions ─────────────────────────────────────── */
.section-collapse-body {
  overflow: hidden;
  opacity: 1;
  transition: max-height .35s cubic-bezier(.4,0,.2,1), opacity .25s ease;
}
[data-collapsible].is-collapsed .section-collapse-body {
  max-height: 0 !important;
  opacity: 0;
  pointer-events: none;
}
.collapsible .collapsible-body {
  overflow: hidden;
  opacity: 1;
  transition: max-height .35s cubic-bezier(.4,0,.2,1), opacity .25s ease;
}
.collapsible .collapsible-body[hidden] {
  display: block !important;
  max-height: 0 !important;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .section-collapse-body,
  .collapsible .collapsible-body { transition: none; }
}

/* =========================================================================
   WINTERIZATION / STORAGE GUIDE
   Mirrors trip-ready structure with distinct category colors
   ========================================================================= */

.winterization { margin: 2rem 0; }
.winterization .collapsible-trigger { display: flex; align-items: center; gap: 0.5em; }
.wz-count {
  font-size: 0.75rem; font-weight: 400; color: var(--muted);
  margin-left: 0.25em;
}
.wz-intro { color: var(--muted); font-size: 0.95rem; line-height: 1.5; margin-bottom: 1rem; }
.wz-progress {
  height: 6px; border-radius: 3px; background: var(--line);
  overflow: hidden; margin-bottom: 1.5rem;
}
.wz-progress-fill {
  height: 100%; border-radius: 3px; width: 0%;
  background: linear-gradient(90deg, #6D8B74, #3D6B4F);
  transition: width 0.4s ease;
}
.wz-groups { display: grid; gap: 1.5rem; }
.wz-group-title {
  font-size: 0.85rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.5rem;
  padding-bottom: 0.25rem; border-bottom: 1px solid var(--line);
}
.wz-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.wz-item { position: relative; }
.wz-label {
  display: flex; align-items: flex-start; gap: 0.5rem; cursor: pointer;
  padding: 0.5rem 0.75rem; border-radius: 8px; transition: background 0.2s;
}
.wz-label:hover { background: color-mix(in srgb, var(--copper) 6%, transparent); }
.wz-check {
  appearance: none; -webkit-appearance: none; width: 18px; height: 18px;
  border: 2px solid var(--line); border-radius: 4px; flex-shrink: 0;
  margin-top: 1px; cursor: pointer; transition: all 0.2s;
  position: relative;
}
.wz-check:checked {
  background: #3D6B4F; border-color: #3D6B4F;
}
.wz-check:checked::after {
  content: ''; position: absolute; left: 4px; top: 1px;
  width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.wz-check:checked ~ .wz-text { text-decoration: line-through; color: var(--muted); }
.wz-icon { font-size: 1rem; flex-shrink: 0; }
.wz-text { font-size: 0.95rem; line-height: 1.4; }
.wz-detail {
  font-size: 0.82rem; color: var(--muted); line-height: 1.4;
  padding-left: 3.25rem; margin-top: -0.25rem; margin-bottom: 0.25rem;
}
.wz-actions { margin-top: 1rem; text-align: right; }
.wz-reset {
  font-size: 0.85rem; color: var(--muted); background: none; border: 1px solid var(--line);
  padding: 0.4em 1em; border-radius: 6px; cursor: pointer; transition: all 0.2s;
}
.wz-reset:hover { border-color: var(--copper); color: var(--copper); }

/* Category accents */
.wz-cat--water .wz-group-title { color: #4A90A4; }
.wz-cat--electrical .wz-group-title { color: #C4873B; }
.wz-cat--gas .wz-group-title { color: #B85C3A; }
.wz-cat--exterior .wz-group-title { color: #6D8B74; }
.wz-cat--interior .wz-group-title { color: #8B7B6B; }

@media print { .winterization { break-inside: avoid; } }

/* =========================================================================
   TOW DIFFICULTY BADGE
   ========================================================================= */

.tow-diff { display: inline-flex; align-items: center; gap: 0.4em; }
.tow-diff-dots { display: inline-flex; gap: 3px; align-items: center; }
.tow-diff-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line); transition: background 0.2s;
}
.tow-diff-dot.is-filled { background: var(--copper); }
.tow-diff--1 .tow-diff-dot.is-filled { background: #4CAF50; }
.tow-diff--2 .tow-diff-dot.is-filled { background: #6D8B74; }
.tow-diff--3 .tow-diff-dot.is-filled { background: #C4873B; }
.tow-diff--4 .tow-diff-dot.is-filled { background: #D17A3E; }
.tow-diff--5 .tow-diff-dot.is-filled { background: #B85C3A; }
.tow-diff-label {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--muted);
}

/* Detail page: full badge with tip text */
.tow-diff--detail {
  margin: 0.5rem 0 0; flex-wrap: wrap; gap: 0.5em 0.75em;
}
.tow-diff-tip {
  font-size: 0.82rem; color: var(--muted); font-weight: 400;
  display: block; width: 100%; margin-top: 0.15em;
}

/* Card: compact inline */
.tow-diff--card {
  font-size: 0.75rem; margin-top: 0.35em;
}
.tow-diff--card .tow-diff-dot { width: 6px; height: 6px; }

@media print { .tow-diff-tip { display: none; } }

/* =========================================================================
   DETAIL COMPARE BUTTON — active state
   ========================================================================= */
.share-btn.is-compared {
  background: color-mix(in srgb, var(--copper) 12%, transparent);
  border-color: var(--copper); color: var(--copper);
}

/* ===================================================================
   SPEC DELTAS — comparison chips on related / cross-family cards
   =================================================================== */
.spec-deltas { display:flex; flex-wrap:wrap; gap:4px; margin-top:6px; }
.delta-chip {
  display:inline-block; font-size:.72rem; font-weight:500;
  padding:2px 6px; border-radius:3px; white-space:nowrap;
  line-height:1.4;
}
.delta-better { background:var(--delta-better-bg, rgba(46,125,50,.12)); color:var(--delta-better, #2e7d32); }
.delta-more   { background:var(--delta-more-bg, rgba(183,28,28,.10));   color:var(--delta-more, #b71c1c); }
.delta-shorter { background:var(--delta-shorter-bg, rgba(46,125,50,.10)); color:var(--delta-shorter, #2e7d32); }
.delta-longer  { background:var(--delta-longer-bg, rgba(33,33,33,.08));   color:var(--delta-longer, #666); }

/* ===================================================================
   WATER AUTONOMY CALCULATOR
   =================================================================== */
.water-calc .wc-headline {
  text-align:center; margin-bottom:1.5rem;
}
.water-calc .wc-limit-note {
  display:block; font-size:.82rem; color:var(--muted, #888); margin-top:.25rem;
}
.wc-usage-btns {
  display:flex; gap:6px; flex-wrap:wrap;
}
.wc-usage-btn {
  flex:1; min-width:100px; padding:8px 12px; border:1px solid var(--line, #e0d8cf);
  border-radius:6px; background:var(--surface, #faf8f5); color:var(--ink, #1F1B16);
  font-size:.82rem; cursor:pointer; text-align:center; transition:all .2s;
}
.wc-usage-btn.is-active {
  border-color:var(--copper, #b87333); background:var(--copper-wash, rgba(184,115,51,.08));
  font-weight:600;
}
.wc-tanks { display:flex; flex-direction:column; gap:12px; margin-top:1rem; }
.wc-tank-head {
  display:flex; align-items:center; gap:6px; margin-bottom:4px; font-size:.85rem;
}
.wc-tank-label { font-weight:600; }
.wc-tank-cap { color:var(--muted, #888); margin-left:auto; }
.wc-tank-bar {
  height:28px; background:var(--line, #e0d8cf); border-radius:4px; overflow:hidden;
  position:relative;
}
.wc-tank-fill {
  height:100%; border-radius:4px; display:flex; align-items:center; justify-content:flex-end;
  padding-right:8px; transition:width .4s ease;
  min-width:60px;
}
.wc-fresh .wc-tank-fill { background:var(--wc-fresh, #4fc3f7); }
.wc-gray .wc-tank-fill  { background:var(--wc-gray, #aed581); }
.wc-black .wc-tank-fill { background:var(--wc-black, #90a4ae); }
.wc-tank-fill--limiting { opacity:.85; }
.wc-tank-days { font-size:.75rem; font-weight:600; color:#fff; text-shadow:0 1px 2px rgba(0,0,0,.3); }
.wc-tank-limit { font-size:.72rem; color:var(--copper, #b87333); font-weight:500; margin-top:2px; }
.wc-usage-detail { font-size:.8rem; color:var(--muted, #888); margin-top:.75rem; }

/* ===================================================================
   MAINTENANCE QUICK-REF TABLE
   =================================================================== */
.maint-quickref { margin-top:2rem; }
.maint-intro { margin-bottom:1rem; font-size:.9rem; color:var(--muted, #888); }
.maint-table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
.maint-table { width:100%; border-collapse:collapse; font-size:.85rem; }
.maint-table th { text-align:left; padding:8px 10px; border-bottom:2px solid var(--line, #e0d8cf); font-weight:600; font-size:.78rem; text-transform:uppercase; letter-spacing:.03em; color:var(--muted, #888); }
.maint-table td { padding:8px 10px; border-bottom:1px solid var(--line, #e0d8cf); vertical-align:middle; }
.maint-icon { font-size:1.1rem; width:28px; text-align:center; }
.maint-task { font-weight:500; }
.maint-interval { white-space:nowrap; color:var(--muted, #888); }
.maint-cost { white-space:nowrap; }
.maint-badge {
  display:inline-block; font-size:.7rem; font-weight:600; padding:2px 8px;
  border-radius:3px; text-transform:uppercase; letter-spacing:.04em;
}
.maint-badge--safety  { background:rgba(211,47,47,.1); color:#c62828; }
.maint-badge--routine { background:rgba(46,125,50,.1); color:#2e7d32; }
.maint-badge--seasonal { background:rgba(25,118,210,.1); color:#1565c0; }
.maint-link { margin-top:1rem; font-size:.88rem; }
.maint-link a { color:var(--copper, #b87333); text-decoration:none; }
.maint-link a:hover { text-decoration:underline; }

/* ========================================================================= */
/* PROPANE DURATION ESTIMATOR                                                */
/* ========================================================================= */
.propane-tool .prop-controls { display: grid; gap: 1rem; }
.prop-field { padding: 0.5rem 0; }
.prop-field label { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.prop-icon { font-size: 1.1em; }
.prop-detail { margin: 0.25rem 0 0 1.75rem; font-size: 0.8rem; }
.prop-stats { display: flex; gap: 1.5rem; margin-top: 1rem; flex-wrap: wrap; }
.prop-stat { text-align: center; }
.prop-stat-val { display: block; font-size: 1.1rem; font-weight: 600; color: var(--copper, #C4873B); }
.prop-stat-label { font-size: 0.75rem; color: var(--muted, #8a8578); text-transform: uppercase; letter-spacing: 0.05em; }

/* ========================================================================= */
/* ELECTRICAL LOAD PLANNER                                                   */
/* ========================================================================= */
.elec-appliances { display: grid; gap: 0.5rem; margin-bottom: 1.5rem; }
.elec-row { display: grid; grid-template-columns: 1fr auto 80px; align-items: center; gap: 0.75rem; padding: 0.4rem 0; border-bottom: 1px solid var(--line, #e8e4de); }
.elec-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.9rem; }
.elec-check { accent-color: var(--copper, #C4873B); }
.elec-icon { font-size: 1.1em; }
.elec-name { font-weight: 500; }
.elec-watts { font-size: 0.85rem; color: var(--muted, #8a8578); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.elec-bar { height: 6px; background: var(--line, #e8e4de); border-radius: 3px; overflow: hidden; }
.elec-bar-fill { height: 100%; background: var(--copper, #C4873B); border-radius: 3px; transition: width 0.3s ease; }
.elec-budget { margin-bottom: 0.75rem; }
.elec-budget-bar { height: 12px; background: var(--line, #e8e4de); border-radius: 6px; overflow: hidden; position: relative; }
.elec-budget-fill { height: 100%; border-radius: 6px; transition: width 0.3s ease; background: linear-gradient(90deg, #4a9d5b, #C4873B); }
.elec-ok .elec-budget-fill { background: linear-gradient(90deg, #4a9d5b, #6dba7d); }
.elec-tight .elec-budget-fill { background: linear-gradient(90deg, #C4873B, #d4943f); }
.elec-over .elec-budget-fill { background: linear-gradient(90deg, #c0392b, #e74c3c); }
.elec-budget-labels { display: flex; justify-content: space-between; margin-top: 0.4rem; font-size: 0.8rem; color: var(--muted, #8a8578); flex-wrap: wrap; gap: 0.25rem; }
.elec-max { font-weight: 600; }
.elec-verdict { font-weight: 600; font-size: 0.95rem; margin: 0; }
.elec-ok .elec-verdict { color: #4a9d5b; }
.elec-tight .elec-verdict { color: #C4873B; }
.elec-over .elec-verdict { color: #c0392b; }

/* ========================================================================= */
/* EXPLORE LIST VIEW TOGGLE                                                  */
/* ========================================================================= */
.view-toggle { display: flex; gap: 2px; background: var(--line, #e8e4de); border-radius: 6px; padding: 2px; margin-left: auto; }
.view-btn { display: flex; align-items: center; justify-content: center; width: 32px; height: 28px; border: none; background: transparent; border-radius: 4px; cursor: pointer; color: var(--muted, #8a8578); transition: background 0.15s, color 0.15s; }
.view-btn.is-active { background: var(--bg, #FDFBF7); color: var(--ink, #1F1B16); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.view-btn:hover:not(.is-active) { color: var(--ink, #1F1B16); }

/* List view mode — compact horizontal rows instead of cards */
.xgrid--list { display: flex !important; flex-direction: column; gap: 0 !important; }
.xgrid--list .xcard { display: grid; grid-template-columns: 80px 1fr auto; grid-template-rows: auto; border-radius: 0; border-bottom: 1px solid var(--line, #e8e4de); }
.xgrid--list .xcard-link { display: contents; }
.xgrid--list .xcard-media { width: 80px; height: 56px; border-radius: 4px; overflow: hidden; margin: 0.5rem 0 0.5rem 0.5rem; }
.xgrid--list .xcard-media img { width: 100%; height: 100%; object-fit: cover; }
.xgrid--list .xcard-year,
.xgrid--list .xcard-photos,
.xgrid--list .xcard-peek,
.xgrid--list .xcard-fleet-badges,
.xgrid--list .xcard-tags,
.xgrid--list .range-bar { display: none !important; }
.xgrid--list .xcard-body { padding: 0.5rem 0.75rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.xgrid--list .xcard-title { font-size: 0.9rem; margin: 0; white-space: nowrap; min-width: 160px; }
.xgrid--list .xcard-specs { display: flex; gap: 1rem; margin: 0; font-size: 0.8rem; }
.xgrid--list .xcard-specs .spec { display: flex; gap: 0.3rem; }
.xgrid--list .xcard-specs .spec dt { font-weight: 400; color: var(--muted, #8a8578); }
.xgrid--list .xcard-specs .spec dd { font-weight: 500; margin: 0; }
.xgrid--list .spec-monthly-label,
.xgrid--list .spec-monthly-val { display: none; }
.xgrid--list .xcard-tow { font-size: 0.75rem; }
.xgrid--list .tow-diff--card { display: none; }
.xgrid--list .xcard-foot { grid-column: 3; display: flex; align-items: center; padding-right: 0.75rem; }
.xgrid--list .xcard-fit { display: none; }
@media (max-width: 640px) {
  .xgrid--list .xcard { grid-template-columns: 60px 1fr; }
  .xgrid--list .xcard-media { width: 60px; height: 44px; }
  .xgrid--list .xcard-foot { grid-column: 1 / -1; padding: 0 0.5rem 0.5rem; }
}

/* =========================================================================
   GRADE CLIMBING CALCULATOR
   ========================================================================= */
.grade-climb { margin: 2rem 0; }
.grade-passes { margin-top: 1rem; }
.grade-passes-label { font-size: 0.85rem; margin-bottom: 0.5rem; }
.grade-passes-grid { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.grade-pass-btn {
  background: var(--card, #fff); border: 1px solid var(--line, #e8e4de); border-radius: 6px;
  padding: 0.35rem 0.7rem; font: inherit; font-size: 0.8rem; color: var(--ink, #1F1B16);
  cursor: pointer; display: flex; align-items: baseline; gap: 0.35rem; transition: border-color 0.15s, background 0.15s;
}
.grade-pass-btn:hover { border-color: var(--copper, #B8860B); }
.grade-pass-btn.is-active { border-color: var(--copper, #B8860B); background: color-mix(in srgb, var(--copper, #B8860B) 8%, transparent); font-weight: 600; }
.grade-pass-pct { font-size: 0.72rem; color: var(--muted, #8a8578); font-weight: 400; }
.grade-verdict { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.grade-badge {
  display: inline-block; padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
}
.grade-badge--grade-ok { background: #e8f5e9; color: #2e7d32; }
.grade-badge--grade-warn { background: #fff3e0; color: #e65100; }
.grade-badge--grade-severe { background: #fce4ec; color: #c62828; }
.grade-speed { font-size: 0.9rem; color: var(--muted, #8a8578); }
.grade-tip { margin-top: 0.75rem; padding: 0.75rem 1rem; background: color-mix(in srgb, var(--copper, #B8860B) 5%, var(--card, #fff)); border-radius: 8px; border-left: 3px solid var(--copper, #B8860B); }
.grade-tip-text { margin: 0; font-size: 0.88rem; line-height: 1.55; }
.grade-tip-text strong { font-weight: 600; }
@media (max-width: 560px) {
  .grade-passes-grid { gap: 0.3rem; }
  .grade-pass-btn { padding: 0.25rem 0.5rem; font-size: 0.75rem; }
}

/* =========================================================================
   HITCH & TOWING SETUP GUIDE
   ========================================================================= */
.hitch-guide { margin: 2rem 0; }
.hitch-items { display: flex; flex-direction: column; gap: 0.75rem; }
.hitch-item {
  display: flex; gap: 0.75rem; padding: 0.75rem 1rem; background: var(--card, #fff);
  border: 1px solid var(--line, #e8e4de); border-radius: 8px;
}
.hitch-item--recommended { border-color: var(--copper, #B8860B); border-left-width: 3px; }
.hitch-item-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 0.1rem; }
.hitch-item-body { flex: 1; min-width: 0; }
.hitch-item-body strong { display: block; margin-bottom: 0.2rem; font-weight: 600; }
.hitch-item-body p { margin: 0; font-size: 0.85rem; line-height: 1.5; }

/* =========================================================================
   COMPARE PAGE — FLOOR PLAN ROW
   ========================================================================= */
.cmp-floorplan-row td { vertical-align: top; padding: 0.5rem; }
.cmp-floorplan-img {
  width: 100%; max-width: 200px; height: auto; border: 1px solid var(--line, #e8e4de);
  border-radius: 6px; background: var(--card, #fff);
}

/* --- Clearance Fit section --- */
.clearance-fit { max-width: 880px; margin: 2.5rem auto; }
.clearance-intro { color: var(--muted); margin-bottom: 1.25rem; }
.clearance-chart { display: flex; flex-direction: column; gap: 0.625rem; }
.clearance-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem; border-radius: 10px;
  background: var(--surface, #fafaf8); border: 1px solid var(--line, #e8e5df);
  gap: 1rem;
}
.clearance-row--fits { border-color: #c3e6cb; background: #f0f9f2; }
.clearance-row--blocked { border-color: #f5c6cb; background: #fdf2f2; }
.clearance-ref { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.clearance-ref-name { font-weight: 600; font-size: 0.95rem; }
.clearance-ref-dims { font-size: 0.82rem; }
.clearance-verdict { font-size: 0.85rem; font-weight: 500; white-space: nowrap; text-align: right; }
.clearance-verdict--yes { color: #2a7f3f; }
.clearance-verdict--no { color: #c0392b; }
.clearance-note { margin-top: 1rem; font-size: 0.82rem; }
@media (max-width: 560px) {
  .clearance-row { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .clearance-verdict { text-align: left; }
}
@media print { .clearance-fit { break-inside: avoid; } }

/* ===== EDITOR'S PICKS — curated recommendation strips on home page ===== */
.editors-picks { max-width: 1120px; margin: 3.5rem auto 2rem; padding: 0 1.5rem; }
.picks-heading { font-family: 'Fraunces', serif; font-size: 1.6rem; font-weight: 500; letter-spacing: 0.02em; margin: 0 0 0.3rem; }
.picks-sub { font-size: 0.88rem; margin: 0 0 2rem; }
.pick-strip { margin-bottom: 2.2rem; }
.pick-strip-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.9rem; }
.pick-strip-icon { font-size: 1.35rem; line-height: 1; }
.pick-strip-text { display: flex; flex-direction: column; }
.pick-strip-title { font-family: 'Fraunces', serif; font-size: 1.1rem; font-weight: 500; }
.pick-strip-sub { font-size: 0.8rem; }
.pick-strip-scroll {
  display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 0.5rem;
  mask-image: linear-gradient(to right, transparent 0, #000 1rem, #000 calc(100% - 2.5rem), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 1rem, #000 calc(100% - 2.5rem), transparent 100%);
}
.pick-strip-scroll::-webkit-scrollbar { display: none; }
.pick-card {
  flex: 0 0 260px; scroll-snap-align: start; border-radius: 10px;
  overflow: hidden; text-decoration: none; color: inherit;
  background: var(--card, #fff); box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pick-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.10); }
.pick-card-img { width: 100%; height: 150px; object-fit: cover; display: block; }
.pick-card-body { padding: 0.65rem 0.8rem 0.7rem; }
.pick-card-name { font-family: 'Fraunces', serif; font-size: 0.95rem; font-weight: 500; display: block; margin-bottom: 0.15rem; }
.pick-card-stat { font-size: 0.78rem; display: block; }
@media (max-width: 560px) {
  .editors-picks { padding: 0 1rem; margin-top: 2.5rem; }
  .picks-heading { font-size: 1.35rem; }
  .pick-card { flex: 0 0 220px; }
  .pick-card-img { height: 128px; }
}

/* ===== ANIMATED HERO COUNTERS ===== */
.hero-stat { display: inline-block; font-variant-numeric: tabular-nums; }
.hero-stat.is-counting { transition: none; }

/* ===== SCROLL FADE INDICATORS on horizontal scroll containers ===== */
.snav-list, .xcard-tags, .home-recent-strip, .cmp-starter {
  mask-image: linear-gradient(to right, transparent 0, #000 0.8rem, #000 calc(100% - 1.5rem), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 0.8rem, #000 calc(100% - 1.5rem), transparent 100%);
}
.snav-list.scroll-start, .xcard-tags.scroll-start, .home-recent-strip.scroll-start, .cmp-starter.scroll-start {
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 1.5rem), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 1.5rem), transparent 100%);
}
.snav-list.scroll-end, .xcard-tags.scroll-end, .home-recent-strip.scroll-end, .cmp-starter.scroll-end {
  mask-image: linear-gradient(to right, transparent 0, #000 0.8rem, #000 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 0.8rem, #000 100%);
}
.snav-list.scroll-both-end, .xcard-tags.scroll-both-end, .home-recent-strip.scroll-both-end, .cmp-starter.scroll-both-end {
  mask-image: none; -webkit-mask-image: none;
}

/* ===== PAYLOAD PACKING PRESETS ===== */
.payload-presets { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.payload-preset {
  font-size: 0.82rem; padding: 0.4rem 0.85rem; border-radius: 20px;
  border: 1px solid var(--line, #e0dcd6); background: var(--card, #fff);
  color: var(--ink, #1F1B16); cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.payload-preset:hover { background: #f5f0ea; border-color: #c49a6c; }
.payload-preset:active { transform: scale(0.96); }
.payload-preset.is-active { background: #c49a6c; color: #fff; border-color: #c49a6c; }
.payload-preset--clear { border-style: dashed; }
@media (max-width: 560px) {
  .payload-presets { gap: 0.4rem; }
  .payload-preset { font-size: 0.78rem; padding: 0.35rem 0.7rem; }
}

/* ===== AMENITY SUMMARY CHIPS ===== */
.amenity-summary {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0.5rem;
}
.amenity-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.82rem; padding: 0.3rem 0.7rem; border-radius: 20px;
  background: var(--card, #fff); border: 1px solid var(--line, #e0dcd6);
  color: var(--ink, #1F1B16); font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}
.amenity-icon { font-size: 0.9rem; line-height: 1; }
@media (max-width: 560px) {
  .amenity-chip { font-size: 0.76rem; padding: 0.25rem 0.55rem; }
}

/* ===== LIFESTYLE FIT METER ===== */
.lifestyle-fit { margin-top: 2rem; }
.lf-grid { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.lf-row {
  display: flex; align-items: flex-start; gap: 0.85rem;
  padding: 0.75rem 1rem; border-radius: 10px;
  background: var(--card, #fff); border: 1px solid var(--line, #e0dcd6);
}
.lf-icon { font-size: 1.3rem; line-height: 1; flex-shrink: 0; margin-top: 0.1rem; }
.lf-info { flex: 1; min-width: 0; }
.lf-header { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.lf-label { font-weight: 600; font-size: 0.92rem; color: var(--ink, #1F1B16); }
.lf-dots { display: flex; gap: 0.25rem; flex-shrink: 0; }
.lf-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid var(--copper, #c49a6c);
  background: transparent;
  transition: background 0.2s ease;
}
.lf-dot--filled { background: var(--copper, #c49a6c); border-color: var(--copper, #c49a6c); }
.lf-reason { font-size: 0.82rem; color: var(--muted, #8c8478); margin: 0.25rem 0 0; line-height: 1.4; }
@media (max-width: 560px) {
  .lf-row { padding: 0.6rem 0.75rem; }
  .lf-label { font-size: 0.85rem; }
  .lf-reason { font-size: 0.78rem; }
  .lf-dot { width: 9px; height: 9px; }
}

/* ===== STORAGE & PARKING GUIDE ===== */
.storage-guide { margin-top: 2rem; }
.sg-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin-top: 1rem;
}
.sg-card {
  padding: 1rem 1.1rem; border-radius: 10px;
  background: var(--card, #fff); border: 1px solid var(--line, #e0dcd6);
}
.sg-card-icon { display: block; margin-bottom: 0.5rem; color: var(--copper, #c49a6c); }
.sg-card-icon svg { display: block; }
.sg-card-title {
  font-size: 0.82rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--muted, #8c8478);
  margin: 0 0 0.4rem;
}
.sg-card-value {
  font-size: 0.92rem; color: var(--ink, #1F1B16); margin: 0 0 0.3rem;
  line-height: 1.4;
}
.sg-card-note { font-size: 0.78rem; margin: 0; }
@media (max-width: 768px) {
  .sg-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sg-card { padding: 0.75rem 0.85rem; }
  .sg-card-value { font-size: 0.85rem; }
}

@media print {
  .lifestyle-fit, .storage-guide { break-inside: avoid; }
}

/* -----------------------------------------------------------------------
   IDEAL-FOR BADGES — buyer persona chips on detail pages
   ----------------------------------------------------------------------- */
.ideal-for { margin: 2.5rem 0; }
.ideal-for h2 { font-family: var(--ff-display); font-size: 1.5rem; margin-bottom: 1rem; }
.ideal-grid {
  display: flex; flex-wrap: wrap; gap: .75rem;
}
.ideal-chip {
  display: flex; align-items: center; gap: .65rem;
  background: var(--surface, #faf8f5); border: 1px solid var(--line, #e8e2da);
  border-radius: .625rem; padding: .625rem 1rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ideal-chip:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.ideal-icon { font-size: 1.5rem; flex-shrink: 0; }
.ideal-text { display: flex; flex-direction: column; gap: .1rem; }
.ideal-label { font-weight: 600; font-size: .9rem; color: var(--ink, #1f1b16); }
.ideal-desc { font-size: .78rem; color: var(--muted, #8a7f72); line-height: 1.35; }

/* -----------------------------------------------------------------------
   FAMILY ADVISOR — "Which one should I pick?" cards on family pages
   ----------------------------------------------------------------------- */
.fam-advisor { margin: 2.5rem 0; }
.fam-advisor h2 { font-family: var(--ff-display); font-size: 1.5rem; margin-bottom: .25rem; }
.advisor-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .875rem; margin-top: 1rem;
}
.advisor-pick {
  display: flex; flex-direction: column; gap: .35rem;
  background: var(--surface, #faf8f5); border: 1px solid var(--line, #e8e2da);
  border-radius: .625rem; padding: 1rem 1.1rem;
  text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.advisor-pick:hover {
  transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.07);
  border-color: var(--copper, #b87333);
}
.advisor-q {
  font-size: .8rem; font-weight: 500; letter-spacing: .03em;
  text-transform: uppercase; color: var(--copper, #b87333);
}
.advisor-fp {
  font-family: var(--ff-display); font-size: 1.35rem; font-weight: 700;
  color: var(--ink, #1f1b16);
}
.advisor-why {
  font-size: .82rem; color: var(--muted, #8a7f72); line-height: 1.35;
}

/* ===== FLEET POSITION BARS — inline spec table position indicators ===== */
.spec-fleet {
  display: inline-flex; align-items: center; margin-left: 8px;
  vertical-align: middle; width: 72px; flex-shrink: 0;
}
.spec-fleet-track {
  display: block; position: relative; width: 100%; height: 4px;
  background: var(--line, #e8e2da); border-radius: 2px; overflow: visible;
}
.spec-fleet-fill {
  display: block; height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--copper, #b87333) 0%, var(--copper-deep, #9a5f28) 100%);
  min-width: 2px;
}
.spec-fleet-dot {
  position: absolute; top: 50%; width: 8px; height: 8px;
  border-radius: 50%; background: var(--copper, #b87333);
  border: 2px solid var(--surface, #fff); transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px var(--copper, #b87333);
}
@media print { .spec-fleet { display: none !important; } }

/* ===== RIG LENGTH CAMPSITE FIT ===== */
.rigfit {
  padding: 40px 0 24px; max-width: var(--reading, 880px); margin: 0 auto;
}
.rigfit h2 {
  font-family: var(--display); font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600; margin: 0 0 6px; color: var(--ink);
}
.rigfit-intro {
  font-size: .95rem; color: var(--muted, #8a7f72); margin: 0 0 16px;
  line-height: 1.5;
}
.rigfit-slider-row {
  display: flex; align-items: center; gap: 12px; margin: 0 0 20px;
  font-size: .88rem; color: var(--ink);
}
.rigfit-slider-row label { font-weight: 500; white-space: nowrap; }
.rigfit-slider {
  flex: 1; max-width: 200px; accent-color: var(--copper, #b87333);
  cursor: pointer;
}
.rigfit-slider-val {
  font-weight: 700; min-width: 30px; text-align: right;
  color: var(--copper, #b87333);
}
.rigfit-chart { display: flex; flex-direction: column; gap: 10px; }
.rigfit-row {
  display: grid; grid-template-columns: 1fr 2fr auto;
  align-items: center; gap: 12px; padding: 10px 14px;
  border-radius: 8px; border: 1px solid var(--line, #e8e2da);
  background: var(--surface, #fff);
}
.rigfit-row--fits { border-color: rgba(46,125,50,.2); }
.rigfit-row--over { border-color: rgba(198,40,40,.15); background: rgba(198,40,40,.03); }
.rigfit-site { display: flex; flex-direction: column; gap: 2px; }
.rigfit-site-name { font-weight: 600; font-size: .9rem; color: var(--ink); }
.rigfit-site-len { font-size: .78rem; color: var(--muted, #8a7f72); }
.rigfit-bar-wrap {
  height: 14px; background: var(--line, #e8e2da); border-radius: 7px;
  overflow: hidden; position: relative;
}
.rigfit-bar {
  height: 100%; border-radius: 7px; position: relative;
  display: flex; align-items: center; justify-content: flex-end; padding-right: 6px;
  transition: width .3s ease;
}
.rigfit-row--fits .rigfit-bar { background: rgba(46,125,50,.55); }
.rigfit-row--over .rigfit-bar { background: rgba(198,40,40,.55); }
.rigfit-rig-label {
  font-size: .65rem; font-weight: 700; color: #fff;
  white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.rigfit-verdict {
  font-size: .82rem; font-weight: 600; white-space: nowrap;
}
.rigfit-verdict--yes { color: #2e7d32; }
.rigfit-verdict--no { color: #c62828; }
.rigfit-note { font-size: .8rem; margin: 14px 0 0; }
@media (max-width: 560px) {
  .rigfit-row { grid-template-columns: 1fr; gap: 6px; padding: 10px; }
  .rigfit-slider-row { flex-wrap: wrap; }
  .rigfit-slider { max-width: 100%; }
}
@media print { .rigfit { break-inside: avoid; } .rigfit-slider-row { display: none; } }

/* =========================================================================
   FAQ SECTION — collapsible question-answer pairs on detail pages.
   Uses native <details>/<summary> for zero-JS progressive enhancement.
   ========================================================================= */
.faq {
  max-width: var(--reading, 880px);
  margin: 0 auto;
  padding: 40px 0 24px;
}
.faq h2 {
  font-family: var(--display); font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600; margin: 0 0 20px; color: var(--ink);
}
.faq-list {
  display: flex; flex-direction: column; gap: 0;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child {
  border-top: 1px solid var(--line);
}
.faq-q {
  cursor: pointer;
  list-style: none;
  padding: 18px 36px 18px 0;
  font: 600 clamp(15px, 1.8vw, 17px)/1.45 "DM Sans", sans-serif;
  color: var(--ink);
  position: relative;
  transition: color .16s ease;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { display: none; content: ''; }
.faq-q::after {
  content: '+';
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 300; color: var(--muted);
  transition: transform .2s ease, color .16s ease;
}
.faq-item[open] .faq-q::after {
  content: '−'; color: var(--copper-text);
}
.faq-q:hover { color: var(--copper-text); }
.faq-a {
  padding: 0 0 20px;
}
.faq-a p {
  margin: 0;
  font: 400 clamp(14px, 1.6vw, 15.5px)/1.7 "DM Sans", sans-serif;
  color: var(--muted);
}
@media (max-width: 560px) {
  .faq-q { padding: 14px 28px 14px 0; }
  .faq-q::after { font-size: 18px; }
}
@media print {
  .faq-item { break-inside: avoid; }
  .faq-item[open] .faq-a { display: block; }
  .faq-q::after { display: none; }
}

/* =========================================================================
   BUDGET ALTERNATIVES — "In your price range" cross-family section.
   Compact card grid mirroring cross-family style.
   ========================================================================= */
.budget-alts {
  max-width: var(--reading, 880px);
  margin: 0 auto;
  padding: 40px 0 24px;
}
.budget-alts h2 {
  font-family: var(--display); font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600; margin: 0 0 4px; color: var(--ink);
}
.budget-sub {
  font-size: 14px; margin: 0 0 18px;
}
.budget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.budget-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden;
  text-decoration: none; color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease, transform .12s ease;
}
.budget-card:hover {
  border-color: var(--copper); box-shadow: 0 4px 20px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.budget-media {
  aspect-ratio: 16/10; overflow: hidden; background: var(--surface);
}
.budget-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .2s ease;
}
.budget-card:hover .budget-media img { transform: scale(1.03); }
.budget-body {
  padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 4px;
}
.budget-title {
  font: 600 15px/1.3 "DM Sans", sans-serif; margin: 0;
}
.budget-title span { font-weight: 400; color: var(--muted); }
.budget-price {
  font: 700 16px/1.2 "DM Sans", sans-serif; margin: 0;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.budget-diff {
  display: inline-block; font-size: 12px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px; width: fit-content;
}
.budget-diff--less { background: rgba(46,160,67,.12); color: #1a7f37; }
.budget-diff--more { background: rgba(176,92,50,.12); color: var(--copper-text); }
.budget-diff--same { background: rgba(0,0,0,.06); color: var(--muted); }
.budget-specs {
  font: 400 13px/1.4 "DM Sans", sans-serif; margin: 0; color: var(--muted);
}
@media (max-width: 560px) {
  .budget-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media print {
  .budget-alts { break-inside: avoid; }
  .budget-card { box-shadow: none; border: 0.5pt solid #ccc; }
}

/* ── Hookup & adapter guide ────────────────────────────────────────── */
.hookup-guide { max-width: 880px; margin: 2.5rem auto; }
.hookup-intro { font-size: .98rem; line-height: 1.65; margin-bottom: 1.5rem; }
.hookup-section { margin-bottom: 2rem; }
.hookup-section-title { font-size: 1.05rem; font-weight: 600; margin-bottom: .35rem; }
.hookup-note { font-size: .85rem; line-height: 1.5; margin-bottom: 1rem; }
.hookup-adapter-grid { display: grid; gap: .75rem; }
.hookup-adapter {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .85rem 1rem; border-radius: 10px;
  background: var(--surface, #f8f5f0); border: 1px solid var(--line, #e8e2d8);
}
.hookup-adapter-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: .1rem; }
.hookup-adapter-info { display: flex; flex-direction: column; gap: .15rem; }
.hookup-adapter-name { font-weight: 600; font-size: .93rem; }
.hookup-adapter-plug { font-size: .82rem; }
.hookup-adapter-why { font-size: .85rem; line-height: 1.45; }

.hookup-gear-group { margin-top: 1.5rem; }
.hookup-gear-title { font-size: 1.05rem; font-weight: 600; margin-bottom: .75rem; }
.hookup-gear-item {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .65rem 0; border-bottom: 1px solid var(--line, #e8e2d8);
}
.hookup-gear-item:last-child { border-bottom: none; }
.hookup-gear-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: .1rem; }
.hookup-gear-info { display: flex; flex-direction: column; gap: .1rem; }
.hookup-gear-label { font-weight: 600; font-size: .92rem; }
.hookup-gear-note { font-size: .83rem; line-height: 1.45; }

/* ── Model Year Highlights ─────────────────────────────────────────── */
.myh-section { max-width: 1120px; margin: 3rem auto 2rem; padding: 0 1.25rem; }
.myh-head { margin-bottom: 1.25rem; }
.myh-title { font-family: var(--font-display, 'Fraunces', serif); font-size: 1.6rem; font-weight: 700; margin: 0 0 .3rem; }
.myh-sub { font-size: .92rem; margin: 0; }
.myh-stats {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem;
}
.myh-stat {
  font-size: .82rem; font-weight: 600; padding: .3rem .75rem;
  border-radius: 20px; background: var(--surface, #f8f5f0);
  border: 1px solid var(--line, #e8e2d8); white-space: nowrap;
}
.myh-stat--up { background: rgba(176,92,50,.1); color: #8b4513; }
.myh-stat--down { background: rgba(46,125,50,.1); color: #2e7d32; }
.myh-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .75rem;
}
.myh-card {
  display: flex; flex-direction: column; gap: .4rem;
  padding: 1rem 1.1rem; border-radius: 10px; text-decoration: none;
  background: var(--card, #fff); border: 1px solid var(--line, #e8e2d8);
  color: var(--ink, #1f1b16); transition: border-color .15s, box-shadow .15s;
}
.myh-card:hover { border-color: var(--copper, #b05c32); box-shadow: 0 2px 12px rgba(0,0,0,.07); }
.myh-card-name { font-weight: 700; font-size: .95rem; }
.myh-card-changes { display: flex; flex-wrap: wrap; gap: .35rem; }
.myh-change {
  font-size: .78rem; font-weight: 600; padding: .15rem .5rem;
  border-radius: 6px; white-space: nowrap;
}
.myh-delta--up { background: rgba(176,92,50,.12); color: #8b4513; }
.myh-delta--down { background: rgba(46,125,50,.12); color: #2e7d32; }
.myh-delta--changed { background: rgba(100,100,100,.1); color: var(--muted, #8a7e72); }

/* ── Glossary ──────────────────────────────────────────────────────── */
.glossary-head { max-width: 880px; margin: 2.5rem auto 1.5rem; padding: 0 1.25rem; }
.glossary-head h1 { font-family: var(--font-display, 'Fraunces', serif); font-size: 2rem; font-weight: 700; margin: .3rem 0 .5rem; }
.glossary-head .lede { font-size: 1rem; line-height: 1.6; color: var(--muted, #8a7e72); margin: 0; }
.glossary-toc {
  max-width: 880px; margin: 0 auto 2rem; padding: 0 1.25rem;
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.glossary-toc-link {
  font-size: .85rem; font-weight: 600; padding: .35rem .8rem;
  border-radius: 20px; text-decoration: none;
  background: var(--surface, #f8f5f0); border: 1px solid var(--line, #e8e2d8);
  color: var(--ink, #1f1b16); transition: border-color .15s;
}
.glossary-toc-link:hover { border-color: var(--copper, #b05c32); }
.glossary-cat { max-width: 880px; margin: 0 auto 2.5rem; padding: 0 1.25rem; }
.glossary-cat h2 { font-size: 1.2rem; font-weight: 700; margin: 0 0 1rem; }
.glossary-cat-icon { margin-right: .2rem; }
.glossary-dl { margin: 0; padding: 0; }
.glossary-term {
  padding: .85rem 0; border-bottom: 1px solid var(--line, #e8e2d8);
}
.glossary-term:last-child { border-bottom: none; }
.glossary-dt { font-weight: 700; font-size: .95rem; margin-bottom: .2rem; }
.glossary-dd { font-size: .9rem; line-height: 1.55; margin: 0; color: var(--muted, #8a7e72); }
.glossary-link {
  font-size: .82rem; font-weight: 600; color: var(--copper, #b05c32);
  text-decoration: none; margin-left: .3rem;
}
.glossary-link:hover { text-decoration: underline; }

/* ===================================================================
   SPEC YEAR-OVER-YEAR CHANGE INDICATORS — inline ↑/↓ on spec values
   =================================================================== */
.spec-yd {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: .68rem; font-weight: 600; letter-spacing: .01em;
  padding: 1px 5px; border-radius: 3px; margin-left: 6px;
  white-space: nowrap; vertical-align: middle; line-height: 1.4;
  cursor: help;
}
.spec-yd--up { background: rgba(183,28,28,.08); color: #b71c1c; }
.spec-yd--down { background: rgba(46,125,50,.08); color: #2e7d32; }
.spec-yd--changed { background: rgba(33,33,33,.06); color: var(--muted, #888); }
/* Weight/price going down is good (green); going up is cautionary (red).
   But for CCC/solar/battery, up is good. The data already has direction
   and the labels are self-documenting, so the color conveys "change
   happened" and the arrow + value tells the user what to think. */
.spec-yd-arrow { font-size: .8em; }
.spec-yd-val { font-variant-numeric: tabular-nums; }
@media print { .spec-yd { display: none !important; } }

/* ===================================================================
   PROGRESS RING — back-to-top button with circular scroll progress
   =================================================================== */
.back-to-top {
  position: relative;
}
.back-to-top .progress-ring {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}
.back-to-top .progress-ring circle {
  fill: none;
  stroke-width: 2.5;
}
.back-to-top .progress-ring .ring-bg {
  stroke: color-mix(in srgb, var(--line, #e0d8cf) 50%, transparent);
}
.back-to-top .progress-ring .ring-fg {
  stroke: var(--copper, #b87333);
  stroke-linecap: round;
  transition: stroke-dashoffset .15s ease-out;
}

/* ===================================================================
   SAVED INDICATOR ON EXPLORE CARDS — heart badge on saved cards
   =================================================================== */
.xcard-saved-badge {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  color: #c0392b; font-size: 14px; line-height: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  pointer-events: none;
  animation: saved-pop .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes saved-pop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.xcard-media { position: relative; }

/* ===================================================================
   RELATED TRAILERS — horizontal scroll carousel
   =================================================================== */
.related-grid::-webkit-scrollbar { height: 4px; }
.related-grid::-webkit-scrollbar-thumb { background: var(--line, #e0d8cf); border-radius: 2px; }
@media (max-width: 700px) {
  .rel-card { flex: 0 0 220px; min-width: 180px; }
}
/* Scroll fade hints */
.related { position: relative; }
.related::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 8px;
  width: 48px; pointer-events: none;
  background: linear-gradient(to right, transparent, var(--bg, #faf8f5));
}
.related.is-scrolled-end::after { opacity: 0; transition: opacity .3s; }

/* ===================================================================
   CARD IMAGE CAROUSEL — dot indicators on explore cards
   =================================================================== */
.xcard-carousel-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 2; pointer-events: none;
  opacity: 0; transition: opacity .25s ease;
}
.xcard-media:hover .xcard-carousel-dots { opacity: 1; }
@media (hover: none) { .xcard-carousel-dots { opacity: 1; } }
.xcard-carousel-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.45); transition: background .2s, transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.xcard-carousel-dot.is-active {
  background: #fff; transform: scale(1.3);
}

/* ===================================================================
   FLEET SCATTER CHART — price vs weight visualization
   =================================================================== */
.fleet-chart-wrap {
  max-width: 880px; margin: .75rem auto 1.25rem;
  border: 1px solid var(--line, #e0d8cf); border-radius: 12px;
  overflow: hidden;
}
.fleet-chart-toggle {
  cursor: pointer; padding: .65rem 1rem; font-weight: 600;
  font-size: .92rem; color: var(--ink, #1F1B16);
  background: var(--surface, #fff); display: block;
  list-style: none;
}
.fleet-chart-toggle::-webkit-details-marker { display: none; }
.fleet-chart-toggle::before {
  content: '▸'; display: inline-block; margin-right: .5em;
  transition: transform .2s;
}
.fleet-chart-wrap[open] > .fleet-chart-toggle::before { transform: rotate(90deg); }
.fleet-chart-sub { font-weight: 400; color: var(--muted, #8a8278); font-size: .85rem; }
.fleet-chart-body { padding: .5rem 1rem 1rem; overflow-x: auto; }
.fleet-chart-svg { width: 100%; height: auto; max-height: 360px; }
.fc-grid { stroke: var(--line, #e0d8cf); stroke-width: .5; }
.fc-label { font-size: 10px; fill: var(--muted, #8a8278); text-anchor: middle; }
.fc-label-y { text-anchor: end; }
.fc-axis-label { font-size: 11px; fill: var(--muted, #8a8278); text-anchor: middle; font-weight: 500; }
.fc-dot { opacity: .85; transition: opacity .3s, r .2s; cursor: pointer; }
.fc-dot:hover { opacity: 1; r: 9; }
.fc-dot--dimmed { opacity: .12; }
.fc-dot-link { text-decoration: none; }

/* ===================================================================
   PRIORITY RANKER — explore page weighted sort
   =================================================================== */
.ranker-toggle {
  cursor: pointer; padding: .65rem 1rem; font-weight: 600;
  font-size: .92rem; color: var(--ink, #1F1B16);
  background: var(--surface, #fff); display: flex;
  align-items: center; gap: .5rem; list-style: none;
}
.ranker-toggle::-webkit-details-marker { display: none; }
.ranker-toggle svg { opacity: .6; }
.priority-ranker[open] .ranker-toggle { border-bottom: 1px solid var(--line, #e0d8cf); }
.ranker-panel { padding: 1rem; }
.ranker-hint { font-size: .85rem; color: var(--muted, #8a8578); margin: 0 0 .75rem; }
.ranker-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.5rem; }
.ranker-field {
  display: grid; grid-template-columns: 1fr auto; gap: 0 .5rem;
  align-items: center;
}
.ranker-label { font-size: .85rem; font-weight: 500; grid-column: 1 / -1; margin-bottom: .15rem; }
.ranker-range { width: 100%; accent-color: var(--copper, #B8860B); }
.ranker-val { font-size: .8rem; font-weight: 600; color: var(--copper, #B8860B); min-width: 1.5em; text-align: center; }
.ranker-actions {
  display: flex; align-items: center; gap: 1rem;
  margin-top: .75rem; padding-top: .75rem;
  border-top: 1px solid var(--line, #e0d8cf);
}
.ranker-sort-btn {
  padding: .45rem 1.2rem; border-radius: 6px; border: none; cursor: pointer;
  font-weight: 600; font-size: .88rem;
  background: var(--copper, #B8860B); color: #fff;
}
.ranker-sort-btn:hover { filter: brightness(1.1); }
.ranker-reset { font-size: .85rem; }
.xcard-rank {
  position: absolute; top: .4rem; left: .4rem;
  background: var(--copper, #B8860B); color: #fff;
  font-size: .72rem; font-weight: 700; padding: .15rem .45rem;
  border-radius: 4px; z-index: 2;
}
@media (max-width: 600px) {
  .ranker-fields { grid-template-columns: 1fr; }
}

/* ===================================================================
   FAMILY QUICK-NAV — horizontal scroll bar on family pages
   =================================================================== */
.famnav {
  background: var(--surface, #faf8f4);
  border-bottom: 1px solid var(--line, #e0d8cf);
  position: sticky; top: var(--nav-h, 56px); z-index: 40;
}
.famnav-scroll {
  display: flex; gap: .25rem; overflow-x: auto;
  padding: .45rem 1rem; max-width: 1120px; margin: 0 auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.famnav-scroll::-webkit-scrollbar { display: none; }
.famnav-link {
  white-space: nowrap; padding: .3rem .7rem; border-radius: 6px;
  font-size: .82rem; font-weight: 500; text-decoration: none;
  color: var(--muted, #8a8578); transition: background .15s, color .15s;
  flex-shrink: 0;
}
.famnav-link:hover { background: color-mix(in srgb, var(--copper, #B8860B) 10%, transparent); color: var(--ink, #1F1B16); }
.famnav-link.is-current {
  background: color-mix(in srgb, var(--copper, #B8860B) 12%, transparent);
  color: var(--copper, #B8860B); font-weight: 600;
}

/* ===================================================================
   ALTITUDE ROW in grade climb
   =================================================================== */
.grade-alt-row dt { font-style: italic; }

/* ======================================================================== */
/* WEIGHT CLASS SEGMENT BAR                                                  */
/* ======================================================================== */
.weight-class-bar {
  max-width: var(--maxw); margin: 16px auto 20px; padding: 0 var(--gutter);
}
.wc-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.wc-title {
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.wc-clear { font-size: 12px; }
.wc-bar {
  display: flex; height: 36px; border-radius: 6px; overflow: hidden;
  gap: 2px; cursor: pointer;
}
.wc-seg {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: none; font: inherit; color: #fff; cursor: pointer;
  transition: opacity .2s ease, filter .2s ease, flex .35s cubic-bezier(.2,.7,.35,1);
  min-width: 0; padding: 0 6px;
}
.wc-seg:hover { filter: brightness(1.15); }
.wc-seg.is-active { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.wc-seg.is-dimmed { opacity: .35; }
.wc-seg-label {
  font-size: 11px; font-weight: 700; letter-spacing: .03em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.wc-seg-count {
  font-size: 10px; font-weight: 600; opacity: .85;
}
.wc-legend {
  display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px;
}
.wc-legend-item {
  font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 4px;
}
.wc-legend-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 2px;
}
@media (max-width: 560px) {
  .wc-seg-label { font-size: 10px; }
  .wc-seg-count { display: none; }
  .wc-bar { height: 30px; }
}

/* ======================================================================== */
/* EXPLORE CARD TRANSITIONS — smooth fade-in on filter/sort                  */
/* ======================================================================== */
@keyframes cardEnter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.xcard.card-enter {
  animation: cardEnter .32s cubic-bezier(.2,.7,.35,1) both;
}
/* Stagger up to 12 cards */
.xcard.card-enter:nth-child(2)  { animation-delay: .02s; }
.xcard.card-enter:nth-child(3)  { animation-delay: .04s; }
.xcard.card-enter:nth-child(4)  { animation-delay: .06s; }
.xcard.card-enter:nth-child(5)  { animation-delay: .08s; }
.xcard.card-enter:nth-child(6)  { animation-delay: .10s; }
.xcard.card-enter:nth-child(7)  { animation-delay: .12s; }
.xcard.card-enter:nth-child(8)  { animation-delay: .14s; }
.xcard.card-enter:nth-child(9)  { animation-delay: .16s; }
.xcard.card-enter:nth-child(10) { animation-delay: .18s; }
.xcard.card-enter:nth-child(11) { animation-delay: .20s; }
.xcard.card-enter:nth-child(12) { animation-delay: .22s; }
@media (prefers-reduced-motion: reduce) {
  .xcard.card-enter { animation: none; opacity: 1; transform: none; }
}

/* ======================================================================== */
/* FLEET SNAPSHOT DASHBOARD — live stats below the count                      */
/* ======================================================================== */
.fleet-snapshot {
  max-width: var(--maxw); margin: 0 auto 16px; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.fs-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 6px; padding: 10px 12px; text-align: center;
}
.fs-card-label {
  display: block; font-size: 10px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 2px;
}
.fs-card-value {
  display: block; font-size: 18px; font-weight: 700;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.fs-card-sub {
  display: block; font-size: 11px; color: var(--muted); margin-top: 2px;
}
@media (max-width: 560px) {
  .fleet-snapshot { grid-template-columns: repeat(2, 1fr); }
  .fs-card-value { font-size: 16px; }
}

/* ==========================================================================
   TOW GUIDE PAGE — vehicle-first compatibility finder
   ========================================================================== */

.towguide-pick { margin: 24px auto; max-width: 880px; }

.tg-class-group { margin-bottom: 20px; }
.tg-class-label { font-family: var(--ff-display); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.tg-class-vehicles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.tg-vehicle-card {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  cursor: pointer; text-align: left; transition: border-color 0.15s, box-shadow 0.15s;
  font: inherit; color: var(--ink);
}
.tg-vehicle-card:hover { border-color: var(--copper); }
.tg-vehicle-card.is-selected { border-color: var(--copper); box-shadow: 0 0 0 2px var(--copper); }
.tg-v-name { font-weight: 600; font-size: 0.95rem; }
.tg-v-specs { font-size: 0.78rem; color: var(--muted); }

.towguide-results { margin: 32px auto; max-width: 880px; }
.towguide-results h2 { font-family: var(--ff-display); font-size: 1.1rem; margin-bottom: 16px; }
.towguide-result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }

.tg-result-card {
  display: flex; flex-direction: column; gap: 8px; padding: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  text-decoration: none; color: var(--ink); transition: transform 0.15s, box-shadow 0.15s;
}
.tg-result-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.tg-comfortable { border-left: 3px solid #3a8a5c; }
.tg-tight { border-left: 3px solid #c68b2e; }
.tg-over { border-left: 3px solid #b44; }

.tg-result-head { display: flex; justify-content: space-between; align-items: baseline; }
.tg-result-name { font-weight: 600; font-size: 0.95rem; }
.tg-result-year { font-size: 0.78rem; color: var(--muted); }
.tg-result-bars { display: flex; flex-direction: column; gap: 4px; }
.tg-bar-row { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; }
.tg-bar-label { width: 50px; color: var(--muted); text-align: right; flex-shrink: 0; }
.tg-bar-track { flex: 1; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.tg-bar-fill { height: 100%; border-radius: 3px; transition: width 0.3s ease; }
.tg-bar-fill--comfortable { background: #3a8a5c; }
.tg-bar-fill--tight { background: #c68b2e; }
.tg-bar-fill--over { background: #b44; }
.tg-bar-pct { width: 32px; text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.tg-result-foot { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: var(--muted); }
.tg-result-verdict { font-weight: 600; }
.tg-comfortable .tg-result-verdict { color: #3a8a5c; }
.tg-tight .tg-result-verdict { color: #c68b2e; }
.tg-over .tg-result-verdict { color: #b44; }

.towguide-empty { text-align: center; padding: 24px 0; max-width: 880px; margin: 0 auto; }
.towguide-notes { max-width: 880px; margin: 40px auto; padding-top: 24px; border-top: 1px solid var(--line); }
.towguide-notes h2 { font-family: var(--ff-display); font-size: 1rem; margin-bottom: 12px; }
.towguide-notes ol { padding-left: 20px; }
.towguide-notes li { margin-bottom: 8px; }

/* ==========================================================================
   SIZE LADDER — proportional lineup strip on home page
   ========================================================================== */

.size-ladder { max-width: 880px; margin: 40px auto 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.sl-heading { font-family: var(--ff-display); font-size: 1.15rem; margin: 0 0 4px; }
.sl-sub { margin: 0 0 16px; }
.sl-chart { display: flex; flex-direction: column; gap: 6px; }

.sl-bar {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  width: var(--sl-w, 50%); min-width: 160px;
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  cursor: pointer; position: relative; overflow: hidden;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.15s;
}
.sl-bar:hover { transform: translateX(4px); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.sl-bar--dim { opacity: 0.4; }
.sl-bar-fill {
  position: absolute; inset: 0; background: var(--copper); opacity: 0.07;
  border-radius: 6px; pointer-events: none;
}
.sl-bar-name { font-weight: 600; font-size: 0.9rem; z-index: 1; white-space: nowrap; }
.sl-bar-stats { font-size: 0.78rem; color: var(--muted); z-index: 1; white-space: nowrap; }

@media (max-width: 560px) {
  .sl-bar { width: 100% !important; }
  .tg-class-vehicles { grid-template-columns: 1fr; }
  .towguide-result-grid { grid-template-columns: 1fr; }
}
@media print {
  .towguide-pick, .towguide-results { break-inside: avoid; }
  .size-ladder { break-inside: avoid; }
}

/* What's New 2026 editorial section */
.wn26-section { max-width: 1120px; margin: 3rem auto 2rem; padding: 0 1.25rem; }
.wn26-head { margin-bottom: 1rem; }
.wn26-title { font-family: var(--font-display, 'Fraunces', serif); font-size: 1.6rem; font-weight: 700; margin: 0 0 .3rem; }
.wn26-sub { font-size: .92rem; margin: 0; }
.wn26-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.wn26-chip {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; background: var(--surface, #F3EFEB);
  color: var(--muted, #8a7e72); border: 1px solid var(--line, #E2DDD8);
}
.wn26-chip--new { background: rgba(176,92,50,.12); color: #8b4513; border-color: rgba(176,92,50,.25); }
.wn26-chip--disc { background: rgba(100,100,100,.1); color: var(--muted, #8a7e72); }
.wn26-chip--good { background: rgba(46,125,50,.1); color: #2e7d32; border-color: rgba(46,125,50,.2); }
.wn26-chip--warn { background: rgba(176,92,50,.1); color: #8b4513; border-color: rgba(176,92,50,.2); }
.wn26-group { margin-bottom: 1.5rem; }
.wn26-group-title { font-family: var(--font-body, 'DM Sans', sans-serif); font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted, #8a7e72); margin: 0 0 .75rem; }
.wn26-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.wn26-card {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px;
  border: 1px solid var(--line, #E2DDD8); border-radius: 8px;
  background: var(--surface, #F3EFEB); text-decoration: none; color: inherit;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.wn26-card:hover { border-color: var(--copper, #b05c32); box-shadow: 0 2px 12px rgba(0,0,0,.07); text-decoration: none; }
.wn26-card--new { border-left: 3px solid var(--copper, #b05c32); }
.wn26-card--disc { opacity: .7; }
.wn26-card-badge { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--copper, #b05c32); }
.wn26-badge--disc { color: var(--muted, #8a7e72); }
.wn26-card-name { font-weight: 700; font-size: .95rem; }
.wn26-card-specs { font-size: .84rem; }
.wn26-card-price { font-size: .88rem; font-weight: 600; color: var(--copper-text, #9C6B30); }
.wn26-card-deltas { display: flex; flex-wrap: wrap; gap: .35rem; }
.wn26-delta {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: .78rem; font-weight: 600; background: var(--surface, #F3EFEB);
}
.wn26-delta--up { background: rgba(176,92,50,.12); color: #8b4513; }
.wn26-delta--down { background: rgba(46,125,50,.12); color: #2e7d32; }
@media (max-width: 600px) {
  .wn26-grid { grid-template-columns: 1fr; }
  .wn26-title { font-size: 1.3rem; }
}

/* =========================================================================
   MERGED SECTIONS — unified layout
   ========================================================================= */
.weight-capacity { padding: var(--space-xl) 0; }
.weight-capacity > h2 { margin-bottom: var(--space-lg); }
.weight-capacity .weight-bar { margin-bottom: var(--space-lg); }
.weight-capacity .weight-budget { margin-top: var(--space-md); border: none; }
.weight-capacity .weight-payload { margin-top: var(--space-lg); border-top: 1px solid var(--border, #e5e5e5); padding-top: var(--space-lg); }
.weight-capacity .weight-payload .estimator { border: none; padding: 0; }
.weight-capacity .weight-payload h2 { font-size: 1.1rem; margin-top: 0; }

.offgrid-dashboard { padding: var(--space-xl) 0; }
.offgrid-dashboard > h2 { margin-bottom: var(--space-md); }
.offgrid-dash-intro { color: var(--muted, #888); margin-bottom: var(--space-lg); max-width: var(--content-width); }
.offgrid-dash-grid { display: grid; gap: var(--space-xl); }
.offgrid-dash-grid > .estimator { border: none; padding: 0; margin: 0; }
.offgrid-dash-grid > .estimator > .est-head > h2 { font-size: 1.1rem; }

.journey-section { padding: var(--space-xl) 0; }
.journey-section > h2 { margin-bottom: var(--space-md); }
.journey-intro { color: var(--muted, #888); margin-bottom: var(--space-lg); max-width: var(--content-width); }
.journey-grid { display: grid; gap: var(--space-xl); }
.journey-grid > .estimator { border: none; padding: 0; margin: 0; }
.journey-grid > .estimator > .est-head > h2 { font-size: 1.1rem; }

.tow-setup-section { padding: var(--space-xl) 0; }
.tow-setup-section > h2 { margin-bottom: var(--space-lg); }
.tow-setup-grid { display: grid; gap: var(--space-xl); }
.tow-setup-grid > .towtool,
.tow-setup-grid > .hitch-guide { border: none; padding: 0; margin: 0; }
.tow-setup-grid > .towtool > h2 { font-size: 1.1rem; }
.tow-setup-grid > .hitch-guide .collapsible-trigger { font-size: 1.1rem; }

.dimensions-section { padding: var(--space-xl) 0; }
.dimensions-section > h2 { margin-bottom: var(--space-md); }
.dimensions-intro { color: var(--muted, #888); margin-bottom: var(--space-lg); max-width: var(--content-width); }
.dimensions-grid { display: grid; gap: var(--space-xl); }
.dimensions-grid > .clearance-fit,
.dimensions-grid > .rigfit { border: none; padding: 0; margin: 0; }
.dimensions-grid > .clearance-fit h2,
.dimensions-grid > .rigfit h2 { font-size: 1.1rem; margin-top: 0; }

/* =========================================================================
   IMMERSIVE GALLERY — Airbnb-style mosaic
   ========================================================================= */
.gallery-immersive { padding: var(--space-xl) 0; }
.gallery-head { display: flex; align-items: baseline; gap: var(--space-md); margin-bottom: var(--space-lg); }
.gallery-count { color: var(--muted, #888); font-size: 0.85rem; }
.gallery-mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  aspect-ratio: 2.2 / 1;
}
.gallery-mosaic-hero { grid-row: 1 / -1; grid-column: 1; }
.gallery-mosaic-item {
  position: relative; overflow: hidden; cursor: pointer;
  border: none; padding: 0;
  background: var(--surface-2, #f5f5f0);
}
.gallery-mosaic-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-mosaic-item:hover img { transform: scale(1.04); }
.gallery-show-all {
  display: block; margin: 1rem auto 0; padding: 0.5rem 1.5rem;
  background: var(--surface-2, #f5f5f0);
  border: 1px solid var(--border, #e5e5e5);
  border-radius: var(--radius-md, 8px);
  cursor: pointer; font-size: 0.85rem;
  transition: background 150ms ease;
}
.gallery-show-all:hover { background: var(--surface-3, #eee); }
@media (max-width: 640px) {
  .gallery-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 2fr 1fr;
    aspect-ratio: 1.5 / 1;
  }
  .gallery-mosaic-hero { grid-column: 1 / -1; grid-row: 1; }
}

/* =========================================================================
   EXPLORE CARDS — enhanced
   ========================================================================= */
.xcard .card-media img { transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1); }
.xcard:hover .card-media img { transform: scale(1.03); }
.xcard { will-change: transform; }

/* Compare sticky header */
.compare-grid th { position: sticky; top: 0; z-index: 2; background: var(--bg, #fff); }

/* Editorial layout */
.detail-body > section {
  max-width: var(--spec-width, 960px);
  margin-left: auto; margin-right: auto;
  padding-left: var(--space-md, 1rem); padding-right: var(--space-md, 1rem);
}

/* Section entrance */
.section-enter {
  opacity: 0; transform: translateY(12px);
  transition: opacity 250ms cubic-bezier(0.16,1,0.3,1), transform 250ms cubic-bezier(0.16,1,0.3,1);
}
.section-enter.is-visible { opacity: 1; transform: translateY(0); }
