:root {
  color-scheme: light;
  --paper: #f7f6f2;
  --white: #fff;
  --ink: #191a1b;
  --muted: #5d5d5a;
  --line: #dfded8;
  --red: #c6372e;
  --red-hover: #a92a23;
  --brand-accent: #ed5246;
  --dark: #141516;
  --width: 1240px;
  --gutter: clamp(20px, 4.3vw, 68px);
  font: 16px/1.55 "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl { margin: 0; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #d44137; outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(var(--width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; left: 16px; top: 8px; padding: 10px 16px; background: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.loading { padding-block: 80px; }
main { flex: 1 0 auto; }
main:focus { outline: none; }

.site-header, .site-footer { background: var(--dark); color: #fbfaf8; }
.header-inner { min-height: 86px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 17px 28px; padding-block: 17px; }
.brand { width: fit-content; display: inline-flex; align-items: center; gap: 10px; color: #fff; font: 800 29px/1 "Segoe UI", Arial, sans-serif; letter-spacing: -.05em; }
.brand-mark { display: flex; align-items: center; gap: 3px; transform: skewX(-24deg); margin-inline: 3px; }
.brand-mark::before, .brand-mark::after { content: ""; width: 5px; height: 20px; background: var(--brand-accent); }
.brand-mark::before { height: 14px; align-self: flex-end; }
.brand-match { color: var(--brand-accent); }
.nav-list, .header-actions { display: flex; align-items: center; }
.nav-list { gap: clamp(18px, 3vw, 44px); }
.nav-list a { font-size: .94rem; font-weight: 650; color: #d5d5d2; white-space: nowrap; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: #fff; }
.nav-list a[aria-current="page"] { text-decoration: underline; text-underline-offset: 7px; text-decoration-color: #ed5246; text-decoration-thickness: 2px; }
.header-actions { justify-content: flex-end; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 47px; padding: 11px 18px; border: 1px solid transparent; border-radius: 5px; font-weight: 700; line-height: 1.22; white-space: nowrap; }
.button.small { min-height: 39px; padding: 8px 14px; font-size: .9rem; }
.header-login { border-color: var(--brand-accent); color: #fff; }
.header-login:hover { background: var(--red-hover); }
.button.red { color: white; background: var(--red); }
.button.red:hover { background: var(--red-hover); }
.button.dark { color: white; background: var(--dark); }
.button.dark:hover { background: #37383b; }
.button.outline { border-color: #c4c4bc; background: transparent; color: var(--ink); }
.button.outline:hover { border-color: var(--ink); background: #eeede7; }
.button.on-dark { border-color: #8d8d90; color: white; background: #1112164a; }
.button.on-dark:hover { border-color: #fff; background: #151619aa; }
.text-link, .quiet-button { width: fit-content; color: #a52d27; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.quiet-button { background: none; border: 0; padding: 4px 0; }
.button-row { display: flex; gap: 11px; align-items: center; flex-wrap: wrap; }

.hero { background: #25272b url("assets/hero.a4a9237cc81a.png") center 57% / cover no-repeat; color: #fff; isolation: isolate; position: relative; }
.hero::before, .auction-hero::before { content: ""; z-index: -1; position: absolute; inset: 0; background: linear-gradient(90deg, #101114e8 0%, #101114ac 26%, #10111428 57%, transparent 80%), linear-gradient(0deg, #11121658, transparent 36%); }
.hero .shell { min-height: clamp(460px, 40.5vw, 628px); display: flex; align-items: center; padding-block: 50px 84px; }
.hero-copy { width: min(600px, 57%); }
.hero h1 { font-size: clamp(64px, 6.55vw, 112px); line-height: .94; letter-spacing: -.06em; font-weight: 800; }
.hero h1 em { color: #fa5b4f; font-style: normal; }
.hero p { max-width: 430px; margin-block: 24px 26px; color: #ecedea; font-size: clamp(16px, 1.38vw, 20px); line-height: 1.48; }
.search-bar { display: grid; grid-template-columns: minmax(220px, 1.65fr) repeat(2, minmax(140px, 1fr)) auto; gap: 16px; align-items: end; }
.section { padding-block: 55px 60px; }
.section.home-garage { padding-bottom: 0; }
.section.alt { background: #eeede8; border-block: 1px solid #e1e0da; }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 20px; margin-bottom: 22px; }
.section-heading h2 { font-size: clamp(29px, 3.1vw, 43px); letter-spacing: -.057em; line-height: 1.08; }
.section-heading p { margin-top: 7px; color: var(--muted); }
.section-heading-links { display: flex; align-items: baseline; gap: 8px; font-size: .94rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { min-width: 0; overflow: hidden; display: block; background: var(--white); border: 1px solid var(--line); border-radius: 8px; transition: box-shadow .2s, border-color .2s; }
a.card:hover { box-shadow: 0 8px 22px #28241015; border-color: #c8c6bc; }
.card-media { position: relative; aspect-ratio: 1.72; overflow: hidden; background: #e4e1d9; }
.card-media .photo, .card-media .showroom { width: 100%; height: 100%; object-fit: cover; }
.showroom { background-image: url("assets/showroom.42eb2f037551.png"); background-size: 300% auto; background-repeat: no-repeat; }
.showroom.mazda { background-position: 0% 55%; }
.showroom.bmw { background-position: 50% 54%; }
.showroom.toyota { background-position: 100% 55%; }
.demo-tag { border-radius: 4px; display: inline-block; padding: 3px 7px; color: #fff; background: #1b1b1ce8; font-size: .84rem; font-weight: 650; line-height: 1.25; }
.card-media .demo-tag { position: absolute; left: 11px; bottom: 11px; }
.card-body { padding: 15px 17px 17px; }
.card-title { font-size: clamp(18px, 1.55vw, 23px); line-height: 1.2; letter-spacing: -.038em; overflow-wrap: anywhere; }
.card-facts { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-top: 6px; color: var(--muted); font-size: .91rem; }
.card-facts span + span::before { content: "·"; margin-right: 9px; color: #878581; }
.card-price { color: var(--ink); font-weight: 770; margin-top: 10px; font-size: 1.12rem; }
.card-offer-status { display: inline-block; margin-top: 8px; padding: 2px 8px; border-radius: 5px; background: #f9e9e6; color: #982e26; font-size: .85rem; font-weight: 700; }
.wanted-card { padding: 17px; min-height: 175px; }
.wanted-card .demo-tag { margin-bottom: 8px; color: #a52d27; background: #f7e8e4; }
.wanted-card .card-price { margin-top: 6px; }
.wanted-card .blurb { margin-top: 9px; color: var(--muted); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-cta { display: flex; justify-content: space-between; align-items: center; gap: clamp(20px, 3vw, 36px); }
.home-cta > .button { flex: none; }
.home-cta h2 { font-size: clamp(26px, 3.4vw, 42px); letter-spacing: -.05em; line-height: 1.08; }
.home-cta p { max-width: 66ch; color: var(--muted); margin-top: 11px; }
.home-explore-card { padding: 15px 12px 9px; }
.home-explore-card h3 { margin: 0 8px 6px; font-size: 1.15rem; letter-spacing: -.025em; }
.home-explore-links { list-style: none; padding: 0; }
.home-explore-links li + li { border-top: 1px solid var(--line); }
.home-explore-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 6px 8px;
  border-radius: 5px;
  font-size: .94rem;
  text-decoration: none;
}
.home-explore-links a::after {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-inline-end: 3px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.home-explore-links a:hover, .home-explore-links a:focus-visible { background: #f7e8e4; text-decoration: underline; }

.page { padding-block: 44px 68px; }
.page.narrow { max-width: 760px; }
.page-title { font-size: clamp(38px, 5.5vw, 72px); font-weight: 790; letter-spacing: -.065em; line-height: 1; overflow-wrap: anywhere; }
.page-intro { color: var(--muted); margin-top: 11px; font-size: 1.07rem; max-width: 62ch; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.breadcrumb { display: inline-block; color: #a52d27; font-weight: 650; margin-bottom: 18px; }
.filters, .panel, .empty { border: 1px solid var(--line); background: var(--white); border-radius: 8px; }
.filters { padding: 16px; margin-bottom: 18px; }
.result-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; color: var(--muted); margin-bottom: 16px; }
.empty { padding: 28px; }
.empty h2 { font-size: 1.3rem; }
.empty p { margin: 7px 0 14px; color: var(--muted); }
.panel { padding: clamp(18px, 3.7vw, 31px); }
.panel h2 { font-size: clamp(22px, 2.8vw, 32px); line-height: 1.15; letter-spacing: -.045em; }
.panel + .panel, .stack > * + * { margin-top: 19px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(275px, .9fr); gap: 24px; align-items: start; }
.detail-gallery .card-media { border-radius: 9px; }
.detail-gallery .card-media.uploaded { background: #2b2b2c; }
.detail-gallery .uploaded .photo { object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.thumb { border: 2px solid transparent; background: #e6e4dc; border-radius: 6px; padding: 0; overflow: hidden; aspect-ratio: 1.3; }
.thumb[aria-current="true"] { border-color: var(--red); }
.thumb .photo { width: 100%; height: 100%; object-fit: cover; }
.detail-aside .money { font-size: clamp(27px, 4vw, 44px); font-weight: 790; letter-spacing: -.052em; line-height: 1.12; }
.detail-aside .button { width: 100%; margin-top: 17px; }
.facts { margin-block: 14px 0; }
.facts div { display: flex; gap: 14px; justify-content: space-between; padding-block: 9px; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 650; text-align: right; overflow-wrap: anywhere; }
.story h3 { margin-top: 17px; font-size: 1.05rem; }
.story p, .prewrap { margin-top: 5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.story h3:first-of-type { margin-top: 11px; }
.info-copy p, .info-copy .button-row { margin-top: 10px; overflow-wrap: anywhere; }
.info-copy h3, .policy h2 { margin-top: 19px; }
.transfer-checklist { display: grid; gap: 9px; margin-top: 10px; }
.transfer-checklist input { flex: none; margin-inline: 0; }
.policy h2 { font-size: 1.35rem; }
.policy > p:first-child { margin-top: 0; }
.notices { list-style: none; padding: 14px 0 0; display: grid; gap: 8px; }
.errorlist { list-style: none; padding: 0; color: #a52620; font-weight: 650; grid-column: 1 / -1; }
.below-content, .pagination { margin-top: 18px; }
.browse-filters .search-bar { grid-template-columns: minmax(0, 1.4fr) repeat(5, minmax(0, 1fr)) auto; }
.auth-panel h1 { font-size: clamp(32px, 4vw, 50px); letter-spacing: -.06em; line-height: 1.1; }
.auth-panel form, .auth-panel form p, .auth-panel > p, .auth-panel h1 { margin-block: 0 13px; }
.auth-panel form p label { display: block; font-weight: 700; }
.auth-panel form input:not([type="checkbox"], [type="hidden"], [type="radio"]) { display: block; width: 100%; max-width: 440px; min-height: 43px; padding: 9px 10px; border: 1px solid #cac8bf; border-radius: 5px; }
.auth-panel button { display: inline-flex; min-height: 43px; padding: 8px 16px; border: 0; border-radius: 5px; background: var(--red); color: #fff; font-weight: 700; }
.auth-panel button + button { margin-left: 6px; }
.auth-panel a { color: #a52d27; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 960px) {
  .browse-filters .search-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.muted { color: var(--muted); }
.inline-notice { border-radius: 5px; background: #f2eee7; color: #49453e; padding: 10px 12px; }
.auction-hero { position: relative; isolation: isolate; color: white; background: #26272a url("assets/hero.a4a9237cc81a.png") center 53% / cover; padding-block: 95px; }
.auction-hero .page-intro { color: #eeede9; margin-bottom: 17px; }
.interest { max-width: 670px; }

.form-stack { display: grid; gap: 17px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.span { grid-column: 1 / -1; }
.field { display: grid; align-content: start; gap: 5px; min-width: 0; font-size: .89rem; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; padding: 9px 10px; min-height: 43px; border: 1px solid #cac8bf; border-radius: 5px; color: var(--ink); font-weight: 400; font-size: 1rem; background: #fff; }
.field textarea { min-height: 94px; resize: vertical; }
.sale-listing-form :is(input, textarea)::placeholder { color: #6d6c67; opacity: 1; }
.wanted-request-preferences { border-top: 1px solid var(--line); padding-top: 18px; }
.field small, .help { color: var(--muted); font-size: .89rem; font-weight: 400; }
.field input[type="file"] { font-size: .93rem; }
.check { display: flex; align-items: start; gap: 9px; }
.check input { margin-top: 6px; accent-color: var(--red); }
.error { color: #a52620; font-weight: 700; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.steps li { border-top: 3px solid #dedcd3; color: var(--muted); padding-block: 7px; font-size: .91rem; font-weight: 650; }
.steps li[aria-current="step"] { border-color: var(--red); color: #a52d27; }
.steps li.done { border-color: #655d53; color: var(--ink); }
.photo-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.photo-slot { min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 8px; color: var(--muted); font-size: .87rem; overflow-wrap: anywhere; }
.photo-slot .photo { width: 100%; aspect-ratio: 1.45; object-fit: cover; margin-bottom: 6px; border-radius: 4px; }
.photo-slot .slot-empty { min-height: 42px; display: grid; place-items: center; color: #6b675f; background: #f2f0eb; border-radius: 4px; margin-bottom: 6px; }
.photo-slot button { font-size: .83rem; }
.listing-photo-guide > summary { width: fit-content; color: var(--ink); font-weight: 750; font-size: 1.2rem; cursor: pointer; }
.listing-photo-guide[open] > summary { margin-bottom: 10px; }
.listing-photo-examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-block: 15px; }
.listing-photo-examples figure { margin: 0; }
.listing-photo-examples figcaption { margin-top: 6px; font-weight: 700; font-size: .9rem; }
.listing-photo-examples figcaption span { display: block; color: var(--red-hover); font-size: .82rem; }
.listing-photo-example { aspect-ratio: 4 / 3; border-radius: 6px; background: #edece7 url("assets/mx5-photo-guide.ad92ab193300.jpg") 0 0 / 300% 200% no-repeat; }
.listing-photo-examples > :nth-child(2) .listing-photo-example { background-position: 50% 0; }
.listing-photo-examples > :nth-child(3) .listing-photo-example { background-position: 100% 0; }
.listing-photo-examples > :nth-child(4) .listing-photo-example { background-position: 0 100%; }
.listing-photo-examples > :nth-child(5) .listing-photo-example { background-position: 50% 100%; }
.listing-photo-examples > :nth-child(6) .listing-photo-example { background-position: 100% 100%; }
.photo-actions { display: flex; flex-wrap: wrap; gap: 0 10px; }
.preview-wrap { margin-top: 12px; }
.preview-wrap .card { max-width: 390px; }
.preview-wrap .story { margin-block: 12px; }
.account-list { list-style: none; padding: 0; }
.account-list li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.member-avatar { flex: none; display: grid; place-items: center; border-radius: 50%; background: #f9e9e6; color: #982e26; font-weight: 750; }
.toast { position: fixed; z-index: 3; right: var(--gutter); bottom: 20px; max-width: calc(100% - var(--gutter) * 2); padding: 12px 17px; border-radius: 6px; background: #202122; color: #fff; box-shadow: 0 8px 28px #0003; }

.site-footer .shell { display: flex; justify-content: space-between; align-items: start; gap: 24px; padding-block: 29px 25px; }
.site-footer .brand { font-size: 25px; }
.footer-links { display: flex; gap: 8px 22px; flex-wrap: wrap; color: #e1e1dd; font-size: .9rem; }
.footer-links a:hover { text-decoration: underline; }
.footer-tagline { color: #e1e1dd; font-size: .94rem; margin-top: 8px; }
.footer-tagline em { color: var(--brand-accent); font-style: normal; }

@media (max-width: 890px) {
  .header-inner { column-gap: 12px; }
  .nav-list { gap: 15px; }
  .card-grid { gap: 13px; }
  .search-bar { grid-template-columns: 1.3fr 1fr 1fr auto; gap: 9px; }
}

@media (max-width: 800px) {
  .header-inner { grid-template-columns: 1fr 1fr; }
  .nav-list { grid-row: 2; grid-column: span 2; justify-content: space-between; gap: 8px; }
  .nav-list a { font-size: .88rem; }
}

@media (max-width: 690px) {
  .listing-photo-examples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { background-position: 62% 60%; }
  .hero::before { background: linear-gradient(90deg, #101114dc, #10111444 75%), linear-gradient(0deg, #10111472, transparent 42%); }
  .hero .shell { min-height: 485px; align-items: start; padding-block: 55px 75px; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(55px, 12vw, 80px); }
  .hero p { max-width: 300px; }
  .search-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding-block: 34px; }
  .section-heading { align-items: start; gap: 7px; margin-bottom: 15px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-body { padding: 11px; }
  .card-facts { gap: 5px; font-size: .87rem; }
  .card-facts span + span::before { margin-right: 5px; }
  .home-cta, .site-footer .shell { align-items: start; flex-direction: column; }
  .home-explore-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(12px, 2vw, 20px); }
  .page { padding-block: 32px 45px; }
  .page-heading { align-items: start; flex-direction: column; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid .detail-aside { grid-row: 2; }
}

@media (max-width: 410px) {
  .header-inner .brand { font-size: 24px; gap: 7px; }
  .nav-list { gap: 5px; }
  .nav-list a { font-size: .8rem; }
  .card-grid { grid-template-columns: 1fr; }
  .fields, .photo-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .shell { min-height: 447px; }
  .hero .button { min-height: 42px; padding-inline: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}
