/* Help99 donor portal — original front end.
   Design language: flat colour blocks, heavy rules, oversized type, no
   rounded corners. National Theatre-inspired; no NT code or assets. */

:root {
  --paper: #FBFBFB;
  --ground: #F1F1EC;
  --ink: #0A0A0A;
  --muted: #5C5F59;
  --faint: #8A8D87;
  --line: #0A0A0A;
  --soft-line: #D8D8D1;
  --green: #80975D;
  --deep: #4D7D82;
  --acid: #B3B138;
  --yellow: #FFD800;
  --blue: #0056B9;
  --red: #B3261E;
  --warm: #B45309;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", "IBM Plex Mono", "Courier New", monospace;
  --max: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.is-admin { background: var(--paper); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: .92;
  letter-spacing: -.055em;
  font-weight: 700;
  margin-bottom: 22px;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 700;
  margin-bottom: 10px;
}
h3 { font-size: 1.05rem; letter-spacing: -.01em; margin-bottom: 6px; }
hr { border: 0; border-top: 1px solid var(--soft-line); margin: 20px 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--yellow); color: var(--ink); padding: 10px 14px;
}
.skip-link:focus { left: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.mono { font-family: var(--mono); }
.small { font-size: 12px; }
.fine { color: var(--muted); font-size: 13px; line-height: 1.45; }
.hint { display: block; color: var(--faint); font-size: 12px; margin-top: 5px; }
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}
.label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

/* ---------- top bar + masthead ---------- */
.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 7px 24px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.topbar span:last-child { text-align: right; }
.topbar-mid { color: #C9C9C1; }

.masthead {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 2px solid var(--line);
  background: var(--paper);
  padding: 0 24px;
  min-height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 12px 0;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.04em;
}
.brand-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.05em;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.main-nav a { text-decoration: none; }
.main-nav a:hover { text-decoration: underline; }
.nav-form { display: inline; margin: 0; }
.link-button {
  background: none; border: 0; padding: 0; margin: 0;
  color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.link-button:hover { color: var(--blue); }

/* ---------- shared ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 0 24px 80px; }
.banner {
  max-width: var(--max);
  margin: 18px auto 0;
  padding: 12px 16px;
  border: 2px solid var(--line);
  font-size: 14px;
}
.banner.ok { background: #EDF3E2; }
.banner.warm { background: #FFF3CE; }
.banner.bad { background: #FBE9E7; color: var(--red); }
.banner ul { margin: 8px 0 0 18px; padding: 0; }
.error-list { margin: 8px 0 0 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border: 2px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background .12s, color .12s, transform .12s;
}
.btn:hover { background: var(--yellow); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.small { min-height: 36px; padding: 7px 12px; font-size: 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.inline-form { display: inline; margin: 0; }
.inline-grid { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0; }
.card {
  background: var(--paper);
  border: 2px solid var(--line);
  padding: 24px;
  margin-top: 24px;
}
.card.dark { background: var(--ink); color: var(--paper); }
.card.dark .fine, .card.dark .kicker { color: #C9C9C1; }
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.card-head h2 { margin-bottom: 0; }
.counter { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0; }
hr + .key-values { margin-top: 16px; }

/* ---------- home ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 0;
  border-bottom: 2px solid var(--line);
  min-height: 560px;
}
.hero-copy {
  padding: 70px 40px 50px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-copy h1 { max-width: 9ch; }
.lede {
  max-width: 58ch;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.4;
  color: var(--muted);
  margin-bottom: 26px;
}
.hero-art {
  background: var(--green);
  border-left: 2px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.hero-art::before {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  border: 2px solid rgba(10,10,10,.18);
  left: -70px; top: -70px;
}
.hero-wordmark {
  font-family: var(--mono);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 700;
  line-height: .85;
  letter-spacing: -.04em;
  color: var(--ink);
  margin: auto 0 14px;
}
.art-caption {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 10px 0 0;
}
.tier-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 2px solid var(--line);
}
.tier { padding: 26px 22px; border-right: 2px solid var(--line); }
.tier:last-child { border-right: 0; }
.tier-no {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  margin-bottom: 22px;
  color: var(--deep);
}
.tier h2 { font-size: 1.2rem; margin-bottom: 6px; }
.tier p { margin: 0; font-size: 14px; color: var(--muted); }
.find {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  padding: 70px 0;
  border-bottom: 2px solid var(--line);
}
.section-head h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.form-card {
  background: var(--paper);
  border: 2px solid var(--line);
  padding: 26px;
  box-shadow: 8px 8px 0 var(--green);
  align-self: start;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
}
.field input, .field select, .field textarea, .filter-form input, .inline-grid input, .inline-grid select {
  width: 100%;
  border: 2px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
  font-size: 15px;
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus,
.filter-form input:focus, .inline-grid input:focus, .inline-grid select:focus {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
.field input[readonly] { background: var(--ground); color: var(--muted); }
.form-card .btn { width: 100%; margin-top: 4px; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 50px 0 0;
}
.step { padding: 0 24px; border-right: 2px solid var(--line); }
.step:first-child { padding-left: 0; }
.step:last-child { border-right: 0; }
.step-no { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--deep); }
.step h3 { margin-top: 16px; }
.step p { color: var(--muted); font-size: 14px; margin-bottom: 0; }

/* ---------- claim gate ---------- */
.page-head { padding: 62px 0 34px; border-bottom: 2px solid var(--line); }
.page-head h1 { margin-bottom: 8px; }
.claim-head .lede { margin-bottom: 0; }
.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 2px solid var(--line);
}
.summary-strip > div { padding: 16px 18px; border-right: 2px solid var(--line); }
.summary-strip > div:last-child { border-right: 0; }
.summary-strip strong { font-size: 18px; letter-spacing: -.02em; }
.benefit-list { border-bottom: 2px solid var(--line); }
.benefit {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--soft-line);
  opacity: .62;
}
.benefit:last-child { border-bottom: 0; }
.benefit.on { opacity: 1; }
.benefit-no { font-family: var(--mono); font-size: 11px; color: var(--deep); }
.benefit h2 { font-size: 1.2rem; margin: 0 0 2px; }
.benefit p { margin: 0; font-size: 13px; color: var(--muted); }
.state {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 5px 8px;
  white-space: nowrap;
}
.benefit.on .state { background: var(--green); }
.gate { padding: 34px 0 0; }
.gate h2 { margin-bottom: 18px; }
.gate-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.gate-actions .link-button { margin-left: 8px; }
.teaser { margin-top: 24px; padding: 18px; border: 2px dashed var(--line); background: #FFF9DB; }
.teaser p { margin: 0; }
.chip-form { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 2px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 9px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.chip:hover { background: var(--yellow); }

/* ---------- claim form ---------- */
.claim-form { padding-bottom: 20px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.field-wide { grid-column: 1 / -1; }
.patch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.patch-card {
  border: 2px solid var(--line);
  background: var(--paper);
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.patch-card.on { background: #EDF3E2; }
.patch-card.locked { background: var(--ground); }
.patch-pick { display: flex; gap: 10px; flex-wrap: wrap; cursor: pointer; }
.patch-pick input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--ink); margin-top: 2px; }
.patch-name { font-weight: 700; font-size: 14px; flex: 1 1 130px; }
.patch-tag { font-family: var(--mono); font-size: 10px; color: var(--muted); flex-basis: 100%; padding-left: 30px; }
.patch-card.locked .patch-tag { padding-left: 0; }
.patch-qty { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.patch-qty select { border: 2px solid var(--line); padding: 6px; background: var(--paper); font: inherit; }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check-line input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); }
.submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 2px solid var(--line);
  margin-top: 28px;
  padding-top: 22px;
}
.submit-row .fine { max-width: 55ch; margin: 0; }

/* ---------- status ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pill.neutral { background: var(--paper); }
.pill.ok { background: var(--green); }
.pill.warm { background: var(--yellow); }
.pill.bad { background: #F3C6C1; color: var(--red); }
.status-text.ok { color: #40552A; }
.status-text.warm { color: var(--warm); }
.status-text.bad { color: var(--red); }
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  border-top: 2px solid var(--line);
}
.timeline li {
  position: relative;
  padding: 22px 8px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
}
.timeline .dot {
  position: absolute;
  top: -9px;
  left: 0;
  width: 16px; height: 16px;
  background: var(--paper);
  border: 2px solid var(--line);
}
.timeline li.done .dot { background: var(--ink); }
.timeline li.current .dot { background: var(--yellow); }
.timeline li.current { color: var(--ink); font-weight: 700; }
.timeline li.done { color: var(--ink); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--soft-line);
  font-size: 14px;
}
.plain-list li:last-child { border-bottom: 0; }
.message-quote { border-left: 4px solid var(--green); padding: 4px 0 4px 14px; margin-top: 20px; }
.message-quote p:last-child { margin-bottom: 0; }
address { font-style: normal; font-size: 15px; line-height: 1.55; }
.key-values { margin: 0; }
.key-values > div { display: flex; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--soft-line); font-size: 13px; }
.key-values dt { flex: 0 0 130px; color: var(--muted); }
.key-values dd { margin: 0; font-weight: 600; }

/* ---------- admin ---------- */
.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 42px 0 24px;
  border-bottom: 2px solid var(--line);
}
.admin-head h1 { font-size: clamp(2rem, 5vw, 4rem); margin-bottom: 0; }
.admin-head .fine { max-width: 34ch; text-align: right; margin: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 2px solid var(--line); }
.stat { padding: 22px 18px; border-right: 2px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 32px; letter-spacing: -.04em; line-height: 1; }
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: left;
  padding: 8px 10px;
  white-space: nowrap;
}
.data-table td { border-bottom: 1px solid var(--soft-line); padding: 9px 10px; vertical-align: top; }
.data-table tr:hover td { background: #F6F6F0; }
.tabs { display: flex; gap: 0; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-top: 24px; }
.tabs a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-bottom: 0;
  margin-right: 4px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.tabs a.on { background: var(--ink); color: var(--paper); }
.tabs a span { opacity: .65; }
.filter-form { display: flex; gap: 12px; align-items: flex-end; margin-top: 20px; }
.filter-form .field { margin-bottom: 0; min-width: 280px; }
.filter-form .link-button { padding-bottom: 12px; }
.pager { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 20px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; }
.admin-login { display: grid; grid-template-columns: 1fr 420px; gap: 50px; padding: 80px 0; align-items: start; }
.admin-login-copy h1 { font-size: clamp(3rem, 8vw, 7rem); }
.admin-detail { align-items: start; }
.copy-row { display: flex; gap: 8px; align-items: stretch; margin: 12px 0; }
.copy-row input { flex: 1; border: 2px solid var(--line); padding: 11px 12px; font-family: var(--mono); font-size: 12px; background: var(--ground); }

/* ---------- footer ---------- */
.site-foot {
  border-top: 2px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 30px 24px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.7;
}
.site-foot a { color: var(--yellow); }

/* ---------- chat ---------- */
.chat-widget { position: fixed; right: 18px; bottom: 18px; z-index: 60; }
.chat-fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--line);
  background: var(--yellow);
  color: var(--ink);
  padding: 9px 14px;
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--ink);
}
.chat-panel {
  position: absolute;
  right: 0;
  bottom: 60px;
  width: 360px;
  max-width: calc(100vw - 36px);
  border: 2px solid var(--line);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
  display: flex;
  flex-direction: column;
}
.chat-head {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-id { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.25; }
.chat-id small { color: #BDBDB5; font-size: 9px; }
.chat-close { background: none; border: 0; color: var(--paper); font-size: 22px; line-height: 1; cursor: pointer; }
.chat-log { height: 220px; overflow-y: auto; padding: 12px; background: var(--ground); display: flex; flex-direction: column; gap: 8px; }
.chat-msg { max-width: 88%; padding: 8px 10px; font-size: 13px; line-height: 1.4; border: 1px solid var(--line); }
.chat-msg p { margin: 0; }
.chat-msg.bot { background: var(--paper); align-self: flex-start; }
.chat-msg.user { background: var(--ink); color: var(--paper); align-self: flex-end; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 5px; padding: 9px; border-top: 1px solid var(--soft-line); }
.chat-quick button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 5px 8px;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.chat-quick button:hover { background: var(--yellow); }
.chat-form { display: flex; gap: 6px; padding: 9px; border-top: 1px solid var(--soft-line); }
.chat-form input { flex: 1; min-width: 0; border: 2px solid var(--line); padding: 8px 9px; font: inherit; font-size: 13px; }
.chat-form button { border: 2px solid var(--line); background: var(--ink); color: var(--paper); padding: 7px 10px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 48px 0 34px; }
  .hero-art { border-left: 0; border-top: 2px solid var(--line); }
  .tier-strip, .steps, .summary-strip { grid-template-columns: 1fr; }
  .tier, .step, .summary-strip > div { border-right: 0; border-bottom: 1px solid var(--soft-line); }
  .tier:last-child, .step:last-child, .summary-strip > div:last-child { border-bottom: 0; }
  .step { padding: 20px 0; }
  .find, .detail-grid, .admin-cols, .admin-login { grid-template-columns: 1fr; gap: 26px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .admin-head { align-items: flex-start; flex-direction: column; }
  .admin-head .fine { text-align: left; }
  .filter-form { flex-wrap: wrap; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 16px 0; border-top: 0; }
  .timeline li { border-top: 2px solid var(--line); }
}
@media (max-width: 620px) {
  main { padding: 0 16px 60px; }
  .topbar { grid-template-columns: 1fr auto; padding: 7px 16px; }
  .topbar-mid { display: none; }
  .masthead { padding: 0 16px; flex-direction: column; align-items: flex-start; gap: 0; }
  .main-nav { padding: 10px 0 14px; gap: 12px 16px; }
  .hero-copy h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .hero-art { padding: 18px; }
  .find { padding: 46px 0; }
  .form-card { padding: 20px; box-shadow: 4px 4px 0 var(--green); }
  .benefit { grid-template-columns: 40px 1fr auto; gap: 10px; }
  .benefit h2 { font-size: 1rem; }
  .state { font-size: 9px; }
  .submit-row { flex-direction: column; align-items: stretch; }
  .submit-row .btn { width: 100%; }
  .site-foot { grid-template-columns: 1fr; gap: 14px; }
  .chat-widget { right: 12px; bottom: 12px; }
  .chat-panel { width: calc(100vw - 24px); }
  .stat-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--soft-line); }
  .stat:last-child { border-bottom: 0; }
  .data-table { font-size: 12px; }
  .filter-form .field { min-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   Falke additions (donorbox.help69.si only).

   The block above is ported from the portal stylesheet and is kept byte-comparable
   so the two designs do not drift. Everything below is new and exists because this
   page renders validation inline instead of through banners.
   ========================================================================== */

/* Inline field errors. The ported rules only style .banner.bad and .pill.bad, so a
   bare .bad span would render in ink and an error would not look like an error. */
.bad { color: var(--red); }
label > .bad { font-size: 12px; font-weight: 400; }
p.bad { font-size: 13px; margin: 6px 0 0; }

/* Patch boxes the donor cannot pick because the tier caps them. */
input[name="patches"]:disabled + .patch-name,
input[name="patches"]:disabled ~ .patch-tag { opacity: .45; }
input[name="patches"]:disabled { cursor: not-allowed; }

/* The benefit ladder (.benefit / .benefit-list above) is no longer rendered: the front
   page shows what is included and the form stopped repeating it (D-17). The rules stay so
   the ported block remains byte-comparable with the portal stylesheet. */
.unlocked { list-style: none; margin: 0; padding: 0; border-bottom: 2px solid var(--line); }
.unlocked li {
  display: flex; align-items: baseline; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid var(--soft-line);
  font-size: 15px;
}
.unlocked li:last-child { border-bottom: 0; }
.unlocked li::before {
  content: "+"; font-family: var(--mono); font-size: 12px;
  color: var(--green); flex: none;
}
.unlocked-card .card-head { margin-bottom: 8px; }

/* Outbound links only (no embeds, no third-party script). Reads as a footer note, not a
   call to action, so it never competes with the claim button. */
.follow ul { list-style: none; margin: 0; padding: 0; }
.follow li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  padding: 10px 0; border-bottom: 1px solid var(--soft-line);
}
.follow li:last-child { border-bottom: 0; }
.follow li a { font-weight: 600; }
.follow li span { flex: 1 1 240px; font-size: 13px; color: var(--muted); }

/* ==========================================================================
   Front-page burst (D-17).

   Palette only: the site's own red, ink, cream and green. style-src 'self'
   forbids inline styles, so every variation lives here as a numbered class and
   confetti.js only ever assigns class names.
   ========================================================================== */
.confetti-layer {
  position: fixed; inset: 0 0 auto 0; height: 65vh;
  overflow: hidden; pointer-events: none; z-index: 4;
  contain: strict;
}
.confetti-piece {
  position: absolute; top: -24px;
  width: 7px; height: 11px;
  opacity: 0;
  animation-name: h99-burst;
  animation-duration: 1500ms;
  animation-timing-function: cubic-bezier(.25,.46,.45,.94);
  animation-fill-mode: forwards;
}
.confetti-c-red   { background: var(--red); }
.confetti-c-ink   { background: var(--ink); }
.confetti-c-cream { background: var(--ground); box-shadow: inset 0 0 0 1px var(--soft-line); }
.confetti-c-green { background: var(--green); }

/* Spread the emission: 10 trajectories, staggered by 25ms each, so 44 pieces read as a
   burst over ~250ms rather than a single frame of confetti. */
.confetti-pos-1  { left: 34%; --dx: -22vw; --dy: 58vh; --rz:  -220deg; }
.confetti-pos-2  { left: 40%; --dx:   9vw; --dy: 62vh; --rz:   310deg; animation-delay:  50ms; }
.confetti-pos-3  { left: 46%; --dx: -35vw; --dy: 50vh; --rz:   140deg; animation-delay: 100ms; }
.confetti-pos-4  { left: 52%; --dx:  26vw; --dy: 60vh; --rz:  -360deg; animation-delay:  25ms; }
.confetti-pos-5  { left: 58%; --dx: -12vw; --dy: 66vh; --rz:   250deg; animation-delay: 150ms; }
.confetti-pos-6  { left: 44%; --dx:  38vw; --dy: 48vh; --rz:  -180deg; animation-delay:  75ms; }
.confetti-pos-7  { left: 50%; --dx:  -4vw; --dy: 70vh; --rz:   420deg; animation-delay: 200ms; }
.confetti-pos-8  { left: 38%; --dx:  17vw; --rz:  -260deg; --dy: 54vh; animation-delay: 125ms; }
.confetti-pos-9  { left: 55%; --dx: -28vw; --dy: 64vh; --rz:   190deg; animation-delay: 175ms; }
.confetti-pos-10 { left: 48%; --dx:  31vw; --dy: 52vh; --rz:  -400deg; animation-delay: 225ms; }

@keyframes h99-burst {
  0%   { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg); }
  70%  { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate3d(var(--dx, 0), var(--dy, 60vh), 0) rotate(var(--rz, 240deg));
  }
}

/* The JS already refuses to build pieces here; this stops anything already in the DOM
   (a mid-load preference change, a restored back-forward snapshot) from animating. */
@media (prefers-reduced-motion: reduce) {
  .confetti-layer { display: none; }
  .confetti-piece { animation: none; opacity: 0; }
}
