/* Let the homepage hero contract when its metrics row is disabled. */
@media (min-width: 1100px) {
  body[data-route="home"] .home-hero--no-metrics :is(.home-hero-card, .home-hero-media) {
    height: auto !important;
    min-height: 560px !important;
  }
}

@media (min-width: 1100px) and (max-width: 1599px) {
  html.laptop-scale-v1 body[data-viewport="desktop"][data-route="home"] .home-hero--no-metrics :is(.home-hero-card, .home-hero-media) {
    min-height: clamp(26rem, 34vw, 32rem) !important;
  }
}

/* Mobile already sizes to its content: removing the row removes its height. */
body[data-viewport="mobile"][data-route="home"] .home-hero--no-metrics .home-mobile-hero-card {
  height: auto;
  min-height: 0;
}
