/* The Raines Foundation
   A calm, global-nonprofit look with a simple structure: light grey page, white content areas,
   24px rounded corners on content areas and buttons, large clear type (Inter), and the logo blue as the accent.
   --blue-strong is the logo blue darkened for readable text and buttons (5.3:1 on white). */
:root {
  --blue: #008fd5;
  --sky: #5592e4;
  --blue-strong: #0072ab;
  --blue-hover: #005b88;
  --ink: #1d1d1f;
  --text: #1d1d1f;
  --muted: #5f6368;
  --line: #d9dce1;
  --page: #f5f5f7;
  --card: #ffffff;
  --ice: #eef5fb;
  --navy: #0a1a2a;
  --swoosh: linear-gradient(90deg, var(--blue), var(--sky));
  --radius: 24px;
  --gap: 20px;
  --shadow: 0 2px 12px rgba(0, 0, 0, .05);
  --font: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--page); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--blue-strong); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.08; margin: 0 0 20px; font-weight: 700; letter-spacing: -0.025em; }
h1 { font-size: clamp(40px, 6vw, 80px); letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 3.6vw, 48px); }
h3, .h3 { font-size: 22px; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0 0 18px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
blockquote { margin: 0; }

.wrap { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.narrow { max-width: 760px; }
.section { padding-block: 88px; }
.section-tight { padding-block: 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--blue-strong); margin-bottom: 14px; }
.eyebrow.light { color: #cfe6f7; }
.lede, .large-copy { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; color: var(--text); }

/* Buttons and links */
.btn, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: var(--radius); border: 1.5px solid transparent; background: var(--blue-strong); color: #fff; font: 600 16px/1.2 var(--font); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover, .button:hover { background: var(--blue-hover); }
.btn-sm { min-height: 38px; padding: 8px 18px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--blue-strong); border-color: var(--blue-strong); }
.btn-ghost:hover { background: var(--ice); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #e8f2fa; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .14); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--blue-strong); font-weight: 600; }
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }
a.inline { color: var(--blue-strong); text-decoration: underline; text-underline-offset: 3px; }
a.inline:hover { color: var(--blue-hover); }
.badge { display: inline-block; font-size: 12px; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; vertical-align: middle; }
.badge.light { background: rgba(255, 255, 255, .92); border-color: transparent; margin: 0 0 14px; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; color: var(--blue-strong); background: var(--ice); border-radius: 999px; padding: 3px 11px; }

/* ---------------- Global navigation ---------------- */
.gnav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .08); }
.gnav-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.gnav-logo img { width: 88px; height: auto; }
.gnav-nav { margin-inline: auto; }
.gnav-list { display: flex; gap: 6px; }
.nav-trigger { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius); font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; }
.nav-trigger:hover, .nav-item.open .nav-trigger { background: rgba(0, 0, 0, .05); }
.nav-trigger.is-active { color: var(--blue-strong); }
.nav-trigger .chev { transition: transform .2s; opacity: .7; }
.nav-item.open .chev { transform: rotate(180deg); }
.nav-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(0, 0, 0, .08); }
.nav-panel-inner { display: grid; grid-template-columns: 1.1fr 2fr 1fr; gap: 48px; padding-block: 40px 48px; }
.nav-intro-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 10px; }
.nav-intro p:last-child { color: var(--muted); font-size: 16px; }
.nav-col-title { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.nav-col ul { display: grid; gap: 4px; }
.nav-col a { display: block; padding: 10px 14px; margin-inline: -14px; border-radius: 16px; }
.nav-col a:hover, .nav-col a[aria-current="page"] { background: var(--page); }
.nl-title { display: block; font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.nl-desc { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; }
.gnav-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: var(--radius); background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle:hover { background: rgba(0, 0, 0, .05); }
.burger, .burger::before, .burger::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s; }
.burger::before, .burger::after { content: ''; position: absolute; left: 0; }
.burger::before { top: -6px; } .burger::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .burger { background: transparent; }
.menu-toggle[aria-expanded="true"] .burger::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); background: #fff; max-height: calc(100vh - 68px); overflow-y: auto; }
.mobile-menu nav { padding-block: 16px 28px; }
.mm-group { padding-block: 14px; border-bottom: 1px solid var(--line); }
.mm-title { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.mm-group a { display: block; padding: 10px 0; font-size: 20px; font-weight: 600; color: var(--ink); }
.mobile-menu .btn { margin-top: 20px; width: 100%; }

/* ---------------- Home hero ---------------- */
.hero { position: relative; margin: 16px 16px 0; border-radius: var(--radius); overflow: hidden; min-height: min(78vh, 720px); display: flex; align-items: flex-end; background: var(--navy); color: #fff; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 18, 30, .15) 0%, rgba(6, 18, 30, .55) 45%, rgba(6, 18, 30, .9) 100%); }
.hero-content { position: relative; padding-block: 120px 64px; }
.hero h1, .image-hero h1 { color: #fff; max-width: 15em; }
.hero h1 { font-size: clamp(42px, 6.4vw, 88px); }
.hero-lede { font-size: clamp(18px, 1.8vw, 23px); line-height: 1.45; max-width: 36em; color: #eef4f8; margin-bottom: 24px; }

/* ---------------- Sections ---------------- */
.section-head { max-width: 780px; margin-bottom: 36px; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 0; }
.section-head .lede { margin-top: 18px; color: var(--muted); }
.page-head { padding-block: 72px 40px; max-width: 980px; }
.page-head h1 { margin-bottom: 18px; }
.page-head .lede { color: var(--muted); max-width: 40em; }
.mission-hero { padding-block: 88px 40px; }
.mission-hero h1 { font-size: clamp(34px, 4.6vw, 64px); max-width: 18em; line-height: 1.12; }
.panel { background: var(--card); border-radius: var(--radius); padding: 48px; }
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.split h2 { margin-bottom: 0; }

/* Four paths */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.pillar { background: var(--card); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; }
.pillar h3, .pillar .h3 { font-size: 26px; margin-bottom: 12px; }
.pillar p { color: var(--muted); font-size: 16px; }
.pillar .link-more { margin-top: auto; }
.pillar-love { font-size: 14px; font-weight: 600; color: var(--blue-strong) !important; margin-bottom: 8px; }
.pillars.compact .pillar { padding: 26px 24px; }

/* Initiative tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.tile { background: var(--card); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.tile-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ice); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover .tile-media img { transform: scale(1.03); }
.tile-body { padding: 30px 32px 28px; display: flex; flex-direction: column; flex: 1; }
.tile-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tile h2, .tile h3 { font-size: clamp(28px, 2.6vw, 36px); margin-bottom: 8px; }
.tile-tagline { font-size: 19px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.tile-text { color: var(--muted); font-size: 16px; }
.tile .links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.tile.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.35fr 1fr; }
.tile.wide .tile-media { aspect-ratio: auto; min-height: 440px; }
.tile.wide .tile-body { padding: 48px 44px; justify-content: center; }
.tile.wide h2, .tile.wide h3 { font-size: clamp(34px, 3.6vw, 52px); }

/* News cards (filled in by the Worker) */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.news-card { background: var(--card); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; height: 100%; transition: box-shadow .2s; }
.news-card:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
.news-card a { display: flex; flex-direction: column; height: 100%; }
.news-media { aspect-ratio: 16 / 9; background: var(--ice); overflow: hidden; }
.news-media img { width: 100%; height: 100%; object-fit: cover; }
.news-media.empty { display: flex; align-items: flex-end; padding: 20px; background: linear-gradient(135deg, #0a5d8c, #3d7fd6); color: #fff; font-weight: 700; font-size: 20px; }
.news-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.news-meta { font-size: 13px; font-weight: 600; color: var(--blue-strong); margin-bottom: 10px; }
.news-card h3 { font-size: 20px; line-height: 1.3; margin-bottom: 10px; }
.news-card p { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.news-date { margin-top: auto; font-size: 14px; color: var(--muted); }
.news-empty { grid-column: 1 / -1; background: var(--card); border-radius: var(--radius); padding: 28px; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.pills a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: var(--radius); background: var(--card); font-weight: 600; font-size: 15px; border: 1.5px solid transparent; }
.pills a:hover { border-color: var(--line); }
.pills a[aria-current="page"] { background: var(--ink); color: #fff; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.news-sources { margin-top: 28px; }

/* Story band and quotes */
.story-band { background: var(--card); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.story-band-media { min-height: 420px; position: relative; }
.story-band-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-band-text { padding: 56px 52px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.story-band-text p { color: var(--muted); }
.story-band blockquote p { font-size: 22px; line-height: 1.4; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
blockquote.pull { margin: 40px 0; padding: 32px 36px; background: var(--card); border-radius: var(--radius); }
blockquote.pull p { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; font-weight: 600; color: var(--ink); letter-spacing: -0.015em; margin-bottom: 12px; }
blockquote.pull cite { font-style: normal; color: var(--muted); font-size: 15px; }

/* Call to action band */
.cta-band { background: linear-gradient(120deg, #0a3d5f, #0072ab 60%, #3567b8); color: #fff; border-radius: var(--radius); padding: 64px 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
.cta-band h2 { color: #fff; margin-bottom: 0; }
.cta-band p { color: #e6f0f7; }

/* Our story */
.feature-image { margin: 0; border-radius: var(--radius); overflow: hidden; }
.feature-image img { width: 100%; height: auto; max-height: 640px; object-fit: cover; }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 18px; line-height: 1.7; }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 18px; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.photo-pair figure { margin: 0; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.photo-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-pair figcaption { padding: 14px 20px; font-size: 15px; color: var(--muted); }
.timeline { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--gap); margin: 32px 0; }
.timeline li { background: var(--card); border-radius: var(--radius); padding: 26px 24px; }
.tl-year { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; color: var(--blue-strong); margin-bottom: 8px; }
.timeline h3 { font-size: 19px; margin-bottom: 8px; }
.timeline p:last-child { color: var(--muted); font-size: 15px; margin: 0; }

/* Our work */
.work-list { display: grid; gap: var(--gap); }
.work-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--gap); }
.work-label { padding: 32px 8px 0 0; }
.work-label h2 { font-size: clamp(30px, 3vw, 42px); margin-bottom: 12px; }
.work-label p { color: var(--muted); }
.work-cards { display: grid; gap: var(--gap); }
.work-card { background: var(--card); border-radius: var(--radius); padding: 36px 36px 28px; }
.work-card h3 { font-size: 26px; }
.work-card h3 a:hover { color: var(--blue-strong); }
.checks { display: grid; gap: 10px; margin: 6px 0 18px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ''; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%; background: var(--ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%230072ab' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }

/* Initiative pages */
.image-hero { position: relative; margin-top: 16px; border-radius: var(--radius); overflow: hidden; min-height: 560px; display: flex; align-items: flex-end; background: var(--navy); color: #fff; }
.image-hero-content { position: relative; padding: 56px; max-width: 760px; }
.image-hero h1 { margin-bottom: 14px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); margin-top: 48px; }
.feature { background: var(--card); border-radius: var(--radius); padding: 28px 26px; }
.feature h3 { font-size: 20px; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 16px; margin: 0; }
.facts { border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { font-weight: 600; text-align: right; }
.link-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: 20px; }
.link-cards a { display: block; height: 100%; background: var(--card); border-radius: var(--radius); padding: 22px 24px; border: 1.5px solid transparent; }
.link-cards a:hover { border-color: var(--blue); }

/* FAQ */
.faq { max-width: 900px; }
.faq details { background: var(--card); border-radius: var(--radius); margin-bottom: 12px; padding: 0 28px; }
.faq summary { cursor: pointer; padding: 22px 0; font-weight: 600; font-size: 18px; list-style-position: outside; }
.faq details p { color: var(--muted); padding-bottom: 22px; margin: 0; }

/* Forms */
.form { display: grid; gap: 18px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--text); background: #fff; border: 1.5px solid #8b9198; border-radius: 14px; padding: 12px 14px; min-height: 50px; }
/* Dropdowns match the text fields: same height, border, radius and focus ring, with our own arrow instead of the browser's. */
.field select, select.select { -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer; padding-right: 46px; line-height: 1.4;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5l5.5 5.5 5.5-5.5' fill='none' stroke='%230072ab' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center / 14px 9px; }
.field select:hover { border-color: var(--blue-strong); }
.field select::-ms-expand { display: none; }
.field select:disabled { opacity: .6; cursor: not-allowed; }
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--blue-strong); outline-offset: 1px; border-color: var(--blue-strong); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Donate page */
.fund-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin: 36px 0 24px; }
.fund-card { background: var(--card); border-radius: var(--radius); padding: 36px; }
.fund-card h3 { font-size: 26px; margin-bottom: 12px; }
.small-label { font-size: 14px; font-weight: 600; margin: 26px 0 10px; }
.amounts { display: flex; flex-wrap: wrap; gap: 10px; }
.amount { display: inline-flex; align-items: center; justify-content: center; min-width: 76px; min-height: 48px; padding: 10px 16px; border: 1.5px solid var(--blue-strong); border-radius: var(--radius); color: var(--blue-strong); font-weight: 600; }
.amount:hover { background: var(--blue-strong); color: #fff; }
.small-note { font-size: 15px; color: var(--muted); }

/* Footer */
.footer { background: #fff; margin-top: 64px; padding-block: 56px 28px; font-size: 15px; }
.footer-top { display: flex; align-items: center; gap: 28px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-logo img { width: 96px; height: auto; }
.footer-mission { margin: 0; color: var(--muted); max-width: 46em; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-block: 32px; }
.footer h2 { font-size: 14px; letter-spacing: 0; margin-bottom: 12px; }
.footer-cols a { display: inline-block; padding: 5px 0; color: var(--muted); }
.footer a:hover { color: var(--blue-strong); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 20px; }

/* Admin and sign-in pages (header without menus) */
.header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.brand img { width: 96px; height: auto; }
.main-nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 600; flex-wrap: wrap; }
.main-nav a { padding: 10px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--blue-strong); }
.main-nav a[aria-current="page"] { color: var(--blue-strong); border-bottom-color: var(--blue); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .nav-panel-inner { grid-template-columns: 1fr 1.6fr; }
  .nav-panel-inner .nav-col:nth-child(3) { grid-column: 2; }
  .link-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .gnav-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .gnav-actions { margin-left: auto; }
  .split, .story-band, .cta-band, .work-row, .tile.wide { grid-template-columns: 1fr; gap: 24px; }
  .tile.wide .tile-media { min-height: 0; aspect-ratio: 16 / 10; }
  .tile.wide .tile-body { padding: 30px 32px 28px; }
  .story-band { gap: 0; }
  .story-band-media { min-height: 0; aspect-ratio: 16 / 10; }
  .work-label { padding: 12px 0 0; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  :root { --gap: 14px; }
  .section { padding-block: 56px; }
  .hero { margin: 8px 8px 0; min-height: 560px; }
  .hero-content { padding-block: 96px 36px; }
  .image-hero { min-height: 440px; margin-top: 8px; }
  .image-hero-content { padding: 32px 24px; }
  .page-head { padding-block: 48px 24px; }
  .mission-hero { padding-block: 56px 24px; }
  .panel, .cta-band { padding: 32px 24px; }
  .story-band-text { padding: 32px 24px; }
  .work-card { padding: 28px 24px 20px; }
  .tiles, .pillars, .news-grid, .photo-pair, .fund-grid, .link-cards { grid-template-columns: 1fr; }
  .tile-body { padding: 26px 24px 22px; }
  .fund-card { padding: 28px 22px; }
  .faq details { padding: 0 20px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .header-inner { flex-wrap: wrap; gap: 0 16px; padding-block: 10px; }
  .main-nav { margin: 6px 0 0; width: 100%; gap: 4px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .tile:hover .tile-media img { transform: none; }
}

/* Donate form (/donate) */
.give-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.give-fieldset legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.give-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.give-chip { position: relative; }
.give-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.give-chip span { display: inline-flex; align-items: center; justify-content: center; min-width: 76px; min-height: 48px; padding: 10px 18px; border: 1.5px solid var(--blue-strong); border-radius: var(--radius); color: var(--blue-strong); font-weight: 600; cursor: pointer; background: #fff; }
.give-chip input:checked + span { background: var(--blue-strong); color: #fff; }
.give-chip input:focus-visible + span { outline: 3px solid var(--blue-strong); outline-offset: 3px; }
.give-summary { margin: 0; color: var(--muted); font-size: 15px; }
.give-submit { width: 100%; }
.give-fallback summary { cursor: pointer; color: var(--blue-strong); font-weight: 600; font-size: 15px; min-height: 44px; display: flex; align-items: center; }
.give-fallback ul { display: grid; gap: 10px; font-size: 15px; padding-top: 6px; }
.give-fb-name { font-weight: 600; }
.give-inits { display: grid; gap: 8px; margin: 0 0 20px; font-size: 16px; }

/* On-site donation form */
.give-panel { align-items: start; }
.give-form { gap: 26px; }
.give-step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 18px; }
.give-step-title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); padding: 0; margin-bottom: 4px; }
.give-payment { min-height: 120px; }
.give-note { margin: 0; padding: 14px 18px; border-radius: 16px; background: var(--ice); font-size: 15px; }
.give-msg { margin: 0; }
.give-inits li { display: grid; gap: 2px; }
.give-inits .muted { font-size: 15px; }
.give-thanks { background: var(--ice); border-radius: var(--radius); padding: 32px; }
.give-thanks:focus { outline: none; }
.give-thanks h3 { font-size: 28px; }

/* Initiative logos */
.tile-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.tile-brand .tile-tags { margin: 0; }
.tile-logo { width: 56px; height: 56px; border-radius: 16px; flex: none; }
.hero-logo { width: 72px; height: 72px; border-radius: 20px; margin-bottom: 18px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.nav-col a.has-logo { display: flex; align-items: center; gap: 14px; }
.nl-logo { width: 36px; height: 36px; border-radius: 10px; flex: none; }

/* Newsletter sign-up */
.nl-form { display: grid; gap: 14px; align-content: start; }
.nl-band { align-items: center; }
.footer-top { flex-wrap: wrap; }
.footer-news { margin-left: auto; max-width: 420px; flex: 1 1 320px; }
.footer-news h2 { font-size: 16px; margin-bottom: 4px; }
.footer-news p { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.nl-names { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nl-names .field { min-width: 0; }
.nl-form.compact, .nl-form.compact .nl-names { gap: 10px; }
.nl-form.compact .field label { font-size: 14px; }
.nl-form.compact .btn { min-height: 50px; }
@media (max-width: 640px) { .footer-news { margin-left: 0; } }

/* ---------- Account link in the header (filled in by the Worker for signed-in people) ---------- */
.gnav-signin { font-size: 15px; font-weight: 600; color: var(--ink); padding: 8px 12px; border-radius: 999px; }
.gnav-signin:hover { background: rgba(0, 0, 0, .05); }
.acct { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink); }
.acct:hover { background: rgba(0, 0, 0, .05); }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--swoosh); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0; }
.avatar.lg { width: 72px; height: 72px; font-size: 30px; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.mm-actions { display: grid; gap: 10px; margin-top: 20px; }
.mobile-menu .mm-actions .btn { margin-top: 0; }
.mm-actions .acct { justify-content: center; padding: 10px; border: 1.5px solid var(--line); border-radius: var(--radius); }
@media (max-width: 640px) { .gnav-signin { display: none; } .gnav-actions .acct-name { display: none; } .gnav-actions .acct { padding: 4px; } }

/* ---------- Members' welcome center (/members, filled in by src/members.js) ---------- */
.wc-hero { min-height: min(62vh, 560px); }
.wc-hero .hero-content { padding-block: 96px 56px; }
.wc-hero .avatar.lg { margin-bottom: 22px; }
.wc-hero h1 { font-size: clamp(40px, 5.6vw, 76px); }
.wc-notice { margin: 24px auto 0; }
.portals { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.portal { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px; border-radius: var(--radius); overflow: hidden; color: #fff; background: var(--navy); }
.portal:first-child { grid-column: 1 / -1; min-height: 480px; }
.portal-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.portal::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 18, 30, .05) 20%, rgba(6, 18, 30, .6) 55%, rgba(6, 18, 30, .92) 100%); }
.portal:hover .portal-img, .portal:focus-within .portal-img { transform: scale(1.04); }
.portal-body { padding: 32px; }
.portal-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.portal-logo { width: 48px; height: 48px; border-radius: 14px; background: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .25); }
.portal h3 { color: #fff; font-size: clamp(28px, 2.8vw, 40px); margin-bottom: 6px; }
.portal-tagline { color: #eef4f8; font-size: 18px; max-width: 32em; margin-bottom: 20px; }
.portal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.portal-actions form { margin: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: .02em; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); }
.pill.member { background: #e3f4e8; color: #14532d; }
.pill.member::before { content: "✓"; }
.portal-note { font-size: 14px; color: #dbe6ee; }
.wc-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); align-items: start; }
.wc-panel { background: var(--card); border-radius: var(--radius); padding: 32px; }
.wc-panel h2 { font-size: 26px; margin-bottom: 10px; }
.wc-panel p { color: var(--muted); font-size: 16px; }
.wc-panel .status { font-weight: 600; color: var(--ink); }
.wc-panel form { margin: 0; }
.wc-panel .field { margin-bottom: 14px; }
.gifts { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 0; }
.gifts li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.gifts li:last-child { border-bottom: 0; }
.gifts .amt { font-weight: 700; color: var(--ink); white-space: nowrap; }
.gifts .what { color: var(--ink); }
.gifts small { display: block; color: var(--muted); }
.gift-total { font-size: 15px; color: var(--ink); font-weight: 600; }
.acct-meta { font-size: 15px; color: var(--muted); }
.acct-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; font-size: 15px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue-strong); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--blue-hover); }
@media (max-width: 1080px) { .wc-panels { grid-template-columns: 1fr 1fr; } .wc-panels .wc-panel:last-child { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .portals, .wc-panels { grid-template-columns: 1fr; }
  .portal, .portal:first-child { min-height: 380px; }
  .portal-body, .wc-panel { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { .portal-img { transition: none; } .portal:hover .portal-img, .portal:focus-within .portal-img { transform: none; } }
.notice { background: #e6f3fd; border: 1px solid #9cc9e8; border-radius: 16px; padding: 14px 18px; font-size: 15px; margin: 0 0 20px; color: var(--ink); }
.notice.error { background: #fdecec; border-color: #e0a3a3; color: #6b1212; }
.narrow-panel { max-width: 640px; }
@media (max-width: 760px) { .narrow-panel { padding: 24px; } }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.wc-top { padding-top: 16px; }
.wc-top .wc-notice { margin: 0 auto; font-size: 17px; line-height: 1.55; }
.wc-notice p { margin: 0 0 8px; }
.wc-notice p:last-child { margin-bottom: 0; }
.wc-notice .small { font-size: 15px; color: var(--muted); }
.give-noscript-links { margin: 8px 0 0; padding-left: 20px; }
