:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f7f7f5;
  --text: #070707;
  --muted: #686863;
  --line: rgba(7, 7, 7, 0.12);
  --line-strong: rgba(7, 7, 7, 0.24);
  --accent: #070707;
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.11);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
}

body.longhorn {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #fffaf5;
  --text: #120b05;
  --muted: #765b43;
  --line: rgba(191, 87, 0, 0.18);
  --line-strong: rgba(191, 87, 0, 0.38);
  --accent: #bf5700;
  --shadow: 0 22px 54px rgba(191, 87, 0, 0.13);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.25rem 1.25rem;
  width: 100%;
  min-height: 78px;
  margin: 0 auto;
  padding: 18px max(20px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid rgba(191, 87, 0, 0.1);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(18, 11, 5, 0.04);
}

.brand {
  display: inline-flex;
  align-items: center;
  grid-column: 1;
  grid-row: 1;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(230px, 24vw, 330px);
  height: auto;
  object-fit: contain;
}

.longhorn-logo {
  display: block;
  width: clamp(360px, 36vw, 560px);
  height: 132px;
  object-fit: contain;
  object-position: center;
}

.header-actions {
  display: contents;
}

.header-contact {
  display: grid;
  grid-column: 1;
  grid-row: 2;
  justify-self: center;
  justify-items: center;
  gap: 0.18rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.header-contact a {
  text-decoration: none;
  transition: color 180ms ease;
}

.header-contact a:hover,
.header-contact a:focus-visible {
  color: var(--accent);
  outline: none;
}

.tabs {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f4f2;
}

.nav-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-menu::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  z-index: 20;
  display: grid;
  gap: 2px;
  min-width: max-content;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f4f2;
  box-shadow: 0 18px 42px rgba(191, 87, 0, 0.13);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-menu:hover .nav-dropdown,
.nav-menu:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 36px;
  min-width: 100%;
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  background: #ffffff;
  color: var(--text);
  outline: none;
}

.tab {
  min-height: 36px;
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease;
}

.tab:hover,
.tab:focus-visible,
.tab.active {
  color: var(--text);
  background: #ffffff;
  outline: none;
}

.longhorn .tab.active {
  color: #ffffff;
  background: var(--accent);
}

main,
.site-footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.panel {
  display: none;
  min-height: calc(100vh - 132px);
  padding: clamp(18px, 3vw, 42px) 0 48px;
}

.panel.active {
  display: block;
}

.rentals-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(460px, 1fr);
  align-items: start;
  gap: clamp(28px, 6vw, 84px);
}

.intro-copy {
  position: sticky;
  top: 112px;
  padding-top: 0.5rem;
}

.eyebrow,
.card-label {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 560px;
  margin-bottom: 1.1rem;
  font-size: clamp(2.35rem, 4.7vw, 4.75rem);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 0.96;
}

.lede {
  max-width: 430px;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.7;
}

.opening-note {
  display: inline-flex;
  align-items: center;
  max-width: 430px;
  margin: 0 0 1rem;
  padding: 0.5rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.home-actions {
  display: grid;
  width: 100%;
  gap: 0.65rem;
  justify-items: stretch;
}

.home-actions .contact-cta {
  width: 100%;
}

.featured-heading {
  margin: 0 0 0.25rem;
  color: var(--text);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 900;
  line-height: 1;
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.contact-cta:hover,
.contact-cta:focus-visible {
  border-color: rgba(7, 7, 7, 0.34);
  background: #f5f5f3;
  outline: none;
}

.longhorn .contact-cta:hover,
.longhorn .contact-cta:focus-visible {
  border-color: var(--line-strong);
  background: #fff3e8;
}

.fleet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.why-longhorn {
  display: grid;
  gap: 1rem;
  padding: clamp(10px, 2vw, 18px) 0 clamp(14px, 2.5vw, 22px);
}

.why-longhorn-heading {
  display: block;
  width: 100%;
  text-align: center;
}

.why-longhorn-heading span {
  display: none;
}

.why-longhorn h2 {
  width: 100%;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.why-longhorn-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
}

.why-longhorn-points article {
  display: grid;
  gap: 0.85rem;
  align-items: start;
  justify-items: center;
  text-align: center;
}

.why-longhorn-points article span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(191, 87, 0, 0.32);
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(191, 87, 0, 0.12);
}

.why-longhorn-points p {
  max-width: 210px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.78rem, 1vw, 0.88rem);
  font-weight: 750;
  line-height: 1.45;
}

.inventory-page-grid {
  grid-template-columns: 1fr;
  align-items: stretch;
  margin-top: clamp(24px, 4vw, 42px);
}

.inventory-page-grid .vehicle-card {
  grid-template-columns: minmax(240px, 0.7fr) minmax(320px, 1fr);
  min-height: 100%;
}

.inventory-page-grid .vehicle-media {
  min-height: 0;
  height: clamp(190px, 22vw, 250px);
}

.inventory-page-grid .vehicle-media img {
  padding: 16px;
}

.inventory-page-grid .vehicle-details {
  align-content: start;
  gap: 0.9rem;
  padding: clamp(16px, 2vw, 22px);
}

.inventory-page-grid .vehicle-details h2 {
  font-size: clamp(1.08rem, 1.55vw, 1.36rem);
  line-height: 1.08;
}

.inventory-page-grid .vehicle-trim {
  font-size: 0.82rem;
}

.inventory-page-grid .vehicle-price {
  font-size: 0.86rem;
}

.inventory-page-grid .specs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.8rem;
}

.inventory-page-grid .specs dt {
  font-size: 0.68rem;
}

.inventory-page-grid .specs dd {
  font-size: 0.82rem;
}

.inventory-page-grid .vehicle-card-actions {
  gap: 0.65rem;
}

.inventory-page-grid .carfax-link,
.inventory-page-grid .book-link {
  min-height: 36px;
  font-size: 0.76rem;
}

.page-heading {
  max-width: 720px;
}

.inventory-search {
  display: grid;
  gap: 0.5rem;
  max-width: 520px;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inventory-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  letter-spacing: 0;
  padding: 0.9rem 1rem;
  text-transform: none;
}

.inventory-type-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.inventory-type-filter label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.inventory-type-filter input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.inventory-empty-message {
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 800;
}

.vehicle-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(250px, 1fr);
  overflow: hidden;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-decoration: none;
  transform: translateY(0);
  transition: transform 200ms ease, border-color 200ms ease, background-color 200ms ease;
}

.vehicle-card:hover,
.vehicle-card:focus-visible {
  border-color: var(--line-strong);
  background: #ffffff;
  outline: none;
  transform: translateY(-3px);
}

.vehicle-card.coming-soon {
  color: rgba(7, 7, 7, 0.76);
}

.vehicle-media {
  position: relative;
  min-height: 260px;
  background: #ffffff;
}

.vehicle-media::after {
  display: none;
}

.vehicle-media img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 22px;
  cursor: pointer;
  object-fit: contain;
}

.coming-soon .vehicle-media img {
  filter: grayscale(0.25) brightness(0.78);
}

.status-pill {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: rgba(5, 5, 5, 0.68);
  color: #ffffff;
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.status-pill.available {
  background: rgba(255, 255, 255, 0.92);
  color: #070707;
}

.vehicle-details {
  display: grid;
  gap: 1.25rem;
  align-content: center;
  padding: clamp(20px, 3vw, 30px);
  background: var(--surface-soft);
}

.vehicle-details h2 {
  min-width: 0;
  margin-bottom: 0;
  font-size: clamp(1.28rem, 2.1vw, 1.95rem);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.vehicle-trim {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.vehicle-card-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem 1rem;
  align-items: start;
}

.vehicle-card-heading .card-label {
  grid-column: 1 / -1;
}

.vehicle-price {
  justify-self: end;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  background: var(--text);
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
}

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 0.55rem;
  margin: 0;
}

.specs div {
  min-width: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
}

.specs dt {
  margin-bottom: 0.28rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: normal;
  word-break: keep-all;
}

.specs dd {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.vehicle-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.carfax-link,
.carfax-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  width: fit-content;
  border: 1px solid #265bac;
  border-radius: 6px;
  background: #265bac;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  padding: 0 0.85rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.carfax-link:not(.disabled):hover,
.carfax-link:not(.disabled):focus-visible,
.carfax-detail-link:not(.disabled):hover,
.carfax-detail-link:not(.disabled):focus-visible {
  border-color: #1e4b91;
  background: #1e4b91;
  box-shadow: 0 10px 22px rgba(21, 60, 122, 0.28);
  outline: none;
  transform: translateY(-2px);
}

.carfax-link:not(.disabled):active,
.carfax-detail-link:not(.disabled):active {
  box-shadow: 0 3px 8px rgba(21, 60, 122, 0.2);
  transform: translateY(0);
}

.carfax-link.disabled {
  border-color: var(--line);
  background: #ffffff;
  color: var(--muted);
  cursor: default;
  opacity: 0.55;
}

.carfax-detail-link.disabled {
  border-color: var(--line);
  background: #ffffff;
  color: var(--muted);
  cursor: default;
  opacity: 0.55;
}

.book-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: fit-content;
  padding: 0 1rem;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 900;
}

.longhorn .book-link {
  background: var(--accent);
}

.vehicle-card-actions .book-link,
.vehicle-purchase-actions .book-link {
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.vehicle-card-actions .book-link:hover,
.vehicle-card-actions .book-link:focus-visible,
.vehicle-purchase-actions .book-link:hover,
.vehicle-purchase-actions .book-link:focus-visible {
  background: var(--accent-dark);
  box-shadow: 0 10px 22px rgba(74, 41, 14, 0.24);
  outline: none;
  transform: translateY(-2px);
}

.vehicle-card-actions .book-link:active,
.vehicle-purchase-actions .book-link:active {
  box-shadow: 0 3px 8px rgba(74, 41, 14, 0.18);
  transform: translateY(0);
}

.muted-link {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

.dealer-card .status-pill {
  background: rgba(191, 87, 0, 0.9);
}

.dealer-card .status-pill.available {
  background: var(--accent);
  color: #ffffff;
}

.inventory-empty {
  min-height: 280px;
}

.inventory-empty .vehicle-details {
  min-height: 280px;
  background:
    linear-gradient(135deg, rgba(191, 87, 0, 0.08), transparent 42%),
    var(--surface-soft);
}

.inventory-empty h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.empty-copy {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.12rem);
  line-height: 1.65;
}

.vehicle-detail-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.vehicle-detail-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  touch-action: pan-y pinch-zoom;
}

.vehicle-detail-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: clamp(18px, 3vw, 34px);
  cursor: zoom-in;
  object-fit: contain;
}

.vehicle-photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(66px, 86px));
  gap: 0.5rem;
  padding: 0 1rem 1rem;
}

.vehicle-photo-strip button {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.vehicle-photo-strip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.photo-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 6px;
  background: rgba(7, 7, 7, 0.58);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.photo-arrow:hover,
.photo-arrow:focus-visible {
  background: var(--accent);
  outline: none;
}

.photo-arrow-prev {
  left: 14px;
}

.photo-arrow-next {
  right: 14px;
}

.photo-viewer-open {
  overflow: hidden;
}

.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  background: rgba(18, 11, 5, 0.86);
  backdrop-filter: blur(16px);
}

.photo-viewer[hidden] {
  display: none;
}

.photo-viewer img {
  display: block;
  max-width: min(1180px, 92vw);
  max-height: 84vh;
  border-radius: 6px;
  background: #ffffff;
  object-fit: contain;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.photo-viewer-close,
.photo-viewer-arrow {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
}

.photo-viewer-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 2rem;
}

.photo-viewer-arrow {
  top: 50%;
  width: 46px;
  height: 54px;
  font-size: 2.1rem;
  transform: translateY(-50%);
}

.photo-viewer-prev {
  left: 20px;
}

.photo-viewer-next {
  right: 20px;
}

.photo-viewer-close:hover,
.photo-viewer-close:focus-visible,
.photo-viewer-arrow:hover,
.photo-viewer-arrow:focus-visible {
  background: var(--accent-dark);
  color: #ffffff;
  outline: none;
}

.vehicle-detail-copy {
  display: grid;
  gap: 1.25rem;
}

.vehicle-detail-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
}

.vehicle-detail-heading h1 {
  min-width: 0;
  margin: 0;
  font-size: clamp(2rem, 3.25vw, 3.5rem);
  font-weight: 900;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.vehicle-detail-heading .vehicle-trim {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(164px, 1fr));
  gap: 0.8rem;
  margin: 0;
}

.detail-specs div {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.detail-specs dt {
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.15;
  overflow-wrap: normal;
  word-break: keep-all;
  text-transform: uppercase;
}

.detail-specs dd {
  margin: 0;
  color: var(--text);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.highlight-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.highlight-list span {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-login,
.admin-workspace {
  display: grid;
  gap: 1rem;
  max-width: 1160px;
  margin-top: 1.5rem;
}

.admin-login {
  max-width: 420px;
}

.admin-login label,
.admin-form label,
.admin-toggle {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-toggle {
  align-content: center;
  grid-template-columns: auto 1fr;
  min-height: 48px;
}

.admin-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.admin-login input,
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  padding: 0.85rem 0.9rem;
}

.admin-form .admin-toggle input {
  width: 18px;
  height: 18px;
  padding: 0;
}

.image-drop {
  display: grid;
  align-content: center;
  min-height: 132px;
  padding: 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
}

.image-drop.dragging {
  border-color: var(--accent);
  background: #fff3e8;
}

.image-drop.uploading {
  cursor: wait;
  pointer-events: none;
}

.image-drop.uploading span {
  color: var(--accent);
}

.image-drop span {
  color: var(--text);
  font-weight: 900;
}

.image-drop p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}

.image-drop input {
  display: none;
}

.admin-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-photo-list {
  display: grid;
  gap: 0.75rem;
}

.admin-photo-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.admin-photo-item img {
  width: 112px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}

.admin-file-thumb {
  display: grid;
  place-items: center;
  width: 112px;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(93, 49, 11, 0.18);
  border-radius: 8px;
  background: #fff8f0;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.admin-photo-item div {
  display: grid;
  gap: 0.4rem;
  justify-items: start;
  min-width: 0;
}

.admin-photo-item strong {
  font-size: 0.86rem;
}

.admin-photo-item button {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0;
}

.admin-photo-position-row {
  display: flex !important;
  align-items: center;
  gap: 0.55rem !important;
}

.admin-form .admin-photo-position {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
}

.admin-form .admin-photo-position-input {
  width: 58px;
  min-height: 34px;
  padding: 0.35rem 0.4rem;
  border-color: var(--line-strong);
  border-radius: 4px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 850;
}

.admin-photo-primary {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: var(--accent-dark);
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-photo-controls {
  display: flex !important;
  grid-template-columns: none !important;
  flex-wrap: wrap;
  gap: 0.4rem !important;
  align-items: center;
}

.admin-photo-controls .admin-photo-delete {
  min-height: 30px;
  padding: 0 0.35rem;
}

.admin-note {
  margin: 0;
  color: var(--muted);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-mfa-field {
  display: grid;
  gap: 0.45rem;
}

.admin-mfa-field[hidden] {
  display: none;
}

.admin-actions button {
  border: 0;
  cursor: pointer;
}

.admin-actions .contact-cta {
  background: #ffffff;
}

.admin-actions .admin-delete-button {
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid #7d211a;
  border-radius: 4px;
  background: #8f281f;
  color: #ffffff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  box-shadow: 0 8px 20px rgba(109, 26, 20, 0.16);
}

.admin-actions .admin-delete-button:hover,
.admin-actions .admin-delete-button:focus-visible {
  background: #741b15;
  outline: 2px solid rgba(143, 40, 31, 0.24);
  outline-offset: 2px;
}

.admin-actions .admin-delete-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.admin-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  align-items: start;
}

.admin-workspace > .admin-actions {
  grid-column: 1 / -1;
}

.admin-form {
  grid-column: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.admin-editor-heading {
  display: grid;
  gap: 0.28rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.admin-editor-heading span {
  color: var(--accent-dark);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-editor-heading strong {
  color: var(--text);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.15;
}

.admin-editor-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

.admin-form-wide {
  grid-column: 1 / -1;
}

.admin-list-panel {
  grid-column: 2;
  position: sticky;
  top: 112px;
  display: grid;
  align-self: start;
  gap: 1rem;
}

.admin-filter {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.admin-search {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  letter-spacing: 0;
  padding: 0.85rem 0.9rem;
  text-transform: none;
}

.admin-filter label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.admin-filter input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.admin-list {
  display: grid;
  gap: 0.75rem;
}

.admin-list button {
  display: grid;
  gap: 0.38rem;
  width: 100%;
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.admin-list strong {
  font-size: 0.95rem;
  line-height: 1.2;
}

.admin-list small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.admin-list button.active {
  border-color: var(--line-strong);
  box-shadow: inset 4px 0 0 var(--accent);
}

.admin-list span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-mode-tabs {
  display: inline-flex;
  gap: 0.3rem;
  width: fit-content;
  margin: 1rem 0 1.5rem;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.admin-mode-tabs a,
.admin-mode-tabs button {
  min-height: 36px;
  padding: 0.62rem 0.9rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
  font: inherit;
  line-height: 1;
  text-decoration: none;
}

.admin-mode-tabs a.active,
.admin-mode-tabs button.active {
  background: var(--accent);
  color: #ffffff;
}

.admin-inventory-view {
  display: contents;
}

.analytics-preview {
  grid-column: 1 / -1;
  display: grid;
  gap: 1.2rem;
}

.seo-pages-preview {
  grid-column: 1 / -1;
  display: grid;
  gap: 1rem;
}

.seo-pages-heading,
.seo-pages-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.seo-pages-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(18px, 3vw, 28px);
  background: var(--surface-soft);
}

.seo-pages-heading h2,
.seo-pages-group-heading h3 {
  margin: 0;
}

.seo-pages-heading h2 {
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: 1;
}

.seo-pages-heading p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.seo-pages-heading > span,
.seo-pages-group-heading span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.seo-pages-group {
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(191, 87, 0, 0.06);
}

.seo-pages-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.seo-pages-group-heading h3 {
  font-size: 1rem;
}

.seo-pages-list {
  display: grid;
}

.seo-pages-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 68px;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: background 160ms ease;
}

.seo-pages-list a:last-child {
  border-bottom: 0;
}

.seo-pages-list a:hover,
.seo-pages-list a:focus-visible {
  background: #fff8f1;
  outline: none;
}

.seo-pages-list a > span {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.seo-pages-list strong {
  font-size: 0.92rem;
}

.seo-pages-list code {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.73rem;
  overflow-wrap: anywhere;
}

.seo-pages-list b {
  color: var(--accent-dark);
  font-size: 0.78rem;
  white-space: nowrap;
}

.analytics-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.analytics-heading h2,
.analytics-card h3 {
  margin: 0;
}

.analytics-heading h2 {
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: 1;
}

.analytics-heading p {
  max-width: 620px;
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.analytics-heading span,
.analytics-card-title span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.analytics-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.analytics-stats article,
.analytics-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(191, 87, 0, 0.08);
}

.analytics-stats article {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
}

.analytics-stats span,
.analytics-stats small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.analytics-stats strong {
  color: var(--text);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.05;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.analytics-card {
  display: grid;
  gap: 1rem;
  padding: clamp(16px, 2.5vw, 24px);
}

.analytics-card-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.analytics-card h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.analytics-bars {
  display: grid;
  gap: 0.75rem;
}

.analytics-bars div {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  padding-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 820;
}

.analytics-bars div::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--bar);
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}

.analytics-bars strong,
.analytics-table strong {
  color: var(--text);
}

.analytics-show-more {
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0;
}

.analytics-show-more:hover,
.analytics-show-more:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  outline: none;
}

.analytics-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.analytics-table div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--line);
}

.analytics-table div:first-child {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.analytics-table div:last-child {
  border-bottom: 0;
}

.analytics-notes {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.55;
}

.contact-wrap {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(360px, 1.28fr);
  gap: clamp(22px, 4vw, 56px);
  align-content: center;
  align-items: center;
  min-height: calc(100vh - 210px);
  max-width: 1280px;
}

.info-panel {
  align-content: center;
}

.info-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(360px, 1fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: start;
}

.info-list {
  display: grid;
  gap: 0.9rem;
}

.info-list article {
  padding: clamp(16px, 2.5vw, 24px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.info-list span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.info-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.email-link {
  width: fit-content;
  margin-top: 1rem;
  color: var(--text);
  font-size: clamp(1.35rem, 4vw, 3rem);
  font-weight: 850;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.2em;
}

.contact-list {
  display: grid;
  gap: 0.8rem;
  max-width: 640px;
  margin-top: 1.5rem;
}

.contact-list div {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.contact-list span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-list p,
.contact-list a {
  margin: 0;
  color: var(--text);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 760;
  line-height: 1.45;
}

.contact-list a {
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
}

.contact-map {
  width: 100%;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.sell-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(440px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.sell-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.sell-form label {
  display: grid;
  gap: 0.42rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sell-form input,
.sell-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  letter-spacing: 0;
  padding: 0.85rem 0.9rem;
  text-transform: none;
}

.sell-form textarea {
  resize: vertical;
}

.condition-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.condition-group legend {
  grid-column: 1 / -1;
  margin: 0 0 0.15rem;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.sell-form .condition-option {
  position: relative;
  display: grid;
  gap: 0.55rem;
  overflow: hidden;
  min-height: 148px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.condition-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.condition-option span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 900;
}

.condition-option span::before {
  content: "";
  width: 0.82rem;
  height: 0.82rem;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.condition-option p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.48;
}

.condition-option.excellent span {
  color: #2f7d14;
}

.condition-option.good span {
  color: #a45a00;
}

.condition-option.poor span {
  color: #b70d1a;
}

.condition-option:hover,
.condition-option:focus-within {
  border-color: var(--line-strong);
  box-shadow: 0 14px 30px rgba(191, 87, 0, 0.1);
  transform: translateY(-2px);
}

.condition-option:has(input:checked) {
  border-color: var(--accent);
  background: #fff8f0;
  box-shadow: inset 0 0 0 1px var(--accent), 0 16px 34px rgba(191, 87, 0, 0.12);
}

.condition-option:has(input:checked) span::before {
  background: currentColor;
  box-shadow: inset 0 0 0 3px #ffffff;
}

.sell-form-wide,
.sell-actions {
  grid-column: 1 / -1;
}

.sell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.sell-message {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.45;
}

.sell-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 1.2rem;
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
  color: rgba(7, 7, 7, 0.56);
  font-size: 0.78rem;
}

@media (max-width: 860px) {
  .site-header {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 12px 14px;
  }

  .brand {
    justify-content: center;
  }

  .tabs {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .header-actions,
  .header-contact {
    justify-items: center;
    text-align: center;
  }

  .header-contact {
    font-size: 0.74rem;
  }

  .nav-menu {
    flex: 1;
  }

  .nav-menu > .tab {
    width: 100%;
  }

  .nav-dropdown {
    left: 0;
    width: max-content;
    border-radius: 8px;
    min-width: 100%;
    max-width: calc(100vw - 28px);
    transform: translateY(-4px);
  }

  .nav-menu:last-child .nav-dropdown {
    right: 0;
    left: auto;
  }

  .nav-dropdown a {
    width: 100%;
  }

  .nav-menu:hover .nav-dropdown,
  .nav-menu:focus-within .nav-dropdown {
    transform: translateY(0);
  }

  .tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-right: 0.72rem;
    padding-left: 0.72rem;
    text-align: center;
  }

  .rentals-layout,
  .fleet-grid,
  .info-layout {
    grid-template-columns: 1fr;
  }

  .intro-copy {
    position: static;
  }

  h1 {
    font-size: clamp(2.2rem, 10vw, 4rem);
  }

  .vehicle-card {
    grid-template-columns: 1fr;
  }

  .vehicle-detail-layout,
  .sell-layout,
  .sell-form,
  .condition-group,
  .admin-workspace,
  .admin-form,
  .admin-upload-grid,
  .analytics-stats,
  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .admin-form,
  .admin-list-panel {
    grid-column: 1;
  }

  .admin-list-panel {
    position: static;
  }

  .admin-panel {
    width: min(100% - 20px, 720px);
    margin-right: auto;
    margin-left: auto;
  }

  .admin-panel .page-heading {
    margin-bottom: 0.35rem;
    text-align: left;
  }

  .admin-panel .page-heading .eyebrow,
  .admin-panel .page-heading .lede {
    display: none;
  }

  .admin-panel .page-heading h1 {
    font-size: clamp(1.75rem, 9vw, 2.45rem);
  }

  .admin-login,
  .admin-workspace {
    max-width: none;
    margin-top: 0.8rem;
    gap: 0.85rem;
  }

  .admin-mode-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin: 0 0 0.5rem;
  }

  .admin-mode-tabs button {
    min-height: 42px;
    font-size: 0.82rem;
  }

  .admin-inventory-view {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  .admin-inventory-view > .admin-actions {
    order: 0;
  }

  .admin-inventory-view > .admin-actions .book-link {
    width: 100%;
    min-height: 48px;
  }

  .admin-list-panel {
    order: 1;
    gap: 0.75rem;
  }

  .admin-search,
  .admin-filter {
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
  }

  .admin-search {
    color: var(--text);
    font-size: 0.7rem;
  }

  .admin-search input {
    min-height: 44px;
    margin-top: 0.45rem;
    padding: 0 0.85rem;
  }

  .admin-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .admin-filter label {
    min-height: 42px;
    padding: 0 0.72rem;
    border: 1px solid rgba(93, 49, 11, 0.14);
    border-radius: 5px;
    background: #fffaf5;
    color: var(--text);
    font-size: 0.78rem;
  }

  .admin-list {
    gap: 0.55rem;
    max-height: 42vh;
    overflow: auto;
    padding-right: 0.12rem;
  }

  .admin-list button {
    min-height: 74px;
    padding: 0.72rem 0.78rem;
    border-radius: 6px;
  }

  .admin-list strong {
    font-size: 0.9rem;
  }

  .admin-list small,
  .admin-list span {
    font-size: 0.66rem;
  }

  .admin-form {
    order: 2;
    gap: 0.75rem;
    padding: 0.9rem;
    border-radius: 6px;
    background: #ffffff;
  }

  .admin-editor-heading {
    padding-bottom: 0.7rem;
  }

  .admin-editor-heading strong {
    font-size: 1.05rem;
  }

  .admin-form label,
  .admin-toggle {
    gap: 0.32rem;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }

  .admin-form input,
  .admin-form select,
  .admin-form textarea {
    min-height: 44px;
    padding: 0.72rem 0.78rem;
    border-radius: 5px;
  }

  .admin-upload-grid {
    gap: 0.65rem;
  }

  .image-drop {
    min-height: 104px;
    border-radius: 6px;
  }

  .image-drop p {
    font-size: 0.78rem;
  }

  .admin-photo-item {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.55rem;
  }

  .admin-photo-item img {
    width: 82px;
    height: 62px;
    aspect-ratio: auto;
    border-radius: 5px;
  }

  .admin-file-thumb {
    width: 82px;
    height: 62px;
    aspect-ratio: auto;
    border-radius: 5px;
  }

  .admin-photo-item strong,
  .admin-photo-item a,
  .admin-photo-item button {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .admin-form > .admin-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0 -0.9rem -0.9rem;
    padding: 0.75rem 0.9rem;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
  }

  .admin-form > .admin-actions button {
    width: 100%;
    min-height: 44px;
    padding-right: 0.65rem;
    padding-left: 0.65rem;
    border-radius: 5px;
    font-size: 0.78rem;
  }

  .vehicle-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .why-longhorn-points {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .why-longhorn-points article {
    grid-template-columns: 44px minmax(0, 1fr);
    justify-items: start;
    text-align: left;
  }

  .why-longhorn-points p {
    max-width: none;
  }

}

@media (max-width: 520px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 28px, 1160px);
  }

  .brand-logo {
    width: min(220px, 74vw);
  }

  .longhorn-brand {
    justify-content: center;
  }

  .longhorn-logo {
    width: min(360px, 90vw);
    height: 112px;
  }

  .tabs {
    align-items: stretch;
    border-radius: 8px;
  }

  .tab {
    min-height: 44px;
    border-radius: 6px;
    font-size: 0.78rem;
  }

  .panel {
    padding-top: 12px;
  }

  .specs {
    grid-template-columns: 1fr;
  }

  .inventory-page-grid {
    grid-template-columns: 1fr;
  }

  .inventory-page-grid .vehicle-card {
    grid-template-columns: 1fr;
  }

  .inventory-page-grid .vehicle-media {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .inventory-page-grid .specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vehicle-card-heading,
  .vehicle-detail-heading,
  .detail-specs {
    grid-template-columns: 1fr;
  }

  .vehicle-price {
    justify-self: start;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .contact-map {
    min-height: 320px;
  }
}


/* Longhorn EV 2026 visual refresh */
body.longhorn {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f7f3ee;
  --surface-warm: #fbf8f4;
  --text: #17110b;
  --muted: #6c6258;
  --line: rgba(92, 58, 29, 0.14);
  --line-strong: rgba(126, 74, 25, 0.34);
  --accent: #8a4f16;
  --accent-dark: #5d310b;
  --shadow: 0 24px 70px rgba(74, 41, 14, 0.1);
  background:
    radial-gradient(circle at 50% 0, rgba(138, 79, 22, 0.08), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, #fbfaf8 48%, #ffffff 100%);
}

.site-header {
  min-height: 70px;
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(92, 58, 29, 0.1);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: none;
  backdrop-filter: blur(22px) saturate(140%);
}

.longhorn-logo {
  width: clamp(250px, 26vw, 390px);
  height: 82px;
}

.header-contact {
  margin-top: -0.25rem;
  color: rgba(23, 17, 11, 0.58);
  font-size: 0.69rem;
  font-weight: 750;
}

.tabs,
.admin-mode-tabs {
  border-color: transparent;
  background: rgba(247, 243, 238, 0.72);
  box-shadow: inset 0 0 0 1px rgba(92, 58, 29, 0.08);
}

.tab,
.admin-mode-tabs a,
.admin-mode-tabs button {
  border-radius: 4px;
  color: rgba(23, 17, 11, 0.68);
  font-size: 0.78rem;
  font-weight: 760;
}

.tabs button.tab {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.tab:hover,
.tab:focus-visible,
.tab.active {
  background: rgba(255, 255, 255, 0.92);
}

.longhorn .tab.active,
.admin-mode-tabs a.active,
.admin-mode-tabs button.active {
  background: var(--accent-dark);
  color: #ffffff;
}

.nav-dropdown {
  top: calc(100% + 7px);
  border-color: rgba(92, 58, 29, 0.12);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 52px rgba(74, 41, 14, 0.14);
  backdrop-filter: blur(18px);
}

main {
  width: min(1200px, calc(100% - 40px));
}

.panel {
  min-height: calc(100vh - 108px);
  padding: clamp(22px, 3vw, 44px) 0 58px;
}

.home-hero {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: center;
  overflow: hidden;
  min-height: clamp(300px, 44vh, 500px);
  padding: clamp(34px, 6vw, 76px) 0;
  isolation: isolate;
  text-align: center;
}

.hero-logo-mark {
  position: absolute;
  z-index: -1;
  width: min(980px, 108vw);
  max-width: none;
  opacity: 0.14;
  filter: blur(1.4px);
  transform: translateY(-2%);
  user-select: none;
  pointer-events: none;
}

.hero-logo-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 0.8rem;
  width: min(760px, 100%);
  padding: 1rem;
  border: 1px solid rgba(92, 58, 29, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 24px 70px rgba(74, 41, 14, 0.1);
  backdrop-filter: blur(16px) saturate(135%);
}

.rentals-layout.home-showcase {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(14px, 3vw, 28px);
  min-height: auto;
}

.home-showcase .intro-copy {
  top: 122px;
}

.home-actions,
.hero-logo-actions {
  align-content: start;
}

.featured-heading {
  margin-bottom: 0.7rem;
  text-align: center;
  font-size: clamp(0.82rem, 1.2vw, 0.95rem);
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-cta,
.book-link,
.carfax-link,
.carfax-detail-link,
.sell-form button,
.admin-actions .contact-cta {
  min-height: 44px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0;
}

.contact-cta {
  border-color: transparent;
  background: rgba(23, 17, 11, 0.86);
  color: #ffffff;
}

.home-actions .contact-cta:nth-child(2),
.home-actions .contact-cta:nth-child(3),
.hero-logo-actions .contact-cta:nth-child(2),
.hero-logo-actions .contact-cta:nth-child(3) {
  background: rgba(247, 243, 238, 0.96);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(92, 58, 29, 0.12);
}

.contact-cta:hover,
.contact-cta:focus-visible,
.longhorn .contact-cta:hover,
.longhorn .contact-cta:focus-visible {
  border-color: transparent;
  background: var(--accent-dark);
  color: #ffffff;
}

.vehicle-card {
  border-color: rgba(92, 58, 29, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 54px rgba(74, 41, 14, 0.09);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.vehicle-card:hover,
.vehicle-card:focus-visible {
  border-color: rgba(138, 79, 22, 0.28);
  box-shadow: 0 28px 70px rgba(74, 41, 14, 0.13);
}

.home-showcase .vehicle-card {
  grid-template-columns: 1.18fr 0.82fr;
  min-height: clamp(390px, 42vw, 560px);
}

.home-showcase .vehicle-media {
  min-height: 420px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(247, 243, 238, 0.75)),
    #ffffff;
}

.home-showcase .vehicle-media img {
  padding: clamp(18px, 4vw, 56px);
}

.vehicle-details {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(247, 243, 238, 0.92)),
    var(--surface-soft);
}

.vehicle-details h2,
.vehicle-detail-heading h1 {
  font-weight: 900;
  letter-spacing: 0;
}

.vehicle-price {
  border-radius: 4px;
  background: var(--accent-dark);
}

.status-pill,
.dealer-card .status-pill,
.dealer-card .status-pill.available {
  border-radius: 4px;
  background: rgba(93, 49, 11, 0.88);
  color: #ffffff;
}

.inventory-page-grid {
  gap: 14px;
}

.inventory-page-grid .vehicle-card {
  border-radius: 5px;
  box-shadow: 0 12px 34px rgba(74, 41, 14, 0.07);
}

.inventory-search input,
.admin-login input,
.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-search input,
.sell-form input,
.sell-form textarea {
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.88);
}

.inventory-type-filter label,
.detail-specs div,
.info-list article,
.contact-list div,
.sell-form,
.admin-form,
.admin-filter,
.analytics-heading,
.analytics-card,
.analytics-stats article,
.vehicle-detail-media,
.contact-map,
.image-drop,
.admin-photo-item,
.admin-list button {
  border-radius: 5px;
}

.page-heading {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.page-heading h1,
.info-layout h1,
.contact-wrap h1,
.contact-wrap .about-title,
.sell-layout h1 {
  max-width: none;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.95;
}

.contact-wrap .about-title {
  margin-bottom: 1.1rem;
}

.page-heading .lede,
.contact-wrap .lede,
.info-layout .lede,
.sell-layout .lede {
  margin-right: auto;
  margin-left: auto;
}

.contact-wrap,
.info-layout,
.sell-layout,
.vehicle-detail-layout {
  padding-top: clamp(18px, 3vw, 38px);
}

.why-longhorn {
  margin-top: clamp(28px, 5vw, 64px);
  padding-top: clamp(22px, 3vw, 40px);
}

.why-longhorn-points article span {
  border-color: rgba(138, 79, 22, 0.3);
  border-radius: 999px;
  background: var(--accent-dark);
  color: #ffffff;
  box-shadow: none;
}

.site-footer {
  width: min(1200px, calc(100% - 40px));
  color: rgba(23, 17, 11, 0.52);
}

@media (max-width: 860px) {
  .site-header {
    padding: 10px 14px 12px;
  }

  .longhorn-logo {
    width: min(320px, 84vw);
    height: 76px;
  }

  .header-contact {
    margin-top: -0.45rem;
  }

  .home-hero {
    min-height: 310px;
    padding: 34px 0;
  }

  .hero-logo-mark {
    width: min(660px, 132vw);
    opacity: 0.16;
  }

  .hero-logo-actions {
    grid-template-columns: 1fr;
    width: min(420px, 100%);
  }

  .rentals-layout.home-showcase,
  .home-showcase .vehicle-card {
    grid-template-columns: 1fr;
  }

  .home-actions {
    grid-template-columns: 1fr;
    padding-top: 0;
  }

  .home-showcase .intro-copy {
    position: static;
  }

  .home-showcase .vehicle-media {
    min-height: 0;
  }

  .contact-wrap,
  .info-layout,
  .sell-layout,
  .vehicle-detail-layout {
    padding-top: 4px;
  }
}

@media (max-width: 520px) {
  .site-header {
    width: 100%;
  }
}

/* Premium showroom hero refresh */
.premium-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(520px, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  min-height: calc(100vh - 172px);
  padding: clamp(26px, 5vw, 64px) 0 clamp(20px, 4vw, 46px);
}

.premium-hero-copy {
  display: grid;
  gap: 1.15rem;
  align-content: center;
}

.premium-hero-copy .hero-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 880;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.premium-hero-copy h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(3.1rem, 6.4vw, 6.8rem);
  font-weight: 880;
  letter-spacing: 0;
  line-height: 0.88;
}

.premium-hero-copy p:not(.hero-kicker) {
  max-width: 490px;
  margin: 0;
  color: rgba(23, 17, 11, 0.68);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  font-weight: 650;
  line-height: 1.58;
}

.premium-hero .home-actions {
  grid-template-columns: 1fr;
  gap: 0.7rem;
  width: min(390px, 100%);
  padding-top: 0.35rem;
}

.premium-hero .contact-cta {
  min-height: 48px;
}

.home-showcase {
  min-width: 0;
}

.featured-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 880;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.featured-bar a {
  color: var(--accent);
  font-size: 0.74rem;
  text-decoration: none;
  white-space: nowrap;
}

.featured-bar a:hover,
.featured-bar a:focus-visible {
  color: var(--accent-dark);
  outline: none;
}

.premium-hero .vehicle-card {
  grid-template-columns: 1fr;
  min-height: 0;
  border-color: rgba(92, 58, 29, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f8f4ef 100%);
  box-shadow: 0 28px 76px rgba(74, 41, 14, 0.12);
}

.premium-hero .vehicle-media {
  min-height: 0;
  aspect-ratio: 16 / 8.7;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 243, 238, 0.72)),
    #ffffff;
}

.premium-hero .vehicle-media img {
  padding: clamp(18px, 4vw, 44px);
}

.premium-hero .vehicle-details {
  align-content: start;
  gap: 1rem;
  padding: clamp(18px, 2.5vw, 28px);
  background: rgba(255, 255, 255, 0.68);
}

.premium-hero .vehicle-details h2 {
  font-size: clamp(1.45rem, 2.3vw, 2.25rem);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: clamp(10px, 2vw, 24px) 0 clamp(34px, 5vw, 70px);
  border: 1px solid rgba(92, 58, 29, 0.12);
  border-radius: 6px;
  background: rgba(92, 58, 29, 0.12);
}

.trust-row article {
  display: grid;
  gap: 0.45rem;
  padding: clamp(18px, 2.6vw, 30px);
  background: rgba(255, 255, 255, 0.78);
}

.trust-row span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.trust-row strong {
  color: var(--text);
  font-size: clamp(1rem, 1.25vw, 1.14rem);
}

.trust-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.55;
}

.home-hero,
.hero-logo-mark,
.hero-logo-actions,
.featured-heading {
  display: none;
}

@media (max-width: 980px) {
  .premium-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 1.25rem;
    padding: 20px 0 26px;
  }

  .premium-hero-copy {
    justify-items: center;
    text-align: center;
  }

  .premium-hero-copy h1 {
    font-size: clamp(2.25rem, 8.5vw, 3.65rem);
  }

  .premium-hero-copy p:not(.hero-kicker) {
    max-width: 560px;
  }

  .premium-hero .home-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(620px, 100%);
  }

  .trust-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .premium-hero {
    gap: 1.4rem;
    padding-top: 24px;
  }

  .premium-hero-copy h1 {
    font-size: clamp(2.8rem, 15vw, 4.5rem);
  }

  .premium-hero .home-actions {
    grid-template-columns: 1fr;
  }

  .premium-hero .vehicle-media {
    aspect-ratio: 16 / 10;
  }
}

/* Miraj-inspired boutique refresh */
.service-banner {
  width: calc(100% + 40px);
  margin: calc(clamp(22px, 3vw, 44px) * -1) -20px 0;
  padding: 0.72rem 1rem;
  border-bottom: 1px solid rgba(92, 58, 29, 0.1);
  background: #5d310b;
  color: #fffaf5;
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

body.home-page .site-header {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 0.32rem;
  padding-top: 8px;
  padding-bottom: 12px;
}

body.home-page .tabs {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
}

body.home-page .brand {
  grid-column: 1;
  grid-row: 2;
  justify-self: center;
}

body.home-page .header-contact {
  grid-column: 1;
  grid-row: 3;
  margin-top: -0.5rem;
}

body.home-page .longhorn-logo {
  width: clamp(300px, 34vw, 500px);
  height: 98px;
}

.premium-hero {
  grid-template-columns: 1fr;
  gap: clamp(22px, 4vw, 42px);
  min-height: 0;
  padding: clamp(38px, 6vw, 76px) 0 clamp(20px, 4vw, 44px);
}

.premium-hero-copy {
  justify-items: center;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.premium-hero-copy .hero-kicker {
  color: var(--accent);
}

.premium-hero-copy h1 {
  max-width: 880px;
  font-size: clamp(3.15rem, 7.2vw, 7.15rem);
  line-height: 0.92;
}

.premium-hero-copy p:not(.hero-kicker) {
  max-width: 620px;
  font-size: clamp(1rem, 1.45vw, 1.22rem);
}

.premium-hero .home-actions {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  width: min(540px, 100%);
  padding-top: 0.6rem;
}

.premium-hero .contact-cta {
  min-height: 50px;
}

.premium-hero .home-actions .contact-cta:nth-child(2) {
  background: rgba(247, 243, 238, 0.96);
  color: var(--text);
}

.premium-hero .home-actions .contact-cta:nth-child(2):hover,
.premium-hero .home-actions .contact-cta:nth-child(2):focus-visible {
  background: var(--accent-dark);
  color: #ffffff;
}

.home-showcase {
  width: min(980px, 100%);
  margin: 0 auto clamp(34px, 5vw, 62px);
}

.featured-bar {
  margin-bottom: 0.65rem;
}

.premium-hero .vehicle-card,
.home-showcase .vehicle-card {
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  overflow: hidden;
  border-color: rgba(92, 58, 29, 0.12);
  background: #ffffff;
  box-shadow: 0 20px 64px rgba(74, 41, 14, 0.1);
}

.premium-hero .vehicle-media,
.home-showcase .vehicle-media {
  aspect-ratio: auto;
  min-height: clamp(300px, 34vw, 430px);
  background: #ffffff;
}

.premium-hero .vehicle-details,
.home-showcase .vehicle-details {
  align-content: center;
  padding: clamp(18px, 3vw, 34px);
  background: #f8f4ef;
}

.trust-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1100px, 100%);
  margin: 0 auto clamp(42px, 6vw, 78px);
  border-color: rgba(92, 58, 29, 0.1);
  background: rgba(92, 58, 29, 0.1);
}

.trust-row article {
  justify-items: center;
  text-align: center;
}

.shop-paths {
  display: grid;
  gap: 1.05rem;
  padding: clamp(34px, 6vw, 78px) 0 clamp(26px, 5vw, 58px);
}

.shop-paths h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.35rem, 2.4vw, 2.2rem);
  font-weight: 850;
  text-align: center;
}

.shop-path-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.shop-path-grid a {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 172px;
  padding: 1.1rem;
  border: 1px solid rgba(92, 58, 29, 0.12);
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(247, 243, 238, 0.92)),
    #ffffff;
  color: var(--text);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(74, 41, 14, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  overflow: hidden;
}

.shop-path-grid a::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -2;
  background-image: var(--shop-path-image);
  background-position: center;
  background-size: cover;
  filter: blur(2px);
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 220ms ease;
}

.shop-path-grid a.sell-photo-path::before {
  background-position: center 70%;
}

.shop-path-grid a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(247, 243, 238, 0.82) 72%);
}

.shop-path-grid a.inventory-path.has-inventory-photo::before,
.shop-path-grid a.static-photo-path::before {
  opacity: 0.75;
}

.shop-path-grid a:hover,
.shop-path-grid a:focus-visible {
  border-color: rgba(138, 79, 22, 0.32);
  box-shadow: 0 20px 44px rgba(74, 41, 14, 0.11);
  outline: none;
  transform: translateY(-2px);
}

.shop-path-grid span {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shop-path-grid strong {
  margin-top: 0.4rem;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  line-height: 1.05;
}

@media (max-width: 980px) {
  .premium-hero {
    padding-top: clamp(28px, 5vw, 52px);
  }

  .premium-hero .vehicle-card,
  .home-showcase .vehicle-card {
    grid-template-columns: 1fr;
  }

  .shop-path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .sell-offer-shell {
    padding: 185px 12px 14px;
  }

  .service-banner {
    width: calc(100% + 28px);
    margin-right: -14px;
    margin-left: -14px;
    font-size: 0.68rem;
  }

  body.home-page .site-header {
    align-items: stretch;
    padding: 10px 14px 12px;
  }

  body.home-page .tabs {
    width: 100%;
  }

  body.home-page .longhorn-logo {
    width: min(320px, 84vw);
    height: 76px;
  }

  .premium-hero-copy h1 {
    font-size: clamp(2.55rem, 13vw, 4.35rem);
  }

  .premium-hero .home-actions,
  .shop-path-grid {
    grid-template-columns: 1fr;
  }

  .shop-path-grid a {
    min-height: 132px;
  }
}

/* Navigation and warm accent polish */
.longhorn .site-header {
  border-bottom-color: rgba(93, 49, 11, 0.16);
}

.longhorn .tabs {
  gap: 0.32rem;
  padding: 5px;
  border: 1px solid rgba(93, 49, 11, 0.12);
  background: rgba(247, 243, 238, 0.84);
}

.longhorn .tab,
.longhorn .tabs button.tab,
.longhorn .nav-dropdown a {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 0.92rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(23, 17, 11, 0.72);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 820;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.longhorn .tab:hover,
.longhorn .tab:focus-visible,
.longhorn .nav-dropdown a:hover,
.longhorn .nav-dropdown a:focus-visible {
  background: #ffffff;
  color: var(--accent-dark);
}

.longhorn .tab.active,
.longhorn .nav-menu:focus-within > .tab,
.longhorn .nav-menu:hover > .tab {
  color: #ffffff;
  background: var(--accent-dark);
}

.longhorn .nav-dropdown {
  min-width: 100%;
  border-color: rgba(93, 49, 11, 0.14);
  background: rgba(255, 255, 255, 0.97);
}

.service-banner {
  background: linear-gradient(90deg, #4c2606, #8a4f16, #4c2606);
}

.shop-path-grid a {
  border-color: rgba(93, 49, 11, 0.18);
}

.shop-path-grid strong,
.featured-bar span,
.vehicle-card-heading h2 {
  color: #17110b;
}

.inventory-type-filter label {
  border-color: rgba(93, 49, 11, 0.18);
  background: #fff8f0;
}

@media (max-width: 860px) {
  .longhorn .tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .longhorn .nav-menu {
    width: 100%;
    min-width: 0;
  }

  .longhorn .tab,
  .longhorn .tabs button.tab {
    width: 100%;
    min-height: 42px;
    padding: 0 0.7rem;
    font-size: 0.76rem;
  }

  .longhorn .nav-dropdown {
    width: 100%;
    min-width: 100%;
  }
}

@media (max-width: 420px) {
  .longhorn .tabs {
    grid-template-columns: 1fr;
  }
}

/* Centered Longhorn header layout */
.longhorn .site-header,
body.home-page .site-header {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  gap: 0.3rem;
  min-height: 0;
  padding-top: 10px;
  padding-bottom: 12px;
}

.longhorn .brand,
body.home-page .brand {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
}

.longhorn .header-contact,
body.home-page .header-contact {
  grid-column: 1;
  grid-row: 2;
  justify-self: center;
  margin-top: -0.6rem;
}

.longhorn .tabs,
body.home-page .tabs {
  grid-column: 1;
  grid-row: 3;
  justify-self: center;
}

.longhorn .longhorn-logo,
body.home-page .longhorn-logo {
  width: clamp(300px, 34vw, 500px);
  height: 98px;
}

@media (max-width: 860px) {
  .longhorn .site-header,
  body.home-page .site-header {
    display: grid;
    align-items: center;
    padding: 10px 14px 12px;
  }

  .longhorn .tabs,
  body.home-page .tabs {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .longhorn .longhorn-logo,
  body.home-page .longhorn-logo {
    width: min(320px, 84vw);
    height: 76px;
  }
}

/* EV Auto-inspired Longhorn homepage refresh */
body.longhorn {
  --accent-dark: #5d310b;
  --accent-soft: #f4e4d2;
  --ink: #17110b;
}

body.home-page main {
  width: 100%;
}

body.home-page .panel {
  padding-top: 0;
}

.dealer-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(560px, 72vh, 760px);
  overflow: hidden;
  background: #1a120c;
  color: #ffffff;
}

.dealer-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 44%, rgba(191, 87, 0, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(15, 10, 6, 0.42), rgba(15, 10, 6, 0.82));
}

.dealer-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8f4ef 50%, #2a190c 100%);
}

.dealer-hero-media img {
  width: min(1180px, 118vw);
  max-width: none;
  margin-top: clamp(20px, 7vh, 88px);
  filter: saturate(0.82) contrast(1.04);
  opacity: 0.88;
  transform: scale(1.06);
}

.dealer-hero-content {
  display: grid;
  align-content: center;
  justify-items: center;
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 104px) 0;
  text-align: center;
}

.dealer-hero-content .hero-kicker {
  margin: 0 0 0.9rem;
  color: #f4d6b8;
  font-size: clamp(0.72rem, 1.1vw, 0.86rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dealer-hero-content h1 {
  max-width: 850px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.85rem, 7vw, 6.35rem);
  font-weight: 920;
  line-height: 0.94;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}

.dealer-hero-content > p:not(.hero-kicker) {
  max-width: 700px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  font-weight: 650;
  line-height: 1.55;
}

.hero-search {
  display: grid;
  gap: 0.48rem;
  width: min(580px, 100%);
  margin-top: clamp(22px, 3vw, 34px);
  text-align: left;
}

.hero-search label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-search div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(244, 214, 184, 0.5);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
}

.hero-search input,
.hero-search button {
  min-height: 54px;
  border: 0;
  font: inherit;
}

.hero-search input {
  min-width: 0;
  padding: 0 1rem;
  background: transparent;
  color: var(--ink);
  font-weight: 720;
  outline: none;
}

.hero-search button {
  padding: 0 1.2rem;
  background: var(--accent-dark);
  color: #ffffff;
  font-weight: 860;
  cursor: pointer;
}

.hero-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(620px, 100%);
  margin-top: 1rem;
}

.hero-actions .contact-cta {
  display: inline-flex;
  gap: 0.52rem;
  min-height: 54px;
  border-color: rgba(93, 49, 11, 0.72);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.hero-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.hero-action-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-actions .contact-cta.primary {
  border-color: rgba(93, 49, 11, 0.72);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}

.hero-actions .contact-cta:hover,
.hero-actions .contact-cta:focus-visible {
  border-color: var(--accent-dark);
  background: #ffffff;
  color: var(--accent-dark);
}

.popular-models,
body.home-page .shop-paths,
body.home-page .home-showcase,
body.home-page .info-panel {
  width: min(1160px, calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

.popular-models {
  display: grid;
  gap: 0.85rem;
  padding: clamp(24px, 4vw, 42px) 0 0;
}

.popular-models h2 {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.popular-models div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.popular-models a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 1rem;
  border: 1px solid rgba(93, 49, 11, 0.18);
  border-radius: 6px;
  background: #fff8f0;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 820;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.popular-models a:hover,
.popular-models a:focus-visible {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #ffffff;
  outline: none;
}

body.home-page .shop-paths {
  width: min(1120px, calc(100% - 40px));
  padding-top: clamp(26px, 4vw, 48px);
  padding-bottom: clamp(14px, 2vw, 28px);
}

body.home-page .shop-path-grid a {
  min-height: 110px;
  align-content: start;
  justify-items: start;
  gap: 0.48rem;
  padding: clamp(16px, 1.8vw, 22px);
  border-color: rgba(93, 49, 11, 0.18);
  color: var(--text);
  text-align: left;
  background:
    linear-gradient(135deg, rgba(255, 248, 240, 0.96), rgba(255, 255, 255, 0.98)),
    #ffffff;
  box-shadow: 0 14px 36px rgba(74, 41, 14, 0.07);
}

body.home-page .shop-path-grid a::before {
  display: none;
}

body.home-page .shop-path-grid a.inventory-path.has-inventory-photo::before,
body.home-page .shop-path-grid a.static-photo-path::before {
  display: none;
}

body.home-page .shop-path-grid a::after {
  inset: auto 18px 16px auto;
  width: 34px;
  height: 2px;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(93, 49, 11, 0.28), rgba(93, 49, 11, 0.85));
  opacity: 1;
}

body.home-page .shop-path-grid a:hover,
body.home-page .shop-path-grid a:focus-visible {
  border-color: rgba(93, 49, 11, 0.42);
  background: #ffffff;
}

body.home-page .shop-path-grid span {
  color: var(--accent-dark);
}

body.home-page .shop-path-grid strong {
  max-width: 12ch;
  color: var(--text);
  font-size: clamp(1.02rem, 1.5vw, 1.24rem);
}

body.home-page .shop-path-grid p {
  max-width: 24ch;
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.42;
}

body.home-page .home-showcase {
  padding-top: clamp(12px, 2vw, 24px);
}

@media (max-width: 860px) {
  .dealer-hero {
    min-height: 620px;
  }

  .dealer-hero-media img {
    width: 100%;
  }

  .hero-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .popular-models,
  body.home-page .shop-paths,
  body.home-page .home-showcase,
  body.home-page .info-panel {
    width: min(100% - 28px, 1160px);
  }
}

@media (max-width: 520px) {
  .dealer-hero {
    min-height: 600px;
  }

  .dealer-hero-content {
    width: min(100% - 28px, 920px);
    padding-top: 42px;
    padding-bottom: 46px;
  }

  .dealer-hero-content h1 {
    font-size: clamp(2.35rem, 12vw, 3.9rem);
  }

  .hero-search div {
    grid-template-columns: 1fr;
  }

  .hero-search button {
    width: 100%;
  }

  .popular-models div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .popular-models a {
    justify-content: center;
    min-width: 0;
    padding: 0 0.7rem;
    text-align: center;
  }
}

/* Full Longhorn rebrand: EV Auto-style dealer shell */
.longhorn .dealer-header,
body.home-page .dealer-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: block;
  width: 100%;
  padding: 0;
  border-bottom: 1px solid rgba(93, 49, 11, 0.16);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(23, 17, 11, 0.06);
  backdrop-filter: none;
}

.utility-bar {
  display: flex;
  justify-content: flex-end;
  gap: 0;
  min-height: 38px;
  background: #342f2b;
  color: #ffffff;
}

.utility-bar a {
  display: inline-flex;
  align-items: center;
  padding: 0 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  color: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.utility-bar a:hover,
.utility-bar a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.main-nav-row {
  display: grid;
  grid-template-columns: auto auto minmax(160px, 280px) minmax(580px, 1fr);
  align-items: center;
  gap: clamp(16px, 1.8vw, 24px);
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 16px clamp(16px, 2vw, 26px);
}

.dealer-header .main-nav-row {
  padding-top: 18px;
  padding-bottom: 18px;
}

.longhorn .dealer-header .brand,
body.home-page .dealer-header .brand {
  display: inline-flex;
  grid-column: auto;
  grid-row: auto;
  justify-self: start;
}

.menu-toggle {
  display: inline-grid;
  align-content: center;
  gap: 6px;
  width: 52px;
  height: 52px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 32px;
  height: 3px;
  border-radius: 999px;
  background: #2f2924;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: #fff8f0;
  outline: 2px solid rgba(191, 87, 0, 0.18);
  outline-offset: 2px;
}

.longhorn .dealer-header .longhorn-logo,
body.home-page .dealer-header .longhorn-logo {
  width: clamp(240px, 18vw, 330px);
  height: 86px;
  object-fit: contain;
}

.nav-search {
  display: grid;
  min-width: 0;
}

.nav-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nav-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 1.05rem 0 2.75rem;
  border: 2px solid rgba(191, 87, 0, 0.28);
  border-radius: 6px;
  background: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232f2924' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  background-position: 0.9rem center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.nav-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(191, 87, 0, 0.1);
}

.dealer-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 180;
  background: rgba(18, 11, 5, 0.48);
  backdrop-filter: blur(1px);
}

.dealer-menu-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 181;
  width: min(380px, 88vw);
  overflow-y: auto;
  padding: clamp(22px, 4vw, 34px) 24px 42px;
  background: #ffffff;
  color: #2f2924;
  box-shadow: 28px 0 70px rgba(18, 11, 5, 0.22);
  transform: translateX(-104%);
  transition: transform 220ms ease;
}

.dealer-menu-open .dealer-menu-panel {
  transform: translateX(0);
}

.dealer-menu-close {
  position: absolute;
  top: 18px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #2f2924;
  font-size: 2.8rem;
  font-weight: 250;
  line-height: 1;
  cursor: pointer;
}

.dealer-menu-close:hover,
.dealer-menu-close:focus-visible {
  background: #fff8f0;
  outline: none;
}

.dealer-menu-nav {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  align-content: start;
  gap: 0.45rem;
  min-height: calc(100dvh - 112px);
  padding-top: 36px;
}

.dealer-menu-nav section {
  display: grid;
  gap: 0.12rem;
}

.dealer-menu-nav h2 {
  margin: 0.55rem 0 0.18rem;
  color: #2f2924;
  font-size: 1.02rem;
  font-weight: 920;
  line-height: 1.1;
}

.dealer-menu-nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 34px;
  padding-left: clamp(34px, 7vw, 62px);
  color: #2f2924;
  font-size: clamp(1.02rem, 1.5vw, 1.12rem);
  font-weight: 640;
  line-height: 1.1;
  text-decoration: none;
}

.dealer-menu-contact span {
  position: absolute;
  left: clamp(8px, 2.4vw, 28px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #111111;
}

.dealer-menu-contact svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dealer-menu-social {
  display: flex;
  align-items: center;
  align-self: end;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
  margin-top: auto;
  padding: 1.4rem 0 0;
}

.dealer-menu-nav .dealer-menu-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-height: 32px;
  padding: 0;
  color: #111111;
}

.dealer-menu-social svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dealer-menu-social a:last-child svg {
  fill: currentColor;
  stroke: none;
}

.dealer-menu-social .social-icon-dot {
  fill: currentColor;
  stroke: none;
}

.dealer-menu-nav .dealer-menu-social .dealer-menu-marketplace {
  width: auto;
  min-width: 0;
  padding: 0;
}

.dealer-menu-marketplace img {
  display: block;
  width: 66px;
  height: 24px;
  object-fit: contain;
}

.dealer-menu-cars img {
  width: 58px;
}

.dealer-menu-nav a:hover,
.dealer-menu-nav a:focus-visible {
  color: var(--accent-dark);
  outline: none;
}

body.dealer-menu-open {
  overflow: hidden;
}

.longhorn .dealer-header .tabs,
body.home-page .dealer-header .tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-column: auto;
  grid-row: auto;
  justify-self: start;
  width: min(580px, 100%);
  gap: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.longhorn .dealer-header .tab,
.longhorn .dealer-header .tabs button.tab,
.longhorn .dealer-header .nav-dropdown a {
  position: relative;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0;
  color: #2f2924;
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0;
  background: transparent;
  white-space: nowrap;
}

.longhorn .dealer-header .tab:hover,
.longhorn .dealer-header .tab:focus-visible,
.longhorn .dealer-header .tab.active {
  color: var(--accent-dark);
  background: transparent;
  outline: none;
}

.longhorn .dealer-header .tab::after {
  content: none;
}

.longhorn .dealer-header .tab:hover::after,
.longhorn .dealer-header .tab:focus-visible::after,
.longhorn .dealer-header .tab.active::after {
  content: none;
}

.home-trust-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  padding: 0.55rem 1rem;
  background: var(--accent-dark);
  color: #ffffff;
  font-size: clamp(0.64rem, 1vw, 0.76rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-align: center;
}

.home-trust-banner span {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.home-trust-banner span:not(:last-child)::after {
  content: "•";
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82em;
}

body.showing-about .home-trust-banner {
  display: none;
}

/* Minimal About page */
.about-simple-shell {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(46px, 6vw, 78px) 0 32px;
}

.about-simple-label {
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-simple-intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(38px, 8vw, 110px);
  padding-bottom: clamp(46px, 6vw, 72px);
  border-bottom: 1px solid var(--line-strong);
}

.about-simple-intro h2 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.95;
}

.about-simple-copy {
  align-self: end;
  max-width: 680px;
}

.about-simple-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.72;
}

.about-simple-copy p + p {
  margin-top: 1rem;
}

.about-simple-services {
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(38px, 8vw, 110px);
  padding: clamp(42px, 6vw, 68px) 0;
  border-bottom: 1px solid var(--line-strong);
}

.about-simple-heading h2,
.about-simple-contact h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
}

.about-simple-services dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.about-simple-services dl > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}

.about-simple-services dt {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 850;
}

.about-simple-services dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.about-simple-reviews {
  display: grid;
  grid-template-columns: minmax(190px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(38px, 8vw, 110px);
  padding: clamp(42px, 6vw, 68px) 0;
  border-bottom: 1px solid var(--line-strong);
}

.about-rating > div {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.about-rating strong {
  color: var(--text);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 1;
}

.about-simple-stars {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.about-rating > a,
.about-simple-map > a {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-underline-offset: 0.22em;
}

.about-review-lines {
  border-top: 1px solid var(--line);
}

.about-review-lines figure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  margin: 0;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.about-review-lines blockquote {
  margin: 0;
  color: var(--text);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  font-weight: 720;
  line-height: 1.35;
}

.about-review-lines figcaption {
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.about-simple-visit {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(38px, 8vw, 92px);
  align-items: center;
  padding: clamp(42px, 6vw, 68px) 0 18px;
}

.about-simple-contact address {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.4rem;
  font-style: normal;
}

.about-simple-contact address a {
  width: fit-content;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 720;
  line-height: 1.45;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.about-visit-note {
  max-width: 390px;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.about-contact-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.about-contact-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 40px;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 820;
  text-decoration: none;
}

.about-contact-actions a:hover,
.about-contact-actions a:focus-visible {
  border-color: var(--accent-dark);
  color: var(--accent-dark);
  outline: 0;
}

.about-simple-map {
  display: grid;
  gap: 0.65rem;
}

.about-simple-map .contact-map {
  height: 245px;
  min-height: 245px;
  box-shadow: none;
}

.about-simple-map > a {
  justify-self: end;
  margin-top: 0;
}

@media (max-width: 760px) {
  .about-simple-shell {
    width: min(100% - 28px, 620px);
    padding-top: 30px;
  }

  .about-simple-intro,
  .about-simple-services,
  .about-simple-reviews,
  .about-simple-visit {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-simple-services dl > div {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .about-simple-reviews {
    gap: 18px;
  }

  .about-simple-map .contact-map {
    height: 220px;
    min-height: 220px;
  }
}

/* Consistent affordance for every interactive control. */
a[href],
button:not(:disabled),
summary,
select:not(:disabled),
label[for],
input[type="button"]:not(:disabled),
input[type="submit"]:not(:disabled),
input[type="reset"]:not(:disabled),
input[type="checkbox"]:not(:disabled),
input[type="radio"]:not(:disabled),
input[type="file"]:not(:disabled),
[role="button"]:not([aria-disabled="true"]),
[onclick]:not([aria-disabled="true"]) {
  cursor: pointer;
}

button:disabled,
select:disabled,
input:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
}

@media (max-width: 520px) {
  .about-simple-shell {
    width: 100%;
  }

  .about-simple-intro h2 {
    font-size: clamp(2.55rem, 13vw, 3.55rem);
  }

  .about-simple-services dl > div,
  .about-review-lines figure {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .about-review-lines figcaption {
    white-space: normal;
  }
}

/* Contact-first About page */
.about-contact-first {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(38px, 5vw, 66px) 0 30px;
}

.about-contact-label {
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-contact-hero {
  display: grid;
  grid-template-columns: minmax(330px, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(38px, 7vw, 82px);
  align-items: center;
  padding-bottom: clamp(42px, 6vw, 68px);
  border-bottom: 1px solid var(--line-strong);
}

.about-contact-primary h2 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: 0.96;
}

.about-contact-primary > p:not(.about-contact-label) {
  max-width: 520px;
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  line-height: 1.65;
}

.about-contact-buttons {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.about-contact-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
}

.about-contact-buttons a.primary {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #ffffff;
}

.about-contact-buttons a:hover,
.about-contact-buttons a:focus-visible {
  border-color: var(--accent);
  outline: 0;
}

.about-contact-details {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.55rem;
  font-style: normal;
}

.about-contact-details div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0.8rem;
}

.about-contact-details span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-contact-details a {
  width: fit-content;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 720;
  line-height: 1.4;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.about-contact-map {
  display: grid;
  gap: 0.65rem;
}

.about-contact-map .contact-map {
  height: 300px;
  min-height: 300px;
  box-shadow: none;
}

.about-contact-map > a {
  justify-self: end;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  text-underline-offset: 0.22em;
}

.about-dealership {
  display: grid;
  grid-template-columns: minmax(190px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(38px, 8vw, 104px);
  padding: clamp(42px, 6vw, 68px) 0;
  border-bottom: 1px solid var(--line-strong);
}

.about-dealership h2 {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1;
}

.about-dealership > div:last-child {
  max-width: 680px;
}

.about-dealership > div:last-child p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.68;
}

.about-dealership > div:last-child p + p {
  margin-top: 0.95rem;
}

.about-help {
  padding: clamp(42px, 6vw, 68px) 0;
  border-bottom: 1px solid var(--line-strong);
}

.about-help-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.about-help-heading h2 {
  max-width: 540px;
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1.05;
  text-align: right;
}

.about-help-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.about-help-list article {
  display: grid;
  grid-template-columns: minmax(110px, 0.45fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.about-help-list article:nth-child(odd) {
  padding-right: clamp(18px, 3vw, 38px);
}

.about-help-list article:nth-child(even) {
  padding-left: clamp(18px, 3vw, 38px);
  border-left: 1px solid var(--line);
}

.about-help-list h3 {
  margin: 0;
  font-size: 0.9rem;
}

.about-help-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.about-google {
  display: grid;
  grid-template-columns: minmax(190px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(38px, 8vw, 104px);
  padding: clamp(42px, 6vw, 68px) 0 16px;
}

.about-google-score > div {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}

.about-google-score strong {
  font-size: clamp(2.5rem, 4vw, 3.7rem);
  line-height: 1;
}

.about-google-score span {
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.about-google-score > a {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  text-underline-offset: 0.22em;
}

.about-google-quotes {
  border-top: 1px solid var(--line);
}

.about-google-quotes figure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin: 0;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}

.about-google-quotes blockquote {
  margin: 0;
  font-size: clamp(0.98rem, 1.4vw, 1.18rem);
  font-weight: 720;
  line-height: 1.35;
}

.about-google-quotes figcaption {
  color: var(--muted);
  font-size: 0.74rem;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .about-contact-first {
    width: min(100% - 28px, 660px);
    padding-top: 28px;
  }

  .about-contact-hero,
  .about-dealership,
  .about-google {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-contact-map .contact-map {
    height: 240px;
    min-height: 240px;
  }

  .about-help-list {
    grid-template-columns: 1fr;
  }

  .about-help-list article:nth-child(odd),
  .about-help-list article:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 520px) {
  .about-contact-first {
    width: 100%;
  }

  .about-contact-primary h2 {
    font-size: clamp(2.5rem, 13vw, 3.45rem);
  }

  .about-contact-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .about-contact-buttons a {
    padding: 0 0.7rem;
  }

  .about-help-heading {
    display: block;
  }

  .about-help-heading h2 {
    margin-top: 0.4rem;
    text-align: left;
  }

  .about-help-list article,
  .about-google-quotes figure {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .about-google-quotes figcaption {
    white-space: normal;
  }
}

/* About page */
.about-panel {
  align-content: start;
  overflow: hidden;
  background: #ffffff;
}

.about-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(42px, 6vw, 82px) 0 18px;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: clamp(44px, 8vw, 112px);
  align-items: end;
  padding-bottom: clamp(46px, 7vw, 82px);
}

.about-intro,
.about-intro-copy,
.about-highlights,
.about-reviews,
.about-values,
.about-visit {
  min-width: 0;
}

.about-kicker {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-intro .about-title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.45rem, 5.4vw, 5.2rem);
  line-height: 0.96;
}

.about-intro-copy > p:last-child {
  max-width: 690px;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.13rem);
  line-height: 1.7;
}

.about-highlights {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.about-highlights div {
  display: grid;
  grid-template-columns: minmax(108px, 0.5fr) 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.about-highlights strong {
  color: var(--text);
  font-size: 0.92rem;
}

.about-highlights span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.about-reviews,
.about-values {
  padding: clamp(46px, 6vw, 72px) 0;
}

.about-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.about-section-heading h2,
.about-visit h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.02;
}

.about-section-heading > a,
.about-map > a {
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.about-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.about-review-grid article {
  min-height: 190px;
  padding: clamp(20px, 2.5vw, 28px);
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.9);
}

.about-stars {
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.about-review-grid blockquote {
  margin: 1.25rem 0 1.8rem;
  color: var(--text);
  font-size: clamp(1.1rem, 1.65vw, 1.45rem);
  font-weight: 760;
  line-height: 1.3;
}

.about-review-grid article > p {
  margin: 0;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
}

.about-review-grid article > p span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 650;
}

.about-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.about-value-grid article {
  padding: 1.6rem clamp(16px, 2.8vw, 38px) 0 0;
}

.about-value-grid article + article {
  padding-left: clamp(16px, 2.8vw, 38px);
  border-left: 1px solid var(--line);
}

.about-value-grid span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.about-value-grid h3 {
  margin: 0.7rem 0 0.6rem;
  font-size: 1.05rem;
}

.about-value-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.about-visit {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(380px, 1.1fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
  padding: clamp(42px, 6vw, 72px) 0 38px;
  border-top: 1px solid var(--line-strong);
}

.about-visit .contact-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none;
  margin-top: 1.7rem;
}

.about-visit .contact-list div {
  padding: 0;
  border: 0;
  background: transparent;
}

.about-visit .contact-list div:first-child {
  grid-column: 1 / -1;
}

.about-visit .contact-list p,
.about-visit .contact-list a {
  font-size: 0.9rem;
}

.about-map {
  display: grid;
  gap: 0.75rem;
}

.about-map .contact-map {
  height: 290px;
  min-height: 290px;
  box-shadow: none;
}

.about-map > a {
  justify-self: end;
}

@media (max-width: 860px) {
  .about-shell {
    width: min(100% - 28px, 680px);
    padding-top: 28px;
  }

  .about-intro,
  .about-visit {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-review-grid,
  .about-value-grid {
    grid-template-columns: 1fr;
  }

  .about-review-grid article {
    min-height: 0;
  }

  .about-value-grid article,
  .about-value-grid article + article {
    padding: 1.35rem 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .about-visit {
    padding-top: 38px;
  }

  .about-map .contact-map {
    height: 250px;
    min-height: 250px;
  }
}

@media (max-width: 520px) {
  .about-panel {
    background: #ffffff;
  }

  .about-shell {
    width: 100%;
    max-width: none;
  }

  .about-intro .about-title {
    max-width: 100%;
    font-size: clamp(2.15rem, 11vw, 3.25rem);
    overflow-wrap: normal;
  }

  .about-intro-copy > p:last-child {
    max-width: 100%;
  }

  .about-highlights div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .about-section-heading {
    align-items: start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .about-visit .contact-list {
    grid-template-columns: 1fr;
  }

  .about-visit .contact-list div:first-child {
    grid-column: auto;
  }
}

.dealer-hero {
  min-height: calc(100vh - 115px);
  border-bottom-right-radius: 26px;
  border-bottom-left-radius: 26px;
}

.dealer-hero::before {
  background:
    linear-gradient(180deg, rgba(10, 8, 6, 0.06), rgba(10, 8, 6, 0.46) 48%, rgba(10, 8, 6, 0.8)),
    radial-gradient(circle at 50% 48%, rgba(191, 87, 0, 0.12), transparent 38%);
}

.dealer-hero-media {
  background: #0b0a09;
}

.dealer-hero-media img {
  width: 100%;
  height: 100%;
  margin-top: 0;
  object-fit: cover;
  object-position: center 45%;
  opacity: 0.92;
  filter: saturate(0.88) contrast(1.06);
  transform: none;
}

.dealer-hero-content {
  align-content: end;
  padding-top: clamp(120px, 18vh, 180px);
  padding-bottom: clamp(48px, 8vh, 86px);
}

.dealer-hero-content h1 {
  max-width: 920px;
  font-size: clamp(2.55rem, 5vw, 5.15rem);
  line-height: 1.08;
  font-weight: 880;
}

.dealer-hero-content > p:not(.hero-kicker) {
  max-width: 760px;
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  font-weight: 720;
  line-height: 1.45;
}

.hero-search {
  width: min(640px, 100%);
}

.hero-actions .contact-cta {
  border-radius: 6px;
  font-size: 0.94rem;
}

.hero-scroll-cue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 34px;
  margin-top: clamp(18px, 3vh, 28px);
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 0;
  text-decoration: none;
  transition: transform 180ms ease;
}

.hero-scroll-cue::before {
  content: "";
  width: 15px;
  height: 15px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
}

.hero-scroll-cue:hover,
.hero-scroll-cue:focus-visible {
  outline: 0;
  transform: translateY(3px);
}

@media (max-width: 760px) {
  .hero-scroll-cue::before {
    width: 12px;
    height: 12px;
    border-width: 0 2px 2px 0;
  }
}

.home-details {
  scroll-margin-top: 118px;
}

.popular-models {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.2rem;
  padding-top: clamp(28px, 4vw, 48px);
}

.popular-models h2 {
  white-space: nowrap;
}

.popular-models div {
  justify-content: flex-start;
}

body.home-page .shop-path-grid {
  gap: 0.85rem;
}

body.home-page .shop-path-grid a {
  min-height: 110px;
}

body.home-page .shop-path-grid strong {
  font-size: clamp(1.02rem, 1.5vw, 1.24rem);
}

body.home-page .home-showcase {
  margin-top: clamp(8px, 2vw, 28px);
  margin-bottom: clamp(42px, 7vw, 88px);
}

body.home-page .home-showcase .vehicle-card {
  border-radius: 6px;
  box-shadow: 0 18px 54px rgba(74, 41, 14, 0.1);
}

body.home-page .home-showcase .vehicle-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

body.home-page .home-showcase .carfax-link,
body.home-page .home-showcase .book-link {
  width: 100%;
  min-height: 38px;
  padding: 0 0.85rem;
  font-size: 0.76rem;
  line-height: 1;
}

body.home-page .home-showcase .carfax-link:not(.disabled) {
  border-color: #265bac;
  background: #265bac;
  color: #ffffff;
}

body.home-page .home-showcase .carfax-link:not(.disabled):hover,
body.home-page .home-showcase .carfax-link:not(.disabled):focus-visible {
  border-color: #1e4b91;
  background: #1e4b91;
  color: #ffffff;
}

.longhorn:not(.home-page) main {
  padding-top: clamp(14px, 2vw, 30px);
}

.page-heading,
.sell-layout,
.vehicle-detail-layout,
.admin-shell {
  border-top: 4px solid var(--accent-dark);
}

.page-heading {
  max-width: none;
  padding: clamp(22px, 4vw, 40px);
  border-radius: 6px;
  background: linear-gradient(135deg, #fffaf5 0%, #ffffff 64%);
}

.page-heading h1 {
  max-width: none;
}

.inventory-search input,
.sell-form input,
.sell-form textarea {
  border-radius: 6px;
}

.vehicle-card,
.inventory-empty-message,
.sell-form,
.vehicle-detail-layout {
  border-radius: 6px;
}

body.sell-page main {
  width: 100%;
  max-width: none;
  padding-top: 0;
}

body.sell-page .sell-panel {
  padding: clamp(18px, 2.2vw, 30px) 0 clamp(46px, 7vw, 86px);
  background:
    linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
}

body.sell-page .sell-layout {
  width: min(1440px, calc(100vw - 48px));
  margin: 0 auto;
  grid-template-columns: minmax(270px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(18px, 2.2vw, 34px);
  padding-top: 0;
  border-top: 0;
}

body.sell-page .intro-copy {
  position: sticky;
  top: 112px;
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid rgba(93, 49, 11, 0.16);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(74, 41, 14, 0.08);
}

body.sell-page .sell-layout h1 {
  max-width: 560px;
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
}

body.sell-page .sell-layout .lede {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  font-weight: 680;
  line-height: 1.62;
}

body.sell-page .intro-copy::after {
  content: "SELL • TRADE";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 0.85rem;
  border-radius: 6px;
  background: var(--accent-dark);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

body.sell-page .sell-form {
  gap: 0.9rem;
  padding: clamp(18px, 2vw, 24px);
  border: 1px solid rgba(93, 49, 11, 0.16);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(74, 41, 14, 0.08);
}

body.sell-page .sell-form label,
body.sell-page .condition-group legend {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

body.sell-page .sell-form input,
body.sell-page .sell-form textarea {
  min-height: 42px;
  border-color: rgba(93, 49, 11, 0.2);
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 720;
}

body.sell-page .condition-group {
  gap: 0.7rem;
}

body.sell-page .sell-form .condition-option {
  min-height: 126px;
  border-color: rgba(93, 49, 11, 0.16);
  border-radius: 6px;
  box-shadow: none;
}

body.sell-page .condition-option span {
  font-size: 0.94rem;
}

body.sell-page .condition-option p {
  font-size: 0.84rem;
  line-height: 1.45;
}

body.sell-page .condition-option:has(input:checked) {
  border-color: var(--accent-dark);
  background: #fffaf5;
  box-shadow: inset 0 0 0 1px rgba(93, 49, 11, 0.34);
}

body.sell-page .sell-actions .book-link {
  min-width: 190px;
  min-height: 44px;
  border-radius: 6px;
  background: var(--accent-dark);
  color: #ffffff;
}

@media (max-width: 900px) {
  body.sell-page .sell-layout {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 720px);
  }

  body.sell-page .intro-copy {
    position: static;
  }

  body.sell-page .sell-layout h1 {
    font-size: clamp(1.9rem, 9vw, 2.75rem);
  }
}

@media (max-width: 1120px) {
  .main-nav-row {
    grid-template-columns: auto auto minmax(220px, 1fr);
  }

  .nav-search {
    justify-self: stretch;
  }

  .longhorn .dealer-header .tabs,
  body.home-page .dealer-header .tabs {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: center;
    gap: 0;
    border-top: 0;
    padding-top: 12px;
  }

  .longhorn .dealer-header .tab {
    flex: 1 1 0;
  }
}

@media (max-width: 720px) {
  .utility-bar {
    justify-content: center;
  }

  .utility-bar a {
    flex: 1 1 0;
    justify-content: center;
    padding: 0 0.7rem;
    font-size: 0.74rem;
    text-align: center;
  }

  .main-nav-row {
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    gap: 0.75rem;
    padding: 10px 14px 12px;
  }

  .menu-toggle {
    grid-column: 1;
    justify-self: start;
  }

  .longhorn .dealer-header .brand,
  body.home-page .dealer-header .brand {
    grid-column: 2;
    justify-self: center;
  }

  .nav-search {
    grid-column: 1 / -1;
  }

  .nav-search input,
  .inventory-search input,
  .admin-search input,
  .sell-form input,
  .sell-form select,
  .sell-form textarea,
  .modal-form input,
  .modal-form select,
  .modal-form textarea {
    font-size: 16px;
  }

  .longhorn .dealer-header .longhorn-logo,
  body.home-page .dealer-header .longhorn-logo {
    width: min(285px, 72vw);
    height: 82px;
  }

  .longhorn .dealer-header .tabs,
  body.home-page .dealer-header .tabs {
    display: none;
  }

  .longhorn .dealer-header .tab {
    min-height: 42px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    font-size: 0.78rem;
  }

  .longhorn .dealer-header .tab.active,
  .longhorn .dealer-header .tab:hover,
  .longhorn .dealer-header .tab:focus-visible {
    background: var(--accent-dark);
    color: #ffffff;
  }

  .longhorn .dealer-header .tab::after {
    display: none;
  }

  .dealer-hero {
    min-height: min(620px, calc(100svh - 112px));
    border-radius: 0 0 18px 18px;
  }

  .home-trust-banner {
    gap: 0.24rem 0.5rem;
    padding: 0.48rem 0.7rem;
    font-size: 0.56rem;
    letter-spacing: 0.08em;
  }

  .home-trust-banner span {
    gap: 0.5rem;
  }

  .dealer-hero-media img {
    width: 100%;
    height: 100%;
    margin-top: 0;
    object-position: center 30%;
    transform: scale(1.14);
  }

  .dealer-hero-content {
    width: min(100% - 24px, 920px);
    padding-top: 112px;
    padding-bottom: 28px;
  }

  .dealer-hero-content h1 {
    font-size: clamp(2.15rem, 10vw, 3.15rem);
    line-height: 1.05;
  }

  .dealer-hero-content > p:not(.hero-kicker) {
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .hero-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    width: 100%;
  }

  .hero-actions .contact-cta {
    min-height: 46px;
    padding: 0 0.28rem;
    font-size: 0.76rem;
  }

  .popular-models {
    grid-template-columns: 1fr;
  }
}

.longhorn .dealer-header .tabs,
body.home-page .dealer-header .tabs,
.longhorn .tabs,
body.home-page .tabs {
  border: 0 !important;
  outline: 0;
  box-shadow: none !important;
  background: transparent !important;
}

.longhorn .dealer-header .tab,
.longhorn .dealer-header .tabs button.tab,
body.home-page .dealer-header .tab,
body.home-page .dealer-header .tabs button.tab {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.longhorn .dealer-header .tab.active,
.longhorn .dealer-header .tab:hover,
.longhorn .dealer-header .tab:focus-visible,
body.home-page .dealer-header .tab.active,
body.home-page .dealer-header .tab:hover,
body.home-page .dealer-header .tab:focus-visible {
  background: transparent !important;
  color: var(--accent-dark);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.inventory-panel {
  padding-top: clamp(22px, 4vw, 46px);
}

body.inventory-page main {
  width: 100%;
  max-width: none;
  padding-top: 0;
}

body.inventory-page .inventory-panel {
  padding-top: 0;
}

.inventory-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(208px, 220px) minmax(0, 1fr);
  gap: clamp(18px, 1.6vw, 28px);
  width: min(1840px, calc(100vw - 44px));
  margin: 0 auto clamp(48px, 7vw, 88px);
  align-items: start;
}

.inventory-sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 0.9rem;
  max-height: calc(100vh - 122px);
  margin-top: 78px;
  overflow: auto;
  padding: clamp(14px, 1.3vw, 18px);
  border: 1px solid rgba(93, 49, 11, 0.18);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(74, 41, 14, 0.07);
}

.inventory-sidebar-heading {
  display: grid;
  gap: 0;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(93, 49, 11, 0.12);
}

.inventory-sidebar-heading span,
.inventory-search,
.inventory-select,
.inventory-sort {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inventory-sidebar-heading strong {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.15;
}

.inventory-sidebar .inventory-search {
  margin-top: 0;
}

.inventory-search,
.inventory-select,
.inventory-sort {
  display: grid;
  gap: 0.45rem;
  max-width: none;
}

.inventory-search input,
.inventory-select select,
.inventory-sort select {
  width: 100%;
  min-height: 44px;
  padding: 0 0.82rem;
  border: 1px solid rgba(93, 49, 11, 0.26);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}

.inventory-search input:focus,
.inventory-select select:focus,
.inventory-sort select:focus {
  border-color: var(--accent-dark);
  outline: none;
  box-shadow: 0 0 0 3px rgba(191, 87, 0, 0.12);
}

.inventory-sidebar .inventory-search input,
.inventory-sidebar .inventory-select select {
  min-height: 42px;
  padding: 0 0.72rem;
  font-size: 0.82rem;
  font-weight: 720;
}

.inventory-sidebar .inventory-type-filter {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin-top: 0;
}

.inventory-sidebar .inventory-type-filter label {
  justify-content: flex-start;
  min-height: 42px;
  padding: 0 0.75rem;
  border-color: rgba(93, 49, 11, 0.22);
  background: #fffaf5;
  color: var(--text);
}

.inventory-results {
  min-width: 0;
}

.inventory-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.72rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(93, 49, 11, 0.14);
}

.inventory-filter-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 1px solid rgba(93, 49, 11, 0.18);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
}

.inventory-filter-toggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 14px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.inventory-filter-toggle span::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 18px;
  border-top: 2px solid currentColor;
}

.inventory-results-bar p {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 900;
}

.inventory-sort {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  width: auto;
  min-width: 0;
  white-space: nowrap;
}

.inventory-sort select {
  width: 176px;
  min-height: 38px;
  padding: 0 0.68rem;
  font-size: 0.82rem;
}

.inventory-page-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.15vw, 20px);
  margin-top: 0;
}

.inventory-page-grid .vehicle-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  min-width: 0;
  min-height: 100%;
  border-radius: 6px;
  box-shadow: 0 16px 38px rgba(74, 41, 14, 0.08);
}

.inventory-page-grid .vehicle-media {
  height: auto;
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.inventory-page-grid .vehicle-media img {
  padding: clamp(6px, 0.8vw, 12px);
}

.inventory-page-grid .status-pill,
.inventory-page-grid .dealer-card .status-pill,
.inventory-page-grid .dealer-card .status-pill.available {
  right: 12px;
  bottom: 12px;
  min-height: 26px;
  padding: 0 0.55rem;
  border-radius: 4px;
  font-size: 0.58rem;
  letter-spacing: 0.07em;
}

.inventory-page-grid .vehicle-details {
  align-content: start;
  gap: 0.85rem;
  padding: clamp(14px, 1.8vw, 18px);
}

.inventory-page-grid .vehicle-card-heading {
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.inventory-page-grid .vehicle-card-heading h2 {
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.12;
}

.inventory-page-grid .vehicle-trim {
  font-size: 0.78rem;
}

.inventory-page-grid .vehicle-price {
  justify-self: start;
  font-size: 0.88rem;
}

.inventory-page-grid .specs {
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.7rem;
}

.inventory-page-grid .specs dt {
  font-size: 0.64rem;
}

.inventory-page-grid .specs dd {
  font-size: 0.78rem;
}

.inventory-page-grid .vehicle-card-actions {
  margin-top: auto;
  gap: 0.55rem;
}

.inventory-page-grid .carfax-link,
.inventory-page-grid .book-link {
  flex: 1 1 0;
  min-height: 36px;
  font-size: 0.74rem;
}

@media (max-width: 980px) {
  .inventory-layout {
    grid-template-columns: 1fr;
  }

  .inventory-sidebar {
    position: static;
    margin-top: 0;
  }

  .inventory-sidebar .inventory-type-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inventory-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .inventory-panel {
    padding-top: 12px;
  }

  .inventory-layout {
    gap: 0.5rem;
    width: min(100% - 28px, 1320px);
  }

  .inventory-results {
    display: contents;
  }

  .inventory-results-bar {
    order: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .inventory-filter-toggle {
    display: inline-flex;
    grid-column: 1;
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(93, 49, 11, 0.2);
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(74, 41, 14, 0.06);
    font-size: 0.86rem;
  }

  .inventory-filter-toggle span {
    width: 17px;
    height: 13px;
  }

  .inventory-filter-toggle span::before {
    width: 17px;
    top: 4px;
  }

  .inventory-results-bar p {
    display: none;
  }

  .inventory-sort {
    position: relative;
    grid-column: 2;
    display: grid;
    width: 100%;
    height: 48px;
    overflow: hidden;
    border: 1px solid rgba(93, 49, 11, 0.2);
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(74, 41, 14, 0.06);
    color: transparent;
    font-size: 0;
  }

  .inventory-sort::before {
    content: "Sort By";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
  }

  .inventory-sort select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
  }

  .inventory-sidebar {
    order: 2;
    position: static;
    display: grid;
    width: 100%;
    max-height: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(74, 41, 14, 0.08);
    transition: max-height 220ms ease, opacity 180ms ease, padding 220ms ease, transform 220ms ease;
  }

  .inventory-layout.filters-open .inventory-sidebar {
    max-height: 760px;
    padding-top: 14px;
    padding-bottom: 14px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .inventory-sidebar .inventory-type-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

.inventory-page-grid {
    order: 3;
    margin-top: 0.35rem;
    grid-template-columns: 1fr;
  }

  .inventory-page-grid .photo-arrow {
    z-index: 4;
    width: 46px;
    height: 46px;
    border-radius: 6px;
    font-size: 1.55rem;
  }

  .inventory-page-grid .photo-arrow-prev {
    left: 8px;
  }

  .inventory-page-grid .photo-arrow-next {
    right: 8px;
  }
}

#vehicle-detail {
  padding-top: clamp(12px, 2vw, 28px);
}

#vehicle-detail .vehicle-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: clamp(18px, 2.5vw, 34px);
  align-items: start;
  width: min(1360px, calc(100% - 40px));
  margin: 0 auto clamp(48px, 7vw, 84px);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.vehicle-detail-copy {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.75rem;
}

.vehicle-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
}

.vehicle-breadcrumb a {
  text-decoration: none;
}

.vehicle-breadcrumb a:hover,
.vehicle-breadcrumb a:focus-visible {
  color: var(--accent-dark);
  outline: none;
}

#vehicle-detail .vehicle-detail-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
}

#vehicle-detail .vehicle-detail-heading h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.98;
  white-space: normal;
}

#vehicle-detail .vehicle-detail-heading .vehicle-trim {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 850;
}

.vehicle-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.vehicle-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0 1rem;
  border: 1px solid rgba(93, 49, 11, 0.22);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(74, 41, 14, 0.06);
}

.vehicle-action-icon {
  display: none;
  width: 18px;
  height: 18px;
}

.vehicle-action-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vehicle-action-button:hover,
.vehicle-action-button:focus-visible {
  border-color: var(--accent-dark);
  color: var(--accent-dark);
  outline: none;
}

.vehicle-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.3vw, 1.02rem);
  font-weight: 780;
}

.vehicle-meta-line span:not(:last-child)::after {
  content: "/";
  margin-left: 0.75rem;
  color: rgba(118, 91, 67, 0.48);
}

#vehicle-detail .vehicle-detail-media {
  grid-column: 1;
  overflow: hidden;
  border: 1px solid rgba(93, 49, 11, 0.16);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(74, 41, 14, 0.08);
}

#vehicle-detail .vehicle-detail-media > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: clamp(8px, 1.4vw, 18px);
  object-fit: contain;
}

#vehicle-detail .vehicle-photo-gallery {
  grid-column: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

#vehicle-detail .vehicle-photo-strip {
  display: flex;
  grid-template-columns: none;
  gap: 0.55rem;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

#vehicle-detail .vehicle-photo-strip::-webkit-scrollbar {
  display: none;
}

#vehicle-detail .vehicle-photo-strip button {
  flex: 0 0 clamp(76px, 8.5vw, 104px);
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(93, 49, 11, 0.16);
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
  scroll-snap-align: start;
}

#vehicle-detail .vehicle-photo-strip button.active {
  border-color: var(--accent-dark);
  box-shadow: inset 0 0 0 1px var(--accent-dark);
}

#vehicle-detail .vehicle-photo-strip img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.thumbnail-scroll-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(93, 49, 11, 0.24);
  border-radius: 5px;
  background: #ffffff;
  color: var(--accent-dark);
  font: inherit;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.thumbnail-scroll-arrow:hover:not(:disabled),
.thumbnail-scroll-arrow:focus-visible {
  border-color: var(--accent-dark);
  background: #faf7f3;
  outline: none;
}

.thumbnail-scroll-arrow:disabled {
  cursor: default;
  opacity: 0.32;
}

.thumbnail-scroll-arrow[hidden] {
  display: none;
}

.vehicle-purchase-panel {
  position: sticky;
  top: 116px;
  grid-column: 2;
  grid-row: 2 / span 2;
  display: grid;
  gap: 1rem;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid rgba(93, 49, 11, 0.16);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(74, 41, 14, 0.08);
}

.vehicle-price-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.vehicle-price-stack div {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(93, 49, 11, 0.14);
}

.vehicle-price-stack strong {
  color: var(--text);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1;
}

.vehicle-price-stack span,
.vehicle-payment-note {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.45;
}

#vehicle-detail .detail-specs {
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

#vehicle-detail .detail-specs div {
  padding: 0;
  border: 0;
  background: transparent;
}

#vehicle-detail .detail-specs dt {
  font-size: 0.68rem;
}

#vehicle-detail .detail-specs dd {
  font-size: 0.92rem;
}

.vehicle-payment-note {
  margin: 0;
}

.payment-calculator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid rgba(93, 49, 11, 0.14);
  border-radius: 6px;
  background: #fffaf5;
}

.payment-calculator label {
  display: grid;
  gap: 0.38rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-calculator input,
.payment-calculator select {
  width: 100%;
  min-height: 40px;
  padding: 0 0.72rem;
  border: 1px solid rgba(93, 49, 11, 0.22);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.payment-calculator input:focus,
.payment-calculator select:focus {
  border-color: var(--accent-dark);
  outline: none;
  box-shadow: 0 0 0 3px rgba(191, 87, 0, 0.12);
}

.payment-calculator-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.payment-calculator-actions .book-link {
  width: auto;
  min-width: 150px;
  min-height: 42px;
  border-radius: 6px;
  background: var(--accent-dark);
  color: #ffffff;
}

.vehicle-purchase-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

#vehicle-detail .carfax-detail-link,
#vehicle-detail .book-link {
  width: 100%;
  min-height: 44px;
  border-radius: 6px;
  font-size: 0.84rem;
}

#vehicle-detail .book-link {
  background: var(--accent-dark);
  color: #ffffff;
}

.vehicle-description-panel {
  display: grid;
  gap: 0.55rem;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid rgba(93, 49, 11, 0.14);
  border-radius: 6px;
  background: #fffaf5;
}

.vehicle-description-panel h2,
.vehicle-description-panel p {
  margin: 0;
}

.vehicle-description-panel h2 {
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
}

.vehicle-description-panel p {
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.65;
  white-space: pre-line;
}

.vehicle-overview-panel {
  border-color: rgba(93, 49, 11, 0.14);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(74, 41, 14, 0.05);
}

.vehicle-overview-panel h2 {
  color: var(--text);
}

.vehicle-overview-panel p {
  color: var(--muted);
}

.vehicle-information-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
}

.vehicle-info-panel {
  min-width: 0;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid rgba(93, 49, 11, 0.14);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(74, 41, 14, 0.05);
}

.vehicle-info-panel h2,
.vehicle-info-panel ul,
.vehicle-info-panel p {
  margin: 0;
}

.vehicle-info-panel h2 {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(93, 49, 11, 0.12);
  color: var(--text);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  line-height: 1.2;
}

.vehicle-info-panel ul {
  display: grid;
  gap: 0.72rem;
  padding: 1rem 0 0;
  list-style: none;
}

.vehicle-info-panel li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 0.65rem;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.42;
}

.vehicle-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--accent-dark);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
}

.vehicle-info-features .vehicle-info-icon {
  font-size: 0.98rem;
}

.vehicle-info-specs .vehicle-info-icon {
  font-size: 1.25rem;
}

.vehicle-info-features ul,
.vehicle-info-specs ul {
  gap: 0.5rem;
}

.vehicle-info-features li,
.vehicle-info-specs li {
  grid-template-columns: 21px minmax(0, 1fr);
  gap: 0.5rem;
  font-size: 0.86rem;
  line-height: 1.34;
}

.vehicle-info-expand {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0.7rem auto 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--accent-dark);
  cursor: pointer;
  position: relative;
  z-index: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 150ms ease;
}

.vehicle-info-expand:hover,
.vehicle-info-expand:focus-visible {
  background: rgba(138, 79, 22, 0.08);
  outline: none;
}

.vehicle-info-expand span {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.vehicle-info-expand[aria-expanded="true"] span {
  transform: translateY(2px) rotate(225deg);
}

.vehicle-spec-disclaimer {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.2rem 0.15rem 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.5;
}

.vehicle-info-empty {
  display: flex;
  align-items: center;
  min-height: 68px;
  padding-top: 0.65rem;
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

.vehicle-section-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(93, 49, 11, 0.16);
  border-radius: 5px;
  background: #fffaf5;
}

.vehicle-section-nav a {
  min-width: 0;
  padding: 0.72rem 0.3rem;
  border-right: 1px solid rgba(93, 49, 11, 0.13);
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease;
}

.vehicle-section-nav a:last-child {
  border-right: 0;
}

.vehicle-section-nav a:hover,
.vehicle-section-nav a:active,
.vehicle-section-nav a:focus-visible {
  background: rgba(138, 79, 22, 0.1);
  outline: none;
}

#vehicle-overview,
#vehicle-packages,
#vehicle-features,
#vehicle-specs {
  scroll-margin-top: 96px;
}

.admin-list-field > span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

.deal-modal-open,
.payment-modal-open {
  overflow: hidden;
}

.deal-modal,
.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
}

.deal-modal[hidden],
.payment-modal[hidden] {
  display: none;
}

.deal-modal-backdrop,
.payment-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 11, 5, 0.58);
  backdrop-filter: blur(10px);
}

.deal-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(93, 49, 11, 0.14);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.vehicle-deal-panel,
.payment-modal-panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(720px, 92vh);
  overflow: auto;
  display: grid;
  gap: clamp(16px, 2.4vw, 24px);
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(93, 49, 11, 0.14);
  border-radius: 6px;
  background: linear-gradient(135deg, #fffaf5 0%, #ffffff 70%);
  box-shadow: 0 30px 90px rgba(18, 11, 5, 0.26);
}

.payment-modal-panel {
  width: min(620px, 100%);
}

.vehicle-deal-panel h2,
.vehicle-deal-panel p,
.payment-modal-panel h2,
.payment-modal-panel p {
  margin: 0;
}

.vehicle-deal-panel h2,
.payment-modal-panel h2 {
  padding-right: 2.3rem;
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  line-height: 1;
}

.vehicle-deal-panel > div > p,
.payment-modal-panel > div > p {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.6;
}

.deal-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.deal-form label {
  display: grid;
  gap: 0.42rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deal-form input,
.deal-form textarea {
  width: 100%;
  border: 1px solid rgba(93, 49, 11, 0.22);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0;
  padding: 0.82rem 0.9rem;
  text-transform: none;
}

.deal-consent,
.deal-form .book-link,
.deal-form .form-message {
  grid-column: 1 / -1;
}

.deal-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.65rem;
  padding: 0.9rem;
  border: 1px solid rgba(93, 49, 11, 0.16);
  border-radius: 6px;
  background: rgba(255, 250, 245, 0.82);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.deal-form .deal-consent input {
  width: 18px;
  height: 18px;
  margin-top: 0.08rem;
  accent-color: var(--accent-dark);
}

.deal-form input:focus,
.deal-form textarea:focus {
  border-color: var(--accent-dark);
  outline: none;
  box-shadow: 0 0 0 3px rgba(191, 87, 0, 0.12);
}

.deal-form .book-link {
  justify-self: start;
  min-width: 180px;
}

.deal-form .book-link:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-message {
  min-height: 1.2em;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.deal-form-intro[hidden],
.deal-form[hidden],
.deal-success[hidden] {
  display: none;
}

.deal-success {
  display: grid;
  justify-items: center;
  padding: 2rem 0.5rem 0.5rem;
  text-align: center;
}

.deal-success > span {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 1.15rem;
  place-items: center;
  border-radius: 50%;
  background: #71390b;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 900;
}

.deal-success h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.35rem);
}

.deal-success p {
  max-width: 430px;
  margin: 0.9rem auto 1.35rem;
  color: var(--muted);
  line-height: 1.55;
}

.deal-success .book-link {
  min-width: 150px;
}

@media (max-width: 900px) {
  #vehicle-detail .vehicle-detail-layout {
    grid-template-columns: 1fr;
  }

  #vehicle-detail .vehicle-detail-heading {
    grid-template-columns: 1fr;
  }

  .vehicle-detail-actions {
    justify-content: flex-start;
  }

  .vehicle-purchase-panel,
  #vehicle-detail .vehicle-detail-media,
  #vehicle-detail .vehicle-photo-gallery,
  .vehicle-information-grid {
    grid-column: 1;
    grid-row: auto;
  }

  .vehicle-purchase-panel {
    position: static;
  }

  .vehicle-deal-panel,
  .deal-form,
  .payment-calculator,
  .vehicle-information-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .vehicle-page main {
    width: 100%;
  }

  #vehicle-detail {
    padding-top: 10px;
  }

  #vehicle-detail .vehicle-detail-layout {
    width: 100%;
    gap: 1rem;
  }

  #vehicle-detail .vehicle-detail-copy,
  #vehicle-detail .vehicle-photo-gallery,
  #vehicle-detail .vehicle-purchase-panel,
  #vehicle-detail .vehicle-information-grid {
    width: calc(100% - 28px);
    margin-inline: auto;
  }

  #vehicle-detail .vehicle-detail-media {
    width: calc(100% - 30px);
    margin-inline: auto;
    border: 0;
  }

  #vehicle-detail .vehicle-detail-media > img {
    aspect-ratio: 4 / 3;
    padding: 0;
  }

  #vehicle-detail .vehicle-detail-heading h1 {
    max-width: 100%;
    font-size: clamp(1.32rem, 6.5vw, 1.95rem);
    line-height: 1.03;
    white-space: normal;
    text-wrap: balance;
  }

  #vehicle-detail .vehicle-photo-gallery {
    gap: 0.4rem;
  }

  #vehicle-detail .vehicle-photo-strip {
    gap: 0.48rem;
    padding-bottom: 0.25rem;
  }

  #vehicle-detail .vehicle-photo-strip button {
    flex-basis: 72px;
  }

  .thumbnail-scroll-arrow {
    width: 30px;
    height: 40px;
  }

  .vehicle-price-stack,
  .vehicle-purchase-actions {
    grid-template-columns: 1fr;
  }

  .vehicle-price-stack strong {
    font-size: 1.8rem;
  }

  .vehicle-section-nav {
    width: 100%;
  }

  .vehicle-section-nav a {
    padding: 0.68rem 0.15rem;
    font-size: 0.66rem;
  }

  .vehicle-detail-actions {
    gap: 0.45rem;
  }

  .vehicle-action-button {
    width: 38px;
    height: 38px;
    min-height: 0;
    padding: 0;
    border-color: rgba(93, 49, 11, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 22px rgba(74, 41, 14, 0.08);
  }

  .vehicle-action-icon {
    display: block;
    width: 17px;
    height: 17px;
  }

  .vehicle-action-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}

/* Indexable research and crawler-rendered inventory content */
.home-seo-content,
.home-faq {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(48px, 7vw, 84px) 0;
  border-top: 1px solid var(--line-strong);
}

.home-seo-intro {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(440px, 1.25fr);
  gap: clamp(30px, 7vw, 88px);
}

.home-seo-intro > h2 {
  grid-column: 1;
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.7rem);
  line-height: 1.02;
}

.home-seo-intro > div {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.home-seo-intro > div p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.72;
}

.home-research-links,
.seo-related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.2rem;
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.home-research-links a,
.seo-related a {
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 800;
  text-underline-offset: 0.25em;
}

.home-faq > h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
}

.home-faq details {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0;
}

.home-faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.home-faq summary {
  cursor: pointer;
  font-weight: 850;
}

.home-faq details p {
  max-width: 760px;
  margin: 0.8rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.seo-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.seo-page main,
.about-static-page main {
  width: 100%;
  max-width: none;
}

.seo-page-main {
  padding: clamp(44px, 7vw, 88px) 0;
}

.seo-article {
  width: min(940px, calc(100% - 40px));
  margin: 0 auto;
}

.seo-article > header {
  padding-bottom: clamp(34px, 5vw, 56px);
  border-bottom: 1px solid var(--line-strong);
}

.seo-article h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  line-height: 1;
}

.seo-lead {
  max-width: 720px;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.seo-article > section {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(400px, 1.25fr);
  gap: clamp(24px, 6vw, 70px);
  padding: clamp(34px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--line);
}

.seo-article section h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
}

.seo-article section p {
  grid-column: 2;
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.72;
}

.seo-article section p + p {
  grid-column: 2;
}

.seo-page-actions {
  display: flex;
  gap: 0.7rem;
  padding-top: 2rem;
}

.seo-trust-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #6a3b16;
  color: #ffffff;
}

.seo-trust-highlights > div {
  display: grid;
  align-content: center;
  min-height: 138px;
  padding: 1.45rem;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.seo-trust-highlights > div:last-child {
  border-right: 0;
}

.seo-trust-highlights strong,
.seo-trust-highlights span {
  display: block;
}

.seo-trust-highlights strong {
  font-size: 1rem;
  font-weight: 850;
}

.seo-trust-highlights span {
  margin-top: 0.42rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  line-height: 1.45;
}

.seo-trust-page .seo-article > header {
  padding-bottom: clamp(28px, 4vw, 44px);
}

.seo-trust-page .seo-trust-highlights {
  margin-top: clamp(24px, 4vw, 38px);
}

.seo-page .financing-main {
  width: min(1120px, calc(100% - 48px));
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(38px, 5vw, 68px) 0 clamp(54px, 7vw, 88px);
}

.financing-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: end;
}

.financing-intro-copy h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.96;
}

.financing-intro-copy > p:last-child {
  max-width: 660px;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.65;
}

.financing-contact {
  padding: clamp(26px, 3vw, 36px);
  background: #6a3b16;
  color: #ffffff;
}

.financing-contact-label {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.financing-contact h2 {
  margin: 0;
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  line-height: 1.06;
}

.financing-contact > p:not(.financing-contact-label) {
  margin: 0.9rem 0 1.6rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.financing-contact > div {
  display: flex;
  gap: 0.55rem;
}

.financing-contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.48);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.financing-contact a:hover,
.financing-contact a:focus-visible {
  background: #ffffff;
  color: #3b210d;
  outline: none;
}

.financing-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(44px, 7vw, 78px);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.financing-paths article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 1rem;
  padding: clamp(30px, 4vw, 46px) clamp(24px, 4vw, 48px) clamp(30px, 4vw, 46px) 0;
}

.financing-paths article + article {
  padding-right: 0;
  padding-left: clamp(24px, 4vw, 48px);
  border-left: 1px solid var(--line);
}

.financing-paths article > span {
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 900;
}

.financing-paths h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
}

.financing-paths p {
  margin: 0.8rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.financing-process {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(36px, 7vw, 84px);
  padding: clamp(48px, 7vw, 76px) 0;
  border-bottom: 1px solid var(--line);
}

.financing-section-heading h2,
.financing-ready h2 {
  max-width: 430px;
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.06;
}

.financing-process ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.financing-process li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 1rem;
  padding: 0 0 1.25rem;
}

.financing-process li + li {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.financing-process li > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 900;
}

.financing-process strong {
  font-size: 1rem;
}

.financing-process li p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.financing-ready {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(36px, 7vw, 84px);
  padding: clamp(48px, 7vw, 76px) 0;
  border-bottom: 1px solid var(--line-strong);
}

.financing-ready ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.financing-ready li {
  padding: 1rem 1rem 1rem 0;
  border-top: 1px solid var(--line);
  font-weight: 750;
  line-height: 1.45;
}

.financing-ready li:nth-child(even) {
  padding-left: 1rem;
}

.financing-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.5rem;
}

.financing-bottom > p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.financing-bottom > div {
  display: flex;
  flex: 0 0 auto;
  gap: 0.55rem;
}

.seo-page .warranty-main {
  width: min(1120px, calc(100% - 48px));
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(38px, 5vw, 68px) 0 clamp(54px, 7vw, 88px);
}

.warranty-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: end;
}

.warranty-intro-copy h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.96;
}

.warranty-intro-copy > p:last-child {
  max-width: 660px;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.65;
}

.warranty-contact {
  padding: clamp(26px, 3vw, 36px);
  background: #6a3b16;
  color: #ffffff;
}

.warranty-contact-label {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.warranty-contact h2 {
  margin: 0;
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  line-height: 1.06;
}

.warranty-contact > p:not(.warranty-contact-label) {
  margin: 0.9rem 0 1.6rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.warranty-contact > div {
  display: flex;
  gap: 0.55rem;
}

.warranty-contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.48);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.warranty-contact a:hover,
.warranty-contact a:focus-visible {
  background: #ffffff;
  color: #3b210d;
  outline: none;
}

.warranty-section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.06;
}

.warranty-providers {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(36px, 7vw, 84px);
  align-items: center;
  margin-top: clamp(44px, 7vw, 78px);
  padding: clamp(34px, 5vw, 50px) 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.warranty-provider-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  border: 1px solid var(--line);
}

.warranty-provider {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 108px;
  padding: 1.25rem;
  background: #ffffff;
  color: #1e1a17;
  text-decoration: none;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.warranty-provider + .warranty-provider {
  border-left: 1px solid var(--line);
}

.warranty-provider:hover,
.warranty-provider:focus-visible {
  position: relative;
  z-index: 1;
  background: #fcfaf8;
  box-shadow: 0 12px 24px rgba(53, 34, 18, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.warranty-provider img {
  display: block;
  width: 100%;
  max-width: 150px;
  max-height: 52px;
  object-fit: contain;
}

.warranty-provider-xcare {
  gap: 0.55rem;
}

.warranty-provider-xcare img {
  width: 38px;
  height: 38px;
}

.warranty-provider-xcare span,
.warranty-provider-xcare strong,
.warranty-provider-xcare small {
  display: block;
}

.warranty-provider-xcare strong {
  font-size: 1.05rem;
  line-height: 1;
}

.warranty-provider-xcare small {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.warranty-provider-battery img {
  max-width: 142px;
  max-height: 66px;
}

.warranty-coverage {
  padding: clamp(48px, 7vw, 76px) 0;
  border-bottom: 1px solid var(--line);
}

.warranty-coverage > .warranty-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  column-gap: clamp(36px, 7vw, 84px);
  align-items: end;
}

.warranty-coverage > .warranty-section-heading .about-contact-label {
  grid-column: 1 / -1;
}

.warranty-coverage > .warranty-section-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.warranty-coverage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(28px, 4vw, 42px);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.warranty-coverage-grid article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 1rem;
  min-height: 174px;
  padding: clamp(24px, 3vw, 34px);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: #ffffff;
}

.warranty-coverage-grid article > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(106, 59, 22, 0.28);
  background: #f6eee7;
  color: #6a3b16;
  font-size: 0.7rem;
  font-weight: 900;
}

.warranty-coverage-grid h3 {
  margin: 0;
  font-size: clamp(1.15rem, 1.8vw, 1.42rem);
  line-height: 1.15;
}

.warranty-coverage-grid p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.warranty-process {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(36px, 7vw, 84px);
  padding: clamp(48px, 7vw, 76px) 0;
  border-bottom: 1px solid var(--line-strong);
}

.warranty-process ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.warranty-process li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 1rem;
  padding: 0 0 1.25rem;
}

.warranty-process li + li {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.warranty-process li > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 900;
}

.warranty-process strong {
  font-size: 1rem;
}

.warranty-process li p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.warranty-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.5rem;
}

.warranty-bottom > p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.warranty-bottom > div {
  display: flex;
  flex: 0 0 auto;
  gap: 0.55rem;
}

.about-static-main {
  padding: clamp(42px, 6vw, 74px) 0;
}

.about-static-main .about-contact-hero,
.seo-about-copy {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.about-static-main .about-contact-primary h1 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: 0.96;
}

.seo-about-copy {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(420px, 1.15fr);
  gap: clamp(32px, 7vw, 82px);
  padding-top: clamp(42px, 6vw, 68px);
}

.seo-about-copy h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 3.1rem);
  line-height: 1.08;
}

.seo-about-copy > div:last-child p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 760px) {
  .home-seo-intro,
  .seo-article > section,
  .seo-about-copy {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .home-seo-intro > h2,
  .home-seo-intro > div,
  .seo-article section p,
  .seo-article section p + p {
    grid-column: 1;
    grid-row: auto;
  }

  .seo-page-actions {
    display: grid;
  }

  .seo-trust-highlights {
    grid-template-columns: 1fr;
  }

  .seo-trust-highlights > div {
    min-height: 0;
    padding: 1.15rem 1.25rem;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .seo-trust-highlights > div:last-child {
    border-bottom: 0;
  }

  .about-static-main .about-contact-hero {
    grid-template-columns: 1fr;
  }

  .seo-page .financing-main {
    width: min(100% - 28px, 1120px);
    padding-top: 30px;
  }

  .financing-intro,
  .financing-process,
  .financing-ready {
    grid-template-columns: 1fr;
  }

  .financing-intro {
    gap: 28px;
  }

  .financing-intro-copy h1 {
    font-size: clamp(2.4rem, 13vw, 3.7rem);
  }

  .financing-contact > div,
  .financing-bottom,
  .financing-bottom > div {
    display: grid;
  }

  .financing-contact a,
  .financing-bottom .contact-cta {
    width: 100%;
  }

  .financing-paths {
    grid-template-columns: 1fr;
  }

  .financing-paths article,
  .financing-paths article + article {
    padding: 28px 0;
    border-left: 0;
  }

  .financing-paths article + article {
    border-top: 1px solid var(--line);
  }

  .financing-process,
  .financing-ready {
    gap: 28px;
    padding: 42px 0;
  }

  .financing-ready ul {
    grid-template-columns: 1fr;
  }

  .financing-ready li:nth-child(even) {
    padding-left: 0;
  }

  .financing-bottom {
    align-items: stretch;
    padding-top: 1.25rem;
  }

  .seo-page .warranty-main {
    width: min(100% - 28px, 1120px);
    padding-top: 30px;
  }

  .warranty-intro,
  .warranty-providers,
  .warranty-process,
  .warranty-coverage > .warranty-section-heading {
    grid-template-columns: 1fr;
  }

  .warranty-intro {
    gap: 28px;
  }

  .warranty-intro-copy h1 {
    font-size: clamp(2.4rem, 13vw, 3.7rem);
  }

  .warranty-contact > div,
  .warranty-bottom,
  .warranty-bottom > div {
    display: grid;
  }

  .warranty-contact a,
  .warranty-bottom .contact-cta {
    width: 100%;
  }

  .warranty-providers,
  .warranty-process {
    gap: 28px;
    padding: 42px 0;
  }

  .warranty-provider-list {
    grid-template-columns: 1fr;
  }

  .warranty-provider {
    min-height: 92px;
  }

  .warranty-provider + .warranty-provider {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .warranty-coverage {
    padding: 42px 0;
  }

  .warranty-coverage > .warranty-section-heading {
    gap: 1rem;
  }

  .warranty-coverage > .warranty-section-heading .about-contact-label {
    grid-column: auto;
  }

  .warranty-coverage-grid {
    grid-template-columns: 1fr;
  }

  .warranty-coverage-grid article {
    min-height: 0;
  }

  .warranty-bottom {
    align-items: stretch;
    padding-top: 1.25rem;
  }
}

/* Financing page: calculator-led layout */
.seo-page .financing-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 clamp(38px, 5vw, 66px);
}

.financing-budget-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(36px, 6vw, 92px);
  width: min(1440px, 100%);
  min-height: 650px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 66px) max(24px, calc((100vw - 1280px) / 2));
  border-radius: 0 0 24px 24px;
  background:
    linear-gradient(90deg, rgba(8, 7, 8, 0.72), rgba(8, 7, 8, 0.16) 58%, rgba(8, 7, 8, 0.36)),
    url("/assets/financing-model-y-sunset.webp") center / cover no-repeat;
}

.financing-hero-copy {
  width: min(510px, 44vw);
  color: #ffffff;
}

.financing-hero-copy .financing-eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.financing-hero-copy h1 {
  max-width: 500px;
  margin: 0;
  font-size: clamp(2.7rem, 5.2vw, 5rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.financing-hero-copy ul {
  display: grid;
  gap: 0.7rem;
  margin: 1.7rem 0;
  padding: 0;
  list-style: none;
}

.financing-hero-copy li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  font-weight: 760;
}

.financing-hero-copy li::before {
  content: "✓";
  color: #f3c59e;
  font-weight: 900;
}

.financing-hero-copy > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid #71390b;
  border-radius: 4px;
  background: #71390b;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.financing-hero-copy > a:hover,
.financing-hero-copy > a:focus-visible {
  background: #5d2e08;
  color: #ffffff;
  box-shadow: 0 9px 18px rgba(20, 10, 3, 0.28);
  transform: translateY(-2px);
  outline: none;
}

.financing-hero-copy small {
  display: block;
  max-width: 430px;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.63rem;
  line-height: 1.5;
}

.financing-calculator {
  width: min(440px, 100%);
  padding: clamp(26px, 3.5vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 52px rgba(18, 11, 5, 0.24);
}

.financing-eyebrow {
  margin: 0 0 0.75rem;
  color: #7a3f0d;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.financing-calculator h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 3vw, 2.65rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.financing-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.financing-fields label {
  display: grid;
  gap: 0.38rem;
  color: #6f6258;
  font-size: 0.72rem;
  font-weight: 700;
}

.financing-fields .financing-field-wide {
  grid-column: 1 / -1;
}

.financing-fields input {
  width: 100%;
  height: 48px;
  padding: 0 0.85rem;
  border: 1px solid #cfc3b8;
  border-radius: 4px;
  background: #ffffff;
  color: #18110b;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 800;
}

.financing-fields input:focus {
  border-color: #7a3f0d;
  outline: 2px solid rgba(122, 63, 13, 0.16);
  outline-offset: 1px;
}

.financing-term-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0 0.5rem;
  color: #6f6258;
  font-size: 0.72rem;
}

.financing-term-heading strong {
  color: #18110b;
}

.financing-terms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid #cfc3b8;
  border-radius: 4px;
}

.financing-terms button {
  min-height: 44px;
  padding: 0;
  border: 0;
  border-right: 1px solid #cfc3b8;
  background: #ffffff;
  color: #18110b;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.financing-terms button:last-child {
  border-right: 0;
}

.financing-terms button:hover,
.financing-terms button:focus-visible,
.financing-terms button.active {
  background: #f0e3d7;
  color: #71390b;
  outline: none;
}

.financing-estimate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  background: #f7f2ed;
}

.financing-estimate span {
  font-size: 0.78rem;
  font-weight: 700;
}

.financing-estimate strong {
  color: #71390b;
  font-size: 1.4rem;
  line-height: 1;
}

.financing-primary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 0.8rem;
  border: 1px solid #71390b;
  border-radius: 4px;
  background: #71390b;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(113, 57, 11, 0.14);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.financing-primary-action:hover,
.financing-primary-action:focus-visible {
  background: #5d2e08;
  box-shadow: 0 12px 24px rgba(113, 57, 11, 0.24);
  outline: none;
  transform: translateY(-2px);
}

.financing-disclaimer {
  margin: 0.7rem 0 0;
  color: #766b62;
  font-size: 0.62rem;
  line-height: 1.45;
}

.financing-options {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: clamp(28px, 4vw, 54px);
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(48px, 7vw, 78px) 0;
  border-bottom: 1px solid var(--line);
}

.financing-options-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.financing-options article {
  padding-left: clamp(22px, 3vw, 36px);
  border-left: 1px solid var(--line);
}

.financing-options article > span {
  color: #7a3f0d;
  font-size: 0.7rem;
  font-weight: 900;
}

.financing-options h3 {
  margin: 1.15rem 0 0.7rem;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  letter-spacing: 0;
}

.financing-options article p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.financing-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: center;
  gap: clamp(22px, 3vw, 40px);
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0;
}

.financing-steps > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 0.55rem;
}

.financing-steps b {
  color: #7a3f0d;
  font-size: 0.68rem;
}

.financing-steps span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.financing-steps span strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--text);
  font-size: 0.84rem;
}

.financing-steps > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid #71390b;
  border-radius: 4px;
  color: #71390b;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.financing-steps > a:hover,
.financing-steps > a:focus-visible {
  background: #71390b;
  color: #ffffff;
  outline: none;
  transform: translateY(-2px);
}

.financing-legal {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .seo-page .financing-main {
    width: 100%;
    padding-top: 0;
  }

  .financing-budget-hero {
    display: grid;
    align-content: end;
    min-height: 960px;
    padding: 180px 14px 18px;
    border-radius: 0 0 18px 18px;
    background-position: 69% center;
  }

  .financing-hero-copy {
    width: 100%;
    padding: 0 10px;
  }

  .financing-hero-copy h1 {
    font-size: clamp(2.3rem, 11vw, 3.2rem);
  }

  .financing-hero-copy ul {
    margin: 1.1rem 0;
  }

  .financing-hero-copy small {
    display: none;
  }

  .financing-calculator {
    padding: 24px 20px;
  }

  .financing-calculator h2 {
    font-size: 2rem;
  }

  .financing-fields input {
    font-size: 1rem;
  }

  .financing-options {
    grid-template-columns: 1fr;
    width: min(100% - 36px, 1180px);
    gap: 24px;
    padding: 42px 0;
  }

  .financing-options article {
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .financing-steps {
    grid-template-columns: 1fr;
    width: min(100% - 36px, 1180px);
    gap: 20px;
    padding: 28px 0;
  }

  .financing-steps > a {
    width: 100%;
  }

  .financing-legal {
    width: min(100% - 36px, 1180px);
  }
}

/* Guided sell or trade offer experience */
body.sell-page {
  background: #f5f2ef;
}

body.sell-page .sell-experience {
  width: 100%;
  max-width: none;
  padding: 0 0 clamp(28px, 4vw, 52px);
}

.sell-offer-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(540px, 650px);
  gap: clamp(26px, 4vw, 64px);
  width: min(1440px, 100%);
  min-height: 690px;
  margin: 0 auto;
  overflow: hidden;
  padding: clamp(30px, 4vw, 58px);
  border-radius: 0 0 22px 22px;
  background: #120f0d;
  box-shadow: 0 24px 54px rgba(48, 31, 18, 0.12);
}

.sell-offer-visual {
  position: absolute;
  inset: 0;
  min-height: 100%;
  overflow: hidden;
  background: #120f0d;
}

.sell-offer-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 6, 5, 0.78) 0%, rgba(7, 6, 5, 0.3) 50%, rgba(7, 6, 5, 0.58) 100%);
}

.sell-offer-visual > img {
  width: 100%;
  height: 100%;
  min-height: 690px;
  object-fit: cover;
  object-position: center;
}

.sell-offer-visual-copy {
  position: relative;
  z-index: 1;
  grid-column: 1;
  align-self: start;
  width: min(430px, 100%);
  margin-top: clamp(28px, 3.4vw, 48px);
  color: #ffffff;
}

.sell-offer-visual-copy > p {
  margin: 0 0 0.9rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sell-offer-visual-copy h2 {
  max-width: 430px;
  margin: 0;
  font-size: clamp(2.5rem, 4.4vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.sell-offer-visual-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.15rem;
  margin: 1.5rem 0 0;
  padding: 1.15rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  list-style: none;
}

.sell-offer-visual-copy li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 750;
}

.sell-offer-visual-copy li::before {
  content: "✓";
  color: #ffffff;
  font-weight: 900;
}

.sell-form-shell {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  grid-column: 2;
  align-self: center;
  min-height: 0;
  padding: clamp(28px, 3.4vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 54px rgba(8, 6, 4, 0.28);
}

.sell-form-heading,
.sell-progress,
.sell-wizard {
  width: min(100%, 690px);
  margin-right: auto;
  margin-left: auto;
}

.sell-form-eyebrow {
  margin: 0 0 0.75rem;
  color: #71390b;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sell-form-heading h1 {
  margin: 0;
  font-size: clamp(2.1rem, 3.8vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.sell-form-heading > p:last-child {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.55;
}

.sell-progress {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: clamp(20px, 3vw, 30px);
  margin-bottom: clamp(20px, 3vw, 30px);
  padding: 0;
  list-style: none;
}

.sell-progress li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  color: #9a9189;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sell-progress li::before {
  content: "";
  position: absolute;
  top: 15px;
  right: 50%;
  left: -50%;
  height: 1px;
  background: #dfd7d0;
}

.sell-progress li:first-child::before {
  display: none;
}

.sell-progress span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid #d8cfc7;
  border-radius: 50%;
  background: #ffffff;
  color: #786f68;
  font-size: 0.72rem;
}

.sell-progress li.active,
.sell-progress li.complete {
  color: #71390b;
}

.sell-progress li.active span,
.sell-progress li.complete span {
  border-color: #71390b;
  background: #71390b;
  color: #ffffff;
}

.sell-progress li.complete::before,
.sell-progress li.active::before {
  background: #71390b;
}

body.sell-page .sell-form.sell-wizard {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sell-step[hidden],
.sell-success[hidden] {
  display: none;
}

.sell-step-heading {
  margin-bottom: 1.35rem;
}

.sell-step-heading > span {
  display: block;
  margin-bottom: 0.45rem;
  color: #8f8379;
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sell-step-heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.15;
}

.sell-intent {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0 0 1.2rem;
  padding: 0;
  border: 0;
}

.sell-intent legend,
body.sell-page .sell-wizard .condition-group legend {
  grid-column: 1 / -1;
  width: 100%;
  margin-bottom: 0.2rem;
  color: #625850;
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.sell-page .sell-wizard .sell-intent label {
  position: relative;
  display: block;
  color: #1f1813;
  font-size: 0.86rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: none;
}

.sell-intent input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.sell-intent label span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 0.85rem;
  border: 1px solid #d8cfc7;
  border-radius: 5px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.sell-intent input:checked + span {
  border-color: #71390b;
  background: #71390b;
  color: #ffffff;
}

.sell-intent input:focus-visible + span {
  outline: 2px solid #71390b;
  outline-offset: 2px;
}

.sell-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

body.sell-page .sell-wizard label:not(.condition-option):not(.sell-intent label) {
  display: grid;
  gap: 0.42rem;
  color: #625850;
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.sell-page .sell-wizard label small {
  display: inline;
  color: #9a9189;
  font-size: inherit;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.sell-field-wide {
  grid-column: 1 / -1;
}

body.sell-page .sell-wizard input,
body.sell-page .sell-wizard textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.82rem 0.9rem;
  border: 1px solid #d8cfc7;
  border-radius: 5px;
  background: #ffffff;
  color: #1f1813;
  font-size: 0.94rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

body.sell-page .sell-wizard textarea {
  min-height: 92px;
  resize: vertical;
}

body.sell-page .sell-wizard input:focus,
body.sell-page .sell-wizard textarea:focus {
  border-color: #71390b;
  outline: none;
  box-shadow: 0 0 0 3px rgba(113, 57, 11, 0.1);
}

body.sell-page .sell-wizard .condition-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0 0 1.15rem;
  padding: 0;
  border: 0;
}

body.sell-page .sell-wizard .condition-group-compact {
  margin-top: 1rem;
  margin-bottom: 0;
}

body.sell-page .sell-wizard .condition-group-compact .condition-option {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.7rem;
  text-align: center;
}

body.sell-page .sell-wizard .condition-group-compact .condition-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

body.sell-page .sell-wizard .condition-group-compact .condition-option span {
  margin: 0;
}

body.sell-page .sell-wizard .condition-option {
  min-height: 142px;
  padding: 0.9rem;
  border: 1px solid #d8cfc7;
  border-radius: 5px;
  background: #ffffff;
  box-shadow: none;
  cursor: pointer;
}

body.sell-page .sell-wizard .condition-option span {
  font-size: 0.88rem;
}

body.sell-page .sell-wizard .condition-option p {
  margin: 0;
  color: #81766d;
  font-size: 0.76rem;
  font-weight: 620;
  line-height: 1.42;
}

body.sell-page .sell-wizard .condition-option:has(input:checked) {
  border-color: #71390b;
  background: #fbf6f1;
  box-shadow: inset 0 0 0 1px #71390b;
}

.sell-condition-fields {
  margin-top: 0.35rem;
}

.sell-step-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid #e6dfd9;
}

.sell-step-actions button,
.sell-success a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 46px;
  padding: 0.7rem 1.2rem;
  border: 1px solid #71390b;
  border-radius: 5px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.sell-next,
.sell-submit,
.sell-success a {
  background: #71390b;
  color: #ffffff;
}

.sell-back {
  background: #ffffff;
  color: #71390b;
}

.sell-step-actions button:hover,
.sell-step-actions button:focus-visible,
.sell-success a:hover,
.sell-success a:focus-visible {
  outline: none;
  box-shadow: 0 9px 18px rgba(61, 33, 12, 0.18);
  transform: translateY(-2px);
}

.sell-step-actions button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.sell-privacy-note {
  margin: 1rem 0 0;
  color: #82786f;
  font-size: 0.75rem;
  line-height: 1.45;
}

body.sell-page .sell-message {
  margin: 1rem 0 0;
  color: #8a2d1c;
  font-size: 0.8rem;
  font-weight: 750;
}

.sell-success {
  padding: clamp(36px, 7vw, 76px) 0;
  text-align: center;
}

.sell-success > span {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  place-items: center;
  border-radius: 50%;
  background: #71390b;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 900;
}

.sell-success h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.sell-success p {
  max-width: 480px;
  margin: 1rem auto 1.5rem;
  color: var(--muted);
  line-height: 1.55;
}

.sell-success a {
  min-width: 170px;
}

@media (max-width: 980px) {
  body.sell-page .sell-experience {
    padding: 0 0 28px;
  }

  .sell-offer-shell {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 250px 16px 18px;
    border-radius: 0 0 18px 18px;
  }

  .sell-offer-visual,
  .sell-offer-visual > img {
    min-height: 100%;
    max-height: none;
  }

  .sell-offer-visual-copy {
    position: absolute;
    top: 52px;
    right: 22px;
    left: 22px;
    width: auto;
    margin-top: 0;
    transform: none;
  }

  .sell-form-shell {
    grid-column: 1;
    min-height: 0;
  }

  .sell-offer-visual-copy h2 {
    font-size: clamp(2rem, 7vw, 3.4rem);
  }
}

@media (max-width: 620px) {
  .sell-offer-visual,
  .sell-offer-visual > img {
    min-height: 100%;
    max-height: none;
  }

  .sell-offer-visual > img {
    object-position: 57% center;
  }

  .sell-offer-visual-copy {
    top: 30px;
    right: 20px;
    bottom: auto;
    left: 20px;
  }

  .sell-offer-visual-copy h2 {
    font-size: 1.7rem;
  }

  .sell-offer-visual-copy ul {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
  }

  .sell-form-shell {
    padding: 24px 16px 28px;
  }

  .sell-form-heading h1 {
    font-size: 1.85rem;
  }

  .sell-progress {
    margin-top: 18px;
    margin-bottom: 22px;
  }

  .sell-field-grid,
  .sell-intent,
  body.sell-page .sell-wizard .condition-group {
    grid-template-columns: 1fr;
  }

  body.sell-page .sell-wizard .condition-option {
    min-height: 112px;
  }

  .sell-step-actions {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
  }

  .sell-step-actions:has(.sell-next:only-child) {
    display: flex;
  }

  .sell-step-actions button {
    width: 100%;
    min-width: 0;
  }

  .sell-step-actions .sell-next:only-child {
    width: 100%;
  }
}

/* Warranty page: cinematic protection concierge */
.seo-page .warranty-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 clamp(54px, 7vw, 88px);
}

.warranty-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  align-items: center;
  gap: clamp(44px, 7vw, 96px);
  width: min(1440px, 100%);
  min-height: 650px;
  margin: 0 auto;
  padding: clamp(42px, 5vw, 72px) max(24px, calc((100vw - 1280px) / 2));
  border-radius: 0 0 24px 24px;
  background:
    linear-gradient(90deg, rgba(4, 5, 9, 0.92) 0%, rgba(4, 5, 9, 0.5) 42%, rgba(4, 5, 9, 0.18) 70%, rgba(4, 5, 9, 0.5) 100%),
    url("/assets/warranty-model-y-night.webp") center / cover no-repeat;
  color: #ffffff;
}

.warranty-hero-copy {
  width: min(530px, 48vw);
}

.warranty-eyebrow {
  margin: 0 0 0.8rem;
  color: #e3c4a7;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.warranty-hero-copy h1 {
  max-width: 530px;
  margin: 0;
  font-size: clamp(2.9rem, 5.4vw, 5.15rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.warranty-hero-copy > p:not(.warranty-eyebrow) {
  max-width: 500px;
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  line-height: 1.55;
}

.warranty-hero-copy ul {
  display: grid;
  gap: 0.65rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.warranty-hero-copy li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.86rem;
  font-weight: 760;
}

.warranty-hero-copy li::before {
  content: "✓";
  color: #e3c4a7;
  font-weight: 900;
}

.warranty-guidance {
  width: 100%;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  color: #18110b;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.32);
}

.warranty-guidance .warranty-eyebrow {
  color: #7a3f0d;
}

.warranty-guidance h2 {
  margin: 0 0 1.4rem;
  font-size: clamp(2rem, 3vw, 2.65rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.warranty-guidance-companies {
  border-top: 1px solid #ddd3ca;
}

.warranty-company {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  min-height: 76px;
  padding: 0.75rem 0;
  border-bottom: 1px solid #ddd3ca;
  color: #18110b;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.warranty-company:hover,
.warranty-company:focus-visible {
  color: #71390b;
  transform: translateX(3px);
  outline: none;
}

.warranty-company img {
  display: block;
  width: 82px;
  max-height: 42px;
  object-fit: contain;
}

.warranty-company-xcare img {
  width: 38px;
  height: 38px;
  margin-left: 20px;
}

.warranty-company strong {
  font-size: 0.86rem;
}

.warranty-company small {
  font-size: 0.68rem;
}

.warranty-guidance ol {
  margin: 0;
  padding: 0;
  border-top: 1px solid #ddd3ca;
  list-style: none;
}

.warranty-guidance li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid #ddd3ca;
}

.warranty-guidance li > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(113, 57, 11, 0.34);
  color: #71390b;
  font-size: 0.72rem;
  font-weight: 900;
}

.warranty-guidance strong,
.warranty-guidance small {
  display: block;
}

.warranty-guidance strong {
  font-size: 0.9rem;
}

.warranty-guidance small {
  margin-top: 0.2rem;
  color: #746960;
  font-size: 0.72rem;
  line-height: 1.4;
}

.warranty-guidance-actions {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.warranty-guidance-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 1px solid #71390b;
  border-radius: 4px;
  color: #71390b;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
  transition: box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.warranty-guidance-actions a.primary {
  background: #71390b;
  color: #ffffff;
}

.warranty-guidance-actions a:hover,
.warranty-guidance-actions a:focus-visible {
  box-shadow: 0 9px 18px rgba(61, 33, 12, 0.18);
  transform: translateY(-2px);
  outline: none;
}

.warranty-guidance-note {
  margin: 0.8rem 0 0;
  color: #82786f;
  font-size: 0.66rem;
  line-height: 1.45;
}

.warranty-providers,
.warranty-coverage,
.warranty-process,
.warranty-bottom {
  width: min(1120px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

@media (max-width: 760px) {
  .seo-page .warranty-main {
    width: 100%;
    padding-top: 0;
  }

  .warranty-hero {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    padding: 34px 14px 16px;
    border-radius: 0 0 18px 18px;
    background:
      linear-gradient(180deg, rgba(4, 5, 9, 0.72) 0%, rgba(4, 5, 9, 0.16) 42%, rgba(4, 5, 9, 0.72) 67%, rgba(4, 5, 9, 0.9) 100%),
      url("/assets/warranty-model-y-night.webp") 52% center / cover no-repeat;
  }

  .warranty-hero-copy {
    width: 100%;
  }

  .warranty-hero-copy h1 {
    max-width: 350px;
    font-size: clamp(2.45rem, 12vw, 3.45rem);
  }

  .warranty-hero-copy > p:not(.warranty-eyebrow) {
    max-width: 345px;
    font-size: 0.9rem;
  }

  .warranty-hero-copy ul {
    display: none;
  }

  .warranty-guidance {
    margin-top: 160px;
    padding: 24px 18px;
  }

  .warranty-guidance h2 {
    font-size: 2rem;
  }

  .warranty-providers,
  .warranty-coverage,
  .warranty-process,
  .warranty-bottom {
    width: min(100% - 28px, 1120px);
  }
}

@media (max-width: 430px) {
  .warranty-guidance-actions {
    grid-template-columns: 1fr 0.72fr;
  }
}

/* About page: compact contact-first layout */
.about-modern-main {
  padding: 0 0 clamp(52px, 7vw, 84px);
}

.about-modern-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  align-items: center;
  gap: clamp(44px, 7vw, 96px);
  width: min(1440px, 100%);
  min-height: 520px;
  margin: 0 auto;
  padding: clamp(42px, 5vw, 72px) max(24px, calc((100vw - 1280px) / 2));
  border-radius: 0 0 24px 24px;
  background:
    linear-gradient(90deg, rgba(4, 7, 15, 0.82) 0%, rgba(4, 7, 15, 0.34) 53%, rgba(4, 7, 15, 0.22) 74%, rgba(4, 7, 15, 0.5) 100%),
    url("/assets/about-model-y-snow.webp") center / cover no-repeat;
  color: #ffffff;
}

.about-modern-copy {
  width: min(560px, 50vw);
}

.about-modern-eyebrow {
  margin: 0 0 0.8rem;
  color: #e3c4a7;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-modern-copy h1 {
  max-width: 570px;
  margin: 0;
  font-size: clamp(2.85rem, 5vw, 4.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.about-modern-copy > p:last-child {
  max-width: 480px;
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  line-height: 1.55;
}

.about-modern-contact {
  width: 100%;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  color: #18110b;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.3);
}

.about-modern-contact .about-modern-eyebrow {
  color: #7a3f0d;
}

.about-modern-contact h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.65rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.about-modern-actions {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.about-modern-actions a,
.about-modern-location-copy > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 1px solid #71390b;
  border-radius: 4px;
  color: #71390b;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
  transition: box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.about-modern-actions a.primary,
.about-modern-location-copy > a {
  background: #71390b;
  color: #ffffff;
}

.about-modern-actions a:hover,
.about-modern-actions a:focus-visible,
.about-modern-location-copy > a:hover,
.about-modern-location-copy > a:focus-visible {
  box-shadow: 0 9px 18px rgba(61, 33, 12, 0.18);
  transform: translateY(-2px);
  outline: none;
}

.about-modern-contact dl {
  margin: 1.35rem 0 0;
  border-top: 1px solid #ddd3ca;
}

.about-modern-contact dl > div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid #ddd3ca;
}

.about-modern-contact dt {
  color: #7a3f0d;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-modern-contact dd {
  margin: 0;
  color: #5f554d;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.5;
}

.about-modern-contact dd a {
  color: inherit;
  text-decoration: none;
}

.about-modern-location {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  width: min(1120px, calc(100% - 48px));
  margin: clamp(46px, 6vw, 72px) auto 0;
  overflow: hidden;
  border: 1px solid #ded4cb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(53, 34, 18, 0.08);
}

.about-modern-map {
  min-height: 340px;
  background: #ece8e4;
}

.about-modern-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  filter: saturate(0.72) contrast(0.96);
}

.about-modern-location-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 46px);
  background: #f8f4f0;
}

.about-modern-location-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.02;
}

.about-modern-location-copy address,
.about-modern-location-copy > p:not(.about-contact-label) {
  margin: 1rem 0 0;
  color: #655b53;
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.55;
}

.about-modern-location-copy > a {
  align-self: flex-start;
  margin-top: 1.35rem;
}

.about-modern-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1120px, calc(100% - 48px));
  margin: clamp(42px, 6vw, 66px) auto 0;
  border-top: 1px solid #d9cfc6;
  border-bottom: 1px solid #d9cfc6;
}

.about-modern-points article {
  min-width: 0;
  padding: 1.6rem clamp(20px, 3vw, 34px);
}

.about-modern-points article + article {
  border-left: 1px solid #d9cfc6;
}

.about-modern-points span,
.about-modern-points strong {
  display: block;
}

.about-modern-points span {
  color: #8b572e;
  font-size: 0.68rem;
  font-weight: 900;
}

.about-modern-points strong {
  margin-top: 0.55rem;
  font-size: 1.05rem;
}

.about-modern-points p {
  margin: 0.45rem 0 0;
  color: #6f655d;
  font-size: 0.82rem;
  line-height: 1.5;
}

.about-modern-map-panel {
  width: min(1040px, calc(100% - 48px));
  margin: clamp(38px, 5vw, 58px) auto 0;
  overflow: hidden;
  border: 1px solid #ded4cb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(53, 34, 18, 0.07);
}

.about-modern-map-panel iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
  filter: saturate(0.72) contrast(0.96);
}

.about-modern-map-panel > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 62px;
  padding: 0.75rem 1rem 0.75rem 1.25rem;
  border-top: 1px solid #ded4cb;
}

.about-modern-map-panel span {
  color: #5f554d;
  font-size: 0.82rem;
  font-weight: 700;
}

.about-modern-map-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 0.9rem;
  border: 1px solid #71390b;
  border-radius: 4px;
  background: #71390b;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 760px) {
  .about-modern-hero {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    padding: 34px 14px 16px;
    border-radius: 0 0 18px 18px;
    background:
      linear-gradient(180deg, rgba(4, 7, 15, 0.72) 0%, rgba(4, 7, 15, 0.2) 40%, rgba(4, 7, 15, 0.72) 68%, rgba(4, 7, 15, 0.92) 100%),
      url("/assets/about-model-y-snow.webp") 50% center / cover no-repeat;
  }

  .about-modern-copy {
    width: 100%;
  }

  .about-modern-copy h1 {
    max-width: 350px;
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }

  .about-modern-copy > p:last-child {
    max-width: 335px;
    font-size: 0.9rem;
  }

  .about-modern-contact {
    margin-top: 150px;
    padding: 24px 18px;
  }

  .about-modern-contact h2 {
    font-size: 2rem;
  }

  .about-modern-location {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 1120px);
    margin-top: 38px;
  }

  .about-modern-map,
  .about-modern-map iframe {
    min-height: 270px;
  }

  .about-modern-points {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 1120px);
  }

  .about-modern-points article + article {
    border-top: 1px solid #d9cfc6;
    border-left: 0;
  }

  .about-modern-map-panel {
    width: min(100% - 28px, 1040px);
    margin-top: 34px;
  }

  .about-modern-map-panel iframe {
    height: 260px;
  }

  .about-modern-map-panel > div {
    align-items: stretch;
    flex-direction: column;
    padding: 1rem;
  }

  .about-modern-map-panel a {
    width: 100%;
  }
}
/* Keep image-backed service pages compact on phones. */
@media (max-width: 980px) {
  .sell-offer-shell {
    min-height: 0;
    padding: 24px 14px 14px;
  }

  .sell-offer-visual-copy {
    position: relative;
    z-index: 1;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    grid-column: 1;
    width: auto;
    margin: 0 6px 18px;
    transform: none;
  }

  .sell-form-shell {
    align-self: start;
  }
}

@media (max-width: 760px) {
  .financing-budget-hero {
    align-content: normal;
    gap: 10px;
    min-height: 0;
    padding: 16px 14px 14px;
  }

  .warranty-guidance,
  .about-modern-contact {
    margin-top: 0;
  }

  .about-hours-row dd {
    display: grid;
    gap: 0.4rem;
  }

  .about-hours-row dd span {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .about-hours-row dd b,
  .about-hours-row dd em {
    font: inherit;
  }

  .about-hours-row dd b {
    color: #18110b;
  }

  .about-hours-row dd em {
    text-align: right;
  }
}

/* Unified phone spacing for image-backed service pages. */
@media (max-width: 760px) {
  .about-modern-main,
  .seo-page .financing-main,
  .seo-page .warranty-main {
    width: 100%;
    padding: 0 0 32px;
  }

  .about-modern-hero,
  .financing-budget-hero,
  .warranty-hero {
    display: grid;
    grid-template-columns: 1fr;
    align-content: normal;
    align-items: start;
    gap: 24px;
    width: 100%;
    min-height: 0;
    padding: 24px 16px 16px;
    border-radius: 0 0 16px 16px;
  }

  .about-modern-copy,
  .financing-hero-copy,
  .warranty-hero-copy {
    width: 100%;
    padding: 0;
  }

  .about-modern-contact,
  .financing-calculator,
  .warranty-guidance {
    width: 100%;
    margin: 0;
    padding: 22px 18px;
  }

  .about-modern-copy h1,
  .financing-hero-copy h1,
  .warranty-hero-copy h1 {
    font-size: clamp(2.35rem, 11vw, 3.2rem);
  }

  .financing-hero-copy ul {
    margin: 1rem 0;
  }

  .about-modern-contact h2,
  .financing-calculator h2,
  .warranty-guidance h2 {
    font-size: 1.9rem;
  }

  .about-modern-map-panel {
    width: calc(100% - 32px);
    margin-top: 24px;
  }

  .about-modern-map-panel > div {
    gap: 0.8rem;
    padding: 16px;
  }
}

/* Compact Get Your Offer form. */
.sell-offer-shell {
  min-height: 620px;
}

.sell-form-shell {
  padding: clamp(24px, 2.8vw, 34px);
}

.sell-form-heading {
  margin-bottom: 1rem;
}

.sell-form-heading h1 {
  font-size: clamp(2rem, 3.25vw, 3.25rem);
}

.sell-step-heading {
  margin-bottom: 0.9rem;
}

.sell-intent {
  margin-bottom: 0.85rem;
}

.sell-field-grid {
  gap: 0.65rem 0.75rem;
}

body.sell-page .sell-wizard input,
body.sell-page .sell-wizard textarea {
  min-height: 42px;
  padding: 0.65rem 0.75rem;
}

body.sell-page .sell-wizard .condition-group-compact {
  margin-top: 0.75rem;
}

body.sell-page .sell-wizard .condition-group-compact .condition-option {
  min-height: 42px;
  padding: 0.5rem 0.55rem;
}

.sell-step-actions {
  margin-top: 1rem;
  padding-top: 0.9rem;
}

@media (max-width: 620px) {
  .sell-offer-shell {
    gap: 14px;
    padding: 20px 14px 14px;
  }

  .sell-offer-visual-copy {
    margin: 0 4px;
  }

  .sell-offer-visual-copy ul {
    margin-top: 0.6rem;
    padding-top: 0.6rem;
  }

  .sell-form-shell {
    padding: 20px 16px;
  }

  .sell-form-heading {
    margin-bottom: 0.85rem;
  }

  .sell-form-heading h1 {
    font-size: 1.7rem;
  }

  .sell-step-heading h2 {
    font-size: 1.25rem;
  }

  .sell-intent,
  .sell-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.sell-page .sell-wizard .condition-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

  body.sell-page .sell-wizard .condition-option,
  body.sell-page .sell-wizard .condition-group-compact .condition-option {
    min-height: 42px;
  }
}
