/* Mobile-only guard for the existing hero headline. */
.hero h1 {
  max-width: 100%;
  overflow-wrap: break-word;
}

.hero h1 em {
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  .hero h1 {
    font-size: clamp(2.65rem, 13.5vw, 5.25rem);
    line-height: 0.98;
    text-wrap: balance;
  }

  .hero h1 em {
    display: block;
    margin-top: 0.55rem;
  }
}

@media (max-width: 359px) {
  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 2.8rem);
    max-width: calc(100vw - 2rem);
  }
}

/* Whizz-Kidz impact stats — prevent number/label overlap on narrow mobile */
@media (max-width: 767px) {
  .hero-visual .distance-stamp {
    width: 90px;
    height: 90px;
    left: 1.6rem;
    top: 40%;
    right: auto;
  }

  .hero-visual .distance-stamp span {
    font-size: .4rem;
  }

  .charity-section .impact-list {
    display: grid;
    gap: 1.35rem;
    min-width: 0;
  }

  .charity-section .impact-list > div {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 0;
    align-items: center;
    text-align: center;
  }

  .charity-section .impact-list strong {
    display: block;
    margin: 0;
    line-height: 1;
    font-size: clamp(1.85rem, 8.5vw, 2.6rem);
  }

  .charity-section .impact-list span {
    display: block;
    max-width: 100%;
    padding-top: 0.1rem;
    line-height: 1.45;
    text-align: center;
  }
}

/* Lead Mile Sponsor opportunity — keep long titles inside the card on mobile */
@media (max-width: 767px) {
  .lead-sponsor {
    min-width: 0;
  }

  .lead-sponsor-mark,
  .lead-sponsor-copy,
  .lead-sponsor-copy h3,
  .lead-sponsor .preview-flag,
  .lead-sponsor .sponsor-tier,
  .lead-sponsor .lead-business-kicker {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
  }

  .lead-sponsor-copy h3 {
    font-size: clamp(2.25rem, 10.5vw, 3.4rem);
    line-height: 1.08;
  }
}
