/* Humanitarian Relief Foundation — shared styles for every page.
   Carried over unchanged from the one-page site; multi-page additions are at the end. */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f4f1;
  --surface: #ffffff;
  --ink: #141414;
  --muted: #4c4c48;
  --line: #d8d8d3;
  --black: #12291b;
  --on-black: #f5f5f2;
  --on-black-dim: #c9c9c2;
  --accent: #5da471;
  --accent-strong: #2f6b44;
  --accent-ink: #0c2817;
  --accent-soft: #e3f2e7;
  --blue: #5d63fc;
  --blue-dark: #3d43d6;
  --focus: #3d43d6;
  --radius: 3px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --bg-soft: #1a1a18;
    --surface: #1e1e1c;
    --ink: #f2f2ee;
    --muted: #bcbcb4;
    --line: #3a3a36;
    --accent-soft: #1d3325;
    --focus: #8b8eff;
    --shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.banner-open { padding-bottom: 64px; }
h1, h2, h3 { font-family: inherit; line-height: 1.12; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: var(--ink); }
img { max-width: 100%; display: block; }
button, select, summary, input:not([type="checkbox"], [type="radio"]) { min-height: 2.25rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Utility bar (black) ---------- */
.utility { background: var(--black); color: var(--on-black); font-size: 0.82rem; }
.utility .wrap { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.utility .crisis { font-weight: 600; color: var(--on-black-dim); }
.utility .crisis strong { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.utility .spacer { flex: 1; }
.utility .fact { color: var(--on-black-dim); }
.lang-toggle { display: inline-flex; gap: 4px; }
.lang-toggle button {
  background: transparent; border: 1px solid rgba(245,245,242,.45); color: var(--on-black);
  border-radius: 999px; padding: 2px 12px; font: inherit; font-size: .8rem; cursor: pointer; min-height: 2rem;
}
.lang-toggle button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 800; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: stretch; gap: 16px; padding-top: 0; padding-bottom: 0; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); padding: 10px 0; }
.brand-mark {
  width: 46px; height: 46px; flex: none;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
  font-weight: 900; font-size: 0.95rem; letter-spacing: .01em;
}
.brand-text { line-height: 1.12; }
.brand-text strong { display: block; font-size: 1rem; font-weight: 800; }
.brand-text span { font-size: .72rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.nav-links { display: flex; align-items: stretch; margin-left: auto; }
.nav-links a {
  display: flex; align-items: center;
  color: var(--ink); text-decoration: none; font-size: .86rem; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 8px 10px; border-left: 1px solid var(--line);
}
.nav-links a:first-child { border-left: 0; }
.nav-links a:hover { background: var(--bg-soft); box-shadow: inset 0 -4px 0 var(--accent); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 800; font-size: .98rem;
  padding: 12px 24px; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: background .12s ease, transform .12s ease;
  min-height: 2.9rem;
}
.btn:active { transform: translateY(1px); }
.btn-donate { background: var(--accent-strong); color: #fff; }
.btn-donate:hover { background: color-mix(in srgb, var(--accent-strong) 82%, #000); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: color-mix(in srgb, var(--ink) 85%, var(--accent)); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--bg-soft); }
.nav .btn { align-self: center; padding: 10px 26px; text-transform: uppercase; letter-spacing: .04em; }
.text-link { font-weight: 800; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.text-link:hover { text-decoration-color: var(--ink); }

/* ---------- Hero (split 50/50) ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.hero-copy { padding: 64px 48px 64px max(20px, calc((100vw - 1200px) / 2 + 20px)); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero-eyebrow {
  font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  background: var(--accent); color: var(--accent-ink); padding: 5px 10px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.7rem); font-weight: 900; }
.hero .lede { margin-top: 20px; font-size: 1.14rem; color: var(--muted); max-width: 32rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 30px; }
.hero-ctas .btn { font-size: 1.05rem; padding: 14px 34px; }
.hero-figure { margin: 0; position: relative; min-height: 420px; }
.hero-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.72); color: #f5f5f2; font-size: .8rem; padding: 8px 16px;
}

/* ---------- Mission + impact stats ---------- */
.mission { padding: 64px 0 0; }
.section-label {
  font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.section-label::before { content: ""; width: 26px; height: 5px; background: var(--accent); flex: none; }
.mission blockquote {
  margin: 0; font-size: clamp(1.5rem, 3.1vw, 2.2rem);
  line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; max-width: 56rem;
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 44px; padding: 34px 0 54px; border-top: 1px solid var(--line); }
.stat .num { font-size: clamp(2.2rem, 4vw, 3.1rem); font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
.stat .num::after { content: ""; display: block; width: 44px; height: 5px; background: var(--accent); margin-top: 12px; }
.stat .lbl { font-size: .95rem; color: var(--muted); margin-top: 10px; max-width: 15rem; }

/* ---------- Sections ---------- */
section.block { padding: 64px 0; }
section.block.alt { background: var(--bg-soft); }
.section-head { max-width: 46rem; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.6rem); font-weight: 900; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 1.05rem; }
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; }
.prose p + p { margin-top: 14px; }
.prose .dim { color: var(--muted); }
.detail-card { background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--ink); padding: 22px 24px; }
.detail-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 12px; }
.detail-list { list-style: none; margin: 0; padding: 0; }
.detail-list li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.detail-list li:last-child { border-bottom: 0; }
.detail-list .k { color: var(--muted); flex: none; }
.detail-list .v { font-weight: 600; text-align: right; }
.copy-btn {
  font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: var(--radius);
  padding: 3px 9px; margin-left: 8px; min-height: 1.8rem;
}

/* ---------- Programs (focus areas) ---------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.card img { aspect-ratio: 16 / 8.5; object-fit: cover; width: 100%; }
.card-body { padding: 22px 24px 26px; }
.card-body h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.card-body p { color: var(--muted); font-size: .98rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.tag { font-size: .76rem; font-weight: 800; background: var(--ink); color: var(--bg); padding: 4px 10px; }
.tag.yellow { background: var(--accent); color: var(--accent-ink); }

/* ---------- Trust / cost-efficiency band (black) ---------- */
.trust { background: var(--black); color: var(--on-black); padding: 60px 0; }
.trust .section-label { color: var(--on-black); }
.trust h2 { color: #fff; font-size: clamp(1.9rem, 3.8vw, 2.6rem); font-weight: 900; }
.trust .section-head p { color: var(--on-black-dim); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.trust-item { border-top: 5px solid var(--accent); padding-top: 18px; }
.trust-item .big { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 900; color: var(--accent); line-height: 1; }
.trust-item h3 { color: #fff; font-size: 1.08rem; font-weight: 800; margin-top: 12px; }
.trust-item p { color: var(--on-black-dim); font-size: .95rem; margin-top: 6px; }

/* ---------- Latest (news-style cards) ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--ink); padding: 22px 24px 26px; display: flex; flex-direction: column; }
.news-card .when { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.news-card h3 { font-size: 1.25rem; font-weight: 800; margin-top: 8px; }
.news-card p { color: var(--muted); font-size: .96rem; margin-top: 8px; }

/* ---------- Get involved ---------- */
.involve-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.involve-card { background: var(--surface); border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.involve-card .ic { width: 46px; height: 46px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.involve-card h3 { font-size: 1.2rem; font-weight: 800; }
.involve-card p { color: var(--muted); font-size: .96rem; flex: 1; }
.involve-card .btn, .involve-card .text-link { align-self: flex-start; margin-top: 8px; }
.ways-list { display: grid; gap: 14px; margin-top: 34px; }
.way { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--line); padding: 18px 20px; }
.way .ic { flex: none; width: 44px; height: 44px; background: var(--ink); color: var(--bg); display: grid; place-items: center; }
.way h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 3px; }
.way p { color: var(--muted); font-size: .94rem; }
.partners { margin-top: 18px; font-size: .9rem; color: var(--muted); }
.partners strong { color: var(--ink); }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--accent); padding: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .9rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: 11px 13px; border: 1.5px solid var(--line);
  border-radius: var(--radius); background: var(--bg); color: var(--ink); width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: .86rem; color: var(--muted); margin-top: 12px; }

/* ---------- Donation modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.62);
  display: none; align-items: flex-start; justify-content: center;
  padding: 28px 16px; overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal-card { background: var(--surface); color: var(--ink); width: 100%; max-width: 640px; box-shadow: var(--shadow); }
.modal-head { background: var(--black); color: #fff; padding: 20px 26px; display: flex; align-items: flex-start; gap: 16px; }
.modal-head h2 { font-size: 1.45rem; font-weight: 900; color: #fff; }
.modal-head p { color: var(--on-black-dim); font-size: .92rem; margin-top: 4px; }
.modal-close {
  margin-left: auto; flex: none; background: var(--accent); color: var(--accent-ink);
  border: 0; width: 40px; height: 40px; font-size: 1.3rem; font-weight: 900; cursor: pointer; line-height: 1;
}
.modal-body { padding: 24px 26px 28px; }
.freq-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--bg-soft); padding: 5px; margin-bottom: 18px; }
.freq-toggle button {
  font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer;
  border: 0; background: transparent; color: var(--muted); padding: 9px;
}
.freq-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.amount-grid button {
  font: inherit; font-weight: 800; font-size: 1.05rem; cursor: pointer;
  background: var(--bg); border: 2px solid var(--line); color: var(--ink); padding: 13px 6px;
}
.amount-grid button[aria-pressed="true"] { border-color: var(--ink); background: var(--accent); color: var(--accent-ink); }
.custom-amount { margin-top: 12px; position: relative; }
.custom-amount span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 800; }
.custom-amount input {
  width: 100%; font: inherit; padding: 12px 14px 12px 30px;
  border: 2px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink);
}
.impact-line { margin-top: 18px; background: var(--accent-soft); padding: 14px 16px; font-size: .97rem; }
.impact-line strong { color: var(--ink); }
.modal-body .btn { width: 100%; margin-top: 16px; font-size: 1.02rem; padding: 14px; }
.fineprint { margin-top: 12px; font-size: .83rem; color: var(--muted); text-align: center; }

/* ---------- Operations ---------- */
.ops { background: var(--black); color: var(--on-black); padding: 64px 0; }
.ops .section-label { color: var(--on-black); }
.ops h2 { color: #fff; font-size: clamp(1.9rem, 3.8vw, 2.6rem); font-weight: 900; }
.ops .section-head p { color: var(--on-black-dim); }
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stack-card { background: rgba(255,255,255,.05); border: 1px solid rgba(245,245,242,.2); padding: 20px 22px; }
.stack-card h3 { font-size: 1.12rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.stack-card p { font-size: .93rem; color: var(--on-black-dim); }
.stack-card .cost { font-size: 1.5rem; font-weight: 900; color: var(--accent); }
.status {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; padding: 3px 9px; margin-top: 12px;
}
.status.ready { background: var(--accent); color: var(--accent-ink); }
.status.next { background: #fff; color: #141414; }
.status.todo { background: rgba(255,255,255,.16); color: var(--on-black); }
.flows { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; }
.flow { border: 1px solid rgba(245,245,242,.2); padding: 20px 22px; }
.flow h3 { font-size: 1.05rem; color: #fff; font-weight: 800; margin-bottom: 8px; }
.flow ol { margin: 0; padding-left: 20px; font-size: .94rem; color: var(--on-black-dim); }
.flow ol li + li { margin-top: 3px; }
.checklist { margin-top: 34px; background: rgba(255,255,255,.05); border: 1px solid rgba(245,245,242,.2); padding: 24px 26px; }
.checklist h3 { color: #fff; font-size: 1.2rem; font-weight: 800; margin-bottom: 14px; }
.checklist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: baseline; font-size: .97rem; color: var(--on-black); }
.checklist .status { margin-top: 0; flex: none; }
.checklist li span.txt { color: var(--on-black-dim); }
.checklist li strong { color: #fff; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; max-width: 52rem; }
details.faq { background: var(--surface); border: 1px solid var(--line); padding: 4px 22px; }
details.faq summary { font-weight: 800; cursor: pointer; padding: 14px 0; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; }
details.faq[open ] summary::after { content: "–"; }
details.faq p { color: var(--muted); padding: 0 0 18px; font-size: .97rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--ink); padding: 22px; }
.contact-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.contact-card p, .contact-card a { font-size: .98rem; }
.contact-card .big { font-size: 1.12rem; font-weight: 800; }

/* ---------- Footer (black) ---------- */
footer { background: var(--black); color: var(--on-black); padding: 48px 0 40px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(245,245,242,.22); padding-bottom: 26px; margin-bottom: 26px; }
.footer-top .fbrand { font-size: 1.3rem; font-weight: 900; color: #fff; line-height: 1.2; }
.footer-top .fbrand span { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-black-dim); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; }
footer p { font-size: .88rem; color: var(--on-black-dim); max-width: 36rem; }
footer p strong { color: #fff; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { font-size: .9rem; font-weight: 700; text-decoration: none; color: var(--on-black); padding: 6px 2px; }
.footer-links a:hover { color: var(--accent); }
.ein-line { margin-top: 14px; font-size: .95rem; color: #fff; font-weight: 700; }
.ein-line span { color: var(--accent); }
/* Seal of Transparency: a small linked badge in the footer and in About's "Organization details" */
.seal { display: inline-block; line-height: 0; background: #fff; border-radius: 2px; }
.seal img { display: block; width: 88px; height: 88px; }
.seal:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.seal-row { margin-top: 14px; }
.detail-list .seal-item { align-items: center; }

/* ---------- Sticky donate banner ---------- */
.sticky-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--black); color: var(--on-black);
  border-top: 3px solid var(--accent);
  display: none;
}
.sticky-banner.show { display: block; }
.sticky-banner .wrap { display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.sticky-banner p { font-weight: 700; font-size: .98rem; color: #fff; }
.sticky-banner .btn { padding: 9px 22px; min-height: 2.5rem; }
.banner-close {
  margin-left: auto; background: transparent; border: 0; color: var(--on-black);
  font-size: 1.35rem; cursor: pointer; width: 40px; height: 40px; line-height: 1; flex: none;
}
body.ar .i18n { direction: rtl; text-align: right; }

.brand-logo { height: 54px; width: auto; display: block; }
.credit { font-size: .76rem; color: var(--muted); margin-top: 10px; }
.credit a { color: var(--blue-dark); font-weight: 700; }
@media (prefers-color-scheme: dark) { .credit a { color: #a5a8ff; } }
.news-card img { width: calc(100% + 48px); max-width: none; margin: -22px -24px 16px; aspect-ratio: 16 / 9; object-fit: cover; }
.news-card .source-link { margin-top: 12px; font-weight: 800; font-size: .92rem; color: var(--blue-dark); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 4px; }
@media (prefers-color-scheme: dark) { .news-card .source-link { color: #a5a8ff; } }
.field-note { margin-top: 18px; font-size: .92rem; color: var(--muted); border-left: 4px solid var(--blue); padding-left: 14px; }
.footer-logo { background: #fff; padding: 8px 10px; display: inline-block; }
.footer-logo img { height: 56px; width: auto; }

/* ---------- Mobile nav ---------- */
.nav-toggle {
  display: none; align-self: center; margin-left: auto;
  background: transparent; border: 2px solid var(--ink); border-radius: var(--radius);
  color: var(--ink); font: inherit; font-weight: 800; font-size: .85rem;
  padding: 8px 14px; cursor: pointer; min-height: 2.6rem;
}
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--bg); }
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 14px 20px; text-decoration: none; color: var(--ink);
  font-weight: 800; font-size: .92rem; letter-spacing: .04em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a:hover { background: var(--bg-soft); }

/* ---------- Where we work ---------- */
.where-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.where-panel { background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--accent); padding: 26px 28px 28px; }
.where-panel.blue { border-top-color: var(--blue); }
.where-panel .place { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.where-panel h3 { font-size: 1.55rem; font-weight: 900; margin-top: 6px; }
.where-panel > p { color: var(--muted); margin-top: 10px; font-size: .99rem; }
.where-panel .detail-list { margin-top: 14px; }

/* ---------- History timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
.tl-item .yr { font-size: 1.7rem; font-weight: 900; line-height: 1; color: var(--accent-strong); }
@media (prefers-color-scheme: dark) { .tl-item .yr { color: var(--accent); } }
.tl-item .yr::after { content: ""; display: block; width: 36px; height: 5px; background: var(--blue); margin-top: 10px; }
.tl-item h3 { font-size: 1rem; font-weight: 800; margin-top: 10px; }
.tl-item p { font-size: .92rem; color: var(--muted); margin-top: 4px; }

/* ---------- Transparency line (in trust band) ---------- */
.verify-line { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(245,245,242,.22); font-size: .97rem; color: var(--on-black-dim); }
.verify-line a { color: var(--accent); font-weight: 800; }
.verify-line strong { color: #fff; }

/* ---------- Updates signup band ---------- */
.updates { background: var(--accent-soft); padding: 52px 0; }
.updates .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.updates h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 900; }
.updates .sub { color: var(--muted); margin-top: 10px; max-width: 30rem; }
.signup-form { display: flex; gap: 10px; flex-wrap: wrap; }
.signup-form input {
  flex: 1 1 220px; font: inherit; padding: 12px 14px;
  border: 2px solid var(--line); border-radius: var(--radius);
  background: var(--bg); color: var(--ink); min-height: 2.9rem;
}
.signup-note { font-size: .85rem; color: var(--muted); margin-top: 10px; }

/* ---------- Volunteer roles / careers / matching ---------- */
.role-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.role-list li { background: var(--surface); border: 1px solid var(--line); padding: 14px 16px; }
.role-list h3 { font-size: 1rem; font-weight: 800; }
.role-list p { font-size: .92rem; color: var(--muted); margin-top: 3px; }
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 8px; }
.step { background: var(--surface); border: 1px solid var(--line); padding: 20px 22px; }
.step .n { width: 36px; height: 36px; background: var(--accent-strong); color: #fff; font-weight: 900; display: grid; place-items: center; border-radius: 999px; margin-bottom: 10px; }
.step h3 { font-size: 1.05rem; font-weight: 800; }
.step p { font-size: .94rem; color: var(--muted); margin-top: 5px; }
.step p a { color: var(--blue-dark); font-weight: 700; }
@media (prefers-color-scheme: dark) { .step p a { color: #a5a8ff; } }
.match-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 26px 0; }
.match-fact { background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--blue); padding: 18px; }
.match-fact .big { font-size: 1.7rem; font-weight: 900; line-height: 1; }
.match-fact p { font-size: .9rem; color: var(--muted); margin-top: 7px; }
.prog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 34px; }
.prog-card { background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--accent); padding: 20px 22px; }
.prog-card h3 { font-size: 1.05rem; font-weight: 800; }
.prog-card p { font-size: .94rem; color: var(--muted); margin-top: 5px; }
.prog-card p a { color: var(--blue-dark); font-weight: 700; }
@media (prefers-color-scheme: dark) { .prog-card p a { color: #a5a8ff; } }
.example-box { background: var(--accent-soft); border: 1px solid var(--line); padding: 24px 26px; margin-top: 34px; }
.example-box .ex-label { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: 8px; }
@media (prefers-color-scheme: dark) { .example-box .ex-label { color: var(--accent); } }
.example-box h3 { font-size: 1.2rem; font-weight: 900; margin-bottom: 8px; }
.example-box > p { color: var(--muted); max-width: 46rem; }
.example-box > p strong { color: var(--ink); }
.example-box .match-facts { margin: 18px 0; }
.example-box a { color: var(--blue-dark); font-weight: 700; }
@media (prefers-color-scheme: dark) { .example-box a { color: #a5a8ff; } }
@media (max-width: 640px) { .prog-grid { grid-template-columns: 1fr; } }
.check-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 10px; font-size: .95rem; color: var(--muted); }
.check-list li::before { content: "✓"; font-weight: 900; color: var(--accent-strong); flex: none; }
@media (max-width: 900px) { .steps, .match-facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .steps, .match-facts { grid-template-columns: 1fr; } }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav .btn { margin-left: 0; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 44px 20px; }
  .hero-figure { min-height: 300px; order: -1; }
  .hero-figure img { position: absolute; }
  .two-col { grid-template-columns: 1fr; }
  .where-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .updates .wrap { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .trust-grid, .news-grid, .involve-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards, .flows, .form-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr; }
  .hero { padding: 0; }
  section.block, .ops, .trust { padding: 46px 0; }
  .brand-text span { display: none; }
  .utility .fact { display: none; }
  .sticky-banner p { font-size: .88rem; }
}

/* ---------- Multi-page additions ---------- */
/* Footer sits at the bottom of the window on short pages */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; display: flex; flex-direction: column; }
main > section:last-child { flex: 1 0 auto; }
/* Links that land on a section clear the sticky header */
section[id] { scroll-margin-top: 84px; }
/* First heading of an inner page looks like the section headings did */
.section-head h1 { font-size: clamp(1.9rem, 3.8vw, 2.6rem); font-weight: 900; }
/* Current page in the navigation */
.nav-links a[aria-current="page"] { background: var(--bg-soft); box-shadow: inset 0 -4px 0 var(--accent); }
.mobile-nav a[aria-current="page"] { background: var(--bg-soft); box-shadow: inset 5px 0 0 var(--accent); }
.footer-links a[aria-current="page"] { color: var(--accent); }
/* "Check us before you give" on a light background (About page) */
.verify-line.on-light { color: var(--muted); border-top-color: var(--line); }
.verify-line.on-light a { color: var(--blue-dark); }
.verify-line.on-light strong { color: var(--ink); }
@media (prefers-color-scheme: dark) { .verify-line.on-light a { color: #a5a8ff; } }
.more-link { margin-top: 28px; }
/* Phone header: logo, name, Menu and Donate sit side by side without overlapping */
@media (max-width: 640px) {
  .nav .wrap { gap: 10px; }
  .brand { gap: 8px; min-width: 0; }
  .brand-logo { height: 44px; }
  .brand-text strong { font-size: .82rem; }
  .nav-toggle { padding: 8px 10px; }
  .nav .btn { padding: 10px 14px; }
}
@media (max-width: 383px) {
  .brand-text { display: none; }
}
/* Long email addresses wrap instead of pushing narrow phones sideways */
.detail-list .v { min-width: 0; overflow-wrap: anywhere; }

/* ---------- Social links, share buttons, dated Latest entries, story pages (Nov 2026) ---------- */
/* Home stats: three public facts */
.stats.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .stats.three { grid-template-columns: 1fr 1fr; } }
.trust-item .big { overflow-wrap: anywhere; }
.trust-item p a { color: var(--accent); font-weight: 800; }

/* Footer: links readable on the dark background, and the "Follow HRF" row */
footer p a { color: #fff; }
.social-row { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.social-row .social-label { font-weight: 800; color: #fff; margin-right: 4px; }
.social-row a {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: 6px 16px;
  border: 1px solid rgba(245,245,242,.45); border-radius: 999px;
  color: #fff; font-weight: 800; text-decoration: none;
}
.social-row a:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.social-list a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* Share row */
.share { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.share-label { flex: 0 0 100%; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: .8rem; font-weight: 800; line-height: 1.2;
  min-height: 2.5rem; padding: 6px 10px; cursor: pointer; text-decoration: none;
  background: var(--bg); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px;
}
.share-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.share-btn[hidden] { display: none; }
.share-band { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--accent); padding: 20px 22px; }
.share-band .share { border-top: 0; padding-top: 0; margin-top: 10px; }
body.ar .share, body.ar .social-row { direction: rtl; }

/* Latest: HRF's own entries first, then UN / news context */
.group-title { font-size: 1.3rem; font-weight: 900; margin: 34px 0 6px; padding-top: 22px; border-top: 1px solid var(--line); }
.section-head + .group-title { margin-top: 0; padding-top: 0; border-top: 0; }
.group-title + .news-grid { margin-top: 14px; }
.group-note { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.news-card.own { border-top-color: var(--accent-strong); }
.news-card h3 a { color: inherit; text-decoration: none; }
.news-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.news-card .source-link { align-self: flex-start; }
.news-card .share { margin-top: auto; }
.news-card .credit { margin-bottom: 16px; }
.fact-list { margin-top: 12px; }
.fact-list .v { font-weight: 800; }

/* One page per story (the address that gets shared) */
.story { max-width: 46rem; }
.story h1 { font-size: clamp(1.9rem, 3.8vw, 2.6rem); font-weight: 900; }
.story .when { margin-top: 12px; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.story-figure { margin: 22px 0 0; }
.story-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.story-summary { margin-top: 20px; font-size: 1.1rem; }
/* A longer article on an HRF entry's own page: the paragraphs under the summary */
.story-body p { margin-top: 16px; }
/* HRF's Facebook page on Latest (loaded from Facebook; 500px is the widest it draws) */
.fb-feed { max-width: 500px; margin-top: 14px; background: var(--surface); border: 1px solid var(--line); }
.fb-feed iframe { display: block; width: 100%; height: 700px; border: 0; overflow: hidden; }
/* The organizers' flyer on an entry about an event HRF sponsors: shown whole, never cropped */
.story-flyer { margin: 24px 0 0; max-width: 30rem; }
.story-flyer img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
/* The logo of an HRF program on its entry's own page: small, whole, and on white so it also reads in dark mode */
.story-logo { margin: 24px 0 0; max-width: 13rem; }
.story-logo img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--line); }
/* More photos on an HRF entry's own page */
.story-gallery { margin-top: 24px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.story-gallery img { display: block; width: 100%; height: auto; }
.story .source-link { display: inline-block; margin-top: 16px; font-weight: 800; color: var(--blue-dark); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 4px; }
@media (prefers-color-scheme: dark) { .story .source-link { color: #a5a8ff; } }

/* ---------- Plain-language pages (Nov 19 audit) ---------- */
.hero.solo { grid-template-columns: 1fr; }
.hero.solo .hero-copy { padding-top: 72px; padding-bottom: 72px; padding-right: 20px; }
.hero.solo h1 { max-width: 48rem; }
.hero.solo .lede { max-width: 44rem; }
.where-panel h2 { font-size: 1.55rem; font-weight: 900; margin-top: 6px; }
.place-label { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.card-body .join { margin-top: 14px; color: var(--ink); font-weight: 600; }
.card-body .join .btn { margin-left: 6px; padding: 8px 18px; min-height: 2.5rem; }
.ways-list .way .btn { margin-top: 4px; }

/* ---------- Mission and campaign (Nov 19, 2026) ---------- */
.mission { padding: 56px 0; }
.mission-text { max-width: 52rem; }
.mission-text p { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5; font-weight: 600; }
.mission-text p + p { margin-top: 18px; }
.prose .mission-head { font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 900; line-height: 1.25; }
.campaign { background: var(--black); color: var(--on-black); padding: 60px 0; }
.campaign .section-label { color: var(--on-black); }
.campaign h1, .campaign h2 { color: #fff; font-size: clamp(1.9rem, 3.8vw, 2.8rem); font-weight: 900; max-width: 44rem; }
.campaign .campaign-text { color: var(--on-black-dim); font-size: 1.14rem; margin-top: 14px; max-width: 40rem; }
.campaign .campaign-line { color: #fff; font-weight: 700; margin-top: 18px; padding-left: 14px; border-left: 4px solid var(--accent); max-width: 40rem; }
.campaign .text-link { color: #fff; }
.campaign.page { padding: 72px 0; }
.campaign-quote { margin-top: 28px; font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 800; padding-left: 16px; border-left: 5px solid var(--accent); max-width: 44rem; }
.campaign-card { margin-top: 28px; background: var(--black); color: var(--on-black); padding: 28px 30px; }
.campaign-card .section-label { color: var(--on-black); }
.campaign-card h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; }
.campaign-card p { color: var(--on-black-dim); margin-top: 10px; max-width: 42rem; }
.campaign-card .text-link { color: #fff; }
.campaign-card .hero-ctas, .campaign .hero-ctas { margin-top: 22px; }
.campaign-panel { border-top-color: var(--ink); }
.rebuild { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--accent); padding: 26px 28px; }
.rebuild h2 { font-size: 1.4rem; font-weight: 900; }
.rebuild p { margin-top: 10px; max-width: 44rem; }
.rebuild .credit { margin-top: 12px; }

/* ---------- Membership button and sign-up pop-up (Nov 28, 2026) ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
/* the footer's "Membership" link lands on this card: clear the sticky header and mark the card */
.way[id] { scroll-margin-top: 96px; }
.way:target { border-color: var(--accent-strong); box-shadow: inset 5px 0 0 var(--accent); }
html.popup-open { overflow: hidden; }
.popup-overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.62);
  display: none; justify-content: center; padding: 28px 16px;
}
.popup-overlay.open { display: flex; }
.popup-card { background: #fff; color: #141414; width: 100%; max-width: 1000px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.popup-head { background: var(--black); color: #fff; padding: 10px 12px 10px 20px; display: flex; align-items: center; gap: 16px; }
.popup-head h2 { font-size: 1.05rem; font-weight: 900; color: #fff; margin-right: auto; }
.popup-head a { color: var(--on-black-dim); font-size: .86rem; font-weight: 700; }
.popup-head .modal-close { margin-left: 0; }
.popup-frame { position: relative; flex: 1 1 auto; min-height: 0; }
/* "Loading…" with a turning ring: the form can take several seconds to arrive after the press */
.popup-frame p { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: #4c4c48; font-weight: 700; }
.popup-frame p::before { content: ""; width: 36px; height: 36px; border: 4px solid #d8d8d3; border-top-color: #2f6b44; border-radius: 50%; animation: popup-spin .9s linear infinite; }
.popup-frame p[hidden] { display: none; }
@keyframes popup-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .popup-frame p::before { animation: none; } }
.popup-frame iframe { position: relative; display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 768px) { .popup-overlay { padding: 0; } }
