/* ===========================================================================
   Charity Sport — public stylesheet
   Light theme, painted explicitly. Mobile first. Palette taken from the
   printed flyers and posters.
   =========================================================================== */

/* --------------------------------------------------------------- 1. tokens */
:root {
  /* Surfaces */
  --c-bg:        #FBF7EE;
  --c-bg-alt:    #F4EDDD;
  --c-card:      #FFFFFF;
  --c-charcoal:  #111318;
  --c-charcoal-2:#1B1F27;

  /* Ink */
  --c-ink:       #111318;
  --c-ink-soft:  #4C515C;
  /* 5.16:1 on --c-bg and 4.73:1 on --c-bg-alt. The old #767C88 measured
     3.92 and 3.59, which fails WCAG AA for the small text this is used on. */
  --c-ink-faint: #636974;
  --c-on-dark:   #F6F2E9;
  --c-on-dark-soft: #A9AFBB;

  /* Accents. The -ink variants carry enough contrast for text on cream. */
  --c-orange:     #E4572E;
  --c-orange-ink: #C4451F;
  --c-green:      #1E8A4C;
  --c-green-ink:  #166B3B;
  --c-gold:       #F2B705;
  --c-gold-deep:  #B4870A;
  --c-red:        #C8102E;

  --c-line:       #E6DFCE;
  --c-line-soft:  #EFE9DA;

  /* Type */
  --f-display: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --f-body:    "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;

  --t-xs:   0.78rem;
  --t-sm:   0.88rem;
  --t-base: 1rem;
  --t-md:   clamp(1.05rem, 0.99rem + 0.3vw, 1.2rem);
  --t-lg:   clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  --t-xl:   clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
  --t-2xl:  clamp(2rem, 1.5rem + 2.3vw, 3.4rem);
  --t-3xl:  clamp(2.6rem, 1.7rem + 4.2vw, 5.2rem);
  --t-huge: clamp(3.4rem, 1.9rem + 7vw, 8rem);

  /* Space */
  --s-1: 0.25rem; --s-2: 0.5rem;  --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;    --s-7: 3rem;    --s-8: 4rem;
  --s-9: 6rem;

  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(17, 19, 24, .06), 0 2px 8px rgba(17, 19, 24, .05);
  --sh-2: 0 4px 12px rgba(17, 19, 24, .08), 0 12px 32px rgba(17, 19, 24, .07);
  --sh-3: 0 18px 48px rgba(17, 19, 24, .18);

  --wrap: 1180px;
  --header-h: 68px;

  /* Zimbabwe-flag-inspired divider */
  --stripe: repeating-linear-gradient(
    90deg,
    var(--c-green)    0 40px,
    var(--c-gold)     40px 80px,
    var(--c-red)      80px 120px,
    var(--c-charcoal) 120px 160px
  );
}

/* ----------------------------------------------------------------- 2. base */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); }
h4 { font-size: var(--t-md); font-weight: 700; }

p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--c-orange-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--c-ink); }

img, picture, svg, video { max-width: 100%; }
img, video { height: auto; display: block; }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--c-orange-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: var(--s-4);
  z-index: 200;
  background: var(--c-ink);
  color: var(--c-on-dark);
  padding: var(--s-3) var(--s-5);
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 0; color: var(--c-on-dark); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.15em; height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ------------------------------------------------------------ 3. utilities */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--s-4);
}

.section { padding-block: var(--s-8); }
.section-alt { background: var(--c-bg-alt); }

.eyebrow {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--t-sm);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-green-ink);
  margin-bottom: var(--s-2);
}

.section-lede {
  font-size: var(--t-md);
  color: var(--c-ink-soft);
  max-width: 62ch;
  margin-bottom: var(--s-6);
}

.lede { font-size: var(--t-md); color: var(--c-ink-soft); max-width: 60ch; }

.stripe { height: 5px; background: var(--stripe); }

/* ------------------------------------------------------------ 4. buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: var(--s-3) var(--s-5);
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--t-base);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--c-orange-ink); color: #fff; }
.btn-primary:hover { background: #A93916; color: #fff; }

.btn-ghost { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.btn-ghost:hover { background: var(--c-ink); color: var(--c-bg); }

.btn-green { background: var(--c-green-ink); color: #fff; }
.btn-green:hover { background: #10502C; color: #fff; }

.btn-lg { padding: var(--s-4) var(--s-6); font-size: var(--t-md); }
.btn-sm { min-height: 38px; padding: var(--s-2) var(--s-4); font-size: var(--t-sm); }

.btn-on-dark { background: var(--c-gold); color: var(--c-charcoal); }
.btn-on-dark:hover { background: #FFC933; color: var(--c-charcoal); }

/* ------------------------------------------------------------- 5. header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 238, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; color: inherit; margin-right: auto; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-mark rect { fill: var(--c-charcoal); }
.brand-mark .bm-ring { fill: none; stroke: var(--c-gold); stroke-width: 4; }
.brand-mark .bm-heart { fill: var(--c-orange); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-family: var(--f-display); font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; }
.brand-text em { font-style: normal; font-size: .68rem; letter-spacing: .06em; color: var(--c-ink-faint); }

.nav-toggle {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 46px; height: 44px;
  background: transparent;
  border: 2px solid var(--c-line);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle-bars { display: grid; gap: 4px; }
.nav-toggle-bars i { display: block; width: 20px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.primary-nav {
  position: absolute;
  top: 100%; left: 0; right: 0;
  display: none;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-4);
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
  box-shadow: var(--sh-2);
}
.primary-nav.is-open { display: flex; }
.primary-nav ul { display: flex; flex-direction: column; gap: var(--s-1); }
.primary-nav a {
  display: block;
  padding: var(--s-3);
  border-radius: var(--r-sm);
  color: var(--c-ink);
  font-family: var(--f-display);
  font-weight: 600;
  text-decoration: none;
}
.primary-nav a:hover { background: var(--c-bg-alt); }
.primary-nav a.is-active { color: var(--c-orange-ink); }
.nav-donate { margin-top: var(--s-2); }

/* --------------------------------------------------------------- 6. hero */
.hero {
  padding-block: var(--s-7) var(--s-8);
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(242, 183, 5, .22) 0%, transparent 60%),
    radial-gradient(90% 80% at 0% 30%, rgba(228, 87, 46, .12) 0%, transparent 55%),
    var(--c-bg);
}
.hero-inner { display: grid; gap: var(--s-6); }
.hero h1 { margin-bottom: var(--s-4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }

.hero-chip {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s-3);
  margin-top: var(--s-5);
  padding: var(--s-3) var(--s-5);
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-left: 5px solid var(--c-green);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  font-size: var(--t-sm);
  color: var(--c-ink-soft);
}
.hero-chip strong {
  font-family: var(--f-display);
  font-size: var(--t-xl);
  font-weight: 800;
  color: var(--c-green-ink);
  font-variant-numeric: tabular-nums;
}

.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ------------------------------------------------------------ 7. counter */
.section-impact { background: var(--c-bg-alt); }
.counter { margin-block: var(--s-5) var(--s-6); }

.counter-value {
  font-family: var(--f-display);
  font-size: var(--t-huge);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.045em;
  color: var(--c-orange-ink);
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.counter-goal {
  font-family: var(--f-display);
  font-size: var(--t-lg);
  color: var(--c-ink-faint);
  margin: var(--s-1) 0 var(--s-4);
}
.counter-goal span { color: var(--c-ink); }

.bar {
  position: relative;
  height: 14px;
  background: #E6DCC4;
  border-radius: var(--r-pill);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(17, 19, 24, .12);
}
.bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--c-green) 0%, var(--c-gold) 70%, var(--c-orange) 100%);
  transition: width .9s cubic-bezier(.22, .61, .36, 1);
}

.milestones {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-4);
}
.milestones li {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--c-ink-faint);
}
.milestones li::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--c-line);
}
.milestones li.is-done { color: var(--c-green-ink); border-color: rgba(30, 138, 76, .4); }
.milestones li.is-done::before { background: var(--c-green); }
.milestones li.is-next {
  color: var(--c-ink);
  border-color: var(--c-gold);
  background: rgba(242, 183, 5, .14);
}
.milestones li.is-next::before { background: var(--c-gold); }

.counter-meta { margin-top: var(--s-3); font-size: var(--t-sm); color: var(--c-ink-faint); }
.counter-blurb { font-size: var(--t-md); max-width: 62ch; }
.counter-note { font-size: var(--t-sm); color: var(--c-ink-faint); max-width: 62ch; margin-top: var(--s-4); }

.stat-row { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.stat-row li {
  padding: var(--s-4);
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
}
.stat-row b {
  display: block;
  font-family: var(--f-display);
  font-size: var(--t-xl);
  font-weight: 800;
  color: var(--c-ink);
  line-height: 1;
}
.stat-row span { font-size: var(--t-sm); color: var(--c-ink-soft); }

/* -------------------------------------------------------------- 8. about */
.about-grid { display: grid; gap: var(--s-6); }
.about-copy p { font-size: var(--t-md); color: var(--c-ink-soft); max-width: 62ch; }

.how-list { display: grid; gap: var(--s-4); counter-reset: step; }
.how-list li {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-4);
  align-items: start;
  padding: var(--s-5);
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
}
.how-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(30, 138, 76, .12);
  color: var(--c-green-ink);
}
.how-icon .icon { width: 24px; height: 24px; }
.how-list h3 { font-size: var(--t-md); margin-bottom: var(--s-1); }
.how-list p { font-size: var(--t-sm); color: var(--c-ink-soft); }

/* ------------------------------------------------------------- 9. causes */
.cause-grid { display: grid; gap: var(--s-5); align-items: start; }

.cause-card {
  display: flex;
  flex-direction: column;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-top: 5px solid var(--c-green);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  overflow: hidden;
}
.cause-card.accent-orange { border-top-color: var(--c-orange); }
.cause-card.accent-gold { border-top-color: var(--c-gold); }

.cause-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cause-body { display: flex; flex-direction: column; flex: 1; padding: var(--s-5); }

.cause-tag {
  align-self: flex-start;
  padding: var(--s-1) var(--s-3);
  background: var(--c-bg-alt);
  border-radius: var(--r-pill);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  margin-bottom: var(--s-3);
}
.cause-card h3 { margin-bottom: var(--s-3); }
.cause-summary { color: var(--c-ink-soft); }

.cause-details { display: grid; gap: var(--s-2); margin: var(--s-4) 0; }
.cause-details li {
  position: relative;
  padding-left: var(--s-5);
  font-size: var(--t-sm);
  color: var(--c-ink-soft);
}
.cause-details li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-gold);
}

.cause-stats { display: flex; flex-wrap: wrap; gap: var(--s-4); margin: var(--s-4) 0; }
.cause-stats div { min-width: 96px; }
.cause-stats b {
  display: block;
  font-family: var(--f-display);
  font-size: var(--t-lg);
  font-weight: 800;
  color: var(--c-green-ink);
  line-height: 1.1;
}
.cause-stats span { font-size: var(--t-xs); color: var(--c-ink-faint); text-transform: uppercase; letter-spacing: .06em; }

.cause-progress { margin: var(--s-4) 0; }
.cause-progress .bar { height: 10px; }
.cause-progress-meta {
  display: flex; justify-content: space-between; gap: var(--s-3);
  margin-top: var(--s-2);
  font-size: var(--t-sm);
  color: var(--c-ink-soft);
}
.cause-progress-meta b { color: var(--c-ink); }

.cause-open {
  margin: var(--s-4) 0;
  padding: var(--s-3) var(--s-4);
  background: rgba(242, 183, 5, .14);
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
  color: var(--c-ink-soft);
}
.cause-actions { margin-top: auto; padding-top: var(--s-4); }

.funded-strip { margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px dashed var(--c-line); }
.funded-strip ul { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.funded-strip li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-green);
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
}
.funded-strip b { font-family: var(--f-display); }
.funded-strip span { color: var(--c-ink-faint); }

/* ----------------------------------------------------- 9b. accountability */
.section-trust { background: var(--c-bg-alt); }
.trust-grid { display: grid; gap: var(--s-5); align-items: start; }
/* While the charity has not supplied its registration details, the facts list
   is empty. Drop it entirely rather than leaving a blank column beside the
   statements. */
.trust-facts:empty, .trust-statements:empty { display: none; }

.trust-facts { display: grid; gap: var(--s-3); align-content: start; }
.trust-facts li {
  display: grid;
  gap: var(--s-1);
  padding: var(--s-4);
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-green);
  border-radius: var(--r-sm);
}
.trust-facts dt, .trust-label {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-ink-faint);
}
.trust-value { font-family: var(--f-display); font-weight: 700; font-size: var(--t-md); }
.trust-value a { color: var(--c-orange-ink); }

.trust-statements { display: grid; gap: var(--s-3); align-content: start; max-width: 64ch; }
.trust-statements li {
  position: relative;
  padding-left: var(--s-6);
  font-size: var(--t-sm);
  color: var(--c-ink-soft);
}
.trust-statements li::before {
  content: "";
  position: absolute;
  left: 0; top: .15em;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(30, 138, 76, .16);
}
.trust-statements li::after {
  content: "";
  position: absolute;
  left: 6px; top: .52em;
  width: 8px; height: 4px;
  border-left: 2px solid var(--c-green-ink);
  border-bottom: 2px solid var(--c-green-ink);
  transform: rotate(-45deg);
}

.counter-raised {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-2);
  margin-top: var(--s-4);
  padding: var(--s-3) var(--s-4);
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-left: 5px solid var(--c-gold);
  border-radius: var(--r-sm);
}
.counter-raised strong {
  font-family: var(--f-display);
  font-size: var(--t-lg);
  font-weight: 800;
  color: var(--c-green-ink);
  font-variant-numeric: tabular-nums;
}
.counter-raised span { font-size: var(--t-sm); color: var(--c-ink-soft); }

/* ------------------------------------------------------------- 10. events */
.event-featured {
  display: grid;
  gap: 0;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  overflow: hidden;
  margin-bottom: var(--s-6);
}
.event-poster {
  display: grid;
  place-items: center;
  background: var(--c-charcoal);
  padding: var(--s-4);
}
/* contain, not cover: these posters carry the dates and venue down the side,
   so cropping them loses the information people came for. */
.event-poster img { width: 100%; height: auto; max-height: 560px; object-fit: contain; }
.event-featured-body { padding: var(--s-6); }

.event-badges { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-3); }
.badge {
  display: inline-flex; align-items: center; gap: var(--s-1);
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-pill);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.badge-sport { background: var(--c-charcoal); color: var(--c-on-dark); }
.badge-live { background: var(--c-red); color: #fff; }
.badge-next { background: var(--c-gold); color: var(--c-charcoal); }
.badge-tbc { background: var(--c-bg-alt); color: var(--c-ink-soft); border: 1px dashed var(--c-line); }
.badge-past { background: var(--c-bg-alt); color: var(--c-ink-faint); }
.badge-final { background: rgba(30, 138, 76, .16); color: var(--c-green-ink); }

.event-meta { display: grid; gap: var(--s-2); margin: var(--s-4) 0; }
.event-meta li { display: flex; align-items: flex-start; gap: var(--s-3); font-size: var(--t-sm); color: var(--c-ink-soft); }
.event-meta .icon { width: 18px; height: 18px; margin-top: .2em; color: var(--c-green-ink); }
.event-meta a { color: var(--c-orange-ink); }

.countdown { margin: var(--s-5) 0; padding: var(--s-4); background: var(--c-bg-alt); border-radius: var(--r-md); }
.countdown-label { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--c-ink-faint); margin-bottom: var(--s-2); }
/* Four fixed columns so days/hours/minutes/seconds stay on one row even at
   360px, rather than dropping "seconds" onto a line of its own. */
.countdown-units { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); }
.countdown-units div { text-align: center; }
.countdown-units b {
  display: block;
  font-family: var(--f-display);
  font-size: var(--t-xl);
  font-weight: 800;
  line-height: 1;
  color: var(--c-orange-ink);
  font-variant-numeric: tabular-nums;
}
.countdown-units span { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-ink-faint); }

.schedule { display: grid; gap: var(--s-2); margin: var(--s-5) 0; }
.schedule li {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
}
.schedule li.is-past { color: var(--c-ink-faint); background: var(--c-bg-alt); }
.schedule li.is-next { border-color: var(--c-gold); background: rgba(242, 183, 5, .12); }
.schedule-date { font-weight: 700; font-family: var(--f-display); }
.schedule-time { color: var(--c-ink-soft); margin-right: auto; }

.event-highlights { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-4) 0; }
.event-highlights li {
  padding: var(--s-1) var(--s-3);
  background: var(--c-bg-alt);
  border-radius: var(--r-pill);
  font-size: var(--t-xs);
  color: var(--c-ink-soft);
}

.event-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.event-note { margin-top: var(--s-4); font-size: var(--t-xs); color: var(--c-ink-faint); }

.event-list { display: grid; gap: var(--s-4); }
.event-card {
  padding: var(--s-5);
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-left: 5px solid var(--c-gold);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
}
.event-card.is-tbc { border-left-style: dashed; }
.event-card h3 { font-size: var(--t-md); margin-bottom: var(--s-2); }
.event-card p { font-size: var(--t-sm); color: var(--c-ink-soft); }

.past-events { margin-top: var(--s-6); }
.past-events summary {
  cursor: pointer;
  padding: var(--s-3) 0;
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--c-ink-soft);
}
.past-events summary::marker { color: var(--c-gold); }
.past-events .event-list { margin-top: var(--s-4); }
.past-events .event-card { border-left-color: var(--c-line); opacity: .85; }

.empty-note {
  padding: var(--s-5);
  background: var(--c-card);
  border: 1px dashed var(--c-line);
  border-radius: var(--r-md);
  color: var(--c-ink-soft);
}

/* --------------------------------------------------------- 10b. share + signup */
.btn-share {
  background: var(--c-card);
  color: var(--c-green-ink);
  border-color: var(--c-green-ink);
}
.btn-share:hover { background: var(--c-green-ink); color: #fff; }

.donate-share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-4); }
.donate-share-note { font-size: var(--t-sm); color: var(--c-ink-soft); }

.section-signup { background: var(--c-bg-alt); }
.signup-inner { display: grid; gap: var(--s-5); align-items: start; }
.signup-copy p { color: var(--c-ink-soft); max-width: 54ch; }
.signup-privacy { font-size: var(--t-sm); color: var(--c-ink-faint); }

.signup-form {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-5);
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
}
.signup-form .field { display: grid; gap: var(--s-1); margin: 0; }
.signup-form label { font-weight: 700; font-size: var(--t-sm); }
.signup-form input {
  width: 100%;
  min-height: 44px;
  padding: var(--s-2) var(--s-3);
  background: var(--c-card);
  border: 2px solid var(--c-line);
  border-radius: var(--r-sm);
  font: inherit;
  color: var(--c-ink);
}
.signup-form input:focus { border-color: var(--c-orange-ink); }
.signup-form .field.has-error input { border-color: var(--c-red); }
.field-error { font-size: var(--t-sm); font-weight: 700; color: #8A0C20; }

/* The honeypot: off-screen rather than display:none, so a script that skips
   hidden fields still fills it in. */
.signup-trap {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.signup-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin: var(--s-2) 0 0; }
.signup-state { font-size: var(--t-sm); font-weight: 700; }
.signup-state.is-ok { color: var(--c-green-ink); }
.signup-state.is-err { color: #8A0C20; }
.signup-fallback { margin-top: var(--s-4); }

/* ------------------------------------------------------------ 11. support */
.support-grid { display: grid; gap: var(--s-4); }
.support-card {
  display: flex;
  flex-direction: column;
  padding: var(--s-5);
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  transition: transform .15s ease, box-shadow .15s ease;
}
.support-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.support-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  margin-bottom: var(--s-3);
  border-radius: var(--r-sm);
  background: rgba(228, 87, 46, .12);
  color: var(--c-orange-ink);
}
.support-icon .icon { width: 22px; height: 22px; }
.support-card h3 { font-size: var(--t-md); margin-bottom: var(--s-1); }
.support-price {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--t-sm);
  color: var(--c-green-ink);
  margin-bottom: var(--s-3);
}
.support-card p { font-size: var(--t-sm); color: var(--c-ink-soft); margin-bottom: var(--s-4); }
.support-card .btn { margin-top: auto; align-self: flex-start; }

/* ----------------------------------------------------------- 12. sponsors */
.section-dark { background: var(--c-charcoal); color: var(--c-on-dark); }
.section-dark h2 { color: var(--c-on-dark); }
.section-dark .eyebrow { color: var(--c-gold); }
.section-dark .section-lede { color: var(--c-on-dark-soft); }

.tier { margin-top: var(--s-6); }
.tier-head { margin-bottom: var(--s-4); }
.tier-head h3 { font-size: var(--t-lg); color: var(--c-on-dark); margin-bottom: var(--s-1); }
.tier-head p { font-size: var(--t-sm); color: var(--c-on-dark-soft); }

.sponsor-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tier-large .sponsor-grid { grid-template-columns: minmax(0, 1fr); }

.sponsor-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  min-height: 132px;
  padding: var(--s-4);
  background: var(--c-charcoal-2);
  border: 1px solid rgba(246, 242, 233, .14);
  border-radius: var(--r-md);
  text-align: center;
  text-decoration: none;
  color: var(--c-on-dark);
  transition: transform .15s ease, border-color .15s ease;
}
.sponsor-tile:hover { transform: translateY(-3px); color: var(--c-on-dark); }
.sponsor-tile:nth-child(3n+1) { border-color: rgba(228, 87, 46, .45); }
.sponsor-tile:nth-child(3n+2) { border-color: rgba(30, 138, 76, .45); }
.sponsor-tile:nth-child(3n+3) { border-color: rgba(242, 183, 5, .45); }

.tier-large .sponsor-tile { min-height: 168px; }

.sponsor-logo {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 200px;
  aspect-ratio: 3 / 1;
}
.sponsor-logo img { max-height: 100%; width: auto; object-fit: contain; }

/* A prize sponsor paid for the prizes, and its tile is larger to say so. The
   logo slot has to grow with it, or the tile reads as mostly empty space with
   something small floating in the middle. */
.tier-large .sponsor-logo { max-width: 300px; }

.sponsor-name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: var(--t-md);
  letter-spacing: -.01em;
  line-height: 1.15;
}
.tier-large .sponsor-name { font-size: var(--t-lg); }
.sponsor-tagline { font-size: var(--t-xs); color: var(--c-on-dark-soft); line-height: 1.4; }

.sponsor-tile.is-cta {
  background: transparent;
  border: 2px dashed rgba(242, 183, 5, .55);
  color: var(--c-gold);
}
.sponsor-tile.is-cta:hover { background: rgba(242, 183, 5, .1); color: var(--c-gold); }
.sponsor-tile.is-cta .sponsor-name { color: var(--c-gold); }
.sponsor-cta-label {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--t-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ------------------------------------------------------------ 13. gallery */
.filter-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); }
.chip {
  min-height: 40px;
  padding: var(--s-2) var(--s-4);
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--t-sm);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { border-color: var(--c-ink); }
.chip[aria-pressed="true"] { background: var(--c-ink); color: var(--c-bg); border-color: var(--c-ink); }

.gallery-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-item { margin: 0; }
.gallery-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.gallery-btn:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.gallery-btn img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery-type {
  position: absolute;
  top: var(--s-3); left: var(--s-3);
  padding: var(--s-1) var(--s-3);
  background: rgba(17, 19, 24, .82);
  color: var(--c-on-dark);
  border-radius: var(--r-pill);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.gallery-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
}
.gallery-play span {
  display: grid; place-items: center;
  width: 58px; height: 58px;
  background: rgba(17, 19, 24, .72);
  border-radius: 50%;
}
.gallery-play .icon { width: 26px; height: 26px; }
.gallery-caption { padding: var(--s-3) var(--s-1) 0; font-size: var(--t-sm); color: var(--c-ink-soft); text-align: left; }
.gallery-caption b { display: block; color: var(--c-ink); font-family: var(--f-display); }

/* --------------------------------------------------------------- 13b. kids */
.kids-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: var(--s-7);
}
.kids-item { margin: 0; }
.kids-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
}
.kids-btn img { display: block; width: 100%; height: auto; }
.kids-caption {
  display: block;
  padding: var(--s-3);
  font-size: var(--t-xs);
  line-height: 1.4;
  color: var(--c-ink-soft);
}

/* The pad. It is a panel rather than a bare canvas so the tools read as
   belonging to it, and so the whole thing has one obvious edge on a phone. */
.kids-pad {
  padding: var(--s-5);
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
}
.kids-tools { display: flex; flex-direction: column; gap: var(--s-3); margin: var(--s-4) 0; }
.kids-tool-row { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }

.kids-swatch {
  width: 44px; height: 44px;
  padding: 0;
  background: var(--swatch, #111318);
  border: 2px solid var(--c-line);
  border-radius: 50%;
  cursor: pointer;
}
.kids-swatch[aria-pressed="true"] {
  /* A ring and a size change, never colour alone. */
  border-color: var(--c-ink);
  box-shadow: 0 0 0 3px var(--c-bg), 0 0 0 5px var(--c-ink);
}

.kids-size {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  background: var(--c-bg);
  border: 2px solid var(--c-line);
  border-radius: var(--r-md);
  cursor: pointer;
}
.kids-size[aria-pressed="true"] { border-color: var(--c-ink); background: var(--c-bg-alt); }
.kids-dot {
  display: block;
  width: var(--dot, 9px); height: var(--dot, 9px);
  background: var(--c-ink);
  border-radius: 50%;
}
.kids-action { min-height: 44px; }
.kids-action[aria-pressed="true"] { background: var(--c-ink); color: var(--c-bg); border-color: var(--c-ink); }

#kidsCanvas {
  display: block;
  width: 100%;
  max-width: 720px;
  /* Sized by ratio, not by viewport height: a phone's address bar sliding away
     must not resize the pad while a child is drawing on it. */
  aspect-ratio: 4 / 3;
  height: auto;
  background: #ffffff;
  border: 2px solid var(--c-line);
  border-radius: var(--r-md);
  /* Without this, dragging a finger scrolls the page instead of drawing. */
  touch-action: none;
  cursor: crosshair;
}

.kids-field { margin-top: var(--s-4); max-width: 720px; }
.kids-field textarea { width: 100%; }
.field-hint { display: block; margin-top: var(--s-1); font-size: var(--t-xs); color: var(--c-ink-faint); }
.kids-send { margin-top: var(--s-4); }
.kids-after {
  margin-top: var(--s-4);
  padding: var(--s-4);
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
}
.kids-after p { margin-bottom: var(--s-3); }
.kids-note { margin-top: var(--s-3); font-size: var(--t-xs); color: var(--c-ink-faint); line-height: 1.5; }

/* ----------------------------------------------------------- 14. lightbox */
.lightbox {
  width: min(1100px, 94vw);
  max-width: 94vw;
  max-height: 92vh;
  padding: 0;
  background: var(--c-charcoal);
  color: var(--c-on-dark);
  border: none;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  overflow: visible;
}
.lightbox::backdrop { background: rgba(10, 11, 15, .88); }
.lightbox-inner { position: relative; padding: var(--s-5); }
.lightbox-figure { margin: 0; }
.lightbox-media { display: grid; place-items: center; background: #05060A; border-radius: var(--r-md); overflow: hidden; }
.lightbox-media img { max-height: 64vh; width: auto; object-fit: contain; }
.lightbox-media iframe, .lightbox-media video { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.lightbox figcaption { padding-top: var(--s-4); }
.lightbox-title { font-family: var(--f-display); font-weight: 700; font-size: var(--t-md); margin: 0 0 var(--s-1); }
.lightbox-caption { font-size: var(--t-sm); color: var(--c-on-dark-soft); margin: 0; }
.lightbox-count { font-size: var(--t-xs); color: var(--c-on-dark-soft); margin: var(--s-2) 0 0; letter-spacing: .08em; }

.lightbox-close, .lightbox-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  background: rgba(17, 19, 24, .9);
  color: var(--c-on-dark);
  border: 1px solid rgba(246, 242, 233, .25);
  border-radius: 50%;
  cursor: pointer;
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--c-orange-ink); }
.lightbox-close { top: calc(var(--s-5) * -0.5); right: calc(var(--s-5) * -0.5); }
.lightbox-nav { top: 40%; font-size: 1.8rem; line-height: 1; }
.lightbox-prev { left: calc(var(--s-4) * -1); }
.lightbox-next { right: calc(var(--s-4) * -1); }
.lightbox-nav[hidden] { display: none; }

/* ------------------------------------------------------------- 15. donate */
.section-donate {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(30, 138, 76, .16) 0%, transparent 55%),
    var(--c-bg-alt);
}
.donate-inner { display: grid; gap: var(--s-6); }
.donate-actions { margin: var(--s-5) 0 var(--s-3); }
.donate-provider { font-size: var(--t-sm); color: var(--c-ink-faint); }

.payment-note {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-4);
  margin-top: var(--s-4);
  background: rgba(200, 16, 46, .08);
  border-left: 4px solid var(--c-red);
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
  font-weight: 600;
  color: #8A0C20;
}

.alt-contact { display: grid; gap: var(--s-2); margin-top: var(--s-5); }
.alt-contact li { display: flex; align-items: center; gap: var(--s-3); font-size: var(--t-sm); }
.alt-contact .icon { color: var(--c-green-ink); }

.donate-aside {
  padding: var(--s-5);
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
}
.donate-aside h3 { font-size: var(--t-md); }
.donate-aside ul { display: grid; gap: var(--s-3); }
.donate-aside li {
  position: relative;
  padding-left: var(--s-5);
  font-size: var(--t-sm);
  color: var(--c-ink-soft);
}
.donate-aside li::before {
  content: "";
  position: absolute;
  left: 0; top: .6em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--c-green);
}

/* ------------------------------------------------------------- 16. footer */
.site-footer { background: var(--c-charcoal); color: var(--c-on-dark); }
.footer-inner { display: grid; gap: var(--s-6); padding-block: var(--s-7); }
.footer-brand b { font-family: var(--f-display); font-size: var(--t-lg); font-weight: 800; display: block; margin-bottom: var(--s-3); }
.footer-brand p { color: var(--c-on-dark-soft); font-size: var(--t-sm); max-width: 54ch; }
.footer-trust { margin-top: var(--s-3); font-size: var(--t-xs); color: var(--c-on-dark-soft); }
.footer-contact h2 { font-size: var(--t-md); color: var(--c-on-dark); }
.footer-contact ul { display: grid; gap: var(--s-3); }
.footer-contact li { display: flex; align-items: center; gap: var(--s-3); font-size: var(--t-sm); }
.footer-contact a { color: var(--c-gold); }
.footer-contact a:hover { color: #FFD75E; }
.footer-contact .icon { color: var(--c-gold); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  padding-block: var(--s-4);
  border-top: 1px solid rgba(246, 242, 233, .14);
  font-size: var(--t-xs);
  color: var(--c-on-dark-soft);
}
.footer-base p { margin: 0; }

.noscript {
  padding: var(--s-5);
  margin: var(--s-5) var(--s-4);
  background: #FFF3CD;
  border: 1px solid var(--c-gold);
  border-radius: var(--r-md);
}

.to-top {
  position: fixed;
  right: var(--s-4);
  bottom: var(--s-4);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  background: var(--c-ink);
  color: var(--c-bg);
  border: none;
  border-radius: 50%;
  box-shadow: var(--sh-2);
  cursor: pointer;
}
.to-top:hover { background: var(--c-orange-ink); }
.to-top .icon { width: 22px; height: 22px; }

/* Error banner shown when site-data.js fails to load or parse. */
.data-error {
  padding: var(--s-5);
  margin: var(--s-5) auto;
  max-width: var(--wrap);
  background: #FDECEA;
  border: 2px solid var(--c-red);
  border-radius: var(--r-md);
  color: #7A0C1F;
}
.data-error code { font-family: ui-monospace, Menlo, Consolas, monospace; }

/* -------------------------------------------------------- 17. breakpoints */
@media (min-width: 640px) {
  .kids-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cause-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .support-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .sponsor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tier-large .sponsor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1.6fr 1fr; }
}

@media (min-width: 900px) {
  .section { padding-block: var(--s-9); }
  .hero { padding-block: var(--s-8) var(--s-9); }
  .hero-inner { grid-template-columns: 1.05fr .95fr; align-items: center; gap: var(--s-7); }
  .about-grid { grid-template-columns: 1.1fr .9fr; gap: var(--s-7); }
  .trust-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s-7); }
  .how-list { gap: var(--s-3); }
  .event-featured { grid-template-columns: .85fr 1.15fr; }
  .event-poster img { max-height: 620px; }
  .donate-inner { grid-template-columns: 1.25fr .75fr; align-items: start; }
  .signup-inner { grid-template-columns: 1.1fr .9fr; gap: var(--s-7); }
  .sponsor-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .nav-toggle { display: none; }
  .primary-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--s-2);
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
  }
  .primary-nav ul { flex-direction: row; gap: var(--s-1); }
  .primary-nav a { padding: var(--s-2) var(--s-3); font-size: var(--t-sm); }
  .nav-donate { margin-top: 0; margin-left: var(--s-3); }
}

@media (min-width: 1100px) {
  .sponsor-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* --------------------------------------------------- 18. reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover, .support-card:hover, .sponsor-tile:hover, .gallery-btn:hover { transform: none; }
}

/* --------------------------------------------------------------- 19. print */
@media print {
  .site-header, .to-top, .nav-toggle, .filter-row, .lightbox { display: none !important; }
  body { background: #fff; }
  .section, .hero { padding-block: 1rem; }
}
