/* Shared mobile readiness for Hawkeye Fan Zone live pages */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

video,
iframe {
  height: auto;
}

/* Prevent iOS zoom on form focus */
@media (max-width: 639px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Touch-friendly chrome */
#hfz-nav-toggle,
.hub2-nav-toggle,
.nav-menu-toggle {
  min-width: 44px;
  min-height: 44px;
}

#hfz-mobile-nav a,
.hub2-links a,
.nav-links a {
  min-height: 44px;
}

/* Horizontal scroll regions (schedules / rosters) */
.overflow-x-auto,
[class*="overflow-x-auto"] {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  max-width: 100%;
}

/* Long Anton headlines / opponent names */
h1,
h2,
.hfz-team-name,
[class*="headline"] {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Safe areas for notched phones under fixed header */
@supports (padding: max(0px)) {
  header.fixed,
  header.hub2-nav {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
}

/* News / article page modal — full-bleed on phones */
@media (max-width: 639px) {
  #page-modal {
    padding: 0 !important;
    align-items: stretch !important;
  }

  #page-modal-content {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    min-height: 100dvh;
    border: 0 !important;
  }

  #page-modal-close,
  #page-modal-close-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .hfz-brand-mark {
    font-size: 18px;
    line-height: 1.1;
    padding: 0.2rem 0.45rem;
  }

  .hfz-brand-sub {
    font-size: 16px;
    line-height: 1;
  }

  #hub2-nextup-when {
    max-width: 36vw;
  }

  /* Stack dense CTA rows that can spill on narrow screens */
  .hfz-mobile-stack {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  /* Compact schedule / roster tables inside scroll wrappers */
  .overflow-x-auto table,
  [class*="overflow-x-auto"] table {
    font-size: 12px;
  }

  .overflow-x-auto th,
  .overflow-x-auto td,
  [class*="overflow-x-auto"] th,
  [class*="overflow-x-auto"] td {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  /* Hero CTA clusters: full-width taps */
  .relative a.inline-flex.items-center.justify-center.px-space-lg,
  .relative button.inline-flex.items-center.justify-center.px-space-lg {
    width: 100%;
    justify-content: center;
  }
}
