/* ==========================================================================
   Fiberglass Worx RV site: additions on top of showroom.css.
   Only showroom tokens are used here; no new colours, radii or shadows (except Google's own colours
   in the rating badge).
   ========================================================================== */

/* ---------- logo: the live site's FWX mark; ink copy on the light header, white original in the footer ---------- */
:root { --nav-h: 60px; } /* a little taller than the base 52px so the name under the mark stays readable */
.nav .brand img { display: block; width: auto; height: 44px; }
.footer-logo img { display: block; width: 170px; height: auto; }
@media (max-width: 600px) { .nav .brand img { height: 40px; } }

/* header categories are spelled out ("RV Body Shop"); keep each on one line down to the phone-menu breakpoint */
.nav .links > .has-sub > a { white-space: nowrap; }
/* seven header links: keep the logo full size and drop the phone number first when it gets tight */
.nav .brand { flex: none; }
@media (max-width: 1140px) { .nav .tel { display: none; } }

/* the category name in the services row is a link back to the category page */
.nav-sub a.sub-head { padding: 0; border-radius: 0; }
.nav-sub a.sub-head:hover { background: none; color: var(--ink); }
/* phone menu: the category link above already does this job */
.nav .links.open .nav-sub a.sub-head { display: none; }

/* ---------- hero ---------- */
.hero.svc .h-display { font-size: clamp(40px, 6.8vw, 92px); line-height: 0.94; text-wrap: balance; max-width: 15ch; margin-inline: auto; }
.hero:not(.svc) .h-display { max-width: 13ch; margin-inline: auto; }
.hero .lede { margin-top: 22px; }
.hero.svc .lede { margin-top: 22px; }

/* key selling points: one quiet row of ticked items under the lede */
.points {
  list-style: none; margin: 22px auto 0; padding: 0; max-width: 780px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px;
}
.points li {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink);
}
.points li::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.2 2.2 4.8-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}
@media (max-width: 600px) {
  .points { flex-direction: column; align-items: center; gap: 10px; }
}

/* ---------- main hero: one screen tall; with a video, the text is a left-aligned column and the
   video sits on its right, the two centred as one group (narrow screens stack them, centred) ---------- */
.hero.hero-full { display: flex; align-items: center; min-height: calc(100svh - var(--nav-h)); }
.hero.hero-full > .container { flex: 1; }
/* hero with a background photo (home: the workshop): dark overlay, light text */
.hero.has-bg { background: var(--ink); color: #fff; }
.hero.has-bg .hero-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.has-bg::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(10, 11, 13, 0.72) 0%, rgba(10, 11, 13, 0.78) 60%, rgba(10, 11, 13, 0.88) 100%); }
.hero.has-bg > .container { position: relative; z-index: 1; }
.hero.has-bg .h-display, .hero.has-bg .points li { color: #fff; }
.hero.has-bg .hero-eyebrow, .hero.has-bg .lede { color: var(--on-dark-hi); }
.hero.has-bg .points li::before { background-color: var(--red); }
.hero.has-bg .btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.hero.has-bg .btn-ghost:hover { border-color: #fff; }
.hero.has-bg .g-badge, .hero.has-bg .g-badge:hover .g-count { color: #fff; }
.hero.has-bg .g-count { color: var(--on-dark-hi); }
.hero.has-bg .g-score { border-left-color: rgba(255, 255, 255, 0.3); }
.vid-proof {
  position: relative; z-index: 3; margin-top: clamp(30px, 3.6vw, 44px);
  display: flex; flex-direction: column; align-items: center; gap: 30px;
}
@media (min-width: 1000px) {
  .hero.has-video { text-align: left; }
  /* the pills + text/video pair are centred as one group; the pills start at the text column edge */
  .hero.has-video .hero-group { width: fit-content; max-width: 100%; margin-inline: auto; }
  /* bottom-aligned: the Google badge under the video lines up with the call buttons */
  .hero.has-video .hero-grid {
    display: grid; grid-template-columns: minmax(0, 640px) auto;
    column-gap: clamp(56px, 8vw, 128px); align-items: end;
  }
  .hero.has-video .h-display { margin-inline: 0; max-width: 14ch; font-size: clamp(48px, 5.4vw, 82px); line-height: 0.95; text-wrap: balance; }
  .hero.has-video .lede { margin-inline: 0; max-width: 34em; text-wrap: pretty; }
  .hero.has-video .points { flex-direction: column; align-items: flex-start; gap: 10px; margin-inline: 0; }
  .hero.has-video .btns { justify-content: flex-start; }
  .hero.has-video .vid-proof { margin-top: 0; }
}
/* the video, framed like a phone: a white ring that follows the corners, then a soft lift */
.vid { display: block; width: clamp(196px, 18vw, 250px); }
.vid img {
  display: block; width: 100%; height: auto; aspect-ratio: 320 / 562; object-fit: cover; border-radius: 18px;
  box-shadow: 0 0 0 8px var(--card), 0 0 0 9px var(--line-soft), var(--shadow-lift);
  transition: transform .28s ease;
}
.vid:hover img { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .vid img { transition: none; } .vid:hover img { transform: none; } }

/* Google rating badge, under the hero video (or under the buttons when a page has no video).
   The one place that leaves the showroom tokens on purpose: Google's own colours and typeface, so it
   reads as Google's rating at a glance. Google Sans is loaded only for the badge's characters. */
.g-badge {
  display: inline-flex; align-items: center; gap: 13px; text-align: left;
  font-family: "Google Sans", "Manrope", system-ui, sans-serif; color: var(--ink); text-decoration: none;
}
.hero-text > .g-badge { margin-top: 30px; }
.g-word { font-size: 27px; font-weight: 500; letter-spacing: -0.01em; line-height: 1; }
.g-word span:nth-child(1), .g-word span:nth-child(4) { color: #4285f4; }
.g-word span:nth-child(2), .g-word span:nth-child(6) { color: #ea4335; }
.g-word span:nth-child(3) { color: #fbbc05; }
.g-word span:nth-child(5) { color: #34a853; }
.g-score { display: grid; gap: 4px; padding-left: 13px; border-left: 1px solid var(--line); }
.g-top { display: flex; align-items: center; gap: 7px; }
.g-num { font-size: 18px; font-weight: 700; line-height: 1; }
/* five stars as a mask over a bar that is gold up to the rating (--fill comes from the build and
   assets/site.js and skips the gaps between stars: 5.0 = all five, 4.5 = four and a half) */
.g-stars {
  --fill: 100%; flex: none; width: 81px; height: 15px;
  background: linear-gradient(90deg, #fbbc04 var(--fill), #dadce0 0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 24'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E") 0 0 / 16.25px 15px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 24'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E") 0 0 / 16.25px 15px repeat-x;
}
/* High Contrast mode drops gradient backgrounds, which would leave the stars blank */
@media (forced-colors: active) { .g-stars { forced-color-adjust: none; } }
.g-count { font-size: 14px; font-weight: 400; line-height: 1.2; color: var(--muted); }
.g-badge:hover .g-count { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- about page: title, quote and buttons beside the co-founders' photo; the story below ---------- */
.about-hero { padding-block: clamp(40px, 6vw, 88px) clamp(36px, 5vw, 72px); }
.about-grid { display: grid; gap: clamp(32px, 5vw, 56px); justify-items: center; }
.about-head { max-width: 640px; }
.about-hero .h-display { font-size: clamp(42px, 6vw, 80px); line-height: 0.96; max-width: 12ch; margin-inline: auto; }
.about-quote { margin: 26px auto 0; max-width: 34em; }
.about-quote p { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; font-style: italic; color: var(--body); text-wrap: pretty; }
.about-head > .g-badge { margin-top: 30px; }
.founders { position: relative; margin: 0; width: min(100%, 460px); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lift); }
.founders img { display: block; width: 100%; height: auto; }
/* the names sit over the bottom of the photo on a dark fade, as on the old site */
.founders figcaption {
  position: absolute; inset: auto 0 0 0; display: grid; gap: 4px; text-align: left;
  padding: 64px 22px 20px; background: linear-gradient(0deg, rgba(11, 12, 14, 0.82), rgba(11, 12, 14, 0));
}
.founders figcaption strong { font-size: clamp(19px, 1.7vw, 22px); font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.founders figcaption span { font-size: 14.5px; font-style: italic; font-weight: 500; color: rgba(255, 255, 255, 0.82); }
@media (min-width: 1000px) {
  .about-hero { text-align: left; }
  .about-grid { grid-template-columns: minmax(0, 620px) minmax(0, 440px); justify-content: center; align-items: center; column-gap: clamp(56px, 7vw, 112px); }
  .about-hero .h-display, .about-quote { margin-inline: 0; }
  .about-hero .btns { justify-content: flex-start; }
}
.about-story { padding-top: clamp(40px, 5vw, 72px); }
.story { max-width: 680px; margin-inline: auto; }
.story p { font-size: clamp(16.5px, 1.3vw, 18.5px); line-height: 1.7; color: var(--body); }
.story p + p { margin-top: 20px; }

/* video player dialog (shares the photo viewer's .lb frame and close button) */
.vp-frame {
  width: min(420px, 90vw, calc((100dvh - 120px) * 9 / 16)); aspect-ratio: 9 / 16;
  border-radius: 18px; overflow: hidden; background: var(--ink-deep);
}
.vp-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- intro: copy + sub-service list ---------- */
.intro .prose { max-width: 560px; margin-top: 18px; }
.intro .prose + .prose { margin-top: 14px; }
.list-head { margin-top: 30px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.check-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.45; color: var(--ink); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.2 2.2 4.8-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}
@media (min-width: 640px) { .split-img .check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; } }

/* floating call/estimate bar, shown by assets/site.js. Phones: docked to the bottom edge once the hero
   has scrolled away. Wide screens: a pill over the sub-service sections only (.desk), until just before
   the closing call to action. */
.sticky-cta { display: none; }
@media (max-width: 900px) {
  .sticky-cta {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(247, 247, 248, 0.92); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--line-soft); box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(110%); visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s;
  }
  .sticky-cta .btn { flex: 1 1 0; min-width: 0; padding: 13px 10px; font-size: 14px; white-space: nowrap; }
  @media (max-width: 380px) { .sticky-cta { gap: 8px; padding-left: 8px; padding-right: 8px; } .sticky-cta .btn { padding: 12px 4px; font-size: 12.5px; letter-spacing: -0.02em; } }
  .sticky-cta.on { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
  /* room at the end of the page so the bar never covers the footer's last line */
  body.has-sticky-cta { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}
@media (min-width: 901px) {
  .sticky-cta.desk {
    display: flex; gap: 12px; position: fixed; left: 50%; bottom: 24px; z-index: 40;
    padding: 10px; border-radius: 999px; border: 1px solid var(--line-soft);
    background: rgba(247, 247, 248, 0.86); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    opacity: 0; visibility: hidden; transform: translate(-50%, 16px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .sticky-cta.desk.on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .25s ease, transform .25s ease, visibility 0s; }
}
@media (prefers-reduced-motion: reduce) { .sticky-cta, .sticky-cta.on { transition: none; } }
/* phones on HERO_CTA_ONLY pages (tools/build.js): only the hero keeps its buttons */
@media (max-width: 699px) {
  .cta-hero-only section .btns, .cta-hero-only .sticky-cta { display: none; }
  body:has(.cta-hero-only) { padding-bottom: 0; }
}

/* category pages: a menu of compact service rows */
.svc-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.svc-row { display: flex; align-items: center; gap: 18px; padding: 12px 20px 12px 12px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-card); box-shadow: var(--shadow-card); transition: box-shadow .2s ease, transform .2s ease; }
.svc-row:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.svc-row .thumb { flex: none; width: 216px; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.svc-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.svc-row .thumb.no-photo { background: var(--ink); }
.svc-row .thumb.no-photo img { width: 46%; height: auto; object-fit: contain; }
.svc-row .txt { flex: 1; min-width: 0; display: block; }
.svc-row h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.svc-row p { margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.svc-row .arrow { flex: none; font-size: 22px; font-weight: 600; color: var(--red); transition: transform .2s ease; }
.svc-row:hover .arrow { transform: translateX(4px); }
.svc-rows .svc-card.prompt { flex-direction: row; align-items: center; justify-content: space-between; gap: 18px; min-height: 0; }
.svc-rows .svc-card.prompt .btn { align-self: center; flex: none; }
.svc-rows .svc-card.prompt:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 1100px) { .svc-rows { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .svc-row { gap: 14px; padding-right: 14px; }
  .svc-row .thumb { width: 108px; }
  .svc-row h3 { font-size: 17px; }
  .svc-rows .svc-card.prompt { flex-direction: column; align-items: flex-start; }
  .svc-rows .svc-card.prompt .btn { align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .svc-row, .svc-row .arrow { transition: none; } }

/* call and estimate buttons under the intro photo (or under the list card when there is no photo) */
.intro-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

/* no photo yet: copy left, list in a white card right */
.split-list { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
/* dedicated sections on a service page that covers several jobs (boat fiberglass repair, boat mechanic):
   white and paper backgrounds take turns, starting white so the first one stands apart from the intro */
.sub-svc.alt { background: var(--card); }
.sub-svc .prose { max-width: 600px; margin-top: 18px; }
.sub-single > div { max-width: 760px; }
/* sub-service section with a photo: photo one side, copy and list card the other; sides switch section by section */
.sub-photo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px); align-items: center; }
.sub-photo .shot { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; }
.sub-photo .shot img { width: 100%; height: 100%; object-fit: cover; }
.sub-photo .list-card { margin-top: 24px; }
@media (min-width: 901px) { .sub-svc.flip .sub-photo .shot { order: 2; } }
@media (max-width: 900px) { .sub-photo { grid-template-columns: 1fr; } }
/* sub-service lists: bigger text and red ticks; the template adds a last "And more" tick */
.sub-svc .check-list { gap: 14px; }
.sub-svc .check-list li { font-size: 19px; padding-left: 34px; }
.sub-svc .check-list li::before { width: 22px; height: 22px; top: 2px; background-color: var(--red); background-size: 13px; }
@media (max-width: 900px) { .split-list { grid-template-columns: 1fr; } }
/* every other dedicated section puts its list card on the left (wide screens only; phones keep copy first) */
@media (min-width: 901px) {
  .sub-svc.flip .split-list { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .sub-svc.flip .split-list > .list-card { order: -1; }
}
.list-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: clamp(22px, 2.6vw, 32px); }
.list-card .list-head { margin-top: 0; }

/* ---------- mid-page call to action on dark ---------- */
.cta-band { text-align: center; }
.cta-band .h-closing { margin: 0 auto; max-width: 18ch; color: #fff; text-wrap: balance; }
.cta-band p { margin: 18px auto 0; max-width: 560px; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.55; color: var(--on-dark); }
.cta-band .btns { display: flex; justify-content: center; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.cta-band .cta-facts { margin-top: 22px; font-size: 14px; color: var(--faint); }
.btn-ghost.on-dark { border-color: rgba(255, 255, 255, 0.32); color: #fff; }
.btn-ghost.on-dark:hover { border-color: #fff; }

/* ---------- cards ---------- */
.svc-card .note { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: -2px; }
/* a service with no real photo yet: a dark type tile in the photo slot */
.svc-card .media.type-tile {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 18px 18px 20px; background: var(--ink);
}
.svc-card .type-tile .eyebrow { color: var(--faint); }
.svc-card.has-tile .note { margin-top: 0; }
.svc-card .type-tile .tile-name {
  font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: #fff;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.svc-card:hover .type-tile .tile-name { transform: translateY(-3px); }

/* ---------- text links ---------- */
.text-link { font-size: 15px; font-weight: 600; color: var(--navy); }
.text-link:hover { color: var(--navy-hover); text-decoration: underline; text-underline-offset: 3px; }
.text-link.on-dark { display: inline-block; margin-top: 24px; color: #fff; }

/* ---------- about band (home) ---------- */
.about-band .prose + .prose { margin-top: 14px; }

/* ---------- completed projects ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .proj-grid { grid-template-columns: 1fr; } }
.proj-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-card); box-shadow: var(--shadow-card);
}
.proj-card .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--ink-deep); }
.proj-card figure { position: relative; margin: 0; aspect-ratio: 3 / 2; overflow: hidden; }
.proj-card figure img { width: 100%; height: 100%; object-fit: cover; }
.proj-card .ba-tag { bottom: 10px; padding: 4px 9px; font-size: 10.5px; }
.proj-card .ba-tag.b { left: 10px; }
.proj-card .ba-tag.a { right: auto; left: 10px; }
.proj-card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.proj-card .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.proj-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.proj-card p { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.proj-card .who { font-size: 13px; color: var(--faint); }
.projects .more { margin-top: 22px; }
/* cards link to the full project page */
a.proj-card { transition: box-shadow .28s ease, transform .28s ease; }
a.proj-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.proj-card figure img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
a.proj-card:hover figure img { transform: scale(1.045); }
.proj-card .go { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--navy); }
@media (prefers-reduced-motion: reduce) { a.proj-card, .proj-card figure img { transition: none; } }

/* ---------- project and blog post pages ---------- */
.hero.project { text-align: center; }
.hero.project .crumbs { justify-content: center; }
.hero.project .h-display { max-width: 18ch; }
.hero.project .lede { margin-top: 18px; }
.post-date { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--muted); }

.chips { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chips a {
  display: inline-block; padding: 8px 15px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line-soft);
  font-size: 14px; font-weight: 600; color: var(--body);
  transition: background .2s ease, color .2s ease;
}
.chips a:hover { background: #fff; color: var(--ink); }
.post-services .chips { justify-content: flex-start; margin-top: 12px; padding-left: 0; }
.post-body .chips li + li { margin-top: 0; }
.post-body .chips a { text-decoration: none; font-size: 14px; color: var(--body); }

.project-ba { padding-top: clamp(20px, 3vw, 36px); }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .ba-pair { grid-template-columns: 1fr; } }
.ba-pair figure { position: relative; margin: 0; border-radius: 18px; aspect-ratio: 3 / 2; background: var(--ink-deep); }
.ba-pair img { width: 100%; height: 100%; object-fit: cover; }

.project-story { padding-top: 0; }
.facts dl { margin: 14px 0 0; display: grid; gap: 12px; }
.facts dl div { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.facts dt { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.facts dd { margin: 0; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.facts dd a { color: var(--navy); }
.facts .text-link { display: inline-block; margin-top: 16px; font-size: 14px; }

.photo-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.photo-grid figure { margin: 0; border-radius: 18px; aspect-ratio: 3 / 2; background: var(--ink-deep); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.photo-grid a:hover img { transform: scale(1.045); }

/* long text written in the CMS (project write-ups, blog posts) */
.post-body { max-width: 680px; }
.post-body > .h-section { margin-bottom: 18px; }
.post-body p, .post-body li { font-size: clamp(16px, 1.2vw, 17.5px); line-height: 1.65; color: var(--body); }
.post-body p + p, .post-body ul, .post-body ol, .post-body figure, .post-body blockquote { margin-top: 16px; }
.post-body h2 { margin-top: 36px; font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.post-body h3 { margin-top: 28px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.post-body h2 + p, .post-body h3 + p { margin-top: 10px; }
.post-body ul, .post-body ol { padding-left: 22px; }
.post-body li + li { margin-top: 6px; }
.post-body a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.post-body img { height: auto; border-radius: 18px; }
.post-body h4 { margin-top: 22px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.post-body h4 + p { margin-top: 8px; }
.post-body figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
/* comparison tables from the old articles: scroll sideways on a phone instead of widening the page */
.post-body table { display: block; max-width: 100%; overflow-x: auto; margin-top: 20px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.post-body th, .post-body td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--body); }
.post-body th { font-weight: 700; color: var(--ink); border-bottom-width: 2px; white-space: nowrap; }
.post-body blockquote { padding-left: 18px; border-left: 2px solid var(--line); font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.post-article { margin-inline: auto; }
.post-services { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
/* ---------- archives (projects, blog) ---------- */
.hero.archive .h-display { font-size: clamp(40px, 6.8vw, 92px); line-height: 0.94; max-width: 16ch; margin-inline: auto; text-wrap: balance; }
.hero.archive .lede { margin-top: 20px; }
.hero.archive .seg-wrap { margin-top: clamp(20px, 2.4vw, 28px); }
.seg a .count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill);
  background: rgba(16, 17, 20, 0.07); font-size: 12px; font-weight: 700; color: var(--muted);
}
.seg a[aria-current="page"] .count, .seg a[aria-current="true"] .count { background: rgba(255, 255, 255, 0.16); color: #fff; }
/* page 2+ of an archive: its pill looks current but is not the current page */
.seg a[aria-current="true"] { background: var(--ink); color: #fff; box-shadow: none; transform: none; }
.seg a[aria-current="true"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.archive-list { padding-top: clamp(28px, 3.6vw, 44px); }
.empty-state { max-width: 560px; margin-inline: auto; text-align: center; }
.empty-state p { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.empty-state .empty-link { margin-top: 16px; }
.facts-only { max-width: 620px; }

/* three columns so the numbers stay centred whether or not Newer / Older are there */
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: clamp(32px, 4vw, 48px); }
.pager > :first-child { grid-column: 1; justify-self: start; }
.pager > :last-child { grid-column: 3; justify-self: end; }
.pager .nums, .pager .of { grid-column: 2; grid-row: 1; }
.pager .of { display: none; font-size: 14px; font-weight: 600; color: var(--muted); }
.pager .nums { display: flex; gap: 6px; }
.pager a, .pager .current {
  display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 14px;
  border-radius: var(--r-pill); font-size: 14px; font-weight: 600;
}
.pager a { border: 1px solid var(--line); color: var(--ink); transition: border-color .2s ease, background .2s ease; }
.pager a:hover { border-color: var(--ink); }
.pager .current { background: var(--ink); color: #fff; }
.pager .edge { min-width: 1px; }
@media (max-width: 560px) { .pager .nums { display: none; } .pager .of { display: block; } }

/* ---------- newer / older links on single pages ---------- */
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-block: 0 clamp(48px, 6vw, 72px); }
.prevnext .pn {
  display: flex; flex-direction: column; gap: 6px; padding: 20px 22px;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-card); box-shadow: var(--shadow-card);
  transition: box-shadow .28s ease, transform .28s ease;
}
.prevnext .pn:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.prevnext .older { text-align: right; grid-column: 2; }
.prevnext .pn-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.prevnext .pn-title { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
@media (max-width: 620px) { .prevnext { grid-template-columns: 1fr; } .prevnext .older { grid-column: auto; text-align: left; } }
@media (prefers-reduced-motion: reduce) {
  .prevnext .pn, .photo-grid img, .svc-card .type-tile .tile-name { transition: none; }
  .prevnext .pn:hover, .photo-grid a:hover img, .svc-card:hover .type-tile .tile-name { transform: none; }
}

/* ---------- photo viewer (assets/site.js) ---------- */
/* the link clips the photo (not the figure), so the keyboard focus ring outside it stays visible */
.ba-pair a, .photo-grid a { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: inherit; cursor: zoom-in; }
.lb {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: clamp(16px, 4vw, 48px);
  border: 0; background: rgba(8, 9, 11, 0.94); color: #fff;
}
.lb::backdrop { background: rgba(8, 9, 11, 0.6); }
.lb[open] { display: grid; place-items: center; }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; max-height: 100%; }
.lb-img { max-width: min(1400px, 100%); max-height: calc(100dvh - 140px); width: auto; height: auto; border-radius: 18px; object-fit: contain; }
html:has(dialog.lb[open]) { overflow: hidden; } /* the page stays put behind the viewer */
.lb-cap { font-size: 14px; color: var(--on-dark); text-align: center; }
.lb-count { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); font-size: 13px; font-weight: 600; color: var(--on-dark); }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(11, 12, 14, 0.72); color: #fff;
  font: 600 26px/1 var(--sans); cursor: pointer; transition: background .2s ease;
}
.lb-btn:hover { background: var(--ink); }
.lb-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 0; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

.post-hero-img { max-width: 1020px; }
.post-hero-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; }

/* ---------- reviews ---------- */
.reviews { background: var(--card); }
.reviews .grid-head { margin-bottom: 40px; }
/* the Google rating badge (same as the hero's) with the link to all reviews under it */
.reviews-proof { display: grid; gap: 12px; justify-items: start; }
.reviews-proof p { margin: 0; }
@media (min-width: 700px) { .reviews-proof { justify-items: end; text-align: right; } }
.reviews .quotes-3 blockquote { font-size: 17px; }
.reviews-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }

/* breadcrumb above the H1 (crumbs() in tools/build.js): normal-weight links, the current page in red */
.crumbs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 100%; margin-bottom: clamp(16px, 2vw, 24px); font-size: 15px; font-weight: 400; }
.crumbs a { color: var(--ink); }
.crumbs a:hover { color: var(--red); }
.crumbs .sep { color: var(--muted); font-size: 17px; font-weight: 500; line-height: 1; }
.crumbs .here { color: var(--red); font-weight: 600; }

/* home page: the boat services sit on a cool grey band so they read as their own section, apart from the RV cards above */
.section.home-boats { background: #e6e9ed; }
.section.home-boats .svc-card.prompt { background: rgba(255, 255, 255, 0.55); }

/* reviews header: the Google badge column is taller than the heading, so line them up at the top;
   bottom alignment pushed "What our customers say." lower than every other section heading */
.section.reviews .grid-head { align-items: flex-start; }

/* home page Instagram feed (Elfsight, loads when scrolled to): full width like the old site, outside the content
   column; hold some space so the lazy loader sees it
   and the page does not jump when it fills in */
.insta-feed { min-height: 320px; margin-top: 8px; padding-inline: clamp(12px, 3.4vw, 64px); }

/* home page Instagram section: white, the same as the Elfsight feed's own background */
.section.projects:has(.insta-feed) { background: var(--card); }
/* ...so the reviews right after it go back to the light grey page colour, keeping the two sections apart */
.section.projects:has(.insta-feed) + .section.reviews { background: var(--paper); }

/* breadcrumbs on a dark hero: light links, the current page in the same red as the call button */
.hero.has-bg .crumbs a { color: #fff; }
.hero.has-bg .crumbs a:hover { color: var(--on-dark-hi); text-decoration: underline; }
.hero.has-bg .crumbs .sep { color: var(--on-dark); }
.hero.has-bg .crumbs .here { color: var(--red); }

/* phones: once the sticky call/estimate bar is on the page (assets/site.js sets has-sticky-cta), the hero keeps its
   buttons and every other call/estimate button in the page sections is hidden, so they are not repeated */
@media (max-width: 900px) {
  body.has-sticky-cta main > section .btns,
  body.has-sticky-cta main > section .svc-card.prompt .btn { display: none; }
}

/* reviews on a dark grey band on every page: the Elfsight widget's own header text is white, so it reads here;
   the heading, Google badge, link and ghost button switch to light colours to match */
.section.reviews, .section.projects:has(.insta-feed) + .section.reviews { background: #2a2c31; color: var(--on-dark-hi); }
.section.reviews .h-section { color: #fff; }
.section.reviews .g-badge, .section.reviews .g-badge:hover .g-count { color: #fff; }
.section.reviews .g-count { color: var(--on-dark); }
.section.reviews .g-score { border-left-color: rgba(255, 255, 255, 0.3); }
.section.reviews .text-link { color: #fff; }
.section.reviews .btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.section.reviews .btn-ghost:hover { border-color: #fff; }

/* service intro without its own list (the sub-service sections below carry the lists): one readable column */
.intro-solo { max-width: 820px; }
.intro-solo .prose { max-width: 62ch; }

/* category hero with the service selection inside it ("services_in_hero" in the page file): no video, no bullet
   points; the service rows sit under the buttons and the Google badge, as light cards on the dark photo */
.hero.has-services { padding-block: clamp(16px, 2.2vw, 28px) clamp(24px, 3.5vw, 44px); }
.hero-services { margin: clamp(20px, 2.6vw, 30px) auto 0; max-width: 1180px; text-align: left; }
.hero-services-head { margin-bottom: 12px; text-align: center; color: #fff; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.02em; }
.hero .hero-services .svc-row, .hero .hero-services .svc-card.prompt { color: var(--ink); }
.hero .hero-services .svc-card.prompt { background: var(--card); }
/* buttons and the Google badge on one row (they wrap under each other on narrow screens) */
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 32px; margin-top: 24px; }
.hero .hero-actions .btns { margin-top: 0; }
.hero-actions .g-badge { margin-top: 0; }
/* hero with services: a smaller headline and shorter service photos so the whole hero fits one desktop screen */
.hero.has-services .h-display { font-size: clamp(44px, 5.6vw, 84px); }
.hero.has-services .lede { margin-top: 14px; }
.hero-services .svc-row { padding-block: 10px; }
.hero-services .svc-row .thumb { width: 150px; }
.hero-services .svc-rows { gap: 12px; }
.hero-services .svc-card.prompt { padding-block: 14px; }
.hero.has-services .hero-lead .crumbs { margin-bottom: 10px; }
/* phones: the hero's service photos are tall 3:4 thumbnails beside the text */
@media (max-width: 480px) {
  .hero-services .svc-row .thumb { width: 96px; aspect-ratio: 3 / 4; }
}
/* phones: the call and estimate buttons side by side in the services hero, sized like the sticky bar */
@media (max-width: 600px) {
  .hero-actions { width: 100%; }
  .hero .hero-actions .btns { flex-wrap: nowrap; width: 100%; gap: 10px; }
  .hero .hero-actions .btns .btn { flex: 1 1 0; min-width: 0; padding: 13px 10px; font-size: 14px; white-space: nowrap; }
}
@media (max-width: 380px) {
  .hero .hero-actions .btns { gap: 8px; }
  .hero .hero-actions .btns .btn { padding: 12px 4px; font-size: 12.5px; letter-spacing: -0.02em; }
}
/* bolder arrows on the service rows: the arrow glyph has no heavy weight, so a thin stroke thickens it */
.svc-row .arrow { font-size: 24px; font-weight: 800; -webkit-text-stroke: 1.2px currentColor; }
.hero.has-services .h-display { max-width: 22ch; }

/* Category hero with text links to each service page (rv-roof-repair: "service_links_in_hero"), under the call buttons:
   plain underlined links with a slash between them, so they read as navigation and not as more buttons */
.hero.has-service-links .hero-text { text-align: center; }
.hero-svc-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 0; margin: clamp(22px, 2.6vw, 32px) auto 0; max-width: 980px; font-size: clamp(16px, 1.3vw, 18px); font-weight: 600; }
.hero-svc-links .svc-link { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.45); text-decoration-thickness: 1.5px; text-underline-offset: 5px; transition: text-decoration-color .2s; }
.hero-svc-links .svc-link:hover { text-decoration-color: #fff; }
.hero-svc-links .sep { margin: 0 14px; color: var(--on-dark); font-weight: 400; }
@media (max-width: 600px) {
  .hero-svc-links { font-size: 15px; }
  .hero-svc-links .sep { margin: 0 9px; }
}

/* Category hero with the service rows on a black see-through background, white text (rv-repairs: "dark_service_rows") */
.hero.has-dark-rows .hero-services .svc-row, .hero.has-dark-rows .hero-services .svc-card.prompt { background: rgba(8, 8, 10, 0.9); border: 1px solid rgba(255, 255, 255, 0.4); box-shadow: none; color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero.has-dark-rows .hero-services .svc-row:hover { background: rgba(0, 0, 0, 0.96); border-color: #fff; }
.hero.has-dark-rows .hero-services .svc-row h3, .hero.has-dark-rows .hero-services .svc-card.prompt h3 { color: #fff; }
.hero.has-dark-rows .hero-services .svc-row p, .hero.has-dark-rows .hero-services .svc-card.prompt p { color: var(--on-dark-hi); }
.hero.has-dark-rows .hero-services .svc-row .thumb.no-photo { background: #24262b; }

/* Category pages: longer explanation of the service under the hero ("explain" in the page file) */
.explain-text { max-width: 820px; }
.explain-text .prose { max-width: 68ch; }
.explain-text .explain-list { margin-top: 18px; }
.explain-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); margin-top: clamp(28px, 3.5vw, 44px); align-items: start; }
.explain-cards.one { grid-template-columns: minmax(0, 820px); }
.explain-list { gap: 12px; }
.explain-list li strong { font-weight: 700; color: var(--ink); }
.explain-list li { color: var(--ink-2, var(--ink)); }
@media (max-width: 900px) { .explain-cards { grid-template-columns: 1fr; } }
.explain-close p + p { margin-top: 12px; }
.explain-text .h-section { margin-bottom: clamp(16px, 2vw, 22px); }

/* Breadcrumb bar (crumbBar() in tools/build.js): the hero's breadcrumb, same look as before (white links over the
   hero photo, the current page in red), pinned under the main nav while scrolling. It overlaps the top of the hero, and
   a light see-through tint keeps it readable over the sections further down (Bernard, 2026-11-12) */
body.has-crumb-bar { --crumb-h: 44px; }
html:has(body.has-crumb-bar) { scroll-padding-top: calc(var(--nav-h) + 44px + 12px); }
.crumb-bar { position: sticky; top: var(--nav-h); z-index: 45; height: var(--crumb-h); margin-bottom: calc(-1 * var(--crumb-h)); display: flex; align-items: center; background: rgba(247, 247, 248, 0.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.crumb-bar .container { width: 100%; }
.crumb-bar .crumbs { display: flex; flex-wrap: nowrap; margin: 0; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.crumb-bar .crumbs::-webkit-scrollbar { display: none; }
body.crumb-on-dark .crumb-bar { background: rgba(10, 11, 13, 0.62); }
body.crumb-on-dark .crumb-bar .crumbs a { color: #fff; }
body.crumb-on-dark .crumb-bar .crumbs a:hover { color: var(--on-dark-hi); text-decoration: underline; }
body.crumb-on-dark .crumb-bar .crumbs .sep { color: var(--on-dark); }
body.crumb-on-dark .crumb-bar .crumbs .here { color: var(--red); }
/* the hero starts under the bar, so its own top spacing moves down by the bar's height */
body.has-crumb-bar main > .hero:first-child { padding-top: calc(var(--crumb-h) + clamp(16px, 2.4vw, 32px)); }

/* Free estimate pop-up (estimateModal() in tools/build.js, behavior in assets/site.js): the old site's home page
   "Contact Us" pop-up in the Showroom look - white panel on a dimmed, blurred page, red send button */
html.est-open { overflow: hidden; }
.est-modal { width: min(720px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: 22px; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); overflow: auto; overscroll-behavior: contain; }
.est-modal::backdrop { background: rgba(10, 11, 13, 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.est-modal[open] { animation: est-in .22s ease; }
@keyframes est-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .est-modal[open] { animation: none; } }
.est-form, .est-done { position: relative; padding: clamp(24px, 4vw, 40px); }
.est-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.est-close:hover { background: var(--ink); color: #fff; }
.est-head { padding-right: 36px; margin-bottom: 22px; }
.est-title { margin: 0; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
.est-sub { margin: 8px 0 0; font-size: 15.5px; color: var(--muted); }
.est-sub a, .est-or a, .est-error a { color: var(--ink); font-weight: 700; white-space: nowrap; }
.est-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.est-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
/* the field names are the preview text in each box; the labels stay for screen readers only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.est-field input::placeholder, .est-field textarea::placeholder { color: var(--muted); opacity: 1; }
.est-wide { grid-column: 1 / -1; }
.est-field input, .est-field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font: inherit; font-weight: 500; font-size: 16px; color: var(--ink); transition: border-color .15s ease, background .15s ease; }
.est-field textarea { resize: vertical; min-height: 84px; }
.est-field input:focus, .est-field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.est-heard { margin: 20px 0 0; padding: 0; border: 0; min-width: 0; }
.est-heard legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.est-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.est-chip { position: relative; cursor: pointer; }
.est-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.est-chip span { display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 14px; font-weight: 600; color: var(--body); background: #fff; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.est-chip span::before { content: ""; width: 14px; height: 14px; margin-right: 8px; border: 1.5px solid var(--faint); border-radius: 4px; background: #fff center / 10px no-repeat; }
.est-chip:hover span { border-color: var(--ink); }
.est-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.est-chip input:checked + span::before { border-color: var(--red); background-color: var(--red); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.est-chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.est-referred { margin-top: 14px; }
.est-referred[hidden], .est-done[hidden], .est-form[hidden], .est-error[hidden] { display: none; }
.est-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 24px; }
.est-submit { padding-inline: 30px; }
.est-submit:disabled { opacity: .7; cursor: progress; }
.est-or { font-size: 14.5px; color: var(--muted); }
.est-error { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #fdeaea; color: #8a0b0c; font-size: 14.5px; }
.est-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.est-done { text-align: center; padding-block: clamp(40px, 6vw, 64px); }
.est-done .est-title { padding-inline: 30px; }
.est-done .btn { margin-top: 22px; }
@media (max-width: 640px) {
  .est-modal { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .est-fields { grid-template-columns: 1fr; gap: 12px; }
  .est-actions { flex-direction: column; align-items: stretch; text-align: center; }
}

/* Look-alike estimate form in the home hero (estimateHeroCard() in tools/build.js), like the old site's hero
   "Contact Us" card: a white card right of the text on wide screens, under the text on smaller ones */
.hero-form { position: relative; z-index: 3; display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 40px); }
.est-dummy { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 420px; padding: clamp(20px, 2.4vw, 28px); border-radius: 22px; background: var(--card); color: var(--ink); text-align: left; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.est-dummy:hover { transform: translateY(-3px); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); }
.est-dummy:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.est-fake { display: block; }
.est-fake-input { display: block; min-height: 96px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--faint); font-size: 15.5px; line-height: 1.45; transition: border-color .15s ease, background .15s ease; }
.est-dummy:hover .est-fake-input { border-color: var(--ink); background: #fff; }
.est-dummy-btn { display: flex; width: 100%; }
.est-dummy-note { font-size: 13.5px; color: var(--muted); text-align: center; }
@media (min-width: 1000px) {
  .hero.has-form { text-align: left; }
  .hero.has-form .hero-group { width: fit-content; max-width: 100%; margin-inline: auto; }
  .hero.has-form .hero-grid { display: grid; grid-template-columns: minmax(0, 640px) minmax(320px, 400px); column-gap: clamp(48px, 6vw, 96px); align-items: center; }
  .hero.has-form .h-display { margin-inline: 0; max-width: 14ch; font-size: clamp(48px, 5.4vw, 82px); line-height: 0.95; text-wrap: balance; }
  .hero.has-form .lede { margin-inline: 0; max-width: 34em; text-wrap: pretty; }
  .hero.has-form .points { flex-direction: column; align-items: flex-start; gap: 10px; margin-inline: 0; }
  .hero.has-form .btns { justify-content: flex-start; }
  .hero.has-form .hero-form { margin-top: 0; }
  /* category pages: the text lines up with the left edge of the service rows, the card with their right edge;
     a wider, smaller heading keeps the hero and its rows close to one screen */
  .hero.has-form .hero-grid { justify-content: space-between; }
  .hero.has-form .hero-actions { justify-content: flex-start; }
  .hero.has-form.has-services .h-display { max-width: 16ch; font-size: clamp(44px, 4.6vw, 70px); }
  .hero.has-form.has-services .est-fake-input { min-height: 76px; }
}
/* smaller screens: no bullet points; the card takes their place, between the intro line and the call button */
@media (max-width: 999.98px) {
  .hero.has-form .hero-grid { display: flex; flex-direction: column; align-items: center; }
  .hero.has-form .hero-text { display: contents; }
  .hero.has-form .hero-text > * { order: 0; }
  .hero.has-form .points { display: none; }
  .hero.has-form .hero-form { order: 1; width: 100%; margin-top: clamp(20px, 5vw, 28px); }
  .hero.has-form .hero-text > .btns, .hero.has-form .hero-text > .g-badge, .hero.has-form .hero-text > .hero-actions { order: 2; }
}

/* ---------- "across the web" page (renderWebPresence in tools/build.js) ---------- */
.web-hero .container { text-align: center; }
.web-hero .btns { justify-content: center; margin-top: clamp(20px, 2.4vw, 28px); }
.web-group + .web-group { padding-top: 0; }
.web-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.web-link {
  position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px 44px 18px 20px;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 18px; color: var(--ink); text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.web-link:hover, .web-link:focus-visible { border-color: var(--line); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16, 17, 20, 0.08); }
.wl-name { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.wl-line { font-size: 14.5px; color: var(--muted); }
.wl-go { position: absolute; top: 16px; right: 18px; font-size: 18px; color: var(--red); }
/* the map section after the reviews (mapSection in tools/build.js) */
.shop-map-frame { height: clamp(300px, 34vw, 460px); border-radius: 18px; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.shop-map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- contact page (renderContact in tools/build.js) ---------- */
.contact-hero .container { text-align: center; }
.contact-hero .h-display { font-size: clamp(40px, 6.8vw, 92px); line-height: 0.94; text-wrap: balance; }
.contact-hero .lede { margin: 20px auto 0; max-width: 46ch; }
.contact-main { padding-top: clamp(16px, 2.4vw, 28px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-details { display: grid; gap: 22px; padding-top: 8px; }
.cd-item { display: flex; flex-direction: column; gap: 4px; padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); color: var(--body); }
.cd-item:last-child { border-bottom: 0; }
.cd-item > a:not(.text-link) { color: var(--ink); font-weight: 600; text-decoration: none; }
.cd-item > a:not(.text-link):hover { color: var(--red); }
.cd-big { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800 !important; letter-spacing: -0.02em; }
.cd-note { font-size: 14px; color: var(--muted); }
.cd-social a { color: var(--ink); }
.cd-item .text-link { margin-top: 4px; }
.est-inline { background: var(--card); border-radius: 22px; box-shadow: 0 0 0 1px var(--line-soft), 0 20px 50px rgba(16, 17, 20, 0.08); }
.est-inline .est-done { padding: clamp(32px, 5vw, 56px); }
.est-inline .est-done:focus { outline: none; }
.area-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.area-list li { padding: 8px 14px; border-radius: 999px; background: var(--card); box-shadow: 0 0 0 1px var(--line-soft); font-size: 15px; color: var(--ink); }
/* the form comes first in the page (and for keyboard and screen reader users); on wide screens the details sit on the left */
@media (min-width: 900px) { .contact-details { order: -1; } }
@media (max-width: 899.98px) { .contact-grid { grid-template-columns: 1fr; } }
/* the full-page form shows its labels above the fields (the pop-up keeps placeholder-only fields) */
.est-inline .est-field .sr-only { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; clip-path: none; white-space: normal; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.est-inline .est-field input::placeholder, .est-inline .est-field textarea::placeholder { color: transparent; }
/* discounts page: the same cards as "across the web", not links */
.discount-list .web-link:hover { transform: none; box-shadow: none; border-color: var(--line-soft); }
.discount-list .wl-go { font-weight: 800; font-size: 15px; }

/* the written-quote footnote (quoteNote in tools/build.js) */
.fn-mark { margin-left: 1px; font-size: 0.8em; vertical-align: super; line-height: 0; color: var(--red); font-weight: 700; }
.quote-note { margin: 0; padding: 18px 0 28px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.quote-note .container { display: block; }

/* ---------- trailers for sale: /rvs-for-sale/, the Escape page, the for-sale list and trailer pages ---------- */
.escape-narrow { max-width: 860px; }
.esc-center { text-align: center; margin-inline: auto; }
.esc-center .btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.esc-lede { font-size: clamp(17px, 1.4vw, 19px); color: var(--body); margin-top: 12px; }
.escape-why p, .escape-compare p, .escape-catalog p { line-height: 1.65; color: var(--body); margin-top: 14px; }
.escape-hero .esc-logo { display: inline-block; margin: 6px auto 18px; padding: 12px 22px; border-radius: 14px; background: var(--ink); }
.escape-hero .esc-logo img { display: block; height: 44px; width: auto; }
.esc-points { list-style: none; margin: 22px auto 0; padding: 0; display: grid; gap: 10px; max-width: 640px; text-align: left; }
.esc-points li, .esc-checks li { position: relative; padding-left: 30px; line-height: 1.5; color: var(--body); }
.esc-points li::before, .esc-checks li::before { content: ""; position: absolute; left: 4px; top: 0.45em; width: 12px; height: 7px; border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg); }
.esc-checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.escape-hero .btns { justify-content: center; margin-top: 24px; }
.esc-models { display: grid; gap: clamp(28px, 4vw, 48px); margin-top: 8px; }
.esc-model { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.esc-model:nth-child(even) .esc-model-media { order: 2; }
.esc-model-media img { display: block; width: 100%; height: auto; border-radius: 18px; }
.esc-model-body h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 800; letter-spacing: -0.02em; }
.esc-model-body .esc-graphic { display: block; max-width: 100%; height: auto; margin: 12px 0; }
.esc-model-body p { margin-top: 10px; line-height: 1.65; color: var(--body); }
.esc-btns { margin-top: 32px; }
.esc-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.esc-col { padding: 22px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--line-soft); }
.esc-col h3 { margin-top: 6px; font-size: 20px; font-weight: 700; }
.esc-faq { margin-top: 18px; display: grid; gap: 10px; }
.esc-faq details { border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line-soft); padding: 16px 20px; }
.esc-faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.esc-faq details p { margin-top: 10px; line-height: 1.65; color: var(--body); }
.trailer-list .container { display: grid; gap: 22px; }
.trailer-card { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(18px, 3vw, 36px); padding: clamp(14px, 2vw, 22px); border-radius: 22px; background: var(--card); box-shadow: 0 0 0 1px var(--line-soft); align-items: start; }
.trailer-card .tc-media img { display: block; width: 100%; height: auto; border-radius: 14px; }
.tc-name { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; letter-spacing: -0.02em; }
.tc-name a { color: inherit; text-decoration: none; }
.tc-body > p { margin-top: 8px; line-height: 1.6; color: var(--body); }
.tc-body .btns { margin-top: 18px; }
.spec-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px 18px; margin: 16px 0 0; }
.spec-list div { padding: 10px 12px; border-radius: 12px; background: var(--paper); }
.spec-list dt { font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.spec-list dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); }
.trailer-page { padding-top: clamp(16px, 2vw, 24px); }
.tp-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(22px, 3.5vw, 48px); margin-top: 18px; align-items: start; }
/* trailer photo carousel: scroll-snap track (swipe on phones), arrows, counter, thumbnail strip */
.tp-gallery, .tp-info, .tpc { min-width: 0; }
.tpc-frame { position: relative; border-radius: 18px; overflow: hidden; background: #e9eaec; }
.tpc-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; outline: none; }
.tpc-track::-webkit-scrollbar { display: none; }
.tpc-slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 3; display: block; }
.tpc-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tpc-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18); display: grid; place-items: center; padding-bottom: 3px; }
.tpc-arrow:hover { background: #fff; }
.tpc-arrow:disabled { opacity: 0.35; cursor: default; }
.tpc-prev { left: 12px; }
.tpc-next { right: 12px; }
.tpc-count { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(16, 17, 20, 0.72); color: #fff; font-size: 13px; font-weight: 600; }
.tpc-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.tpc-thumb { flex: 0 0 auto; width: 84px; padding: 0; border: 2px solid transparent; border-radius: 10px; background: none; cursor: pointer; opacity: 0.65; transition: opacity 0.15s, border-color 0.15s; }
.tpc-thumb img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
.tpc-thumb:hover { opacity: 1; }
.tpc-thumb.is-active { opacity: 1; border-color: var(--red, #e10b17); }
@media (max-width: 600px) { .tpc-arrow { width: 38px; height: 38px; font-size: 24px; } .tpc-thumb { width: 68px; } }
.tp-info .h-display { font-size: clamp(36px, 4.6vw, 64px); line-height: 0.98; }
.tp-sub { margin-top: 18px; font-size: 17px; font-weight: 700; color: var(--ink); }
.tp-info > p { margin-top: 8px; line-height: 1.65; color: var(--body); }
.tp-info .btns { margin-top: 20px; }
.tp-info .text-link { display: inline-block; margin-top: 16px; }
@media (max-width: 860px) {
  .esc-model, .trailer-card, .tp-grid, .esc-compare { grid-template-columns: 1fr; }
  .esc-model:nth-child(even) .esc-model-media { order: 0; }
}
/* the Escape hero: the old page's campfire photo under a dark overlay, white text */
.escape-hero { background: linear-gradient(rgba(11, 12, 14, 0.62), rgba(11, 12, 14, 0.78)), var(--esc-bg, none) center / cover no-repeat, var(--ink); color: #fff; }
@media (min-width: 1280px) { .escape-hero { background: linear-gradient(rgba(11, 12, 14, 0.62), rgba(11, 12, 14, 0.78)), var(--esc-bg-wide, var(--esc-bg, none)) center / cover no-repeat, var(--ink); } }
.escape-hero .h-display, .escape-hero .lede, .escape-hero .esc-points li { color: #fff; }
.escape-hero .crumbs a, .escape-hero .crumbs span { color: rgba(255, 255, 255, 0.82); }
.escape-hero .esc-logo { background: none; padding: 0; }
.escape-hero .esc-points li::before { border-color: #fff; }
.escape-hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
/* the HubSpot catalog form sits in HubSpot's own frame with white labels (set in HubSpot for the old site's
   dark section), so it gets a dark card here or the labels vanish on the light page */
.esc-hubspot { max-width: 620px; margin: 22px auto 0; text-align: left; background: var(--ink, #16171a); border-radius: 18px; padding: 28px 28px 20px; }
@media (max-width: 600px) { .esc-hubspot { padding: 20px 16px 14px; border-radius: 14px; } }

/* ---------- "How we compare" table (compareSection in tools/build.js), from the old site's category pages ---------- */
.cmp-wrap { margin-top: 26px; overflow-x: auto; border-radius: 16px; background: #fff; box-shadow: 0 6px 24px rgba(16, 17, 20, 0.07); -webkit-overflow-scrolling: touch; }
.cmp-wrap:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.cmp { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; line-height: 1.45; text-align: left; }
.cmp th, .cmp td { padding: 16px 20px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: #e8ebef; border-bottom: 0; padding-top: 20px; padding-bottom: 20px; }
.cmp thead .cmp-lab { background: var(--ink); color: #fff; }
.cmp thead .cmp-us { background: var(--red); color: #fff; }
.cmp tbody .cmp-lab { font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); background: #f3f4f6; width: 22%; }
.cmp tbody .cmp-us { font-weight: 700; color: var(--ink); background: #fcf5f5; }
.cmp tbody td { color: var(--muted); }
.compare .btns.cmp-btns { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
@media (max-width: 600px) { .cmp { font-size: 14px; min-width: 640px; } .cmp th, .cmp td { padding: 13px 14px; } }

/* privacy policy page (renderPrivacy): the old Termly summary in the blog's reading column */
.privacy-body ul { margin: 12px 0 18px 22px; }
.privacy-body li { margin-top: 6px; }
.privacy-body .btns { margin-top: 26px; }

/* ---------- explain/dark-index.css ---------- */
/* "Dark index" explanation design (tools/explain-styles/dark-index.js). Every selector sits under .explain-dark-index. */
.explain-dark-index {
  background: var(--ink-deep);
  color: var(--on-dark-hi);
}
.explain-dark-index.section { padding-block: clamp(64px, 8vw, 112px) clamp(56px, 7vw, 96px); }
.explain-dark-index + .explain-dark-index.xdi-close-band { border-top: 1px solid var(--line-dark); }

/* intro: heading left, paragraphs right */
.explain-dark-index .xdi-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}
.explain-dark-index .xdi-h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.explain-dark-index .xdi-intro-text p {
  margin: 0;
  font-size: clamp(15.5px, 1.15vw, 17px);
  line-height: 1.65;
  color: var(--on-dark);
}
.explain-dark-index .xdi-intro-text p + p { margin-top: 16px; }

/* shared list heading */
.explain-dark-index .xdi-h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* services index */
.explain-dark-index .xdi-index { margin-top: clamp(56px, 7vw, 96px); }
.explain-dark-index .xdi-index-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}
.explain-dark-index .xdi-count {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.explain-dark-index .xdi-rows { list-style: none; margin: 0; padding: 0; }
.explain-dark-index .xdi-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-dark);
}
.explain-dark-index .xdi-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.explain-dark-index a.xdi-label { transition: color .18s ease; }
.explain-dark-index .xdi-arrow {
  flex: none;
  width: 0.6em;
  height: 0.6em;
  color: var(--red);
  transition: transform .2s ease;
}
.explain-dark-index a.xdi-label:hover { color: var(--on-dark); }
.explain-dark-index a.xdi-label:hover .xdi-arrow { transform: translate(3px, -3px); }
.explain-dark-index a.xdi-label:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }
.explain-dark-index .xdi-row-text {
  margin: 0;
  font-size: clamp(15.5px, 1.15vw, 17px);
  line-height: 1.6;
  color: var(--on-dark);
  max-width: 62ch;
}

/* benefits: grid of small translucent cards */
.explain-dark-index .xdi-benefits { margin-top: clamp(56px, 7vw, 96px); }
.explain-dark-index .xdi-cards {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.explain-dark-index .xdi-card {
  padding: 22px 22px 24px;
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
}
.explain-dark-index .xdi-card-label {
  margin: 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.explain-dark-index .xdi-card-label::before {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin-bottom: 16px;
  background: var(--red);
  border-radius: 2px;
}
.explain-dark-index .xdi-card-text {
  margin: 8px 0 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--on-dark);
}

/* closing band */
.explain-dark-index.xdi-close-band { padding-block: clamp(64px, 8vw, 112px); }
.explain-dark-index .xdi-close { text-align: center; }
.explain-dark-index .xdi-close-h2 {
  margin: 0 auto;
  max-width: 16ch;
  color: #fff;
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.explain-dark-index .xdi-close-p {
  margin: 20px auto 0;
  max-width: 580px;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--on-dark);
}
.explain-dark-index .xdi-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

@media (min-width: 640px) {
  .explain-dark-index .xdi-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (min-width: 900px) {
  .explain-dark-index .xdi-intro {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
  }
  .explain-dark-index .xdi-intro-text { padding-top: 10px; }
  .explain-dark-index .xdi-row {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(24px, 4vw, 64px);
    align-items: baseline;
    padding: 28px 0;
  }
  .explain-dark-index .xdi-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .explain-dark-index .xdi-card { padding: 26px 26px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .explain-dark-index .xdi-arrow, .explain-dark-index a.xdi-label { transition: none; }
}

/* ---------- explain/editorial.css ---------- */
/* "editorial" explain design (rv-body-shop): sticky text column + hairline numbered rows + white closing card */
.explain-editorial { background: var(--paper); }
.explain-editorial .ed-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }
.explain-editorial .ed-rule { display: block; width: 44px; height: 3px; border-radius: 2px; background: var(--red); margin-bottom: 22px; }
.explain-editorial .ed-h2 {
  font-size: clamp(30px, 3.6vw, 48px); line-height: 1.03; font-weight: 800; letter-spacing: -0.035em;
  color: var(--ink); text-wrap: balance; margin: 0;
}
.explain-editorial .ed-p { margin: 18px 0 0; font-size: clamp(15.5px, 1.15vw, 17px); line-height: 1.65; color: var(--body); max-width: 56ch; }
.explain-editorial .ed-p + .ed-p { margin-top: 14px; }

.explain-editorial .ed-main { display: grid; gap: 52px; min-width: 0; }
.explain-editorial .ed-eyebrow {
  margin: 0 0 6px; padding-bottom: 14px; border-bottom: 1px solid var(--ink);
  font-size: clamp(17px, 1.35vw, 19px); line-height: 1.4; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
}
.explain-editorial .ed-block:not(:has(.ed-eyebrow)) .ed-rows { border-top: 1px solid var(--ink); }
.explain-editorial .ed-rows { list-style: none; margin: 0; padding: 0; }
.explain-editorial .ed-row {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.explain-editorial .ed-num {
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--red);
  font-variant-numeric: tabular-nums;
}
.explain-editorial .ed-label { display: block; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.3; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
.explain-editorial .ed-text { margin: 6px 0 0; font-size: clamp(15px, 1.1vw, 16.5px); line-height: 1.6; color: var(--muted); }

@media (min-width: 960px) {
  .explain-editorial .ed-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(56px, 6vw, 112px); align-items: start; }
  .explain-editorial .ed-side { align-self: stretch; }
  .explain-editorial .ed-sticky { position: sticky; top: calc(var(--nav-h) + 40px); }
  .explain-editorial .ed-row { grid-template-columns: 52px minmax(0, 1fr); padding: 24px 0; }
  .explain-editorial .ed-main { gap: 64px; padding-top: 6px; }
}

/* closing card */
.explain-editorial-close { background: var(--paper); padding-bottom: clamp(56px, 7vw, 84px); }
.explain-editorial .ed-close {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px;
  background: var(--card); border-radius: var(--r-card); border-top: 3px solid var(--red);
  box-shadow: var(--shadow-card); padding: 32px 22px;
}
.explain-editorial .ed-close-h {
  margin: 0; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em;
  color: var(--ink); text-wrap: balance;
}
.explain-editorial .ed-close-body p { margin: 0; font-size: clamp(15.5px, 1.2vw, 17.5px); line-height: 1.6; color: var(--body); }
.explain-editorial .ed-close-body p + p { margin-top: 12px; }
.explain-editorial .ed-close .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media (max-width: 480px) {
  .explain-editorial .ed-close .btns .btn { flex: 1 1 100%; }
}
@media (min-width: 860px) {
  .explain-editorial .ed-close { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 88px); align-items: center; padding: clamp(44px, 5vw, 72px); }
}

/* ---------- explain/numbered.css ---------- */
/* "numbered" explain design (rv-detailing): centered intro, outlined-number service cards,
   grey benefits band with red accent rules, centered close between hairlines. */
.explain-numbered { background: var(--card); color: var(--ink); overflow-wrap: break-word; }
.explain-numbered.xn-band { background: var(--paper); border-top: 1px solid var(--line-soft, var(--line)); border-bottom: 1px solid var(--line-soft, var(--line)); }

/* intro */
.explain-numbered .xn-head { max-width: 760px; margin-inline: auto; text-align: center; }
.explain-numbered .xn-h2 { margin: 0 auto; max-width: 22ch; text-wrap: balance; color: var(--ink); }
.explain-numbered .xn-lede {
  margin-top: 26px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5;
  color: var(--body); font-weight: 500; letter-spacing: -0.01em;
}
.explain-numbered .xn-para {
  margin-top: 18px; font-size: clamp(15.5px, 1.15vw, 17px); line-height: 1.65; color: var(--muted);
}

/* numbered service cards */
.explain-numbered .xn-cards {
  list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.explain-numbered .xn-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 30px 28px 32px;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.explain-numbered .xn-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); border-color: transparent; }
.explain-numbered .xn-num {
  display: block; font-family: var(--sans);
  font-size: clamp(64px, 6vw, 88px); line-height: .9; font-weight: 800; letter-spacing: -0.05em;
  color: #d9dbdf;
  font-variant-numeric: tabular-nums;
}
@supports (-webkit-text-stroke: 1px black) {
  .explain-numbered .xn-num { color: transparent; -webkit-text-stroke: 1.5px #c3c6cc; }
}
.explain-numbered .xn-card-title {
  margin-top: 22px; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.2; font-weight: 700;
  letter-spacing: -0.02em; color: var(--ink);
}
.explain-numbered .xn-card-text { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* benefits band */
.explain-numbered .xn-band-title {
  margin: 0 auto; max-width: 24ch; text-align: center; text-wrap: balance;
  font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; color: var(--ink);
}
.explain-numbered .xn-benefits {
  list-style: none; margin: clamp(36px, 4.5vw, 56px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px);
}
.explain-numbered .xn-benefit::before {
  content: ""; display: block; width: 36px; height: 3px; border-radius: 2px;
  background: var(--red); margin-bottom: 20px;
}
.explain-numbered .xn-benefit-title {
  font-size: clamp(18px, 1.4vw, 20px); line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; color: var(--ink);
}
.explain-numbered .xn-benefit-text { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--body); }

/* close */
.explain-numbered .xn-close-inner {
  max-width: 820px; margin-inline: auto; text-align: center;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding-block: clamp(44px, 6vw, 72px);
}
.explain-numbered .xn-close-title {
  margin: 0 auto; max-width: 18ch; text-wrap: balance;
  font-size: clamp(32px, 4.2vw, 54px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; color: var(--ink);
}
.explain-numbered .xn-close-text {
  margin: 20px auto 0; max-width: 640px;
  font-size: clamp(16px, 1.2vw, 18px); line-height: 1.6; color: var(--body);
}
.explain-numbered .xn-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* tablet / phone */
@media (max-width: 900px) {
  .explain-numbered .xn-cards { grid-template-columns: 1fr; gap: 14px; max-width: 560px; margin-inline: auto; }
  .explain-numbered .xn-card { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: start; padding: 24px 22px; }
  .explain-numbered .xn-num { grid-row: span 2; font-size: 56px; }
  .explain-numbered .xn-card-title { margin-top: 4px; }
  .explain-numbered .xn-benefits { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; gap: 30px; }
}
@media (max-width: 480px) {
  .explain-numbered .xn-card { display: block; }
  .explain-numbered .xn-num { font-size: 52px; }
  .explain-numbered .xn-card-title { margin-top: 16px; }
  .explain-numbered .xn-lede { font-size: 18px; }
  .explain-numbered .xn-btns .btn { width: 100%; }
}

/* ---------- explain/photo-cards.css ---------- */
/* "Photo cards" explanation design (tools/explain-styles/photo-cards.js). Every rule is scoped to
   .explain-photo-cards, .explain-photo-cards-band or .explain-photo-cards-close. */

/* intro */
.explain-photo-cards .pc-intro { max-width: 1120px; }
.explain-photo-cards .pc-h2 { max-width: 20ch; text-wrap: balance; }
.explain-photo-cards .pc-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: clamp(22px, 3vw, 34px); }
.explain-photo-cards .pc-cols .prose { margin: 0; color: var(--body); }
.explain-photo-cards .pc-cols .prose + .prose { margin-top: 0; }

/* service photo cards */
.explain-photo-cards .pc-services { margin-top: clamp(44px, 6vw, 72px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line); }
.explain-photo-cards .pc-h3 { margin: 0; font-size: clamp(22px, 2.3vw, 30px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.explain-photo-cards .pc-cards { list-style: none; margin: clamp(20px, 2.6vw, 30px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.explain-photo-cards .pc-cards > li { display: flex; min-width: 0; }
.explain-photo-cards .pc-card {
  display: flex; flex-direction: column; width: 100%; padding: 10px; background: var(--card);
  border: 1px solid var(--line); border-radius: calc(var(--r-card) + 6px); box-shadow: var(--shadow-card);
  color: inherit; text-decoration: none; transition: box-shadow .25s ease, transform .25s ease;
}
.explain-photo-cards a.pc-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.explain-photo-cards a.pc-card:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.explain-photo-cards .pc-media { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r-card); background: #eceef0; }
.explain-photo-cards .pc-photo { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.explain-photo-cards a.pc-card:hover .pc-photo { transform: scale(1.04); }
.explain-photo-cards .pc-body { display: flex; flex-direction: column; flex: 1; padding: 18px 12px 12px; }
.explain-photo-cards .pc-label { margin: 0; font-size: clamp(19px, 1.6vw, 22px); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); }
.explain-photo-cards .pc-text { margin: 10px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--body); }
.explain-photo-cards .pc-more { margin-top: auto; padding-top: 18px; font-size: 15px; font-weight: 700; color: var(--red); }
.explain-photo-cards .pc-more span { display: inline-block; transition: transform .2s ease; }
.explain-photo-cards a.pc-card:hover .pc-more span { transform: translateX(4px); }
.explain-photo-cards .pc-cards.no-photo .pc-body { padding: 22px 16px 16px; }

/* benefits on a dark band */
.explain-photo-cards-band { background: var(--ink); color: var(--on-dark-hi); padding-block: clamp(52px, 6.5vw, 80px); }
.explain-photo-cards-band .pc-band-h3 { margin: 0; max-width: 24ch; font-size: clamp(24px, 2.8vw, 36px); font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; color: #fff; text-wrap: balance; }
.explain-photo-cards-band .pc-benefits { list-style: none; margin: clamp(26px, 3.4vw, 42px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.explain-photo-cards-band .pc-benefits.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.explain-photo-cards-band .pc-benefits > li { min-width: 0; padding: 4px clamp(18px, 2vw, 28px); border-left: 1px solid var(--line-dark); }
.explain-photo-cards-band .pc-benefits > li:first-child { padding-left: 0; border-left: 0; }
.explain-photo-cards-band .pc-num { display: block; font-size: 15px; font-weight: 800; letter-spacing: 0.04em; color: var(--red); font-variant-numeric: tabular-nums; }
.explain-photo-cards-band .pc-b-label { margin: 14px 0 0; font-size: clamp(18px, 1.5vw, 21px); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: #fff; }
.explain-photo-cards-band .pc-b-text { margin: 10px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--on-dark); }

/* closing call to action over the hero photo */
.explain-photo-cards-close { position: relative; isolation: isolate; overflow: hidden; background: var(--ink-deep); color: #fff; text-align: center; padding-block: clamp(80px, 11vw, 150px); }
.explain-photo-cards-close .pc-close-bg { position: absolute; inset: 0; z-index: -1; }
.explain-photo-cards-close .pc-close-bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.explain-photo-cards-close .pc-close-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.explain-photo-cards-close .pc-close-h2 { margin: 0 auto; max-width: 16ch; color: #fff; text-wrap: balance; }
.explain-photo-cards-close .pc-close-p { margin: 20px auto 0; max-width: 600px; font-size: clamp(16px, 1.4vw, 18.5px); line-height: 1.6; color: rgba(255, 255, 255, 0.92); }
.explain-photo-cards-close .pc-close-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* tablets */
@media (max-width: 1000px) {
  .explain-photo-cards .pc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .explain-photo-cards-band .pc-benefits, .explain-photo-cards-band .pc-benefits.three { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .explain-photo-cards-band .pc-benefits > li:nth-child(odd) { padding-left: 0; border-left: 0; }
}
/* phones */
@media (max-width: 700px) {
  .explain-photo-cards .pc-cols { grid-template-columns: 1fr; gap: 14px; }
  .explain-photo-cards .pc-cards { grid-template-columns: 1fr; }
  .explain-photo-cards-band .pc-benefits, .explain-photo-cards-band .pc-benefits.three { grid-template-columns: 1fr; row-gap: 0; }
  .explain-photo-cards-band .pc-benefits > li { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .explain-photo-cards-band .pc-benefits > li:first-child { padding-top: 0; border-top: 0; }
  .explain-photo-cards-close .pc-close-btns { flex-direction: column; align-items: stretch; max-width: 340px; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .explain-photo-cards .pc-card, .explain-photo-cards .pc-photo, .explain-photo-cards .pc-more span { transition: none; }
  .explain-photo-cards a.pc-card:hover, .explain-photo-cards a.pc-card:hover .pc-photo { transform: none; }
}

/* ---------- explain/photo-split.css ---------- */
/* "photo-split" explanation design (tools/explain-styles/photo-split.js). Every rule sits under .explain-photo-split. */
.explain-photo-split { overflow-x: clip; }

/* intro: text beside a large rounded photo */
.explain-photo-split .eps-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
.explain-photo-split .eps-copy .h-section { margin: 0 0 20px; }
.explain-photo-split .eps-copy .prose { margin: 0 0 16px; max-width: 60ch; font-size: 16.5px; line-height: 1.65; color: var(--body); }
.explain-photo-split .eps-copy .prose:last-child { margin-bottom: 0; }
.explain-photo-split .eps-photo { margin: 0; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-lift); aspect-ratio: 4 / 3; background: var(--ink-soft); }
.explain-photo-split .eps-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .explain-photo-split .eps-intro { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; }
  .explain-photo-split .eps-intro.no-photo { grid-template-columns: minmax(0, 1fr); }
  .explain-photo-split .eps-photo { aspect-ratio: 1 / 1; }
}

/* list headings */
.explain-photo-split .eps-h3 { margin: 0 0 24px; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; color: var(--ink); max-width: 30ch; }
.explain-photo-split .eps-h3.on-dark { color: #fff; max-width: 34ch; }

/* services: 2x2 white tiles with a thin red line on top */
.explain-photo-split .eps-services { margin-top: 56px; }
.explain-photo-split .eps-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.explain-photo-split .eps-tile { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px 24px 24px; box-shadow: var(--shadow-card); overflow: hidden; }
.explain-photo-split .eps-tile::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 3px; background: var(--red); border-radius: 0 0 3px 3px; }
.explain-photo-split .eps-tile-label { display: block; font-size: 19px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 8px; }
.explain-photo-split .eps-tile p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--body); }
@media (min-width: 720px) {
  .explain-photo-split .eps-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .explain-photo-split .eps-tile { padding: 32px 30px 30px; }
  .explain-photo-split .eps-tile::before { left: 30px; right: 30px; }
}

/* benefits: dark band, three columns with red checks */
.explain-photo-split.eps-band { background: var(--ink); color: var(--on-dark); padding: clamp(56px, 8vw, 104px) 0; }
.explain-photo-split .eps-checks { list-style: none; margin: 0; padding: 28px 0 0; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.explain-photo-split .eps-checks li { display: flex; gap: 14px; align-items: flex-start; }
.explain-photo-split .eps-check { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; }
.explain-photo-split .eps-check circle { fill: var(--red); }
.explain-photo-split .eps-check path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.explain-photo-split .eps-checks strong { display: block; color: #fff; font-size: 17px; line-height: 1.3; font-weight: 800; margin-bottom: 6px; }
.explain-photo-split .eps-checks p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--on-dark); }
@media (min-width: 720px) { .explain-photo-split .eps-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 36px; } }
@media (min-width: 1040px) { .explain-photo-split .eps-checks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 44px; padding-top: 36px; } }

/* closing: split card on the light page, text left, buttons stacked right */
.explain-photo-split.eps-close-wrap { background: var(--paper); }
.explain-photo-split .eps-close { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 30px 22px; position: relative; overflow: hidden; }
.explain-photo-split .eps-close::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); }
.explain-photo-split .eps-close-h2 { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; color: var(--ink); }
.explain-photo-split .eps-close-text p { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--body); max-width: 62ch; }
.explain-photo-split .eps-close-btns { display: flex; flex-direction: column; gap: 12px; }
.explain-photo-split .eps-btn { width: 100%; justify-content: center; text-align: center; }
@media (min-width: 900px) {
  .explain-photo-split .eps-close { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 56px; padding: 52px 56px; }
  .explain-photo-split .eps-close-btns { min-width: 260px; padding-left: 48px; border-left: 1px solid var(--line); }
}

/* a heading-less first list (RV Detailing) as bullet points under the intro paragraphs */
.explain-photo-split .eps-bullets { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.explain-photo-split .eps-bullets li { position: relative; padding-left: 24px; font-size: 16.5px; line-height: 1.6; color: var(--body); }
.explain-photo-split .eps-bullets li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.explain-photo-split .eps-bullets strong { color: var(--ink); font-weight: 700; }
.explain-photo-split .eps-bullets-h3 { margin: 26px 0 14px; font-size: 19px; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
/* four benefits: one row of four on wide screens (two rows of two below), instead of three plus one */
@media (min-width: 1040px) { .explain-photo-split .eps-checks.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .explain-photo-split .eps-checks.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 36px; } }

/* call and estimate buttons under the intro photo */
.explain-photo-split .eps-media { min-width: 0; }
.explain-photo-split .eps-photo-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
@media (max-width: 600px) {
  .explain-photo-split .eps-photo-btns { flex-wrap: nowrap; gap: 10px; }
  .explain-photo-split .eps-photo-btns .btn { flex: 1 1 0; min-width: 0; padding: 13px 10px; font-size: 14px; white-space: nowrap; }
}

/* ---------- explain/stat-panel.css ---------- */
/* "stat-panel" explanation design: intro + dark stat panel, timeline, checklist card, red closing panel.
   Every selector is scoped under .explain-stat-panel. */
.explain-stat-panel { background: var(--paper); color: var(--body); }
.explain-stat-panel *, .explain-stat-panel *::before, .explain-stat-panel *::after { box-sizing: border-box; }

/* ---------- intro: copy + stat panel ---------- */
.explain-stat-panel .sp-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.explain-stat-panel .sp-copy .h-section { margin: 0 0 22px; color: var(--ink); max-width: 22ch; }
.explain-stat-panel .sp-copy .prose { margin: 0; max-width: 62ch; color: var(--body); }
.explain-stat-panel .sp-copy .prose + .prose { margin-top: 16px; }

.explain-stat-panel .sp-panel {
  background: var(--ink);
  color: var(--on-dark-hi);
  border-radius: var(--r-card);
  padding: clamp(24px, 2.6vw, 34px);
  box-shadow: var(--shadow-lift);
}
.explain-stat-panel .sp-stats { list-style: none; margin: 0; padding: 0; }
.explain-stat-panel .sp-stat {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; row-gap: 4px;
  padding: 20px 0;
  border-top: 1px solid var(--line-dark);
}
.explain-stat-panel .sp-stat:first-child { border-top: 0; padding-top: 0; }
.explain-stat-panel .sp-num {
  font-size: clamp(44px, 4.4vw, 60px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: #fff;
}
.explain-stat-panel .sp-stars { display: inline-flex; gap: 3px; align-self: center; }
.explain-stat-panel .sp-stars svg { width: 18px; height: 18px; fill: #f5b301; display: block; }
.explain-stat-panel .sp-cap {
  flex-basis: 100%;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--on-dark);
}
.explain-stat-panel .sp-addr {
  margin: 4px 0 0; padding-top: 16px;
  border-top: 1px solid var(--line-dark);
  font-size: 14px; line-height: 1.5; color: var(--on-dark);
}

/* ---------- shared list typography ---------- */
.explain-stat-panel .sp-block { margin-top: clamp(48px, 6vw, 80px); }
.explain-stat-panel .sp-h3 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 30px); line-height: 1.12; font-weight: 700; letter-spacing: -0.025em;
  color: var(--ink);
}
.explain-stat-panel .sp-label {
  display: block;
  font-size: 17px; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; color: var(--ink);
}
.explain-stat-panel .sp-text { margin: 6px 0 0; font-size: 16px; line-height: 1.6; color: var(--body); }

/* ---------- services: vertical timeline ---------- */
.explain-stat-panel .sp-timeline-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}
.explain-stat-panel .sp-timeline-block > .sp-h3 { max-width: 14ch; }
.explain-stat-panel .sp-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.explain-stat-panel .sp-timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: var(--line); border-radius: 2px;
}
.explain-stat-panel .sp-timeline li { position: relative; padding: 0 0 30px 40px; }
.explain-stat-panel .sp-timeline li:last-child { padding-bottom: 0; }
.explain-stat-panel .sp-timeline li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 5px var(--paper);
}

/* ---------- benefits: two-column checklist card ---------- */
.explain-stat-panel .sp-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 3.4vw, 48px);
}
.explain-stat-panel .sp-checks {
  list-style: none; margin: 26px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 56px); row-gap: 24px;
}
.explain-stat-panel .sp-checks li { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.explain-stat-panel .sp-tick {
  flex: none; position: relative; width: 24px; height: 24px; margin-top: 0;
  border-radius: 50%; background: var(--ink);
}
.explain-stat-panel .sp-tick::after {
  content: ""; position: absolute; left: 8px; top: 5px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ---------- close: red panel ---------- */
.explain-stat-panel.explain-stat-panel-close { padding-top: 0; }
.explain-stat-panel .sp-red {
  background: var(--red);
  color: #fff;
  border-radius: var(--r-card);
  padding: clamp(32px, 5vw, 64px);
  text-align: center;
}
.explain-stat-panel .sp-close-h2 {
  margin: 0 auto; max-width: 20ch;
  font-size: clamp(32px, 4.4vw, 56px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em;
  color: #fff;
}
.explain-stat-panel .sp-close-p {
  margin: 18px auto 0; max-width: 64ch;
  font-size: clamp(16px, 1.2vw, 18px); line-height: 1.6; color: #fff;
}
.explain-stat-panel .sp-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.explain-stat-panel .btn-white { background: #fff; color: var(--ink); border-color: #fff; }
.explain-stat-panel .btn-white:hover { background: var(--paper); color: var(--ink-deep); }
.explain-stat-panel .btn-ghost.on-red { background: transparent; border-color: rgba(255, 255, 255, 0.75); color: #fff; }
.explain-stat-panel .btn-ghost.on-red:hover { border-color: #fff; background: rgba(255, 255, 255, 0.12); }
.explain-stat-panel .btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ---------- tablet / phone ---------- */
@media (max-width: 900px) {
  .explain-stat-panel .sp-intro,
  .explain-stat-panel .sp-timeline-block { grid-template-columns: minmax(0, 1fr); }
  .explain-stat-panel .sp-timeline-block > .sp-h3 { max-width: none; }
  .explain-stat-panel .sp-panel { max-width: 520px; }
}
@media (max-width: 640px) {
  .explain-stat-panel .sp-checks { grid-template-columns: minmax(0, 1fr); }
  .explain-stat-panel .sp-text { font-size: 15.5px; }
  .explain-stat-panel .sp-red { text-align: left; }
  .explain-stat-panel .sp-close-h2, .explain-stat-panel .sp-close-p { margin-left: 0; margin-right: 0; }
  .explain-stat-panel .sp-btns { justify-content: flex-start; }
  .explain-stat-panel .sp-btns .btn { width: 100%; }
}
