/* The Best row groups the readable record and the actual stored GLB into one compact
   cluster. It uses the available card space without letting a flexible column push the
   vehicle away from its BEST label. */

.track-card-best {
  display: grid;
  grid-template-columns: max-content max-content;
  align-items: center;
  justify-content: start;
  column-gap: clamp(8px, 0.85vw, 14px);
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.track-card-best-copy {
  display: grid;
  align-content: center;
  gap: 2px;
  min-width: 0;
}

.track-card-best-copy > span,
.track-card-best-copy > strong,
.track-card-best-copy > small {
  display: block;
}

.track-card-best-copy > span {
  font-size: clamp(0.7rem, 1.25vw, 0.94rem);
  letter-spacing: 0.05em;
}

.track-card-best-copy > strong {
  font-size: clamp(0.9rem, 1.6vw, 1.2rem);
  line-height: 1;
  white-space: nowrap;
}

.track-card-best-copy > small {
  margin-top: 1px;
}

.track-card-best-model {
  display: block;
  justify-self: start;
  width: clamp(120px, 10.5vw, 174px);
  height: clamp(75px, 8.5vw, 110px);
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(3px 4px 0 rgb(8 9 10 / 0.32));
}

.track-card-best-model[hidden] {
  display: none;
}

.track-card-coming-soon {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
}

.track-card.is-selected .track-card-best {
  box-shadow: none;
}

@media (max-height: 820px) and (orientation: landscape) {
  .track-card-best {
    grid-template-columns: max-content max-content;
    column-gap: clamp(7px, 0.7vw, 11px);
  }

  .track-card-best-copy > span {
    font-size: clamp(0.62rem, 1vw, 0.78rem);
  }

  .track-card-best-copy > strong {
    font-size: clamp(0.78rem, 1.3vw, 1rem);
  }

  .track-card-best-model {
    width: clamp(108px, 9.2vw, 152px);
    height: clamp(68px, 7.4vw, 96px);
  }
}

@media (max-height: 610px) and (orientation: landscape) {
  .track-card-best {
    column-gap: 6px;
  }

  .track-card-best-copy > span {
    font-size: clamp(0.54rem, 0.88vw, 0.68rem);
  }

  .track-card-best-copy > strong {
    font-size: clamp(0.68rem, 1.08vw, 0.84rem);
  }

  .track-card-best-model {
    width: clamp(84px, 7vw, 120px);
    height: clamp(54px, 5.8vw, 76px);
  }
}