/* =========================================================================
   Bluebird Kids Foundation & Mental Health — design system
   Palette taken from the logo: navy bird, cyan/teal panels, red accent rule.
   ========================================================================= */

:root {
  --navy: #10293a;
  --navy-deep: #0a1c28;
  --navy-soft: #1c3d52;
  --teal: #0e6e8c;
  --cyan: #0096c8;
  --sky: #7fd9ff;
  --red: #dc2b1e;
  --coral: #ff8f7d;

  --paper: #ffffff;
  --shell: #f6f9fb;
  --mist: #eaf1f5;
  --body: #40596a;
  --muted: #6d8494;
  --line: rgba(16, 41, 58, 0.12);
  --line-soft: rgba(16, 41, 58, 0.07);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1160px;
  --gutter: clamp(20px, 5vw, 40px);

  --shadow-sm: 0 1px 2px rgba(16, 41, 58, 0.06), 0 4px 14px rgba(16, 41, 58, 0.05);
  --shadow-md: 0 10px 30px rgba(16, 41, 58, 0.1);
  --shadow-red: 0 8px 22px rgba(220, 43, 30, 0.26);

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", var(--sans);
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--shell);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.14;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.45rem); }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.35rem); }
h4 { font-size: 1.02rem; }

/* Component display rules below (grid/flex) would otherwise beat the UA
   stylesheet's [hidden] { display: none }, so make the attribute win. */
[hidden] { display: none !important; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--teal); }
img, svg, video { max-width: 100%; display: block; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

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

::selection { background: var(--sky); color: var(--navy-deep); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 780px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------- type bits */

.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow--light { color: var(--sky); }
.eyebrow--coral { color: var(--coral); }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  color: var(--body);
  line-height: 1.62;
}
.prose { color: var(--body); max-width: 68ch; }
.prose h2 { color: var(--navy); margin: 2em 0 0.6em; }
.prose h3 { color: var(--navy); margin: 1.7em 0 0.5em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.15em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.45em; }

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--paper { background: var(--paper); }
.section--mist { background: var(--mist); }
.section--dark { background: var(--navy-deep); color: rgba(255, 255, 255, 0.82); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--tight { padding: clamp(40px, 5vw, 60px) 0; }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { margin-top: 12px; }
.section-head p { margin-top: 14px; color: var(--body); }
.section--dark .section-head p { color: rgba(255, 255, 255, 0.75); }

/* Spacing utilities — kept few and deliberate so no inline styles are needed
   (the site ships a strict Content-Security-Policy in public/_headers). */
.mt-s { margin-top: 14px; }
.mt-m { margin-top: 28px; }
.mt-l { margin-top: 36px; }

.thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--mist);
  box-shadow: var(--shadow-sm);
}

/* ------------------------------------------------------------------ pulse */
/* Echoes the red ECG rule under the wordmark in the foundation's branding. */

.pulse {
  width: 100%;
  max-width: 240px;
  height: 18px;
  overflow: visible;
}
.pulse path {
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pulse--light path { stroke: var(--coral); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  background: none;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease,
    border-color 0.16s ease, color 0.16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.btn--red { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn--red:hover { background: #c42115; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-soft); }
.btn--white { background: #fff; color: var(--navy-deep); }
.btn--ghost { border-color: var(--line); color: var(--navy); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn--block { width: 100%; }
.btn--lg { padding: 15px 30px; font-size: 1rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--teal);
  text-decoration: none;
}
.textlink::after { content: "→"; transition: transform 0.16s ease; }
.textlink:hover { text-decoration: underline; }
.textlink:hover::after { transform: translateX(3px); }

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 249, 251, 0.88);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--navy);
  margin-right: auto;
}
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.brand__accent { color: var(--red); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  opacity: 0.82;
  transition: opacity 0.16s ease, background-color 0.16s ease;
}
.nav a:hover { opacity: 1; background: rgba(16, 41, 58, 0.05); }
.nav a[aria-current="page"] {
  opacity: 1;
  color: var(--teal);
  background: rgba(14, 110, 140, 0.09);
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  color: var(--navy);
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle__close, .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* The nav carries its own Donate button for the mobile drawer; on wide screens
   the standalone header CTA takes over so it isn't shown twice. */
@media (min-width: 1081px) {
  .nav > .btn { display: none; }
}

@media (max-width: 1080px) {
  .nav {
    position: fixed;
    inset: 65px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px var(--gutter) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 65px);
    overflow-y: auto;
  }
  .nav[hidden] { display: none; }
  .nav a { padding: 13px 12px; font-size: 1rem; }
  .nav .btn { margin-top: 10px; }
  .nav-toggle { display: inline-flex; }
  .site-header__cta { display: none; }
}

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 520px at 88% -10%, rgba(0, 150, 200, 0.42), transparent 65%),
    linear-gradient(158deg, var(--navy-deep) 0%, var(--navy) 52%, #14536b 100%);
  padding: clamp(56px, 8vw, 92px) 0 clamp(52px, 7vw, 84px);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    122deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 22px);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 2; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}
.hero h1 { margin: 16px 0 20px; color: #fff; }
.hero h1 em { color: var(--coral); font-style: normal; }
.hero .lead { color: rgba(255, 255, 255, 0.84); max-width: 48ch; margin-bottom: 28px; }
.hero .pulse { margin-bottom: 26px; }

.hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(6, 18, 26, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__caption {
  position: absolute;
  inset: auto 0 0;
  padding: 34px 22px 16px;
  background: linear-gradient(to top, rgba(6, 18, 26, 0.88), transparent);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 26px;
}
.hero__stats b {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: #fff;
  line-height: 1;
}
.hero__stats span {
  display: block;
  margin-top: 7px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.66);
  max-width: 22ch;
}

/* --------------------------------------------------------------- page hero */

.page-hero {
  background: linear-gradient(150deg, var(--navy-deep), var(--navy) 70%, #164e64);
  color: #fff;
  padding: clamp(44px, 6vw, 74px) 0 clamp(40px, 5vw, 62px);
}
.page-hero h1 { color: #fff; margin: 14px 0 0; max-width: 24ch; }
.page-hero .lead { color: rgba(255, 255, 255, 0.8); max-width: 60ch; margin-top: 18px; }

.crumbs {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 18px;
}
.crumbs a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { padding: 0 7px; opacity: 0.5; }

/* ------------------------------------------------------------------- cards */

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 30px);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.card--hover:hover {
  border-color: rgba(14, 110, 140, 0.45);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--body); font-size: 0.95rem; }
.card--dark { background: var(--navy-deep); border-color: transparent; color: rgba(255, 255, 255, 0.8); }
.card--dark h3 { color: #fff; }
.card--dark p { color: rgba(255, 255, 255, 0.76); }
.card__foot { margin-top: 18px; }

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #fff;
  background: var(--teal);
  padding: 5px 11px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.tag--red { background: var(--red); }
.tag--navy { background: var(--navy); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--shell);
  border: 1px solid var(--line);
  color: #33505f;
}

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
/* Positioned rather than grid/flex: the items mix <strong> with bare text, and a
   grid container would make each run a separate track. */
.checklist li {
  position: relative;
  padding-left: 30px;
  font-size: 0.95rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(14, 110, 140, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e6e8c' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* --------------------------------------------------------------- split band */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.split--reverse .split__media { order: 2; }

.feature {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(128deg, var(--navy-deep), var(--teal) 130%);
  color: #fff;
}
.feature__copy { padding: clamp(28px, 4vw, 56px); align-self: center; }
.feature__copy h2 { color: #fff; margin: 12px 0 16px; }
.feature__copy p { color: rgba(255, 255, 255, 0.83); }
.feature__media { position: relative; min-height: 320px; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }

.quote {
  border-left: 3px solid var(--red);
  padding: 4px 0 4px 24px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.quote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.section--dark .quote cite { color: rgba(255, 255, 255, 0.6); }

/* --------------------------------------------------------------- event band */

.event {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: clamp(20px, 2.6vw, 28px);
}
.event__date {
  text-align: center;
  font-family: var(--display);
  line-height: 1;
  padding-right: clamp(20px, 3vw, 32px);
  border-right: 1px solid var(--line);
}
.event__date b { display: block; font-size: 2.1rem; }
.event__date span {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}
.event__body h3 { margin-bottom: 6px; }
.event__body p { font-size: 0.92rem; color: var(--body); margin: 0; }
.event__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 12px;
  font-size: 0.84rem;
  color: var(--muted);
}

/* ------------------------------------------------------------------ people */

.person { text-align: left; }
.person__photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--mist);
  margin-bottom: 18px;
}
.person__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.person h3 { margin-bottom: 4px; }
.person__role {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}
.person p { margin-top: 12px; color: var(--body); font-size: 0.93rem; }

.bio {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
.bio__photo { position: sticky; top: 100px; }
.bio__photo img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.bio__label {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ----------------------------------------------------------------- gallery */

.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; }
.filters button {
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--navy);
  cursor: pointer;
  transition: all 0.16s ease;
}
.filters button:hover { border-color: var(--teal); color: var(--teal); }
.filters button[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.masonry {
  columns: 4 220px;
  column-gap: 14px;
}
.masonry figure {
  margin: 0 0 14px;
  break-inside: avoid;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--mist);
  cursor: zoom-in;
}
.masonry img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.masonry figure:hover img { transform: scale(1.035); }
.masonry figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 30px 14px 12px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #fff;
  background: linear-gradient(to top, rgba(8, 22, 31, 0.9), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.masonry figure:hover figcaption,
.masonry figure:focus-within figcaption { opacity: 1; }
.masonry figure[data-kind="video"]::after {
  content: "";
  position: absolute;
  top: 12px; right: 12px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(8, 22, 31, 0.62) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 40px);
  background: rgba(6, 16, 23, 0.94);
  backdrop-filter: blur(4px);
}
.lightbox[hidden] { display: none; }
.lightbox__stage {
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: grid;
  gap: 14px;
  justify-items: center;
}
.lightbox img, .lightbox video {
  max-height: 78vh;
  width: auto;
  border-radius: var(--radius-sm);
}
.lightbox__cap {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.87rem;
  text-align: center;
  max-width: 62ch;
}
.lightbox__btn {
  position: absolute;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox__btn--close { top: 18px; right: 18px; }
.lightbox__btn--prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ------------------------------------------------------------------- forms */

.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field > label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
}
.field__hint { font-size: 0.8rem; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--navy);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  width: 100%;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 150, 200, 0.16);
  outline: none;
}
.field--row { grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .field--row { grid-template-columns: 1fr; } }

.form-note { font-size: 0.84rem; color: var(--muted); margin-top: 14px; }
.form-status {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  border: 1px solid;
}
.form-status[hidden] { display: none; }
.form-status--ok { background: rgba(14, 110, 140, 0.08); border-color: rgba(14, 110, 140, 0.3); color: #0b5b74; }
.form-status--err { background: rgba(220, 43, 30, 0.07); border-color: rgba(220, 43, 30, 0.32); color: #a81d13; }

/* ------------------------------------------------------------------ donate */

.donate-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-sm);
}
.toggle {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  background: var(--mist);
  border-radius: 100px;
  margin-bottom: 22px;
}
.toggle button {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--body);
  padding: 9px 20px;
  border: 0;
  border-radius: 100px;
  background: transparent;
  cursor: pointer;
  transition: all 0.16s ease;
}
.toggle button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.amounts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.amounts button {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 15px 8px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--navy);
  cursor: pointer;
  transition: all 0.16s ease;
}
.amounts button:hover { border-color: var(--teal); }
.amounts button[aria-pressed="true"] {
  border-color: var(--cyan);
  background: rgba(0, 150, 200, 0.08);
  color: #085a74;
  box-shadow: 0 0 0 3px rgba(0, 150, 200, 0.13);
}
.amounts button small {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 5px;
}

.impact {
  font-size: 0.9rem;
  color: var(--body);
  background: var(--shell);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  margin-bottom: 20px;
  min-height: 46px;
}
.impact b { color: var(--navy); }

.paystack-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--muted);
}

.momo {
  display: grid;
  gap: 6px;
  background: var(--navy-deep);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
}
.momo .eyebrow { color: var(--sky); }
.momo b {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: 0.01em;
}
.momo span { font-size: 0.86rem; color: rgba(255, 255, 255, 0.72); }

.receipt {
  display: grid;
  gap: 12px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.receipt dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0; font-size: 0.92rem; }
.receipt dt { color: var(--muted); }
.receipt dd { margin: 0; font-weight: 600; }

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* -------------------------------------------------------------------- CTA */

.cta {
  background: linear-gradient(128deg, var(--navy-deep), #14536b);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 60px);
  text-align: center;
}
.cta h2 { color: #fff; max-width: 26ch; margin: 14px auto 16px; }
.cta p { color: rgba(255, 255, 255, 0.8); max-width: 56ch; margin: 0 auto 26px; }
.cta .btn-row { justify-content: center; }

/* ------------------------------------------------------------------ footer */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(46px, 6vw, 68px) 0 26px;
  font-size: 0.92rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: clamp(24px, 4vw, 44px);
  padding-bottom: 38px;
}
.site-footer__brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.site-footer__brand img { width: 36px; height: 36px; object-fit: contain; }
.site-footer__brand strong {
  font-family: var(--display);
  font-size: 0.98rem;
  color: #fff;
  line-height: 1.2;
}
.site-footer p { max-width: 34ch; font-size: 0.88rem; }
.site-footer h4 {
  color: #fff;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 15px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .bio { grid-template-columns: 1fr; }
  .bio__photo { position: static; max-width: 300px; }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .split, .feature { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .feature__media { min-height: 240px; order: -1; }
  .event { grid-template-columns: 1fr; }
  .event__date {
    display: flex;
    align-items: baseline;
    gap: 12px;
    text-align: left;
    padding: 0 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .event__date span { margin: 0; }
  .masonry { columns: 2 150px; }
}

@media (max-width: 520px) {
  .hero__stats { grid-template-columns: 1fr; gap: 18px; }
  .hero__stats span { max-width: none; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row .btn { width: auto; flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header, .site-footer, .cta, .nav-toggle { display: none; }
  body { background: #fff; }
}

.fieldset-reset { border: 0; padding: 0; margin: 0; }

/* Definition lists used for registration / governance facts. */
.deflist {
  margin: 16px 0 0;
  font-size: 0.92rem;
  display: grid;
  gap: 12px;
}
.deflist dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.deflist dd {
  margin: 4px 0 0;
  color: var(--body);
}
.deflist dd:last-child { margin-bottom: 0; }

/* Long addresses and email links must not push the footer columns wide. */
.site-footer a, .site-footer li { overflow-wrap: anywhere; }

/* A long unbroken string (email address, GPS code) otherwise sets the intrinsic
   minimum width of its grid column and pushes the whole page wider than the
   viewport on narrow screens. `anywhere` — not `break-word` — is what actually
   reduces min-content width during grid track sizing. */
h1, h2, h3 { overflow-wrap: break-word; }
.card h3 a, .deflist dd { overflow-wrap: anywhere; }

/* Default .split centres its columns, which leaves a large gap when one column
   is much taller than the other (e.g. a short form beside a stack of cards). */
.split--top { align-items: start; }

/* ---------------------------------------------------------------- sponsors */

.sponsor-tier + .sponsor-tier { margin-top: clamp(40px, 5vw, 64px); }
.sponsor-tier__head { max-width: 620px; margin-bottom: 28px; }
.sponsor-tier__head h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.sponsor-tier__head p { margin-top: 10px; color: var(--body); font-size: 0.95rem; }

.sponsor-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
.sponsor { margin: 0; }

.sponsor__card {
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
a.sponsor__card:hover {
  border-color: rgba(14, 110, 140, 0.45);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Logos vary wildly in shape; contain them in a consistent box. */
.sponsor__logo {
  max-width: 100%;
  max-height: 76px;
  width: auto;
  object-fit: contain;
}

/* Fallback for sponsors with no logo file — a typographic name plate. */
.sponsor__plate {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-align: center;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.sponsor__name {
  margin: 10px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
}
.sponsor__note {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.sponsor-empty {
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
  color: var(--body);
  max-width: 620px;
}
.sponsor-empty[hidden] { display: none !important; }

/* Seven nav items plus the CTA: keep each label on one line so the header does
   not grow to two rows, and tighten the horizontal padding to buy the space. */
@media (min-width: 1081px) {
  .nav a { white-space: nowrap; padding-inline: 11px; }
}
