/* SRCA (Solomon Rise & Care Association) site styles, matching the team's mockups.
   Phone first (low-cost Android), then wider screens.
   Palette (text pairs checked for WCAG AA contrast):
     navy #123B5C · teal #1B6E6E · coral #C2412D (text) / #D24A35 (art) · green #3E7A31
     tints: teal #E5F2EF · coral #FCEBE6 · green #EAF3E2 · page #FAF8F4                 */

:root {
  --navy: #102A43;
  --lagoon: #0051BA;       /* teal: links, buttons, Education */
  --wave: #55C2FF;
  --sun: #FCD116;
  --sun-pattern: #FFE681;
  --coral: #C2412D;        /* Basic Needs, outline buttons */
  --coral-ink: #A3361F;    /* coral text on the coral tint */
  --green: #007A3D;        /* Job Creation */
  --teal-tint: #E8F3FC;
  --coral-tint: #FCEBE6;
  --green-tint: #EAF3E2;
  --footer-wave-height: 36px;
  --hero-diamonds: url("/img/home-hero-diamonds.svg?v=2");
  --sand: #F9F5E8;
  --paper: #FFFFFF;
  --ink: #1E2A36;
  --muted: #56616E;
  --line: #E3E7EA;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(18, 59, 92, .05), 0 10px 26px -16px rgba(18, 59, 92, .25);
  --font: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sand); color: var(--ink); font: 16px/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lagoon); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.icon { flex: none; vertical-align: middle; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.section { padding: 40px 0; }
.section-tight { padding: 24px 0; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 46rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--lagoon); margin-bottom: 8px; }
.muted { color: var(--muted); }
.note { font-size: .9rem; color: var(--muted); background: var(--paper); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 14px; }

/* ---------- Header + navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.25rem; letter-spacing: .06em; }
.brand img { width: 36px; height: auto; flex-shrink: 0; }
.menu-toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 700; color: var(--navy); cursor: pointer; }
.site-nav { display: none; }
.site-nav.open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.site-nav ul { list-style: none; margin: 0; padding: 8px 16px 16px; }
.site-nav a { display: block; padding: 12px 4px; text-decoration: none; color: var(--ink); font-weight: 700; border-bottom: 1px solid var(--line); }
.site-nav a:not([data-tab])[aria-current="page"] { color: var(--lagoon); }
.site-nav .nav-cta { margin-top: 12px; border: 0; }

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .site-nav, .site-nav.open { display: block; position: static; box-shadow: none; border: 0; background: none; }
  .site-nav ul { display: flex; align-items: center; gap: 4px; padding: 0; }
  .site-nav a { border: 0; padding: 8px 10px; border-radius: 8px; font-size: .95rem; }
  .site-nav a:hover { background: var(--sand); }
  .site-nav .nav-cta { margin: 0 0 0 6px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px; border: 0; background: var(--lagoon); color: #fff; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--navy); color: #fff; }
.btn-sun { background: var(--sun); color: var(--navy); }
.btn-sun:hover { background: #E8962B; color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-small { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero .wrap { position: relative; padding-top: 48px; padding-bottom: 72px; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero p { color: #DCE7EE; font-size: 1.1rem; max-width: 38rem; }
.hero-waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 56px; }
/* Phones: the sun is a faint glow behind the text (white on solid gold would be unreadable).
   Wide screens: a solid sun to the right, clear of the text. */
.hero-sun { position: absolute; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%; background: var(--sun); opacity: .18; }
.hero .wrap > * { position: relative; }
@media (min-width: 900px) { .hero .wrap { padding-top: 80px; padding-bottom: 110px; } .hero-sun { right: 6%; top: 60px; width: 240px; height: 240px; opacity: .95; } .hero h1, .hero p { max-width: 34rem; } }
.page-hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: 32px; padding-bottom: 28px; }

/* ---------- Cards + grids ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .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: 20px; box-shadow: var(--shadow); }
.card h3 { margin-top: 10px; }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
a.card:where(:not(.news-card)):hover { border-color: var(--wave); transform: translateY(-2px); color: inherit; }
.card-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #E3F1EF; color: var(--lagoon); }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--lagoon); margin-top: 6px; }

/* Headline numbers */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: -40px; position: relative; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); margin-top: -56px; } }
.stat { background: var(--paper); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.stat strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .92rem; }
.as-of { font-size: .85rem; color: var(--muted); margin-top: 10px; }

/* Lists of people / partners / documents */
.person { display: flex; gap: 14px; align-items: flex-start; }
.avatar { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--sand); color: var(--navy); font-weight: 800; border: 2px solid var(--sun); }
.tag { display: inline-block; font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #E3F1EF; color: var(--lagoon); text-transform: capitalize; }
.tag-planned { background: #FDF0DC; color: #8A5300; }
.tag-completed { background: #E7ECF2; color: var(--navy); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }

/* Progress bar (business self-sustainability) */
.progress { height: 10px; background: var(--sand); border-radius: 999px; overflow: hidden; margin: 6px 0 4px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--wave), var(--lagoon)); border-radius: 999px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; color: var(--muted); margin: 8px 0; }
.meta span { display: inline-flex; align-items: center; gap: 4px; }

.business-grid { grid-auto-rows: 1fr; }
.business-card { display: flex; flex-direction: column; }
.business-card-details { margin-top: auto; }
.business-card-start { flex-basis: 100%; }
.business-card-caption { display: block; }
@media (min-width: 640px) {
  /* Leave room for captions to wrap without shifting the progress bars. */
  .business-card-caption { min-block-size: 2lh; }
}

/* Map */
.map { height: 420px; border-radius: var(--radius); border: 1px solid var(--line); background: #CFE6E4; }
@media (min-width: 900px) { .map { height: 540px; } }
.map-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.map-filter { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.map-filter:hover { border-color: var(--navy); }
.map-filter.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.map-filter:focus-visible, .map-show:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.map-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--muted); flex: none; }
.map-count { font-size: .8rem; opacity: .75; }
.map-note { font-size: .88rem; margin: 8px 0 0; }
.map-list-actions { display: inline-flex; align-items: center; gap: 10px; }

/* CTA band */
.cta { background: var(--lagoon); color: #fff; border-radius: var(--radius); padding: 28px 22px; }
.cta h2 { color: #fff; }
.cta p { color: #E3F1EF; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; max-width: 520px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid #CFC6B6; border-radius: 10px; background: var(--paper); font: inherit; color: var(--ink); }
.field input:focus, .field select:focus { border-color: var(--lagoon); outline: 3px solid #BFE3DF; outline-offset: 0; }
.alert { padding: 12px 14px; border-radius: 10px; background: #FBE9E3; color: var(--coral); font-weight: 700; }

/* ---------- Footer ---------- */
.footer-waves { display: block; width: 100%; height: var(--footer-wave-height); background: var(--paper); }
.footer-waves-green { background: var(--green-tint); }
.form-expired,
.form-expired + .footer-waves { background: var(--lagoon); }
.site-footer {
  position: relative;
  overflow: clip;
  background: var(--navy);
  color: #DCE7EE;
  font-size: .95rem;
  line-height: 1.5;
}
.site-footer::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28px;
  background: var(--wave);
  mask: url("/img/footer-diamonds.svg") center / 21px 28px round no-repeat;
  opacity: .15;
  pointer-events: none;
}
.site-footer .wrap { padding-block: 40px 40px; }
.footer-columns { display: grid; align-items: start; gap: 16px 28px; }
@media (min-width: 600px) {
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .footer-columns { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.3fr); }
}
.site-footer p { margin: 0; }
.site-footer a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--sun); text-decoration: underline; }
.footer-heading { margin: 0 0 10px; color: #fff; font-size: 1.05rem; }
.footer-heading:not(.footer-brand-heading)::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  margin-top: 8px;
  background: var(--sun);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 80px; height: 80px; flex: none; padding: 8px; object-fit: contain; border-radius: 50%; background: var(--paper); }
.footer-brand strong { display: block; margin-bottom: 3px; font-size: 1.35rem; }
.site-footer ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.footer-contact li { display: flex; align-items: baseline; gap: 8px; }
.footer-contact .icon { align-self: flex-start; margin-top: 3px; }
.footer-phone { display: block; }
.site-footer .footer-disclosure { margin-block: 8px 6px; color: #ABBCCB; font-size: .75rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: .85rem;
}
.footer-login { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; }

/* ---------- Admin ---------- */
.admin-body { background: #F2F4F6; }
.admin-header { background: var(--navy); color: #fff; }
.admin-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 58px; gap: 12px; }
.admin-header .brand { color: #fff; }
.admin-header form { margin: 0; }
.admin-header .who { font-size: .9rem; color: #DCE7EE; }
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { display: grid; gap: 8px; justify-items: start; background: var(--paper); border: 1px solid #DDE2E7; border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink); min-height: 130px; }
.tile:hover { border-color: var(--wave); color: var(--ink); }
.tile strong { color: var(--navy); }
.tile small { color: var(--muted); }
.tile.soon { opacity: .6; }
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid #DDE2E7; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #E8ECEF; vertical-align: middle; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #F7F8FA; }
td form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0; }
td select { min-height: 36px; border-radius: 8px; border: 1.5px solid #CFC6B6; padding: 0 8px; font: inherit; }
.auth-card { max-width: 420px; margin: 48px auto; }

/* ---------- Utilities (instead of inline styles, which the security policy blocks) ---------- */
.m0 { margin: 0; }
.mb4 { margin-bottom: 4px; } .mb6 { margin-bottom: 6px; } .mb14 { margin-bottom: 14px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt18 { margin-top: 18px; } .mt20 { margin-top: 20px; } .mt28 { margin-top: 28px; }
.narrow { max-width: 560px; }
.center-items { align-items: center; }
.on-dark, .on-dark:hover { color: #fff; }
.on-sun { color: var(--sun); }
.ghost-light { color: #fff; border-color: #fff; }
.ghost-light:hover { background: #fff; color: var(--navy); }
h1 .card-icon { vertical-align: middle; margin-right: 8px; }
.admin-user { display: flex; align-items: center; gap: 12px; }
.admin-title { font-size: 1.8rem; }
.admin-title-sm { font-size: 1.6rem; }
.admin-subtitle { font-size: 1.3rem; }

/* Native progress bar (business self-sustainability) */
progress.progress { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border: 0; background: var(--sand); }
progress.progress::-webkit-progress-bar { background: var(--sand); border-radius: 999px; }
progress.progress::-webkit-progress-value { background: linear-gradient(90deg, var(--wave), var(--lagoon)); border-radius: 999px; }
progress.progress::-moz-progress-bar { background: linear-gradient(90deg, var(--wave), var(--lagoon)); border-radius: 999px; }

/* Admin header on phones: keep the logo and Log out on one line. */
.admin-header .btn { white-space: nowrap; }
@media (max-width: 600px) {
  .admin-header .who { display: none; }
  .admin-header .brand { font-size: 1.05rem; }
}

/* =====================================================================
   Mockup design (Home, Our Impact, Our Work). Overrides earlier rules.
   ===================================================================== */
body { background: var(--paper); }

/* ---------- Header: logo lockup + menu with drop-downs ---------- */
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.lockup img { width: 42px; height: auto; flex-shrink: 0; }
.lockup-abbr { font-weight: 800; font-size: 1.45rem; letter-spacing: .02em; }
.lockup-name { display: none; border-left: 2px solid var(--line); padding-left: 10px; font-weight: 700; font-size: .82rem; line-height: 1.2; max-width: 12rem; }
@media (min-width: 420px) { .lockup-name { display: block; } }

.site-header .lockup img { width: auto; height: 52px; }
.site-header .lockup-abbr { font-size: 1.55rem; white-space: nowrap; }
.site-header .lockup-name { display: block; font-size: .92rem; max-width: none; }
.lockup-name > span { display: block; white-space: nowrap; }

@media (max-width: 419px) {
  .site-header .wrap { gap: 8px; padding-inline: 12px; }
  .site-header .lockup { gap: 6px; }
  .site-header .lockup img { height: 42px; }
  .site-header .lockup-abbr { font-size: 1.45rem; }
  .site-header .lockup-name { padding-left: 6px; font-size: .85rem; }
  .site-header .menu-toggle { flex-shrink: 0; }
}

@media (min-width: 900px) {
  .site-header .wrap { min-height: 87px; }
  .site-header .lockup img { height: 68px; }
  .site-header .lockup-abbr { font-size: 1.65rem; }
  .site-nav > ul { gap: 2px; }
  .site-nav > ul > li > a { display: flex; align-items: center; min-height: 87px; font-weight: 700; padding: 3px 12px 0; border-radius: 0; border-bottom: 3px solid transparent; }
  .site-nav > ul > li > a:hover { background: none; }
  .site-nav > ul > li > a:not([data-tab]):hover { color: var(--lagoon); }
  .site-nav > ul > li > a:not([data-tab])[aria-current="page"] { color: var(--navy); border-bottom-color: var(--lagoon); }
  .site-nav .nav-cta { display: none; }
}

.site-nav a[data-tab] { --nav-underline: var(--lagoon); color: var(--navy); }
.site-nav a:is([data-tab="work"], [data-tab="involved"]) { --nav-underline: var(--green); }
.site-nav a[data-tab="impact"] { --nav-underline: var(--sun); }
.site-nav a[data-tab="about"] { --nav-underline: var(--coral); }
.site-nav a[data-tab]:is(:hover, [aria-current="page"]) { border-bottom-color: var(--nav-underline); }

/* ---------- Buttons ---------- */
.btn-outline { background: var(--paper); color: var(--coral); border: 2px solid var(--coral); }
.btn-outline:hover { background: var(--coral); color: #fff; }

/* ---------- Hero diamond strip ---------- */

:is(.home-hero, .interior-hero) {
  --diamond-strip: 40px;
}

@media (min-width: 900px) {
  :is(.home-hero, .interior-hero) {
    --diamond-strip: clamp(68px, 10vw, 110px);
  }
}

.home-hero .wrap::before,
.interior-hero::before {
  --diamond-repeat: var(--hero-diamonds) left center / 100% auto repeat-y;
  content: "";
  position: absolute;
  inset: 0 auto var(--diamond-bottom, 0px) 0;
  width: var(--diamond-strip);
  opacity: .38;
  pointer-events: none;
}

.interior-hero::before {
  background: var(--diamond-color);
  /* Soften partial tiles where section heights vary with the copy. */
  mask:
    var(--diamond-repeat),
    linear-gradient(to bottom, transparent, #000 18px, #000 calc(100% - 18px), transparent);
  mask-composite: intersect;
}

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

.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--lagoon);
  color: #fff;
}

.home-hero-photo {
  width: 100%;
  height: auto;
}

.home-hero .wrap {
  position: relative;
  max-width: none;
  padding: 24px 24px 64px calc(var(--diamond-strip) + 12px);
}

.home-hero .wrap::before {
  background: var(--diamond-repeat);
}

.home-hero-copy {
  max-width: 460px;
}

.home-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  margin-bottom: 12px;
}

.home-hero .eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--sun);
}

.home-hero h1 {
  color: inherit;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  margin-bottom: 16px;
}

.home-hero p {
  max-width: 31rem;
  margin-bottom: 22px;
}

.home-hero .btn {
  border-radius: 999px;
}

.home-hero-secondary {
  border: 1.5px solid #fff;
  background: transparent;
}

.home-hero-secondary:hover {
  background: #fff;
  color: var(--navy);
}

.home-hero-wave {
  position: absolute;
  bottom: -1px;
  width: 100%;
  height: 44px;
  pointer-events: none;
}

@media (min-width: 900px) {
  .home-hero {
    --copy-inset: max(calc(var(--diamond-strip) + 6px), calc((100% - 1120px) / 2 + 22px));
    display: grid;
    min-height: max(440px, calc(39vw - 60px));
  }

  .home-hero-photo {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: -1;
    width: 60%;
    height: 100%;
    object-fit: cover;
    object-position: center 74%;
    mask-image: linear-gradient(90deg, transparent, #000 4%);
  }

  /* Match the original photo mask with a separately animated blue overlay. */
  .home-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 0 40%;
    background: linear-gradient(90deg, var(--lagoon) 4%, rgb(0 81 186 / .88) 10%, rgb(0 81 186 / .5) 18%, rgb(0 81 186 / .12) 26%, transparent 32%);
    pointer-events: none;
  }

  .home-hero .wrap {
    display: grid;
    align-content: center;
    padding: 40px 55% 40px var(--copy-inset);
  }

  .home-hero-wave {
    height: 104px;
  }
}

/* ---------- Pillar cards (teal / coral / green) ---------- */
.pillar-cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .pillar-cards { grid-template-columns: repeat(3, 1fr); } }
.pcard { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); text-decoration: none; color: var(--ink); border: 1px solid transparent; transition: transform .15s, box-shadow .15s; }
a.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.pcard h3 { margin: 0 0 4px; font-size: 1.15rem; }
.pcard p { margin: 0; font-size: .95rem; }
.pcard .pc-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--paper); }
.theme-teal { background: var(--teal-tint); border-color: #CBE5DF; }
.theme-teal .pc-icon, .theme-teal h3 { color: var(--lagoon); }
.theme-coral { background: var(--coral-tint); border-color: #F5D3C9; }
.theme-coral .pc-icon, .theme-coral h3 { color: var(--coral-ink); }
.theme-green { background: var(--green-tint); border-color: #D3E6C6; }
.theme-green .pc-icon, .theme-green h3 { color: var(--green); }

/* ---------- Homepage pillar section ---------- */

.page-section.home-pillars {
  background: var(--sand);
  padding: 24px 0 32px;
}

.home-pillars .section-heading {
  text-align: center;
  margin-bottom: 18px;
}

.home-pillars .section-heading .eyebrow,
.home-pillars .section-heading h2 { margin-bottom: 4px; }
.home-pillars .section-heading p { margin: 0; }

.home-pillars .pillar-cards {
  gap: 16px;
  grid-auto-rows: 1fr;
}

@media (min-width: 760px) {
  .home-pillars .pillar-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.home-pillars .pcard {
  --pillar-accent: var(--navy);
  position: relative;
  overflow: hidden;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
}

.home-pillars .theme-teal {
  --pillar-accent: var(--lagoon);
  background: #E1F3FF;
  border-color: #C5E2F5;
}

.home-pillars .theme-coral {
  --pillar-accent: #805B00;
  background: #FFF4D2;
  border-color: #E8D9A5;
}

.home-pillars .theme-green { --pillar-accent: var(--green); }

.home-pillar-frame { overflow: hidden; }

.home-pillars .home-pillar-photo {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.home-pillars .home-pillar-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
}

.home-pillars .home-pillar-copy {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-width: 0;
  overflow-wrap: anywhere;
}

.home-pillars .pc-icon,
.home-pillars .pcard h3,
.home-pillars .home-pillar-explore { color: var(--pillar-accent); }

.home-pillars .pc-icon { width: 44px; height: 44px; }
.home-pillars .pcard p { line-height: 1.45; }

.home-pillars .home-pillar-explore {
  margin-top: auto;
  padding-top: 10px;
  font-size: .9rem;
  font-weight: 800;
}

.home-pillars .pcard:is(:hover, :focus-visible) .home-pillar-explore {
  text-decoration: underline;
}

/* Rotate the hero's diamond strip into the corner and tint it with the card accent. */
.home-pillars .pcard::after {
  content: "";
  position: absolute;
  right: -12px;
  bottom: -25px;
  width: 74px;
  height: 110px;
  background: var(--pillar-accent, var(--lagoon));
  mask: var(--hero-diamonds) center / contain no-repeat;
  transform: rotate(180deg);
  opacity: .12;
  pointer-events: none;
}

/* ---------- Home "Our Impact" strip ---------- */
.impact-strip { display: grid; gap: 18px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
@media (min-width: 900px) { .impact-strip { grid-template-columns: 1.1fr 1.6fr 1.5fr; } }
.impact-strip h2 { margin-bottom: 6px; }
.underline-coral::after { content: ""; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--coral); margin-top: 8px; }
.istats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.istat .icon { color: var(--lagoon); }
.istat > span { font-size: .85rem; color: var(--muted); font-weight: 700; }
.update-card { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; background: var(--sand); border-radius: 12px; padding: 10px; }
.update-card img { width: 110px; height: 84px; object-fit: cover; border-radius: 8px; }
.update-card small { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); }
.update-card strong { display: block; color: var(--navy); line-height: 1.25; margin: 2px 0 4px; }
.update-card p { margin: 0 0 4px; font-size: .88rem; color: var(--muted); }

/* ---------- Homepage impact section ---------- */

/* ---------- Homepage impact section ---------- */

/* ---------- Homepage impact strip ---------- */

.page-section.home-impact {
  background: #FFFFFF;
  border-block-start: 1px solid var(--line);
  padding: 28px 0;
}

/* Arrange heading, statistics and button horizontally */
.home-impact .wrap {
  display: grid;
  grid-template-columns: 1.2fr 2fr auto;
  align-items: center;
  column-gap: 28px;
  row-gap: 8px;
}

/* Heading and description */
.home-impact .section-heading {
  text-align: left;
  margin: 0;
}

.home-impact .section-heading h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 6px 0;
}

.home-impact .section-heading p {
  font-size: 0.9rem;
  margin: 0;
}

/* Statistics layout */
.home-impact .istats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.home-impact .istat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  box-shadow: inset 1px 0 #D9D5C9;
}

/* Statistic numbers */
.home-impact .istat strong {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}

.stat-number {
  display: grid;
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stat-number::before,
.stat-number > [data-count] {
  grid-area: 1 / 1;
}

/* Size the number slot using the formatted final value, including separators. */
.stat-number::before {
  content: attr(data-final);
  visibility: hidden;
}

.home-impact .istat > span {
  font-size: 0.85rem;
  text-align: center;
}

/* Compact icons above each statistic */
.home-impact .istat svg {
  display: block;
  width: 26px;
  height: 26px;
  margin-bottom: 4px;
}

/* Blue: projects */
.home-impact .istat:nth-child(1) strong,
.home-impact .istat:nth-child(1) svg {
  color: var(--lagoon);
}

/* Green: people served */
.home-impact .istat:nth-child(2) strong,
.home-impact .istat:nth-child(2) svg {
  color: var(--green);
}

/* Gold: local jobs */
.home-impact .istat:nth-child(3) strong,
.home-impact .istat:nth-child(3) svg {
  color: #805B00;
}

/* Reporting date below the statistics */
.home-impact .as-of {
  grid-column: 2;
  grid-row: 2;
  text-align: center;
  margin: 0;
  font-size: 0.75rem;
}

/* Explore our impact button */
.home-impact .btn {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  margin: 0;
  white-space: nowrap;
}

/* Responsive layout for smaller screens */
@media (max-width: 900px) {
  .home-impact .wrap {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }

  .home-impact .section-heading {
    text-align: center;
  }

  .home-impact .as-of,
  .home-impact .btn {
    grid-column: auto;
    grid-row: auto;
    justify-self: center;
  }

  .home-impact .istat:first-child {
    box-shadow: none;
  }
}

/* Reduce spacing on mobile */
@media (max-width: 600px) {
  .home-impact .istats {
    gap: 4px;
  }

  .home-impact .istat {
    padding: 6px;
  }

  .home-impact .istat strong {
    font-size: 1.75rem;
  }

  .home-impact .istat > span {
    font-size: 0.8rem;
  }
}

/* ---------- Get Involved and pillar calls to action ---------- */
.home-involved {
  --cta-pattern-width: 0px;
  position: relative;
  isolation: isolate;
  padding-block: clamp(24px, 5vw, 44px);
  background: var(--pillar-tint, var(--green-tint));
  text-align: center;
}

.home-involved > .wrap {
  position: relative;
  z-index: 1;
}

.home-involved::before,
.home-involved::after {
  content: "";
  position: absolute;
  inset-block: 0 calc(-1 * var(--cta-wave-overlap, 0px));
  width: var(--cta-pattern-width, 40px);
  background: var(--cta-pattern-fill, var(--green));
  mask: var(--hero-diamonds) var(--cta-pattern-offset, 0px)
    calc(50% - var(--cta-wave-overlap, 0px) / 2) / var(--cta-pattern-size, 100%) auto
    var(--cta-pattern-repeat, no-repeat);
  opacity: var(--cta-pattern-opacity, .38);
  pointer-events: none;
}

.home-involved::before { left: 0; }
.home-involved::after { right: 0; transform: scaleX(-1); }

/* Continue the backdrop and pattern under the transparent crest of the waves. */
main:has(+ .footer-waves-green) > .home-involved:last-child,
.home-involved:has(+ .footer-waves-green) {
  --cta-wave-overlap: var(--footer-wave-height);
  box-shadow: 0 var(--cta-wave-overlap) var(--pillar-tint, var(--green-tint));
}

main:has(> .home-involved:last-child) + .footer-waves-green,
.home-involved + .footer-waves-green {
  position: relative;
  z-index: 1;
  background: transparent;
}

@media (min-width: 1000px) {
  .home-involved {
    --cta-pattern-width: min(220px, calc((100% - 820px) / 2));
    --cta-pattern-fill: linear-gradient(to right, var(--pillar-accent-ink, var(--green)), transparent);
    --cta-pattern-offset: -14px;
    --cta-pattern-size: clamp(132px, 12vw, 152px);
    --cta-pattern-opacity: .16;
  }
}

.home-involved-intro {
  margin-bottom: 8px;
}

.home-involved-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 4px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--pillar-accent-ink, var(--green));
}

.home-involved .eyebrow {
  color: var(--pillar-accent-ink, var(--green));
  margin-bottom: 4px;
}

.home-involved h2 {
  margin-bottom: 6px;
}

.home-involved p {
  margin: 0;
  color: var(--muted);
}

.home-involved-cta {
  background: var(--pillar-accent, var(--green));
  color: var(--pillar-button-ink, #fff);
}

.home-involved-cta:hover {
  background: var(--navy);
  color: #fff;
}

/* ---------- Page title bar (Impact) ---------- */
.title-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 28px 0 18px; }
.title-bar h1 { margin: 0; }
.title-bar p { margin: 4px 0 0; color: var(--muted); }
.as-of-badge { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: .9rem; font-weight: 700; color: var(--navy); background: var(--paper); }

/* ---------- Impact: map + results ---------- */
.impact-grid { display: grid; gap: 18px; }
@media (min-width: 1000px) { .impact-grid { grid-template-columns: 1.05fr 1fr; align-items: start; } }
.panel-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.panel-card > h2 { font-size: 1.2rem; margin-bottom: 12px; }
.panel-card .map { height: 340px; }
@media (min-width: 1000px) { .panel-card .map { height: 420px; } }
.results-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.results-table th { background: var(--navy); color: #fff; text-transform: none; letter-spacing: 0; font-size: .82rem; padding: 10px; }
.results-table th:first-child { border-top-left-radius: 8px; } .results-table th:last-child { border-top-right-radius: 8px; }
.results-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.results-table td:first-child { font-weight: 700; color: var(--navy); }
.results-table td:last-child { white-space: nowrap; color: var(--muted); }
.source-note { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; color: var(--muted); background: var(--sand); border-radius: 10px; padding: 10px 12px; margin-top: 12px; }
@media (max-width: 640px) {
  .results-table thead { display: none; }
  .results-table tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .results-table td { display: block; border: 0; padding: 2px 0; white-space: normal !important; }
}

/* ---------- Our Work ---------- */
.banner { position: relative; overflow: hidden; background: var(--navy); }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.banner .wrap { position: relative; padding-top: 48px; padding-bottom: 52px; }
.banner h1 { color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); margin-bottom: 8px; }
.banner p { color: #fff; max-width: 34rem; font-weight: 700; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); margin: 0; }
.banner-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,59,92,.75), rgba(18,59,92,.15)); }
.work-pillar-list { display: grid; gap: 16px; }

.prow {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.prow:hover { color: inherit; }
.prow:focus-visible { outline-color: var(--pillar-accent-ink); }
.prow .pc-icon, .prow .card-link { color: var(--pillar-accent-ink); }
.prow .pc-icon { flex: none; width: 44px; height: 44px; background: var(--pillar-tint, var(--green-tint)); }
.prow .card-link { text-decoration: underline; }
@media (hover: hover) {
  .prow:hover {
    border-color: var(--pillar-accent);
    box-shadow: 0 2px 4px rgba(18, 59, 92, .07), 0 14px 28px -16px rgba(18, 59, 92, .3);
  }
}
.prow-photo { position: relative; height: 170px; overflow: hidden; }
.prow-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prow-body {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 18px 46px 18px 18px;
  display: flex;
  align-items: center;
}
.prow-body::before,
.prow-body::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  top: 50%;
  right: -18px;
  border: 1px solid var(--pillar-accent);
  opacity: .24;
  transform: translate(50%, -50%) rotate(45deg);
}
.prow-body::before { width: 68px; height: 68px; outline: 1px solid var(--pillar-accent); outline-offset: 8px; }
.prow-body::after { width: 48px; height: 48px; }
.prow-heading { display: flex; align-items: center; gap: 14px; }
.prow-body h2 { font-size: 1.55rem; margin: 0; }
.prow-body .subtitle { font-weight: 700; color: var(--muted); margin: 2px 0 0; font-size: .9rem; }
.prow-body p { margin: 6px 0 0; }
@media (min-width: 860px) {
  .work-pillar-list { grid-auto-rows: 1fr; }
  .prow { grid-template-columns: 40% minmax(0, 1fr); min-height: 244px; }
  .prow-photo { height: auto; }
  .prow-body { padding-inline: clamp(22px, 3vw, 42px) 48px; }
}
.two-col { display: grid; gap: 16px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; } }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.link-list li:last-child { border-bottom: 0; }
.link-list .pin { color: var(--coral); }
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.news-list li { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; }
.news-list img { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; }
.news-list strong { display: block; color: var(--navy); line-height: 1.25; }
.news-list span { font-size: .86rem; color: var(--muted); }
.section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.section-head h2 { margin: 0; font-size: 1.25rem; }
.section-head .icon { color: var(--lagoon); }

/* Section spacing on the redesigned pages */
.page-section { padding: 22px 0; }
.update-card, .update-card:hover { text-decoration: none; color: inherit; }

/* ---------- Shared pillar pages ---------- */
/* Theme tokens keep the layout shared. Basic Needs uses a darker ink for text and icons. */
.prow, .pillar-page, .pillar-nav-link {
  --pillar-accent: var(--green);
  --pillar-accent-ink: var(--pillar-accent);
}

.pillar-nav-link { --pillar-tint: var(--green-tint); }

.pillar-page {
  --pillar-tint: var(--green-tint);
  --pillar-hero-bg: var(--pillar-accent);
  --pillar-hero-ink: #fff;
  --pillar-hero-pattern: var(--green-tint);
  --pillar-button-ink: #fff;
}

.pillar-education {
  --pillar-accent: var(--lagoon);
  --pillar-hero-pattern: var(--wave);
  --pillar-tint: #E0F1FC;
}

.pillar-basic-needs {
  --pillar-accent: var(--sun);
  --pillar-accent-ink: #805B00;
  --pillar-tint: #FCF3D5;
  --pillar-hero-bg: #805B00;
  --pillar-hero-ink: var(--sand);
  --pillar-hero-pattern: var(--sand);
  --pillar-button-ink: var(--navy);
}

.pillar-page .home-involved-cta:focus-visible { outline-color: var(--pillar-accent-ink); }

.pillar-page .home-involved {
  --cta-pattern-width: clamp(48px, 16vw, 152px);
  --cta-pattern-fill: linear-gradient(to right, var(--pillar-pattern-color), transparent);
  --cta-pattern-offset: -14px;
  --cta-pattern-size: clamp(132px, 12vw, 152px);
  --cta-pattern-repeat: repeat-y;
  --cta-pattern-opacity: .16;
}

.interior-hero {
  --pillar-copy-gutter: clamp(28px, 6vw, 72px);
  --hero-copy-min-height: 300px;
  --hero-padding: 32px;
  --hero-photo-height: clamp(170px, 42vw, 260px);
  --hero-wave-height: 44px;
  --hero-wave-clearance: 0px;
  position: relative;
  isolation: isolate;
  background: var(--pillar-hero-bg);
  color: var(--pillar-hero-ink);
}

.interior-hero::before {
  --diamond-bottom: var(--hero-photo-height);
  --diamond-color: var(--pillar-hero-pattern);
  z-index: -1;
}

.interior-hero .wrap {
  display: grid;
  align-content: center;
  min-height: var(--hero-copy-min-height);
  padding-block: var(--hero-padding) calc(var(--hero-padding) + var(--hero-wave-clearance));
  padding-inline-start: max(16px, calc(var(--pillar-copy-gutter) + 14px - (100% - min(100%, 1120px)) / 2));
}

.interior-hero .eyebrow {
  display: block;
  margin: 0 0 6px;
  color: var(--pillar-hero-ink);
}

.pillar-basic-needs .interior-hero .eyebrow { color: var(--sand); }

.interior-hero h1 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.2;
  max-width: 22ch;
  color: var(--pillar-hero-ink);
}

.interior-hero-copy { overflow-wrap: anywhere; }
.interior-hero .lead { max-width: 34rem; margin: 0; color: inherit; }

.interior-hero-nophoto::before { --diamond-bottom: 0px; }

.interior-hero-photo {
  position: relative;
  z-index: -1;
  height: var(--hero-photo-height);
}

.interior-hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.interior-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--pillar-hero-bg), transparent 22%);
}

.interior-hero-wave {
  position: absolute;
  inset: auto 0 -1px;
  width: 100%;
  height: var(--hero-wave-height);
  pointer-events: none;
}

@media (min-width: 760px) {
  .interior-hero {
    /* Match the Our Work hero at tablet and desktop widths. */
    --hero-copy-min-height: 354px;
    --hero-padding: 27px;
  }
  .interior-hero-waved { --hero-wave-clearance: 24px; }
  .interior-hero::before { --diamond-bottom: var(--hero-wave-clearance); }
  .interior-hero:has(.interior-hero-photo) .interior-hero-copy { width: 53%; }
  .interior-hero-nophoto .interior-hero-copy { max-width: 720px; }
  .interior-hero-photo { position: absolute; inset: 0 0 0 52%; height: auto; }
  .interior-hero-photo img { object-position: center; }
  .interior-hero-photo::after { background: linear-gradient(to right, var(--pillar-hero-bg), transparent 36%); }
}

@media (min-width: 900px) {
  .interior-hero {
    --hero-copy-min-height: clamp(422px, 8.7vw + 344px, 469px);
    --hero-padding: 38px;
    --hero-wave-height: 104px;
  }
  .interior-hero-waved { --hero-wave-clearance: 56px; }
}

/* Shared pillar sections. Keep the hero and CTA on their existing color tokens. */
.pillar-page {
  --pillar-approach-bg: #EAF3E2;
  --pillar-pattern-color: var(--pillar-accent);
}
.pillar-page.pillar-education { --pillar-approach-bg: #E5F0FA; }
.pillar-page.pillar-basic-needs {
  --pillar-approach-bg: #FCF3D5;
  --pillar-pattern-color: #9B740F;
}
.pillar-page .section { padding-block: clamp(36px, 5.5vw, 72px); }
.pillar-page .pillar-intro {
  padding-block: clamp(28px, 4.5vw, 48px);
  background: var(--sand);
}
.pillar-approach {
  position: relative;
  background: var(--pillar-approach-bg);
}
.pillar-approach-pattern { display: none; }

/* Keep the large diamonds in the gutters outside the content wrap. */
@media (min-width: 1240px) {
  .pillar-approach-pattern {
    display: block;
    position: absolute;
    inset-block: 0;
    left: 0;
    width: min(220px, calc((100% - 1120px) / 2));
    background: linear-gradient(to right, var(--pillar-pattern-color), transparent);
    mask: var(--hero-diamonds) left center / auto 100% no-repeat,
      linear-gradient(transparent, #000 20%, #000 80%, transparent);
    mask-composite: intersect;
    opacity: .12;
    pointer-events: none;
  }
  .pillar-approach-pattern + .pillar-approach-pattern {
    left: auto;
    right: 0;
    transform: scaleX(-1);
  }
}
.pillar-page .pillar-projects {
  padding-block: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 32px);
  background: #fff;
}

.pillar-page .section-heading {
  max-width: 44rem;
  margin: 0 auto clamp(24px, 3vw, 38px);
  text-align: center;
}
.pillar-page .section-heading .eyebrow {
  margin-bottom: 8px;
  color: var(--pillar-accent-ink);
}
.pillar-page .section-heading h2 { margin-bottom: 0; }

.pillar-split { display: grid; align-items: center; gap: 20px; }
.pillar-photo { overflow: hidden; border-radius: 16px; }
.pillar-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.pillar-copy { max-width: 42rem; min-width: 0; overflow-wrap: anywhere; }
.pillar-intro .pillar-split:not(.pillar-split-photo) .pillar-copy { margin-inline: auto; }
.pillar-intro .pillar-copy {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  text-align: left;
}
.pillar-intro .eyebrow { color: var(--pillar-accent-ink); }
.pillar-intro h2 { margin-bottom: 16px; }
.pillar-intro h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 12px;
  background: var(--pillar-accent);
}
.pillar-intro-paragraph + .pillar-intro-paragraph { margin-top: 10px; }
.pillar-intro-paragraph { margin-bottom: 0; }
.pillar-copy > :last-child, .pillar-steps p { margin-bottom: 0; }

.pillar-steps {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
.pillar-steps li { max-width: 24rem; margin-inline: auto; }
.pillar-step-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #fff;
  color: var(--pillar-accent-ink);
}

.pillar-project-list { display: grid; gap: 24px; }
.pillar-project {
  display: grid;
  border-radius: 16px;
  overflow: hidden;
  background: var(--pillar-approach-bg);
}
.pillar-project-photo { position: relative; aspect-ratio: 4 / 3; }
.pillar-project-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pillar-project-copy { align-self: center; padding: clamp(20px, 3vw, 32px); }
.pillar-project-with-icon { grid-template-columns: 27% minmax(0, 1fr); }
.pillar-project-with-icon .pillar-project-graphic {
  display: grid;
  place-items: center;
  padding-block: 12px;
  background: linear-gradient(145deg,
    color-mix(in srgb, var(--pillar-accent) 14%, var(--pillar-approach-bg)),
    color-mix(in srgb, var(--pillar-accent) 24%, var(--pillar-approach-bg)));
  color: var(--pillar-accent-ink);
}
.pillar-page .pillar-project-with-icon .pillar-project-graphic {
  position: relative;
}
.pillar-page .pillar-project-with-icon .pillar-project-graphic::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pillar-pattern-color);
  mask: var(--hero-diamonds) left top / 56px auto repeat-y;
  opacity: .14;
  pointer-events: none;
}
.pillar-page .pillar-project-with-icon .pillar-project-graphic > span {
  position: relative;
}
.pillar-project-graphic > span {
  display: grid;
  place-items: center;
  width: min(88%, 190px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pillar-approach-bg);
}
.pillar-project-graphic > span > .icon {
  display: block;
  width: 58%;
  height: 58%;
  max-width: none;
  max-height: none;
}
.pillar-project-with-icon .pillar-project-copy {
  max-width: none;
  padding: clamp(14px, 2.4vw, 24px);
}
.pillar-project-copy .eyebrow { color: var(--pillar-accent-ink); }
.pillar-project h3 { margin-bottom: 8px; font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
.pillar-project-takeaway {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pillar-accent-ink);
  font-weight: 700;
}
.pillar-project-takeaway svg { flex-shrink: 0; }
.pillar-project .meta { margin-bottom: 10px; }
.pillar-project h4 { margin: 16px 0 6px; }
.pillar-result-list, .pillar-result-stats { list-style: none; margin: 0; padding: 0; }
.pillar-result-list > li { border-inline-start: 2px solid var(--line); padding-inline-start: 12px; }
.pillar-result-list > li + li { margin-top: 12px; }
.pillar-result-list a { color: var(--pillar-accent-ink); font-weight: 800; }
.pillar-result-list p { margin-block: 4px; }
.pillar-result-stats { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.pillar-result-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 0;
  font-size: .875rem;
  text-align: center;
}
.pillar-result-caption .icon { flex-shrink: 0; }

@media (min-width: 700px) {
  .pillar-split-photo {
    grid-template-columns: 43% minmax(0, 1fr);
    gap: clamp(32px, 3.5vw, 40px);
  }
  .pillar-intro .pillar-photo img { max-height: clamp(300px, 30vw, 340px); }
  .pillar-project-with-photo { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .pillar-project-photo { min-height: clamp(240px, 24vw, 280px); aspect-ratio: auto; }
  .pillar-project:nth-child(even of .pillar-project-with-photo) {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
  .pillar-project:nth-child(even of .pillar-project-with-photo) .pillar-project-photo { order: 1; }
  .pillar-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.pillar-business-feature {
  padding-bottom: clamp(20px, 3vw, 32px);
  background: var(--paper);
}
.pillar-business-banner {
  display: grid;
  background: var(--green);
  color: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
}
.pillar-business-copy {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: flex-start;
  gap: 12px 16px;
  padding: clamp(20px, 3vw, 32px);
}
.pillar-business-copy > div { flex: 1 1 16rem; max-width: 40rem; }
.pillar-business-copy .eyebrow,
.pillar-business-copy h2 { color: inherit; }
.pillar-business-copy h2 { margin-bottom: 8px; font-size: clamp(1.5rem, 3vw, 2rem); }
.pillar-business-copy .btn:focus-visible { outline-color: var(--paper); }
.pillar-business-icon {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--green);
}
.pillar-business-photo { position: relative; min-height: 180px; }
.pillar-business-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (min-width: 700px) {
  .pillar-business-with-photo { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}

.pillar-nav {
  padding-block: clamp(24px, 3vw, 36px);
  background: var(--sand);
  text-align: center;
}
.pillar-nav .eyebrow { margin-bottom: 4px; }
.pillar-nav h2 { margin: 0 0 16px; font-size: clamp(1.5rem, 3vw, 2rem); }
.pillar-nav ul {
  display: grid;
  gap: 12px;
  max-width: 52rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.pillar-nav-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  height: 100%;
  gap: 12px;
  padding: 12px clamp(12px, 2vw, 20px);
  border-top: 4px solid var(--pillar-accent);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 10px rgb(0 0 0 / 8%);
  color: var(--pillar-accent-ink);
  text-align: left;
  text-decoration: none;
}
.pillar-nav-link:is(:hover, :focus-visible) {
  outline: 2px solid var(--pillar-accent-ink);
  outline-offset: 2px;
  color: var(--pillar-accent-ink);
  text-decoration: none;
}
.pillar-nav-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--pillar-tint);
}
.pillar-nav-name { color: var(--navy); font-size: 1.125rem; overflow-wrap: anywhere; }

@media (min-width: 640px) {
  .pillar-nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Photo gallery (pillar pages, About). Photos load only when scrolled into view. */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.gallery figure { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 10px 12px; font-size: .9rem; font-weight: 700; color: var(--navy); }
/* Our Work rows and pillar banners now use photos. */
.banner img { opacity: 1; }
.gallery-one { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); max-width: 420px; justify-self: center; }
.gallery-one img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery-one figcaption { padding: 10px 12px; font-size: .9rem; font-weight: 700; color: var(--navy); }
.link-list li .icon { color: var(--lagoon); }
/* ---------- Admin reports ---------- */
.report-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.report-range { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.report-range label { font-weight: 700; font-size: .9rem; }
.report-range select { min-height: 38px; border-radius: 8px; border: 1.5px solid #CFC6B6; padding: 0 8px; font: inherit; background: var(--paper); }
.report-kpis { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .report-kpis { grid-template-columns: repeat(4, 1fr); } }
.stat-alert { border-color: var(--sun); background: #FFF8E8; }
.report-range-note { font-size: .85rem; margin: 8px 0 0; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bar-label { display: flex; justify-content: space-between; gap: 8px; font-size: .92rem; margin-bottom: 4px; }
.bar-label span { color: var(--muted); }
.bar { display: block; width: 100%; height: 12px; }
.bar-inline { display: inline-block; width: 110px; height: 10px; vertical-align: middle; margin-right: 6px; }
.bar-track { fill: #E8ECEF; }
.bar-fill { fill: var(--lagoon); }
.bar-teal { fill: var(--lagoon); }
.bar-coral { fill: var(--coral); }
.bar-green { fill: var(--green); }
.bar-navy { fill: var(--navy); }

/* ---------- Admin > Database ---------- */
.db-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.db-search { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 6px; }
.db-search input { flex: 1; min-width: 200px; min-height: 40px; padding: 8px 12px; border: 1.5px solid #CFC6B6; border-radius: 10px; font: inherit; }
.db-grid { font-size: .85rem; }
.db-grid td { white-space: nowrap; max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
.db-type { font-size: .7rem; font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: 0; }
.db-null { font-size: .72rem; color: var(--muted); font-style: italic; }
.db-actions { display: flex; gap: 6px; align-items: flex-start; }
.db-delete summary { list-style: none; cursor: pointer; }
.db-delete summary::-webkit-details-marker { display: none; }
.db-delete form { position: absolute; z-index: 5; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px; box-shadow: var(--shadow); white-space: normal; width: 220px; }
.db-delete form p { margin: 0 0 8px; }
.btn-danger { background: var(--coral); color: #fff; }
.db-notice { background: var(--teal-tint); color: var(--lagoon); font-weight: 700; padding: 10px 12px; border-radius: 10px; }
.db-form { max-width: 720px; }
.db-form textarea, .db-sql-form textarea { width: 100%; padding: 10px 12px; border: 1.5px solid #CFC6B6; border-radius: 10px; font: inherit; }
.db-sql-form { display: grid; gap: 10px; max-width: 900px; }
.db-sql-form textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; }
.db-check { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.db-pages { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.db-delete { position: relative; }

/* ---------- Admin > Field entries ---------- */
.field-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip-link { display: inline-flex; gap: 6px; align-items: center; padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--ink); }
.chip-link span { opacity: .65; font-weight: 600; }
.chip-link.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.tag-pending { background: #FDF0DC; color: #8A5300; }
.tag-approved { background: var(--green-tint); color: var(--green); }
.tag-rejected { background: var(--coral-tint); color: var(--coral-ink); }
.conflict-card { border: 2px solid #F2B544; }
.photo-wait { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--sand); color: var(--muted); font-weight: 700; }

/* Public motion uses the homepage timing. Scroll content is visible until observed. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes motion-overlay-in {
    from { opacity: .85; }
  }

  @keyframes motion-diamonds-in {
    from { opacity: 0; }
  }

  @keyframes motion-fade-up {
    from { opacity: var(--motion-start-opacity, .15); translate: 0 var(--motion-rise, 12px); }
  }

  .home-hero::before,
  .interior-hero-photo::after { animation: motion-overlay-in 1.2s ease-out; }

  .home-hero .wrap::before,
  .interior-hero::before { animation: motion-diamonds-in 1s ease-out; }

  :is(.home-hero-copy, .interior-hero-copy) > :is(.eyebrow, h1, p, .btn-row) {
    animation: motion-fade-up .6s ease-out backwards;
  }
  :is(.home-hero-copy, .interior-hero-copy) > h1 { animation-delay: .06s; }
  :is(.home-hero-copy, .interior-hero-copy) > p:not(.eyebrow) { animation-delay: .12s; }
  .site-hero-badge { --motion-start-opacity: .55; }
  :is(.home-hero-copy, .interior-hero-copy) > .btn-row {
    --motion-start-opacity: .55;
    animation-delay: .24s;
  }

  .motion-enter {
    --motion-rise: 8px;
    animation: motion-fade-up .55s ease-out backwards;
  }
  .motion-enter.motion-delay-1 { animation-delay: .08s; }
  .motion-enter.motion-delay-2 { animation-delay: .16s; }

  :is(.home-hero-copy, .interior-hero-copy) > .btn-row:focus-within,
  .motion-enter:focus-within {
    /* Keep keyboard focus visible without restarting the animation on blur. */
    opacity: 1 !important;
    translate: none !important;
  }

  @media (hover: hover) {
    .home-pillar-explore > span { display: inline-block; }
    #main :is(.home-pillar-photo, .gallery img, .gallery-one img, .prow-photo img, .pillar-photo img) {
      transition: transform .28s ease-out;
    }
    #main :is(.pcard:hover .home-pillar-photo, .gallery figure:hover img, .gallery-one:hover img, .prow:hover .prow-photo img, .pillar-photo:hover img) {
      transform: scale(1.035);
    }

    #main :is(.btn, .card-link, .pillar-nav-link, .work-project-link) > .motion-arrow,
    .home-pillar-explore > span { transition: transform .18s ease-out; }
    #main :is(.btn, .card-link, .pillar-nav-link, .work-project-link):is(:hover, :focus-visible) > .motion-arrow,
    #main .prow:is(:hover, :focus-visible) .card-link > .motion-arrow,
    .home-pillars .pcard:is(:hover, :focus-visible) .home-pillar-explore > span {
      transform: translateX(4px);
    }

    :is(.prow, .pillar-nav-link):hover { transform: translateY(-3px); }

    #main :is(a.card, a.pcard, a.tile, .prow, .pillar-nav-link) {
      transition: transform .15s ease-out, box-shadow .15s ease-out, border-color .15s ease-out;
    }
  }

  @media (min-width: 900px) {
    .site-nav a[data-tab] { transition: border-bottom-color .18s ease-out; }
    body:has(.home-hero) .site-nav a[data-tab]:focus-visible {
      border-bottom-color: var(--nav-underline);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  #main :is(a.card, a.pcard, a.tile) { transition: none; }
  #main :is(a.card, a.pcard):hover { transform: none; }
}

/* ---------- Shared page style (About, Our Work, Impact, Businesses, ...) ----------
   Every page uses the pillar pages' hero (colored band, diamond pattern, photo) and
   ends with Home's green "Get involved" band, so the whole site matches Home. */
.site-hero {
  --pillar-accent: var(--lagoon);
  --pillar-hero-bg: var(--lagoon);
  --pillar-hero-ink: #fff;
  --pillar-hero-pattern: var(--wave);
}
.site-hero-green { --pillar-accent: var(--green); --pillar-hero-bg: var(--green); --pillar-hero-pattern: var(--green-tint); }
.site-hero-sand {
  --pillar-accent: var(--sun);
  --pillar-hero-bg: var(--sand);
  --pillar-hero-ink: var(--navy);
  --pillar-hero-pattern: #805B00;
}
/* Eyebrow with the short yellow rule, like the Home hero. */
.site-hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.site-hero .eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--sun); }
.site-hero-sand .eyebrow { color: #805B00; }
.site-hero-sand .eyebrow::before { background: #805B00; }
.site-hero .btn-row { margin-top: 20px; }
.site-hero .btn { border-radius: 999px; }
.site-hero-secondary { border: 1.5px solid currentColor; background: transparent; color: inherit; }
.site-hero-secondary:hover { background: #fff; color: var(--navy); }
.site-hero-badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 0;
  padding: 6px 12px; border-radius: 999px; font-size: .88rem; font-weight: 700;
  background: rgb(255 255 255 / .16); border: 1px solid rgb(255 255 255 / .4);
}
.site-hero-sand .site-hero-badge { background: var(--paper); border-color: var(--line); }

/* Sections alternate white and sand, with Home's centered section headings. */
.site-section { padding: 32px 0; background: var(--paper); }
.site-section-sand { background: var(--sand); }
.site-section .section-heading { text-align: center; margin: 0 auto 20px; max-width: 46rem; }
.site-section .section-heading .eyebrow,
.site-section .section-heading h2 { margin-bottom: 4px; }
.site-section .section-heading p { margin: 0; }
.site-section .section-heading-left { text-align: left; margin-left: 0; }
.site-section > .wrap > :last-child { margin-bottom: 0; }

.site-section.business-profiles .section-heading,
#partner .section-heading { margin-bottom: 30px; }
.business-profiles .section-heading .eyebrow,
#partner .section-heading .eyebrow { display: block; margin-bottom: 10px; }
.business-profiles .section-heading h2,
#partner .section-heading h2 { margin-bottom: 14px; }

#partner > .grid { grid-auto-rows: 1fr; }
#partner > .grid > .card { display: flex; flex-direction: column; }
#partner > .grid > .card > .btn { align-self: flex-start; margin-top: auto; }

.about-goals .section-heading { margin-bottom: 28px; }

.about-team-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}
.about-team-row .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.about-team-copy { margin: 0; }
#main .about-team-row .gallery img { transition: none; }
@media (hover: hover) {
  #main .about-team-row .gallery figure:hover img { transform: none; }
}
@media (min-width: 800px) {
  .about-team-row { grid-template-columns: minmax(0, 2fr) minmax(14rem, 1fr); gap: clamp(28px, 4vw, 52px); }
}
@media (max-width: 520px) {
  .about-team-row .gallery { grid-template-columns: minmax(0, 1fr); }
}

.about-business-section .section-heading .eyebrow { color: var(--lagoon); }
.about-business-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.about-business-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  padding: clamp(24px, 4vw, 44px);
}
.about-business-copy p { max-width: 34rem; margin: 0; color: var(--muted); }
.about-business-photo { position: relative; min-height: 220px; margin: 0; }
.about-business-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (min-width: 700px) {
  .about-business-feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .about-business-photo { min-height: 300px; }
}

.about-goal {
  padding: clamp(24px, 3vw, 32px);
  border-top: 3px solid var(--goal-accent);
  border-radius: var(--radius);
  background: var(--goal-tint);
  color: var(--navy);
  overflow-wrap: anywhere;
}

.about-vision { --goal-accent: var(--lagoon); --goal-tint: #E5F0FA; }
.about-mission { --goal-accent: var(--green); --goal-tint: var(--green-tint); }

.about-goal-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--goal-accent);
}

.about-goal h3 {
  margin: 16px 0 8px;
  color: var(--goal-accent);
  font-size: 1.5rem;
}

.about-goal p { margin: 0; line-height: 1.65; }
.site-section-tight { padding-top: 0; }

/* ---------- Our Work sections ---------- */
.site-section.work-approach { padding-block: 24px 32px; }
.work-approach .work-approach-heading { margin-bottom: 18px; }
.work-updates, .work-projects {
  display: grid;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.work-updates > li { display: grid; min-width: 0; }
.work-update, a.work-update {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  background: var(--pillar-tint, var(--sand));
}
.work-update.pillar-education { --pillar-tint: #E5F0FA; }
.work-update.pillar-job-creation {
  --pillar-tint: var(--green-tint);
  --pillar-accent: var(--green);
}
.work-update-photo { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.work-update-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work-update-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px 18px;
  overflow-wrap: anywhere;
}
.work-update-copy h3, .work-update-copy p { margin: 0; }
.work-update-featured h3 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
.work-update-latest { color: var(--navy); background: var(--sun); }
.work-update-category, .news-card-label {
  color: var(--pillar-accent-ink, var(--pillar-accent, var(--lagoon)));
  font-size: .875rem;
  font-weight: 800;
}
.news-card-label { margin-top: auto; }

a.news-card {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: none;
}
a.news-card.pillar-job-creation { --pillar-accent: var(--green); }
a.news-card:focus-visible {
  outline: 3px solid var(--pillar-accent-ink, var(--pillar-accent, var(--lagoon)));
  outline-offset: 3px;
}

@media (hover: hover) {
  a.news-card:hover {
    color: inherit;
    outline: 1px solid var(--pillar-accent, var(--lagoon));
    outline-offset: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .14);
  }
  a.news-card:hover:focus-visible {
    outline-width: 3px;
    outline-offset: 3px;
    outline-color: var(--pillar-accent-ink, var(--pillar-accent, var(--lagoon)));
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  a.news-card { transition: transform .18s ease-out, box-shadow .18s ease-out; }
  a.news-card:hover { transform: translateY(-3px); }
  .news-card img { transition: transform .28s ease-out; }
  .news-card:hover img { transform: scale(1.035); }
}

@media (min-width: 760px) {
  /* The lead story spans the supporting rows so both columns share their outer edges. */
  .work-updates:has(> :nth-child(2)) { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .work-updates:has(> :nth-child(3)) > .work-update-lead { grid-row: span 2; }
  .work-update-featured .work-update-photo { flex: 1 0 auto; aspect-ratio: 16 / 9; }
  .work-updates .work-update:not(.work-update-featured) {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }
  .work-update:not(.work-update-featured) .work-update-photo { aspect-ratio: auto; }
  .work-update:not(.work-update-featured) .work-update-copy { padding: 12px 14px; }
}

.work-project-section {
  position: relative;
  isolation: isolate;
  background: #E5F0FA;
}
.work-projects { grid-auto-rows: 1fr; }
.card.work-project-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 14px 16px;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.card.work-project-link:is(:hover, :focus-visible) { background: var(--teal-tint); color: var(--navy); }
.work-project-link .card-icon { width: 36px; height: 36px; background: var(--teal-tint); color: var(--lagoon); }
.work-project-detail { display: block; margin-top: 3px; font-size: .9rem; }
.work-project-link > .motion-arrow { color: var(--lagoon); }
.card.work-impact-link { background: var(--sun); }
.card.work-impact-link:is(:hover, :focus-visible) { background: #F8C911; }
.work-impact-link .card-icon { background: rgba(255, 255, 255, .35); }
.work-impact-link .card-icon, .work-impact-link > .motion-arrow { color: var(--navy); }

@media (min-width: 640px) {
  .work-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- A color for each main tab (meanings) ----------
   Home       flag blue    the Pacific Ocean (the flag's blue stands for water)
   Our Work   flag green   the land and its fertility
   Impact     flag yellow  sunshine: results brought into the light
   About      shell red    red shell money (tafuliae) of Malaita's Langalanga Lagoon,
                           described by its makers as the people's identity
   Get Involved  navy      the flag's starfield: the island groups together
   The pillar pages keep their own pillar colors. */
.site-hero-sun {
  --pillar-accent: var(--sun);
  --pillar-hero-bg: var(--sun);
  --pillar-hero-ink: var(--navy);
  --pillar-hero-pattern: var(--sun-pattern);
}
.site-hero-sun::before { opacity: 1; }
.site-hero-sun .eyebrow { color: var(--navy); }
.site-hero-sun .eyebrow::before { background: var(--navy); }
.site-hero-sun .btn-sun { background: var(--navy); color: #fff; }   /* a yellow button would vanish on yellow */
.site-hero-sun .btn-sun:hover { background: var(--lagoon); color: #fff; }
.site-hero-sun .site-hero-secondary:hover { background: var(--navy); color: #fff; }
.site-hero-sun .site-hero-badge { background: rgb(255 255 255 / .55); border-color: rgb(16 42 67 / .25); }
.site-hero-coral { --pillar-accent: var(--coral); --pillar-hero-bg: var(--coral); --pillar-hero-pattern: var(--coral-tint); }
.site-hero-navy  { --pillar-accent: var(--navy);  --pillar-hero-bg: var(--navy); --pillar-hero-pattern: #fff; }

/* ---------- Contact form ---------- */
.contact-layout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
.contact-form-card > h2 { font-size: 1.35rem; margin-bottom: 4px; }
.inquiry-form { display: grid; gap: 16px; margin-top: 12px; }
.inquiry-form .field textarea { min-height: 140px; resize: vertical; }
.inquiry-form .field textarea:focus { border-color: var(--lagoon); outline: 3px solid #BFE3DF; outline-offset: 0; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-row[hidden], .inquiry-form [hidden] { display: none; }
.optional { font-weight: 400; color: var(--muted); font-size: .9em; }
.check-group { border: 1.5px solid #CFC6B6; border-radius: 10px; padding: 10px 14px 12px; margin: 0; display: grid; gap: 4px; }
.check-group legend { font-weight: 700; padding: 0 4px; }
.check { display: flex; align-items: flex-start; gap: 10px; min-height: 32px; font-weight: 400; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--lagoon); flex: none; }
[aria-invalid="true"] { border-color: var(--coral) !important; }
.field-error { margin: 2px 0 0; color: var(--coral-ink); font-weight: 700; font-size: .92rem; }
.error-summary { border: 2px solid var(--coral); border-radius: 10px; padding: 12px 16px; background: var(--coral-tint); margin-top: 12px; }
.error-summary:focus { outline: 3px solid var(--coral); outline-offset: 2px; }
.error-summary h3 { font-size: 1rem; margin: 0 0 6px; color: var(--coral-ink); }
.error-summary ul { margin: 0; padding-left: 20px; }
.error-summary a { color: var(--coral-ink); font-weight: 700; }
.form-note { font-size: .88rem; margin: 6px 0 0; }
.btn-send { justify-self: start; border-radius: 999px; }
.contact-people-title { font-size: 1rem; margin: 16px 0 0; }
/* Honeypot: off-screen for people, still in the page for bots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Admin > Inquiries (CRM) ---------- */
.crm-filters { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.crm-filters .field select { min-height: 42px; }
.crm-overdue { align-self: center; }
.crm-filter-actions { display: flex; gap: 8px; }
a.stat { text-decoration: none; color: inherit; }
.row-alert td { background: #FFF8E8; }
.overdue-flag { display: inline-flex; align-items: center; gap: 4px; color: #805B00; font-weight: 700; font-size: .85rem; }
.tag.status-new { background: #E0F1FC; color: var(--lagoon); }
.tag.status-contacted { background: #FCF3D5; color: #805B00; }
.tag.status-in_conversation { background: #EDE7F6; color: #4A3A8C; }
.tag.status-partner_donor { background: var(--green-tint); color: var(--green); }
.tag.status-closed { background: #ECEFF1; color: #4A5560; }
.crm-grid { align-items: start; }
.crm-details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
.crm-details dt { font-weight: 700; color: var(--muted); }
.crm-details dd { margin: 0; overflow-wrap: anywhere; }
.crm-message-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.crm-message-body { white-space: pre-line; margin: 8px 0; }
.crm-meta { font-size: .88rem; }
.crm-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.crm-notes li { border-top: 1px solid var(--line); padding-top: 10px; }
.crm-notes p { white-space: pre-line; }
.inline-form { display: inline; }
.link-button { background: none; border: 0; padding: 0; color: var(--coral-ink); font: inherit; font-size: .88rem; text-decoration: underline; cursor: pointer; }
.notice { padding: 10px 14px; border-radius: 10px; background: var(--green-tint); color: var(--green); font-weight: 700; }
.danger-zone { border-color: var(--coral); }
.btn-danger { background: var(--coral); color: #fff; }
.btn-danger:hover { background: var(--coral-ink); color: #fff; }
.tile-alert { border-color: var(--sun); background: #FFF8E8; }

/* ---------- Admin > Database diagram (ERD) ---------- */
.erd-wrap { overflow: auto; max-height: 78vh; background: #FAFBFC; border: 1px solid var(--line); border-radius: 14px; margin-top: 12px; }
.erd-wrap svg { display: block; }
.erd-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: .88rem; margin-top: 8px; }
.erd-legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Impact page: map and results (matches the Home page cards) ---------- */
/* The map library stacks its layers up to z-index 1000. Keep them inside the map's own
   layer so the sticky header always stays on top when scrolling. */
.map, .leaflet-container { position: relative; z-index: 0; isolation: isolate; }

.impact-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.impact-stat { display: grid; justify-items: center; gap: 2px; padding: 16px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); text-align: center; }
.impact-stat strong { font-size: 1.9rem; line-height: 1.1; color: var(--navy); }
.impact-stat > span { font-size: .85rem; font-weight: 700; color: var(--muted); }
.impact-stat:nth-child(1) .icon, .impact-stat:nth-child(1) strong { color: var(--lagoon); }
.impact-stat:nth-child(2) .icon, .impact-stat:nth-child(2) strong { color: var(--green); }
.impact-stat:nth-child(3) .icon, .impact-stat:nth-child(3) strong { color: #805B00; }
.impact-stat:nth-child(4) .icon, .impact-stat:nth-child(4) strong { color: var(--coral); }
@media (max-width: 760px) { .impact-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.impact-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.impact-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.impact-card-head h3 { margin: 0; font-size: 1.2rem; }
.impact-card-head .map-filters { margin: 0; }
.impact-map { height: 380px; border-radius: 14px; }
.map.impact-map { background: var(--paper); }
@media (min-width: 900px) { .impact-map { height: 520px; } }
.impact-locations { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.impact-locations summary { cursor: pointer; font-weight: 800; color: var(--navy); }

.results-card { padding: 0; overflow: hidden; }
.results-card .source-note { margin: 0; border-radius: 0; border-top: 1px solid var(--line); }
.rtable { width: 100%; border-collapse: collapse; font-size: .93rem; }
.rtable th { background: var(--navy); color: #fff; text-align: left; font-size: .8rem; letter-spacing: .03em; padding: 12px 14px; white-space: nowrap; }
.rtable td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.rtable tbody tr:nth-child(even) td { background: #FBFAF7; }
.rtable tbody tr:hover td { background: var(--teal-tint); }
.r-photo { width: 120px; position: relative; }
.r-photo img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; display: block; }
.r-more { position: absolute; left: 82px; bottom: 14px; background: var(--navy); color: #fff; font-size: .72rem; font-weight: 800; padding: 1px 6px; border-radius: 999px; }
.r-nophoto { display: grid; place-items: center; width: 96px; height: 72px; border-radius: 10px; }
.r-project strong { display: block; color: var(--navy); }
.r-project .muted { font-size: .82rem; }
.r-result { min-width: 220px; }
.r-numbers, .r-date { white-space: nowrap; }
.pill { display: inline-block; white-space: nowrap; font-size: .8rem; font-weight: 800; padding: 4px 11px; border-radius: 999px; border: 1px solid transparent; }
.pill.theme-teal { color: var(--lagoon); } .pill.theme-coral { color: var(--coral-ink); } .pill.theme-green { color: var(--green); }

/* The table keeps its columns at every width; on narrow screens it scrolls sideways
   inside its card (the page itself never scrolls sideways). */
.rtable-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.rtable-scroll:focus-visible { outline: 3px solid var(--sun); outline-offset: -3px; }
.rtable tbody tr[hidden] { display: none; }
.rtable tbody tr:nth-child(even) td { background: none; }
.rtable tbody tr.r-alt td { background: #FBFAF7; }
.rtable tbody tr:hover td { background: var(--teal-tint); }
.rtable .r-project { min-width: 200px; }
.rtable .r-result { min-width: 220px; }
.rtable .r-numbers { white-space: normal; min-width: 130px; max-width: 180px; }
.rtable .pill { line-height: 1.3; }
.rtable tr:target td, .rtable tr.r-flash td { animation: r-flash 2.4s ease-out; }
@keyframes r-flash { 0%, 35% { background: #FFE9B0; } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .rtable tr.r-flash td { animation: none; background: #FFE9B0; } }
.rtable tbody tr:focus { outline: 3px solid var(--sun); outline-offset: -3px; }
.results-head { padding: 16px 20px 0; }
.impact-filter-label { font-weight: 800; color: var(--navy); }
.impact-filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; }
.impact-filterbar .map-filters, .results-head .map-filters { margin: 0; }
.results-head { justify-content: flex-start; }
.map-hint { font-size: .85rem; }
.map-popup-link { display: block; color: var(--ink); text-decoration: none; }
.map-popup-link:hover .map-popup-cta, .map-popup-link:focus-visible .map-popup-cta { text-decoration: underline; }
.map-popup-cta { display: block; margin-top: 8px; font-weight: 800; color: var(--lagoon); }
.nowrap { white-space: nowrap; }

/* Impact: pillar dropdown + expandable results list */
.pillar-select { min-height: 44px; padding: 0 40px 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-weight: 700; max-width: 100%; cursor: pointer; }
.pillar-select:hover { border-color: var(--navy); }
.pillar-select:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
/* Map key: a small box on the satellite map, one category per line. */
.impact-map-frame { position: relative; }
.map-legend { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; list-style: none; display: grid; grid-template-columns: repeat(2, max-content); justify-content: start; gap: 6px 18px; width: max-content; max-width: calc(100% - 20px); margin: 0; padding: 10px 12px; font-size: .82rem; font-weight: 700; color: var(--ink); background: rgba(255, 255, 255, .94); border-radius: 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.map-legend li { display: inline-flex; align-items: center; gap: 6px; }
.r-tip { font-size: .85rem; }
.r-pill-inline { display: none; }
.rtable tbody tr.r-row { cursor: pointer; }
.rtable tbody tr.r-row td { border-top: 1px solid var(--line); }
.rtable tbody tr.r-row.is-open td { background: var(--teal-tint); }
.rtable .r-project { width: 100%; min-width: 0; }
.rtable .r-pillar { white-space: nowrap; }
.r-toggle { all: unset; display: block; cursor: pointer; }
.r-toggle strong { display: block; color: var(--navy); }
.r-toggle .muted { font-size: .82rem; }
.r-toggle:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; border-radius: 4px; }
.r-chev { width: 40px; color: var(--navy); }
.r-chev .icon { transform: rotate(90deg); transition: transform .2s; }
.r-row.is-open .r-chev .icon { transform: rotate(-90deg); }
@media (prefers-reduced-motion: reduce) { .r-chev .icon { transition: none; } }
.rtable tr.r-detail td { background: var(--teal-tint); border-top: 0; padding: 12px 14px; }
.r-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 20px; margin: 0; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.r-facts dt { font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.r-facts dd { margin: 2px 0 0; }
.r-fact-wide { grid-column: 1 / -1; }
@media (max-width: 560px) {
  .rtable thead { display: none; }
  .r-photo { width: 76px; padding-right: 0 !important; }
  .r-photo img, .r-nophoto { width: 64px; height: 52px; }
  .r-more { left: 50px; }
  .rtable .r-pillar { display: none; }
  .r-toggle .r-pill-inline { display: inline-block; margin-top: 6px; }
  .rtable td { padding: 10px; }
}

/* Phone menu: scrolls by itself; the page underneath is locked while it is open. */
/* The open menu covers the whole screen under the header bar, wherever you are on the page.
   Only <html> is locked: locking <body> too broke the sticky header, so a menu opened
   halfway down the page appeared at the very top of the page instead. */
@media (max-width: 899.98px) {
  .site-nav.open { position: fixed; top: var(--menu-top, 64px); left: 0; right: 0; bottom: 0; max-height: none; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--line); border-bottom: 0; box-shadow: none; z-index: 19; padding-bottom: env(safe-area-inset-bottom); }
}
html.menu-open { overflow: hidden; }
/* Past the page edges (iPhone bounce), show white above and the footer's navy below,
   instead of a white strip under the footer. */
html { background: linear-gradient(to bottom, #fff 0 50%, var(--navy) 50% 100%); }

/* Results table sits inside the map card, right under the map. */
.results-wrap { margin: 16px -20px 0; border-top: 1px solid var(--line); }
.results-controls { margin: 16px 0; text-align: center; }
.results-controls p { margin: 0 0 8px; }
.results-controls .is-complete .icon { transform: rotate(180deg); }
@media (prefers-reduced-motion: no-preference) {
  .rtable .r-reveal { animation: r-reveal .25s ease-out; }
}
@keyframes r-reveal { from { opacity: .65; } to { opacity: 1; } }
.impact-card .source-note { margin: 0 -20px -20px; border-radius: 0 0 20px 20px; border-top: 1px solid var(--line); }
.rtable tbody tr.r-row.is-open td { padding-bottom: 12px; }
/* Open entry: the row and its details read as one tinted block, with equal space above and below the details box. */
.r-chev { text-align: right; }
.r-chev .icon { transform: none; transition: transform .2s; }
.r-row.is-open .r-chev .icon { transform: rotate(180deg); }
/* Pillar dropdown: hugs its text, caret at the right end. */
.pillar-select-wrap { position: relative; display: inline-flex; align-items: center; max-width: 100%; }
.pillar-select { -webkit-appearance: none; appearance: none; padding: 0 42px 0 16px; width: auto; }
.pillar-select-wrap .icon { position: absolute; right: 14px; pointer-events: none; color: var(--navy); }
@media (max-width: 560px) { .rtable tr.r-detail td { padding: 10px; } }
/* Phone menu: style the Get Involved button. */
@media (max-width: 899.98px) {
  .site-nav .nav-cta { margin: 16px 0 6px; }
  .site-nav .nav-cta a { display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 28px; border-radius: 999px; font-size: 1rem; font-weight: 800; color: var(--navy); border: 0; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
}
.map-credit { margin: 2px 0 0; font-size: .72rem; color: var(--muted); }

/* ---- Admin > Social --------------------------------------------------------------- */
.social-steps { padding-left: 20px; display: grid; gap: 10px; }
.social-steps code, .social-links code { font-size: .82rem; background: var(--sand); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
.social-connect { display: grid; gap: 12px; grid-template-columns: 1fr; max-width: 720px; }
@media (min-width: 700px) { .social-connect { grid-template-columns: 1fr 1fr; } .social-connect .social-token, .social-connect .btn { grid-column: 1 / -1; } .social-connect .btn { justify-self: start; } }
.social-accounts { display: grid; gap: 12px; }
@media (min-width: 900px) { .social-accounts { grid-template-columns: 1fr 1fr auto; align-items: center; } }
.social-account { display: flex; align-items: center; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.social-account > div { display: grid; flex: 1; min-width: 0; }
.social-account img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.social-badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; font-weight: 800; flex: none; }
.social-facebook .social-badge { background: #1877F2; }
.social-instagram .social-badge { background: #C13584; }
.social-error { color: var(--coral); font-size: .85rem; font-weight: 700; }
.social-kpis { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .social-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .social-funnel { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.social-stat-facebook { border-top: 4px solid #1877F2; }
.social-stat-instagram { border-top: 4px solid #C13584; }
.social-chart { width: 100%; height: 160px; display: block; margin-top: 8px; }
.social-chart .grid { stroke: var(--line); stroke-width: 1; }
.social-chart .line { fill: none; stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.social-chart .line-facebook { stroke: #1877F2; }
.social-chart .line-instagram { stroke: #C13584; }
.social-chart-scale { display: flex; justify-content: space-between; font-size: .75rem; margin: 4px 0 0; }
.social-legend { display: flex; align-items: center; gap: 6px 8px; font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.key-facebook { background: #1877F2; }
.key-instagram { background: #C13584; margin-left: 8px; }
.social-post-meta .key-instagram { margin-left: 0; }
.social-empty { padding: 30px 0; text-align: center; }
.social-posts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.social-post { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.social-post img, .social-post-noimg { width: 100%; aspect-ratio: 1; object-fit: cover; display: grid; place-items: center; background: var(--sand); color: var(--muted); font-weight: 700; }
.social-post-body { padding: 12px 14px; display: grid; gap: 6px; align-content: start; }
.social-post-body p { margin: 0; }
.social-post-meta { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.social-post-caption { font-size: .92rem; }
.social-post-counts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .85rem; color: var(--muted); }
.social-links ul { padding-left: 18px; }
.social-links summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.footer-social { list-style: none; display: flex; gap: 16px; margin: 12px 0 0; padding: 0; }
.footer-social a { display: inline-flex; align-items: center; gap: 6px; color: inherit; }

/* ---------- Home page spacing ----------
   Roomier sections so Home reads one idea at a time (testers found it crowded).
   Scoped with ".home-hero ~" so only the home page changes: the same section
   classes are reused on About and in every page's closing band. */
.home-hero ~ .home-pillars .section-heading { margin-bottom: clamp(28px, 4vw, 44px); }
.home-hero ~ .home-pillars .section-heading .eyebrow { margin-bottom: 8px; }
.home-hero ~ .home-pillars .section-heading h2 { margin-bottom: 10px; }

.home-hero ~ .page-section.home-impact { padding: clamp(44px, 6vw, 72px) 0; }
.home-hero ~ .home-impact .wrap { column-gap: clamp(28px, 4vw, 48px); row-gap: 16px; }
.home-hero ~ .home-impact .section-heading h2 { margin: 8px 0 10px; }

/* ---------- Give button in the header ---------- */
.header-give { margin-left: auto; min-height: 38px; border-radius: 999px; padding: 0 14px; }
.site-nav .nav-cta a svg, .header-give svg { flex-shrink: 0; }
@media (min-width: 900px) {
  .header-give { display: none; }
  .site-nav .nav-cta { display: block; margin: 0 0 0 10px; }
  .site-nav > ul > li.nav-cta > a { min-height: 44px; padding: 0 20px; border-radius: 999px; border-bottom: 0; gap: 6px; color: var(--navy); }
  .site-nav > ul > li.nav-cta > a:hover { background: #E8962B; color: var(--navy); }
}
@media (max-width: 899.98px) {
  .site-nav .nav-cta a { gap: 8px; }
}
/* Phones: the name lockup needs the room, so Give lives in the menu there. */
@media (max-width: 559.98px) { .header-give { display: none; } }

/* ---------- Give page ---------- */
.campaign-card { display: grid; gap: 18px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
@media (min-width: 800px) { .campaign-card { grid-template-columns: 1.2fr 1fr; padding: 28px; } }
.campaign-numbers { margin: 0 0 8px; color: var(--muted); }
.campaign-numbers strong { font-size: 1.6rem; color: var(--navy); }
.progress { display: block; width: 100%; height: 14px; margin: 0 0 8px; border: 0; border-radius: 999px; overflow: hidden; background: var(--sand); -webkit-appearance: none; appearance: none; }
.progress::-webkit-progress-bar { background: var(--sand); border-radius: 999px; }
.progress::-webkit-progress-value { background: var(--green); border-radius: 999px; }
.progress::-moz-progress-bar { background: var(--green); border-radius: 999px; }
.give-levels { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.give-level { display: flex; flex-direction: column; }
.give-level .btn { margin-top: auto; }
.give-level p.muted { flex-grow: 0; }
.give-amount { margin: 12px 0 0; font-size: 2rem; font-weight: 800; line-height: 1.1; color: var(--navy); }
.give-level h3 { margin-top: 4px; }
.give-level-any { border: 2px solid var(--sun); }
.give-ways .card { display: flex; flex-direction: column; }
.give-ways .card .btn { margin-top: auto; align-self: flex-start; }
.give-bank { white-space: pre-line; font-weight: 700; color: var(--navy); }
.give-stats { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin-bottom: 18px; }
@media (max-width: 559.98px) { .give-stats { grid-template-columns: 1fr; } }
.give-latest { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.give-latest a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--navy); }
.give-latest a:hover { border-color: var(--lagoon); }
.give-trust p { margin: 6px 0; }

/* ---------- Share and follow ---------- */
.share-follow { display: grid; gap: 16px; }
@media (min-width: 800px) { .share-follow { grid-template-columns: 1.4fr 1fr; } }
.share-box, .follow-box { background: var(--sand); border-radius: var(--radius); padding: 20px; }
.share-title { font-size: 1.2rem; margin: 0 0 4px; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.share-fb { background: #1877F2; }
.share-fb:hover { background: #0F5FCC; }
.share-ig { background: #C13584; }
.share-ig:hover { background: #A02A6D; }

/* ---------- Shareable result page ---------- */
.update-layout { display: grid; gap: 22px; align-items: start; }
@media (min-width: 900px) { .update-layout { grid-template-columns: 1.6fr 1fr; } .update-give { position: sticky; top: 110px; } }
.update-number { margin: 0 0 10px; font-size: 1.15rem; color: var(--muted); }
.update-number strong { display: block; font-size: 3rem; line-height: 1; color: var(--navy); }
.update-note { font-size: 1.2rem; line-height: 1.55; color: var(--ink); }
.update-sub { font-size: 1.1rem; margin: 18px 0 4px; }
.update-facts { margin: 16px 0; }
.update-give .btn { margin-top: 4px; }
.r-share { margin: 10px 0 0; }
.r-share a { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--lagoon); }
.narrow-wrap { max-width: 640px; }

/* ---------- Admin: ready-to-post drafts and email ---------- */
.draft-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .draft-grid { grid-template-columns: 1fr 1fr; } }
.draft textarea { width: 100%; min-height: 220px; font: inherit; font-size: .95rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.draft h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 1.05rem; }
.draft-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.draft-photos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.draft-photos a { display: block; width: 120px; }
.draft-photos img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.ready-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ready-list a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--navy); }
.ready-list a:hover { border-color: var(--lagoon); }
.mail-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mail-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); display: inline-block; }
.mail-dot.on { background: var(--green); }
.mail-steps li { margin-bottom: 6px; }
.mail-steps code { font-size: .88rem; }
@media (min-width: 700px) {
  .give-level-any { grid-column: 1 / -1; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; column-gap: 18px; }
  .give-level-any .give-amount, .give-level-any h3 { margin: 0; }
  .give-level-any p.muted { margin: 0; }
  .give-level-any .btn { margin: 0; }
  .give-level-any h3 { display: none; }
}
.mail-kpis { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .mail-kpis { grid-template-columns: repeat(4, 1fr); } }
/* ---------- Home pillar cards: tall cards with a big photo ----------
   White card, large 4:3 photo, big bold title, link pinned to the bottom so all
   three line up. Each pillar keeps its color on the icon, title and link.
   Scoped to Home (".home-hero ~"); About reuses .home-pillars and stays as is. */
.home-hero ~ .page-section.home-pillars { padding: clamp(20px, 2.5vw, 36px) 0 clamp(56px, 8vw, 96px); }  /* the wave already separates it from the hero */
.home-hero ~ .home-pillars > .wrap { max-width: 1320px; }
.home-hero ~ .home-pillars .pillar-cards { gap: clamp(20px, 2.2vw, 32px); }
.home-hero ~ .home-pillars .pcard {
  background: #fff;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgb(16 42 67 / .06), 0 10px 28px rgb(16 42 67 / .10);
}
.home-hero ~ .home-pillars .pcard:is(:hover, :focus-visible) {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgb(16 42 67 / .08), 0 18px 40px rgb(16 42 67 / .16);
}
.home-hero ~ .home-pillars .home-pillar-photo { height: auto; aspect-ratio: 4 / 3; }
.home-hero ~ .home-pillars .home-pillar-body {
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 2.2vw, 30px) clamp(20px, 2.2vw, 30px) clamp(24px, 2.5vw, 32px);
  min-height: clamp(220px, 20vw, 280px);
  border-top: 4px solid var(--pillar-accent);
}
.home-hero ~ .home-pillars .pc-icon {
  width: 44px; height: 44px;
  background: color-mix(in srgb, var(--pillar-accent) 12%, #fff);
}
.home-hero ~ .home-pillars .home-pillar-copy { flex: 1; }
.home-hero ~ .home-pillars .pcard h3 { font-size: clamp(1.35rem, 1.9vw, 1.7rem); font-weight: 800; line-height: 1.2; margin: 0 0 10px; }
.home-hero ~ .home-pillars .pcard p { font-size: 1.02rem; line-height: 1.55; color: var(--ink); }
.home-hero ~ .home-pillars .home-pillar-explore { padding-top: 20px; font-size: 1rem; }
.story-photo { margin: 0 0 16px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.story-photo img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; }

/* Message confirmation */
.contact-thanks,
.contact-thanks + .footer-waves { background: var(--navy); }
.contact-thanks-follow {
  width: fit-content;
  max-width: 100%;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(85, 194, 255, .3);
}
.contact-thanks-follow a {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: #fff;
  font-size: .95rem;
  text-decoration: none;
}
.contact-thanks-follow .icon {
  flex: none;
  margin-top: .2em;
  color: var(--wave);
}
.contact-thanks-facebook {
  color: var(--wave);
  text-decoration: underline;
  text-underline-offset: .2em;
}
.contact-thanks-follow a:is(:hover, :focus-visible) { text-decoration: underline; }
.contact-thanks-follow a:focus-visible { outline-color: var(--wave); }

/* ---- Give online (/give/donate) and its thank-you page ---- */
.donate-layout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) { .donate-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.donate-card { display: grid; gap: 14px; }
.donate-form { max-width: none; }
.donate-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.donate-form legend { font-weight: 800; color: var(--navy); margin-bottom: 8px; padding: 0; }
.donate-freq { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.donate-freq legend { grid-column: 1 / -1; }
.seg { position: relative; cursor: pointer; }
.seg input, .amount-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1.5px solid #CFC6B6; background: var(--paper); font-weight: 800; color: var(--navy); }
.seg:first-of-type span { border-radius: 12px 0 0 12px; }
.seg:last-of-type span { border-radius: 0 12px 12px 0; border-left: 0; }
.seg input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg input:focus-visible + span, .amount-chip input:focus-visible + span { outline: 3px solid #BFE3DF; outline-offset: 2px; }
.amount-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.amount-chip { cursor: pointer; display: flex; }
.amount-chip span { flex: 1; display: grid; gap: 2px; align-content: start; padding: 12px 14px; border: 1.5px solid #CFC6B6; border-radius: 12px; background: var(--paper); }
.amount-chip strong { font-size: 1.35rem; color: var(--navy); line-height: 1.2; }
.amount-chip small { color: var(--muted); font-size: .86rem; line-height: 1.3; }
.amount-chip input:checked + span { border-color: var(--green); background: var(--green-tint); box-shadow: inset 0 0 0 1.5px var(--green); }
.donate-custom { margin-top: 12px; max-width: 260px; }
.donate-custom[hidden] { display: none; }
.donate-dollar { position: relative; }
.donate-dollar span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--muted); }
.donate-dollar input { padding-left: 26px; }
.donate-cover { background: var(--sand); border-radius: 10px; padding: 10px 12px; }
.donate-submit { width: 100%; min-height: 56px; font-size: 1.1rem; }
.donate-submit[disabled] { opacity: .55; cursor: not-allowed; }
.donate-simulate { width: 100%; min-height: 48px; background: transparent; color: var(--lagoon); border: 2px solid var(--lagoon); }
.donate-simulate:hover { background: var(--lagoon); color: #fff; }
.donate-fine { font-size: .9rem; margin: 0; }
.donate-test { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--teal-tint); color: var(--navy); }
.donate-side { display: grid; gap: 16px; }
.donate-h { font-size: 1.2rem; color: var(--navy); }
.donate-points { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.donate-points li { display: flex; gap: 10px; align-items: flex-start; }
.donate-points svg { flex: none; color: var(--green); margin-top: 2px; }
.donate-thanks { max-width: 720px; }
.amount-chip-other { grid-column: 1 / -1; }
.amount-chip-other span { grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px; }

/* ---- Admin layout: top bar + left sidebar (views/partials/admin-header.ejs) ---- */
.admin-header-inner { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 16px; }
.admin-header-inner .brand { color: #fff; margin-right: auto; }
.admin-menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,.35); background: transparent; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.admin-menu-btn[hidden] { display: none; }
.admin-menu-btn span { max-width: 38vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-shell { display: grid; grid-template-columns: 1fr; min-height: calc(100vh - 58px); }
.admin-nav { background: #fff; border-bottom: 1px solid #DDE2E7; padding: 12px 10px 16px; }
.admin-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.admin-nav-group + .admin-nav-group { margin-top: 10px; }
.admin-nav-title { margin: 0 0 4px; padding: 0 12px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.admin-nav a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.admin-nav a svg { color: var(--muted); flex: none; }
.admin-nav a:hover { background: #F2F4F6; color: var(--navy); }
.admin-nav a.is-active { background: var(--navy); color: #fff; }
.admin-nav a.is-active svg { color: #fff; }
.admin-nav-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--teal-tint); color: var(--lagoon); font-size: .78rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.admin-nav-badge.is-alert { background: var(--sun); color: var(--navy); }
.admin-nav a.is-active .admin-nav-badge { background: #fff; color: var(--navy); }
.admin-nav-public { margin-top: 14px; font-size: .9rem; color: var(--muted) !important; }
.admin-main { padding: 24px 0 48px; min-width: 0; }
/* Phones: the sidebar folds into the Menu button (public/js/admin-nav.js). Without JS it stays open. */
@media (max-width: 899px) {
  .admin-shell.nav-closed .admin-nav { display: none; }
}
@media (min-width: 900px) {
  /* The white sidebar column (and its edge line) runs the full height of the page, however long. */
  .admin-shell { grid-template-columns: 240px minmax(0, 1fr); background: linear-gradient(to right, #fff 239px, #DDE2E7 239px, #DDE2E7 240px, transparent 240px); }
  .admin-nav { border-bottom: 0; background: transparent; position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; }
  .admin-menu-btn { display: none !important; }
  .admin-main .wrap { margin: 0; max-width: 1180px; padding: 0 28px; }
}
.todo-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.todo-list a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid #DDE2E7; background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; }
.todo-list a > svg:first-child { color: var(--lagoon); flex: none; }
.todo-list a > svg:last-child { margin-left: auto; color: var(--muted); flex: none; }
.todo-list a:hover { border-color: var(--wave); }
.todo-list a.is-alert { border-color: var(--sun); background: #FFF8E8; }
.stat-link { text-decoration: none; display: block; }
.stat-link:hover { border-color: var(--wave); }
@media (max-width: 600px) {
  .admin-header-inner .brand span { display: none; }
  .admin-header-inner { gap: 8px; padding: 0 12px; }
}

/* ---- Two-step sign-in (admin/security, admin/login-verify) ---- */
.pill-green { background: var(--green-tint); color: var(--green); }
.narrow-wide { max-width: 760px; }
.btn-block { width: 100%; justify-content: center; }
.setup-steps { padding-left: 20px; display: grid; gap: 10px; }
.totp-qr { display: block; margin: 10px 0; background: #fff; padding: 8px; border-radius: 10px; border: 1px solid var(--line, #e5e5e5); }
.totp-key { word-break: break-all; font-size: 15px; letter-spacing: .04em; }
.recovery-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 18px; padding-left: 22px; margin: 12px 0 0; }
.recovery-codes code { font-size: 16px; letter-spacing: .05em; }
.codes-card { border: 2px solid var(--sun, #f2b84b); }
.passkey-add { max-width: 420px; }
.verify-way .btn svg, .panel-card h2 svg { vertical-align: -3px; }
@media print {
  .admin-header, .admin-nav, .admin-main > .wrap > :not(.codes-card) { display: none !important; }
  .codes-card button { display: none; }
}
.totp-confirm { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.totp-confirm .field { margin: 0; max-width: 160px; }

/* ---------- Home: Success stories + Our team ----------
   Two separate sections: what the work looks like, then who does it. They mirror each
   other (text | photos, then photos | text) so the page zigzags. */
.page-section.home-stories {
  padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 8vw, 96px);
  background: var(--sand);
}
.home-stories-grid,
.home-team-grid { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (min-width: 900px) {
  .home-stories-grid { grid-template-columns: 1fr 1.15fr; }
  .home-team-grid { grid-template-columns: 1.15fr 1fr; }
}
.home-stories-copy h2,
.home-team-copy h2 { margin: 6px 0 14px; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.home-stories-lead,
.home-team-copy p { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.7; margin: 0 0 24px; color: var(--ink); max-width: 36rem; }
.home-stories-copy .btn,
.home-team-copy .btn { border-radius: 999px; }
.home-team-copy .btn-row { margin: 0; }

/* Collage: one tall photo on the left, two stacked on the right. */
.home-stories-mosaic { display: grid; gap: 12px; aspect-ratio: 5 / 4; }
.home-stories-mosaic-3 { grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; }
.home-stories-mosaic-3 img:first-child { grid-row: 1 / 3; }
.home-stories-mosaic-2 { grid-template-columns: 1fr 1fr; }
.home-stories-mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; box-shadow: 0 8px 22px rgb(16 42 67 / .12); }

/* Team: big office photo with the field officers inset over its corner. */
.home-hero ~ .page-section.home-team { padding: clamp(56px, 8vw, 96px) 0; background: var(--paper); }
.home-team-photos { position: relative; margin-bottom: 28px; }
.home-team-main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; box-shadow: 0 10px 28px rgb(16 42 67 / .12); }
.home-team-inset { position: absolute; right: 0; bottom: -28px; width: 42%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 6px solid var(--paper); box-shadow: 0 10px 28px rgb(16 42 67 / .16); }
@media (min-width: 900px) { .home-team-inset { right: -14px; } .home-team-photos { margin-bottom: 0; } }

.home-stories { --section-accent: var(--sun); }
.home-team { --section-accent: var(--green); }
.home-team .eyebrow { color: var(--section-accent); }

.home-stories .home-stories-copy h2,
.home-team .home-team-copy h2 { position: relative; }
.home-stories .home-stories-copy h2::after,
.home-team .home-team-copy h2::after {
  content: "";
  position: absolute;
  inset: auto auto -8px 0;
  width: 36px;
  height: 3px;
  border-radius: 999px;
  background: var(--section-accent);
}

/* Confine the decorative layers behind each photo group. */
.home-stories .home-stories-mosaic,
.home-team .home-team-photos {
  position: relative;
  isolation: isolate;
}
.home-stories .home-stories-mosaic::before,
.home-stories .home-stories-mosaic::after,
.home-team .home-team-photos::before,
.home-team .home-team-photos::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.home-stories .home-stories-mosaic::before,
.home-team .home-team-photos::before {
  z-index: -2;
  border-radius: 14px;
}
.home-stories .home-stories-mosaic::before {
  inset: 8px -8px -8px 8px;
  background: color-mix(in srgb, var(--sun-pattern) 42%, var(--paper));
}
.home-team .home-team-photos::before {
  inset: 10px 9px -10px -9px;
  background: var(--green-tint);
}
.home-stories .home-stories-mosaic::after,
.home-team .home-team-photos::after {
  z-index: -1;
  background: var(--section-accent);
}
.home-stories .home-stories-mosaic::after {
  top: -18px;
  right: -12px;
  width: 68px;
  height: 56px;
  opacity: .48;
  mask: url("/img/triangle-pattern.svg") top right / 28px 28px repeat;
}
.home-team .home-team-photos::after {
  bottom: -20px;
  left: -12px;
  width: 40px;
  height: 48px;
  opacity: .25;
  mask: url("/img/footer-diamonds.svg") center / contain no-repeat;
}
.home-team .home-team-main { box-shadow: 0 8px 22px rgb(16 42 67 / .13); }
.home-team .home-team-inset { box-shadow: 0 8px 20px rgb(16 42 67 / .18); }

@media (prefers-reduced-motion: no-preference) {
  .home-stories .home-stories-mosaic::after,
  .home-team .home-team-photos::after { animation: motion-diamonds-in 1s ease-out; }
}

/* Jump links (/our-work#stories, /about#team): land below the sticky header, scroll smoothly. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
#stories, #team { scroll-margin-top: 96px; }

/* =====================================================================================
   ADMIN THEME
   The staff site is a working tool, not a marketing page: a dark navigation rail, flat
   panels with labelled header strips, joined-up number strips, dense tables, square-ish
   controls. Everything here is scoped to .admin-body, so the public site is untouched.
   ===================================================================================== */
.admin-body {
  --a-bg: #EDF0F3; --a-panel: #fff; --a-line: #D3DAE1; --a-line-soft: #E4E8EC; --a-head: #F5F7F9;
  --a-text: #1B2733; --a-muted: #5A6673; --a-rail: #0C1F33; --a-rail-text: #C0CBD6; --a-rail-dim: #7F91A4;
  --a-r: 4px;
  background: var(--a-bg); color: var(--a-text); font-size: 14px; line-height: 1.5;
}
.admin-body .muted { color: var(--a-muted); }
.admin-body .wrap > p.muted, .admin-body .db-head + p.muted { font-size: .875rem; }

/* Top bar: slim, quiet. */
.admin-body .admin-header { border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-body .admin-header-inner { min-height: 48px; padding: 0 16px 0 12px; }
.admin-body .admin-header .brand img { width: 28px; height: auto; }
.admin-body .admin-header .brand span { font-size: .95rem; letter-spacing: .01em; }
.admin-body .admin-user .who { font-size: .8125rem; color: #C9D3DD; }
.admin-body .admin-header .btn-sun { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); min-height: 30px; padding: 0 10px; font-weight: 700; }
.admin-body .admin-header .btn-sun:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-body .admin-menu-btn { min-height: 32px; border-radius: var(--a-r); border-width: 1px; font-size: .875rem; }

/* Navigation rail. */
.admin-body .admin-shell { min-height: calc(100vh - 48px); }
.admin-body .admin-nav { background: var(--a-rail); border: 0; padding: 14px 0 18px; }
.admin-body .admin-nav-group + .admin-nav-group { margin-top: 14px; }
.admin-body .admin-nav-title { padding: 0 18px; margin-bottom: 4px; font-size: .6875rem; letter-spacing: .1em; color: var(--a-rail-dim); }
.admin-body .admin-nav ul { gap: 0; }
.admin-body .admin-nav a { min-height: 34px; padding: 0 18px 0 15px; border-radius: 0; border-left: 3px solid transparent; color: var(--a-rail-text); font-weight: 600; font-size: .875rem; }
.admin-body .admin-nav a svg { color: var(--a-rail-dim); width: 17px; height: 17px; }
.admin-body .admin-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-body .admin-nav a:hover svg { color: #fff; }
.admin-body .admin-nav a.is-active { background: rgba(255,255,255,.1); border-left-color: var(--sun); color: #fff; }
.admin-body .admin-nav a.is-active svg { color: var(--sun); }
.admin-body .admin-nav-badge { min-width: 20px; height: 18px; padding: 0 6px; border-radius: 3px; background: rgba(255,255,255,.14); color: #fff; font-size: .72rem; }
.admin-body .admin-nav-badge.is-alert, .admin-body .admin-nav a.is-active .admin-nav-badge.is-alert { background: var(--sun); color: var(--navy); }
.admin-body .admin-nav a.is-active .admin-nav-badge { background: rgba(255,255,255,.22); color: #fff; }
.admin-body .admin-nav-public { display: block; margin: 16px 18px 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); color: var(--a-rail-dim); font-size: .8125rem; text-decoration: none; }
.admin-body .admin-nav-public:hover { color: #fff; }
@media (min-width: 900px) {
  .admin-body .admin-shell { background: linear-gradient(to right, var(--a-rail) 240px, transparent 240px); }
  .admin-body .admin-nav { max-height: 100vh; }
}

/* Page area and headings. */
.admin-body .admin-main { padding: 22px 0 56px; }
.admin-body h1.admin-title, .admin-body .admin-title { font-size: 1.375rem; font-weight: 800; letter-spacing: -.005em; color: var(--a-text); }
.admin-body .admin-title-sm { font-size: 1.25rem; color: var(--a-text); }
.admin-body .admin-subtitle { font-size: 1rem; font-weight: 800; color: var(--a-text); }
.admin-body h3 { font-size: .95rem; color: var(--a-text); }
.admin-body .mt28 { margin-top: 24px; }

/* Panels: flat, one border, a labelled header strip. */
.admin-body .card, .admin-body .panel-card { background: var(--a-panel); border: 1px solid var(--a-line); border-radius: var(--a-r); box-shadow: none; padding: 16px; }
.admin-body .card > h2:first-child, .admin-body .card > h3:first-child, .admin-body .card > .db-head:first-child,
.admin-body .panel-card > h2:first-child, .admin-body .panel-card > .db-head:first-child {
  margin: -16px -16px 14px; padding: 9px 16px; min-height: 40px; background: var(--a-head); border-bottom: 1px solid var(--a-line-soft);
  border-radius: var(--a-r) var(--a-r) 0 0; display: flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--a-muted);
}
.admin-body .card > .db-head:first-child, .admin-body .panel-card > .db-head:first-child { justify-content: space-between; }
.admin-body .card > .db-head:first-child h2, .admin-body .panel-card > .db-head:first-child h2 { font-size: inherit; letter-spacing: inherit; color: inherit; display: flex; align-items: center; gap: 8px; }
.admin-body .card > h2:first-child svg, .admin-body .panel-card > h2:first-child svg, .admin-body .db-head:first-child h2 svg { width: 16px; height: 16px; }
.admin-body .panel-card > details > summary { cursor: pointer; }
.admin-body .danger-zone { border-color: #E8B4A8; }
.admin-body .danger-zone > h2:first-child { background: #FDF3F0; color: var(--coral-ink); }

/* Number strips: one bordered row of figures with dividers, label above the number. */
.admin-body .mail-kpis, .admin-body .report-kpis, .admin-body .social-kpis { gap: 0; background: var(--a-panel); border: 1px solid var(--a-line); border-radius: var(--a-r); overflow: hidden; }
.admin-body .mail-kpis .stat, .admin-body .report-kpis .stat, .admin-body .social-kpis .stat,
.admin-body .stat { display: flex; flex-direction: column-reverse; justify-content: space-between; gap: 6px; border: 0; border-radius: 0; background: transparent; padding: 14px 18px; box-shadow: 1px 0 0 var(--a-line-soft), 0 1px 0 var(--a-line-soft); }
.admin-body .stat strong { font-size: 1.5rem; font-weight: 800; color: var(--a-text); font-variant-numeric: tabular-nums; }
.admin-body .stat span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--a-muted); line-height: 1.35; }
.admin-body a.stat:hover, .admin-body .stat-link:hover { background: #F6F9FC; }
.admin-body a.stat:hover strong { color: var(--lagoon); }

/* Tables: dense rows, hover highlight. */
.admin-body .table-wrap { border: 1px solid var(--a-line); border-radius: var(--a-r); box-shadow: none; background: var(--a-panel); }
.admin-body table { font-size: .8125rem; }
.admin-body th { padding: 8px 12px; font-size: .6875rem; font-weight: 800; letter-spacing: .07em; color: var(--a-muted); background: var(--a-head); border-bottom: 1px solid var(--a-line); white-space: nowrap; }
.admin-body td { padding: 8px 12px; border-bottom: 1px solid var(--a-line-soft); }
.admin-body tbody tr:last-child td { border-bottom: 0; }
.admin-body tbody tr:hover td { background: #F7FAFC; }
.admin-body td select { min-height: 30px; border-radius: var(--a-r); border: 1px solid #C3CCD5; font-size: .8125rem; }

/* Buttons and form controls. */
.admin-body .btn { min-height: 34px; padding: 0 14px; border-radius: var(--a-r); font-size: .8125rem; font-weight: 700; gap: 6px; }
.admin-body .btn svg { width: 15px; height: 15px; }
.admin-body .btn-small { min-height: 28px; padding: 0 10px; font-size: .78rem; }
.admin-body .btn:not(.btn-ghost):not(.btn-danger):not(.btn-sun):hover { background: #00449C; color: #fff; }
.admin-body .btn-ghost { background: #fff; color: var(--a-text); border: 1px solid #C3CCD5; }
.admin-body .btn-ghost:hover { background: #F1F4F7; color: var(--navy); border-color: #98A6B4; }
.admin-body .form { gap: 12px; }
.admin-body .field { gap: 4px; }
.admin-body .field label { font-size: .8125rem; font-weight: 700; color: var(--a-text); }
.admin-body .field input, .admin-body .field select, .admin-body .field textarea { min-height: 36px; padding: 6px 10px; border: 1px solid #C3CCD5; border-radius: var(--a-r); font-size: .875rem; }
.admin-body .field textarea { min-height: 90px; }
.admin-body .field input:focus, .admin-body .field select:focus, .admin-body .field textarea:focus { border-color: var(--lagoon); outline: 2px solid rgba(0, 81, 186, .18); }

/* Status labels and messages. */
.admin-body .tag, .admin-body .pill { border-radius: 3px; padding: 2px 7px; font-size: .6875rem; font-weight: 800; letter-spacing: .02em; border: 0; }
.admin-body .alert, .admin-body .notice, .admin-body .db-notice { border-radius: var(--a-r); border-left: 3px solid currentColor; padding: 9px 12px; font-size: .8125rem; font-weight: 600; }

/* Overview "Needs attention": rows in one panel, not separate boxes. */
.admin-body .todo-list { gap: 0; margin: 0 -16px -16px; }
.admin-body .todo-list li + li a { border-top: 1px solid var(--a-line-soft); }
.admin-body .todo-list a { border: 0; border-radius: 0; background: transparent; padding: 11px 16px; font-size: .875rem; border-left: 3px solid transparent; }
.admin-body .todo-list a:hover { background: #F7FAFC; }
.admin-body .todo-list a.is-alert { border-left-color: var(--sun); background: #FFFBEB; }
.admin-body .todo-list a svg { width: 16px; height: 16px; color: var(--a-muted); }

/* Sign-in pages. */
.admin-body .auth-card { max-width: 380px; margin: 56px auto; border-top: 3px solid var(--navy); }
.admin-body .auth-card .btn:not(.btn-small) { min-height: 38px; }
/* Filter bars, selects and charts in the admin theme. */
.admin-body .crm-filters, .admin-body .db-search { background: var(--a-panel); border: 1px solid var(--a-line); border-radius: var(--a-r); padding: 12px 14px; box-shadow: none; }
.admin-body .crm-filters .field select { min-height: 34px; }
.admin-body .report-range select, .admin-body .db-search input, .admin-body .db-search select { min-height: 34px; border-radius: var(--a-r); border: 1px solid #C3CCD5; font-size: .875rem; }
.admin-body .report-range label { font-size: .8125rem; }
.admin-body .bar { height: 8px; }
.admin-body .bar rect { rx: 1px; ry: 1px; }
.admin-body .bar-label strong { font-size: .8125rem; }
.admin-body .social-account, .admin-body .social-post, .admin-body .gallery figure, .admin-body .erd-wrap, .admin-body .db-delete form { border-radius: var(--a-r); box-shadow: none; border-color: var(--a-line); }
.admin-body .db-form textarea, .admin-body .db-sql-form textarea, .admin-body .draft textarea { border-radius: var(--a-r); border: 1px solid #C3CCD5; }
.admin-body .totp-qr { border-radius: var(--a-r); }

/* ---------- News articles and field updates ---------- */
.article-page {
  --article-accent: var(--pillar-accent-ink, var(--pillar-accent, var(--green)));
  --article-tint: var(--pillar-tint, var(--green-tint));
  background: var(--paper);
  overflow-wrap: anywhere;
}

.article-hero { background: var(--article-tint); }
.article-hero-nav { padding-block: 20px; }

.article-hero-inner {
  display: grid;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  padding-bottom: clamp(24px, 4vw, 44px);
}

.article-hero-copy { min-width: 0; }
.article-hero-inner:not(.article-hero-split) .article-hero-copy {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
.article-hero h1 { margin: 8px 0; }
.article-summary { margin: 12px 0 0; white-space: pre-line; }

.article-badge,
.field-update-label {
  display: inline-block;
  font-size: .875rem;
  font-weight: 800;
}

.article-badge {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--article-accent);
}

.field-update-label { margin-inline-start: 6px; color: var(--muted); }

.field-update-byline,
.field-update-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.article-date, .field-update-byline { color: var(--muted); font-size: .9rem; }
.article-date, .field-update-byline > * { display: inline-flex; align-items: center; gap: 5px; }
.article-hero-inner:not(.article-hero-split) :is(.field-update-byline, .field-update-metrics) { justify-content: center; }

.field-update-metrics {
  gap: 12px 24px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.field-update-metrics li { min-width: 0; }
.field-update-metrics strong {
  display: block;
  color: var(--article-accent);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
}
.field-update-metrics small { font-size: .48em; }
.field-update-metrics span { color: var(--navy); font-weight: 800; }

.article-summary + .article-date { margin-top: 12px; }
.article-date svg, .field-update-byline svg { flex-shrink: 0; }

.article-hero-photo {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius);
}
.article-hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

.article-pattern {
  height: 20px;
  background: var(--article-accent);
  opacity: .27;
  mask: url("/img/footer-diamonds.svg") center / 16px 20px repeat-x;
}

.article-flow {
  display: grid;
  gap: 18px;
  max-width: 800px;
  padding-block: clamp(20px, 4vw, 40px);
}

.field-update .article-result { display: grid; gap: 14px; }
.field-update .article-result h3,
.field-update .article-result p { margin: 0; }
.field-update .article-result section p { white-space: pre-line; }
.field-update .r-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--sand);
}
.field-update .r-facts dt,
.field-update-source { display: flex; align-items: flex-start; gap: 6px; }
.field-update .r-facts svg { color: var(--article-accent); }
.field-update .gallery { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field-update .gallery img { height: auto; }
.field-update-source { color: var(--muted); font-size: .8125rem; }
.field-update-source svg { margin-top: .15em; }

.article-feature {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--article-tint);
  color: var(--ink);
  text-decoration: none;
}
.article-feature h2 { color: var(--navy); margin: 0; font-size: 1.2rem; }
.article-feature p { margin: 4px 0 0; }
.article-feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--article-accent);
}
.article-feature-arrow { display: flex; }
.article-feature :is(.article-feature-arrow, .card-link) { color: var(--article-accent); }
.article-feature:is(:hover, :focus-visible) { outline: 2px solid var(--article-accent); outline-offset: 2px; }

.article-flow .share-follow:not(:has(.follow-box)) { grid-template-columns: minmax(0, 1fr); }
.article-flow .share-buttons [hidden] { display: none; }
.share-follow-compact .share-box { padding: 14px 16px; }
.share-follow-compact .share-buttons { margin-top: 8px; }

.article-related { padding-block: 0 24px; background: var(--paper); }
.article-related-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 8px 16px;
  margin-bottom: 16px;
}
.article-related-heading h2 { margin: 0; }
.article-related-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-related-grid > li { display: grid; min-width: 0; }
.article-related-grid .article-related-card .work-update-photo {
  flex-shrink: 0;
  aspect-ratio: 3 / 2;
}
.article-related-card .work-update-copy { flex: 1; }
.article-related-card .work-update-link {
  margin-top: auto;
  color: var(--pillar-accent-ink, var(--pillar-accent, var(--lagoon)));
}
.article-related-card:focus-visible {
  outline: 3px solid var(--pillar-accent-ink, var(--pillar-accent, var(--lagoon)));
  outline-offset: 2px;
}

@media (max-width: 419.98px) {
  body:has(.article-page) .site-header .lockup { min-width: 0; }
  body:has(.article-page) .site-header .lockup-name { min-width: 0; overflow-wrap: anywhere; }
  body:has(.article-page) .site-header .lockup-name > span { white-space: normal; }
}

@media (min-width: 720px) {
  .article-hero-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .field-update .r-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---- Impact page: pillar bar, map card footer, results card ----
   One bar of pillar buttons spans the full width (same as the map), then the map card,
   then the results in their own card with a proper heading. Rows link to /impact/updates/:id. */
.pillar-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 4px; margin: 0 0 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.pillar-tab { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--navy); font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer; transition: background .15s, color .15s; }
.pillar-tab:hover { background: var(--teal-tint); }
.pillar-tab:focus-visible { outline: 3px solid var(--sun); outline-offset: 1px; }
.pillar-tab .map-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(16,42,67,.15); }
.pillar-tab-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pillar-tab-n { min-width: 24px; padding: 1px 7px; border-radius: 999px; background: #EEF1F4; color: var(--muted); font-size: .78rem; font-weight: 800; text-align: center; }
.pillar-tab.is-active { background: var(--navy); color: #fff; }
.pillar-tab.is-active .pillar-tab-n { background: rgba(255,255,255,.18); color: #fff; }
.pillar-tab.is-active .map-dot { box-shadow: 0 0 0 2px var(--navy), 0 0 0 3px rgba(255,255,255,.5); }
@media (max-width: 760px) {
  .pillar-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar-tabs .pillar-tab:first-child { grid-column: 1 / -1; }
  .pillar-tab { min-height: 44px; font-size: .9rem; }
}

.impact-map-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin: 14px -20px -20px; padding: 12px 20px; border-top: 1px solid var(--line); background: #FBFAF6; border-radius: 0 0 20px 20px; }
.impact-map-foot .map-note, .impact-map-foot .map-credit { margin: 0; }

.results-card { margin-top: 32px; padding: 20px; overflow: hidden; } /* overrides an older padding: 0 version */
.results-card-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.results-card-head h3 { margin: 4px 0 6px; font-size: 1.45rem; }
.results-card-head .eyebrow { margin: 0; }
.results-total { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--teal-tint); color: var(--lagoon); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.results-total strong { font-size: 1.15rem; color: var(--navy); }
.results-card .results-wrap { margin: 18px -20px 0; }
.results-card .rtable th { background: #F4F6F8; color: var(--muted); text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; border-bottom: 1px solid var(--line); }
.results-card .rtable tbody tr.r-row:first-child td { border-top: 0; }
.r-link { display: block; color: inherit; text-decoration: none; }
.r-link strong { display: block; color: var(--navy); font-size: 1rem; }
.r-link .muted { font-size: .82rem; }
.r-link:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; border-radius: 4px; }
.rtable tbody tr.r-row:hover .r-link strong { color: var(--lagoon); text-decoration: underline; text-underline-offset: 3px; }
.r-chev { color: var(--lagoon); }
.r-chev .icon { transform: none !important; transition: transform .2s; }
.rtable tbody tr.r-row:hover .r-chev .icon { transform: translateX(4px) !important; }
@media (prefers-reduced-motion: reduce) { .rtable tbody tr.r-row:hover .r-chev .icon { transform: none !important; } }

/* Back navigation */
.back-link {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 44px;
  margin-bottom: 8px;
  color: var(--back-color, var(--lagoon));
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: .2em;
}
.back-link:hover {
  color: var(--back-color, var(--lagoon));
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.back-link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.back-link svg { flex-shrink: 0; transform: scaleX(-1); }
.article-hero-nav { --back-color: var(--article-accent); }
.article-hero-nav .back-link { margin-bottom: 0; }
.interior-hero { --back-color: #fff; }
.interior-hero:is(.site-hero-sand, .site-hero-sun) { --back-color: var(--navy); }

/* Get Involved: the small "give monthly / bank transfer" line under the gift options. */
.give-more { margin: 22px auto 0; max-width: 46rem; text-align: center; font-size: .95rem; }
.give-more a { font-weight: 800; }
#give, #partner { scroll-margin-top: 96px; }

/* ---- Give online: payment details (design preview until Stripe is switched on) ---- */
.pay { display: grid; gap: 14px; padding-top: 6px; border-top: 1px solid var(--line) !important; padding-top: 18px !important; }
.pay-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pay-method { cursor: pointer; display: flex; }
.pay-method input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pay-method span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 10px; border: 1.5px solid #CFC6B6; border-radius: 10px; background: var(--paper); font-weight: 800; color: var(--navy); white-space: nowrap; }
.pay-method input:checked + span { border-color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); background: #F4F7FA; }
.pay-method input:focus-visible + span { outline: 3px solid #BFE3DF; outline-offset: 2px; }
.pay-apple-mark { letter-spacing: -.01em; }
.pay-google-mark b { color: #4285F4; }
.pay-panel { display: grid; gap: 12px; }
.pay-panel[hidden] { display: none; }
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-input-icon { position: relative; }
.pay-input-icon input { padding-right: 150px; letter-spacing: .04em; }
.pay-brands { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: flex; gap: 4px; pointer-events: none; }
.pay-brand { font-size: .62rem; font-weight: 900; letter-spacing: .04em; padding: 3px 5px; border-radius: 4px; border: 1px solid var(--line); background: #fff; transition: opacity .15s; }
.pay-brand[data-brand="visa"] { color: #1A1F71; font-style: italic; }
.pay-brand[data-brand="mastercard"] { color: #EB001B; }
.pay-brand[data-brand="amex"] { color: #fff; background: #2E77BC; border-color: #2E77BC; }
.pay-brand.is-dim { opacity: .25; }
.pay-wallet { width: 100%; min-height: 54px; border-radius: 10px; font: inherit; font-size: 1.05rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pay-wallet-apple { background: #000; color: #fff; border: 0; }
.pay-wallet-apple:hover { background: #222; }
.pay-wallet-google { background: #fff; color: #3C4043; border: 1.5px solid #DADCE0; }
.pay-wallet-google:hover { background: #F8F9FA; }
.g-blue { color: #4285F4; } .g-red { color: #EA4335; } .g-yellow { color: #FBBC05; } .g-green { color: #34A853; }
.pay-wallet-note { margin: 0; font-size: .88rem; text-align: center; }
.donate-submit[hidden] { display: none; }
.pay-closed { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 10px; background: #FFF6DB; color: var(--navy); border: 1px solid #F2D27A; }
.pay-closed[hidden] { display: none; }
.pay-closed svg { flex: none; margin-top: 2px; }
.donate-fine svg { vertical-align: -2px; }
@media (max-width: 480px) {
  .pay-input-icon input { padding-right: 12px; }
  .pay-brands { display: none; }
  .pay-method span { font-size: .9rem; padding: 0 6px; }
}

/* Admin > Field entry: proposed edits from several field staff, side by side. */
.edits-card { border-left: 4px solid #C98A1B; }
.edits-table th[scope="col"] { vertical-align: bottom; min-width: 170px; }
.edits-table th[scope="row"] { white-space: nowrap; }
.edits-table td { vertical-align: top; }
.edit-meta { display: block; font-size: .78rem; font-weight: 500; color: var(--muted, #56616E); text-transform: none; letter-spacing: 0; }
.edit-meta.warn { color: #8A5300; font-weight: 700; }
.edit-pick { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; margin: 0; font-weight: 400; }
.edit-pick input { margin-top: 4px; flex: none; }
.edit-pick:has(input:checked) { color: var(--navy); }
.edit-pick:has(input:checked) > :last-child { background: #FDF0DC; border-radius: 4px; padding: 0 4px; }
.edit-quick { display: grid; gap: 8px; border-top: 1px solid #DCE2E7; padding-top: 12px; }
.edit-quick-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.edit-quick-row > span { flex: 1 1 260px; }
.edit-quick-row form { margin: 0; }

/* =====================================================================================
   Sign-in screens (login, second step, forgot/reset password, first setup): one
   full-height navy screen with a single white card, so there's no gray band that stops
   halfway down and turns white.
   ===================================================================================== */
html:has(> body.auth-body) { background: #0C1F33; }
.admin-body.auth-body {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background-color: #0C1F33;
  background-image: radial-gradient(1100px 520px at 50% -12%, rgba(59, 130, 160, .28), transparent 70%),
                    radial-gradient(700px 400px at 100% 110%, rgba(242, 181, 68, .08), transparent 70%);
}
.auth-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 40px 16px; }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.05rem; letter-spacing: .01em; text-decoration: none; }
.auth-brand img { width: 38px; height: auto; }
.auth-brand:hover { color: #fff; }
.admin-body.auth-body .auth-card {
  width: 100%; max-width: 400px; margin: 0; padding: 28px 28px 24px;
  border: 0; border-radius: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .2);
}
.admin-body.auth-body .auth-card::before { content: none; }
.auth-title { margin: 0; font-size: 1.35rem; line-height: 1.25; color: var(--a-text); letter-spacing: -.01em; }
.auth-lead { margin: 6px 0 18px; font-size: .9rem; }
.auth-card .form { display: grid; gap: 14px; }
.auth-card .field { margin: 0; }
.auth-card input[type="email"], .auth-card input[type="password"], .auth-card input[inputmode="numeric"], .auth-card input[name="code"], .auth-card input[type="text"] { min-height: 42px; }
.auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.auth-label-row a, .auth-alt a { font-size: .85rem; font-weight: 600; white-space: nowrap; }
.auth-card .btn-block { min-height: 44px; margin-top: 4px; }
.auth-card .notice, .auth-card .alert { margin: 0 0 14px; }
.auth-alt { margin: 16px 0 0; text-align: center; font-size: .85rem; }
.auth-foot { margin: 0; font-size: .85rem; }
.auth-foot a { color: #C0CBD6; text-decoration: none; }
.auth-foot a:hover { color: #fff; text-decoration: underline; }
.reset-link-box code { display: block; padding: 10px 12px; background: #F5F7F9; border: 1px solid #D3DAE1; border-radius: 4px; word-break: break-all; font-size: .85rem; }
.user-actions form { display: inline-block; margin: 0 6px 6px 0; }

/* Admin > Field entry: the full edit form. */
.form-pair { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.form-pair .field { margin: 0; }
.entry-loc { border: 1px solid #D3DAE1; border-radius: 4px; padding: 10px 12px 12px; margin: 0; display: grid; gap: 8px; }
.entry-loc legend { font-weight: 700; padding: 0 4px; }
.check-row { display: flex; gap: 8px; align-items: center; font-weight: 500; margin: 0; }
.check-row input { width: auto; margin: 0; }

/* Admin > Projects: the location picker map. */
.pick-map { height: 320px; border: 1px solid #D3DAE1; border-radius: 4px; background: #DDE5EC; }
.project-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.project-form .two-col { align-items: start; }

/* Admin page headers: one pattern on every page. The title sits on the left; actions (Export
   CSV, Field phones, Add..., time range) sit on the right, lined up with the title's line,
   not with the bottom of the description under it. Same top spacing on every page. */
.admin-body .wrap > :is(h1.admin-title, .db-head, .report-head):first-child,
.admin-body .wrap > :is(h1.admin-title, .db-head, .report-head).mt8:first-child { margin-top: 0; }
.admin-body .wrap > .back-link + :is(h1.admin-title, .db-head, .report-head) { margin-top: 10px; }
.admin-body .admin-title { line-height: 34px; }
.admin-body .wrap > :is(.db-head, .report-head) { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; }
.admin-body .wrap > .report-head > div:first-child { flex: 1 1 380px; min-width: 0; }
.admin-body .wrap > :is(.db-head, .report-head) > :not(:first-child) { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 34px; margin: 0; }
.admin-body .wrap > :is(.db-head, .report-head) > .btn,
.admin-body .wrap > :is(.db-head, .report-head) > :not(:first-child) .btn { min-height: 34px; padding: 0 12px; font-size: .8125rem; }
.admin-body .wrap > :is(.db-head, .report-head) .report-range label { font-size: .8125rem; color: var(--a-muted); }
.admin-body .wrap > :is(.db-head, .report-head) .report-range select { min-height: 34px; border-radius: var(--a-r); border: 1px solid #C3CCD5; font-size: .8125rem; }
.admin-body .wrap > :is(.db-head, .report-head) > .tag { min-height: 0; align-self: center; }
.admin-body .wrap > :is(.db-head, .report-head) + p.muted { margin-top: 6px; }

.admin-body .form.project-form { max-width: none; }

/* Admin > Social media: account cards side by side, refresh with the time range. */
.social-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.social-head-actions form { margin: 0; }
@media (min-width: 900px) { .social-accounts { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.admin-body .social-account { padding: 14px 16px; gap: 14px; }
.social-account > div { gap: 2px; line-height: 1.35; }
.social-account strong { font-size: 15px; }
.social-account .social-handle { color: var(--a-ink, #1F2A37); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-account .social-updated { color: var(--muted, #5B6875); font-size: 12.5px; }
.social-account .btn { flex: none; white-space: nowrap; }

/* Admin > Staff users: the add form uses the full width, fields in a row on wide screens. */
.admin-body .card.add-staff { max-width: none; }
.admin-body .form.add-staff-form { max-width: none; display: grid; gap: 12px 16px; }
@media (min-width: 800px) { .admin-body .form.add-staff-form { grid-template-columns: 1fr 1fr; } .add-staff-form > .btn, .add-staff-form > input[type=hidden] { grid-column: 1 / -1; justify-self: start; } }
.add-staff-form .field { margin: 0; }
.add-staff-form input, .add-staff-form select { width: 100%; }

/* Admin > Pages & stories: the website pages, the wording editor and the page builder. */
.site-pages { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.site-page-card { display: grid; gap: 4px; padding: 14px 16px; background: #fff; border: 1px solid var(--a-line, #D3DAE1); border-radius: var(--a-r, 6px); text-decoration: none; color: inherit; }
.site-page-card:hover, .site-page-card:focus-visible { border-color: var(--a-accent, #1D4ED8); box-shadow: 0 1px 4px rgba(15, 30, 50, .08); }
.site-page-card strong { font-size: 15px; }
.site-page-card .muted { font-size: 13px; }
.site-page-url { font-size: 12.5px; color: var(--a-accent, #1D4ED8); }
.admin-body .form.site-text-form, .admin-body .form.builder-form { max-width: none; }
.site-text-form fieldset, .builder-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.site-text-section { margin-top: 16px; }
.site-text-section h2 { margin: 0 0 6px; }
.site-text-field { padding: 10px 0; border-top: 1px solid var(--a-line, #E5E9EE); margin: 0; }
.site-text-field:first-of-type { border-top: 0; }
.site-text-field label { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.site-text-field textarea, .site-text-field input { width: 100%; }
.site-text-field.is-changed textarea, .site-text-field.is-changed input { border-color: #2E7D5B; }
.site-text-original { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 6px 0 0; font-size: 13.5px; }
.site-text-hint { margin: 4px 0 0; font-size: 13px; }
.sticky-save { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; padding: 12px 0; margin-top: 16px; background: linear-gradient(to top, var(--a-bg, #F4F6F8) 75%, transparent); }
.builder-block-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.builder-block-head h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.builder-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--a-accent, #1D4ED8); color: #fff; font-size: 13px; }
.builder-bg { display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 500; margin: 0; }
.builder-bg select { width: auto; padding-block: 4px; }
.builder-block.has-error { border-color: #C0392B; }
.builder-add { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.builder-add label { font-weight: 600; margin: 0; }
.builder-add select { width: auto; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span { display: grid; place-items: center; padding: 0 10px; background: #EEF1F4; border: 1px solid var(--a-line, #D3DAE1); border-right: 0; border-radius: 4px 0 0 4px; color: #5B6875; }
.input-prefix input { border-radius: 0 4px 4px 0; flex: 1; min-width: 0; }

/* New pages built in the admin (views/custom-page.ejs). */
.cp-block .wrap > :first-child { margin-top: 0; }
.cp-text { max-width: 46rem; margin: 0 auto; }
.cp-text h2 { margin-top: 0; }
.cp-text ul { padding-left: 1.2em; }
.cp-split { display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .cp-split { grid-template-columns: 1fr 1fr; } .cp-split.photo-left .cp-split-photo { order: -1; } }
.cp-split-photo img, .cp-photo img { width: 100%; height: auto; border-radius: var(--radius, 12px); display: block; }
.cp-photo { margin: 0 auto; max-width: 64rem; }
.cp-photo figcaption { text-align: center; color: var(--muted, #5B6875); margin-top: 8px; font-size: 14px; }
.cp-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cp-cards .pcard { display: block; background: var(--paper, #fff); border-color: var(--line, #E3E7EC); }
.cp-cards .pcard h3 { margin-top: 0; }
.cp-quote { max-width: 44rem; margin: 0 auto; text-align: center; font-size: 1.35rem; line-height: 1.5; }
.cp-quote p { margin: 0; }
.cp-quote footer { margin-top: 12px; font-size: 1rem; color: var(--muted, #5B6875); }
.cp-button { text-align: center; max-width: 40rem; margin: 0 auto; }
.cp-draft { background: #FFF4CC; color: #5A4300; text-align: center; padding: 8px 16px; font-size: 14px; }
.cp-draft a { color: inherit; font-weight: 700; }
