/* HUC Sports & Health Gala — mobile-first styles
   Light, warm page surfaces. Uganda flag colors (black, yellow, red)
   are used as highlights on buttons, borders, and headings, not large fills.
   Official HUC logo used in the header, footer, and icons. */

:root {
  --black: #0b0b0b;
  --ink: #161311;
  --red: #c8102e;
  --red-flag: #d90000;
  --red-deep: #8e0b1f;
  --yellow: #fcdc04;
  --gold: #e8c547;
  --gold-text: #6b4e00;
  --gold-deep: #b8891a;
  --cream: #faf6ee;
  --paper: #fffdf8;
  --header-bg: #fffdfb;
  --footer-bg: #efe8d8;
  --muted: #5c564c;
  --green: #2c6b3a;
  --green-soft: #e8f3ea;
  --line: rgba(22, 19, 17, 0.12);
  --line-gold: rgba(232, 197, 71, 0.4);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --header-h: 4.35rem;
  --font-display: "Cinzel", "Palatino Linotype", Palatino, serif;
  --font-serif: "Playfair Display", Georgia, "Iowan Old Style", serif;
  --font-script: "Great Vibes", "Segoe Script", cursive;
  --font-sans: "DM Sans", "Segoe UI", Tahoma, sans-serif;
  --max: 70rem;
  --focus: 0 0 0 3px var(--black), 0 0 0 6px var(--gold);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html:focus-within { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red-deep); text-underline-offset: 0.15em; }
a:hover { color: var(--red); }

:focus-visible { outline: none; box-shadow: var(--focus); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  background: var(--yellow);
  color: var(--black);
  padding: 0.5rem 0.9rem;
  z-index: 1000;
  font-weight: 700;
}
.skip-link:focus { top: 0.5rem; }

.draft-banner {
  background: var(--yellow);
  color: var(--black);
  text-align: center;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.draft-banner[hidden] { display: none; }

/* Header */
#site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header {
  background: var(--header-bg);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(22, 19, 17, 0.05);
}

.flag-stripe {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 8px;
}
.flag-stripe span:nth-child(1) { background: #000; }
.flag-stripe span:nth-child(2) { background: var(--yellow); }
.flag-stripe span:nth-child(3) { background: var(--red-flag); }

.topbar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.55rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.brand img,
.brand-mark {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 3px;
  box-sizing: border-box;
  border: 1px solid var(--line);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 1.25rem;
  color: var(--gold-text);
}
.brand-text span {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.nav-toggle {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 8px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
}

.nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(8px + var(--header-h));
  background: var(--header-bg);
  padding: 0.75rem 1rem 1.25rem;
  border-bottom: 3px solid var(--yellow);
  box-shadow: 0 12px 24px rgba(22, 19, 17, 0.08);
  gap: 0.15rem;
}
.nav-links.open { display: flex; }

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  font-weight: 500;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: #fff4c8;
  color: var(--gold-text);
}
.nav-links a.nav-cta {
  background: var(--red);
  color: #fff;
  text-align: center;
  font-weight: 700;
  margin-top: 0.35rem;
}
.nav-links a.nav-cta:hover { background: var(--red-deep); color: #fff; }

.nav-group { display: flex; flex-direction: column; }
.nav-group > button {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
}
.nav-group > button::after { content: " ▾"; color: var(--gold-text); }
.nav-group.current > button { color: var(--gold-text); }

.nav-sub {
  display: none;
  flex-direction: column;
  padding-left: 0.6rem;
}
.nav-group.open .nav-sub,
.nav-group:focus-within .nav-sub { display: flex; }

/* Hero */
.hero {
  background:
    radial-gradient(1200px 400px at 80% 0%, rgba(217, 0, 0, 0.06), transparent 60%),
    radial-gradient(900px 300px at 0% 100%, rgba(252, 220, 4, 0.22), transparent 55%),
    var(--paper);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.4rem 1.2rem 3rem;
  display: grid;
  gap: 2rem;
}
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-text);
  margin: 0 0 0.6rem;
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(2.1rem, 7vw, 4.1rem);
  line-height: 1.05;
  margin: 0 0 0.15rem;
  color: var(--ink);
}
.hero h1 .script {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 0.72em;
  color: var(--gold-text);
  display: inline-block;
  margin-left: 0.15em;
}
.hero .health {
  color: var(--green);
}
.hero-lead {
  font-size: 1.12rem;
  max-width: 38rem;
  color: var(--muted);
  margin: 1rem 0;
}
.date-badge {
  display: inline-flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--yellow);
  box-shadow: 0 4px 16px rgba(22, 19, 17, 0.05);
  padding: 0.7rem 1rem;
  border-radius: 4px 12px 12px 4px;
  margin: 0.4rem 0 1.1rem;
}
.date-badge strong {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--gold-text);
  font-weight: 700;
}
.date-badge span { color: var(--muted); font-size: 0.95rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.2rem 0 0.4rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 1.2rem;
}
.hero-logo {
  width: 200px;
  max-width: 70%;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  padding: 0.7rem;
  box-sizing: border-box;
  box-shadow: 0 12px 28px rgba(22, 19, 17, 0.08);
  border: 1px solid var(--line);
}

.hero-band {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-top: 8px solid var(--yellow);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-family: inherit;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}
.button.primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.button.primary:hover { background: var(--red-deep); color: #fff; }
.button.gold {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}
.button.gold:hover { background: #ffe454; color: var(--black); }
.button.secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--gold-deep);
}
.button.secondary:hover { background: #fff8de; color: var(--ink); }
.button.ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.button.ghost:hover { border-color: var(--ink); color: var(--ink); }
.button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.button-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.4rem 1.2rem;
}
.section-intro { max-width: 42rem; }
.section-intro.wide { max-width: none; }
.section-intro h2,
.page-hero h1,
.block-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 0.6rem;
}
.lede { font-size: 1.1rem; color: var(--muted); margin: 0 0 1.2rem; }

.page-hero {
  background: var(--paper);
  color: var(--ink);
  padding: 2.2rem 1.2rem 2.4rem;
  border-bottom: 8px solid var(--yellow);
}
.page-hero .wrap { padding-top: 0; padding-bottom: 0; }
.page-hero .eyebrow { color: var(--gold-text); }
.page-hero p { color: var(--muted); max-width: 40rem; }

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.split {
  display: grid;
  gap: 1.5rem;
}

/* Cards / grids */
.stat-row,
.overview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--red);
}
.stat span { color: var(--muted); font-size: 0.9rem; }

.card-grid,
.game-grid,
.speaker-grid,
.photo-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 1.2rem;
}

.game-card,
.speaker-card,
.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1.2rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}
.game-card h3,
.speaker-card h3,
.info-card h3 {
  font-family: var(--font-serif);
  margin: 0.35rem 0 0.25rem;
  font-size: 1.2rem;
}
.icon-bubble {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--black);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-bubble img { width: 24px; height: 24px; filter: invert(86%) sepia(42%) saturate(500%) hue-rotate(6deg); }
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red-deep);
  background: #fdecee;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.tag.gold { background: #fff4c8; color: #6d5200; }
.tag.green { background: var(--green-soft); color: var(--green); }
.tag.muted { background: #eeeae2; color: var(--muted); }

.group-block { margin: 2rem 0; }
.group-block h2,
.group-block h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid var(--yellow);
  display: inline-block;
}

/* Forms */
form label,
.field {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.9rem;
}
form label > input,
form label > select,
form label > textarea,
.field > input,
.field > select,
.field > textarea {
  display: block;
  margin-top: 0.35rem;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="password"],
input[type="file"],
select,
textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.65rem 0.75rem;
  border: 1px solid #cbd0c4;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
textarea { resize: vertical; min-height: 6rem; }
input:focus-visible,
select:focus-visible,
textarea:focus-visible { box-shadow: var(--focus); border-color: var(--black); }

fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem 0.5rem;
  margin: 0 0 1rem;
}
legend { font-weight: 700; padding: 0 0.4rem; font-family: var(--font-serif); }

.checkbox-list,
.choice-grid {
  display: grid;
  gap: 0.35rem 1rem;
}
.checkbox-list label,
.choice-grid label,
.check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 500;
  margin: 0;
  cursor: pointer;
}
.checkbox-list input,
.choice-grid input,
.check input { width: auto; margin-top: 0.25rem; }

.helper-text, .hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 0.8rem;
}
.form-status {
  margin: 0.6rem 0 0;
  font-weight: 600;
  min-height: 1.3em;
}
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red-deep); }

.required { color: var(--red); }

/* Soccer numbers */
.number-board {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0.3rem;
  margin: 0.8rem 0 1rem;
}
.num {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--ink);
  padding: 0;
}
.num:hover { border-color: var(--gold-deep); background: #fff8de; }
.num.taken {
  background: #f3eee6;
  color: #9a8f80;
  cursor: not-allowed;
  text-decoration: line-through;
  font-weight: 500;
}
.num.selected {
  background: var(--black);
  color: var(--yellow);
  border-color: var(--black);
}
.soccer-list { display: grid; gap: 0.6rem; margin-top: 1rem; }
.soccer-card {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
}
.jersey {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--black);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  flex-shrink: 0;
}

/* Contributions */
.pledge-list { display: grid; gap: 0.75rem; margin-top: 1rem; }
.pledge {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}
.pledge.anon { border-left-color: var(--gold-deep); }
.pledge h3 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.pledge .kind { font-weight: 700; color: var(--red-deep); }
.placeholder-donate {
  border: 2px dashed var(--gold-deep);
  background: #fff8de;
  border-radius: var(--radius);
  padding: 1.2rem;
}
.placeholder-donate h3 { margin-top: 0; font-family: var(--font-serif); }
.notice {
  background: #fff4c8;
  border-left: 4px solid var(--gold-deep);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  color: #3a2e00;
}

/* Gallery */
.photo-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
  cursor: pointer;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
}
.photo-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: #1a1612;
}
.photo-card figcaption,
.photo-card .cap {
  padding: 0.7rem 0.9rem 0.9rem;
  font-size: 0.92rem;
}
.photo-card.is-placeholder img { object-fit: cover; }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 80;
}
.lightbox.open { display: flex; flex-direction: column; }
.lightbox img { max-height: 80vh; max-width: 100%; }
.lightbox p { color: #fff; }
.lightbox button {
  align-self: flex-end;
  margin-bottom: 0.6rem;
}

/* Year tabs */
#galleryTabs {
  position: sticky;
  top: var(--gallery-sticky-top, calc(8px + var(--header-h)));
  z-index: 40;
}
.gallery-tabs-bar {
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(22, 19, 17, 0.06);
}
.gallery-tabs-inner.wrap {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}
#galleryRoot { padding-bottom: 1rem; }
#albumListWrap { padding-top: 1.1rem; }
.gallery-tablist {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 0.15rem 0;
}
.gallery-tab {
  flex: 0 0 auto;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}
.gallery-tab[aria-selected="true"] {
  background: var(--yellow);
  border-color: #c9a800;
  color: var(--black);
}
.gallery-tab:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
.gallery-panel[hidden] { display: none; }
.gallery-panel { margin: 0; }

.lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}
.lightbox-toolbar button { align-self: auto; margin-bottom: 0; }
.lightbox-count {
  margin: 0 auto 0 0;
  color: #f3efe6;
  font-size: 0.9rem;
}


/* Speakers */
.speaker-card ul { margin: 0.4rem 0 0.8rem; padding-left: 1.1rem; color: var(--muted); }
.speaker-slot {
  background: #f6f1e6;
  border: 1px dashed #c4b48a;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  margin-top: 0.5rem;
}
.speaker-slot strong { display: block; }
.speaker-slot.empty { color: var(--muted); font-style: italic; }

/* Venue map */
.map-frame {
  width: 100%;
  min-height: 240px;
  height: 50vw;
  max-height: 420px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* FAQ */
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  margin: 0.5rem 0;
}
.faq summary {
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}
.faq details p { margin: 0.5rem 0 0.3rem; color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.empty-state { color: var(--muted); font-style: italic; }

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--ink);
  margin-top: 2rem;
}
.site-footer .wrap {
  display: grid;
  gap: 1.4rem;
  padding-top: 2.2rem;
  padding-bottom: 1.4rem;
}
.site-footer a { color: var(--red-deep); }
.site-footer .tiny { font-size: 0.82rem; color: var(--muted); }
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.85rem;
}
.footer-brand-row > div p:last-child { margin: 0.15rem 0 0; }
.footer-mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 3px;
  box-sizing: border-box;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.footer-brand {
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  color: var(--gold-text);
  margin: 0;
}
.footer-contact {
  margin: 0.85rem 0 0;
  overflow-wrap: anywhere;
  line-height: 1.55;
}

/* Admin */
.admin-login, .admin-app { max-width: 50rem; }
.pending-photo {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  gap: 0.8rem;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.6rem;
  margin: 0.5rem 0;
}
.pending-photo img { width: 8rem; height: 6rem; object-fit: cover; border-radius: 8px; }

/* Utilities */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }

@media (min-width: 700px) {
  .hero-inner {
    grid-template-columns: 1.3fr 0.7fr;
    align-items: center;
    padding-top: 3.2rem;
    padding-bottom: 3.6rem;
  }
  .hero-logo { width: 240px; }
  .stat-row, .overview { grid-template-columns: repeat(4, 1fr); }
  .card-grid, .game-grid, .speaker-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr 1fr; align-items: start; }
  .map-frame { height: 380px; }
  .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: static;
    background: transparent;
    padding: 0;
    border: 0;
    gap: 0.1rem;
  }
  .nav-links a { padding: 0.4rem 0.55rem; font-size: 0.92rem; }
  .nav-links a.nav-cta {
    margin: 0 0 0 0.4rem;
    padding: 0.4rem 0.85rem;
  }
  .nav-group { position: relative; }
  .nav-group > button {
    font-size: 0.92rem;
    padding: 0.4rem 0.55rem;
  }
  .nav-sub {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 11rem;
    background: var(--header-bg);
    padding: 0.4rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-group:hover .nav-sub { display: flex; }
  .brand-text span { font-size: 0.64rem; }
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .speaker-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .checkbox-list { grid-template-columns: 1fr 1fr; }
  .hero-band { max-height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---- Admin bulk upload, albums, and small-screen refinements ---- */
.admin-app { max-width: 70rem; }
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 1.4rem;
}
.admin-tabs button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--ink);
}
.admin-tabs button[aria-selected="true"] {
  background: var(--black);
  color: var(--yellow);
  border-color: var(--black);
}
.admin-panel[hidden] { display: none !important; }
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.3rem;
  height: 1.3rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  margin-left: 0.25rem;
}
.upload-panel {
  border: 2px dashed var(--gold-deep);
  background: #fff8de;
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.15rem;
  margin: 0 0 1.5rem;
}
.upload-panel h2 { margin-top: 0; font-family: var(--font-serif); }
.file-actions { display: grid; gap: 0.6rem; margin: 0.8rem 0; }
.file-actions .button { min-height: 3rem; width: 100%; }
.upload-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: 0.45rem;
  margin: 0.6rem 0 1rem;
}
.upload-previews .thumb { position: relative; margin: 0; }
.upload-previews img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: #1a1612;
}
.upload-previews button.remove {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  border: 0;
  background: var(--black);
  color: #fff;
  border-radius: 999px;
  width: 1.6rem;
  height: 1.6rem;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.admin-album {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 0 0 1rem;
}
.admin-album header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: baseline;
  margin-bottom: 0.8rem;
}
.admin-album h3 { margin: 0; font-family: var(--font-serif); }
.admin-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.6rem;
}
.admin-photo-grid figure {
  margin: 0;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.admin-photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.admin-photo-grid figcaption {
  font-size: 0.78rem;
  padding: 0.35rem 0.45rem 0.5rem;
}
.admin-photo-grid .row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0 0.35rem 0.4rem;
}
.pending-list { display: grid; gap: 0.6rem; }
.new-album-fields {
  background: #fff;
  border-radius: 12px;
  padding: 0.8rem;
  margin: 0.5rem 0 0.8rem;
  border: 1px solid var(--line);
}
.share-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

@media (max-width: 420px) {
  .brand-text span { display: none; }
  .brand-mark { width: 46px; height: 46px; }
}

.album-date { white-space: nowrap; }

@media (max-width: 699px) {
  .pending-photo { grid-template-columns: 1fr; }
  .pending-photo img { width: 100%; height: 10rem; }
  .number-board { grid-template-columns: repeat(7, 1fr); }
  .hero-inner { padding-top: 1.6rem; }
  .hero-logo { width: 148px; margin-top: 0.4rem; padding: 0.5rem; }
  /* Put the Zeffy donate box above the long pledge form on a single column. */
  .donate-split .donate-side { order: -1; }
  .photo-grid { gap: 0.7rem; }
  .photo-card .cap { font-size: 0.8rem; padding: 0.5rem 0.55rem 0.65rem; }
}

@media (min-width: 700px) {
  .file-actions { grid-template-columns: 1fr 1fr; }
  .admin-photo-grid { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
}
