html:has(.seo-model-page--history) {
  scroll-behavior: smooth;
}

html:has(.seo-model-page--history),
body:has(.seo-model-page--history) {
  overflow-x: clip;
  overflow-y: visible;
}

body:has(.seo-model-page--history) {
  --model-shell-width: calc(96.5% - 28.95px);
}

.seo-shell:has(.seo-model-page--history) {
  width: var(--model-shell-width);
  margin-top: 20px;
}

body:has(.seo-model-page--history) .site-footer {
  width: var(--model-shell-width);
  max-width: none;
}

.seo-model-page--history {
  --model-header-offset: 114px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 3.4vw, 64px);
  margin-top: 24px;
}

.seo-model-page--history > .seo-model-summary {
  position: sticky;
  top: var(--model-header-offset);
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-height: calc(100dvh - var(--model-header-offset) - 64px);
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(23, 25, 31, 0.06);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(23, 25, 31, 0.035);
}

.seo-model-page--history .seo-model-summary__media {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: var(--photo-aspect, 4 / 3);
  margin: 0;
  overflow: hidden;
  border-radius: 17px;
  background: #f6f5f3;
  color: #667085;
  font-size: 14px;
}

.seo-model-page--history .seo-model-summary__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 50% 55%;
}

.seo-model-summary__copy {
  flex: 0 0 auto;
  min-width: 0;
  padding: 20px 12px 18px;
}

.seo-model-summary__eyebrow,
.seo-model-history__eyebrow {
  display: block;
  margin: 0 0 12px;
  color: #667085;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.seo-model-summary__copy h1 {
  margin: 0;
  color: #111318;
  font-size: clamp(27px, 2.1vw, 34px);
  line-height: 1.12;
  font-weight: 650;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.seo-model-summary__years {
  margin: 12px 0 0;
  color: #17191f;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}

.seo-model-summary__subtitle {
  margin: 8px 0 0;
  color: #53617d;
  font-size: 13px;
  line-height: 1.5;
}

.seo-model-summary__description {
  margin-top: 14px;
  color: #667085;
  font-size: 13px;
  line-height: 1.55;
}

.seo-model-summary__description p {
  margin: 0;
}

.seo-model-page--history .seo-model-market-cta {
  width: 100%;
  min-height: 48px;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 13px;
  font-size: 13px;
}

.seo-generation-nav {
  display: flex;
  flex-direction: column;
  min-height: 56px;
  padding: 16px 5px 2px;
  border-top: 1px solid #eeefef;
}

.seo-generation-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  padding: 0 8px 10px;
  color: #667085;
  font-size: 12px;
}

.seo-generation-nav__head strong {
  font-size: 12px;
  font-weight: 550;
}
.seo-generation-nav__head > span {
  font-variant-numeric: tabular-nums;
}

.seo-generation-nav ol {
  display: grid;
  gap: 3px;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  list-style: none;
}

.seo-generation-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 9px;
  border-radius: 10px;
  color: #53617d;
  transition: color 150ms ease, background-color 150ms ease;
}

.seo-generation-nav a:hover {
  background: #f6f6f5;
  color: #17191f;
}
.seo-generation-nav a:active {
  background: #f0eded;
}
.seo-generation-nav a[aria-current="location"] {
  color: var(--accent);
  background: #fff5f5;
}
.seo-generation-nav__name {
  min-width: 0;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
}
.seo-generation-nav__years {
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.seo-generation-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.seo-model-history {
  min-width: 0;
  container-type: inline-size;
}

.seo-model-history__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 0 0 12px;
}

.seo-model-history__eyebrow {
  margin-bottom: 8px;
  color: var(--accent);
}
.seo-model-history__head h2 {
  margin: 0;
  font-size: clamp(25px, 2.5vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 650;
}
.seo-model-history__head > p {
  margin: 0 0 3px;
  color: #667085;
  font-size: 13px;
}
.seo-model-history__head > p span {
  padding-inline: 5px;
}
.seo-model-history__intro {
  max-width: 610px;
  margin: 0 0 34px;
  color: #667085;
  font-size: 14px;
  line-height: 1.6;
}
.seo-model-history__list {
  --history-axis: 10px;
  --history-indent: 40px;
  position: relative;
  padding-left: var(--history-indent);
}
.seo-model-history__list::before {
  content: "";
  position: absolute;
  top: var(--history-track-start, 18px);
  left: var(--history-axis);
  width: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  pointer-events: none;
}
.seo-model-history__list::before {
  height: var(--history-track-length, calc(100% - 36px));
  background: #dadddf;
}

.seo-model-page--history .seo-generation-panel {
  position: relative;
  min-width: 0;
  margin: 0 0 38px;
  padding: 0;
  scroll-margin-top: var(--model-header-offset);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.seo-model-page--history .seo-generation-panel::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 18px;
  left: calc(var(--history-axis) - var(--history-indent));
  width: 16px;
  height: 16px;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #bbc0c6;
  box-shadow: 0 0 0 1px #d4d6d8;
  transition: background-color 320ms ease, box-shadow 320ms ease;
}

.seo-model-page--history .seo-generation-panel.is-active::before {
  background: var(--accent);
  animation: carhub-history-point-pulse 2s ease-in-out infinite;
}
.seo-model-page--history .seo-generation-panel.is-active .seo-model-history__period > span:first-child {
  color: var(--accent);
}
.seo-model-page--history .seo-generation-panel.is-active .seo-generation-panel__card {
  border-color: rgb(217 8 8 / 15%);
  box-shadow: 0 8px 30px rgb(217 8 8 / 5%);
}
@keyframes carhub-history-point-pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgb(217 8 8 / 16%), 0 0 16px rgb(217 8 8 / 15%);
  }
  50% {
    box-shadow: 0 0 0 8px rgb(217 8 8 / 5%), 0 0 24px rgb(217 8 8 / 24%);
  }
}
.seo-model-history__period {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  min-height: 36px;
}
.seo-model-history__period > span:first-child {
  flex: 0 0 auto;
  color: #252931;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  transition: color 320ms ease;
}
.seo-model-history__period > span:last-child {
  height: 1px;
  flex: 1;
  background: #dedfdf;
}
.seo-generation-panel__card {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(23, 25, 31, 0.05);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 5px 24px rgba(23, 25, 31, 0.025);
  transition: border-color 320ms ease, box-shadow 320ms ease;
}

.seo-model-page--history .seo-generation-panel__top,
.seo-model-page--history .seo-generation-panel__top--no-media {
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: 20px;
  margin: 0 0 20px;
  align-items: center;
}

.seo-model-page--history .seo-generation-panel__top--no-media {
  grid-template-columns: minmax(0, 1fr);
}
.seo-model-page--history .seo-generation-panel__media {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: var(--photo-aspect, 4 / 3);
  border-radius: 15px;
  background: #f6f5f3;
  box-shadow: none;
}
.seo-model-page--history .seo-generation-panel__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 50% 55%;
}
.seo-model-page--history .seo-generation-panel__media.is-missing {
  display: grid;
  place-items: center;
  color: #667085;
  font-size: 14px;
}
.seo-model-page--history .seo-model-photo-fallback[hidden],
.seo-model-page--history img[hidden] {
  display: none;
}
.seo-model-page--history .seo-generation-panel__heading h2 {
  font-size: 25px;
}
.seo-model-page--history .seo-generation-panel__heading > span:last-child:not(.seo-generation-panel__status) {
  color: #667085;
}
.seo-model-page--history .seo-generation-helper {
  grid-column: 1 / -1;
}
.seo-model-page--history .seo-generation-facts {
  gap: 7px;
}
.seo-model-page--history .seo-generation-facts > span {
  padding: 8px 10px;
  min-height: 44px;
}
.seo-model-page--history .seo-generation-facts small {
  font-size: 9px;
}
.seo-model-page--history .seo-generation-facts strong {
  font-size: 13px;
}

.seo-model-page--history .seo-comparison-head,
.seo-model-page--history .seo-comparison-row {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.85fr) minmax(0, 1fr) minmax(0, 0.65fr) minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 0.35fr) 16px;
  gap: 10px;
}

.seo-model-page--history .seo-comparison-head {
  font-size: 11px;
}
.seo-model-page--history .seo-comparison-cell strong {
  font-size: 13px;
}
.seo-model-page--history .seo-comparison-note {
  font-size: 12px;
  padding-inline: 0;
}

@container (max-width: 760px) {
  .seo-model-page--history .seo-comparison-head {
    display: none;
  }
  .seo-model-page--history .seo-comparison-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .seo-model-page--history .seo-comparison-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 14px 12px;
    padding: 16px 28px 16px 14px;
  }
  .seo-model-page--history .seo-comparison-cell {
    gap: 4px;
  }
  .seo-model-page--history .seo-comparison-cell::before {
    content: attr(data-label);
    color: #667085;
    font-size: 9px;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .seo-model-page--history .seo-comparison-cell--version {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
  }
  .seo-model-page--history .seo-comparison-cell--version strong {
    font-size: 15px;
  }
  .seo-model-page--history .seo-comparison-row__arrow {
    position: absolute;
    top: 16px;
    right: 10px;
  }
}

@container (max-width: 560px) {
  .seo-model-page--history .seo-generation-panel__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .seo-model-page--history .seo-comparison-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1280px) {
  body:has(.seo-model-page--history) {
    --model-shell-width: calc(96.5% - 23.16px);
  }
}

@media (max-width: 1000px) {
  .seo-model-page--history {
    --model-header-offset: 174px;
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    margin-top: 20px;
  }
  .seo-model-page--history > .seo-model-summary {
    position: static;
    max-height: none;
  }
  .seo-model-summary__copy {
    padding: 20px 12px;
  }
  .seo-model-summary__copy h1 {
    font-size: 32px;
  }
  .seo-generation-nav ol {
    display: flex;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 4px;
  }
  .seo-generation-nav li {
    flex: 0 0 auto;
  }
  .seo-generation-nav a {
    flex-direction: column;
    gap: 3px;
    align-items: flex-start;
    padding: 10px 14px;
  }
  .seo-model-history__intro {
    margin-bottom: 24px;
  }
}

@media (min-width: 601px) and (max-width: 1000px) {
  .seo-model-page--history > .seo-model-summary {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
  }
  .seo-generation-nav {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1001px) and (max-height: 620px) {
  .seo-model-page--history > .seo-model-summary {
    max-height: calc(100dvh - var(--model-header-offset) - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  .seo-generation-nav {
    flex-shrink: 0;
  }
}

@media (max-width: 600px) {
  body:has(.seo-model-page--history) {
    --model-shell-width: calc(96.5% - 15.44px);
  }
  .seo-shell:has(.seo-model-page--history) {
    margin-top: 18px;
  }
  .seo-model-page--history {
    gap: 28px;
    margin-top: 18px;
  }
  .seo-model-history__head h2 {
    font-size: 27px;
  }
  .seo-model-history__list {
    --history-axis: 8px;
    --history-indent: 28px;
  }
  .seo-model-history__period > span:first-child {
    font-size: 18px;
  }
  .seo-generation-panel__card {
    padding: 14px 12px;
    border-radius: 20px;
  }
  .seo-model-page--history .seo-generation-panel__heading h2 {
    font-size: 24px;
  }
  .seo-model-page--history .seo-comparison-cell strong {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.seo-model-page--history) {
    scroll-behavior: auto;
  }
  .seo-model-page--history a,
  .seo-model-page--history .seo-generation-panel::before,
  .seo-generation-panel__card,
  .seo-model-history__period > span:first-child {
    transition: none;
  }
  .seo-model-page--history .seo-generation-panel.is-active::before {
    animation: none;
    box-shadow: 0 0 0 4px rgb(217 8 8 / 16%);
  }
}
