/* Homepage mobile responsive fixes.
   Kept separate so the existing desktop design remains untouched. */

@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .home-page main,
  .home-page .hero-home,
  .home-page .match-hub {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .home-page .page-shell,
  .home-page .hero-content {
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
    margin-inline: auto;
  }

  .home-page .hero-home {
    height: auto;
    min-height: 0;
    padding-bottom: 0;
  }

  .home-page .hero-photo {
    width: 100%;
    inset: 0;
    background-position: 62% center;
  }

  .home-page .hero-shade {
    background: linear-gradient(180deg, rgba(3,4,5,.72) 0%, rgba(3,4,5,.58) 42%, rgba(3,4,5,.25) 72%, rgba(3,4,5,.48) 100%);
  }

  .home-page .hero-content {
    padding-top: 38px;
    padding-bottom: 38px;
    overflow: hidden;
  }

  .home-page .hero-title-art {
    width: min(330px, 92%);
    height: auto;
  }

  .home-page .hero-kicker,
  .home-page .hero-subtitle {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .home-page .hero-kicker {
    font-size: 13px;
    letter-spacing: .20em;
  }

  .home-page .hero-subtitle {
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: .14em;
    margin-bottom: 22px;
  }

  .home-page .hero-buttons {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .home-page .hero-buttons .hero-cta {
    position: relative;
    left: auto;
    right: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 52px;
    margin-left: 0;
    margin-right: 0;
    padding-inline: 18px;
  }

  .home-page .hero-cta-label {
    min-width: 0;
    white-space: normal;
  }

  .home-page .home-match-board,
  .home-page .home-match-row,
  .home-page .compact-match-teams,
  .home-page .home-match-side,
  .home-page .match-actions {
    min-width: 0;
    max-width: 100%;
  }

  .home-page .home-match-row {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .home-page .compact-match-teams {
    grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  }

  .home-page .compact-team {
    width: 100%;
    min-width: 0;
  }

  .home-page .compact-team strong {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .home-page .home-match-side,
  .home-page .match-actions.home-match-side {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-page .home-match-side > *,
  .home-page .match-actions.home-match-side > * {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    justify-self: stretch;
  }

  .home-page .home-match-row-prev .home-match-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-page .match-more {
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 430px) {
  .home-page .page-shell,
  .home-page .hero-content {
    width: calc(100% - 28px);
    max-width: calc(100% - 28px);
  }

  .home-page .hero-home {
    min-height: 0;
  }

  .home-page .hero-content {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .home-page .home-match-side,
  .home-page .match-actions.home-match-side {
    grid-template-columns: minmax(0, 1fr);
  }
}
