/* CarExam learning artwork: keep colour and orientation intact in both languages. */
img.artwork-icon {
  display: block;
  flex-shrink: 0;
  max-width: 100%;
  object-fit: contain;
  transform: none;
  filter: none;
}

.home-hero:has(> .hero-artwork) {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr);
  align-items: center;
  gap: 48px;
}

.home-hero > .hero-copy {
  min-width: 0;
}

.home-hero > img.hero-artwork {
  display: block;
  width: min(100%, 390px);
  height: auto;
  max-height: 350px;
  object-fit: contain;
  justify-self: center;
  transform: none;
}

.licence-grid:has(.vehicle-artwork) {
  width: 100%;
  max-width: 820px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.licence-grid .licence-button:has(.vehicle-artwork) {
  gap: 16px;
  min-height: 112px;
}

.licence-button > img.vehicle-artwork {
  width: 64px;
  height: 64px;
}

.licence-button:has(.vehicle-artwork) > span {
  min-width: 0;
}

/* A pale selected surface preserves the blue artwork's contrast. */
.licence-button.active:has(.vehicle-artwork) {
  color: var(--ink);
  background: var(--blue-wash);
  box-shadow: inset 0 -3px 0 var(--blue);
}

.licence-button.active:has(.vehicle-artwork) small {
  color: #455e81;
}

.study-link > img.study-icon,
.study-link > .study-icon:has(img) {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
}

.study-link > .study-icon > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.study-link > div,
.learning-link > div,
.country-sign-test > div {
  min-width: 0;
}

.study-link > .direction-arrow,
.learning-link > .link-arrow {
  flex-shrink: 0;
}

.practice-feature .feature-top:has(.practice-artwork) {
  align-items: center;
  gap: 16px;
  min-height: 80px;
}

.practice-feature .feature-top:has(.practice-artwork) > .eyebrow {
  margin-top: 0;
}

.practice-feature .feature-top > img.practice-artwork {
  width: 80px;
  height: 80px;
}

.practice-feature .feature-top:has(.practice-artwork) + h2 {
  margin-top: 12px;
}

.country-sign-test > img.signs-test-artwork {
  width: 64px;
  height: 64px;
}

.learning-link:has(.learning-artwork) {
  align-items: center;
  gap: 14px;
}

.learning-link > img.learning-artwork {
  width: 56px;
  height: 56px;
}

.learning-link:has(.learning-artwork) > div {
  flex: 1;
}

@media (max-width: 1100px) {
  .home-hero:has(> .hero-artwork) {
    gap: 28px;
  }

  .home-hero > img.hero-artwork {
    width: min(100%, 340px);
  }
}

@media (max-width: 800px) {
  .home-hero:has(> .hero-artwork) {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .home-hero > img.hero-artwork {
    width: 220px;
    max-height: 170px;
  }
}

@media (max-width: 600px) {
  .licence-grid .licence-button:has(.vehicle-artwork) {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    padding: 15px 13px;
    min-height: 136px;
  }

  .licence-button > img.vehicle-artwork {
    width: 52px;
    height: 52px;
  }

  .study-link > img.study-icon,
  .study-link > .study-icon:has(img) {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .study-link:has(.study-icon) {
    gap: 14px;
  }

  .practice-feature .feature-top:has(.practice-artwork) {
    min-height: 72px;
    gap: 12px;
  }

  .practice-feature .feature-top > img.practice-artwork {
    width: 72px;
    height: 72px;
  }

  .country-sign-test:has(.signs-test-artwork) {
    gap: 14px;
  }

  .country-sign-test > img.signs-test-artwork {
    width: 56px;
    height: 56px;
  }

  .learning-link > img.learning-artwork {
    width: 48px;
    height: 48px;
  }

  .home-hero > img.hero-artwork {
    width: 200px;
    max-height: 150px;
  }
}
