/* Point A homepage: partner copy and approved expedited team-driving image. */
.home-page .hero--partner .hero-copy .hero-support {
  max-width: 58ch;
  margin: 12px 0 0;
  color: #52657a;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}

/* Keep the cab and both drivers in view when the service card crops the image. */
.home-page .home-solution-grid .tile-expedite {
  --tile-image: url('/assets/expedited-team-drivers.avif');
  --tile-position: 78% 56%;
}

/* Retain the desktop split; allow room for the added supporting sentence. */
@media (min-width: 821px) {
  .home-page .hero.hero--partner {
    height: auto;
    min-height: clamp(500px, calc(100svh - 166px), 590px);
  }
  .home-page .hero--partner .hero-media {
    height: auto;
    align-self: stretch;
  }
}

@media (max-width: 820px) {
  .home-page .hero.hero--partner {
    /* Reserve natural space for copy and controls; let the photo shrink first. */
    grid-template-rows: minmax(72px, 1fr) minmax(max-content, auto);
  }
  .home-page .hero--partner .hero-media {
    max-height: calc(100vw * 868 / 1704);
    align-self: center;
  }
  .home-page .hero--partner .hero-copy .eyebrow {
    margin-top: 0;
  }
  .home-page .hero--partner .hero-copy .hero-support {
    flex-shrink: 0;
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.45;
  }
  .home-page .hero--partner .hero-copy > h1,
  .home-page .hero--partner .hero-copy > .lede,
  .home-page .hero--partner .hero-copy > .btn-row {
    flex-shrink: 0;
  }
  .home-page .hero--partner .btn-row { padding-top: 14px; }
}

/* Compact portrait phones: both full-height tap targets share one row. */
@media (max-width: 560px) and (max-height: 740px) {
  .home-page .hero--partner .btn-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-page .hero--partner .btn {
    min-height: 48px;
    padding-inline: 8px;
    font-size: 10px;
    letter-spacing: .04em;
    gap: 6px;
    white-space: nowrap;
  }
}

/* Let landscape and larger text scroll rather than clipping any content. */
@media (max-width: 820px) and (max-height: 480px) and (orientation: landscape) {
  .home-page .hero.hero--partner {
    height: auto;
    grid-template-rows: auto auto;
  }
}
