/* ---------------------------------------------------------------
   Car Information
   Three ways into the same car guide: plate lookup (A), guided
   finder (B) and a filterable directory (C). Builds on
   instructions.css for the dark masthead, rail and list.
--------------------------------------------------------------- */

.vi-page {
  --vi-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --vi-glass: #d9dee2;
  --vi-hub: #9aa1a6;
  --vi-gap: var(--white);
}

/* Option picker */

.vi-pick {
  padding: var(--sp3) 0;
  background: var(--header-bg);
  color: var(--text-white);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.vi-pick__in {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp2) var(--sp5);
}

.vi-pick__label {
  margin: 0;
  font-size: var(--fs-xs);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

.vi-pick__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp4);
  margin: 0;
  font-size: var(--fs-small);
}

.vi-pick__links a {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
}

.vi-pick__links a:hover,
.vi-pick__links a:focus-visible {
  color: var(--orange);
}

.vi-pick__links a[aria-current="page"] {
  color: var(--text-white);
  font-weight: 700;
  border-bottom: 2px solid var(--orange);
}

/* Masthead */

.vi-mast .cat-mast__title {
  color: var(--text-white);
}

.vi-mast .cat-mast__lede {
  max-width: 64ch;
}

.vi-page main [hidden] {
  display: none !important;
}

.vi-band {
  padding-top: var(--sp7);
  padding-bottom: var(--sp8);
  scroll-margin-top: 110px;
}

.vi-narrow {
  max-width: 1080px;
}

.vi-found {
  max-width: 1080px;
}

.vi-art {
  display: block;
  width: 100%;
  height: auto;
  color: #2b2b2b;
}

.vi-art--img {
  display: block;
  aspect-ratio: 5 / 2;
  background-color: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* Model photos from the live Search by Car. JPEGs on white, so multiply lets
   the white take the tint of whatever is behind it. */
.vi-art--photo {
  aspect-ratio: 3 / 2;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* A. Number plate */

.vi-plate {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--sp3);
  margin-top: var(--sp6);
}

.vi-plate__field {
  position: relative;
  display: flex;
  align-items: stretch;
  width: min(440px, 100%);
  height: 72px;
  overflow: hidden;
  background: #ffd307;
  border: 3px solid #111;
  border-radius: 8px;
  box-shadow: 0 0 0 2px #ffd307;
  transition: box-shadow .42s var(--vi-ease);
}

.vi-plate__field:focus-within {
  box-shadow: 0 0 0 2px #ffd307, 0 0 0 5px var(--orange);
}

.vi-plate__band {
  display: flex;
  flex: none;
  align-items: flex-end;
  justify-content: center;
  width: 44px;
  padding-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--white);
  background: #003da5;
}

.vi-plate__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 var(--sp4);
  font-family: "Arial Narrow", "Roboto Condensed", Inter, sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
  color: #111;
  background: none;
  border: 0;
  outline: none;
}

.vi-plate__input::placeholder {
  color: rgba(17, 17, 17, .38);
}

.vi-plate__input:focus::placeholder {
  color: transparent;
}

.vi-plate__go {
  height: 72px;
  padding-inline: var(--sp6);
}

.vi-plate__demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp2);
  margin: var(--sp5) 0 0;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, .62);
}

.vi-plate__demo span {
  margin-right: var(--sp2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.vi-plate__demo button {
  padding: 4px 10px;
  font: inherit;
  font-family: "Arial Narrow", "Roboto Condensed", Inter, sans-serif;
  font-weight: 700;
  letter-spacing: .06em;
  color: #111;
  background: #ffd307;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: transform .3s var(--vi-ease);
}

.vi-plate__demo button:hover {
  transform: translateY(-2px);
}

.vi-plate__alt {
  margin: var(--sp4) 0 0;
}

.vi-plate__alt button,
.vi-linkbtn {
  padding: 0;
  font: inherit;
  font-size: var(--fs-utility);
  font-weight: 700;
  color: inherit;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--orange);
  cursor: pointer;
}

.vi-plate__alt button {
  color: var(--text-white);
}

.vi-plate__alt button:hover,
.vi-linkbtn:hover {
  color: var(--orange);
}

.vi-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.vi-step {
  padding: var(--sp6);
  background: var(--white);
  border: 1px solid var(--nav-border);
}

.vi-step__n {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: var(--sp4);
  font-weight: 700;
  color: var(--white);
  background: var(--orange);
  border-radius: 50%;
}

.vi-step__title {
  margin: 0 0 var(--sp2);
  font-size: var(--fs-cta-title);
}

.vi-step__text {
  margin: 0;
  color: var(--text-muted);
  text-wrap: pretty;
}

.vi-loading {
  margin: 0;
  padding: var(--sp6);
  background: var(--white);
  border: 1px solid var(--nav-border);
}

.vi-loading::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: var(--sp3);
  vertical-align: -2px;
  border: 2px solid var(--orange);
  border-right-color: transparent;
  border-radius: 50%;
  animation: vi-spin .7s linear infinite;
}

@keyframes vi-spin {
  to { transform: rotate(360deg); }
}

.vi-found {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp4) var(--sp6);
  padding: var(--sp5) var(--sp6);
  background: var(--white);
  border: 1px solid var(--nav-border);
  border-left: 4px solid var(--orange);
}

.vi-found__plate {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  font-family: "Arial Narrow", "Roboto Condensed", Inter, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #111;
  background: #ffd307;
  border: 2px solid #111;
  border-radius: 5px;
}

.vi-found__plate .vi-plate__band {
  width: 24px;
  padding-bottom: 3px;
  margin-right: var(--sp3);
  font-family: Inter, sans-serif;
  font-size: 9px;
  letter-spacing: 0;
}

.vi-found__plate {
  padding-right: var(--sp3);
  line-height: 40px;
}

.vi-found__text {
  flex: 1 1 220px;
}

.vi-found__kicker {
  margin: 0;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--orange);
}

.vi-found__car {
  margin: 2px 0 0;
  font-size: var(--fs-cta-title);
  font-weight: 700;
}

.vi-found__change {
  padding: 0;
  font: inherit;
  font-size: var(--fs-utility);
  font-weight: 700;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--orange);
  cursor: pointer;
}

.vi-pickmodel {
  margin-top: var(--sp7);
}

.vi-pickmodel__sub {
  margin: calc(var(--sp2) * -1) 0 var(--sp5);
  color: var(--text-muted);
}

.vi-pickmodel .vi-linkbtn {
  margin-top: var(--sp5);
}

.vi-miss {
  padding: var(--sp6);
  background: var(--white);
  border: 1px solid var(--nav-border);
  border-left: 4px solid #c0392b;
}

.vi-miss__title {
  margin: 0 0 var(--sp2);
  font-size: var(--fs-cta-title);
  font-weight: 700;
}

.vi-miss__text {
  margin: 0;
  color: var(--text-muted);
}

.vi-choose {
  margin-top: var(--sp6);
  padding: var(--sp6);
  background: var(--white);
  border: 1px solid var(--nav-border);
}

.vi-choose__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto;
  align-items: end;
  gap: var(--sp4);
}

.vi-choose__field span {
  display: block;
  margin-bottom: var(--sp2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.vi-choose select {
  width: 100%;
  height: 48px;
  padding: 0 40px 0 var(--sp3);
  font: inherit;
  color: var(--text);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  appearance: none;
}

.vi-choose select:disabled {
  color: #9a9a9a;
  background-color: #f7f7f7;
}

.vi-choose__go {
  height: 48px;
  padding: 0 var(--sp5);
  font: inherit;
  font-weight: 700;
  color: var(--white);
  background: var(--orange);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.vi-choose__go:disabled {
  opacity: .45;
  cursor: default;
}

[data-vi-detail]:not(:empty) {
  margin-top: var(--sp7);
}

/* B. Guided finder */

.vi-trail {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp2) var(--sp6);
  margin: var(--sp6) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-utility);
  color: rgba(255, 255, 255, .5);
}

.vi-trail__step {
  display: inline-flex;
  align-items: center;
  gap: var(--sp2);
}

.vi-trail__step span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.vi-trail__step.is-done {
  color: rgba(255, 255, 255, .85);
}

.vi-trail__step.is-on {
  font-weight: 700;
  color: var(--text-white);
}

.vi-trail__step.is-on span {
  color: var(--white);
  background: var(--orange);
  border-color: var(--orange);
}

.vi-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp4);
  margin-bottom: var(--sp5);
}

.vi-head__title {
  margin: 0;
  font-size: var(--fs-h3, 26px);
  line-height: 1.2;
}

.vi-pickmodel .vi-head__title,
.vi-choose .vi-head__title {
  margin-bottom: var(--sp4);
}

.vi-sub {
  margin: var(--sp6) 0 var(--sp3);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.vi-sub:first-child {
  margin-top: 0;
}

.vi-quick {
  display: flex;
  align-items: center;
  gap: var(--sp3);
  width: min(360px, 100%);
  height: 48px;
  padding: 0 var(--sp4);
  background: var(--white);
  border: 1px solid #cfcfcf;
  transition: border-color .42s var(--vi-ease);
}

.vi-quick:focus-within {
  border-color: var(--orange);
}

.vi-quick__icon {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.vi-quick input {
  flex: 1;
  min-width: 0;
  height: 100%;
  font: inherit;
  background: none;
  border: 0;
  outline: none;
}

.vi-quick-results {
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--nav-border);
}

.vi-quick-results[hidden],
[data-vi-makes][hidden] {
  display: none;
}

.vi-hit {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: var(--sp4);
  width: 100%;
  padding: var(--sp3) var(--sp5);
  font: inherit;
  text-align: left;
  color: var(--text);
  background: none;
  border: 0;
  border-top: 1px solid var(--nav-border);
  cursor: pointer;
}

.vi-quick-results li:first-child .vi-hit {
  border-top: 0;
}

.vi-hit:hover {
  background: #fff8f2;
}

.vi-hit__art {
  width: 72px;
  height: auto;
  color: #2b2b2b;
}

.vi-hit__years {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.vi-hit-none {
  padding: var(--sp5);
  color: var(--text-muted);
}

.vi-chev {
  width: 20px;
  height: 20px;
  color: var(--orange);
}

.vi-makes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(216px, 1fr));
  gap: var(--sp2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.vi-makes--big {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp3);
}

.vi-make {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp3);
  width: 100%;
  padding: var(--sp3) var(--sp4);
  font: inherit;
  text-align: left;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--nav-border);
  cursor: pointer;
  transition: border-color .42s var(--vi-ease), background .42s var(--vi-ease);
}

.vi-make:hover,
.vi-make:focus-visible {
  border-color: var(--orange);
  outline: none;
}

.vi-make__name {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vi-makes:not(.vi-makes--big) .vi-make {
  gap: var(--sp2);
  padding-inline: var(--sp3);
}

.vi-logo {
  flex: none;
  width: 32px;
  height: 20px;
  color: #2b2b2b;
  background-color: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transition: color .42s var(--vi-ease);
}

.vi-logo--text {
  width: 20px;
  margin-inline: 6px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  background-color: #2b2b2b;
  border-radius: 50%;
  transition: background-color .42s var(--vi-ease);
}

.vi-logo--photo {
  width: 40px;
  height: 28px;
  object-fit: contain;
  background: none;
  mix-blend-mode: multiply;
}

.vi-make:hover .vi-logo,
.vi-make:focus-visible .vi-logo {
  color: var(--orange);
}

.vi-make:hover .vi-logo--text,
.vi-make:focus-visible .vi-logo--text {
  color: var(--white);
  background-color: var(--orange);
}

.vi-make__n {
  flex: none;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.vi-make--big {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: var(--sp1);
  min-height: 156px;
  padding: var(--sp5);
  border-bottom: 3px solid var(--nav-border);
}

.vi-make--big .vi-make__name {
  flex: none;
  font-size: 22px;
  line-height: 1.15;
}

.vi-make--big .vi-logo {
  width: 96px;
  height: 44px;
  margin-bottom: auto;
  -webkit-mask-position: left center;
  mask-position: left center;
}

.vi-make--big .vi-logo--photo {
  width: 88px;
  height: 56px;
  object-position: left center;
}

.vi-make--big:hover,
.vi-make--big:focus-visible {
  border-bottom-color: var(--orange);
}

.vi-back {
  display: inline-flex;
  align-items: center;
  gap: var(--sp2);
  margin: 0 0 var(--sp5);
  padding: 0;
  font: inherit;
  font-size: var(--fs-utility);
  font-weight: 700;
  color: var(--text);
  background: none;
  border: 0;
  cursor: pointer;
}

.vi-back::before {
  content: "";
  width: 8px;
  height: 8px;
  border-bottom: 2px solid var(--orange);
  border-left: 2px solid var(--orange);
  transform: rotate(45deg);
}

.vi-back:hover {
  color: var(--orange);
}

.vi-bodies {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp2);
}

.vi-chip {
  padding: 7px var(--sp4);
  font: inherit;
  font-size: var(--fs-utility);
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--nav-border);
  border-radius: 999px;
  cursor: pointer;
}

.vi-chip[aria-pressed="true"] {
  color: var(--white);
  background: var(--text);
  border-color: var(--text);
}

.vi-models {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.vi-model {
  position: relative;
  display: grid;
  align-content: start;
  gap: 2px;
  width: 100%;
  height: 100%;
  padding: var(--sp5);
  font: inherit;
  text-align: left;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--nav-border);
  cursor: pointer;
  transition: border-color .42s var(--vi-ease), box-shadow .42s var(--vi-ease), transform .42s var(--vi-ease);
}

.vi-model:hover,
.vi-model:focus-visible {
  border-color: var(--orange);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .07);
  transform: translateY(-2px);
  outline: none;
}

.vi-model[aria-pressed="true"] {
  background: #fff8f2;
  border-color: var(--orange);
  box-shadow: inset 0 0 0 1px var(--orange);
  --vi-gap: #fff8f2;
}

.vi-model__art {
  width: 100%;
  max-width: 180px;
  height: auto;
  margin: 0 0 var(--sp4);
  color: #2b2b2b;
  transition: color .42s var(--vi-ease);
}

.vi-model:hover .vi-model__art,
.vi-model[aria-pressed="true"] .vi-model__art {
  color: var(--orange);
}

.vi-model__name {
  font-weight: 700;
  line-height: 1.3;
}

.vi-model__years {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.vi-model__flag {
  position: absolute;
  top: var(--sp3);
  right: var(--sp3);
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--page-bg);
  border-radius: 999px;
}

.vi-model__flag--none {
  color: #a4231a;
  background: #fdecea;
}

.vi-models--compact {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.vi-models--compact .vi-model {
  padding: var(--sp4);
}

.vi-models--compact .vi-model__art {
  max-width: 130px;
  margin-bottom: var(--sp3);
}

.vi-model__art.vi-art--photo {
  max-width: none;
  margin-bottom: var(--sp3);
  transition: transform .42s var(--vi-ease);
}

.vi-model:hover .vi-model__art.vi-art--photo {
  transform: scale(1.04);
}

/* Cars the live site has no photo for keep a silhouette, sized to the photo
   box and greyed so it reads as a stand-in among the photos. */
.vi-row__art.vi-art--img {
  aspect-ratio: 3 / 2;
  color: #d4d4d4;
  -webkit-mask-size: 86% auto;
  mask-size: 86% auto;
}

.vi-model__art.vi-art--img {
  max-width: none;
  aspect-ratio: 3 / 2;
  margin-bottom: var(--sp3);
  color: #d4d4d4;
  -webkit-mask-size: 86% auto;
  mask-size: 86% auto;
}

/* C. Directory */

.vi-list .vi-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp5);
  padding: var(--sp4) var(--sp5);
  border-top: 1px solid var(--nav-border);
  transition: background .3s var(--vi-ease);
  content-visibility: auto;
  contain-intrinsic-size: auto 96px;
}

.vi-list .vi-row:first-child {
  border-top: 0;
}

.vi-row[hidden] {
  display: none !important;
}

.vi-row:hover {
  --vi-gap: #fff8f2;
  background: #fff8f2;
}

.vi-row__art {
  width: 96px;
  height: auto;
  color: #2b2b2b;
  transition: color .42s var(--vi-ease);
}

.vi-row:hover .vi-row__art {
  color: var(--orange);
}

.vi-row__body {
  min-width: 0;
}

.vi-row__title {
  font-size: var(--fs-body);
  line-height: 1.4;
  color: var(--text);
  text-decoration: none;
}

.vi-row__make {
  font-weight: 700;
}

.vi-row__title:hover,
.vi-row__title:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}

.vi-row__meta {
  margin: 2px 0 0;
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.vi-row .vi-tags {
  margin-top: var(--sp2);
}

.vi-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(880px, 100vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  color: var(--text);
  background: var(--page-bg);
  border: 0;
  box-shadow: -24px 0 60px rgba(0, 0, 0, .25);
}

.vi-drawer[open] {
  display: flex;
  flex-direction: column;
  animation: vi-drawer-in .5s cubic-bezier(0.22, 1, 0.36, 1);
}

.vi-drawer::backdrop {
  background: rgba(0, 0, 0, .5);
}

@keyframes vi-drawer-in {
  from { transform: translateX(100%); }
  to { transform: none; }
}

.vi-drawer__bar {
  display: flex;
  justify-content: flex-end;
  padding: var(--sp3) var(--sp5);
  background: var(--header-bg);
}

.vi-drawer__bar form {
  margin: 0;
}

.vi-drawer__close {
  display: inline-flex;
  align-items: center;
  gap: var(--sp2);
  height: 40px;
  padding: 0 var(--sp4);
  font: inherit;
  font-size: var(--fs-utility);
  font-weight: 700;
  color: var(--white);
  background: none;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 4px;
  cursor: pointer;
}

.vi-drawer__close::after {
  content: "\00d7";
  font-size: 22px;
  line-height: 1;
}

.vi-drawer__close:hover {
  border-color: var(--white);
}

.vi-drawer__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--sp5);
}

.has-vi-drawer {
  overflow: hidden;
}

/* The car guide, shared by all three */

.vi-car {
  padding: var(--sp7);
  background: var(--white);
  border: 1px solid var(--nav-border);
}

.vi-car__head {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: center;
  gap: var(--sp6);
  padding-bottom: var(--sp6);
  border-bottom: 1px solid var(--nav-border);
}

.vi-car__art {
  --vi-gap: var(--page-bg);
  padding: var(--sp5) var(--sp4) var(--sp3);
  background: var(--page-bg);
}

.vi-car__art .vi-art {
  color: var(--orange);
}

.vi-id__img--none .vi-art {
  color: #c4c4c4;
}

.vi-car__make {
  margin: 0;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--orange);
}

.vi-car__title {
  margin: 2px 0 var(--sp1);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  outline: none;
}

.vi-car__meta {
  margin: 0;
  color: var(--text-muted);
}

.vi-car__head .vi-tags {
  margin-top: var(--sp3);
}

.vi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vi-tag {
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: #444;
  background: var(--page-bg);
  border-radius: 999px;
}

.vi-tag--none {
  color: #a4231a;
  background: #fdecea;
}

.vi-tag--photos {
  color: #8a3f00;
  background: #fff1e4;
}

.vi-note {
  margin: var(--sp6) 0 0;
  padding: var(--sp4) var(--sp5);
  background: #fdecea;
  border-left: 4px solid #c0392b;
}

.vi-sec {
  margin-top: var(--sp7);
}

.vi-sec__title {
  margin: 0 0 var(--sp4);
  font-size: var(--fs-cta-title);
  line-height: 1.25;
}

.vi-sec__lede {
  margin: calc(var(--sp2) * -1) 0 var(--sp5);
  color: var(--text-muted);
}

.vi-id__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.vi-id__card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--nav-border);
}

.vi-id__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--page-bg);
  cursor: zoom-in;
}

.vi-id__img--none {
  --vi-gap: var(--page-bg);
  display: grid;
  place-items: center;
  padding: 0 18%;
  color: #b9b9b9;
  cursor: default;
}

.vi-id__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: var(--sp5);
}

.vi-id__title {
  margin: 0 0 var(--sp2);
  font-size: var(--fs-body);
}

.vi-id__tell {
  flex: 1;
  margin: 0 0 var(--sp4);
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--text-muted);
}

.vi-id__need {
  display: block;
  margin: 0;
  padding: var(--sp3) var(--sp4);
  font-size: var(--fs-small);
  line-height: 1.4;
  color: var(--text);
  text-decoration: none;
  background: #fff1e4;
  transition: background .42s var(--vi-ease);
}

a.vi-id__need:hover {
  background: #ffe2c6;
}

.vi-id__need strong {
  color: var(--orange);
}

.vi-id__need--none {
  background: var(--page-bg);
}

.vi-id__need-label {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.vi-parts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.vi-part {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 20px;
  align-items: center;
  gap: var(--sp4);
  height: 100%;
  padding: var(--sp4) var(--sp5);
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--nav-border);
  transition: border-color .42s var(--vi-ease), background .42s var(--vi-ease);
}

.vi-part:hover {
  background: #fff8f2;
  border-color: var(--orange);
}

.vi-part__code {
  font-weight: 700;
  white-space: nowrap;
  color: var(--orange);
}

.vi-part__name {
  font-size: var(--fs-small);
  line-height: 1.4;
}

.vi-more {
  border-top: 1px solid var(--nav-border);
}

.vi-more__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp5) 0 0;
  font-size: var(--fs-cta-title);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.vi-more__toggle::-webkit-details-marker {
  display: none;
}

.vi-more__toggle::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(45deg);
  transition: transform .3s var(--vi-ease);
}

.vi-more[open] .vi-more__toggle::after {
  transform: rotate(225deg);
}

.vi-more[open] .vi-prose {
  margin-top: var(--sp5);
}

.vi-prose {
  max-width: 78ch;
  line-height: 1.65;
}

.vi-prose p {
  margin: 0 0 var(--sp4);
  text-wrap: pretty;
}

.vi-prose a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}

.vi-prose a:hover {
  color: var(--orange);
}

.vi-prose ul,
.vi-prose ol {
  margin: 0 0 var(--sp4);
  padding-left: 1.3em;
}

.vi-figs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp3);
  max-width: none;
  margin: var(--sp2) 0 var(--sp5);
}

.vi-prose .vi-figs {
  width: min(100%, 980px);
}

.vi-figs figure {
  margin: 0;
}

.vi-figs img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--page-bg);
  border: 1px solid var(--nav-border);
  cursor: zoom-in;
}

.vi-prose table {
  width: 100%;
  margin: 0 0 var(--sp5);
  font-size: var(--fs-small);
  border-collapse: collapse;
}

.vi-prose td,
.vi-prose th {
  padding: var(--sp2) var(--sp3);
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--nav-border);
}

.vi-prose tr:first-child td {
  background: var(--page-bg);
}

.vi-blank {
  margin: 0;
  padding: var(--sp5);
  color: var(--text-muted);
  background: var(--page-bg);
}

.vi-ask {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp5);
  margin-top: var(--sp7);
  padding: var(--sp6);
  color: var(--text-white);
  background: var(--header-bg);
}

.vi-ask__title {
  margin: 0 0 var(--sp1);
  font-size: var(--fs-cta-title);
  font-weight: 700;
}

.vi-ask__text {
  max-width: 52ch;
  margin: 0;
  color: rgba(255, 255, 255, .72);
}

.vi-ask__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp5);
}

.vi-ask__wa {
  display: inline-flex;
  align-items: center;
  gap: var(--sp2);
  height: 48px;
  padding: 0 var(--sp5) 0 var(--sp3);
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  background: #47c43e;
  border-radius: 4px;
  transition: background .42s var(--vi-ease);
}

.vi-ask__wa:hover,
.vi-ask__wa:focus-visible {
  background: #3fb038;
}

.vi-ask__wa-icon {
  flex: none;
  width: 28px;
  height: 28px;
}

.vi-ask__tel {
  font-weight: 700;
  color: var(--text-white);
  text-decoration: none;
  border-bottom: 1px solid var(--orange);
}

.vi-drawer .vi-car {
  border: 0;
}

/* Smaller screens */

@media (max-width: 1000px) {
  .vi-makes--big {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vi-id__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .vi-id__card {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .vi-id__img {
    height: 100%;
  }

  .vi-choose__row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .vi-choose__go {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .vi-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp3);
  }

  .vi-step {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: var(--sp4);
    padding: var(--sp5);
  }

  .vi-step__n {
    grid-row: span 2;
    margin: 0;
  }

  .vi-car {
    padding: var(--sp5);
  }

  .vi-car__head {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: var(--sp4);
  }

  .vi-car__art {
    padding: var(--sp3) var(--sp2) var(--sp2);
  }

  .vi-parts {
    grid-template-columns: minmax(0, 1fr);
  }

  .vi-id__card {
    grid-template-columns: minmax(0, 1fr);
  }

  .vi-id__img {
    height: auto;
  }

  .vi-list .vi-row {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: var(--sp3) var(--sp4);
    padding: var(--sp4);
  }

  .vi-row__art {
    width: 64px;
  }

  .vi-row__go {
    display: none;
  }

  .vi-models,
  .vi-models--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp2);
  }

  .vi-model {
    padding: var(--sp4);
  }

  .vi-model__flag {
    position: static;
    justify-self: start;
    margin-top: var(--sp2);
  }

  .vi-hit {
    grid-template-columns: 52px minmax(0, 1fr) 20px;
    padding: var(--sp3) var(--sp4);
  }

  .vi-hit__art {
    width: 52px;
  }

  .vi-hit__years {
    display: none;
  }

  .vi-choose__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .vi-drawer__body {
    padding: 0;
  }
}

@media (max-width: 560px) {
  .vi-plate__field,
  .vi-plate__go {
    width: 100%;
  }

  .vi-plate__field {
    height: 64px;
  }

  .vi-plate__input {
    font-size: 34px;
  }

  .vi-plate__go {
    height: 52px;
  }

  .vi-makes--big .vi-make {
    min-height: 124px;
    padding: var(--sp4);
  }

  .vi-make--big .vi-logo {
    width: 72px;
    height: 32px;
  }

  .vi-make--big .vi-logo--photo {
    width: 64px;
    height: 40px;
  }

  .vi-make--big .vi-make__name {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vi-drawer[open],
  .vi-loading::after {
    animation: none;
  }
}
