/* Winnipeg AutoMatch theme layer, loaded after styles.css.
   Palette: prairie night navy, the logo's blue, Golden Boy gold (the statue on the Manitoba Legislature),
   a pale prairie sky for page backgrounds and aspen green for trust signals.
   Motion lives under html.fx, which the head script only sets when the visitor allows motion. */

:root {
  --navy: #0B1F44;
  --navy-2: #12305F;
  --navy-3: #1B3B70;
  --ink: #142139;
  --ink-2: #4A5874;
  --muted: #9AA7BD;
  --line: #E1E8F3;
  --line-2: #C9D4E5;
  --bg: #F2F6FC;
  --sky: #E6EEFB;
  --blue: #1459B8;
  --blue-dark: #0E4592;
  --blue-bright: #2F6FE4;
  --blue-soft: #8FB0DD;
  --gold: #F2B33D;
  --gold-2: #FFD27A;
  --gold-ink: #8A5A00;
  --green: #1E8F5E;
  --green-soft: #E3F4EC;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow-sm: 0 1px 2px rgba(11, 31, 68, .06), 0 2px 8px rgba(11, 31, 68, .05);
  --shadow-lg: 0 2px 4px rgba(11, 31, 68, .06), 0 18px 40px -12px rgba(11, 31, 68, .28);
  --grad-blue: linear-gradient(135deg, #2F6FE4 0%, #1459B8 55%, #0E4592 100%);
  --grad-gold: linear-gradient(135deg, #FFD27A 0%, #F2B33D 55%, #E39A1C 100%);
  --grad-night: linear-gradient(160deg, #12305F 0%, #0B1F44 60%, #081733 100%);
}

body { background: var(--bg); }
::selection { background: var(--gold-2); color: var(--navy); }
:focus-visible { outline: 3px solid rgba(47, 111, 228, .55); outline-offset: 2px; }
a { transition: color .2s var(--ease); }

/* Cross-page fade in browsers that support view transitions */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .22s ease both fx-fade-out; }
::view-transition-new(root) { animation: .32s var(--ease) both fx-fade-in; }

/* Buttons */
.btn {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 10px;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad-blue); box-shadow: 0 4px 14px -4px rgba(20, 89, 184, .55); }
.btn-primary:hover { background: var(--grad-blue); translate: 0 -1px; box-shadow: 0 10px 24px -8px rgba(20, 89, 184, .7); }
.btn-primary::after, .btn-gold::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-outline { border-color: var(--blue); }
.btn-outline:hover { background: var(--sky); border-color: var(--blue-bright); }
.btn-ghost { border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); background: #FAFCFF; }
.btn-ghost.is-saved { color: var(--gold-ink); border-color: var(--gold); background: #FFF7E6; }

.select, .input, .textarea { border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
.select:hover, .input:hover, .textarea:hover { border-color: var(--blue-soft); }
.select:focus, .input:focus, .textarea:focus { outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 4px rgba(47, 111, 228, .16); }
.range, .check input { accent-color: var(--blue-bright); }

.chip, .term-btn { transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.chip:hover, .term-btn:hover { border-color: var(--blue); color: var(--blue); }
.chip.active, .term-btn.active {
  background: var(--grad-blue); color: #fff; border-color: transparent; box-shadow: 0 4px 12px -4px rgba(20, 89, 184, .6);
}
.term-btn { border-radius: 999px; }

.card { border-radius: var(--radius); border-color: var(--line); box-shadow: var(--shadow-sm); }
.tag { background: var(--green-soft); color: var(--green); border-radius: 999px; padding: 3px 10px; }
.tags-lg .tag { background: var(--sky); color: var(--blue-dark); }
.ph > img { transition: transform .6s var(--ease), opacity .3s; }

/* Header: frosted glass that firms up once the page scrolls */
.site-header {
  background: rgba(255, 255, 255, .82); border-bottom-color: transparent;
  -webkit-backdrop-filter: saturate(170%) blur(14px); backdrop-filter: saturate(170%) blur(14px);
  transition: box-shadow .3s var(--ease), background .3s, border-color .3s;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .92); border-bottom-color: var(--line); box-shadow: 0 8px 24px -16px rgba(11, 31, 68, .35); }
.main-nav a { position: relative; padding: 6px 0; }
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--grad-gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--blue); }
#saved-link { display: inline-block; transition: color .2s; }
#saved-link:hover { color: var(--blue); text-decoration: none; }
.menu-toggle { border-radius: 10px; transition: border-color .2s, background .2s; }
.menu-toggle:hover { border-color: var(--blue); }
.menu-toggle span { transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { background: transparent; }

/* Hero: a prairie evening over the Esplanade Riel, deep blue sky fading into a gold horizon */
.hero { background: var(--navy); isolation: isolate; }
.hero-bg { transform-origin: 60% 45%; }
.hero-bg::after {
  background:
    radial-gradient(120% 70% at 0% 100%, rgba(242, 179, 61, .38) 0%, rgba(242, 179, 61, 0) 55%),
    linear-gradient(90deg, rgba(11, 31, 68, .94) 0%, rgba(18, 48, 95, .72) 45%, rgba(20, 89, 184, .18) 100%);
}
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 1;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-2) 35%, var(--blue-bright) 100%);
}
.hero-inner { padding-top: 88px; padding-bottom: 104px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.02; letter-spacing: -.035em; max-width: 12ch; }
.hero p { font-size: 19px; color: #D9E3F5; max-width: 46ch; }
.hero-kicker { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2; color: var(--gold-2); }
.search-box {
  border-radius: 18px; padding: 22px; background: rgba(255, 255, 255, .97);
  box-shadow: 0 2px 6px rgba(8, 23, 51, .2), 0 30px 60px -20px rgba(8, 23, 51, .6);
}
.tab { border-radius: 8px 8px 0 0; transition: color .2s; }
.tab:hover { color: var(--blue); }
.tab.active { border-bottom-color: var(--gold); color: var(--navy); }
.hero .search-grid .btn-primary {
  background: var(--grad-gold); color: var(--navy); box-shadow: 0 6px 18px -6px rgba(227, 154, 28, .8);
}
.hero .search-grid .btn-primary:hover { box-shadow: 0 12px 26px -8px rgba(227, 154, 28, .9); color: var(--navy); }
.hero .search-grid .btn-primary::after { background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); }

/* Sections */
.band { border-bottom: 0; background: #fff; }
.band-top { border-top: 0; background: #fff; }
.h2 { font-size: 30px; letter-spacing: -.025em; }
.h2-sm { font-size: 23px; letter-spacing: -.02em; }
.section-head a { display: inline-flex; align-items: center; gap: 6px; }
.section-head a::after { content: ''; width: 7px; height: 7px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform .25s var(--ease); }
.section-head a:hover { text-decoration: none; }
.section-head a:hover::after { transform: translateX(4px) rotate(45deg); }

.body-tile {
  border-radius: var(--radius); border-color: var(--line); background: #fff;
  transition: border-color .25s, box-shadow .3s var(--ease), translate .3s var(--ease);
}
.body-tile .ph { border-radius: 10px; }
.body-tile:hover { border-color: var(--blue-soft); box-shadow: var(--shadow-lg); translate: 0 -4px; }
.body-tile:hover img, .vcard:hover .ph > img, .rcard:hover .rcard-photo > img, .dcard:hover .dcard-photos img { transform: scale(1.06); }
.tile-row span {
  min-width: 26px; padding: 1px 8px; border-radius: 999px; background: var(--sky); color: var(--blue-dark);
  font-weight: 700; text-align: center; transition: background .25s, color .25s;
}
.body-tile:hover .tile-row span { background: var(--blue); color: #fff; }

.vcard { border-radius: var(--radius); border-color: var(--line); box-shadow: var(--shadow-sm); transition: box-shadow .3s var(--ease), translate .3s var(--ease), border-color .3s; }
.vcard:hover { box-shadow: var(--shadow-lg); translate: 0 -6px; border-color: transparent; }
.vcard .ph::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 40%; pointer-events: none;
  background: linear-gradient(0deg, rgba(11, 31, 68, .28), transparent); opacity: 0; transition: opacity .3s;
}
.vcard:hover .ph::after { opacity: 1; }
.vcard-price { color: var(--navy); }
.vcard:hover .vcard-title { color: var(--blue); }
.vcard-title { transition: color .2s; }
.save-pill {
  border-radius: 999px; padding: 6px 12px; z-index: 1; background: rgba(255, 255, 255, .94);
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.save-pill:hover { transform: scale(1.06); }
.save-pill.is-saved { background: var(--grad-gold); color: var(--navy); }

.area-grid { border-radius: var(--radius); box-shadow: var(--shadow-sm); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.area-tile { position: relative; transition: background .25s; }
.area-tile::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad-gold);
  transform: scaleY(0); transition: transform .3s var(--ease);
}
.area-tile:hover { background: var(--sky); }
.area-tile:hover::before { transform: scaleY(1); }
.area-tile .count { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }

/* The trust section becomes a full-width night band */
.section:has(> .features) {
  color: #fff;
  border-image: var(--grad-night) fill 0 / / 0 100vmax;
  padding-top: 56px; padding-bottom: 60px;
}
.section:has(> .features) .h2 { color: #fff; }
.feature {
  padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  transition: background .3s, border-color .3s, translate .3s var(--ease);
}
.feature:hover { background: rgba(255, 255, 255, .09); border-color: rgba(242, 179, 61, .5); translate: 0 -3px; }
.feature .eyebrow, .eyebrow { text-transform: none; letter-spacing: 0; font-size: 14px; }
.feature .eyebrow { color: var(--gold); display: flex; align-items: center; gap: 8px; }
.feature .eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(242, 179, 61, .2); }
.feature strong { font-size: 20px; color: #fff; }
.feature p { color: #C3D0E6; }
.features { gap: 20px; }
/* Four cards: 4 across on wide screens, 2 x 2 in between, so none sits alone in a row */
.features:has(> .feature:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1100px) { .features:has(> .feature:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features:has(> .feature:nth-child(4):last-child) { grid-template-columns: 1fr; } }

.link-cloud a { transition: background .2s, color .2s, border-color .2s, translate .2s var(--ease); }
.link-cloud a:hover { background: var(--grad-blue); border-color: transparent; color: #fff; translate: 0 -2px; }
.link-cloud a:hover .muted { color: #D9E3F5; }

/* Results */
.filters { border-radius: var(--radius); }
.results-head h1 { font-size: 28px; letter-spacing: -.025em; }
.results-count { color: var(--blue); }
.rcard { transition: box-shadow .3s var(--ease), translate .3s var(--ease); }
.rcard:hover { box-shadow: var(--shadow-lg); translate: 0 -3px; }
.rcard-photo { overflow: hidden; }
.rcard-title { transition: color .2s; }
.rcard-price .price, .side-price { color: var(--navy); }
.photo-count, .gallery-count { background: rgba(11, 31, 68, .78); border-radius: 999px; padding: 4px 10px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* Detail */
.gallery-main { overflow: hidden; }
.gallery-nav { transition: transform .2s var(--ease), background .2s, box-shadow .2s; }
.gallery-nav:hover { transform: translateY(-50%) scale(1.1); background: #fff; box-shadow: 0 6px 16px rgba(11, 31, 68, .25); }
.thumb { border-radius: 8px; transition: transform .2s var(--ease); }
.thumb:hover { transform: translateY(-2px); }
.thumb::after { border-radius: 8px; transition: box-shadow .2s; }
.thumb.active::after { box-shadow: inset 0 0 0 3px var(--gold); }
.thumb img { transition: opacity .2s; }
.thumb:hover img { opacity: 1; }
.side-price {
  background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.spec { border-top-color: var(--line); transition: border-color .25s; }
.spec:hover { border-top-color: var(--gold); }
.rating-bar { background: linear-gradient(90deg, var(--green) 0 33%, var(--gold) 33% 66%, var(--line-2) 66% 100%); }
.calc-result { background: var(--grad-night); color: #fff; }
.calc-result span { color: #C3D0E6; }
.calc-result strong { color: var(--gold-2); display: inline-block; transform-origin: left center; }
.map-link { transition: border-color .2s, box-shadow .3s var(--ease), translate .3s var(--ease); }
.map-link:hover { box-shadow: var(--shadow-lg); translate: 0 -2px; }
.sent { background: var(--green-soft); border-left: 4px solid var(--green); }
.sent strong { color: var(--green); }
.contact-bar { border-top-color: var(--line); }

/* Dealers */
.dealers-hero { background: var(--grad-night); position: relative; overflow: hidden; isolation: isolate; }
.dealers-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(90% 80% at 100% 0%, rgba(47, 111, 228, .35), transparent 60%), radial-gradient(70% 70% at 0% 100%, rgba(242, 179, 61, .22), transparent 60%);
}
.dealers-hero .eyebrow { color: var(--gold); }
.hero-stats { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .12); border-radius: var(--radius); }
.hero-stats li { background: rgba(11, 31, 68, .55); }
.dcard { transition: box-shadow .3s var(--ease), translate .3s var(--ease); }
.dcard:hover { box-shadow: var(--shadow-lg); translate: 0 -4px; }
.dcard-photos { overflow: hidden; }
.dcard-photos .ph { overflow: hidden; }
.monogram { box-shadow: 0 6px 14px -6px rgba(11, 31, 68, .5); }
.stat { background: var(--sky); border-radius: 12px; }
.stat strong { color: var(--blue-dark); }
.steps li::before { background: var(--grad-gold); color: var(--navy); }
.dealer-cta { background: linear-gradient(120deg, #fff 0%, var(--sky) 100%); }

/* Footer */
.site-footer { background: var(--grad-night); position: relative; }
.site-footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--blue-bright), var(--gold)); }
.footer-cols a { transition: color .2s, padding-left .2s var(--ease); color: #BAC7DC; }
.footer-cols a:hover { color: var(--gold-2); padding-left: 4px; text-decoration: none; }
.footer-head { color: #fff; }
.footer-bottom { border-top-color: rgba(255, 255, 255, .1); color: #8D9BB5; }
.footer-bottom a:hover { color: var(--gold-2); }

.toast {
  background: var(--navy); border-radius: 999px; padding: 12px 20px;
  transition: opacity .25s, transform .45s var(--spring);
}

/* ---------- Motion (only when the visitor allows it) ---------- */
@keyframes fx-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fx-zoom { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes fx-glow { from { opacity: 0; } to { opacity: 1; } }
@keyframes fx-wipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fx-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fx-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes fx-pop { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 70% { transform: scale(.96); } 100% { transform: scale(1); } }
@keyframes fx-slide-next { from { opacity: .3; transform: translateX(6%) scale(1.02); } to { opacity: 1; transform: none; } }
@keyframes fx-slide-prev { from { opacity: .3; transform: translateX(-6%) scale(1.02); } to { opacity: 1; transform: none; } }
@keyframes fx-refresh { from { opacity: .35; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fx-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Page-load sequence */
.fx-intro .hero-bg { animation: fx-zoom 2.6s var(--ease) both; }
.fx-intro .hero-bg::after { animation: fx-glow 1.2s ease both; }
.fx-intro .hero h1 { animation: fx-rise .9s .15s var(--ease) both; }
.fx-intro .hero-copy p { animation: fx-rise .9s .32s var(--ease) both; }
.fx-intro .search-box { animation: fx-rise 1s .5s var(--ease) both; }
.fx-intro .hero::after { transform-origin: left; animation: fx-wipe 1.4s .7s var(--ease) both; }
.fx-intro .dealers-hero-copy > *, .fx-intro .hero-stats li { animation: fx-rise .8s var(--ease) both; }
.fx-intro .dealers-hero-copy > :nth-child(2) { animation-delay: .1s; }
.fx-intro .dealers-hero-copy > :nth-child(3) { animation-delay: .2s; }
.fx-intro .hero-stats li:nth-child(1) { animation-delay: .3s; }
.fx-intro .hero-stats li:nth-child(2) { animation-delay: .4s; }
.fx-intro .hero-stats li:nth-child(3) { animation-delay: .5s; }
.fx-intro .hero-stats li:nth-child(4) { animation-delay: .6s; }
.fx-intro .results-page > *, .fx-intro .detail-page > *, .fx-intro .prose-page > * { animation: fx-rise .7s var(--ease) both; }
.fx-intro .results-page > :nth-child(2), .fx-intro .detail-page > :nth-child(2), .fx-intro .prose-page > :nth-child(2) { animation-delay: .08s; }
.fx-intro .results-page > :nth-child(3), .fx-intro .detail-page > :nth-child(3), .fx-intro .prose-page > :nth-child(3) { animation-delay: .16s; }

/* Scroll reveal (classes added by fx.js to content below the fold) */
.fx .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.fx .rv.rv-in { opacity: 1; transform: none; }

/* Responses to the visitor's own actions */
.fx-pop { animation: fx-pop .45s var(--spring); }
.fx-fade { animation: fx-fade-in .35s ease; }
.fx-slide-next { animation: fx-slide-next .45s var(--ease); }
.fx-slide-prev { animation: fx-slide-prev .45s var(--ease); }
.fx-refresh { animation: fx-refresh .4s var(--ease); }
.fx .mobile-menu:not([hidden]) { animation: fx-drop .28s var(--ease); }
.fx .mobile-menu:not([hidden]) a { animation: fx-rise .4s var(--ease) both; }
.fx .mobile-menu:not([hidden]) a:nth-child(2) { animation-delay: .03s; }
.fx .mobile-menu:not([hidden]) a:nth-child(3) { animation-delay: .06s; }
.fx .mobile-menu:not([hidden]) a:nth-child(4) { animation-delay: .09s; }
.fx .mobile-menu:not([hidden]) a:nth-child(5) { animation-delay: .12s; }
.fx .mobile-menu:not([hidden]) a:nth-child(6) { animation-delay: .15s; }

/* Reduced motion: hover effects keep their colour changes but stop moving */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; scroll-behavior: auto !important; }
  .body-tile:hover, .vcard:hover, .rcard:hover, .dcard:hover, .feature:hover, .map-link:hover, .link-cloud a:hover, .btn-primary:hover { translate: none; }
  .body-tile:hover img, .vcard:hover .ph > img, .rcard:hover .rcard-photo > img, .dcard:hover .dcard-photos img { transform: none; }
  @view-transition { navigation: none; }
}

/* Responsive */
@media (max-width: 920px) {
  .contact-bar { background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
@media (max-width: 720px) {
  .hero-inner { padding-top: 44px; padding-bottom: 48px; }
  .hero h1 { font-size: 36px; max-width: none; }
  .hero p { font-size: 16px; }
  .hero-bg::after {
    background:
      radial-gradient(120% 60% at 0% 100%, rgba(242, 179, 61, .35) 0%, rgba(242, 179, 61, 0) 60%),
      linear-gradient(180deg, rgba(11, 31, 68, .88) 0%, rgba(18, 48, 95, .78) 100%);
  }
  .search-box { padding: 16px; border-radius: 16px; }
  .h2 { font-size: 24px; }
  .h2-sm { font-size: 20px; }
  .section:has(> .features) { padding-top: 40px; padding-bottom: 44px; }
  .feature { padding: 18px; }
  .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results-head h1 { font-size: 24px; }
}

/* Contact by message: the contact person, text channels, verified dealers and buyer questions */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 210, 122, .55); color: #fff; font-size: 14px; font-weight: 700;
  backdrop-filter: blur(6px);
}
.hero-badge:hover { text-decoration: none; background: rgba(255, 255, 255, .2); color: #fff; }
.hero-badge svg { width: 16px; height: 16px; fill: var(--gold); }

.avatar {
  flex: none; width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-night); color: var(--gold-2); font-weight: 800; font-size: 16px; letter-spacing: .5px; object-fit: cover;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line-2);
}
.avatar-lg { width: 64px; height: 64px; font-size: 20px; }
.agent { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--sky); }
.agent > div, .agent-card > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.agent strong { font-size: 15px; }
.agent span { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.agent-card { display: flex; gap: 16px; align-items: flex-start; }
.agent-card strong { font-size: 18px; }
.agent-card span { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.agent-card a { font-size: 14px; font-weight: 700; margin-top: 4px; }

.contact-h { font-size: 18px; font-weight: 800; margin-top: 4px; }
.intents .chip { font-size: 14px; padding: 8px 12px; }
.msg-label { display: flex; flex-direction: column; gap: 2px; font-size: 14px; font-weight: 700; }
.msg-label span { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.contact-box .textarea { font-size: 14px; line-height: 1.5; min-height: 96px; }
.channels-lead { font-size: 13px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .5px; }
.channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.channel {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 12px; border-radius: 10px;
  font-size: 15px; font-weight: 700; color: #fff; transition: transform .2s var(--ease), box-shadow .2s, filter .2s;
}
.channel:hover { text-decoration: none; color: #fff; transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 8px 18px -8px rgba(11, 31, 68, .5); }
.channel svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.channel-whatsapp { background: #1FA855; }
.channel-sms { background: #0F7A5A; }
.channel-messenger { background: linear-gradient(135deg, #0A7CFF 0%, #A033FF 100%); }
.channel-telegram { background: #229ED9; }
.channel-email { background: var(--navy-2); }
/* First channel takes the full row when the count is odd, so the grid never leaves a hole. */
.channels > .channel:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
@media (hover: hover) and (pointer: fine) {
  /* Text messages only open from a phone. */
  .channel-sms { display: none; }
  .channels > .channel:first-child:nth-last-child(odd) { grid-column: auto; }
}
.channels-note { margin-top: -4px; }
.prose .channels { max-width: 520px; }

.callback { border-top: 1px solid var(--line); padding-top: 12px; }
.callback summary { cursor: pointer; font-size: 15px; font-weight: 700; color: var(--blue); list-style: none; }
.callback summary::-webkit-details-marker { display: none; }
.callback summary::after { content: ' +'; }
.callback[open] summary::after { content: ' \2212'; }
.callback .contact-form { margin-top: 12px; }
.callback .check { font-weight: 500; }

.verified {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 4px; padding: 4px 10px 4px 6px; border-radius: 999px;
  background: var(--green-soft); color: var(--green); font-size: 12.5px; font-weight: 700;
}
.verified:hover { text-decoration: none; color: var(--green); filter: brightness(.97); }
.verified svg { width: 16px; height: 16px; fill: currentColor; }
.mini-rating { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; font-weight: 700; color: var(--ink); }
.mini-rating svg { width: 13px; height: 13px; fill: var(--gold); }
.vcard-dealer { font-size: 13px; color: var(--ink-2); }
.tax-line { font-size: 13px; }

.faq { display: flex; flex-direction: column; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 14px 28px 14px 0; position: relative; font-size: 16px; font-weight: 700; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 20px; color: var(--blue); }
.faq details[open] summary::after { content: '\2212'; }
.faq-a { padding: 0 0 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.faq-a p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.faq-a .link-btn { font-size: 15px; font-weight: 700; color: var(--blue); }
.faq-panel { gap: 12px; }

.how { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.how-steps { display: flex; flex-direction: column; gap: 20px; }
.how-agent { padding: 24px; display: flex; flex-direction: column; gap: 18px; }

.standard { padding: 24px; display: flex; gap: 28px; align-items: center; }
.standard-score { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 140px; height: 140px; border-radius: 50%;
  background: var(--grad-night); color: #fff; text-align: center; }
.standard-score strong { font-size: 40px; font-weight: 800; color: var(--gold-2); line-height: 1; }
.standard-score span { font-size: 12px; max-width: 90px; color: #D9E3F5; margin-top: 6px; }
.standard > div:last-child { display: flex; flex-direction: column; gap: 12px; }
.checklist-1 { grid-template-columns: minmax(0, 1fr); }
#standard { scroll-margin-top: 90px; }
.results-intro { margin-top: 12px; }

@media (max-width: 920px) {
  .how { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 720px) {
  .standard { flex-direction: column; align-items: flex-start; gap: 18px; padding: 18px; }
  .standard-score { width: 110px; height: 110px; }
  .standard-score strong { font-size: 32px; }
  .how-agent { padding: 18px; }
  .agent-card { gap: 12px; }
  .hero-badge { font-size: 13px; }
}
.agent .avatar, .agent-card .avatar { color: var(--gold-2); font-size: 16px; line-height: 1; }
.agent-card .avatar-lg { font-size: 20px; }

/* History badges: green with a check for what the history says, quieter blue for documents (CARFAX, safety). */
.tag { display: inline-flex; align-items: center; gap: 4px; }
.tag-h svg { width: 12px; height: 12px; fill: currentColor; flex: none; margin-left: -2px; }
.tag-doc { background: var(--sky); color: var(--blue-dark); }
.badge-note { font-size: 12.5px; line-height: 1.45; color: var(--ink-2); margin-top: 2px; }
.check-count { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.results-head { scroll-margin-top: 88px; }

/* Car Finder: a quiet banner above the results that opens a four-step dialog. */
.finder-bar {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, #FAFCFF 0%, var(--sky) 100%);
}
.finder-icon { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--navy); }
.finder-icon svg { width: 18px; height: 18px; fill: var(--gold); }
.finder-bar-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.finder-bar-copy strong { font-size: 15px; color: var(--ink); }
.finder-bar-copy span { font-size: 14px; color: var(--ink-2); }
.finder-bar .btn { flex: none; }
.finder-applied { background: #fff; align-items: flex-start; }
.finder-applied .finder-bar-copy { gap: 8px; }
.finder-bar-actions { display: flex; gap: 16px; flex: none; padding-top: 2px; }
.finder-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--gold-ink); display: inline-flex; align-items: center; gap: 8px; }
.finder-eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

html.finder-open { overflow: hidden; }
dialog.finder { padding: 0; border: 0; background: transparent; max-width: 560px; width: calc(100% - 32px); max-height: calc(100% - 32px); margin: auto; overflow: visible; }
dialog.finder::backdrop { background: rgba(8, 23, 51, .55); backdrop-filter: blur(3px); }
dialog.finder[open] { animation: finder-in .28s var(--ease); }
@keyframes finder-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.finder-panel {
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 24px; display: flex; flex-direction: column; gap: 18px;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto;
}
.finder-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.finder-title { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; color: var(--ink); margin-top: 4px; }
.finder-sub { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.finder-close {
  width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); background: #fff;
  font-size: 22px; line-height: 1; color: var(--ink-2); cursor: pointer; transition: border-color .2s, color .2s;
}
.finder-close:hover { border-color: var(--blue); color: var(--blue); }
.finder-steps { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.finder-steps li { display: flex; align-items: center; flex: 1; }
.finder-steps li:last-child { flex: none; }
.finder-steps li::after { content: ''; flex: 1; height: 2px; margin: 0 8px; background: var(--line); border-radius: 2px; transition: background .3s; }
.finder-steps li:last-child::after { display: none; }
.finder-steps li.done::after { background: var(--gold); }
.finder-steps span {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: 13px; font-weight: 800; color: var(--ink-2); background: #fff; border: 1.5px solid var(--line-2); transition: background .3s, border-color .3s, color .3s;
}
.finder-steps li.on span { border-color: var(--gold); color: var(--gold-ink); box-shadow: 0 0 0 4px rgba(242, 179, 61, .2); }
.finder-steps li.done span { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.finder-steps svg { width: 14px; height: 14px; fill: currentColor; }
.finder-body { display: flex; flex-direction: column; gap: 6px; }
.finder-body .match-q { outline: none; margin: 0; }
.finder-note { font-size: 14px; color: var(--ink-2); }
.finder-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.finder-option {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; min-height: 60px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid var(--line-2); background: #fff; text-align: left; cursor: pointer; font: inherit;
  transition: border-color .2s, background .2s, transform .2s var(--ease), box-shadow .2s;
}
.finder-option strong { font-size: 15px; font-weight: 700; color: var(--ink); }
.finder-option span { font-size: 13px; color: var(--ink-2); }
.finder-option.active { border-color: var(--blue); background: var(--sky); box-shadow: inset 0 0 0 1px var(--blue); }
.finder-any { border-style: dashed; }
@media (hover: hover) and (pointer: fine) {
  .finder-option:hover { border-color: var(--blue); background: var(--sky); }
}
.finder-option:active { transform: scale(.98); }
.finder-option:last-child:nth-child(odd) { grid-column: 1 / -1; }
.finder-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.finder-foot .btn { height: 42px; padding: 0 18px; font-size: 15px; }
.finder-foot .btn[disabled] { opacity: .45; cursor: default; }
.finder-live { font-size: 14px; color: var(--ink-2); }
.finder-live strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.finder-foot-end { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.finder-result { align-items: center; text-align: center; gap: 8px; padding: 6px 0; }
.finder-result .match-answers { justify-content: center; margin-top: 4px; }
.finder-total { font-size: 56px; line-height: 1; font-weight: 800; color: var(--gold-ink); font-variant-numeric: tabular-nums; outline: none; }
@media (max-width: 720px) {
  .finder-bar { flex-wrap: wrap; padding: 14px; }
  .finder-bar > .btn { width: 100%; }
  .finder-applied { flex-direction: column; gap: 10px; }
  /* Phones: the dialog becomes a bottom sheet. */
  dialog.finder { width: 100%; max-width: none; margin: auto 0 0; max-height: 100%; }
  .finder-panel { border-radius: 18px 18px 0 0; padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .finder-title { font-size: 20px; }
  .finder-options { grid-template-columns: minmax(0, 1fr); }
  .finder-option { min-height: 54px; }
  .finder-foot { flex-wrap: wrap; }
  .finder-foot-end { display: contents; }
  .finder-foot-end .btn { order: -1; width: 100%; height: 46px; }
  .finder-foot-end .link-btn { margin-left: auto; }
  @keyframes finder-in { from { opacity: 0; transform: translateY(40px); } }
  /* Compact result cards hide most tags; keep up to two history badges. */
  .rcard-info .tags { display: flex; margin-top: 2px; }
  .rcard-info .tags .tag:not(.tag-h), .rcard-info .tags .tag-h ~ .tag-h ~ .tag-h { display: none; }
  .rcard-info .tags .tag { font-size: 11px; padding: 2px 8px; }
  .rcard-info .tags:not(:has(.tag-h)) { display: none; }
}

/* Selects. The closed control is styled everywhere; on desktop browsers with customizable selects
   (appearance: base-select) the open list is styled too. Phones keep their native picker, which suits touch best. */
.select {
  -webkit-appearance: none; appearance: none; cursor: pointer; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 12px; padding: 0 40px 0 14px; text-overflow: ellipsis;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231459B8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
  box-shadow: 0 1px 2px rgba(11, 31, 68, .05);
}
.select.is-empty { color: var(--ink-2); font-weight: 500; }
.select:hover { border-color: var(--blue-soft); background-color: #FAFCFF; }
.select option { color: var(--ink); font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
  @supports (appearance: base-select) {
    .select, .select::picker(select) { appearance: base-select; }
    .select { display: flex; align-items: center; gap: 8px; background-image: none; }
    .select::picker-icon {
      content: ''; width: 16px; height: 16px; margin-left: auto; flex: none; transition: rotate .2s var(--ease);
      background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231459B8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center / 16px;
    }
    .select { padding-right: 14px; }
    .select:open { border-color: var(--blue-bright); box-shadow: 0 0 0 4px rgba(47, 111, 228, .16); }
    .select:open::picker-icon { rotate: 180deg; }
    .select::picker(select) {
      border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 6px; margin-block: 6px;
      box-shadow: 0 2px 4px rgba(11, 31, 68, .06), 0 22px 44px -14px rgba(11, 31, 68, .32);
      max-height: min(360px, 70vh); min-width: anchor-size(width); scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
      opacity: 0; translate: 0 -6px; transition: opacity .16s, translate .2s var(--ease), display .2s allow-discrete, overlay .2s allow-discrete;
    }
    .select:open::picker(select) { opacity: 1; translate: 0 0; }
    @starting-style { .select:open::picker(select) { opacity: 0; translate: 0 -6px; } }
    .select option {
      display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; font-size: 14px; font-weight: 500;
      color: var(--ink); cursor: pointer; transition: background .12s, color .12s;
    }
    .select option:hover, .select option:focus-visible { background: var(--sky); color: var(--blue-dark); outline: none; }
    .select option:checked { font-weight: 700; color: var(--blue); background: #F1F6FE; }
    .select option::checkmark { order: 1; margin-left: auto; content: ''; width: 14px; height: 14px;
      background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%231459B8' d='M6.3 11.4 2.9 8l1.2-1.2 2.2 2.2 5.6-5.6 1.2 1.2z'/%3E%3C/svg%3E") no-repeat center / 14px; }
    .select option:not(:checked)::checkmark { visibility: hidden; }
  }
}
.btn-gold { background: var(--grad-gold); color: var(--navy); box-shadow: 0 6px 18px -6px rgba(227, 154, 28, .8); }
.btn-gold:hover { color: var(--navy); translate: 0 -1px; }
.btn-gold:hover::after { transform: translateX(120%); }

/* Find your match in 3 questions (home): a night-blue side panel with the steps, the question beside it. */
.match { scroll-margin-top: 80px; }
.match-shell {
  display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); border-radius: 20px; overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.match-aside {
  position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 14px; padding: 32px 28px; color: #fff; background: var(--grad-night);
}
.match-aside::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 70% at 100% 0%, rgba(47, 111, 228, .45) 0%, transparent 60%), radial-gradient(90% 50% at 0% 100%, rgba(242, 179, 61, .28) 0%, transparent 65%);
}
.match-aside .eyebrow { color: var(--gold-2); }
.match-aside .h2 { color: #fff; font-size: 28px; line-height: 1.15; }
.match-aside .h2:focus { outline: none; }
.match-lede { font-size: 15px; line-height: 1.5; color: #C9D6EE; }
.match-steps { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.match-steps li { position: relative; }
.match-steps li:not(:last-child)::after { content: ''; position: absolute; left: 27px; top: 46px; bottom: -6px; width: 2px; border-radius: 2px; background: rgba(255, 255, 255, .14); }
.match-steps li.done:not(:last-child)::after { background: var(--gold); }
.match-step {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px; border-radius: 12px; border: 0; background: none;
  color: inherit; font: inherit; text-align: left;
}
button.match-step { cursor: pointer; transition: background .2s; }
button.match-step:hover { background: rgba(255, 255, 255, .08); }
.match-step-dot {
  width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800;
  border: 1.5px solid rgba(255, 255, 255, .3); color: #C9D6EE; transition: background .3s, border-color .3s, color .3s;
}
.match-step-dot svg { width: 15px; height: 15px; fill: currentColor; }
.match-steps li.on .match-step-dot { border-color: var(--gold); color: var(--gold-2); box-shadow: 0 0 0 4px rgba(242, 179, 61, .2); }
.match-steps li.done .match-step-dot { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.match-step-text { display: flex; flex-direction: column; min-width: 0; }
.match-step-text small { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #93A6C8; }
.match-step-text strong { font-size: 15px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-steps li:not(.done):not(.on) .match-step-text strong { color: #93A6C8; font-weight: 600; }
.match-live { margin-top: auto; padding-top: 10px; font-size: 14px; color: #C9D6EE; }
.match-live strong { font-size: 26px; font-weight: 800; color: var(--gold-2); margin-right: 4px; font-variant-numeric: tabular-nums; }
.match-restart { align-self: flex-start; margin-top: auto; }
.match-main { padding: 32px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.match-top { display: flex; align-items: center; gap: 14px; }
.match-count { font-size: 12px; font-weight: 800; color: var(--ink-2); letter-spacing: .8px; text-transform: uppercase; white-space: nowrap; }
.match-progress { flex: 1; max-width: 220px; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.match-progress span { display: block; height: 100%; border-radius: inherit; background: var(--grad-gold); transition: width .4s var(--ease); }
.match-q { font-size: 24px; font-weight: 800; letter-spacing: -0.4px; color: var(--ink); }
.match-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.match-options-budget { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.match-option {
  display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink); text-align: left; cursor: pointer; font: inherit;
  transition: border-color .2s, background .2s, transform .2s var(--ease), box-shadow .2s;
}
.match-ico {
  width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--sky); color: var(--blue);
  transition: background .2s, color .2s;
}
.match-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.match-meter { display: flex; align-items: flex-end; gap: 3px; height: 30px; flex: none; padding: 0 4px; }
.match-meter i { width: 6px; border-radius: 2px; background: var(--line); }
.match-meter i:nth-child(1) { height: 30%; } .match-meter i:nth-child(2) { height: 45%; } .match-meter i:nth-child(3) { height: 62%; }
.match-meter i:nth-child(4) { height: 80%; } .match-meter i:nth-child(5) { height: 100%; }
.match-meter i.on { background: var(--grad-gold); }
.match-opt-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.match-opt-text strong { font-size: 16px; font-weight: 700; line-height: 1.25; }
.match-opt-text small { font-size: 13px; color: var(--ink-2); font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
  .match-option:hover { border-color: var(--blue); background: #FAFCFF; box-shadow: 0 10px 24px -14px rgba(20, 89, 184, .6); translate: 0 -2px; }
  .match-option:hover .match-ico { background: var(--grad-blue); color: #fff; }
}
.match-option:active { transform: scale(.98); }
.match-foot { display: flex; justify-content: flex-start; padding-top: 4px; }
.match-shell.is-done { grid-template-columns: minmax(0, 1fr); }
.is-done .match-aside { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "eyebrow restart" "title restart" "lede lede" "steps steps"; align-items: center; column-gap: 20px; padding: 26px 32px; }
.is-done .match-aside .eyebrow { grid-area: eyebrow; }
.is-done .match-aside .h2 { grid-area: title; font-size: 24px; }
.is-done .match-lede { display: none; }
.is-done .match-restart { grid-area: restart; margin: 0; }
.is-done .match-steps { grid-area: steps; flex-direction: row; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.is-done .match-steps li::after { display: none; }
.is-done .match-step { padding: 6px 14px 6px 6px; background: rgba(255, 255, 255, .08); border-radius: 999px; }
.is-done .match-step-dot { width: 26px; height: 26px; }
.match-result-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.match-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.match-pick { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.match-rank {
  position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800;
  background: rgba(11, 31, 68, .82); color: #fff; backdrop-filter: blur(6px); pointer-events: none;
}
.match-pick:first-child .match-rank { background: var(--grad-gold); color: var(--navy); }
.match-all { font-size: 15px; font-weight: 700; }
.match-send { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.match-answers { display: flex; flex-wrap: wrap; gap: 6px; }
.match-answer { font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--sky); color: var(--blue-dark); }
@media (max-width: 920px) {
  .match-shell { grid-template-columns: minmax(0, 1fr); }
  .match-aside { padding: 24px; }
  .match-steps { flex-direction: row; gap: 6px; }
  .match-steps li { flex: 1; min-width: 0; }
  .match-steps li::after { display: none; }
  .match-step { flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px; background: rgba(255, 255, 255, .06); }
  .match-live { margin-top: 0; padding-top: 0; }
  .match-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .match-shell { border-radius: 16px; margin-left: -4px; margin-right: -4px; }
  .match-aside { padding: 20px 18px; gap: 10px; }
  .match-aside .h2 { font-size: 24px; }
  .match-lede { font-size: 14px; }
  .match-step-text strong { font-size: 13px; }
  .match-main { padding: 20px 18px; gap: 14px; }
  .match-q { font-size: 20px; }
  .match-options, .match-options-budget { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .match-option { min-height: 64px; padding: 12px 14px; }
  .match-ico { width: 40px; height: 40px; }
  .match-ico svg { width: 22px; height: 22px; }
  .match-grid { grid-template-columns: minmax(0, 1fr); }
  .is-done .match-aside { grid-template-columns: minmax(0, 1fr); grid-template-areas: "eyebrow" "title" "steps" "restart"; padding: 20px 18px; }
  .is-done .match-restart { margin-top: 14px; }
}

/* Inventory filters: a sticky sidebar on desktop, a full-screen panel on phones and tablets. */
.results-layout { display: grid; grid-template-columns: 296px minmax(0, 1fr); gap: 24px; align-items: start; }
.filters {
  position: sticky; top: 88px; max-width: none; padding: 0; gap: 0; display: flex; flex-direction: column;
  max-height: calc(100vh - 104px); max-height: calc(100dvh - 104px); overflow: hidden;
}
.filters-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.filters-head strong { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; margin-right: auto; }
.fcount {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--grad-blue); color: #fff; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.filters-close { display: none; }
.filters-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 18px 18px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.filters-foot { display: none; }
.fsearch { position: relative; display: block; margin-bottom: 6px; }
.fsearch svg { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; fill: var(--ink-2); pointer-events: none; }
.fsearch .input { height: 44px; padding-left: 38px; border-radius: 12px; font-size: 14px; background: var(--bg); border-color: transparent; }
.fsearch .input:focus { background: #fff; }
.fgroup { border-bottom: 1px solid var(--line); }
.fgroup summary {
  display: flex; align-items: center; gap: 8px; padding: 14px 0; cursor: pointer; list-style: none; font-size: 15px; font-weight: 700; color: var(--ink);
  -webkit-user-select: none; user-select: none;
}
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary:hover .fgroup-title { color: var(--blue); }
.fgroup-title { margin-right: auto; transition: color .2s; }
.fgroup-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--sky); color: var(--blue-dark); font-size: 12px; font-weight: 800; }
.fgroup-chev { width: 18px; height: 18px; flex: none; transition: rotate .25s var(--ease);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5874' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center / 18px; }
.fgroup[open] .fgroup-chev { rotate: 180deg; }
.fgroup-body { display: flex; flex-direction: column; gap: 10px; padding: 0 0 16px; }
.fgroup[open] .fgroup-body { animation: fx-fade-in .25s var(--ease); }
.frange { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filters .field { font-size: 12px; font-weight: 700; color: var(--ink-2); gap: 6px; text-transform: uppercase; letter-spacing: .5px; }
.filters .select { height: 42px; font-size: 14px; border-radius: 10px; padding-left: 12px; text-transform: none; letter-spacing: 0; }
.fnote { font-size: 12px; color: var(--ink-2); margin-top: -2px; }
.fsub { font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--ink-2); margin-top: 6px; }
.fchips { gap: 6px; }
.fchips .chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; }
.chip-count { font-size: 11px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chip.active .chip-count { color: #D9E3F5; }
.chip[disabled] { opacity: .45; cursor: default; }
.opts { display: flex; flex-direction: column; gap: 2px; }
.opts-2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; }
.opt {
  display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 6px 8px; margin: 0 -8px; border-radius: 9px;
  font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; transition: background .15s;
}
.opt:hover { background: var(--bg); }
.opt input {
  -webkit-appearance: none; appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border-radius: 6px; border: 1.5px solid var(--line-2);
  background: #fff no-repeat center / 14px; cursor: pointer; transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.opt input:checked {
  background-color: var(--blue); border-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M6.3 11.4 2.9 8l1.2-1.2 2.2 2.2 5.6-5.6 1.2 1.2z'/%3E%3C/svg%3E");
}
.opt input:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(47, 111, 228, .22); }
.opt:has(input:checked) .opt-label { font-weight: 700; }
.opt-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt-count { font-size: 12px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; background: var(--bg); border-radius: 999px; padding: 1px 8px; }
.opt:hover .opt-count { background: #fff; }
.opt-more { display: none; }
.swatch { width: 16px; height: 16px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(11, 31, 68, .18); }
.fmore { align-self: flex-start; font-size: 14px; margin-top: 2px; }
.switch { display: flex; align-items: center; gap: 12px; padding: 16px 0 4px; font-size: 14px; font-weight: 600; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { position: relative; width: 40px; height: 24px; flex: none; border-radius: 999px; background: var(--line-2); transition: background .2s; }
.switch-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(11, 31, 68, .3); transition: translate .2s var(--ease); }
.switch input:checked + .switch-ui { background: var(--blue); }
.switch input:checked + .switch-ui::after { translate: 16px 0; }
.switch input:focus-visible + .switch-ui { box-shadow: 0 0 0 4px rgba(47, 111, 228, .22); }

.results-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.results-tools { display: flex; align-items: center; gap: 10px; }
.filters-open { display: none; height: 42px; padding: 0 14px; gap: 8px; font-size: 14px; }
.filters-open svg { width: 18px; height: 18px; fill: currentColor; }
.sort { gap: 10px; font-weight: 600; }
.sort .select { height: 42px; min-width: 200px; font-size: 14px; }
.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px 0 12px; border-radius: 999px; border: 1px solid #C8D8F2;
  background: #fff; color: var(--blue-dark); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color .2s, background .2s;
}
.pill span { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--sky); font-size: 14px; line-height: 1; transition: background .2s, color .2s; }
.pill:hover { border-color: var(--blue); background: #FAFCFF; }
.pill:hover span { background: var(--blue); color: #fff; }
.pills .link-btn { font-size: 13px; margin-left: 4px; }
.rlist { display: flex; flex-direction: column; gap: 14px; }

/* The browsing canvas grows with the screen; other pages retain their reading width. */
.inventory-page { width: 100%; max-width: none; }
.inventory-page .results-main { gap: 18px; }
.inventory-page .rlist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: stretch; }
.finance-promo {
  position: relative; isolation: isolate; overflow: hidden; min-width: 0; padding: 26px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  background: var(--grad-night); color: #fff; border-color: var(--navy-2);
}
.finance-promo::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none; width: 260px; height: 260px;
  top: -110px; right: -120px; border-radius: 50%; border: 1px solid rgba(255, 210, 122, .24);
  box-shadow: 0 0 0 30px rgba(255, 210, 122, .04), 0 0 0 60px rgba(255, 210, 122, .03);
}
.finance-promo-label { display: flex; align-items: center; gap: 10px; width: 100%; color: var(--gold-2); font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.finance-promo-label span { margin-left: auto; color: #D5E0F2; font-size: 10px; letter-spacing: .4px; border: 1px solid #627493; border-radius: 999px; padding: 4px 7px; }
.finance-promo-icon { width: 64px; height: 64px; color: var(--gold-2); margin-top: 20px; flex: none; }
.finance-promo h2 { font-size: clamp(24px, 1.8vw, 30px); line-height: 1.15; letter-spacing: -.7px; max-width: 13ch; text-wrap: balance; }
.finance-promo p { font-size: 15px; line-height: 1.6; color: #D5E0F2; max-width: 32ch; }
.finance-promo-foot { display: flex; flex-direction: column; gap: 14px; width: 100%; margin-top: auto; padding-top: 24px; }
.finance-promo .btn { width: 100%; min-height: 46px; padding: 12px 16px; font-size: 14px; white-space: normal; gap: 12px; justify-content: space-between; text-align: left; }
.finance-promo .btn span { font-size: 20px; }
.finance-promo small { color: #D5E0F2; font-size: 12px; line-height: 1.5; }

@media (min-width: 721px) {
  .inventory-page { padding-inline: clamp(24px, 2vw, 48px); }
  .inventory-page .results-layout { grid-template-columns: 264px minmax(0, 1fr); }
  .inventory-page .rlist { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .inventory-page .rcard { display: flex; flex-direction: column; flex-wrap: nowrap; min-width: 0; }
  .inventory-page .rcard-photo { flex: none; width: 100%; max-width: none; min-height: 0; aspect-ratio: 4 / 3; }
  .inventory-page .rcard-body { flex: 1; flex-direction: column; flex-wrap: nowrap; gap: 18px; padding: 18px; }
  .inventory-page .rcard-info { flex: 1; gap: 6px; min-width: 0; }
  .inventory-page .rcard-title { font-size: 18px; }
  .inventory-page .specs-inline { gap: 4px 12px; font-size: 13px; }
  .inventory-page .dealer-line { font-size: 12px; padding-top: 10px; }
  .inventory-page .rcard-price { flex: none; width: 100%; align-items: stretch; text-align: left; gap: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
  .inventory-page .rcard-amount { align-items: flex-start; gap: 3px; }
  .inventory-page .rcard-actions { margin-top: 0; padding-top: 0; }
  .inventory-page .rcard-actions .btn { min-height: 44px; }
  .inventory-page .rcard-actions .btn-primary { flex: 1; }
}
@media (min-width: 721px) and (max-width: 920px) {
  .inventory-page .results-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .finance-promo { padding: 22px; gap: 12px; }
  .finance-promo-icon { width: 46px; height: 46px; margin-top: 2px; }
  .finance-promo h2 { max-width: 20ch; font-size: 26px; }
  .finance-promo p { max-width: none; }
  .finance-promo-foot { padding-top: 6px; gap: 10px; }
}
.empty .btn { margin-top: 6px; }

/* "Show more" bar under the list; app.js loads the next batch when it comes into view. */
.more { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 0 6px; text-align: center; }
.more p { font-size: 14px; color: var(--ink-2); }
.more p strong { color: var(--ink); }
.more-track { width: 200px; height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.more-track span { display: block; height: 100%; border-radius: inherit; background: var(--grad-blue); transition: width .4s var(--ease); }
.more .btn { height: 44px; padding: 0 22px; font-size: 15px; }
.more-end { text-align: center; font-size: 14px; color: var(--ink-2); padding: 12px 0 0; }

@media (max-width: 920px) {
  .results-layout { grid-template-columns: minmax(0, 1fr); }
  .filters-open { display: inline-flex; }
  .filters-open .fcount { margin-left: 2px; }
  .results-tools { width: 100%; }
  .results-tools .sort { flex: 1; justify-content: flex-end; }
  .results-tools .sort .select { min-width: 0; width: 100%; max-width: 240px; }
  .filters, .filters.card { display: none; }
  .filters.open {
    display: flex; position: fixed; inset: 0; z-index: 60; top: 0; max-height: none; height: 100%; border-radius: 0; border: 0; box-shadow: none;
  }
  .filters.open.slide-in { animation: filters-in .3s var(--ease); }
  @keyframes filters-in { from { transform: translateY(24px); opacity: 0; } }
  .filters-head { padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top)); }
  .filters-head .filters-close {
    display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); background: #fff;
    font-size: 24px; line-height: 1; color: var(--ink); cursor: pointer;
  }
  .filters-body { padding: 12px 16px 24px; }
  .filters-foot {
    display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff;
    box-shadow: 0 -6px 18px rgba(11, 31, 68, .06);
  }
  .filters-foot .btn { height: 48px; font-size: 16px; }
  .filters-foot .btn-ghost { flex: none; padding: 0 20px; }
  .filters-foot .btn-ghost[disabled] { opacity: .45; }
  .filters-foot .btn-primary { flex: 1; }
  .opt { min-height: 44px; }
  .fgroup summary { padding: 16px 0; font-size: 16px; }
  html.filters-open, html.filters-open body { overflow: hidden; }
}
@media (max-width: 720px) {
  .sort > span { display: none; }
  .filters .select, .fsearch .input { font-size: 16px; }
  .pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .pills::-webkit-scrollbar { display: none; }
  .pill { flex: none; }
  .pills .link-btn { flex: none; }
}

/* Share a vehicle */
.side-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.side-actions .btn { height: 44px; gap: 8px; font-size: 15px; }
.share-btn svg, .gallery-share svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gallery-share {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--navy); cursor: pointer; box-shadow: 0 4px 14px rgba(11, 31, 68, .25);
  transition: transform .2s var(--ease), background .2s;
}
.gallery-share:hover { transform: scale(1.08); background: #fff; }
.gallery-share svg { width: 20px; height: 20px; }
dialog.share { max-width: 460px; }
.share-panel { gap: 18px; }
.share-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.share-car { display: flex; gap: 14px; align-items: center; min-width: 0; }
.share-car img { width: 84px; height: 63px; object-fit: cover; border-radius: 10px; flex: none; }
.share-car > div { min-width: 0; }
.share-title { font-size: 18px; font-weight: 800; color: var(--ink); line-height: 1.25; margin-top: 4px; }
.share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.share-opt {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; border-radius: 14px; border: 1px solid var(--line);
  font-size: 13px; font-weight: 700; color: var(--ink); text-align: center; transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.share-opt:hover { text-decoration: none; color: var(--ink); border-color: var(--blue-soft); background: #FAFCFF; transform: translateY(-2px); }
.share-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.share-ico svg { width: 24px; height: 24px; fill: currentColor; }
.share-whatsapp .share-ico { background: #1FA855; }
.share-sms .share-ico { background: #0F7A5A; }
.share-email .share-ico { background: var(--navy-2); }
.share-facebook .share-ico { background: #1877F2; }
.share-x .share-ico { background: #111; }
@media (hover: hover) and (pointer: fine) { .share-sms { display: none; } }
.share-link { display: flex; gap: 8px; }
.share-link .input { flex: 1; min-width: 0; height: 46px; font-size: 14px; color: var(--ink-2); background: var(--bg); }
.share-link .btn { height: 46px; padding: 0 18px; flex: none; min-width: 112px; }
@media (max-width: 720px) {
  .share-grid { grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: 8px; }
  .share-opt { padding: 10px 2px; font-size: 12px; }
  .share-link .input { font-size: 16px; }
}

/* Vehicle page: link to the pre-qualification form under the payment estimate */
.calc-prequal {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid var(--line-2); background: #FAFCFF; color: var(--ink); transition: border-color .2s, background .2s, box-shadow .25s var(--ease);
}
.calc-prequal:hover { text-decoration: none; border-color: var(--blue); background: var(--sky); box-shadow: var(--shadow-sm); }
.calc-prequal > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.calc-prequal strong { font-size: 15px; color: var(--blue-dark); }
.calc-prequal small { font-size: 13px; color: var(--ink-2); }
.calc-prequal > span:last-child { font-size: 20px; color: var(--blue); transition: transform .25s var(--ease); }
.calc-prequal:hover > span:last-child { transform: translateX(4px); }
