/* People for Relief. Campaign stack: full-bleed video, oversized uppercase statements,
   asymmetric photo tiles, one drenched indigo band. Inter only. Light default. */
:root {
  --bg: #ffffff;
  --surface: #f4f5f8;
  --ink: #111111;
  --mute: #55565c;
  --line: #dcdde3;
  --accent: #3245b7;
  --accent-deep: #253496;
  --on-accent: #ffffff;
  --band: #3245b7;
  --band-ink: #ffffff;
  --band-mute: #d6dcf7;
  --danger: #b3261e;
  --ok: #1d6b45;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(64px, 9vw, 128px);
  --z-header: 30; --z-dim: 40; --z-drawer: 50; --z-toast: 60;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0e0f13;
  --surface: #171920;
  --ink: #f2f3f6;
  --mute: #a3a6b1;
  --line: #2a2d38;
  --accent: #87a0f0;
  --accent-deep: #6f89e0;
  --on-accent: #0e0f13;
  --band: #1b2560;
  --band-ink: #ffffff;
  --band-mute: #c4ccf2;
  --danger: #ff8a80;
  --ok: #7fd3a6;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 9999px; }
.inner { max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.display { font-weight: 900; text-transform: uppercase; line-height: 0.9; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
p { margin: 0; max-width: 62ch; }
.mute { color: var(--mute); }
[hidden] { display: none !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 16px/1 var(--font); text-decoration: none; border-radius: 9999px; padding: 22px 38px; border: 0; cursor: pointer; white-space: nowrap; transition: transform .2s cubic-bezier(.16,1,.3,1), opacity .2s ease; }
.btn:hover { transform: scale(1.02); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }
.btn-light { background: #ffffff; color: #111111; }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-small { padding: 12px 18px; font-size: 14px; border-radius: 5px; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: relative; z-index: var(--z-header); padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header.over { position: absolute; inset: 0 0 auto 0; border-bottom: 0; background: transparent; }
.site-header .inner { display: flex; align-items: center; height: 76px; }
.wordmark { font-weight: 900; font-size: 20px; letter-spacing: -0.02em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.wordmark span { font-weight: 500; }
.site-header.over .wordmark, .site-header.over .icon-btn { color: #ffffff; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 48px; height: 48px; display: grid; place-items: center; background: transparent; border: 0; color: var(--ink); cursor: pointer; border-radius: 5px; padding: 0; }
.icon-btn svg { width: 26px; height: 26px; }
.theme-toggle svg { width: 22px; height: 22px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }

/* Drawer */
.dim { position: fixed; inset: 0; background: rgba(8,9,12,.6); z-index: var(--z-dim); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.drawer { position: fixed; top: 0; right: 0; height: 100dvh; width: min(440px, 100vw); background: var(--bg); color: var(--ink); z-index: var(--z-drawer); transform: translateX(100%); transition: transform .4s cubic-bezier(.16,1,.3,1); display: flex; flex-direction: column; padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px)); overflow-x: hidden; overflow-y: auto; visibility: hidden; }
body.menu-open .dim { opacity: 1; pointer-events: auto; }
body.menu-open .drawer { transform: translateX(0); visibility: visible; }
body.menu-open { overflow: hidden; }
.drawer-top { display: flex; justify-content: flex-end; height: 62px; align-items: center; }
.drawer nav { display: grid; gap: 2px; margin-top: 20px; }
.drawer nav a { font-weight: 900; text-transform: uppercase; font-size: clamp(30px, 7vw, 42px); line-height: 1.08; letter-spacing: -0.03em; text-decoration: none; padding-block: 6px; }
.drawer nav a:hover, .drawer nav a[aria-current="page"] { color: var(--accent); }
.drawer-foot { margin-top: auto; padding-top: 28px; display: grid; gap: 10px; }
.drawer-foot a { color: var(--mute); text-decoration: none; font-size: 15px; }

/* Hero */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: flex-end; color: #ffffff; overflow: hidden; background: #111111; }
.hero video, .hero .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 22%), linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 50%, rgba(0,0,0,.1) 100%); }
.hero .inner { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(48px, 8vh, 96px); }
.hero h1 { font-size: clamp(46px, 12.5vw, 96px); max-width: 9ch; }
.hero .sub { margin-top: 24px; font-size: clamp(17px, 1.6vw, 20px); max-width: 40ch; color: rgba(255,255,255,.9); }
.hero .btn { margin-top: 36px; }

/* Home sections */
.statement { padding-block: var(--section); }
.statement h2 { font-size: clamp(40px, 11vw, 96px); max-width: 12ch; }
.statement p { margin-top: 32px; font-size: clamp(18px, 1.7vw, 22px); color: var(--mute); max-width: 48ch; }
.tiles { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; padding-inline: 12px; }
.tile { position: relative; overflow: hidden; color: #ffffff; min-height: 420px; display: flex; align-items: flex-end; background: #111111; text-decoration: none; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
.tile:hover img { transform: scale(1.02); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,.05) 62%); }
.tile .copy { position: relative; z-index: 1; padding: clamp(24px, 3vw, 40px); display: grid; gap: 12px; }
.tile h3 { font-size: clamp(38px, 6vw, 84px); }
.tile p { color: rgba(255,255,255,.92); max-width: 34ch; font-size: 17px; }
.tile.big { grid-row: span 2; min-height: 760px; }
.split { padding-block: var(--section); display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.split h2 { font-size: clamp(40px, 10.5vw, 96px); max-width: 11ch; }
.split .side { display: grid; gap: 24px; justify-items: start; }
.split .side p { font-size: 18px; color: var(--mute); }
.band { background: var(--band); color: var(--band-ink); padding-block: var(--section); }
.band .inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.band h2 { font-size: clamp(42px, 11vw, 96px); max-width: 9ch; }
.band .lead { margin-top: 28px; font-size: 19px; color: var(--band-mute); max-width: 38ch; }
.band .btn { margin-top: 40px; }
.levels { display: grid; }
.level { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 24px; padding-block: 26px; border-top: 1px solid rgba(255,255,255,.28); text-decoration: none; color: inherit; }
.level:last-child { border-bottom: 1px solid rgba(255,255,255,.28); }
.level h3 { margin: 0; font-weight: 800; text-transform: uppercase; font-size: 22px; letter-spacing: .01em; }
.level .amt { font-weight: 900; font-size: clamp(44px, 5vw, 64px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.level .amt small { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--band-mute); }
.level p { grid-column: 1 / -1; color: var(--band-mute); font-size: 15px; }

/* Inner pages */
.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 56px); }
.page-head h1 { font-size: clamp(42px, 9vw, 96px); max-width: 13ch; }
.page-head p { margin-top: 24px; font-size: clamp(18px, 1.6vw, 21px); color: var(--mute); max-width: 52ch; }
.page-body { padding-bottom: var(--section); }

/* Forms */
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 14px; color: var(--mute); }
.input { width: 100%; font: 400 17px/1.4 var(--font); color: var(--ink); background: var(--bg); border: 2px solid var(--line); border-radius: 5px; padding: 16px 16px; }
.input:focus { outline: none; border-color: var(--accent); }
.input[aria-invalid="true"] { border-color: var(--danger); }
textarea.input { min-height: 140px; resize: vertical; }
.form-error { color: var(--danger); font-size: 15px; font-weight: 500; min-height: 1.4em; }
.form-ok { color: var(--ok); font-size: 15px; font-weight: 500; }
.stack { display: grid; gap: 22px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Give screen */
.give-wrap { display: grid; grid-template-columns: 1fr minmax(0, 560px); min-height: calc(100dvh - 77px); }
.give-visual { position: sticky; top: 0; height: calc(100dvh - 77px); overflow: hidden; background: #111111; color: #ffffff; display: flex; align-items: flex-end; }
.give-visual video, .give-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.give-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.15) 60%); }
.give-visual .copy { position: relative; z-index: 1; padding: clamp(28px, 4vw, 56px); }
.give-visual h1 { font-size: clamp(46px, 7vw, 96px); max-width: 8ch; }
.give-visual p { margin-top: 18px; max-width: 34ch; color: rgba(255,255,255,.9); font-size: 18px; }
.give-panel { padding: clamp(28px, 4vw, 56px); display: grid; gap: 28px; align-content: start; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--ink); border-radius: 9999px; padding: 4px; gap: 4px; }
.seg button { font: 700 15px/1 var(--font); text-transform: uppercase; letter-spacing: .04em; padding: 16px; border: 0; border-radius: 9999px; background: transparent; color: var(--ink); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.amounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.amounts[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.amounts[data-count="3"] .amount { padding-inline: 14px; font-size: clamp(26px, 2.6vw, 34px); }
.amount { font: 900 clamp(30px, 3.4vw, 40px)/1 var(--font); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; text-align: left; padding: 22px 20px 18px; border: 2px solid var(--line); border-radius: 5px; background: var(--bg); color: var(--ink); cursor: pointer; display: grid; gap: 8px; }
.amount small { font: 600 13px/1.2 var(--font); letter-spacing: .02em; text-transform: uppercase; color: var(--mute); }
.amount[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.amount[aria-pressed="true"] small { color: var(--on-accent); opacity: .85; }
.custom { position: relative; }
.custom span { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font: 900 24px/1 var(--font); color: var(--mute); }
.custom .input { padding-left: 40px; font-weight: 700; font-size: 22px; }
.assure { display: grid; gap: 8px; font-size: 14px; color: var(--mute); padding-top: 18px; border-top: 1px solid var(--line); }
.assure strong { color: var(--ink); font-weight: 600; }

/* Process (how it works) */
.process { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.process li { counter-increment: step; display: grid; grid-template-columns: minmax(80px, 160px) 1fr; gap: 24px; padding-block: clamp(28px, 4vw, 48px); border-top: 2px solid var(--ink); }
.process li::before { content: counter(step); font-weight: 900; font-size: clamp(56px, 8vw, 104px); line-height: .85; letter-spacing: -0.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.process h2 { font-size: clamp(34px, 5vw, 64px); }
.process p { margin-top: 14px; font-size: 18px; color: var(--mute); max-width: 56ch; }
.photo-wide { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

/* Partner application, one question at a time */
.steps { max-width: 760px; }
.step-count { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-variant-numeric: tabular-nums; }
.step-q { font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; font-size: clamp(30px, 4.6vw, 52px); line-height: .98; margin: 10px 0 22px; text-wrap: balance; }
.step-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.review { display: grid; gap: 14px; margin: 0; }
.review div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding-block: 12px; border-top: 1px solid var(--line); }
.review dt { font-weight: 600; }
.review dd { margin: 0; color: var(--mute); white-space: pre-wrap; }

/* Account and CRM */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border-radius: 5px; padding: 22px; display: grid; gap: 10px; }
.stat b { font-weight: 900; font-size: clamp(30px, 3.4vw, 44px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--mute); font-weight: 500; }
.table-wrap { overflow-x: auto; border-top: 2px solid var(--ink); }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
table.data th { text-align: left; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--mute); padding: 14px 12px; white-space: nowrap; }
table.data td { padding: 14px 12px; border-top: 1px solid var(--line); vertical-align: top; }
table.data td.num, table.data th.num { text-align: right; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 4px 10px; border-radius: 9999px; background: var(--surface); color: var(--mute); }
.pill.paid, .pill.funded, .pill.active, .pill.answered { background: rgba(29,107,69,.12); color: var(--ok); }
.pill.new, .pill.reviewing, .pill.pending, .pill.escalated { background: rgba(50,69,183,.12); color: var(--accent); }
.pill.failed, .pill.declined, .pill.refunded, .pill.unsubscribed { background: rgba(179,38,30,.1); color: var(--danger); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 40px 0 20px; }
.tabs button { font: 700 14px/1 var(--font); text-transform: uppercase; letter-spacing: .04em; padding: 12px 16px; border-radius: 5px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.tabs button[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .input { max-width: 360px; padding: 12px 14px; font-size: 15px; }
.empty { padding: 40px 0; color: var(--mute); }
select.input { padding: 10px 12px; font-size: 14px; width: auto; }

/* Policy center */
.policy { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding-block: clamp(40px, 6vw, 80px) var(--section); }
.policy-nav { position: sticky; top: calc(24px + env(safe-area-inset-top, 0px)); align-self: start; display: grid; gap: 2px; }
.policy-nav .label { font-weight: 900; text-transform: uppercase; font-size: 15px; letter-spacing: .02em; margin-bottom: 14px; }
.policy-nav a { text-decoration: none; padding: 10px 12px; border-radius: 5px; color: var(--mute); font-weight: 500; font-size: 15px; }
.policy-nav a:hover { color: var(--ink); background: var(--surface); }
.policy-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); font-weight: 700; }
.policy-body h1 { font-size: clamp(38px, 6vw, 72px); margin-bottom: 18px; }
.policy-body .effective { color: var(--mute); font-size: 14px; margin-bottom: 32px; }
.policy-body h2 { font-size: 24px; font-weight: 800; margin: 40px 0 12px; letter-spacing: -0.01em; }
.policy-body h3 { font-size: 18px; font-weight: 700; margin: 28px 0 8px; }
.policy-body p, .policy-body li { font-size: 17px; line-height: 1.7; max-width: 70ch; }
.policy-body p + p { margin-top: 14px; }
.policy-body ul { padding-left: 22px; display: grid; gap: 8px; margin: 12px 0; }
.policy-index { display: grid; gap: 0; }
.policy-index a { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; padding-block: 22px; border-top: 1px solid var(--line); text-decoration: none; }
.policy-index a b { font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); text-transform: uppercase; letter-spacing: -0.02em; }
.policy-index a span { color: var(--mute); font-size: 15px; max-width: 46ch; }
.policy-index a:hover b { color: var(--accent); }

/* Footer */
footer.site-footer { border-top: 1px solid var(--line); padding-block: 48px calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot-top { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }
.foot-links a { text-decoration: none; color: var(--mute); }
.foot-links a:hover { color: var(--ink); }
.foot-bottom { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--mute); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 14px 20px; border-radius: 5px; font-weight: 600; z-index: var(--z-toast); max-width: calc(100vw - 32px); }


/* Long-form sections */
.list-section, .faq-section, .prose-section, .apply-section { padding-block: var(--section); }
.list-section > h2, .faq-section > h2, .apply-section > h2 { font-size: clamp(40px, 9vw, 88px); max-width: 14ch; }
.feature-list { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 80px); }
.feature-list > div { padding-block: 28px; border-top: 2px solid var(--ink); display: grid; gap: 10px; align-content: start; }
.feature-list h3 { margin: 0; font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; font-size: clamp(24px, 2.6vw, 34px); line-height: 1; }
.feature-list p { color: var(--mute); font-size: 18px; }
.faq { margin-top: clamp(32px, 4vw, 56px); max-width: 900px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 44px 24px 0; font-weight: 800; font-size: clamp(19px, 2vw, 24px); letter-spacing: -0.01em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-weight: 400; font-size: 30px; color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 24px; color: var(--mute); font-size: 18px; max-width: 64ch; }
.prose { max-width: 720px; }
.prose h2 { font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; font-size: clamp(28px, 3.4vw, 44px); line-height: 1; margin: 56px 0 18px; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 19px; line-height: 1.7; color: var(--ink); }
.prose p + p { margin-top: 18px; }
.credit { font-size: 12px; padding-bottom: 24px; }
.level:not(:has(.amt)) h3 { grid-column: 1 / -1; }

/* Partner types */
.partner-types { display: grid; gap: 12px; padding-bottom: var(--section); }
.ptype { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); background: var(--surface); border-radius: 5px; overflow: hidden; }
.ptype:nth-child(2) { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.ptype:nth-child(2) img { order: 2; }
.ptype img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.ptype-copy { padding: clamp(28px, 4vw, 56px); display: grid; gap: 16px; align-content: start; }
.ptype-copy h2 { font-size: clamp(34px, 4.6vw, 60px); }
.ptype-copy > p { font-size: 18px; color: var(--mute); }
.ptype-copy h3 { margin: 12px 0 0; font-weight: 800; text-transform: uppercase; font-size: 15px; letter-spacing: .06em; }
.ptype-copy ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 17px; }
.choices { display: grid; gap: 10px; max-width: 560px; }
.choice { text-align: left; font: 700 18px/1.2 var(--font); padding: 20px 22px; border: 2px solid var(--line); border-radius: 5px; background: var(--bg); color: var(--ink); cursor: pointer; }
.choice:hover { border-color: var(--ink); }
.choice[aria-checked="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.pill.approved { background: rgba(29,107,69,.12); color: var(--ok); }
.apply-section { border-top: 2px solid var(--ink); }
@media (max-width: 900px) {
  .feature-list { grid-template-columns: 1fr; }
  .ptype, .ptype:nth-child(2) { grid-template-columns: 1fr; }
  .ptype:nth-child(2) img { order: 0; }
  .ptype img { min-height: 260px; }
}

@media (max-width: 900px) {
  .tiles { grid-template-columns: 1fr; }
  .tile.big { grid-row: auto; min-height: 520px; }
  .tile { min-height: 380px; }
  .split, .band .inner { grid-template-columns: 1fr; }
  .give-wrap { grid-template-columns: 1fr; min-height: 0; }
  .give-visual { position: relative; height: auto; min-height: 360px; }
  .policy { grid-template-columns: 1fr; }
  .policy-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .policy-nav .label { grid-column: 1 / -1; }
  .review div { grid-template-columns: 1fr; gap: 4px; }
  .process li { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 520px) {
  .row-2 { grid-template-columns: 1fr; }
  .policy-nav { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .tile img, .drawer, .dim { transition: none; }
  .btn:hover, .tile:hover img { transform: none; }
}
.list-section > .process { margin-top: clamp(32px, 4vw, 56px); }
.apply-section > form { margin-top: clamp(32px, 4vw, 56px); }

/* Every screen: tap-sized logo, long words never push past the edge */
.wordmark { display: inline-flex; align-items: center; min-height: 44px; }
.display, h1, h2, h3 { overflow-wrap: break-word; }
@media (max-width: 900px) {
  .ptype, .ptype:nth-child(2) { grid-template-columns: minmax(0, 1fr); }
  .split, .band .inner, .tiles, .feature-list, .give-wrap { grid-template-columns: minmax(0, 1fr); }
}
/* Small phones and flip phones */
@media (max-width: 360px) {
  :root { --gutter: 14px; }
  .wordmark { font-size: 16px; }
  .icon-btn { width: 44px; height: 44px; }
  .hero h1 { font-size: 40px; }
  .statement h2, .split h2, .band h2, .list-section > h2, .faq-section > h2, .apply-section > h2, .page-head h1, .policy-body h1, .give-visual h1 { font-size: 30px; }
  .tile h3, .ptype-copy h2, .process h2, .step-q { font-size: 26px; }
  .level .amt { font-size: 34px; }
  .btn { padding: 18px 22px; white-space: normal; text-align: center; }
  .amounts[data-count="3"] { grid-template-columns: minmax(0, 1fr); }
  .amounts { grid-template-columns: minmax(0, 1fr); }
  .process li { grid-template-columns: minmax(0, 1fr); }
  .process li::before { font-size: 44px; }
  .ptype img { min-height: 200px; }
  .tile, .tile.big { min-height: 300px; }
}
/* Very large screens: keep lines readable, let the art breathe */
@media (min-width: 1800px) {
  .inner { max-width: 1560px; }
  body { font-size: 17px; }
}
/* Older phone browsers without modern sizing */
.hero { min-height: 100vh; min-height: 100dvh; }
.give-visual { height: calc(100vh - 77px); }
@supports (height: 100dvh) { .give-visual { height: calc(100dvh - 77px); } }
@supports not (font-size: clamp(1px, 1vw, 2px)) {
  .hero h1 { font-size: 56px; }
  .display { font-size: 40px; }
  :root { --gutter: 16px; --section: 64px; }
}
@media (max-width: 900px) { .give-visual { height: auto; } }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--accent); }
@media (max-width: 300px) {
  .wordmark { font-size: 13px; letter-spacing: -0.01em; }
  .header-right { gap: 0; }
  .icon-btn { width: 40px; height: 44px; }
  .icon-btn svg { width: 22px; height: 22px; }
}
.partner-types { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 360px) { .ptype-copy { padding: 20px 16px; } .ptype-copy ul { padding-left: 18px; } }

/* Tile and panel headlines scale to their own box, so long words always fit */
.tile, .ptype-copy, .feature-list > div { container-type: inline-size; }
.tile h3 { font-size: clamp(26px, 6vw, 64px); }
@supports (font-size: 1cqi) {
  .tile h3 { font-size: min(9.6cqi, 84px); }
  .ptype-copy h2 { font-size: min(10.5cqi, 60px); }
  .feature-list h3 { font-size: min(9cqi, 34px); }
}
.policy-index a { grid-template-columns: minmax(0, 1fr) minmax(0, auto); }
@media (max-width: 600px) { .policy-index a { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

.pill.pledged { background: rgba(50,69,183,.12); color: var(--accent); }

/* bank gift steps and copy buttons */
.bank-steps { margin: 20px 0 0; padding-left: 1.4em; display: grid; gap: 10px; font-size: 16px; line-height: 1.5; }
.bank-steps li::marker { font-weight: 700; color: var(--accent); }
.review dd .copy { margin-left: 10px; font: 600 13px/1 var(--font); padding: 8px 12px; min-height: 32px; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--ink); cursor: pointer; vertical-align: middle; }
.review dd .copy:hover { border-color: var(--ink); }
.review dd .copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* giving straight from the donor's bank */
.field .label { font-weight: 600; font-size: 15px; }
.pill.processing, .pill.prenote_sent, .pill.created { background: rgba(50,69,183,.12); color: var(--accent); }
.pill.returned, .pill.stopped { background: rgba(179,38,30,.1); color: var(--danger); }
.pill.completed, .pill.settled { background: rgba(29,107,69,.12); color: var(--ok); }
.bank-gifts { display: grid; gap: 0; }
.bank-gift { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding-block: 16px; border-top: 1px solid var(--line); }
.bank-gift > div { display: grid; gap: 4px; }

/* Continue with Google */
.google-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; }
.google-btn svg { flex: none; }
.or-rule { display: flex; align-items: center; gap: 14px; color: var(--mute); font-size: 14px; margin: 0; }
.or-rule::before, .or-rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* donor-only welcome page */
.page-head .donor-badge { display: inline-block; margin: 0 0 18px; padding: 8px 14px; border-radius: 9999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.fam-gift { width: 100%; }
.split.fam-split { align-items: start; }
.page-head .donor-badge { color: #fff; max-width: none; }
.fam-gift dd { color: var(--ink); font-weight: 700; }
.give-fine { margin: -6px 0 0; font-size: 13px; line-height: 1.5; color: var(--mute); text-align: center; }

/* Bitcoin gift */
.btc-qr { width: min(260px, 100%); aspect-ratio: 1; margin: 24px 0; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.btc-qr svg { width: 100%; height: 100%; display: block; }
#btc-details dd { word-break: break-all; }
.seg button:disabled { opacity: .35; cursor: not-allowed; }

/* ---------- People for Relief Magazine (/mag) ---------- */
/* Colors come only from the brand: --issue is one of five Relief Indigo shades (src/lib/mag-style.ts). */
.mag-head { padding-block: clamp(48px, 7vw, 96px) 32px; display: grid; gap: 18px; justify-items: start; }
.mag-head h1 { font-size: clamp(40px, 6vw, 88px); }
.mag-head p { max-width: 60ch; font-size: 18px; color: var(--mute); margin: 0; }
.mag-shelf { padding-bottom: 80px; }
.mag-month { margin-top: 40px; }
.mag-month h2 { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mag-rack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
@media (min-width: 640px) { .mag-rack { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) { .mag-rack { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .mag-rack { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .mag-rack { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.mag-item { display: grid; gap: 10px; color: inherit; text-decoration: none; }
.mag-item .mcov { transition: transform .25s cubic-bezier(.16,1,.3,1); }
.mag-item:hover .mcov, .mag-item:focus-visible .mcov { transform: scale(1.02); }
.mag-item:focus-visible { outline: none; }
.mag-item:focus-visible .mcov { outline: 3px solid var(--accent); outline-offset: 3px; }
.mag-title { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* The cover: six layouts. Every text element owns a zone (sized in cqw/cqh of the cover);
   no two ever overlap, checked in a real browser at shelf, tablet and phone sizes. */
.mcov { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 5px; background: var(--issue); color: #fff; container-type: size; isolation: isolate; }
.mcov-img { position: absolute; inset: 0; z-index: -2; }
.mcov-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mcov-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(10,12,30,.66) 0%, rgba(10,12,30,0) 34%, rgba(10,12,30,0) 52%, rgba(10,12,30,.8) 100%); }
.mcov-mast { position: absolute; font-family: var(--font); font-weight: 900; text-transform: uppercase; font-size: 12.5cqw; line-height: .9; letter-spacing: -0.035em; white-space: nowrap; }
.mcov-mast b { display: block; font-weight: inherit; }
.mcov-issue { position: absolute; font-size: max(8px, 3.2cqw); line-height: 1; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.mcov-line { position: absolute; font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 600; font-size: 8cqw; line-height: 1.08; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mcov-num { display: none; }
/* 1 Classic: masthead top left, issue line under it, cover line at the foot */
.mcov--1 .mcov-mast { top: 5cqh; left: 7cqw; }
.mcov--1 .mcov-issue { top: calc(5cqh + 26cqw); left: 7cqw; }
.mcov--1 .mcov-line { left: 7cqw; right: 12cqw; bottom: 6cqh; }
/* 2 Band: solid band down the left third holding the masthead, read bottom to top */
.mcov--2 .mcov-img, .mcov--2 .mcov-shade { left: 30cqw; }
.mcov--2 .mcov-shade { background: linear-gradient(to bottom, rgba(10,12,30,.5) 0%, rgba(10,12,30,0) 22%, rgba(10,12,30,0) 52%, rgba(10,12,30,.8) 100%); }
.mcov--2 .mcov-mast { left: 9cqw; bottom: 6cqh; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10cqw; }
.mcov--2 .mcov-mast b { display: inline; }
.mcov--2 .mcov-issue { left: 36cqw; right: 6cqw; top: 5cqh; white-space: normal; line-height: 1.35; }
.mcov--2 .mcov-line { left: 36cqw; right: 6cqw; bottom: 6cqh; }
/* 3 Split: masthead on the photo, solid block below holds issue line and cover line */
.mcov--3 .mcov-img, .mcov--3 .mcov-shade { bottom: 42cqh; }
.mcov--3 .mcov-shade { background: linear-gradient(to bottom, rgba(10,12,30,.62) 0%, rgba(10,12,30,0) 55%); }
.mcov--3 .mcov-mast { top: 5cqh; left: 7cqw; }
.mcov--3 .mcov-issue { top: 63cqh; left: 7cqw; }
.mcov--3 .mcov-line { top: 69cqh; left: 7cqw; right: 7cqw; font-size: 9cqw; }
/* 4 Foot: cover line at the top right, masthead and issue line at the foot */
.mcov--4 .mcov-shade { background: linear-gradient(to bottom, rgba(10,12,30,.7) 0%, rgba(10,12,30,0) 36%, rgba(10,12,30,0) 56%, rgba(10,12,30,.85) 100%); }
.mcov--4 .mcov-line { top: 6cqh; left: 26cqw; right: 7cqw; text-align: right; }
.mcov--4 .mcov-mast { bottom: 12cqh; left: 7cqw; }
.mcov--4 .mcov-issue { bottom: 5cqh; left: 7cqw; }
/* 5 Number: a solid strip holds the masthead left and the issue number right; photo below, tinted */
.mcov--5 .mcov-img, .mcov--5 .mcov-shade { top: 27cqh; }
.mcov--5 .mcov-img { background: var(--issue); }
.mcov--5 .mcov-img img { mix-blend-mode: luminosity; opacity: .82; }
.mcov--5 .mcov-shade { background: linear-gradient(to bottom, rgba(10,12,30,0) 50%, rgba(10,12,30,.8) 100%); }
.mcov--5 .mcov-mast { top: 5cqh; left: 7cqw; font-size: 9cqw; }
.mcov--5 .mcov-issue { top: calc(5cqh + 18cqw); left: 7cqw; }
.mcov--5 .mcov-num { display: block; position: absolute; top: 4cqh; right: 7cqw; font-weight: 900; font-size: 21cqw; line-height: .82; letter-spacing: -0.05em; }
.mcov--5 .mcov-line { left: 7cqw; right: 10cqw; bottom: 6cqh; }
/* 6 Frame: photo inside a thick issue-color frame; masthead on the top rail, issue line on the bottom rail */
.mcov--6 .mcov-img, .mcov--6 .mcov-shade { top: 24cqh; left: 6cqw; right: 6cqw; bottom: 8cqh; border-radius: 2px; overflow: hidden; }
.mcov--6 .mcov-shade { background: linear-gradient(to bottom, rgba(10,12,30,0) 50%, rgba(10,12,30,.8) 100%); }
.mcov--6 .mcov-mast { top: 4cqh; left: 6cqw; font-size: 11cqw; }
.mcov--6 .mcov-issue { bottom: 2.6cqh; left: 6cqw; }
.mcov--6 .mcov-line { left: 11cqw; right: 11cqw; bottom: 12cqh; }

/* Inside an issue: the Manukalatte format. Light page only, one narrow column, numbered
   sections, light link bars, one light ACTION card at the end. No dark panels anywhere. */
.mag-article { max-width: calc(626px + 2 * var(--gutter)); margin-inline: auto; padding: clamp(40px, 6vw, 72px) var(--gutter) 96px; font-size: 16px; line-height: 1.6; }
.mag-meta { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin: 0 0 12px; }
.mag-article h1 { font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: clamp(34px, 4.4vw, 51px); line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 14px; text-wrap: balance; }
.mag-dek { color: var(--mute); margin: 0 0 22px; font-size: 18px; }
.mag-goal { margin: 0 0 24px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); }
.mag-goal p { margin: 0 0 10px; font-size: 15px; }
.mag-goal-bar { height: 6px; border-radius: 9999px; background: var(--surface); overflow: hidden; margin-bottom: 10px; }
.mag-goal-bar span { display: block; height: 100%; background: var(--issue); min-width: 2px; }
.mag-goal a { font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.mag-figure { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 5px; margin: 0 0 32px; }
.mag-sec { margin-top: 34px; scroll-margin-top: 96px; }
.mag-sec h2, .mag-sec h3 { font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: 20.8px; line-height: 1.3; margin: 0 0 10px; text-wrap: balance; }
.mag-sec h2 { margin-top: 8px; }
.mag-sec h3 { margin-top: 18px; color: var(--ink); }
.mag-sec h3 { font-weight: 700; font-size: 18px; line-height: 1.3; margin: 18px 0 8px; }
.mag-sec h2 + h3 { margin-top: 0; color: var(--mute); }
.mag-sec p { margin: 0 0 14px; letter-spacing: 0.16px; }
.mag-sec ul { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 8px; }
.mag-sec a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.mag-bar { margin: 18px 0 0 !important; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; }
.mag-bar a { font-weight: 700; color: var(--ink); text-decoration: underline; }
.mag-card { margin-top: 48px; display: grid; gap: 20px; align-items: center; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; }
@media (min-width: 620px) { .mag-card { grid-template-columns: 0.9fr 1.1fr; } }
.mag-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; display: block; }
.mag-card-label { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.mag-card h2 { margin: 0 0 8px; font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: 21px; line-height: 1.25; }
.mag-card p { margin: 0 0 16px; color: var(--mute); }
.mag-links { margin-top: 32px; font-size: 15px; font-weight: 600; }
.mag-links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .mag-item .mcov { transition: none; } .mag-item:hover .mcov { transform: none; } }
