/*! AutoVue pSEO design system -- shared-ads/av-system.css
 * ---------------------------------------------------------------------------
 * One stylesheet for all 10 sites. Each site ships its own copy of this file
 * and the ONLY line that differs between copies is --site-accent, set in the
 * SITE ACCENT block at the bottom.
 *
 * Two palettes, kept strictly apart:
 *   --site-accent   the site's own colour. Headers, breadcrumbs, calculators,
 *                   auction tables, anything that belongs to the site.
 *   --av-purple     AutoVue purple. ONLY on AutoVue modules: lead forms, the
 *                   quote-sheet box, banner / sticky / in-content CTAs, the
 *                   header trial button and the "by AutoVue" top bar.
 *
 * This file is presentation only. It adds no script, changes no markup
 * behaviour, and every element id the JS depends on is untouched.
 * ---------------------------------------------------------------------------
 */

/* ── FONT ──────────────────────────────────────────────────────────────────
 * Figtree, with a metric-matched fallback so the swap does not move anything.
 * The size-adjust below was measured against Figtree's own metrics: while the
 * webfont loads, system-ui renders at the same box size, so there is no shift
 * when it arrives (keeps CLS flat, which plain font-display:swap does not).
 */
@font-face {
  font-family: "Figtree Fallback";
  src: local("Helvetica Neue"), local("Arial"), local("system-ui");
  size-adjust: 97.5%;
  ascent-override: 95%;
  descent-override: 24%;
  line-gap-override: 0%;
}

:root {
  /* ink + surfaces */
  --av-ink: #19182C;
  --av-body: #45435A;
  --av-muted: #5E5C72;
  --av-border: #ECEAF2;
  --av-input-border: #D9D6E6;
  --av-panel: #F8F7FB;
  --av-page: #FFFFFF;

  /* AutoVue purple -- AutoVue modules only */
  --av-purple: #6E5FA6;
  --av-purple-hover: #5B4D96;
  --av-purple-tint: #F5F3FA;
  --av-purple-chip: #EEEAF7;

  /* the site's own colour; overridden per site at the bottom of this file */
  --site-accent: #19182C;

  /* shape */
  --av-r-input: 10px;
  --av-r-card: 16px;
  --av-r-pill: 999px;

  /* layout */
  --av-container: 1180px;
  --av-gutter: 24px;

  --av-font: "Figtree", "Figtree Fallback", system-ui, -apple-system,
             "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ── BASE ────────────────────────────────────────────────────────────────── */

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--av-page);
  color: var(--av-body);
  font-family: var(--av-font);
  font-size: 17px;
  line-height: 1.55;
  /* no page-level horizontal scroll, ever */
  overflow-x: hidden;
}

body, input, select, textarea, button { font-family: var(--av-font); }

h1, h2, h3, h4 {
  color: var(--av-ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 28px; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 20px; font-weight: 700; }
p  { margin: 0 0 1em; }

a { color: var(--site-accent); }

:where(a, button, input, select, summary):focus-visible {
  outline: 2px solid var(--av-purple);
  outline-offset: 2px;
  border-radius: 4px;
}

.av-container {
  max-width: var(--av-container);
  margin: 0 auto;
  padding-left: var(--av-gutter);
  padding-right: var(--av-gutter);
}

/* Wide things (auction tables, fee tables) scroll inside their own box rather
 * than pushing the page sideways. */
.av-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--av-border);
  border-radius: var(--av-r-card);
}
.av-table-scroll > table { margin: 0; min-width: 640px; }

/* ── TOP BAR ─────────────────────────────────────────────────────────────── */

.av-topbar {
  background: var(--av-purple-tint);
  border-bottom: 1px solid var(--av-border);
  color: var(--av-muted);
  font-size: 13px;
}
.av-topbar .av-container {
  /* block, not flex: as a flex row the trailing text became its own item and
     opened a gap before it */
  display: block;
  min-height: 36px;
  padding-top: 9px;
  padding-bottom: 9px;
}
.av-topbar a {
  color: var(--av-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.av-topbar a:hover { color: var(--av-ink); }
.av-topbar .avs-topbar-cta { margin-left: 4px; font-weight: 700; white-space: nowrap; }
/* Phones: the strip stays one line; the header pill right below carries the
   same CTA, and its label drops the "a" ("Book demo") to keep one row. */
@media (max-width: 767px) {
  .av-topbar .avs-topbar-cta { display: none; }
  .av-t-full { display: none; }
}

/* ── HEADER ──────────────────────────────────────────────────────────────── */

.av-header {
  background: var(--av-page);
  border-bottom: 1px solid var(--av-border);
}
.av-header .av-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.av-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--av-ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.01em;
  margin-right: auto;
}
.av-brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: var(--site-accent);
  display: grid;
  place-items: center;
}
.av-brand-mark svg { width: 20px; height: 20px; display: block; }

.av-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
}
.av-nav a {
  color: var(--av-body);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  /* 44px tap target without inflating the visual row */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
}
.av-nav a:hover { color: var(--av-ink); text-decoration: underline; }

/* The one purple thing in the header: it is an AutoVue module. */
.av-trial-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--av-r-pill);
  background: var(--av-purple);
  color: #fff !important;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none !important;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
}
.av-trial-btn:hover { background: var(--av-purple-hover); }

@media (max-width: 767px) {
  /* one row: wordmark on the left, a small demo pill on the right. The nav
     links drop out -- the States picker now lives under the H1. */
  .av-header .av-container {
    flex-wrap: nowrap;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 12px;
  }
  .av-brand { font-size: 16px; margin-right: auto; min-width: 0; }
  .av-brand > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .av-nav { display: none; }
  .av-trial-btn {
    width: auto;
    flex: 0 0 auto;
    padding: 0 14px;
    font-size: 14px;
    min-height: 40px;
  }
}

/* the States picker, now under the H1 rather than in the header */
.av-statepicker { margin: 0 0 18px; }
.av-statepicker .nav-select { display: flex; align-items: center; gap: 8px; }
.av-statepicker select { min-height: 44px; border-radius: var(--av-r-input); }

/* ── BREADCRUMBS + UPDATED ───────────────────────────────────────────────── */

.av-pagemeta {
  border-bottom: 1px solid var(--av-border);
  background: var(--av-page);
}
.av-pagemeta .av-container {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 14px;
  color: var(--av-muted);
}
.av-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.av-breadcrumb a { color: var(--site-accent); text-decoration: none; }
.av-breadcrumb a:hover { text-decoration: underline; }
.av-breadcrumb span[aria-hidden] { color: var(--av-muted); }
.av-updated { margin-left: auto; color: var(--av-muted); font-size: 13px; }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */

.av-footer {
  background: var(--av-ink);
  color: #C9C6D8;
  margin-top: 56px;
  padding: 36px 0 44px;
  font-size: 14px;
}
.av-footer .av-container { display: grid; gap: 14px; }
.av-footer a { color: #E6E3F1; text-decoration: underline; text-underline-offset: 2px; }
.av-footer a:hover { color: #fff; }
.av-footer-brand { color: #fff; font-weight: 700; font-size: 15px; }
.av-footer-note { color: #A6A2BC; max-width: 70ch; }
.av-footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.av-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 14px;
  color: #A6A2BC;
}
/* do-not-sell.js appends its own link into this footer; make it legible on
 * dark and give it a real tap target. Its id and behaviour are untouched. */
.av-footer #av-dns-link {
  color: #E6E3F1 !important;
  font-size: 14px !important;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.av-footer #av-dns-link:hover { color: #fff !important; }

/* ── AUTOVUE MODULES ─────────────────────────────────────────────────────── */
/* Lead form, modal, quote-sheet box, banner / sticky / in-content CTAs.
 * Purple lives here and nowhere else. */

.av-module {
  background: #fff;
  border: 2px solid var(--av-purple);
  border-radius: var(--av-r-card);
  overflow: hidden;
  color: var(--av-body);
}
.av-module-head {
  background: var(--av-purple);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
  padding: 12px 18px;
}
.av-module-head .av-module-tag { font-weight: 500; opacity: .85; }
.av-module-body { padding: 18px; }
.av-module-body > :last-child { margin-bottom: 0; }

.av-field-row { display: flex; gap: 10px; align-items: stretch; }
.av-field-row > input,
.av-field-row > select {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 16px;                 /* 16px stops iOS zooming the page */
  color: var(--av-ink);
  background: #fff;
  border: 1px solid var(--av-input-border);
  border-radius: var(--av-r-input);
}
.av-field-row > input::placeholder { color: #6B6880; }
.av-field-row > input:focus { border-color: var(--av-purple); outline: none; }
.av-field-row > button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--av-r-input);
  background: var(--av-purple);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.av-field-row > button:hover { background: var(--av-purple-hover); }
.av-field-row > button[disabled] { opacity: .6; cursor: default; }

@media (max-width: 480px) {
  .av-field-row { flex-direction: column; }
  .av-field-row > button { width: 100%; }
}

.av-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--av-muted);
}
.av-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--av-purple);
}
.av-chip {
  display: inline-block;
  background: var(--av-purple-chip);
  color: var(--av-purple-hover);
  border-radius: var(--av-r-pill);
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
}

/* ── SITE TOOLS ──────────────────────────────────────────────────────────── */
/* Calculators, auction tables and other site-owned tools keep the site's
 * colour. Explicitly not purple. */

.av-site-tool { border: 1px solid var(--av-border); border-radius: var(--av-r-card); background: #fff; }
.av-site-tool .av-site-btn,
.av-site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--av-r-input);
  background: var(--site-accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ── SITE ACCENT ─────────────────────────────────────────────────────────── */
/* The only block that differs between the 10 copies of this file. */
:root { --site-accent: #15803D; }

/* every field's example text: an example, and still 5.36:1 on white */
input::placeholder, textarea::placeholder { color: #6B6880; opacity: 1; }

/* conversion shell (av-shell.css): hero tint, hairline, hover */
:root {
  --site-tint: #EFF6F1;
  --site-line: #BDDBC9;
  --site-accent-text: #15803D;
  --site-accent-hover: #116932;
}

/* carfee consumer view (tools/grow.py): AutoVue modules show only in dealer mode */
html[data-cfc-mode="buyer"] .avs-av--rail,
html[data-cfc-mode="buyer"] .avs-av--inline,
html[data-cfc-mode="buyer"] #avs-lead,
html[data-cfc-mode="buyer"] .avs-mbar { display: none !important; }
html[data-cfc-mode="dealer"] [data-cfc-buyer-only] { display: none !important; }
.cfc-dealer-link { margin: 0; font-size: 14px; color: var(--av-muted); }
.cfc-mode { display: flex; gap: 8px; background: #eef0f6; border-radius: 12px; padding: 6px; margin: 0 0 18px; box-sizing: border-box; }
.cfc-mode button { flex: 1; min-height: 44px; padding: 11px 14px; border: 0; border-radius: 9px; background: transparent; font: 600 14px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #4a4a5a; cursor: pointer; }
.cfc-mode button[aria-pressed="true"] { background: #fff; color: var(--site-accent-text, #15803D); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
@media (max-width: 767px) {
  html.avs[data-cfc-mode="buyer"] body { padding-bottom: env(safe-area-inset-bottom, 0px); }
}

/* nearby links (tools/grow.py) */
.avs-nearby ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.avs-nearby a { display: block; padding: 10px 14px; border: 1px solid var(--av-border); border-radius: 10px; background: var(--av-panel); text-decoration: none; color: var(--av-ink); line-height: 1.4; }
.avs-nearby a:hover { border-color: var(--site-accent); }
.avs-nearby strong { display: block; color: var(--site-accent-text, var(--site-accent)); font-weight: 600; }
.avs-nearby span { display: block; font-size: 14px; color: var(--av-muted); }

/* 404 page (tools/grow.py) */
.avs-404-results { list-style: none; margin: 12px 0 0; padding: 0; }
.avs-404-results li { padding: 8px 0; border-bottom: 1px solid var(--av-border); }
.avs-404 { padding-top: 24px; padding-bottom: 40px; }
.avs-daylist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.avs-daylist a { display: block; padding: 12px 14px; border: 1px solid var(--av-border); border-radius: 10px; background: var(--av-panel); text-decoration: none; color: var(--av-ink); }
.avs-daylist strong { display: block; color: var(--site-accent-text, var(--site-accent)); }
.avs-daylist span { font-size: 14px; color: var(--av-muted); }
.avs-byday-state { margin-bottom: 18px; }
.avs-byday-state .avs-count { font-size: 14px; font-weight: 500; color: var(--av-muted); margin-left: 6px; }
.avs-byday-nav { margin: 0 0 16px; }

/* carfee consumer header (tools/grow.py) */
.cfc-for-dealers { display: none; }
html[data-cfc-mode="buyer"] .av-header .av-trial-btn,
html[data-cfc-mode="buyer"] .av-topbar .avs-topbar-cta { display: none !important; }
html[data-cfc-mode="buyer"] .cfc-for-dealers { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; font-size: 15px; font-weight: 600; color: var(--site-accent-text, var(--site-accent)); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
html[data-cfc-mode="buyer"] .cfc-for-dealers:hover { color: var(--site-accent-hover, var(--site-accent)); }
@media (max-width: 767px) {
  html[data-cfc-mode="buyer"] .cfc-for-dealers { font-size: 14px; min-height: 40px; }
}

/* Figtree, self-hosted (tools/grow.py) */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 800;
  font-display: optional;
  src: url(/shared-ads/fonts/figtree-v9-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* city out-the-door estimate (tools/carfee_cities.py) */
.avs-city-calc .field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 10px; }
.avs-city-calc label { display: block; font-size: 14px; font-weight: 600; color: var(--av-ink); margin-bottom: 4px; }
.avs-city-calc input, .avs-city-calc select { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--av-border); border-radius: 8px; font: inherit; background: var(--av-bg, #fff); color: var(--av-ink); }
.avs-city-calc small { display: block; margin-top: 4px; font-size: 13px; }
.avs-city-calc button { margin-top: 4px; padding: 10px 16px; border: 0; border-radius: 999px; font: inherit; font-weight: 700; background: var(--site-accent); color: #fff; cursor: pointer; }
.avs-city-out table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.avs-city-out td { padding: 6px 0; border-bottom: 1px solid var(--av-border); color: var(--av-body); }
.avs-city-out td.r { text-align: right; white-space: nowrap; }
.avs-city-out tr.x td { color: var(--av-muted); }
.avs-city-out tfoot td { font-weight: 700; color: var(--av-ink); border-bottom: 0; }
.avs-np { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--av-panel); border: 1px solid var(--av-border); color: var(--av-body); font-size: 14px; font-weight: 600; }

/* answer-first summary (tools/answers.py) */
.avs-answer { font-size: 18px; line-height: 1.6; color: var(--av-ink); font-weight: 500; margin: 14px 0 6px; max-width: 46em; }

/* visible updated date (tools/page_dates.py) */
.avs-updated { font-size: 14px; color: var(--av-muted); margin: 0 0 6px; }
