/* CarLot site chrome — one header for every page.
   Self-contained: no dependency on .cl-home or .cl-detail tokens, so both
   pages render it at identical sizes. */

/* display:contents so the promo and nav lay out against the page container,
   not this wrapper — otherwise the wrapper becomes the sticky nav's
   containing block and the nav releases after ~40px of scroll. */
.cl-chrome {
  display: contents;
}

/* Type declared on the rows themselves, so neither page's theme font scale
   can leak in and shift the header by a pixel or two. */
.cl-chrome__promo,
.cl-chrome__nav {
  font-family: "DM Sans", Avenir, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 16px;
  line-height: 24px;
}

.cl-chrome *,
.cl-chrome *::before,
.cl-chrome *::after {
  box-sizing: border-box;
}

.cl-chrome a,
.cl-chrome button {
  text-decoration: none !important;
  box-shadow: none !important;
  font-family: inherit;
}

/* flex rather than text-align so no inline strut leaks in from the parent */
.cl-chrome__promo {
  background: #0a0a0a;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  line-height: 18px;
}

.cl-chrome__promo-link {
  color: #fff !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0.01em;
}

.cl-chrome__promo-link:hover {
  opacity: 0.85;
}

/* Promo scrolls away; only the nav row pins */
.cl-chrome__nav {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 30;
  /* Transparent border reserves the space, so gaining the stroke on
     scroll can't shift the layout by a pixel. */
  border-bottom: 1px solid transparent;
  transition: border-color var(--v-t, 140ms ease), box-shadow var(--v-t, 140ms ease);
}

/* Light stroke appears only once the nav is floating over content
   (.is-stuck is toggled by vroomr-chrome.js) */
.cl-chrome__nav.is-stuck {
  border-bottom-color: var(--v-line, #e7e7e8);
  box-shadow: 0 1px 2px rgba(35, 31, 32, 0.04);
}

.cl-chrome__logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

/* Stacked lockup (car + wordmark). Taller than the old single-line mark
   so “next auto.” stays readable. */
.cl-chrome__logo img {
  display: block;
  height: 40px;
  width: auto;
}

@media (max-width: 600px) {
  .cl-chrome__logo img {
    height: 34px;
  }
}

.cl-chrome__links {
  display: none;
  gap: 20px;
  margin-left: 8px;
}

.cl-chrome__links a {
  color: var(--clc-ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
}

.cl-chrome__links a:hover {
  color: var(--clc-accent);
}

.cl-chrome__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cl-chrome__ghost {
  appearance: none;
  -webkit-appearance: none;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid var(--v-border);
  border-radius: 999px;
  background: #fff;
  color: var(--clc-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  cursor: pointer;
}

.cl-chrome__icon {
  appearance: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--clc-line);
  background: #fff;
  color: var(--clc-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}

/* ==========================================================
   Mobile menu
   .cl-chrome__links is display:none below 768px, so without this
   the four primary destinations were unreachable from the top of
   the page — the burger existed but had nothing behind it.
   ========================================================== */

.cl-chrome__scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(18, 18, 20, 0.4);
  border: 0;
  opacity: 0;
  transition: opacity var(--v-t, 140ms ease);
}

.cl-chrome__menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  width: min(86vw, 360px);
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -8px 0 24px rgba(18, 18, 20, 0.18);
  transform: translateX(100%);
  transition: transform var(--v-t, 180ms ease);
}

/* A class-level `display` outranks the UA rule behind the hidden attribute,
   so both panels need it restated or they'd sit open on first paint. */
.cl-chrome__menu[hidden],
.cl-chrome__scrim[hidden] {
  display: none;
}

.cl-chrome__menu.is-open {
  transform: translateX(0);
}

.cl-chrome__scrim.is-open {
  opacity: 1;
}

.cl-chrome__menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 14px 20px;
  border-bottom: 1px solid var(--clc-line);
}

.cl-chrome__menu-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--clc-ink);
}

.cl-chrome__menu-close {
  appearance: none;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--clc-line);
  border-radius: 999px;
  background: #fff;
  color: var(--clc-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
}


.cl-chrome__menu-links {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  overflow-y: auto;
  flex: 1 1 auto;
}

/* 48px rows: these are thumb targets, not a desktop nav strip. */
.cl-chrome__menu-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  color: var(--clc-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}


.cl-chrome__menu-foot {
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--clc-line);
}

.cl-chrome__menu-signin {
  appearance: none;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--v-accent, #593cfb);
  border-radius: var(--v-r, 8px);
  background: var(--v-accent, #593cfb);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}


body.cl-chrome-menu-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .cl-chrome__menu,
  .cl-chrome__scrim {
    transition: none;
  }
}

@media (min-width: 768px) {
  .cl-chrome__nav {
    padding: 16px 28px;
  }

  .cl-chrome__links {
    display: flex;
  }

  .cl-chrome__icon {
    display: none;
  }

  /* The toggle is gone at this width, so the panel must never be reachable. */
  .cl-chrome__menu,
  .cl-chrome__scrim {
    display: none;
  }
}

/* ==========================================================
   Footer
   Shared by every page that renders the header, so the two
   cannot drift apart. White field with a hairline top rule —
   the page background is white, and a grey slab here would
   reintroduce the tone we removed everywhere else.
   ========================================================== */

.cl-footer {
  font-family: "DM Sans", Avenir, "Helvetica Neue", Helvetica, sans-serif;
  margin-top: 64px;
  border-top: 1px solid var(--v-line, #e7e7e8);
  background: var(--v-surface, #fff);
  color: var(--v-ink, #121214);
}

.cl-footer *,
.cl-footer *::before,
.cl-footer *::after {
  box-sizing: border-box;
}

.cl-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 32px;
}

.cl-footer__logo {
  display: inline-flex;
  text-decoration: none;
}

.cl-footer__logo img {
  display: block;
  height: 36px;
  width: auto;
}

.cl-footer__blurb {
  margin: 14px 0 0;
  max-width: 34ch;
  font-size: var(--v-fs-sm, 14px);
  line-height: 20px;
  color: var(--v-muted, #59595b);
}

.cl-footer__where {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  font-size: var(--v-fs-xs, 12px);
  color: var(--v-tertiary, #767677);
}

/* Astra styles bare h2s; keep the column headings at label scale */
.cl-footer__heading.cl-footer__heading {
  margin: 0 0 12px;
  padding: 0;
  font-size: var(--v-fs-xs, 12px);
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--v-tertiary, #767677);
}

/* Astra's inline `.entry-content ul { padding-left: 20px }` outranks a single
   class, so the list items were indented past their column heading. */
.cl-footer__list.cl-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cl-footer__list li + li {
  margin-top: 10px;
}

.cl-footer__list a {
  font-size: var(--v-fs-sm, 14px);
  line-height: 20px;
  color: var(--v-ink, #121214);
  text-decoration: none;
}

.cl-footer__list a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cl-footer__list a:focus-visible,
.cl-footer__legal a:focus-visible,
.cl-footer__logo:focus-visible {
  outline: 2px solid var(--v-accent, #593cfb);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Destinations that do not exist yet. Rendered as text, never as a dead link,
   and badged so the state is obvious rather than looking like a broken link. */
.cl-footer__soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--v-fs-sm, 14px);
  line-height: 20px;
  color: var(--v-disabled-ink, #9a9a9d);
  cursor: default;
}

.cl-footer__soon em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--v-r-pill, 999px);
  background: var(--v-fill, #f4f4f4);
  color: var(--v-tertiary, #767677);
}

.cl-footer__bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  border-top: 1px solid var(--v-line, #e7e7e8);
}

.cl-footer__copy {
  margin: 0;
  font-size: var(--v-fs-xs, 12px);
  color: var(--v-muted, #59595b);
}

.cl-footer__legal.cl-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cl-footer__legal a,
.cl-footer__legal .cl-footer__soon {
  font-size: var(--v-fs-xs, 12px);
  color: var(--v-muted, #59595b);
  text-decoration: none;
}

.cl-footer__legal a:hover {
  color: var(--v-ink, #121214);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The legal row is compact; the Soon badge would crowd it */
.cl-footer__legal .cl-footer__soon em {
  display: none;
}

@media (min-width: 600px) {
  .cl-footer__inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .cl-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .cl-footer__inner {
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    padding: 48px 28px 36px;
  }

  .cl-footer__brand {
    grid-column: auto;
  }

  .cl-footer__bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
  }
}
