/* ==========================================================================
   Save a Child — saveachild.charity
   Airmail theme: blue + red stripes, sunflower accent.
   No build step. Edit freely.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Serif Display";
  src: url("../assets/fonts/dm-serif-display-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --ink: #121a2e;
  --soft: #4e5874;
  --blue: #1f4fbf;
  --blue-deep: #163a8f;
  --red: #d8342a;
  --red-btn: #d8342a;
  --sun: #ffc531;
  --green: #2f8a4c;
  --panel: #ffffff;
  --tint: #eef3ff;
  --line: #dfe5f3;
  --hero-bg: #1f4fbf;
  --header-bg: rgba(255, 255, 255, .92);
  --danger-bg: #fff1ef;
  --ok-bg: #eaf7ee;
  --shadow: 0 16px 36px rgba(6, 20, 60, .22);
  --radius: 14px;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "DM Serif Display", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1626;
    --ink: #eef2fb;
    --soft: #b4bdd4;
    --blue: #6f97f5;
    --red: #ff6a5f;
    --panel: #17213a;
    --tint: #1a2643;
    --line: #2a3758;
    --hero-bg: #163a8f;
    --header-bg: rgba(15, 22, 38, .92);
    --danger-bg: #2f1c24;
    --ok-bg: #16301f;
    --shadow: 0 16px 36px rgba(0, 0, 0, .45);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font-body);
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
h1, h2 { font-family: var(--font-head); font-weight: 400; }
h1 { font-size: clamp(36px, 5.4vw, 58px); }
h2 { font-size: clamp(28px, 3.8vw, 42px); }
h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
.hero :focus-visible, .cta :focus-visible, .site-footer :focus-visible, .btn:focus-visible { outline-color: var(--sun); box-shadow: 0 0 0 5px rgba(18, 26, 46, .85); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nw { white-space: nowrap; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--sun); color: #121a2e; padding: 12px 18px; border-radius: 0 0 10px 10px;
  font-weight: 700; text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1240px; margin: 0 auto; }
.section { padding: clamp(44px, 6vw, 88px) max(5vw, 16px); }
.section--tint { background: var(--tint); }
.lead { font-size: 18px; color: var(--soft); max-width: 38em; margin-top: 14px; }
.eyebrow { font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.stack > * + * { margin-top: 16px; }
.container--narrow { max-width: 860px; }
.mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-22 { margin-top: 22px; } .mt-28 { margin-top: 28px; }
.list-soft { padding-left: 20px; margin-top: 12px; color: var(--soft); }
.list-plain { list-style: none; padding: 0; margin-top: 12px; }
.list-plain > * + * { margin-top: 8px; }

/* ---------- Airmail stripe ---------- */
.stripe {
  height: 10px;
  background: repeating-linear-gradient(-45deg, #d8342a 0 18px, #fff 18px 28px, #1f4fbf 28px 46px, #fff 46px 56px);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 0 max(5vw, 16px);
}
.nav { display: flex; align-items: center; gap: 22px; min-height: 66px; flex-wrap: wrap; }
.logo {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto;
  font: 400 23px/1 var(--font-head); color: var(--ink); text-decoration: none;
}
.logo svg { width: 32px; height: 32px; flex: none; }
.nav-wrap { display: contents; }
.nav-links { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.nav-links a {
  display: inline-block; padding: 10px 12px; border-radius: 8px;
  text-decoration: none; font-weight: 500; color: var(--soft);
}
.nav-links a:hover { color: var(--ink); background: var(--tint); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.nav-toggle {
  display: none; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 14px; border-radius: 10px;
  border: 2px solid var(--line); background: var(--panel); color: var(--ink);
  font: 700 15px var(--font-body); cursor: pointer;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; content: ""; position: relative; transition: transform .2s, opacity .2s;
}
.nav-toggle .bars::before { position: absolute; top: -6px; }
.nav-toggle .bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 10px; border: 0;
  background: var(--red-btn); color: #fff;
  font: 700 16px var(--font-body); text-decoration: none; cursor: pointer;
  transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(.92); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--sun { background: var(--sun); color: #121a2e; }
.btn--blue { background: var(--blue-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn--ghost:hover { background: var(--tint); filter: none; }
.btn--sm { min-height: 42px; padding: 0 18px; }
.btn--lg { min-height: 54px; font-size: 17px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Hero ---------- */
.hero { background: var(--hero-bg); color: #fff; }
.hero .container {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(28px, 5vw, 64px);
  grid-template-areas: "copy art" "form art"; grid-template-rows: auto 1fr; align-items: start;
}
.hero-copy { grid-area: copy; align-self: end; }
.hero-form { grid-area: form; }
.hero .art { grid-area: art; align-self: center; }
.hero .sub { font-size: 18px; margin-top: 16px; color: #e3eaff; max-width: 30em; }
.hero .art svg { width: 100%; height: auto; display: block; }
@keyframes drift { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(-3deg); } }
.fly { animation: drift 6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }

/* ---------- Sponsor form (hero) ---------- */
.form-card { background: var(--panel); color: var(--ink); border-radius: 16px; padding: 24px; margin-top: 28px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 26px; }
fieldset { border: 0; padding: 0; margin: 18px 0 0; }
legend, .label { display: block; padding: 0; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--panel); color: var(--ink); font-weight: 500; font-size: 15px;
}
.chip input:checked + span { border-color: var(--blue); background: var(--tint); color: var(--blue); font-weight: 700; }
.chip input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; box-shadow: 0 0 0 5px rgba(18, 26, 46, .85); }
.amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.amount { position: relative; display: block; }
.amount input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.amount span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 66px; padding: 6px;
  border: 2px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink);
  font-weight: 700; font-size: 18px; line-height: 1.15; text-align: center;
}
.amount small { font-weight: 500; font-size: 13px; color: var(--soft); }
.amount input:checked + span { border-color: var(--red); background: var(--danger-bg); }
.amount input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; box-shadow: 0 0 0 5px rgba(18, 26, 46, .85); }
.summary { margin: 16px 0; padding: 12px 14px; border-radius: 10px; background: var(--tint); font-size: 15px; }
.billing-note { margin-top: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--tint); font-size: 14px; line-height: 1.5; color: var(--ink); }
.billing-note a { color: var(--blue); font-weight: 700; }
.disclosure { margin-top: 28px; padding: 18px 20px; border-radius: var(--radius); border: 2px solid var(--blue); background: var(--panel); max-width: 860px; }
.disclosure h3 { margin-bottom: 8px; }
.disclosure a { color: var(--blue); font-weight: 700; }
.mt-8 { margin-top: 8px; font-size: 14px; color: var(--soft); }
.fine { font-size: 13px; color: var(--soft); margin-top: 10px; text-align: center; }
.fine a { color: var(--blue); }

/* ---------- Trust strip ---------- */
.trust { border-bottom: 1px solid var(--line); background: var(--panel); padding: 18px max(5vw, 16px); }
.trust ul { list-style: none; padding: 0; margin: 0 auto; max-width: 1240px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 24px; }
.trust li { display: flex; gap: 10px; align-items: center; font-weight: 500; font-size: 15px; }
.trust svg { flex: none; width: 26px; height: 26px; }

/* ---------- Cards / grids ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.card { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.card svg { width: 48px; height: 48px; margin-bottom: 12px; }
.card p { color: var(--soft); font-size: 15px; margin-top: 6px; }

.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--panel); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue-deep); color: #fff; font-weight: 700; margin-bottom: 12px;
}
.steps p { color: var(--soft); font-size: 15px; margin-top: 6px; }

/* ---------- Budget bars ---------- */
.rows { margin-top: 24px; display: grid; gap: 16px; }
.row .top { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.row .top span:last-child { white-space: nowrap; color: var(--blue); }
.bar { height: 12px; border-radius: 6px; background: var(--tint); margin-top: 6px; overflow: hidden; border: 1px solid var(--line); }
.section--tint .bar { background: var(--panel); }
.bar i { display: block; height: 100%; background: var(--blue); border-radius: 6px; }
.row:nth-child(2) .bar i { background: var(--red); }
.row:nth-child(3) .bar i { background: var(--sun); }
.w80 { width: 80%; } .w12 { width: 12%; } .w8 { width: 8%; }
.small { font-size: 13px; color: var(--soft); margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--red); flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin-top: 10px; color: var(--soft); }
.faq h2 { margin-bottom: 8px; }

/* ---------- CTA band ---------- */
.cta { background: #c42b22; color: #fff; }
.cta .container { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--hero-bg); color: #fff; padding: clamp(40px, 6vw, 72px) max(5vw, 16px); }
.page-hero p { color: #e3eaff; font-size: 18px; margin-top: 14px; max-width: 38em; }
.page-hero h1 { font-size: clamp(34px, 5vw, 50px); }
.breadcrumb { font-size: 14px; margin-bottom: 12px; color: #cfdaff; }
.breadcrumb a { color: #fff; }

/* ---------- Prose (legal / policy pages) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 24px 0 8px; }
.prose p, .prose li { color: var(--ink); }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 22px; margin-top: 10px; }
.prose li + li { margin-top: 6px; }
.prose .meta { color: var(--soft); font-size: 14px; margin-bottom: 28px; }
.toc { background: var(--tint); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 36px; max-width: 760px; }
.toc h2 { font-size: 18px; font-family: var(--font-body); font-weight: 700; margin: 0 0 8px; }
.toc ol { padding-left: 20px; columns: 2; column-gap: 32px; }
.toc a { text-decoration: none; }
.callout { border-left: 5px solid var(--blue); background: var(--tint); padding: 16px 18px; border-radius: 0 10px 10px 0; margin: 20px 0; }
.callout--warn { border-color: var(--sun); }
.callout strong { display: block; margin-bottom: 4px; }

/* ---------- Status table (transparency) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 24px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--tint); font-size: 14px; }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pill--wait { background: #fff0c2; color: #5c4300; }
.pill--ok { background: #d4f0dc; color: #14532d; }
@media (prefers-color-scheme: dark) {
  .pill--wait { background: #4a3a0c; color: #ffe08a; }
  .pill--ok { background: #17402a; color: #a6e8bd; }
}

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--tint); color: var(--blue); }
.contact-list b { display: block; }
.contact-list address { font-style: normal; }
.contact-list a { color: var(--ink); }
.field { margin-top: 18px; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 10px;
  border: 2px solid var(--line); background: var(--panel); color: var(--ink);
  font: 16px var(--font-body);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid var(--sun); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--red); }
.field .err { color: var(--red); font-size: 14px; margin-top: 4px; font-weight: 500; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: 10px; margin-top: 18px; font-weight: 500; border: 1px solid var(--line); }
.alert[hidden] { display: none; }
.alert--ok { background: var(--ok-bg); border-color: #5cb377; }
.alert--err { background: var(--danger-bg); border-color: var(--red); }
.form-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 8px 28px rgba(6, 20, 60, .08); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: clamp(60px, 10vw, 130px) max(5vw, 16px); }
.notfound .big { font: 400 clamp(80px, 16vw, 160px)/1 var(--font-head); color: var(--blue); }
.notfound p { color: var(--soft); max-width: 32em; margin: 14px auto 28px; font-size: 18px; }
.notfound .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: #121a2e; color: #cfd7ea; padding: clamp(40px, 5vw, 64px) max(5vw, 16px) 28px; }
.site-footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font: 700 17px var(--font-body); letter-spacing: 0; color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #cfd7ea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer .about p { max-width: 28em; }
.site-footer address { font-style: normal; }
.legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 20px; font-size: 13px; color: #a9b4cd; display: grid; gap: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid-4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .site-footer .about { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .split, .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .hero .container { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "art" "form"; grid-template-rows: auto; }
  .hero .art { max-width: 400px; margin: 20px auto 0; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .toc ol { columns: 1; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav-links { display: none; flex-basis: 100%; flex-direction: column; gap: 0; padding: 4px 0 14px; order: 5; }
  .js .site-header.is-open .nav-links { display: flex; }
  .js .nav-links a { display: block; padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .js .nav-links a[aria-current="page"] { box-shadow: none; color: var(--red); }
  .nav-cta { display: none; }
}
@media (max-width: 600px) {
  .grid-4, .steps, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .trust ul { grid-template-columns: minmax(0, 1fr); }
  .form-card { padding: 20px; }
  .amount span { font-size: 16px; }
  .site-footer .container { grid-template-columns: minmax(0, 1fr); }
  .cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .fly { animation: none; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .site-header, .stripe, .cta, .site-footer .about, .skip-link, .nav-toggle { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; }
}

/* ==========================================================================
   Newsroom (stories, impact updates, reports)
   ========================================================================== */
[hidden] { display: none !important; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; }
.tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .02em; background: var(--tint); color: var(--blue); border: 1px solid var(--line);
}
.section--tint .tag { background: var(--panel); }
.tag--light { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .35); }

.post-grid { align-items: stretch; }
.post-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(6, 20, 60, .14); }
.post-card__media { display: block; aspect-ratio: 40 / 21; background: var(--tint); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__ph {
  display: block; width: 100%; height: 100%;
  background: repeating-linear-gradient(-45deg, #d8342a 0 18px, #fff 18px 28px, #1f4fbf 28px 46px, #fff 46px 56px);
  opacity: .55;
}
.post-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.post-card__meta { font-size: 13px; color: var(--soft); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-card h3 { font-size: 19px; line-height: 1.3; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--blue); text-decoration: underline; }
.post-card p:not(.post-card__meta) { color: var(--soft); font-size: 15px; }
.post-card__more { margin-top: auto; padding-top: 6px; font-weight: 700; text-decoration: none; }
.post-card__more::after { content: " \2192"; }
.post-card__more:hover { text-decoration: underline; }
.post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.newsroom-tools { display: flex; gap: 16px 24px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.search { display: flex; gap: 8px; flex: 1 1 320px; max-width: 460px; }
.search input {
  flex: 1; min-height: 46px; padding: 0 14px; border-radius: 10px; border: 2px solid var(--line);
  background: var(--panel); color: var(--ink); font: 16px var(--font-body);
}
.search input:focus { border-color: var(--blue); outline: 3px solid var(--sun); outline-offset: 1px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; flex: 2 1 320px; }
.filter-btn {
  min-height: 42px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line);
  background: var(--panel); color: var(--ink); font: 500 15px var(--font-body); cursor: pointer;
}
.filter-btn:hover { background: var(--tint); }
.filter-btn[aria-pressed="true"] { border-color: var(--blue); background: var(--tint); color: var(--blue); font-weight: 700; }
.empty { padding: 28px; text-align: center; color: var(--soft); border: 1px dashed var(--line); border-radius: var(--radius); margin-top: 18px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; }
#results-count { margin: 0 0 18px; min-height: 1.4em; }

/* single post */
.container--article { max-width: 820px; }
.page-hero--post h1 { font-size: clamp(30px, 4.6vw, 46px); }
.post-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px !important; font-size: 15px !important; }
.post-article { padding-top: clamp(28px, 4vw, 48px); }
.post-figure { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--tint); }
.post-figure img { display: block; width: 100%; height: auto; }
.post-body { max-width: none; font-size: 18px; line-height: 1.7; }
.post-body h2 { font-size: clamp(24px, 3vw, 30px); margin: 36px 0 12px; }
.post-body p + p { margin-top: 16px; }
.post-body ul { margin: 12px 0 0; }
.post-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .search { max-width: none; flex-basis: 100%; }
  .post-body { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .post-card:hover { transform: none; } }


/* ==========================================================================
   Giving switch (Monthly sponsorship / One-time gift)
   ========================================================================== */
.mode-switch { display: none; margin: 0 0 18px; }
.js .mode-switch {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px;
  border-radius: 999px; background: var(--tint); border: 1px solid var(--line);
}
.mode { position: relative; display: block; }
.mode input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.mode span {
  display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 12px;
  border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1.2; text-align: center;
  color: var(--soft); text-decoration: none; transition: background .15s, color .15s;
}
.mode input:checked + span { background: var(--red-btn); color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.mode input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.mode input:not(:checked) + span:hover { color: var(--ink); }
.amounts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Custom amount inside the hero card (JS only; the no-JS form submits the presets) */
.gift-thanks { margin-top: 12px; line-height: 1.5; }
.js-only { display: none; }
.js .js-only { display: block; }
.custom-amount.custom-amount--hero { margin-top: 12px; }
.custom-amount.custom-amount--hero label { font-size: 14px; margin-bottom: 6px; }
.custom-amount--hero .money-input input { min-height: 48px; font-size: 20px; }
.custom-amount--hero .money-input__prefix, .custom-amount--hero .money-input__suffix { font-size: 15px; padding: 0 12px; }
.custom-amount--hero .field-help { margin-top: 4px; }
@media (max-width: 420px) {
  .mode span { font-size: 14px; min-height: 48px; padding: 0 8px; }
}


/* ==========================================================================
   Donate page: frequency, amounts (preset + custom), payment methods, summary
   ========================================================================== */
.donate { background: var(--tint); }
.donate-form { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.donate-steps { display: grid; gap: 22px; }
.step { margin: 0; padding: clamp(18px, 3vw, 28px); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.step legend { display: flex; align-items: center; gap: 12px; padding: 0; margin: 0 0 16px; font: 700 19px/1.25 var(--font-body); }
.step__num { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-deep); color: #fff; font: 700 15px var(--font-body); }
.step__hint { font-weight: 400; font-size: 14px; color: var(--soft); }

/* 1) frequency */
.freq-toggle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.freq { position: relative; display: block; }
.freq input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.freq span { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 72px; padding: 12px 16px; border: 2px solid var(--line); border-radius: 12px; background: var(--panel); }
.freq b { font-size: 17px; }
.freq small { font-size: 13px; color: var(--soft); }
.freq:hover span { border-color: var(--blue); }
.freq input:checked + span { border-color: var(--red); background: var(--danger-bg); }
.freq input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; box-shadow: 0 0 0 5px rgba(18, 26, 46, .85); }

/* 2) amounts */
.amounts-label { font-weight: 700; font-size: 15px; margin: 0; color: var(--soft); }
/* Row-gap + top margin leave a clear lane above every card for the "Most popular" tab, so the tab
   never overlaps the card border (selected cards get a thicker red border) or the row above. */
.donate .amounts { grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 30px 10px; margin-top: 30px; }
.donate .amount span { min-height: 76px; font-size: 22px; }
.donate .amount:hover span { border-color: var(--blue); }
/* A small pill that sits ABOVE the featured card (outside it), centered over that tier, whichever tier is selected. */
.amount__badge {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); z-index: 1; pointer-events: none;
  margin-bottom: 4px; padding: 2px 12px; border-radius: 999px; background: var(--red-btn); color: #fff;
  font: 700 11px/1.5 var(--font-body); font-style: normal; white-space: nowrap;
}
.amount--featured input:checked ~ .amount__badge { background: var(--red); }
.custom-amount { margin-top: 22px; }
.custom-amount label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.money-input { display: flex; align-items: stretch; border: 2px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; }
.money-input:hover { border-color: var(--blue); }
.money-input:focus-within { border-color: var(--blue); outline: 3px solid var(--sun); outline-offset: 1px; }
.money-input__prefix, .money-input__suffix { display: grid; place-items: center; padding: 0 16px; background: var(--tint); color: var(--soft); font: 700 18px var(--font-body); }
.money-input input {
  flex: 1; min-width: 0; min-height: 58px; padding: 0 14px; border: 0; background: transparent; color: var(--ink);
  font: 700 24px var(--font-body); outline: none;
}
.money-input input::placeholder { font-size: 16px; font-weight: 500; color: var(--soft); opacity: .85; }
.money-input input[aria-invalid="true"] { color: var(--red); }
.field-help { margin-top: 6px; font-size: 13px; color: var(--soft); }
.field-help.is-error { color: var(--red); font-weight: 600; }
.impact { margin-top: 16px; padding: 10px 14px; border-radius: 10px; background: var(--ok-bg); font-size: 15px; font-weight: 500; }
.impact:empty { display: none; }

/* 3) payment methods */
.pay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pay-opt { position: relative; display: block; }
.pay-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pay-opt__body { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 86px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--panel); }
.pay-opt__title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.pay-opt__title::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--soft); background: var(--panel); }
.pay-opt:hover .pay-opt__body { border-color: var(--blue); }
.pay-opt input:checked + .pay-opt__body { border-color: var(--blue); background: var(--tint); box-shadow: inset 0 0 0 1px var(--blue); }
.pay-opt input:checked + .pay-opt__body .pay-opt__title::before { border-color: var(--blue); background: radial-gradient(circle, var(--blue) 0 42%, var(--panel) 48%); }
.pay-opt input:focus-visible + .pay-opt__body { outline: 3px solid var(--sun); outline-offset: 2px; box-shadow: 0 0 0 5px rgba(18, 26, 46, .85); }
.pay-opt__icons { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pay-ico { height: 26px; width: auto; flex: none; display: block; }
.pay-ico--bank { color: var(--blue); }
.pay-opt__sub { font-size: 13px; font-weight: 500; color: var(--soft); }

.pay-panel { margin-top: 16px; padding: 16px 18px; border-radius: 12px; background: var(--tint); border: 1px solid var(--line); }
.pay-panel h3 { margin-bottom: 6px; }
.pay-panel p { font-size: 15px; color: var(--soft); }
.pay-note { margin-top: 12px; padding: 10px 14px; border-left: 4px solid var(--sun); border-radius: 0 8px 8px 0; background: var(--panel); color: var(--ink) !important; font-size: 14px !important; }
.pay-panel .pay-note { margin-top: 12px; }
.bank-details { margin: 14px 0 0; display: grid; gap: 8px; }
.bank-row { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.bank-row dt { font-size: 13px; font-weight: 700; color: var(--soft); }
.bank-row dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bank-row__val { font: 600 15px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.copy-btn {
  flex: none; min-height: 36px; padding: 0 14px; border-radius: 8px; border: 2px solid var(--line);
  background: var(--panel); color: var(--blue); font: 700 13px var(--font-body); cursor: pointer;
}
.copy-btn:hover { background: var(--tint); border-color: var(--blue); }
.reference-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding: 12px 14px; border: 2px dashed var(--blue); border-radius: 10px; background: var(--panel); }
.reference-box__label { display: block; font-size: 13px; font-weight: 700; color: var(--soft); }
.reference-box__code { display: block; font: 700 22px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; color: var(--ink); }
.bank-steps { margin: 14px 0 0; padding-left: 20px; font-size: 15px; color: var(--soft); }
.bank-steps li + li { margin-top: 6px; }
.bank-steps strong { color: var(--ink); }

/* summary / checkout */
.donate-summary { position: sticky; top: 92px; padding: clamp(20px, 3vw, 28px); background: var(--panel); border: 2px solid var(--blue); border-radius: 16px; box-shadow: var(--shadow); }
.donate-summary h2 { font: 700 14px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.gift-total { margin: 10px 0 4px; font: 400 clamp(44px, 6vw, 60px)/1 var(--font-head); overflow-wrap: anywhere; }
.gift-total small { margin-left: 4px; font: 500 18px var(--font-body); color: var(--soft); }
.gift-line { font-weight: 500; color: var(--soft); }
.donate-summary .summary { margin: 16px 0; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--soft); text-align: center; }
.secure-note svg { flex: none; width: 16px; height: 16px; color: var(--green); }
.disclosure--compact { margin-top: 18px; padding: 14px 16px; border-width: 1px; font-size: 14px; }
.disclosure--compact h3 { font-size: 16px; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

@media (max-width: 920px) {
  .donate-form { grid-template-columns: minmax(0, 1fr); }
  .donate-summary { position: static; }
}
@media (max-width: 520px) {
  .freq-toggle, .pay-grid { grid-template-columns: minmax(0, 1fr); }
  .bank-row { grid-template-columns: minmax(0, 1fr); }
}


/* ==========================================================================
   Newsletter signup, share buttons, trust CTAs (newsroom + articles)
   ========================================================================== */
.subscribe-row { display: flex; gap: 8px; flex-wrap: wrap; }
.subscribe-form input[type="email"] {
  flex: 1 1 220px; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 2px solid var(--line);
  background: var(--panel); color: var(--ink); font: 16px var(--font-body);
}
.subscribe-form input[type="email"]:focus { border-color: var(--blue); outline: 3px solid var(--sun); outline-offset: 1px; }
.subscribe-form input[aria-invalid="true"] { border-color: var(--red); }
.subscribe-fine { margin-top: 8px; font-size: 12.5px; color: var(--soft); }
.subscribe-status { margin-top: 10px; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.subscribe-status--ok { background: var(--ok-bg); color: var(--ink); border: 1px solid #5cb377; }
.subscribe-status--err { background: var(--danger-bg); color: var(--ink); border: 1px solid var(--red); }

.footer-signup {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 40px; align-items: center;
  padding: clamp(18px, 3vw, 26px); border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; background: rgba(255, 255, 255, .06);
}
.site-footer .footer-signup h2 { margin: 0 0 6px; font: 400 clamp(22px, 2.6vw, 28px)/1.15 var(--font-head); }
.footer-signup__copy p { max-width: 30em; }
.site-footer .subscribe-form input[type="email"] { border-color: #3a4768; background: #0f1626; color: #fff; }
.site-footer .subscribe-form input[type="email"]::placeholder { color: #9fb0d4; }
.site-footer .subscribe-fine { color: #a9b4cd; }
.site-footer .subscribe-fine a { text-decoration: underline; }
.site-footer .subscribe-status--ok { background: rgba(47, 138, 76, .28); color: #d4f5e0; border-color: #3f9d5f; }
.site-footer .subscribe-status--err { background: rgba(216, 52, 42, .28); color: #ffe0dd; border-color: #ff6a5f; }
.signup-band { background: var(--tint); }
.signup-band .subscribe-form { max-width: 560px; margin-top: 20px; }

.hero-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px !important; max-width: none !important; }
.btn--ghost-light { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .55); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .14); filter: none; }
.trust-cta h3 { font-size: 21px; }
.trust-ctas { margin-top: 24px; }

.share { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-top: 32px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share__label { font-weight: 700; font-size: 15px; }
.share__list { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.share-btn {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--panel); color: var(--ink);
  font: 600 14px var(--font-body); text-decoration: none; cursor: pointer;
}
.share-btn:hover { background: var(--tint); border-color: var(--blue); text-decoration: none; }
.trust-box { margin: 28px 0 0; padding: 22px 24px; border: 2px solid var(--blue); border-radius: var(--radius); background: var(--panel); }
.trust-box h2 { font-size: 26px; margin-bottom: 8px; }
.trust-box p { color: var(--soft); }
.trust-box__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

@media (max-width: 860px) {
  .footer-signup { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .footer-signup, .share, .signup-band, .trust-box { display: none !important; }
}
