/* Adam's Motors shop CSS. The kit adds this after its own stylesheet. Colors, fonts and the corner radius are tokens in
   src/theme.json; this file holds what tokens cannot say: the carbon weave on dark bands, the red pinstripes, the
   angled edges, the slanted buttons, the timing-board stats and the sold-car card.
   The kit's minifier removes the space before a colon, so a descendant pseudo-class is written `*:focus-visible`. */

:root { --carbon: #111315; --carbon-ink: #FFFFFF; --carbon-muted: #A9AFB6; --accent-on-carbon: #FF4D57; --field-line: #8A9099; --slant: 28px; }

/* ------------------------------------------------------------ type */
h1, h2, h3, .h2, .h3 { line-height: 1; letter-spacing: .005em; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); }
h2, .h2 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
h3, .h3 { font-size: 1.5rem; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--accent); }
.card-body h2, .card-body h3 { font-size: 1.5rem; }
.step h3 { font-size: 1.4rem; }
.footer-h { font-size: 1.25rem; }
.brand { --nfs: clamp(1.7rem, 2.3vw, 2.15rem); }
.brand-name { font-size: var(--nfs); letter-spacing: .01em; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: .8rem; letter-spacing: .14em; }
.eyebrow::before { content: ""; flex: none; width: 26px; height: 10px; background: linear-gradient(var(--accent), var(--accent)) 0 0 / 100% 4px no-repeat, linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; transform: skewX(-24deg); }
.cta-band .eyebrow::before, .has-media .eyebrow::before { background: linear-gradient(var(--accent-on-carbon), var(--accent-on-carbon)) 0 0 / 100% 4px no-repeat, linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; }

/* ------------------------------------------------------------ carbon weave (dark bands only) */
.carbon, .band-dark, .cta-band::before, .aside-card.accent, .reviews-strip .reviews-3 .review:first-child {
  background-color: var(--carbon);
  background-image:
    linear-gradient(27deg, #0b0c0e 3px, transparent 3px), linear-gradient(207deg, #0b0c0e 3px, transparent 3px),
    linear-gradient(27deg, #1a1d20 3px, transparent 3px), linear-gradient(207deg, #1a1d20 3px, transparent 3px),
    linear-gradient(90deg, #131517 6px, transparent 6px),
    linear-gradient(#17191c 25%, #131517 25%, #131517 50%, transparent 50%, transparent 75%, #1c1f22 75%, #1c1f22);
  background-position: 0 3px, 6px 0, 0 6px, 6px 3px, 0 0, 0 0;
  background-size: 12px 12px;
}
.carbon, .band-dark { color: var(--carbon-ink); }
.carbon *:focus-visible, .cta-band *:focus-visible, .aside-card.accent *:focus-visible, .page-hero.has-media *:focus-visible { outline-color: #fff; }

/* ------------------------------------------------------------ buttons: slanted, uppercase */
.btn { min-height: 50px; padding: 0 26px; font-weight: 700; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; transform: skewX(-9deg); }
.btn:active { transform: skewX(-9deg) translateY(1px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .85rem; }
.btn-ghost { border-color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); background: var(--text); color: #fff; }
.btn-row { padding-left: 5px; }

/* ------------------------------------------------------------ header: red and carbon pinstripe under it */
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 6px; background: linear-gradient(var(--accent), var(--accent)) 0 0 / 100% 4px no-repeat, linear-gradient(var(--text), var(--text)) 0 100% / 100% 1px no-repeat; pointer-events: none; }
.header-in { min-height: 90px; }
html { --header-h: 90px; }
.brand-logo { height: 56px; }
.site-header .brand { --logo: 74px; }
.site-header .brand-logo { height: var(--logo); }
.nav a { border-radius: 0; border-bottom: 3px solid transparent; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: transparent; border-bottom-color: var(--accent); }
@media (max-width: 520px) {
  .brand-logo { height: 46px; } .brand { --nfs: 1.6rem; }
  .site-header .brand { --logo: 58px; } .header-in { min-height: 76px; } html { --header-h: 76px; }
}

/* ------------------------------------------------------------ header menu (Dan 2026-11-14: "As a visitor I have to
   know where to navigate"; replaces the burger at every width of 2026-11-13). From 1024px the page links sit in the
   header in plain sight; below that the burger opens the kit's drawer (a full-screen menu from 961 to 1023px). The
   page links read in the order a visitor wants them: Sell Your Car, Results, Detailing, About. The build writes them
   in that order (data/shop.json navOrder, 2026-11-15), so keyboards, screen readers, the menu and the footer all
   follow what is on screen; no CSS `order`.
   Header option C (Dan 2026-11-27: the one-row menu "is too crowded"): from 1024px a slim dark top bar above the
   header holds "View our live auctions" (#85, not a page) and the phone number, so the main row is four links and
   Contact Us. Below 1024px the top bar is hidden: the live auctions link is in the phone menu after Sell Your Car and
   before Results, and the phone number is in the menu, the footer and the phones' action bar (SHOP-CONV.1). */
.topbar { display: none; }
@media (min-width: 1024px) {
  html { --header-h: 124px; }
  .topbar { display: block; background: var(--text); color: #fff; }
  .topbar .wrap { width: min(1520px, 100%); }
  .topbar-in { display: flex; align-items: center; justify-content: flex-end; gap: 28px; min-height: 34px; font-size: .8125rem; font-weight: 600; letter-spacing: .03em; }
  .topbar a, .topbar .phone-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; text-decoration: none; text-underline-offset: 3px; }
  .topbar a:hover { text-decoration: underline; }
  .topbar a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  .topbar .phone-link svg { width: 15px; height: 15px; color: #ff4d58; }
  .live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4d58; box-shadow: 0 0 0 3px rgba(255, 77, 88, .25); }
}
.header-actions { margin-left: auto; }
.menu-btn { border-color: var(--text); border-radius: 0; }
/* Detailing & Coating's own pages (fix 5, 2026-11-15; data/shop.json extraNav children). Desktop: the parent link
   still opens Detailing, and a small list with Detailing and Ceramic coating drops under it on hover or when a link in
   it has keyboard focus (CSS only; the sub-links stay in the tab order right after the parent). Drawer: Ceramic coating
   sits indented right after its parent (source order, data/shop.json navOrder). Footer: under its parent in the Company list. */
.drawer > a.drawer-sub { padding-left: 22px; font-size: 1rem; font-weight: 500; }
.drawer > a.drawer-sub::before { content: "\2014\00a0"; color: var(--muted); }
.nav .has-sub { position: relative; }
.nav .has-sub > a::after { content: ""; display: inline-block; width: .38em; height: .38em; margin: 0 0 .18em .4em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.nav-sub { position: absolute; z-index: 90; top: 100%; left: 0; min-width: 200px; margin: 0; padding: 6px 0; list-style: none; border: 1px solid var(--line); border-top: 3px solid var(--accent); background: var(--surface); box-shadow: 0 12px 28px rgba(0, 0, 0, .14); opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity var(--dur) ease, transform var(--dur) var(--ease); }
.nav ul.nav-sub { display: block; }
.nav .has-sub:hover > .nav-sub, .nav .has-sub:focus-within > .nav-sub { opacity: 1; transform: none; pointer-events: auto; }
.nav .nav-sub a { padding: 10px 16px; border-bottom: 0; }
.nav .nav-sub a:hover, .nav .nav-sub a[aria-current="page"] { color: var(--accent); }
.nav .in-section > a { border-bottom-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .nav-sub { transition: none; transform: none; } }
.footer-company .footer-sub a::before { content: "\2014\00a0"; }
@media (max-width: 1023px) {
  .nav { display: none; }
  .menu-btn { display: flex; }
}
@media (min-width: 961px) and (max-width: 1023px) {
  .js .drawer { position: fixed; z-index: 70; top: calc(var(--header-h) + var(--safe-top)); left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: 0 32px; padding: 56px var(--gutter) 48px; background: var(--surface); overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-10px); transition: opacity var(--dur) ease, transform var(--dur-slow) var(--ease), visibility 0s linear var(--dur-slow); }
  .js .drawer.open { visibility: visible; opacity: 1; transform: none; transition: opacity var(--dur) ease, transform var(--dur-slow) var(--ease), visibility 0s; }
  .drawer > a { padding: 16px 2px; border-bottom: 1px solid var(--line); color: var(--text); font: var(--display-weight) 1.7rem/1.1 var(--display); text-transform: var(--display-case); text-decoration: none; }
  .drawer > a:hover, .drawer > a[aria-current="page"] { color: var(--accent); }
  .drawer-cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
  html:not(.js) .menu-btn { display: none; }
  html:not(.js) .drawer { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 10px var(--gutter); border-bottom: 1px solid var(--line); background: var(--surface); }
  html:not(.js) .drawer > a { padding: 6px 0; border: 0; font: 600 1rem var(--font); text-transform: none; }
  html:not(.js) .drawer-cta { display: none; }
}
@media (min-width: 1024px) {
  /* The same 1520px column as the top bar, so the menu lines up under it. Four links with room between them. */
  .site-header > .wrap { width: min(1520px, 100%); }
  .site-header .brand { flex-shrink: 0; }
  .nav { margin-left: auto; }
  .nav > ul { gap: clamp(14px, 2vw, 30px); }
  .nav > ul > li > a { padding: 8px 2px; color: var(--text); font-size: 1rem; white-space: nowrap; }
  .header-actions { margin-left: clamp(16px, 2.5vw, 40px); }
}
/* Tight widths: 521-600px (badge still 74px, Contact Us shown) and 320-340px phones. */
@media (min-width: 521px) and (max-width: 600px) { .header-actions { gap: 8px; } }
@media (max-width: 340px) { .brand { --nfs: 1.36rem; } }
/* The header's name, larger (Dan 2026-11-13, option B): up to 2rem on phones and 2.5rem on wide screens. The tight
   widths keep the size that fits: 1.36rem up to 340px, and the old 1.7rem from 521px to 1519px, where the badge is
   74px and Contact Us and the menu take the room. From 1520px the name may grow.
   The footer's name keeps the old size. */
.site-header .brand { --nfs: clamp(1.7rem, 2.75vw, 2.5rem); }
@media (min-width: 521px) and (max-width: 1519px) { .site-header .brand { --nfs: 1.7rem; } }
@media (max-width: 520px) { .site-header .brand { --nfs: clamp(1.6rem, 7.4vw, 2rem); } }
@media (max-width: 340px) { .site-header .brand { --nfs: 1.36rem; } }

/* ------------------------------------------------------------ header logo motion (Dan 2026-11-13, design/logo-motion.html 3b + 3c)
   Home page, first view in a visit: the badge rolls right to left from the end of the name into place and uncovers
   the name as it goes; when it stops, its red center spins on like a spinner hubcap and stops upright. 2.4s, under
   the 5s after which WCAG 2.2.2 wants a pause control. Any later view in the same visit (html.page-seen, kit 0.1.5)
   is still: a reload, a return, or a tap on the name (Dan 2026-11-13: a spin on every tap was too much). A click or
   tap on the badge itself opens the home page with the red center spinning once (html.via-logo, kit 0.1.6). No
   hover spin (Dan: only when clicked). The rules are in README § Header logo. Only transforms move, so nothing shifts (SHOP-QUAL.1), and nothing
   moves when the visitor asks for reduced motion (SHOP-QUAL.4).
   --name-em: width of "ADAM'S MOTORS" in Barlow Condensed 800 italic, in em (measured; change it with the name or
   font). --roll: how far the badge travels. --turn: that distance over the badge's radius (.449 of the logo), so it
   rolls rather than slides. The badge's circle is centred at 48.44% 49.8% of logo.png, not at 50% 50%, and its red
   center is a circle of 27.1%. The hub is a copy of the built logo cut to that circle, laid over the logo. */
.site-header .brand { --name-em: 5.753; --turn: 430deg; --roll: calc(var(--name-em) * var(--nfs) + 10px + var(--logo) / 2); position: relative; }
.site-header .brand-logo { position: relative; z-index: 2; transform-origin: 48.44% 49.8%; }
.site-header .brand-name { position: relative; }
/* A tap on the logo drew the phone browser's own tap highlight, a dark see-through box on iPhones, over the badge
   and the name for a moment (Dan 2026-11-13, "a black square flashes over it"). It is off here, and a tap changes
   nothing on the logo or the name (Dan: no grey either; they keep their color). */
.site-header .brand { -webkit-tap-highlight-color: transparent; }
.site-header .brand::after {
  content: ""; position: absolute; left: 0; top: 50%; z-index: 3; width: var(--logo); height: var(--logo); margin-top: calc(var(--logo) / -2);
  background: url("/assets/img/logo-320.webp") center / contain no-repeat;
  background-image: image-set(url("/assets/img/logo-160.webp") 1x, url("/assets/img/logo-320.webp") 2x);
  clip-path: circle(27.1% at 48.44% 49.8%); transform-origin: 48.44% 49.8%; pointer-events: none; visibility: hidden;
}
@media (max-width: 520px) { .site-header .brand { --turn: 445deg; } }
@media (prefers-reduced-motion: no-preference) {
  html:not(.page-seen) .home .site-header .brand-logo { animation: am-roll .9s cubic-bezier(.3, .6, .3, 1) both; }
  html:not(.page-seen) .home .site-header .brand-name::after { content: ""; position: absolute; inset: 0; background: var(--surface); animation: am-uncover .9s cubic-bezier(.3, .6, .3, 1) both; }
  html:not(.page-seen) .home .site-header .brand::after { animation: am-hub-roll .9s cubic-bezier(.3, .6, .3, 1) both, am-hub-free 2.4s cubic-bezier(.2, .6, .35, 1); }
  .page-seen.via-logo .home .site-header .brand::after { animation: am-hub-spin 1.6s cubic-bezier(.15, .65, .3, 1); }
}
@keyframes am-roll { from { translate: var(--roll) 0; rotate: var(--turn); } to { translate: 0 0; rotate: 0deg; } }
@keyframes am-uncover { from { translate: 0 0; } to { translate: calc(-1 * var(--roll)) 0; visibility: hidden; } }
@keyframes am-hub-roll { from { translate: var(--roll) 0; } to { translate: 0 0; } }
@keyframes am-hub-free { from { visibility: visible; rotate: var(--turn); } to { visibility: visible; rotate: -720deg; } }
@keyframes am-hub-spin { from { visibility: visible; rotate: 0deg; } to { visibility: visible; rotate: -720deg; } }

/* ------------------------------------------------------------ home hero: white, with the photo in an angled panel */
.hero h1 { font-size: clamp(2.9rem, 6.6vw, 5.4rem); line-height: .98; }
.hero.has-media { background: var(--bg); }
.hero.has-media, .hero.has-media h1, .hero.has-media .hero-points, .hero.has-media .eyebrow { color: var(--text); }
.hero.has-media .eyebrow { opacity: 1; }
.hero.has-media .eyebrow::before { background: linear-gradient(var(--accent), var(--accent)) 0 0 / 100% 4px no-repeat, linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; }
.hero.has-media .lead { color: var(--text-2); }
.hero.has-media .hero-points svg { color: var(--accent); }
.hero.has-media .hero-media::after { display: none; }
.hero.has-media .hero-media img { object-position: 72% 50%; }
.hero.has-media .btn-on-media { border-color: var(--text); color: var(--text); }
.hero.has-media .btn-on-media:hover { border-color: var(--text); background: var(--text); color: #fff; }
.hero.has-media::before, .hero.has-media::after { content: ""; position: absolute; pointer-events: none; }
@media (min-width: 861px) {
  .hero.has-media .hero-copy { max-width: min(540px, 41%); }
  .hero.has-media .hero-media, .hero.has-media::before, .hero.has-media::after { inset: 0 0 0 46%; }
  .hero.has-media .hero-media { clip-path: polygon(calc(16% + 30px) 0, 100% 0, 100% 100%, 30px 100%); }
  .hero.has-media::before { background: var(--accent); clip-path: polygon(16% 0, calc(16% + 12px) 0, 12px 100%, 0 100%); }
  .hero.has-media::after { background: var(--text); clip-path: polygon(calc(16% + 19px) 0, calc(16% + 22px) 0, 22px 100%, 19px 100%); }
}
/* The hero loop (kit 0.1.9, data/hero-loop.json): the sale card sits clear of the angled edge. On desktop it is
   anchored low on the right but lifted so it is above the fold on a laptop's first screen (under the header, --header-h);
   the pause button is in the top corner, where it is always in view. */
.hero-loop .hl-card .sold-flag { margin-top: 0; }
.hero-loop .hl-card .sold-body { padding: 14px 18px 18px; gap: 4px; }
.hero-loop .hl-card .sold-title { font-size: 1.45rem; line-height: 1.02; }
.hero-loop .hl-card .sold-price b { font-size: 2.2rem; }
.hero-loop .hl-pause { top: 16px; bottom: auto; }
@media (min-width: 861px) {
  .hero-loop .hl-card { left: auto; right: 28px; bottom: max(28px, calc(100% - 100svh + var(--header-h) + 28px)); }
  .hero-loop .hl-card.sold-card { width: min(330px, calc(100% - 150px)); }
  .hero-loop .hl-tag .sold-flag { font-size: 1.15rem; padding: 8px 24px 8px 16px; }
  .hero-loop .hl-tag-price { font-size: 2.1rem; padding: 6px 26px 6px 24px; }
  .hero-loop .hl-pause { top: 20px; right: 20px; }
}
@media (max-width: 860px) {
  .hero-loop .hl-pause { top: 30px; right: 12px; }
}
@media (max-width: 860px) {
  .hero.has-media:has(.hero-loop) { padding-bottom: calc(min(70vw, 420px) + 28px); }
  .hero.has-media:has(.hero-loop) .hero-media, .hero.has-media:has(.hero-loop)::before, .hero.has-media:has(.hero-loop)::after { height: min(70vw, 420px); }
}
/* The tag names the car (2026-11-15 polish, fix 6): SOLD, then the title, then the price, all from the feed, still a
   tag and not a card over the car (Dan 2026-11-13). On phones the title takes a line of its own under the flag and
   price, so it is not cut short. */
.hero-loop .hl-tag { flex-wrap: wrap; }
.hero-loop .hl-tag-title { display: block; align-content: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; margin-left: -10px; padding: 6px 14px 6px 22px; background: var(--text); color: #fff; font: 700 .95rem/1.15 var(--font); letter-spacing: .01em; white-space: nowrap; clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%); }
.hero-loop .hl-tag-title + .hl-tag-price { margin-left: 0; padding-left: 14px; }
.hero-loop .hl-tag:hover .hl-tag-title { background: var(--accent); }
@media (max-width: 640px) {
  .hero-loop .hl-tag { max-width: calc(100% - 64px); }
  .hero-loop .hl-tag-title { order: 3; flex: 1 0 100%; margin: 0; padding: 5px 12px; font-size: .82rem; clip-path: none; }
  .hero-loop .hl-tag-title + .hl-tag-price { margin-left: -10px; padding-left: 20px; }
}
/* Phones: a compact card, the flag, the title on one line and the price, so the photo stays the picture. */
@media (max-width: 640px) {
  .hero-loop .hl-card.sold-card, .hero-loop .hl-note { width: min(250px, calc(100% - 64px)); box-shadow: 0 10px 26px rgba(0, 0, 0, .25); }
  .hero-loop .hl-tag-price { font-size: 1.5rem; }
  .hero-loop .sold-card .sold-flag { padding: 4px 16px 4px 10px; font-size: .82rem; }
  .hero-loop .hl-card .sold-body { padding: 6px 12px 9px; gap: 0; }
  .hero-loop .hl-card .sold-title { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero-loop .hl-card .sold-row { margin-top: 2px; padding-top: 0; border-top: 0; }
  .hero-loop .hl-card .sold-price span { display: none; }
  .hero-loop .hl-card .sold-price b { font-size: 1.45rem; }
  .hero-loop .hl-note .sold-flag { margin-bottom: 6px; }
  .hero-loop .hl-note .sold-meta { font-size: .82rem; line-height: 1.3; }
}
@media (max-width: 860px) {
  .hero.has-media { padding-bottom: calc(min(62vw, 380px) + 28px); }
  .hero.has-media .hero-media, .hero.has-media::before, .hero.has-media::after { inset: auto 0 0 0; height: min(62vw, 380px); }
  .hero.has-media .hero-media { clip-path: polygon(0 calc(14% + 20px), 100% 20px, 100% 100%, 0 100%); }
  .hero.has-media::before { background: var(--accent); clip-path: polygon(0 14%, 100% 0, 100% 8px, 0 calc(14% + 8px)); }
  .hero.has-media::after { background: var(--text); clip-path: polygon(0 calc(14% + 13px), 100% 13px, 100% 15px, 0 calc(14% + 15px)); }
}

/* ------------------------------------------------------------ angled carbon bands with a red pinstripe on each edge */
.band-wrap { position: relative; }
.band-stripe { position: absolute; inset: 0; background: var(--accent); clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%); }
.band { position: relative; padding: calc(var(--slant) + 44px) 0 calc(var(--slant) + 48px); clip-path: polygon(0 calc(var(--slant) + 5px), 100% 5px, 100% calc(100% - var(--slant) - 5px), 0 calc(100% - 5px)); }
.cta-band { position: relative; padding: calc(var(--slant) + clamp(48px, 7vw, 80px)) 0; background: var(--accent); clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%); }
.cta-band::before { content: ""; position: absolute; inset: 0; clip-path: polygon(0 calc(var(--slant) + 5px), 100% 5px, 100% calc(100% - var(--slant) - 5px), 0 calc(100% - 5px)); }
.cta-band > * { position: relative; }
.cta-band .btn-primary { background: var(--accent); color: var(--accent-ink); }
.cta-band .btn-primary:hover { background: var(--accent-hi); opacity: 1; }
.cta-band .btn-ghost { border-color: #fff; }
.cta-band .btn-ghost:hover { background: #fff; color: var(--carbon); }
/* The side column stays where it is in the page; it does not follow the reader down as they scroll. */
.aside { position: static; }
.aside-card.accent { border: 0; border-left: 5px solid var(--accent); }
.aside-card.accent .btn-primary { background: var(--accent); color: var(--accent-ink); }
.aside-card.accent .btn-primary:hover { background: var(--accent-hi); opacity: 1; }
.aside-card.accent .btn-ghost:hover { background: #fff; color: var(--carbon); }

/* ------------------------------------------------------------ stats: timing board */
.board-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 22px; color: var(--carbon-muted); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.board-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; background: var(--accent); color: #fff; transform: skewX(-12deg); }
.board-chip i { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.board-asof { margin-left: auto; font-variant-numeric: tabular-nums; }
.board { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.05fr) minmax(0, 1.3fr); margin: 0; border-top: 1px solid rgba(255, 255, 255, .16); border-bottom: 1px solid rgba(255, 255, 255, .16); background: rgba(8, 9, 10, .55); }
.board-cell { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 22px clamp(16px, 2.4vw, 30px) 26px; }
.board-cell + .board-cell { border-left: 1px solid rgba(255, 255, 255, .16); }
.board-pos { grid-row: 1 / 3; align-self: start; min-width: 2.1em; padding: 4px 6px; background: #fff; color: var(--carbon); font: 800 1.05rem/1 var(--display); text-align: center; transform: skewX(-12deg); }
.board-cell dt { align-self: center; color: var(--carbon-muted); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.board-cell dd { grid-column: 2; margin: 0; color: #fff; font: 800 clamp(2.8rem, 5.3vw, 4.5rem)/.95 var(--display); font-variant-numeric: tabular-nums lining-nums; letter-spacing: .01em; white-space: nowrap; }
.board-cell dd small { margin-left: .08em; color: var(--carbon-muted); font-size: .5em; }
.board-sector { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3px; height: 4px; }
.board-sector i { background: rgba(255, 255, 255, .22); }
.board-sector i:first-child { background: var(--accent); transform-origin: left; }
.board-foot { margin: 14px 0 0; color: var(--carbon-muted); font-size: .85rem; }
.board-foot a { color: #fff; }
@media (max-width: 760px) {
  .board { grid-template-columns: 1fr; }
  .board-cell { grid-template-columns: auto 1fr auto; align-items: center; padding: 16px 16px 18px; }
  .board-cell + .board-cell { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
  .board-pos { grid-row: auto; }
  .board-cell dd { grid-column: auto; font-size: clamp(2.2rem, 10vw, 3rem); text-align: right; }
  .board-asof { margin-left: 0; }
}

/* ------------------------------------------------------------ sold-car card */
.sold-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: inherit; text-decoration: none; }
.sold-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); transform: scaleX(.18); transform-origin: left; }
.sold-card { -webkit-tap-highlight-color: transparent; }
/* Hover only where there is a pointer that hovers. On a phone a tap sets a sticky :hover, so the 350ms border ease to
   near-black and the photo's zoom started on the tap and were cut off by the page change: the "black box" around the
   picture and the jerk Dan saw on the live-auction card (2026-11-14). The tap highlight was a grey box on top. */
@media (hover: hover) { .sold-card:hover { border-color: var(--text); color: inherit; } }
@media (hover: none) { .sold-card:hover { border-color: var(--line); } }  /* the kit's own .sold-card:hover */
.sold-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.sold-media img { width: 100%; height: 100%; object-fit: cover; }
.sold-flag { position: absolute; left: 0; top: 14px; padding: 6px 22px 6px 14px; background: var(--accent); color: #fff; font: 800 1.05rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.sold-plate { display: grid; align-content: center; justify-items: start; gap: 2px; height: 100%; padding: 0 24px; }
.sold-plate-year { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .55); font: 800 clamp(4.4rem, 9vw, 6rem)/.85 var(--display); }
.sold-plate-make { color: #fff; font: 800 1.9rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.sold-plate-make::before { content: ""; display: inline-block; width: 28px; height: 8px; margin-right: 10px; background: var(--accent); transform: skewX(-24deg); }
.sold-body { gap: 8px; padding: 18px 20px 24px; }
.sold-body h2, .sold-body h3 { margin: 0; font-size: 1.6rem; line-height: 1.02; }
.sold-meta { margin: 0; color: var(--muted); font-size: .9rem; }
.sold-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.sold-price span { display: block; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.sold-price b { color: var(--text); font: 800 2.5rem/1 var(--display); font-variant-numeric: tabular-nums lining-nums; }
.sold-more { color: var(--accent); font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
@media (min-width: 900px) {
  .sold-card-big .sold-title { font-size: clamp(1.8rem, 2.6vw, 2.5rem); }
  .sold-card-big .sold-price b { font-size: clamp(2.6rem, 3.6vw, 3.4rem); }
}
.sold-row { flex-wrap: wrap; }
/* The price line sits at the foot of every card (#35): the card body grows and the line is pushed down, so cards in a
   row end level with no blank space under the shorter ones. The body's 8px gap keeps it off the text. */
.sold-card.is-live .sold-flag, .sold-card.is-coming-soon .sold-flag { background: var(--text); }

/* ------------------------------------------------------------ results pages: search bar, one page per car */
.results-bar { padding: 18px 18px 6px; border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius); background: var(--bg-2); }
.results-count { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.car-hero { position: relative; background: var(--bg); }
.car-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(var(--accent), var(--accent)) 0 0 / 100% 4px no-repeat, linear-gradient(var(--text), var(--text)) 0 100% / 100% 1px no-repeat; }
.car-media { border-radius: 0; clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); background: var(--carbon); }
.car-media .sold-plate-year { font-size: clamp(6rem, 14vw, 10rem); }
.car-media .sold-plate-make { font-size: clamp(2rem, 4vw, 3rem); }
.car-copy h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); line-height: .95; }
.car-fact dd { font-size: 1.05rem; }
/* A car page with two facts (a sold car's price and date; a coming-soon car's status and venue): the second takes the row. */
.car-facts .car-fact:nth-child(2):last-child { grid-column: 1 / -1; }
.car-fact-key dd { color: var(--accent); font: 800 clamp(3.2rem, 6.4vw, 5rem)/.9 var(--display); }
@media (max-width: 900px) { .car-media { clip-path: none; margin: 0 calc(-1 * var(--gutter)); } }
.video-car { color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }

/* ------------------------------------------------------------ car page: the photo opens the viewer, facts, story (polish fix 2) */
.car-media-open, .car-media-one { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.car-media-open:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.car-chips { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; }
.car-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; background: rgba(18, 19, 22, .82); color: #fff; font: 700 .8rem/1 var(--font); letter-spacing: .02em; text-decoration: none; transition: background-color var(--dur-fast); }
.car-chip:hover { background: rgba(18, 19, 22, .95); color: #fff; }
.car-chip:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.car-chip-video { background: var(--accent); }
.car-chip-video:hover { background: var(--accent-hi, var(--accent)); }
@media (prefers-reduced-motion: no-preference) { .vt-card-in .car-chips { animation: vt-card-rise 300ms var(--ease) 380ms both; } }
.car-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: clamp(20px, 3vw, 32px) 0 0; border: 1px solid var(--line); border-left: 5px solid var(--accent); background: var(--bg-2); }
.car-specs > div { padding: 12px 16px; border-right: 1px solid var(--line); }
.car-specs > div:last-child { border-right: 0; }
.car-specs dt { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.car-specs dd { margin: 4px 0 0; color: var(--text); font-weight: 700; }
.car-story .wrap { max-width: 760px; }
@media (max-width: 760px) {
  /* The bar's "Sell a car like this" replaces the hero's own on phones, so it is never under the bar (polish fix 2). */
  .car-btns > a[href="/contact-us#message"] { display: none; }
  .car-btns .btn { width: 100%; }
  .action-bar-car { grid-template-columns: 1fr 1fr; }
  .action-bar-car .btn { min-width: 0; padding: 0 10px; font-size: clamp(.74rem, 3.6vw, .9rem); letter-spacing: .03em; white-space: nowrap; }
}

/* ------------------------------------------------------------ forms: a border that reads on white, squared choices */
.field input, .field textarea, .field select { border-color: var(--field-line); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.opt span { border-color: var(--text); border-radius: var(--radius); color: var(--text); font-size: .88rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.opt input:checked + span { border-color: var(--text); background: var(--text); color: #fff; box-shadow: inset 0 -4px 0 var(--accent); }
.panel-accent { border-top-width: 5px; }
.filter, .chips li { border-radius: var(--radius); }
.filter[aria-pressed="true"] { border-color: var(--text); background: var(--text); box-shadow: inset 0 -4px 0 var(--accent); }

/* ------------------------------------------------------------ motion, only when the visitor has not asked for less */
/* The speeds and the easing are the theme's (kit 0.1.12 --dur-slow, --ease), so the cards keep the site's pace. The
   border eases with the red bar: before, it snapped while the bar slid 350ms, so the two did not read as one move. */
@media (prefers-reduced-motion: no-preference) {
  .sold-card { transition: border-color var(--dur-slow) var(--ease); }
  .sold-card::after { transition: transform var(--dur-slow) var(--ease); }
  .sold-media img { transition: transform .5s var(--ease); }
  @media (hover: hover) {
    .sold-card:hover::after { transform: scaleX(1); }
    .sold-card:hover .sold-media img { transform: scale(1.04); }
  }
  .board-sector i:first-child { animation: board-sector 1.1s cubic-bezier(.2, .7, .2, 1) both; }
  .board-cell:nth-child(2) .board-sector i:first-child { animation-delay: .12s; }
  .board-cell:nth-child(3) .board-sector i:first-child { animation-delay: .24s; }
  @keyframes board-sector { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  /* cardZoom (kit 0.1.14): as the car lands in the hero, the red stripe under it draws left to right, so the card's red
     bar carries on into the page's. Runs only during that arrival (html.vt-card-in). */
  .vt-card-in .car-hero::after { transform-origin: left; animation: am-stripe 420ms var(--ease) 300ms both; }
  @keyframes am-stripe { from { transform: scaleX(0); } }
  /* The results pager (kit 0.1.11) changed state with no transition at all. */
  .pager-num, .pager-step { transition: border-color var(--dur-fast), background-color var(--dur-fast), color var(--dur-fast); }
}

/* ------------------------------------------------------------ videos: thumbnails that open YouTube (no embedded player) */
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.video-card { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; }
.video-card:hover { color: inherit; }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 10px; border-radius: var(--radius); background: var(--carbon); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); transform: scaleX(.18); transform-origin: left; }
.video-play { position: absolute; left: 50%; top: 50%; width: 58px; height: 40px; margin: -20px 0 0 -29px; background: var(--accent); transform: skewX(-12deg); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.video-play::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -9px 0 0 -6px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; transform: skewX(12deg); }
.video-time { position: absolute; right: 8px; bottom: 10px; padding: 2px 7px; border-radius: 2px; background: rgba(10, 11, 13, .82); color: #fff; font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.video-title { color: var(--text); font: 800 1.3rem/1.05 var(--display); text-transform: uppercase; }
.video-kind { color: var(--muted); font-size: .9rem; }
.video-out { margin-top: 4px; color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.carbon .video-title { color: #fff; }
.carbon .video-kind { color: var(--carbon-muted); }
.carbon .video-out { color: var(--accent-on-carbon); }
@media (max-width: 980px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .video-grid { grid-template-columns: 1fr; gap: 16px; }
  .video-card { display: grid; grid-template-columns: 44% 1fr; column-gap: 14px; align-content: center; }
  .video-thumb { grid-row: 1 / span 3; margin: 0; align-self: center; }
  .video-play { width: 40px; height: 28px; margin: -14px 0 0 -20px; }
  .video-play::after { margin: -6px 0 0 -4px; border-width: 6px 0 6px 10px; }
  .video-title { font-size: 1.15rem; align-self: end; }
}
@media (prefers-reduced-motion: no-preference) {
  .video-thumb::after { transition: transform var(--dur-slow) var(--ease); }
  .video-card:hover .video-thumb::after { transform: scaleX(1); }
  .video-thumb img { transition: transform .5s var(--ease); }
  .video-card:hover .video-thumb img { transform: scale(1.04); }
}

/* ------------------------------------------------------------ breadcrumbs (Dan 2026-11-13: "Home / FAQ" takes room;
   the logo already goes home). Hidden from sight and screen readers; the BreadcrumbList JSON-LD stays for search.
   A deeper page (a car result, the thanks page) keeps only its parent, as a back link. Dan 2026-11-14 ("no back
   buttons"): it reads "← Back to Results", bold and dark, not a small grey link. */
.crumbs:not(:has(> li:nth-child(3))) { display: none; }
.crumbs > li:first-child, .crumbs > li[aria-current] { display: none; }
.crumbs > li + li::before { content: none; }
.crumbs > li:nth-child(2) > a { color: var(--text); font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap; }
.crumbs > li:nth-child(2) > a::before { content: "\2190\00a0 Back to\00a0"; }
.crumbs > li:nth-child(2) > a:hover { color: var(--accent); text-decoration: underline; }
.has-media .crumbs > li:nth-child(2) > a { color: var(--hero-ink); }

/* ------------------------------------------------------------ page-top label (Dan 2026-11-13: the "FAQ" label over
   the heading takes room and repeats the page name). Hidden on every page hero; a car result's "Sold on Bring a
   Trailer" (car hero) and the labels over sections further down stay. */
.page-hero > .wrap > .eyebrow { display: none; }

/* ------------------------------------------------------------ car result: one top line, "← Back to Results | Sold on
   Bring a Trailer" (Dan 2026-11-13). The kit puts the label over the heading; it is lifted onto the back link's line
   here so the heading moves up. The back link always reads "Back to Results", so its box has a fixed width the label
   starts after. Up to 480px the line is too short for both, so the label stays over the heading. */
.car-hero > .wrap { position: relative; }
.car-hero .crumbs { height: 1.5rem; align-items: center; margin-bottom: clamp(14px, 2vw, 22px); line-height: 1.5rem; }
@media (min-width: 481px) {
  .car-hero .crumbs > li:nth-child(2) { width: 10rem; }
  .car-hero .car-copy > .eyebrow { position: absolute; top: 0; left: calc(var(--gutter) + 10rem); height: 1.5rem; margin: 0; gap: 12px; color: var(--muted); font-size: .74rem; }
  .car-hero .car-copy > .eyebrow::before { content: ""; width: 1px; height: 14px; background: var(--line); transform: none; }
}

/* ------------------------------------------------------------ tighter vertical rhythm (Dan 2026-11-13: "too much
   vertical white space"). Section padding 96px -> 64px at most, page tops and the car hero closer to the header, the
   car heading a step smaller so a long name takes two lines, not three, on a laptop. */
.section { padding: clamp(40px, 5.5vw, 64px) 0; }
.section-head { margin-bottom: 28px; }
.section-foot { margin-top: 28px; }
.cta-band { padding: calc(var(--slant) + clamp(36px, 5vw, 56px)) 0; }
.page-hero { padding: clamp(28px, 4vw, 48px) 0 clamp(28px, 4vw, 44px); }
/* Home hero top (Dan 2026-11-13: too much white space above the "Bring a Trailer Local Partner" label). The kit's
   128px at most becomes 60px, close to the page tops above; the bottom keeps the kit's padding. */
.hero { padding-top: clamp(32px, 4.5vw, 60px); }
/* Home hero on a phone (Dan 2026-11-13: "too busy"). The call bar at the foot of the phone screen already offers
   Call and Contact Us. Dan 2026-11-14: the hero's buttons are "Sell your car" and "Get it detailed" (home.json
   hero.buttons, kit 0.1.10), so both show on phones too. The three checks were hidden on phones; since the 2026-11-15
   polish (fix 6) they show as one short wrapped row under the buttons. */
@media (max-width: 600px) {
  .hero .hero-points { gap: 6px 14px; margin-top: 18px; font-size: .9rem; }
  .hero .hero-points svg { width: 15px; height: 15px; }
}
/* Home hero label. Dan 2026-11-13 moved "Bring a Trailer Local Partner" to the foot of the hero text; the 2026-11-15
   polish review (fix 6, approved by Dan) puts it back above the headline at every width, as the eyebrow every other
   page has, since at the foot it sat below the fold on a laptop. */
.hero .hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero .hero-copy > * { flex: none; max-width: 100%; }
.hero .hero-copy > h1 { margin-top: 0; }
.hero .hero-copy > .lead { margin-bottom: 0; }
@media (max-width: 360px) { .hero .hero-copy > .eyebrow { letter-spacing: .07em; } }
.hero .hero-copy > .eyebrow { margin: 0 0 18px; }
/* Home hero on a phone, photo first (2026-11-15 polish, fix 6; before it, Dan 2026-11-14: "the mobile home page should
   see the images first instead of the action buttons", which put the photo after the heading). The photo loop with
   its sold tag opens the page, then the partner label, the heading and lead, "Sell your car" and "Get it detailed",
   and the checks. The call bar at the foot of the screen keeps Call and Contact Us in reach the whole time. The kit
   writes the photo before the text, so the hero becomes a one-column grid, the text box steps aside
   (display: contents) and each piece takes its row. The red and black stripes are the hero's ::before and ::after;
   placed in the photo's row, they follow the photo's angled top edge as before. Up to 700px the photo is 4:3, so the
   photo and the heading are both on the first screen. Laptops keep the side-by-side layout. */
@media (max-width: 860px) {
  .hero.has-media:has(.hero-loop) { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; padding-top: 0; padding-bottom: 28px; }
  .hero.has-media:has(.hero-loop) > .hero-copy { display: contents; }
  .hero.has-media:has(.hero-loop) > .hero-copy > * { margin-inline: var(--gutter); max-width: calc(100% - 2 * var(--gutter)); }
  .hero.has-media:has(.hero-loop) > .hero-media { grid-row: 1; grid-column: 1; justify-self: stretch; position: relative; inset: auto; margin-top: 0; }
  .hero.has-media:has(.hero-loop)::before, .hero.has-media:has(.hero-loop)::after { grid-row: 1; grid-column: 1; inset: 0 0 auto 0; }
  .hero.has-media:has(.hero-loop) > .hero-copy > .eyebrow { grid-row: 2; margin-top: 20px; margin-bottom: 12px; }
  .hero.has-media:has(.hero-loop) > .hero-copy > h1 { grid-row: 3; }
  .hero.has-media:has(.hero-loop) > .hero-copy > .lead { grid-row: 4; }
  .hero.has-media:has(.hero-loop) > .hero-copy > .btn-row { grid-row: 5; margin-top: 22px; }
  .hero.has-media:has(.hero-loop) > .hero-copy > .hero-points { grid-row: 6; }
}
@media (max-width: 700px) {
  .hero.has-media:has(.hero-loop) .hero-media, .hero.has-media:has(.hero-loop)::before, .hero.has-media:has(.hero-loop)::after { height: 75vw; }
}
.car-hero { padding: clamp(16px, 2.2vw, 26px) 0 clamp(28px, 3.5vw, 44px); }
.car-copy h1 { margin-bottom: 14px; font-size: clamp(2.3rem, 4vw, 3.5rem); }

/* Home results swipe row (Dan 2026-11-14: on a phone, scrolling down the page "catches" on the row and it bounces up
   and down inside its frame). The kit's row has overflow-x: auto, which makes overflow-y auto too, and the cards were a
   few pixels taller than the row (the scroll-reveal's 18px lift adds more), so iOS gave the row its own vertical scroll.
   Clip it vertically and let the browser treat the row as sideways-only, so an up/down swipe on it scrolls the page.
   The reveal fades the cards in without the lift here, so the row never changes height. */
@media (max-width: 899px) {
  .sold-grid-home { overflow-y: hidden; touch-action: pan-x pan-y; overscroll-behavior-y: auto; }
  .js .sold-grid-home > .reveal.pending, .js .sold-grid-home > .reveal.in { transform: none; }
}
/* On a touch screen the row also stops dead at its first and last card instead of rubber-banding (ScoreDawg's Mobile
   PWA Scroll Standard, .mobile-shell-scroll-x). */
@media (max-width: 899px) and (pointer: coarse) { .sold-grid-home { overscroll-behavior-x: none; } }

/* ------------------------------------------------------------ check lists on prose pages (2026-11-14): the kit's
   `.prose ul` disc showed beside each red check (Sell Your Car, Detailing, Ceramic coating). One mark per line. */
.prose ul.checks { padding-left: 0; list-style: none; }

/* ------------------------------------------------------------ results pager (kit 0.1.11): slanted like the buttons */
.pager-num, .pager-step { transform: skewX(-9deg); border-radius: 0; font-family: var(--font-display); }

/* ------------------------------------------------------------ home services on phones: a wide, short photo
   (Dan 2026-11-14, the home page ran 11 screens on a phone) */
@media (max-width: 640px) { .home .card-media img { aspect-ratio: 16 / 9; } }

/* ------------------------------------------------------------ results page (Nov 15 polish, fix 3)
   Status tags sit on each card's top edge, outside the photo, so a tag never covers anything in a picture (the BMW's
   own "Coming soon" banner was hidden under ours). The grid keeps room above the first row for the tag, which also
   keeps it inside the phones' home swipe row (that row clips vertically). The photo keeps its own overflow, so the
   hover zoom stays inside it. The hero loop's tag and the car page's flag are styled elsewhere and do not change. */
.sold-grid { padding-top: 12px; }
.sold-grid > .sold-card { overflow: visible; padding-top: 15px; }
.sold-grid > .sold-card > .sold-flag { top: -12px; left: 12px; z-index: 2; padding: 5px 18px 5px 10px; font-size: .92rem; }

/* The page's top band: dark like the home page's bands. */
.page-hero-dark, .page-hero-dark h1 { color: var(--carbon-ink); }
.page-hero-dark .lead { max-width: 46rem; color: var(--carbon-muted); }
.page-hero-dark h1 em { color: var(--accent-on-carbon); }

/* "On the block now": live and coming-soon cars, two to a row in bigger 16:9 cards. One car takes the row by itself
   (photo beside its words from 761px), none hides the section (build.py), phones stack them. */
.sold-grid-live { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sold-grid-live:has(> .sold-card:only-child) { grid-template-columns: minmax(0, 1fr); }
.sold-grid-live .sold-media { aspect-ratio: 16 / 9; }
@media (min-width: 761px) {
  .sold-grid-live > .sold-card:only-child { flex-direction: row; }
  .sold-grid-live > .sold-card:only-child > .sold-media { flex: 0 0 60%; }
  .sold-grid-live > .sold-card:only-child > .sold-body { flex: 1; }
}
@media (max-width: 640px) { .sold-grid-live { grid-template-columns: minmax(0, 1fr); } }

/* The search and sort bar is part of the page body at every width and scrolls away with it (Dan 2026-11-18: "i don't
   want the desktop to pin this"; 2026-11-27: "Not on this site. Unpin it mobile and desktop"). A page change in the
   pager scrolls the section's heading to just under the header (site.js --header-real). */
[data-results-top] { scroll-margin-top: calc(var(--header-real, var(--header-h)) + 20px); }
@media (max-width: 640px) {
  /* One short row on a phone, so the bar takes little of the screen: the box's placeholder and the select's
     value say what each is, the labels stay for screen readers, and the count is read out but not shown. */
  #all-results .results-bar { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 8px; padding: 10px 10px 10px 12px; }
  #all-results .results-bar .field:first-child { grid-column: auto; }
  #all-results .results-bar label, #all-results .results-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #all-results .results-bar .field { position: relative; }
}

/* SHOP-CREDIT.3: Adam's partner mark. Grey dog in a racing-red backwards cap; "Book" carbon, "Dawg" racing red. */
:root { --mark-book: #111315; --mark-dawg: #d90f1e; }

/* ------------------------------------------------------------ phone footer (Nov 15 polish, fix 9). The compact phone
   footer (footerCompact, kit 0.1.11) had dropped the Company links, the phone number and Contact Us, leaving them to
   the menu and the action bar. The Nov 15 review put them back: on phones the Company links run on as one wrapped line
   like the towns, and the "Get in touch" column shows the number (never split across lines) and Contact Us above the
   address, hours and directions. The towns stay one line and a town page still leaves them out. */
.footer-phone { white-space: nowrap; }
@media (max-width: 640px) {
  .footer-compact .footer-company { display: block; }
  .footer-compact .footer-company ul { display: flex; flex-wrap: wrap; gap: 4px 14px; }
  .footer-compact .footer-contact.has-addr > .footer-phone { display: inline-block !important; }
  .footer-compact .footer-contact.has-addr > .btn { display: inline-flex !important; }
}

/* ------------------------------------------------------------ step cards and questions in a prose page (Sell Your Car)
   "How it works" as numbered cards and "Common questions" as native <details> (2026-11-15 polish, fix 7). The column
   beside the booking card is narrower than the window, so the cards follow the column's width, not the window's:
   four across where it holds them, two by two on tablets, stacked on phones. */
.prose { container-type: inline-size; }
.prose ol.step-cards { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 1.1em 0 0; padding: 0; list-style: none; }
@container (min-width: 420px) { .prose ol.step-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 680px) { .prose ol.step-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step-card { margin: 0; padding: 16px 16px 18px; border: 1px solid var(--line); border-top: 4px solid var(--accent); background: var(--surface); }
.step-n { display: block; color: var(--accent); font: italic var(--display-weight) 2.1rem/1 var(--display); }
.prose .step-card h3 { margin: 8px 0 6px; font-size: 1.3rem; }
.step-card p { margin: 0; font-size: .95rem; }
.prose .faq { margin-top: 1.1em; }
.prose .faq-a p { margin: 0; }

/* ------------------------------------------------------------ reviews strip (2026-11-15 polish, fix 8)
   Home (under the results rows), Sell Your Car and Detailing. Shown only once data/reviews.json has an approved quote. */
.reviews-strip .reviews-side { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.reviews-strip .pin-stars { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
/* The quote cards (2026-11-28): a red display quote mark, the customer's words, then the name in display type with
   the stars beside it. With three quotes the first is the lead: wider, on carbon, in larger type, its corner cut on
   the site's slant. One column on a phone, the lead first. */
.reviews-strip .reviews { gap: 22px; align-items: stretch; }
.reviews-strip .review { position: relative; gap: 18px; padding: 30px 28px 24px; border-radius: 0; border-top: 4px solid var(--accent); }
.reviews-strip .review::before { content: "\201C"; display: block; height: .42em; color: var(--accent); font: italic var(--display-weight) 4.6rem/1 var(--display); }
.reviews-strip .review blockquote { font-size: 1.04rem; line-height: 1.6; }
.reviews-strip .review figcaption { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.reviews-strip .review figcaption b { font: italic var(--display-weight) 1.45rem/1.1 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.reviews-strip .review figcaption small { display: block; margin-top: 3px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.reviews-strip .review .stars svg { width: 16px; height: 16px; }
@media (min-width: 900px) {
  .reviews-strip .reviews-3 { grid-template-columns: 1.35fr 1fr 1fr; }
  .reviews-strip .reviews-3 .review:first-child { padding: 36px 36px 28px; }
  .reviews-strip .reviews-3 .review:first-child blockquote { font-size: 1.2rem; line-height: 1.55; }
}
.reviews-strip .reviews-3 .review:first-child { border-color: var(--carbon); border-top-color: var(--accent); color: var(--carbon-ink); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), calc(100% - var(--slant)) 100%, 0 100%); }
.reviews-strip .reviews-3 .review:first-child::before { color: var(--accent-on-carbon); }
.reviews-strip .reviews-3 .review:first-child figcaption { border-top-color: rgba(255, 255, 255, .22); padding-right: var(--slant); }
.reviews-strip .reviews-3 .review:first-child figcaption b { color: var(--carbon-ink); }
.reviews-strip .reviews-3 .review:first-child figcaption small { color: var(--carbon-muted); }
@media (max-width: 640px) { .reviews-strip .reviews { grid-template-columns: 1fr; } .reviews-strip .review:nth-child(3) { display: none; } }  /* two on a phone */

/* ------------------------------------------------------------ process page: Auto detailing (2026-11-17). What it
   shows is in docs/build-reference.md § Process page. Up to 860px everything is one column, the photo first. */
.dl-hero, .dl-result { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.dl-hero-pic, .dl-result-pic { position: relative; min-height: 460px; }
.dl-hero-pic img, .dl-result-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dl-hero-pic { grid-column: 2; grid-row: 1; }
.dl-hero-txt { grid-column: 1; grid-row: 1; display: grid; align-content: center; justify-items: start; gap: 18px;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 48px) clamp(40px, 6vw, 72px) max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter))); }
.dl-hero-txt > * { margin: 0; }
.dl-hero h1, .dl-result h2, .dl-result .eyebrow { color: var(--carbon-ink); }
.dl-hero .lead, .dl-result p { max-width: 46ch; margin: 0; color: var(--carbon-muted); }
.dl-result .eyebrow::before { background: linear-gradient(var(--accent-on-carbon), var(--accent-on-carbon)) 0 0 / 100% 4px no-repeat, linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; }
.dl-facts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.dl-facts li { padding: 7px 10px; border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--radius); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.dl-hero .btn-row, .dl-result .btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 0; }
.dl-hero .btn-ghost { border-color: #fff; color: #fff; }
.dl-hero .btn-ghost:hover { background: #fff; color: var(--carbon); }
#process { scroll-margin-top: calc(var(--header-real, var(--header-h)) + 7px); }
/* Every in-page target lands under the sticky header, not behind it: the skip link's #main on every page, and a car
   page's #photos and #videos (the "4 videos" chip), and the contact page's #message, where a Contact Us link lands
   with JavaScript off. */
#main, #photos, #videos, #message { scroll-margin-top: calc(var(--header-real, var(--header-h)) + 7px); }

.dl-crew-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 44px); align-items: center; }
.dl-crew-pic img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.dl-crew-txt h2 { margin: 12px 0 14px; }
.dl-crew-txt .lead { max-width: 58ch; margin: 0; }
.dl-products { display: grid; gap: 8px; margin-top: 24px; padding: 20px 22px; border-left: 4px solid var(--accent); border-radius: var(--radius); background: var(--bg-2); }
.dl-products p { margin: 0; }
.dl-products strong { color: var(--text); }

.dl-steps, .dl-cards { margin: 0; padding: 0; list-style: none; }
.dl-steps { display: grid; gap: clamp(32px, 5vw, 48px); }
.dl-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 36px); align-items: center; }
.dl-step:nth-child(even) .dl-media { order: 2; }
.dl-media { display: grid; gap: 10px; }
.dl-media.dl-two { grid-template-columns: 1fr 1fr; }
.dl-pic img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.dl-two .dl-pic img { aspect-ratio: 3 / 4; }
.dl-num { display: block; color: var(--accent); font: var(--display-weight) 4rem/.8 var(--display); }
.dl-words h3, .dl-card h3 { margin: 10px 0; font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.dl-words p, .dl-card p { max-width: 48ch; margin: 0; }
.dl-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(32px, 5vw, 48px); }
.dl-card { padding: 22px; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); background: var(--surface); }
.dl-card .dl-num { font-size: 2.75rem; }

.dl-result-txt { display: grid; align-content: center; justify-items: start; gap: 16px;
  padding: clamp(36px, 5vw, 56px) max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter))) clamp(36px, 5vw, 56px) clamp(24px, 4vw, 48px); }
.dl-result-txt > * { margin: 0; }

/* Without photos (Ceramic coating, 2026-11-17): the hero and result are one column of words, the second band is
   "intro", and the steps are text cards only, five across on a wide screen. */
.dl-plain { grid-template-columns: minmax(0, 1fr); }
.dl-plain .dl-hero-txt, .dl-plain .dl-result-txt { grid-column: 1; padding-inline: max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter))); }
.dl-intro h2 { margin: 12px 0 14px; }
.dl-intro .lead { max-width: 62ch; margin: 0; }
.dl-cards-only { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
@media (min-width: 1200px) {
  .dl-cards-only { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  .dl-cards-only .dl-card { padding: 20px 16px; }
  .dl-cards-only .dl-card h3 { font-size: 1.3rem; }  /* "Decontamination" fits a fifth of the row */
}
.dl-card h3 { overflow-wrap: anywhere; }  /* the wider fallback font, until the display font arrives, wraps and does not spill */

@media (max-width: 860px) {
  .dl-hero, .dl-result, .dl-crew-in, .dl-step, .dl-cards { grid-template-columns: minmax(0, 1fr); }
  .dl-hero-pic, .dl-hero-txt { grid-column: 1; grid-row: auto; }
  .dl-hero-pic, .dl-result-pic { min-height: 0; aspect-ratio: 4 / 3; }
  .dl-result-pic { aspect-ratio: 4 / 5; }
  .dl-hero-txt, .dl-result-txt { padding: 28px var(--gutter) 34px; }
  .dl-facts { display: none; }  /* the booking card lists them; without them the quote button is in the first view */
  .dl-crew-pic img { aspect-ratio: 4 / 3; }
  .dl-step:nth-child(even) .dl-media { order: 0; }
}

/* ------------------------------------------------------------ Contact Us dialog (Dan 2026-11-27): no intro line; the
   phone number sits in the title bar, between the title and the close button. Below 400px only its icon shows (the
   link keeps its "Call ..." name). */
.cm-head .cm-phone { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--text); font-weight: 650; text-decoration: none; white-space: nowrap; text-underline-offset: 3px; }
.cm-head .cm-phone:hover { color: var(--accent); text-decoration: underline; }
.cm-head .cm-phone svg { width: 18px; height: 18px; color: var(--accent); }
.cm-head .cm-title { flex: 0 1 auto; min-width: 0; }
@media (max-width: 399px) {
  .cm-head .cm-phone { justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-2); }
  .cm-head .cm-phone span { display: none; }
}

/* ------------------------------------------------------------ About Us: the three companies' cards (a logo over the
   words), the four prep cards with the checks under them, and Adam's quote. */
.brand-card .card-body > img { width: 96px; height: 96px; margin-bottom: 8px; object-fit: contain; }
.about-prep { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.about-prep + .checks { margin: 28px 0 0; padding: 0; list-style: none; }
.about-quote { margin: 20px 0 44px; border-left: 4px solid var(--accent); }
.about-quote blockquote { font-size: 1.15rem; line-height: 1.6; }
