/* Shared public pages: retain the existing typography and palette. */
[hidden] { display: none !important; }
html { scroll-padding-top: 7rem; }
body { background: #171717; }
:focus-visible { outline: 3px solid #FBC02D; outline-offset: 5px; }
.skip-link {
  position: fixed; top: 0.5rem; left: 1rem; z-index: 100;
  padding: 0.75rem 1rem; background: #FBC02D; color: #171717;
  border-radius: 0.5rem; transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }
.header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1.5rem; }
.site-wordmark { flex-shrink: 0; justify-self: start; }
.site-wordmark img { object-fit: contain; }
.primary-links { display: flex; align-items: center; justify-self: center; gap: 1.25rem; margin: 0; }
.primary-links a:hover { color: #fff; }
.events-menu { position: relative; }
.events-menu summary { display: flex; align-items: center; gap: 0.4rem; min-height: 44px; cursor: pointer; list-style: none; }
.events-menu summary::-webkit-details-marker { display: none; }
.events-menu summary:hover { color: #fff; }
.events-menu summary svg { width: 1rem; height: 1rem; flex-shrink: 0; transition: transform 0.2s ease; }
.events-menu[open] summary svg { transform: rotate(180deg); }
.event-links { position: absolute; top: calc(100% + 0.5rem); left: 0; width: 18rem; list-style: none; margin: 0; padding: 0.5rem; background: #081827; border: 1px solid rgba(26,109,184,0.3); border-radius: 1.15rem; box-shadow: 0 12px 30px rgba(0,0,0,0.3); }
.events-menu .event-links a { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.85rem; color: #fff; border-radius: 0.65rem; }
.event-links a:hover, .event-links a[aria-current="page"] { background: rgba(26,109,184,0.2); }
.event-status { color: #FBC02D; background: rgba(251,192,45,0.1); padding: 0.25rem 0.5rem; border-radius: 999px; font-size: 0.65rem; white-space: nowrap; }
.header-application { flex-shrink: 0; justify-self: end; text-align: center; }
.menu-toggle {
  min-height: 44px; padding: 0.5rem 0.75rem; color: #fff;
  border: 1px solid rgba(255,255,255,0.25); border-radius: 0.5rem;
}
#word-hero { min-height: min(850px, 100svh); padding-top: 9rem; }
#hero-heading { font-size: clamp(2.8rem, 5.2vw, 5rem); line-height: 1; letter-spacing: -0.055em; }
.hero-gradient-heading { color: #FBC02D; filter: drop-shadow(0 0 10px rgba(71,175,255,0.2)) drop-shadow(0 0 16px rgba(251,192,45,0.14)); }
@supports (background-clip: text) {
  .hero-gradient-heading { background: linear-gradient(100deg, #47AFFF 0%, #79D0FF 35%, #EEF5FF 48%, #FFE08A 62%, #FBC02D 100%); background-clip: text; color: transparent; }
  @media (prefers-reduced-motion: no-preference) {
    .hero-gradient-heading { background-size: 160% 100%; animation: hero-gradient-flow 20s ease-in-out infinite alternate; }
  }
}
@keyframes hero-gradient-flow {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}
.conversion-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 2.5rem; }
.hero-actions { align-items: stretch; flex-wrap: wrap; }
.hero-actions a { display: flex; align-items: center; justify-content: center; }
.recap-link { border: 1px solid rgba(255,255,255,0.25); gap: 0.75rem; }
.recap-link:hover { border-color: #FBC02D; background: rgba(251,192,45,0.06); }
.hero-stat-grid { gap: 1rem; }
.event-results-label { color: #FBC02D; font-family: 'Poppins', sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.hero-stat { min-width: 0; }
.hero-stat + .hero-stat { padding-left: 1rem; }
.hero-stat .text-3xl { font-size: clamp(1.35rem, 2.15vw, 1.875rem); white-space: nowrap; }
.hero-photo { min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,0.14); border-radius: 1.15rem; background: rgba(8,24,39,0.78); box-shadow: 0 12px 30px rgba(0,0,0,0.2); }
.hero-photo img { display: block; width: 100%; height: auto; }
.hero-photo figcaption { padding: 1.1rem; color: rgba(255,255,255,0.75); font-size: 0.8rem; line-height: 1.7; }
.hero-photo .tag { display: block; width: fit-content; margin-bottom: 0.6rem; }
.section-heading { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }
.archive-intro { padding: 9rem 0 2rem; }
.archive-back { display: inline-block; padding-block: 0.5rem; font-size: 0.85rem; }
.archive-back:hover { color: #FBC02D; }
#archive-heading { font-size: clamp(2.25rem, 7vw, 5rem); line-height: 1.1; letter-spacing: -0.035em; }
.recap-section { background: linear-gradient(180deg, #0b2237, #102d47); border-top: 1px solid rgba(255,255,255,0.1); }
.recap-intro { max-width: 50rem; }
.event-gallery { max-width: 62rem; margin-inline: auto; }
.gallery-stage {
  aspect-ratio: 3 / 2; overflow: hidden;
  background: rgba(8,24,39,0.78); border: 1px solid rgba(255,255,255,0.14); border-radius: 1.15rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  touch-action: pan-y pinch-zoom;
}
.gallery-slide { height: 100%; margin: 0; }
.gallery-slide img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.gallery-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.25rem; }
.gallery-button {
  width: 48px; height: 48px; flex-shrink: 0; font-size: 1.5rem;
  background: rgba(255,255,255,0.05); color: #fff; border: 1px solid rgba(255,255,255,0.25); border-radius: 0.75rem;
}
.gallery-button:hover { background: #1A6DB8; }
.gallery-indicators { display: flex; flex-wrap: wrap; justify-content: center; max-width: 30rem; }
.gallery-indicator { width: 32px; height: 44px; display: grid; place-items: center; border-radius: 0.5rem; }
.gallery-indicator::before { content: ''; width: 8px; height: 8px; background: rgba(255,255,255,0.4); border-radius: 50%; }
.gallery-indicator[aria-current="true"]::before { background: #FBC02D; box-shadow: 0 0 0 3px rgba(251,192,45,0.2); }
.gallery-indicator:hover::before { background: #fff; }
.gallery-status { margin-top: 0.5rem; text-align: center; color: rgba(255,255,255,0.75); font-size: 0.8rem; }
.award-place { font-family: 'Poppins', sans-serif; color: #FBC02D; font-weight: 700; font-size: 1rem; }
.award-name { color: #fff; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: clamp(2rem, 3vw, 2.7rem); line-height: 1.2; margin-top: 1rem; }
.award-members { margin-top: 1.25rem; color: #ecf2f8; font-size: 0.95rem; line-height: 1.8; }
.award-card { padding: 1.75rem; }
.award-prize { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.14); }
.award-prize-amount { color: #FBC02D; font-family: 'Poppins', sans-serif; font-size: clamp(2rem, 3vw, 2.5rem); font-weight: 800; line-height: 1.2; }
.award-prize-extra { margin-top: 0.4rem; color: #ecf2f8; font-size: 0.95rem; font-weight: 600; line-height: 1.5; }
.award-card .award-members { margin-top: auto; padding-top: 1.25rem; }
.supporters-section { background: #171717; }
.supporters-panel {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: hidden;
  border: 1px solid rgba(26,109,184,0.16); border-radius: 1.15rem;
  background: rgba(8,24,39,0.78); backdrop-filter: blur(16px) saturate(120%);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.12);
  list-style: none; padding: 0; margin: 0;
}
.supporter-cell { min-width: 0; box-shadow: 1px 1px 0 rgba(255,255,255,0.1); }
.supporter-cell > * { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.25rem; height: 100%; padding: 2rem 1.25rem; }
.supporter-cell a:hover { background: rgba(26,109,184,0.14); }
.supporter-cell a:focus-visible { outline-offset: -5px; }
.supporter-cell img { display: block; width: 100%; max-width: 140px; height: 72px; object-fit: contain; }
.supporter-cell span { color: rgba(255,255,255,0.75); font-size: 0.7rem; line-height: 1.5; text-align: center; }
.participant-signin { display: inline-block; padding: 0.5rem 0.75rem; color: rgba(255,255,255,0.7); }
.participant-signin:hover { color: #fff; }
@media (max-width: 1150px) {
  .header-inner { display: flex; flex-wrap: wrap; gap: 0.75rem; }
  .header-application { margin-left: auto; }
  .primary-links { order: 4; width: 100%; justify-content: center; margin: 0; padding: 0.5rem 0; }
  #word-hero { padding-top: 11rem; }
  .archive-intro { padding-top: 11rem; }
  html { scroll-padding-top: 9rem; }
  .conversion-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: 2rem; }
  .hero-actions { flex-direction: column; }
  .supporters-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .award-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .conversion-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  #word-hero { min-height: auto; }
  #hero-heading { font-size: clamp(3rem, 8vw, 4.5rem); }
  .hero-photo { width: 100%; max-width: 42rem; }
  .hero-actions { flex-direction: row; }
  .hero-stat .text-3xl { font-size: clamp(1.4rem, 3.5vw, 1.875rem); }
  .award-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto; padding: 0.8rem 1rem; gap: 0.7rem; }
  .site-wordmark { gap: 0.4rem; }
  .site-wordmark span { font-size: 0.95rem; }
  .site-wordmark img { width: 26px; height: 26px; }
  .header-application { order: 3; grid-column: 1 / -1; width: 100%; margin: 0; font-size: 0.8rem; padding: 0.55rem 0.65rem; }
  .menu-toggle { order: 2; margin-left: auto; }
  .primary-links { grid-column: 1 / -1; flex-wrap: wrap; gap: 0.5rem 1rem; justify-content: flex-start; }
  .primary-links a { display: block; padding: 0.5rem 0; }
  .events-menu .event-links { position: static; width: 100%; margin-top: 0.4rem; box-shadow: none; }
  .primary-links > li:has(.events-menu[open]) { width: 100%; }
  #word-hero { padding-top: 10rem; }
  .archive-intro { padding-top: 10rem; }
  html { scroll-padding-top: 10rem; }
  #hero-heading { font-size: clamp(2.75rem, 10vw, 4rem); }
  .hero-actions { flex-direction: column; }
  .hero-stat-grid { gap: 0.6rem; }
  .hero-stat + .hero-stat { padding-left: 0.6rem; }
  .hero-stat .text-3xl { font-size: clamp(1.15rem, 4.6vw, 1.6rem); }
  .gallery-stage { aspect-ratio: 1 / 1; }
  .gallery-controls { gap: 0.35rem; align-items: center; }
  .gallery-indicators { max-width: 14rem; }
  .gallery-indicator { width: 28px; }
  .gallery-button { width: 44px; height: 44px; }
  .supporters-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .supporter-cell > * { padding: 1.5rem 1rem; }
  .supporter-cell img { max-width: 120px; height: 65px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
