/* ==========================================================================
   UMSS Free Clinic — design system
   Palette derived from the UMSS logo: navy + copper, on warm paper.
   ========================================================================== */

:root {
  /* Brand */
  --navy-900: #141d33;
  --navy-800: #1b2742;
  --navy-700: #27365c;
  --navy-600: #35477a;
  --navy-300: #8e9bba;
  --navy-100: #dde3ef;

  --copper-600: #8f5520; /* text-safe */
  --copper-500: #c8803f; /* fills, graphics */
  --copper-400: #d9975f; /* logo copper */
  --copper-100: #f6e6d6;

  --green-700: #1f7a5c;
  --green-100: #dcf0e7;
  --red-700: #9b2f2f;
  --red-100: #f8e4e2;

  /* Neutrals (warm) */
  --paper: #fbf8f4;
  --paper-2: #f5efe7;
  --surface: #ffffff;
  --line: #e8ddcf;
  --line-soft: #f0e8dd;
  --ink: #16203a;
  --ink-2: #44506b;
  --muted: #6b7691;

  /* Type */
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape + depth */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(20, 29, 51, .06), 0 1px 3px rgba(20, 29, 51, .04);
  --shadow: 0 2px 4px rgba(20, 29, 51, .04), 0 8px 24px -8px rgba(20, 29, 51, .12);
  --shadow-lg: 0 4px 8px rgba(20, 29, 51, .05), 0 24px 56px -16px rgba(20, 29, 51, .22);

  /* Layout */
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 7vw, 6.5rem);
}

/* ------------------------------ reset ---------------------------------- */

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

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-800);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  font-weight: 600;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-700); text-underline-offset: 3px; }
a:hover { color: var(--copper-600); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }

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

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -120%;
  z-index: 200;
  background: var(--navy-800);
  color: #fff;
  padding: .7rem 1.25rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 600;
  text-decoration: none;
  transition: translate .18s ease;
}
.skip-link:focus { translate: -50% 0; color: #fff; }

/* ------------------------------ layout --------------------------------- */

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

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--paper2 { background: var(--paper-2); }
.section--navy { background: var(--navy-800); color: #e9edf6; }
.section--navy h2, .section--navy h3 { color: #fff; }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--copper-600);
  margin: 0 0 .9rem;
}
.section--navy .eyebrow { color: var(--copper-400); }

h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.65rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }

.lede {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-2);
}
.section--navy .lede { color: #c3cce0; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.6rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); }

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

.btn {
  --btn-bg: var(--navy-700);
  --btn-fg: #fff;
  --btn-bd: var(--navy-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .85rem 1.5rem;
  min-height: 3rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.btn:hover {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn:active { transform: translateY(0); }

.btn--accent { --btn-bg: var(--copper-500); --btn-bd: var(--copper-500); color: #27190b; }
.btn--accent:hover { background: var(--copper-600); border-color: var(--copper-600); color: #fff; }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy-700); --btn-bd: var(--navy-100); }
.btn--ghost:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }

.btn--on-navy { --btn-bg: #fff; --btn-fg: var(--navy-800); --btn-bd: #fff; }
.btn--on-navy:hover { background: var(--copper-400); border-color: var(--copper-400); color: var(--navy-900); }

.btn--ghost-on-navy { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.4); }
.btn--ghost-on-navy:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }

.btn--lg { padding: 1rem 1.85rem; font-size: 1.0625rem; min-height: 3.4rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* --------------------- the three primary actions -----------------------
   Appointment, Volunteer and Donate carry the site. They always render
   together, in this order, with Donate in copper so it reads first.      */

.actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.actions--drawer { flex-direction: column; gap: .5rem; margin-top: 1.25rem; }
.actions--hero { gap: .75rem; margin-top: 1.75rem; }
.cta-band .actions, .section-head--center + .actions { justify-content: center; }
/* The three large actions need ~820px of content width to sit on one line; the
   prose above them stays narrow via its own max-width. */
.cta-band .wrap--narrow { max-width: 56rem; }
.cta-band h2 { max-width: 34rem; margin-inline: auto; }

.hero__call { margin-top: 1.1rem; font-size: .95rem; color: var(--muted); }
.hero__call a { font-weight: 700; color: var(--navy-700); }

/* 1 — Make an Appointment: solid navy */
.btn--appt { --btn-bg: var(--navy-700); --btn-bd: var(--navy-700); --btn-fg: #fff; }

/* 2 — Volunteer Sign Up / Login: outlined, same weight, clearly a peer */
.btn--volunteer {
  --btn-bg: transparent;
  --btn-fg: var(--navy-700);
  --btn-bd: var(--navy-700);
}
.btn--volunteer:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }

/* 3 — Donate: copper, the one that should catch the eye */
.btn--donate {
  --btn-bg: var(--copper-500);
  --btn-bd: var(--copper-500);
  --btn-fg: #2a1a09;
  box-shadow: 0 2px 10px -2px rgba(200, 128, 63, .55);
}
.btn--donate:hover {
  background: var(--copper-600);
  border-color: var(--copper-600);
  color: #fff;
  box-shadow: 0 4px 16px -3px rgba(143, 85, 32, .5);
}
.btn--donate svg { color: currentColor; }

/* On navy sections the outlined variants need light ink */
.section--navy .btn--volunteer, .cta-band .btn--volunteer {
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, .55);
}
.section--navy .btn--volunteer:hover, .cta-band .btn--volunteer:hover {
  background: rgba(255, 255, 255, .14);
  border-color: #fff;
}
.section--navy .btn--appt, .cta-band .btn--appt {
  --btn-bg: #fff; --btn-bd: #fff; --btn-fg: var(--navy-800);
}
.section--navy .btn--appt:hover, .cta-band .btn--appt:hover {
  background: var(--navy-100); border-color: var(--navy-100); color: var(--navy-900);
}

.icon { width: 1.25em; height: 1.25em; flex: none; stroke-width: 1.9; }

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

.topbar {
  background: var(--navy-800);
  color: #cdd6e8;
  font-size: .85rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.65rem;
  flex-wrap: wrap;
}
.topbar a { color: #fff; font-weight: 600; text-decoration: none; }
.topbar a:hover { color: var(--copper-400); }
.topbar__tag { display: inline-flex; align-items: center; gap: .5rem; }
.topbar__tag svg { width: 1.05em; height: 1.05em; color: var(--copper-400); }
.topbar__right { display: flex; align-items: center; gap: 1.1rem; }

.lang {
  display: inline-flex;
  background: rgba(255, 255, 255, .1);
  border-radius: var(--r-pill);
  padding: 2px;
  gap: 2px;
}
.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #cdd6e8;
  font: inherit;
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .04em;
  padding: .25rem .6rem;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.lang button:hover { color: #fff; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--navy-800); }

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 244, .92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
}
.brand { display: flex; align-items: center; margin-right: auto; text-decoration: none; }
.brand img { height: 2.6rem; width: auto; }

.nav { display: flex; align-items: center; gap: .15rem; }
.nav a {
  padding: .55rem .8rem;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--paper-2); color: var(--navy-800); }
.nav a[aria-current="page"] { color: var(--navy-800); box-shadow: inset 0 -2px 0 var(--copper-500); border-radius: 0; }

.masthead .btn { padding: .65rem 1.2rem; min-height: 2.75rem; font-size: .95rem; }

/* Wide screens: nav links inline, all three actions on the bar. The drawer's own
   copies of those actions (and the call button) only exist below the breakpoint. */
.masthead__nav { display: flex; align-items: center; gap: 1rem; }
.masthead__nav > .actions,
.masthead__nav > .btn--ghost { display: none; }
.masthead__actions { display: flex; align-items: center; gap: .5rem; }
.masthead__donate { display: none; }
.masthead .nav { gap: 0; }
.masthead .nav a { padding: .55rem .7rem; }

.nav-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  width: 2.9rem;
  height: 2.9rem;
  cursor: pointer;
  color: var(--navy-800);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 1.4rem; height: 1.4rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  /* Anchored to .masthead (position: sticky), so it needs no JS offset and
     stays correct through scrolling, resizing and address-bar collapse. */
  .masthead__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100dvh - 100%);
    display: block;
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding: 1rem var(--gutter) 2rem;
    overflow-y: auto;
    translate: 0 -8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, translate .18s ease, visibility .18s;
    box-shadow: var(--shadow-lg);
  }
  .masthead__nav[data-open="true"] { translate: 0; opacity: 1; visibility: visible; }
  .masthead__nav .nav { flex-direction: column; align-items: stretch; gap: .1rem; }
  .masthead__nav .nav a {
    padding: .95rem .25rem;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }
  .masthead__nav .nav a[aria-current="page"] { box-shadow: none; color: var(--copper-600); }
  .masthead__nav .btn { width: 100%; }
  /* Drawer gets the full set; the bar keeps Donate so it is never more than one tap away. */
  .masthead__nav > .actions { display: flex; }
  .masthead__nav > .btn--ghost { display: inline-flex; }
  .masthead__actions { display: none; }
  .masthead__donate { display: inline-flex; margin-left: auto; }
}

/* Very narrow phones: shrink the bar Donate so the logo keeps its room. */
@media (max-width: 400px) {
  .masthead__donate { padding: .6rem .9rem; font-size: .9rem; }
  .brand img { height: 2.1rem; }
}

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

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(130% 90% at 88% 4%, var(--copper-100) 0%, transparent 56%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  border-bottom: 1px solid var(--line);
}
.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.75rem, 6vw, 5rem);
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
}

.hero h1 { margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: var(--copper-600); }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  margin-top: 1.75rem;
  padding: 0;
  list-style: none;
}
.trust li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  padding: .4rem .85rem .4rem .65rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-2);
}
.trust svg { width: 1.05rem; height: 1.05rem; color: var(--green-700); flex: none; }

.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.hero__frame {
  position: absolute;
  inset: -.75rem -.75rem auto auto;
  width: 46%;
  aspect-ratio: 1;
  border: 2px solid var(--copper-400);
  border-radius: var(--r-lg);
  z-index: -1;
}

/* live status card */
.status-card {
  position: relative;
  margin: -3.25rem 1rem 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .9rem;
}
@media (min-width: 900px) {
  .status-card { margin: -2.5rem 2rem 0 -1.5rem; }
}
.status-card__dot {
  width: .8rem; height: .8rem;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
  box-shadow: 0 0 0 4px var(--line-soft);
}
.status-card[data-state="open"] .status-card__dot { background: var(--green-700); box-shadow: 0 0 0 4px var(--green-100); }
.status-card[data-state="closed"] .status-card__dot { background: var(--red-700); box-shadow: 0 0 0 4px var(--red-100); }
.status-card__label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy-800);
  line-height: 1.25;
}
.status-card__sub { font-size: .875rem; color: var(--muted); }
.status-card__link { margin-left: auto; font-size: .875rem; font-weight: 600; white-space: nowrap; }

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-2); font-size: .975rem; }

.card--link { text-decoration: none; color: inherit; display: block; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--navy-300); color: inherit; }
.card--link .card__more { display: inline-flex; align-items: center; gap: .35rem; margin-top: .85rem; font-size: .9rem; font-weight: 700; color: var(--navy-700); }
.card--link:hover .card__more { color: var(--copper-600); }
.card--link .card__more svg { width: 1em; height: 1em; transition: translate .16s ease; }
.card--link:hover .card__more svg { translate: 3px 0; }

.card__icon {
  width: 2.9rem; height: 2.9rem;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--copper-100);
  color: var(--copper-600);
  margin-bottom: 1rem;
}
.card__icon svg { width: 1.45rem; height: 1.45rem; }
.card__icon--navy { background: var(--navy-100); color: var(--navy-700); }
.card__icon--green { background: var(--green-100); color: var(--green-700); }

/* numbered steps */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1.1rem; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 3.4rem;
  margin: 0;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -.1rem;
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--navy-700);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}
.steps h3 { font-size: 1.1rem; margin-bottom: .2em; }
.steps p { color: var(--ink-2); font-size: .975rem; }

/* ------------------------------ hours ---------------------------------- */

.hours { list-style: none; padding: 0; margin: 0; }
.hours li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: .7rem .75rem;
  border-radius: var(--r-sm);
  border-bottom: 1px solid var(--line-soft);
  font-size: .975rem;
}
.hours li:last-child { border-bottom: 0; }
.hours__day { font-weight: 600; color: var(--ink); }
.hours__time { color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: right; }
.hours li[data-closed="true"] .hours__time { color: var(--muted); }
.hours li[data-today="true"] {
  background: var(--copper-100);
  border-bottom-color: transparent;
}
.hours li[data-today="true"] .hours__day::after {
  content: "Today";
  margin-left: .55rem;
  padding: .1rem .45rem;
  border-radius: var(--r-pill);
  background: var(--copper-500);
  color: #fff;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  vertical-align: middle;
}
html[lang="es"] .hours li[data-today="true"] .hours__day::after { content: "Hoy"; }

.note {
  display: flex;
  gap: .75rem;
  padding: 1rem 1.15rem;
  border-radius: var(--r);
  background: var(--navy-100);
  border: 1px solid #ccd6e9;
  font-size: .95rem;
  color: var(--navy-800);
}
.note svg { width: 1.3rem; height: 1.3rem; flex: none; margin-top: .15rem; color: var(--navy-700); }
.note p { margin: 0; }
.note strong { color: var(--navy-900); }
.note--accent { background: var(--copper-100); border-color: #e8d2ba; color: #4b3115; }
.note--accent svg { color: var(--copper-600); }
.note--alert { background: var(--red-100); border-color: #eccfcb; color: #5c2222; }
.note--alert svg { color: var(--red-700); }

/* ------------------------------ eligibility ----------------------------- */

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.checklist li {
  display: flex;
  gap: .8rem;
  margin: 0;
  align-items: flex-start;
}
.checklist svg {
  width: 1.4rem; height: 1.4rem;
  flex: none;
  margin-top: .15rem;
  color: var(--green-700);
}
.checklist strong { display: block; color: var(--navy-800); }
.checklist span { color: var(--ink-2); font-size: .95rem; }

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

.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--media-first > :first-child { order: 2; }
}
.split__media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

/* ------------------------------ locations -------------------------------- */

.loc {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}
.loc__city {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy-800);
}
.loc__addr { font-size: .975rem; color: var(--ink-2); font-style: normal; }
.loc__links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .85rem; font-size: .9rem; font-weight: 600; }
.loc__links a { display: inline-flex; align-items: center; gap: .3rem; text-decoration: none; }
.loc__links svg { width: 1em; height: 1em; }

/* ------------------------------ stats ----------------------------------- */

.stats { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.stats li { margin: 0; }
.stats dt { font-size: .9rem; color: var(--navy-300); font-weight: 600; }
.stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
}

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

.cta-band {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%);
  color: #e9edf6;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: auto -6rem -8rem auto;
  width: 22rem; height: 22rem;
  border: 2px solid rgba(217, 151, 95, .22);
  border-radius: var(--r-lg);
  rotate: 18deg;
  pointer-events: none;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c3cce0; }

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

.site-footer {
  background: var(--navy-900);
  color: #aeb9d0;
  font-size: .95rem;
  padding-block: clamp(2.5rem, 5vw, 4rem) 0;
}
.site-footer h3 {
  color: #fff;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer a { color: #d6ddea; text-decoration: none; }
.site-footer a:hover { color: var(--copper-400); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.footer__grid {
  display: grid;
  gap: 2.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  padding-bottom: 2.5rem;
}
.footer__brand img { height: 2.4rem; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: .95; }
.footer__brand p { font-size: .9rem; max-width: 24rem; }
.footer__social { display: flex; gap: .6rem; margin-top: 1.1rem; }
.footer__social a {
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  transition: background .15s ease, border-color .15s ease;
}
.footer__social a:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.footer__social svg { width: 1.1rem; height: 1.1rem; }

.emergency {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 2.25rem;
  background: rgba(155, 47, 47, .22);
  border: 1px solid rgba(233, 140, 132, .4);
  border-radius: var(--r);
  color: #ffe0dc;
  font-weight: 600;
}
.emergency svg { width: 1.35rem; height: 1.35rem; flex: none; color: #ff9d94; }
.emergency a { color: #fff; text-decoration: underline; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  font-size: .85rem;
  color: #8694b0;
}

/* ------------------------------ misc ------------------------------------ */

.prose > * + h2 { margin-top: 2.5rem; }
.prose > * + h3 { margin-top: 1.75rem; }

.tag {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: var(--r-pill);
  background: var(--green-100);
  color: var(--green-700);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.tag--copper { background: var(--copper-100); color: var(--copper-600); }

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

.page-hero {
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 4.25rem);
}
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.page-hero p { max-width: 44rem; }

.breadcrumb { font-size: .875rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { color: var(--copper-600); }

/* link list used for "useful links" */
.linklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.linklist li { margin: 0; }
.linklist a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem .25rem;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  font-weight: 600;
  color: var(--navy-800);
  font-size: .975rem;
}
.linklist a:hover { color: var(--copper-600); }
.linklist svg { width: 1.05rem; height: 1.05rem; color: var(--navy-300); flex: none; }
.linklist a:hover svg { color: var(--copper-500); }

/* donation amount picker */
.amounts { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.25rem; }
.amounts button {
  appearance: none;
  min-width: 5.5rem;
  padding: .8rem 1.1rem;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font: inherit;
  font-weight: 700;
  color: var(--navy-800);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.amounts button:hover { border-color: var(--navy-300); }
.amounts button[aria-pressed="true"] {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: #fff;
}
.impact {
  min-height: 3.25rem;
  padding: .85rem 1.1rem;
  border-radius: var(--r-sm);
  background: var(--copper-100);
  border: 1px solid #e8d2ba;
  color: #4b3115;
  font-size: .95rem;
}

/* mock/demo ribbon */
.demo-ribbon {
  background: #2b2316;
  color: #f4e4cf;
  font-size: .82rem;
  text-align: center;
  padding: .5rem var(--gutter);
  line-height: 1.5;
}
.demo-ribbon strong { color: #ffd9a8; }


/* ------------------------- partner logo wall ---------------------------
   Mismatched third-party marks only read as a set when each sits in an
   identical container; per-logo heights come from UMSS.partners[].h.      */

.partners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}
@media (min-width: 620px)  { .partners { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1000px) { .partners { grid-template-columns: repeat(6, 1fr); } }

.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  min-height: 8.75rem;
  padding: 1.35rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.partner:hover {
  border-color: var(--navy-300);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.partner img {
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.partner__name {
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  color: var(--muted);
  transition: color .16s ease;
}
.partner:hover .partner__name { color: var(--navy-700); }

.partners-also {
  margin-top: 1.5rem;
  font-size: .95rem;
  color: var(--muted);
  text-align: center;
}


/* ----------------------------- Zeffy embed -----------------------------
   Zeffy's form is a fixed-ratio iframe; it needs a tall box or the footer
   of their form gets clipped (the same gotcha Wix users hit).            */

.zeffy {
  position: relative;
  width: 100%;
  min-height: 34rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.zeffy iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 34rem;
  border: 0;
}

.zeffy--empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: .4rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  min-height: 22rem;
  background: linear-gradient(170deg, var(--copper-100) 0%, var(--surface) 55%);
  border-color: var(--line);
}
.zeffy__badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .7rem;
  margin-bottom: .6rem;
  border-radius: var(--r-pill);
  background: var(--copper-100);
  color: var(--copper-600);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.zeffy__badge svg { width: 1em; height: 1em; }
.zeffy__open {
  margin-top: .75rem;
  font-size: .9rem;
  text-align: center;
}
.zeffy--empty h3 { margin-bottom: .3em; }
.zeffy--empty p { color: var(--ink-2); font-size: .95rem; max-width: 34rem; }
.zeffy--empty code {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .1em .35em;
  font-size: .9em;
}
.zeffy--empty .btn { margin-top: 1rem; }
