/*
 * Gaelic 4 Good — progressive interaction layer.
 * Everything remains visible and usable when JavaScript is unavailable.
 */

:root {
  --g4g-motion-fast: 180ms;
  --g4g-motion-base: 520ms;
  --g4g-motion-slow: 820ms;
  --g4g-ease-out: cubic-bezier(.2,.72,.22,1);
  --g4g-ease-spring: cubic-bezier(.2,.82,.22,1.08);
  --g4g-focus: #f2c75c;
}

.motion-speed-fast { --g4g-motion-base: 360ms; --g4g-motion-slow: 600ms; }
.motion-speed-slow { --g4g-motion-base: 700ms; --g4g-motion-slow: 1050ms; }
.g4g-smooth-scroll { scroll-behavior: smooth; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--g4g-focus);
  outline-offset: 4px;
}

.g4g-btn,
.awards27-button,
.involved-card,
.involved-hub-card,
.sponsor-feature,
.home-team-card,
a.contact-point,
.scrapbook-photo-link,
.team-panel-link,
summary {
  will-change: transform;
}

.g4g-btn.is-pressed,
.awards27-button.is-pressed,
.involved-card.is-pressed,
.involved-hub-card.is-pressed,
.team-switcher button.is-pressed,
a.contact-point.is-pressed,
.scrapbook-photo-link.is-pressed,
.team-panel-link.is-pressed,
summary.is-pressed {
  transform: translateY(1px) scale(.985);
}

/* Page and hero entrances */
.g4g-ready {
  transition: opacity var(--g4g-motion-fast) ease;
}

body.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.motion-ready .hero-entrance .eyebrow,
.motion-ready .hero-entrance .awards27-kicker,
.motion-ready .hero-entrance h1,
.motion-ready .hero-entrance > .g4g-wrap > p,
.motion-ready .hero-entrance .hero-actions,
.motion-ready .hero-entrance .hero-proof,
.motion-ready .hero-entrance .page-hero-inner > p,
.motion-ready .hero-entrance .page-hero-inner > .g4g-btn,
.motion-ready .hero-entrance .events-hero-grid p,
.motion-ready .hero-entrance .scrapbook-hero-inner > p,
.motion-ready .hero-entrance .awards27-hero-copy > p,
.motion-ready .hero-entrance .awards27-button,
.motion-ready .hero-entrance .gala-page-inner > div > p,
.motion-ready .hero-entrance .gala-page-inner > div > .g4g-btn {
  opacity: 0;
  transform: translate3d(0,28px,0);
  transition:
    opacity var(--g4g-motion-base) var(--g4g-ease-out),
    transform var(--g4g-motion-slow) var(--g4g-ease-out);
  transition-delay: calc(var(--hero-order, 0) * 90ms);
}

.motion-ready .hero-entrance.hero-visible .eyebrow,
.motion-ready .hero-entrance.hero-visible .awards27-kicker,
.motion-ready .hero-entrance.hero-visible h1,
.motion-ready .hero-entrance.hero-visible > .g4g-wrap > p,
.motion-ready .hero-entrance.hero-visible .hero-actions,
.motion-ready .hero-entrance.hero-visible .hero-proof,
.motion-ready .hero-entrance.hero-visible .page-hero-inner > p,
.motion-ready .hero-entrance.hero-visible .page-hero-inner > .g4g-btn,
.motion-ready .hero-entrance.hero-visible .events-hero-grid p,
.motion-ready .hero-entrance.hero-visible .scrapbook-hero-inner > p,
.motion-ready .hero-entrance.hero-visible .awards27-hero-copy > p,
.motion-ready .hero-entrance.hero-visible .awards27-button,
.motion-ready .hero-entrance.hero-visible .gala-page-inner > div > p,
.motion-ready .hero-entrance.hero-visible .gala-page-inner > div > .g4g-btn {
  opacity: 1;
  transform: translate3d(0,0,0);
}

.hero-scroll-cue {
  position: absolute;
  z-index: 4;
  right: max(24px, calc((100vw - 1220px) / 2));
  bottom: 54px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  text-decoration: none;
  background: rgba(13,48,38,.32);
  backdrop-filter: blur(8px);
}

.hero-scroll-cue::before {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px,-2px);
}

.motion-ready.motion-full .hero-scroll-cue::before {
  animation: g4g-cue 1.8s ease-in-out infinite;
}

@keyframes g4g-cue {
  0%, 100% { transform: rotate(45deg) translate(-3px,-3px); opacity: .55; }
  50% { transform: rotate(45deg) translate(2px,2px); opacity: 1; }
}

/* Progressive scroll reveals. Content is hidden only after JS confirms motion is safe. */
.motion-ready .g4g-reveal {
  opacity: 0;
  transform: translate3d(0,34px,0);
  transition:
    opacity var(--g4g-motion-base) var(--g4g-ease-out),
    transform var(--g4g-motion-slow) var(--g4g-ease-out);
  transition-delay: calc(var(--reveal-order, 0) * 55ms);
}

.motion-ready.motion-minimal .g4g-reveal {
  transform: translate3d(0,12px,0);
}

.motion-ready.motion-full .g4g-reveal:nth-child(2n) {
  transform: translate3d(22px,30px,0);
}

.motion-ready .g4g-reveal.is-visible,
.motion-ready.motion-full .g4g-reveal.is-visible:nth-child(2n) {
  opacity: 1;
  transform: translate3d(0,0,0);
}

.motion-ready .g4g-reveal-image {
  clip-path: inset(0 0 12% 0 round 24px);
}

.motion-ready .g4g-reveal-image.is-visible {
  clip-path: inset(0 0 0 0 round 24px);
}

/* Countdown */
.g4g-countdown {
  position: relative;
  z-index: 7;
  display: grid;
  grid-template-columns: minmax(170px,.6fr) 1.4fr;
  align-items: center;
  gap: 34px;
  margin-top: 28px;
  padding: 25px 30px;
  color: var(--g4g-white);
  background: linear-gradient(120deg,var(--g4g-green-deep),#1b5746);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(18,58,48,.15);
}

.countdown-title,
.countdown-complete {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 850;
  line-height: 1.25;
}

.countdown-title::before {
  content: "";
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 10px;
  background: var(--g4g-lime);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(242,199,92,.14);
}

.countdown-units {
  display: grid;
  grid-template-columns: repeat(4,minmax(74px,1fr));
  gap: 8px;
}

.countdown-units > span {
  min-height: 76px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 8px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
}

.countdown-units strong {
  color: var(--g4g-lime);
  font-family: var(--g4g-display);
  font-size: clamp(1.55rem,3vw,2.4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-units small {
  margin-top: 5px;
  color: rgba(255,255,255,.64);
  font-size: .61rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.g4g-countdown.is-complete {
  grid-template-columns: 1fr;
  background: var(--g4g-green);
  color: var(--g4g-ink);
}

/* Story gallery lightbox */
.story-lightbox-trigger {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
  z-index: 1;
}
.story-shot::after,
.story-shot figcaption { pointer-events: none; }

.story-lightbox-trigger img {
  width: 100%;
  height: 100%;
}

.story-lightbox-trigger::before {
  content: "+";
  position: absolute;
  z-index: 4;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--g4g-green-deep);
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  font-size: 1.35rem;
  font-weight: 500;
  opacity: 0;
  transform: scale(.82);
  transition: opacity var(--g4g-motion-fast) ease, transform var(--g4g-motion-fast) ease;
}

.story-shot:hover .story-lightbox-trigger::before,
.story-lightbox-trigger:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

body.lightbox-open { overflow: hidden; }

.g4g-lightbox {
  position: fixed;
  z-index: 100000;
  inset: 0;
  padding: max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));
}

.g4g-lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(5,14,11,.93); backdrop-filter: blur(14px); }

.lightbox-dialog,
.lightbox-panel {
  position: relative;
  width: min(1100px,100%);
  height: 100%;
  display: grid;
  grid-template-columns: 54px minmax(0,1fr) 54px;
  align-items: center;
  gap: 14px;
  margin: auto;
}

.lightbox-dialog figure,
.lightbox-panel figure { min-width: 0; max-height: 100%; margin: 0; }
.lightbox-dialog figure img,
.lightbox-panel figure img { width: 100%; max-height: calc(100vh - 115px); object-fit: contain; }
.lightbox-dialog figcaption,
.lightbox-panel figcaption { margin-top: 12px; color: rgba(255,255,255,.8); text-align: center; }

.lightbox-close,
.lightbox-nav {
  min-width: 50px;
  min-height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.26);
  color: #fff;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  transition: background var(--g4g-motion-fast) ease, transform var(--g4g-motion-fast) ease;
}

.lightbox-close:hover,
.lightbox-nav:hover { background: var(--g4g-green); transform: scale(1.04); }
.lightbox-close { position: absolute; z-index: 2; top: 0; right: 0; }

/* Sponsor carousel */
.sponsor-carousel { position: relative; }
.sponsor-carousel-controls { display: flex; justify-content: flex-end; gap: 8px; margin: -34px 0 18px; }
.sponsor-carousel-controls button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--g4g-green-deep);
  background: var(--g4g-white);
  border: 1px solid var(--g4g-line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.12rem;
  transition: color var(--g4g-motion-fast) ease, background var(--g4g-motion-fast) ease, transform var(--g4g-motion-fast) ease;
}
.sponsor-carousel-controls button:hover { color: #fff; background: var(--g4g-green); transform: translateY(-2px); }

.sponsor-carousel .sponsor-feature-grid {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 8px 2px 20px;
}
.sponsor-carousel .sponsor-feature-grid::-webkit-scrollbar { display: none; }
.sponsor-carousel .sponsor-feature { flex: 0 0 calc((100% - 36px) / 3); scroll-snap-align: start; }

/* Teams switcher */
.team-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 30px;
}

.team-switcher button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px 9px 10px;
  color: var(--g4g-ink);
  background: var(--g4g-white);
  border: 1px solid var(--g4g-line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 850;
  transition: color var(--g4g-motion-fast) ease, background var(--g4g-motion-fast) ease, border-color var(--g4g-motion-fast) ease, transform var(--g4g-motion-fast) ease;
}

.team-switcher button img { width: 40px; height: 40px; object-fit: contain; }
.team-switcher button[aria-selected="true"] { color: #fff; background: var(--g4g-green-deep); border-color: var(--g4g-green-deep); }
.team-switcher button:hover { transform: translateY(-2px); border-color: var(--g4g-green); }
.team-switcher-enhanced [data-team-panel][hidden] { display: none; }
.team-switcher-enhanced [data-team-panel]:not([hidden]) { animation: g4g-panel-in var(--g4g-motion-base) var(--g4g-ease-out) both; }

@keyframes g4g-panel-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Search and filters */
.charity-filter-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) minmax(160px, .75fr) minmax(200px, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.charity-filter-grid label { display: grid; gap: 7px; min-width: 0; font-size: .82rem; font-weight: 850; }
.charity-filter-grid input,
.charity-filter-grid select { width: 100%; min-width: 0; min-height: 50px; }
.charity-filter-grid button {
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid var(--g4g-line);
  color: var(--g4g-green-deep);
  background: var(--g4g-white);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}
.charity-filter-grid button:disabled { opacity: .45; cursor: default; }
.charity-results { min-height: 24px; margin: 10px 0 0; color: var(--g4g-muted); font-size: .88rem; }
.charity-results strong { color: var(--g4g-green-dark); }
.charity-card[hidden],
.player-directory-card[hidden] { display: none; }

.player-directory-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
}
.player-directory-card {
  min-width: 0;
  overflow: hidden;
  background: var(--g4g-surface, var(--g4g-white));
  border: 1px solid var(--g4g-border, var(--g4g-line));
  border-top: 5px solid var(--g4g-green);
  border-radius: var(--g4g-radius, 18px);
  transition: transform var(--g4g-motion-fast) ease, border-color var(--g4g-motion-fast) ease;
}
.player-directory-card.player-team-gold { border-top-color: var(--g4g-gold); }
.player-directory-card.player-team-purple { border-top-color: var(--g4g-purple); }
.player-directory-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 28%; }
.player-directory-body { display: grid; gap: 14px; padding: 24px; }
.player-directory-body h2 { margin: 0; font-size: clamp(1.45rem,2vw,2rem); overflow-wrap: anywhere; }
.player-directory-body p { margin: 0; color: var(--g4g-muted); }
.player-team-label { display: flex; align-items: center; gap: 8px; color: var(--g4g-muted); font-size: .72rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.player-team-label span { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: var(--g4g-green); }
.player-team-gold .player-team-label span { background: var(--g4g-gold); }
.player-team-purple .player-team-label span { background: var(--g4g-purple); }
.player-county { font-size: .86rem; font-weight: 800; }
.player-charity { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 12px; padding: 15px; background: var(--g4g-green-soft); border-radius: 13px; }
.player-charity img { width: 52px; height: 52px; object-fit: contain; padding: 4px; background: var(--g4g-white); border-radius: 10px; }
.player-charity span { display: block; margin-bottom: 3px; color: var(--g4g-muted); font-size: .66rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.player-charity h3 { margin: 0; font-size: 1rem; line-height: 1.2; overflow-wrap: anywhere; }
.player-directory-links { display: flex; flex-wrap: wrap; gap: 9px 16px; padding-top: 3px; }
.player-directory-links a { color: var(--g4g-green-dark); font-size: .8rem; font-weight: 900; text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (hover:hover) {
  .player-directory-card:hover { transform: translateY(-4px); border-color: var(--g4g-green); }
}

/* Optional sponsor photography keeps the logo legible as an independent mark. */
.sponsor-story.sponsor-featured { position: relative; }
.sponsor-story.sponsor-featured::before {
  content: "";
  position: absolute;
  inset: -22px;
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--g4g-green) 34%, transparent);
  border-radius: calc(var(--g4g-radius) + 12px);
}
.sponsor-story-logo.has-photo { position: relative; min-height: 440px; padding: 0; overflow: hidden; }
.sponsor-story-logo.has-photo > .sponsor-story-photo { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.sponsor-logo-badge {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: min(220px, calc(100% - 44px));
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 14px 35px rgba(18,58,48,.18);
}
.sponsor-story-logo .sponsor-logo-badge img { width: 100%; max-height: 70px; object-fit: contain; }

/* Native details become clean interactive timelines/cards without sacrificing no-JS use. */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 920px;
  margin-inline: auto;
}

.step,
.interactive-info-card {
  overflow: clip;
  background: var(--g4g-white);
  border: 1px solid var(--g4g-line);
  border-radius: 20px;
  box-shadow: none;
}
.step summary > b { margin-left: auto; color: var(--g4g-green-dark); font-size: .78rem; white-space: nowrap; }

.step summary,
.interactive-info-card summary {
  min-height: 86px;
  display: grid;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.step summary { grid-template-columns: 62px minmax(0, 1fr) auto 34px; }
.interactive-info-card summary { grid-template-columns: 62px minmax(0, 1fr) 34px; }

.step summary::-webkit-details-marker,
.interactive-info-card summary::-webkit-details-marker { display: none; }

.step summary > span,
.interactive-info-card summary > span {
  color: var(--g4g-green);
  font-family: var(--g4g-display);
  font-size: 1.55rem;
  line-height: 1;
}

.step summary h3,
.interactive-info-card summary h3 { margin: 0; font-size: clamp(1.2rem,2.2vw,1.65rem); line-height: 1.1; }
.step summary i,
.interactive-info-card summary i { position: relative; width: 30px; height: 30px; border: 1px solid var(--g4g-line); border-radius: 50%; }
.step summary i::before,
.step summary i::after,
.interactive-info-card summary i::before,
.interactive-info-card summary i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 2px; background: currentColor; transform: translate(-50%,-50%); transition: transform var(--g4g-motion-fast) ease; }
.step summary i::after,
.interactive-info-card summary i::after { transform: translate(-50%,-50%) rotate(90deg); }
.step[open] summary i::after,
.interactive-info-card[open] summary i::after { transform: translate(-50%,-50%) rotate(0); }
.step[open],
.interactive-info-card[open] { border-color: rgba(56,165,123,.42); box-shadow: 0 18px 45px rgba(18,58,48,.08); }
.step-copy,
.interactive-info-card > div { padding: 0 76px 24px 104px; }
.step-copy p,
.interactive-info-card > div p { margin: 0; color: var(--g4g-muted); }

.event-type-grid,
.gala-category-grid { align-items: start; }
.event-type-grid .interactive-info-card,
.gala-category-grid .interactive-info-card { min-width: 0; }
.event-type-grid .interactive-info-card summary,
.gala-category-grid .interactive-info-card summary { grid-template-columns: 44px 1fr 30px; padding: 20px; }
.event-type-grid .interactive-info-card > div,
.gala-category-grid .interactive-info-card > div { padding: 0 20px 24px 82px; }

/* Forms */
.g4g-form-progress {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  margin-bottom: 8px;
  background: rgba(56,165,123,.13);
  border-radius: 99px;
}
.g4g-form-progress > span { width: 0; height: 100%; display: block; background: linear-gradient(90deg,var(--g4g-green),var(--g4g-gold)); transition: width 280ms var(--g4g-ease-out); }
.g4g-form input,
.g4g-form textarea,
.g4g-form select { transition: border-color var(--g4g-motion-fast) ease, box-shadow var(--g4g-motion-fast) ease, background var(--g4g-motion-fast) ease; }
.g4g-form input:focus,
.g4g-form textarea:focus,
.g4g-form select:focus { border-color: var(--g4g-green); box-shadow: 0 0 0 4px rgba(56,165,123,.13); }
.g4g-form .has-error { border-color: #b83651; background: #fff8fa; }
.g4g-form.is-submitting { opacity: .78; }
.g4g-form [type="submit"] { position: relative; min-width: 150px; }
.g4g-form [type="submit"]:disabled { cursor: wait; }
.g4g-form.is-submitting [type="submit"]::after {
  content: "";
  width: 15px;
  height: 15px;
  margin-left: 9px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: g4g-spin .75s linear infinite;
}
@keyframes g4g-spin { to { transform: rotate(360deg); } }

.contact-details { padding: 0; margin: 30px 0 0; list-style: none; }
.contact-details li { padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.contact-details a { color: inherit; font-weight: 800; }
.privacy-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(48px,8vw,110px); align-items: start; }
.privacy-layout aside { position: sticky; top: 130px; padding: 28px; background: var(--g4g-green-soft); border-radius: 18px; }
.privacy-layout aside p { margin-top: 0; color: var(--g4g-muted); }
.privacy-content { display: grid; gap: 0; }
.privacy-content article { padding: 0 0 30px; margin-bottom: 30px; border-bottom: 1px solid var(--g4g-line); }
.privacy-content h2 { margin: 0 0 12px; font-size: clamp(1.5rem,3vw,2.3rem); letter-spacing: -.035em; }
.privacy-content p { margin: 0; color: var(--g4g-muted); }

/* Hover details for capable pointer devices only. */
@media (hover:hover) and (pointer:fine) {
  .sponsor-feature:hover { transform: translateY(-5px); box-shadow: 0 18px 45px rgba(18,58,48,.1); }
  .home-team-card:hover .team-crest { transform: translateY(-6px) rotate(-1deg); }
  .home-team-card .team-crest { transition: transform var(--g4g-motion-base) var(--g4g-ease-out); }
  .impact-card:hover { transform: translateY(-5px); box-shadow: 0 22px 55px rgba(18,58,48,.12); }
  .impact-card { transition: transform var(--g4g-motion-fast) ease, box-shadow var(--g4g-motion-fast) ease; }
}

/* Responsive motion refinements */
@keyframes g4g-mobile-menu-in {
  from { opacity: 0; transform: translate3d(0,-14px,0) scale(.99); }
  to { opacity: 1; transform: translate3d(0,0,0) scale(1); }
}

@media (max-width: 1050px) {
  .motion-ready .main-nav.is-open {
    animation: g4g-mobile-menu-in var(--g4g-motion-base) var(--g4g-ease-out) both;
    transform-origin: top center;
  }
}

.g4g-touch .story-lightbox-trigger::before,
.g4g-touch .scrapbook-lightbox-trigger::before {
  opacity: 1;
  transform: scale(.92);
}

/* Tablet */
@media (max-width: 1050px) {
  .sponsor-carousel .sponsor-feature { flex-basis: calc((100% - 18px) / 2); }
  .player-directory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-scroll-cue { display: none; }
  .g4g-countdown { margin-top: 20px; }
}

/* Phones and small tablets */
@media (max-width: 760px) {
  .g4g-countdown { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .countdown-units { grid-template-columns: repeat(4,1fr); }
  .countdown-units > span { min-height: 68px; padding: 6px 3px; }
  .countdown-units small { font-size: .5rem; letter-spacing: .05em; }
  .sponsor-carousel-controls { margin: 0 0 12px; }
  .sponsor-carousel .sponsor-feature { flex-basis: 86%; }
  .story-lightbox-trigger::before { opacity: 1; transform: scale(.9); }
  .lightbox-dialog,
  .lightbox-panel { grid-template-columns: 46px minmax(0,1fr) 46px; gap: 5px; }
  .lightbox-close,
  .lightbox-nav { min-width: 44px; min-height: 44px; }
  .step summary { grid-template-columns: 43px minmax(0,1fr) auto 30px; gap: 10px; padding: 16px; }
  .interactive-info-card summary { grid-template-columns: 43px minmax(0,1fr) 30px; gap: 10px; padding: 16px; }
  .step-copy,
  .interactive-info-card > div { padding: 0 16px 20px 69px; }
  .event-type-grid .interactive-info-card > div,
  .gala-category-grid .interactive-info-card > div { padding-left: 20px; }
  .team-switcher { display: grid; grid-template-columns: 1fr 1fr; }
  .team-switcher button { width: 100%; justify-content: flex-start; padding-right: 12px; font-size: .82rem; }
  .motion-ready .g4g-reveal,
  .motion-ready.motion-full .g4g-reveal:nth-child(2n) { transform: translate3d(0,18px,0); }
  .motion-ready .g4g-reveal.is-visible,
  .motion-ready.motion-full .g4g-reveal.is-visible:nth-child(2n) { transform: translate3d(0,0,0); }
  .privacy-layout { grid-template-columns: 1fr; gap: 42px; }
  .privacy-layout aside { position: static; }
}

@media (max-width: 520px) {
  .g4g-countdown { width: min(100% - 28px,1220px); border-radius: 18px; }
  .countdown-title { font-size: .92rem; }
  .countdown-units { gap: 4px; }
  .countdown-units strong { font-size: 1.45rem; }
  .sponsor-carousel .sponsor-feature { flex-basis: 92%; }
  .charity-filter-grid { grid-template-columns: 1fr; }
  .charity-filter-grid button { width: 100%; }
  .player-directory-grid { grid-template-columns: 1fr; }
  .sponsor-story-logo.has-photo { min-height: 320px; }
  .lightbox-dialog,
  .lightbox-panel { grid-template-columns: 1fr; align-content: center; }
  .lightbox-nav { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); }
  .lightbox-nav:hover { transform: translateY(-50%) scale(1.04); }
  .lightbox-previous { left: 0; }
  .lightbox-next { right: 0; }
  .lightbox-dialog figure,
  .lightbox-panel figure { padding-inline: 34px; }
  .team-switcher { grid-template-columns: 1fr; }
}

/* Motion and accessibility override: nothing critical is hidden or moving. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .g4g-reveal,
  .hero-entrance .eyebrow,
  .hero-entrance h1,
  .hero-entrance p,
  .hero-entrance .hero-actions,
  .hero-entrance .hero-proof { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

@media print {
  .announcement,
  .site-header,
  .hero-scroll-cue,
  .sponsor-carousel-controls,
  .g4g-lightbox { display: none !important; }
  .g4g-reveal { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  body { color: #000; background: #fff; }
}
