.site-navigation [aria-controls="mobile-navigation"],
.site-nav-mobile > button { min-width: 44px; min-height: 44px; }
#mobile-navigation { max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; }
.news-featured-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.news-featured-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.news-card-title { -webkit-line-clamp: 2; }
.news-filter { min-height: 44px; width: 192px; }
@media (max-width: 1279px) {
  .site-navigation .site-nav-desktop { display: none; }
  .site-navigation .site-nav-mobile { display: flex; }
  .site-navigation > div { padding-inline: 16px; }
}
@media (min-width: 1280px) {
  .site-navigation .site-nav-desktop { display: flex; }
  .site-navigation .site-nav-mobile, #mobile-navigation { display: none; }
}
@media (max-width: 1023px) {
  .news-sidebar { display: none; }
}
@media (max-width: 639px) {
  .news-content { padding-top: 24px; }
  .news-toolbar { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 24px; }
  .news-toolbar > div, .news-toolbar .news-filter { width: 100%; }
  .news-card-title { font-size: 16px; line-height: 1.4; -webkit-line-clamp: 3; }
}

.home-featured-description { -webkit-line-clamp: 2; }
@media (max-width: 639px) {
  .home-featured-image { height: auto; aspect-ratio: 16 / 10; }
}

.home-news-image { aspect-ratio: 16 / 10; }

/* Mobile navigation and content rhythm. */
.mobile-league-filter { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 14px; box-shadow: 0 2px 8px #0a063508; }
.mobile-league-filter > span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.league-filter-action { display: flex; align-items: center; gap: 4px; margin-left: auto; font-size: 13px; color: #64748b; flex-shrink: 0; }
.league-drawer-overlay { position: fixed; inset: 0; background: #0a063580; z-index: 70; }
.league-drawer { position: fixed; inset: 0 auto 0 0; width: min(360px, calc(100vw - 24px)); height: 100dvh; background: white; z-index: 71; overflow-y: auto; overscroll-behavior: contain; padding-bottom: max(24px, env(safe-area-inset-bottom)); box-shadow: 12px 0 48px #0002; }
.league-drawer-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; position: sticky; top: 0; background: white; z-index: 2; border-bottom: 1px solid #e5e7eb; }
.league-drawer-close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #f3f4f6; flex-shrink: 0; }
.league-drawer input { font-size: 16px; }
@media (max-width: 639px) {
  .site-hero .site-hero-content { height: auto; min-height: 340px; padding: 28px 16px 56px; }
  .hero-message .hero-message-badge { padding: 6px 10px; margin-bottom: 16px; }
  .hero-message-badge span:last-child { font-size: 11px; letter-spacing: .02em; }
  .hero-message h1 { font-size: clamp(24px, 6.4vw, 29px); line-height: 1.2; letter-spacing: -.025em; margin-bottom: 12px; }
  .hero-message p { font-size: 15px; line-height: 1.5; margin-bottom: 20px; }
  .hero-message > div:last-child { width: 100%; }
  .hero-message button { width: 100%; min-height: 48px; padding: 12px 20px; font-size: 16px; border-radius: 12px; }
  .home-matches-viewport { width: calc(100% + 16px); margin-right: -16px; }
  .home-matches-track { scroll-snap-type: x mandatory; scroll-padding-left: 0; gap: 12px; padding-right: 16px; }
  .home-match-card { flex: 0 0 82%; min-width: 0; max-width: 280px; scroll-snap-align: start; }
  .home-news-grid { display: flex; flex-direction: column; gap: 0; }
  .home-news-card { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #e5e7eb; }
  .home-news-card:first-child { padding-top: 0; }
  .home-news-card:last-child { border-bottom: 0; padding-bottom: 0; }
  .home-news-card .home-news-image { margin: 0; aspect-ratio: 4 / 3; border-radius: 12px; }
  .home-news-card .home-news-image img { object-fit: cover !important; }
  .home-news-card h3 { font-size: 15px; line-height: 1.4; font-weight: 500; -webkit-line-clamp: 3; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .home-matches-track { scroll-behavior: auto; }
}

.news-action-button { min-width: 44px; min-height: 44px; }
.news-retry-button { min-height: 44px; padding: 10px 20px; margin: 0 8px 12px; border-radius: 10px; background: #0a0635; color: white; }
[data-search-sheet] { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
[data-search-sheet] input { font-size: 16px; min-height: 44px; }
[data-search-sheet] button[aria-label] { min-width: 44px; min-height: 44px; }

.news-share-overlay { position: fixed; inset: 0; background: #0a063580; z-index: 80; }
.news-share-dialog { position: fixed; z-index: 81; inset: auto 0 0; background: white; border-radius: 24px 24px 0 0; padding: 20px 20px max(24px, env(safe-area-inset-bottom)); max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain; color: #111827; box-shadow: 0 -12px 48px #0002; }
.news-share-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.news-share-heading h2 { font-size: 20px; font-weight: 600; }
.news-share-close { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: #f3f4f6; }
.news-share-description { color: #64748b; font-size: 14px; margin: 4px 0 20px; }
.news-share-actions { display: grid; gap: 10px; }
.news-share-actions button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; text-align: left; border: 1px solid #e5e7eb; border-radius: 16px; min-height: 72px; }
.news-share-actions button:hover { background: #f8fafc; }
.news-share-actions strong { display: block; font-size: 15px; font-weight: 600; }
.news-share-actions small { display: block; font-size: 12px; color: #64748b; margin-top: 2px; }
.news-share-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #f1f5f9; flex-shrink: 0; color: #0a0635; }
.news-share-fallback { margin-top: 16px; font-size: 14px; }
.news-share-fallback input { display: block; width: 100%; min-height: 44px; margin-top: 8px; padding: 10px; font-size: 16px; border: 1px solid #cbd5e1; border-radius: 8px; }
@media (min-width: 768px) {
  .news-share-dialog { inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(440px, calc(100vw - 40px)); border-radius: 24px; padding: 24px; }
}

/* Keep round controls usable without overflowing narrow screens. */
[data-round-arrow] { min-width: 44px; min-height: 44px; flex-shrink: 0; }
[data-round-tab] { min-height: 44px; }
[data-round-tab]:focus-visible, [data-round-arrow]:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
@media (max-width: 767px) {
  [data-round-navigation] { min-width: 0; gap: 4px; }
  [data-round-navigation] > div { min-width: 0; gap: 2px; overflow-x: auto; padding: 4px 2px; }
  [data-round-tab] { min-width: 0; flex: 1 0 36px; padding: 6px 2px; }
  [data-round-tab] span { font-size: 10px; }
  [data-round-navigation] > div > div { min-width: 36px; padding-left: 2px; padding-right: 2px; }
}

/* Bound editorial media on wide screens as well as phones. */
.home-featured-image { height: auto; aspect-ratio: 16 / 9; max-height: 360px; background: #f1f3f5; }
@media (max-width: 639px) {
  .home-featured-image { aspect-ratio: 16 / 10; max-height: 260px; }
}
