/* Champion Centre v1.11.108 — iPhone 15 Pro mobile layout fixes. */
@media (min-width: 375px) and (max-width: 430px) {
  /* Home stats: keep the 2-column layout on modern iPhones; only the last card spans full width. */
  body.home .stats-card {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.home .stats-card > .stats-card__item,
  body.home .stats-card > .stats-card__item + .stats-card__item,
  body.home .stats-card > .stats-card__item:nth-child(odd),
  body.home .stats-card > .stats-card__item:nth-child(n+3) {
    grid-column: auto !important;
    border-left: 1px solid var(--line) !important;
    border-top: 0 !important;
    min-height: 116px !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    column-gap: 10px !important;
    padding: 15px 13px !important;
    align-items: center !important;
  }

  body.home .stats-card > .stats-card__item:nth-child(odd) {
    border-left: 0 !important;
  }

  body.home .stats-card > .stats-card__item:nth-child(n+3) {
    border-top: 1px solid var(--line) !important;
  }

  body.home .stats-card > .stats-card__item:last-child {
    grid-column: 1 / -1 !important;
  }

  body.home .stats-card__item--events {
    align-items: center !important;
  }

  body.home .stats-card__item--events .events-stat-group {
    width: fit-content !important;
    margin: 0 auto !important;
    justify-content: flex-start !important;
  }
}

@media (max-width: 430px) {
  /* Home small news cards: prevent the text column from collapsing into a narrow strip. */
  body.home .side-news-card {
    grid-template-columns: 108px minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: start !important;
    padding: 14px 42px 14px 14px !important;
    width: 100% !important;
  }

  body.home .side-news-card img {
    width: 108px !important;
    height: 84px !important;
    border-radius: 10px !important;
    object-fit: cover !important;
  }

  body.home .side-news-card > div,
  body.home .side-news-card h3,
  body.home .side-news-card h3 a {
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
  }

  body.home .side-news-card h3 {
    margin: 8px 0 0 !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    hyphens: none !important;
  }

  body.home .side-news-card span,
  body.home .side-news-card time {
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  body.home .side-news-card > a {
    right: 14px !important;
    bottom: 14px !important;
  }

  /* News archive cards: keep the image on top and a normal flowing body below it. */
  body .news-grid-card {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 14px !important;
  }

  body .news-grid-card img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
    border-radius: 10px !important;
  }

  body .news-grid-card__body {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body .news-grid-card h3,
  body .news-grid-card h3 a,
  body .news-grid-card p {
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    hyphens: none !important;
  }
}
