#shop { scroll-margin-top: 5rem; }
.jd-vehicle-lineup {
  margin: 2.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2rem 1rem;
}
.jd-vehicle-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  color: var(--text, #f5f8fc);
  text-align: center;
  text-decoration: none;
  border-radius: .3rem;
  padding: .25rem .125rem .625rem;
}
.jd-vehicle-lineup .jd-vehicle-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  object-position: center bottom;
  transition: transform .18s ease-out;
}
.jd-vehicle-years {
  display: block;
  margin-top: 1rem;
  color: #5bb2ff;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.jd-vehicle-name {
  margin-top: .25rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}
.jd-vehicle-link:focus-visible, .jd-platform-info a:focus-visible {
  outline: .15rem solid #65b8ff;
  outline-offset: .25rem;
}
.jd-vehicle-link:focus-visible .jd-vehicle-name,
.jd-vehicle-link:hover .jd-vehicle-name {
  text-decoration: underline;
  text-decoration-color: #5bb2ff;
  text-underline-offset: .25em;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .jd-vehicle-link:hover .jd-vehicle-photo { transform: translateY(-.2rem); }
}
.jd-platform-info { display: none; }
.jd-platform-info:target {
  display: flex;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding: 1.375rem 0;
  border-block: 1px solid var(--line, #1b2a39);
  scroll-margin-top: 6rem;
}
.jd-platform-info h3 { margin: .3rem 0; font-size: 1.4rem; }
.jd-platform-info p { margin: 0; }
.jd-platform-info .jd-platform-spec { color: var(--muted, #b4bdc7); }
.jd-platform-actions { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.jd-platform-actions a {
  color: #83c5ff;
  padding-block: .7rem;
  text-decoration: underline;
  text-underline-offset: .2em;
}
@media (max-width: 67.99rem) {
  .jd-vehicle-lineup { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 45rem) {
  .jd-vehicle-lineup { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; }
  .jd-vehicle-name { font-size: 1rem; }
}
@media (max-width: 22rem) {
  .jd-vehicle-lineup { grid-template-columns: 1fr; }
  .jd-vehicle-link { max-width: 19rem; width: 100%; margin-inline: auto; }
}
/* Selecting another vehicle should keep the desktop lineup in reach. */
@media (min-width: 68rem) {
  .jd-platform-info:target { scroll-margin-top: min(52vh, 22rem); }
}
html:has(#shop:target, .jd-platform-info:target) { scroll-behavior: auto; }
