/* Reflow, touch targets, and safe areas; avoid masking overflow at the page level. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-size: 1.0625rem; }
:where(main, section, article, nav, header, footer, div) { min-inline-size: 0; }
h1, h2, h3, p, li, a, summary { overflow-wrap: anywhere; }
img { height: auto; }
.button, .menu-toggle, .photo-card, summary { touch-action: manipulation; }
.button { max-inline-size: 100%; min-block-size: 3rem; }
.button-row { gap: .75rem; }
.button-row > * { min-inline-size: 0; }
.site-header { flex-wrap: wrap; }
.site-header .brand { flex-shrink: 0; }
.header-actions { flex-wrap: wrap; min-inline-size: 0; max-inline-size: 100%; }
.header-ticket { white-space: normal; }
.footer-links { min-inline-size: 0; max-inline-size: 100%; }
.footer-links > a, .contact-people .email-link { overflow-wrap: anywhere; }
.team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.experience-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sponsor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.countdown-digits { grid-template-columns: repeat(auto-fit, minmax(min(100%, 4rem), 1fr)); }
.count-value { overflow-wrap: normal; }
.player-team-names { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.player-team-names > span { text-align: center; }
.faq summary { min-block-size: 2.75rem; align-items: center; }
.faq summary::after { flex-shrink: 0; }
.faq summary::-webkit-details-marker { display: none; }
.contact-people .email-link, .footer-links > a:not(.button), .footer-bottom a {
  min-block-size: 2.75rem; display: inline-flex; align-items: center;
}
.contact-people .email-link { align-items: flex-start; justify-content: center; }
.dialog-close { min-inline-size: 3rem; min-block-size: 3rem; top: .25rem; right: .25rem; padding: .5rem .75rem; }
dialog {
  padding: 3.5rem .75rem 1rem;
  max-inline-size: calc(100vw - 1.5rem);
  max-block-size: calc(100vh - 1.5rem);
  max-block-size: calc(100dvh - 1.5rem);
  overflow-y: auto; overscroll-behavior: contain;
}
dialog img { max-block-size: calc(100vh - 10rem); max-block-size: calc(100dvh - 10rem); object-fit: contain; }
dialog p { overflow-wrap: anywhere; }
html.photo-open { overflow: hidden; }
html.photo-open body { position: fixed; inset-inline: 0; top: var(--photo-scroll-top, 0); inline-size: 100%; }

@media (max-width: 1180px) {
  .section-heading { flex-wrap: wrap; gap: 1.5rem; }
  .section-heading > div { flex: 1 1 24rem; }
  .section-heading > p { flex: 1 1 17rem; }
}
@media (max-width: 1050px) {
  .services-grid, .sponsor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .site-header nav {
    gap: .25rem; max-block-size: calc(100vh - 11rem); max-block-size: calc(100dvh - 11rem);
    overflow-y: auto; overscroll-behavior: contain;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }
  .site-header nav > a { font-size: 1rem; min-block-size: 3rem; }
  .site-header nav > a:not(.nav-cta) { padding: .75rem .375rem; }
  .menu-toggle { min-block-size: 3rem; font-size: .875rem; }
  .header-ticket { min-block-size: 3rem; font-size: .875rem; }
  .event-hero, .cause-hero, .sponsor-hero, .player-hero, .story, .plan-section, .player-info, .cause-banner {
    grid-template-columns: minmax(0, 1fr); gap: 2.25rem;
  }
  .contact-block { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .page-hero h1 { font-size: clamp(3rem, 8vw, 5.5rem); line-height: 1.04; }
  .page-hero .lead { max-inline-size: 42rem; }
  .section-heading > p { max-inline-size: 40rem; }
  .event-photo img, .player-info > img { block-size: auto; aspect-ratio: 16 / 10; }
  .player-visual { inline-size: min(100%, 34rem); margin-inline: auto; }
  .player-jerseys { min-block-size: 0; padding: 1.25rem 1rem 3.125rem; }
  .player-jerseys img { inline-size: 56%; transform: rotate(-7deg); }
  .player-jerseys img + img { margin-inline-start: -12%; transform: rotate(7deg) translateY(20px); }
  .player-team-names { font-size: clamp(1.125rem, 3vw, 1.5rem); gap: .75rem; }
  .button-row > .button { flex: 1 1 13rem; }
  .footer-top { flex-wrap: wrap; gap: 1.5rem; }
  .footer-top > p { flex: 1 1 12rem; }
  .footer-links { inline-size: 100%; align-items: flex-start; }
  .footer-bottom { flex-wrap: wrap; align-items: center; }
  .footer-top p { font-size: 1rem; }
  .count-label { font-size: .8125rem; letter-spacing: .035em; }
  .countdown-date { font-size: .8125rem; line-height: 1.6; }
}
@media (max-width: 760px) {
  .topline { block-size: auto; min-block-size: 2rem; padding-block: .375rem; font-size: .75rem; line-height: 1.4; text-align: center; }
  .hero { display: grid; grid-template-columns: minmax(0, 1fr); min-block-size: 0; padding-block-end: 0; }
  .hero-content { grid-row: 1; padding: 2rem 6% 1.75rem; inline-size: 100%; }
  .hero-image { grid-row: 2; position: relative; inline-size: 100%; block-size: auto; aspect-ratio: 16 / 10; }
  .hero-image img { inline-size: 100%; block-size: 100%; object-position: center 55%; }
  .hero-image::after { background: linear-gradient(180deg, #080a0b 0%, rgba(8,10,11,.12) 28%, transparent 60%, rgba(8,10,11,.45) 100%); }
  .hero h1 { font-size: clamp(4.5rem, 18vw, 8rem); line-height: 1; }
  .hero .eyebrow { font-size: .8125rem; letter-spacing: .065em; }
  .hero-subline { font-size: clamp(1.25rem, 5.5vw, 1.625rem); line-height: 1.35; }
  .hero-description { font-size: 1rem; max-inline-size: 34rem; }
  .hero-logo { inline-size: 7rem; block-size: 6rem; right: 1%; bottom: 1.75rem; }
  .photo-tag { font-size: .75rem; letter-spacing: .03em; }
  .section, .page-hero { padding-block: 3rem; }
  .page-hero h1, .player-hero h1 { font-size: clamp(2.75rem, 10.2vw, 4.75rem); line-height: 1.06; }
  .section-heading h2, .closing h2, .player-info h2, .story h2, .plan-section h2 {
    font-size: clamp(2rem, 7.5vw, 3.5rem); line-height: 1.1;
  }
  .cause-banner h2 { font-size: clamp(2rem, 7.5vw, 3.5rem); line-height: 1.1; }
  .button { font-size: 1rem; padding: .875rem 1rem; min-block-size: 3rem; }
  .header-ticket { font-size: .875rem; padding: .75rem .875rem; }
  .button-row { inline-size: 100%; }
  .experience-grid { grid-template-columns: minmax(0, 1fr); }
  .experience-card, .experience-card + .experience-card { grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: 1rem; }
  .experience-card h3, .program h3 { font-size: clamp(1.625rem, 6vw, 2rem); line-height: 1.15; }
  .experience-card p, .program p, .player-info p, .services-grid p, .sponsor-card ul, .closing p { font-size: 1rem; }
  .event-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-strip strong { font-size: 1.375rem; }
  .event-strip .small-label, .program .small-label, .small-label, .card-label,
  .team-top, .photo-note, .charity-tag, .sponsor-top .small-label { font-size: .75rem; letter-spacing: .055em; }
  .eyebrow { font-size: .8125rem; letter-spacing: .07em; }
  .team-grid { gap: .625rem; }
  .team h3 { font-size: clamp(1.125rem, 4.3vw, 1.875rem); line-height: 1.2; }
  .jersey { block-size: clamp(8rem, 35vw, 16rem); }
  .versus { font-size: 1.25rem; padding: .5rem; border-width: 3px; }
  .countdown-section { padding: 2rem 6%; }
  .countdown-copy .eyebrow { font-size: .75rem; }
  .countdown-copy h2 { font-size: 2rem; line-height: 1.2; }
  .countdown-digits { gap: .5rem; }
  .count-value { font-size: clamp(2.125rem, 10vw, 4.5rem); }
  .count-label { font-size: .75rem; letter-spacing: .01em; }
  .countdown-date { font-size: .75rem; }
  .count-unit { padding-inline: .25rem; }
  .program article { grid-template-columns: 2.25rem minmax(0, 1fr); gap: 1rem; }
  .program .number { font-size: 2.25rem; }
  .contact-block { padding: 1.5rem; }
  .contact-block h3 { font-size: 2.125rem; }
  .contact-people { grid-template-columns: minmax(0, 1fr); }
  .contact-people .email-link { grid-column: 1; font-size: 1rem; }
  .sponsor-grid { grid-template-columns: minmax(0, 1fr); }
  .sponsor-card { padding: 1.5rem; }
  .sponsor-card h2 { font-size: clamp(1.875rem, 7vw, 2.25rem); }
  .sponsor-card .button { font-size: 1rem; }
  .sponsor-card p, .sponsor-card h2 { min-block-size: 0; }
  .image-label { inset-inline: .75rem; inline-size: fit-content; max-inline-size: calc(100% - 1.5rem); font-size: .75rem; }
  .footer-links > a:not(.button) { font-size: 1rem; }
  footer { padding-block-end: max(1.5rem, env(safe-area-inset-bottom)); }
}
@media (max-width: 480px) {
  /* Give the ticket action its own full-width row instead of squeezing three controls. */
  .site-header { gap: .5rem; padding-block: .375rem .75rem; }
  .header-actions { display: contents; }
  .site-header .brand { order: 1; }
  .menu-toggle { order: 2; margin-inline-start: auto; min-inline-size: 5rem; font-size: .875rem; }
  .header-ticket { order: 3; flex-basis: 100%; font-size: 1rem; }
  .site-header nav { order: 4; }
  .hero-content .button-row > .button, .footer-links > .button { inline-size: 100%; }
  .services-grid { grid-template-columns: minmax(0, 1fr); }
  .services-grid h3 { font-size: 1.75rem; }
  .footer-top { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: .75rem; }
  .footer-top .footer-logo { inline-size: 7rem; block-size: auto; margin-inline-start: -.75rem; }
  .footer-links { grid-column: 1 / -1; margin-block-start: 1rem; }
  .footer-top p { font-size: .875rem; }
  .ticker > div { white-space: normal; flex-wrap: wrap; justify-content: center; padding: 0 1rem; gap: .5rem 1rem; }
  .ticker > div span { font-size: 1rem; }
  .ticker b { display: none; }
  .countdown-date span { display: none; }
}
@media (hover: none) {
  .team:hover .jersey, .team-capitals:hover .jersey, .button:hover, .brand:hover .brand-image { transform: none; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .site-header nav { max-block-size: 55vh; }
  dialog { inline-size: min(90vw, 55rem); }
  dialog img { max-block-size: 55vh; max-block-size: 55dvh; }
}
@supports (padding: max(0px)) {
  .site-header, .topline, .section, .page-hero, .hero-content, .event-strip, .countdown-section, .cause-banner, footer {
    padding-left: max(5%, env(safe-area-inset-left));
    padding-right: max(5%, env(safe-area-inset-right));
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-ready { opacity: 1; transform: none; }
}
