/*
 * Bribe Collins — site styles.
 *
 * Mobile-first: base styles target 390px. min-width queries at 700px and
 * 1024px add the desktop layout; the only max-width queries are the <360px
 * gutter tweak and the <380px wordmark size. Colour/font tokens are injected as :root vars by Layout from
 * site.config.ts (--red, --red-dark, --ink, --gray, --rule, --rose, --white,
 * --font) — config is the source of truth, this file only references them.
 */

:root {
  /* Fluid type scale (min at 360px → max at 1280px). Body ≥ 17px. */
  --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);  /* 13–14px small print */
  --step-0: clamp(1.0625rem, 1.03rem + 0.16vw, 1.1875rem);  /* 17–19px body */
  --step-1: clamp(1.25rem, 1.18rem + 0.33vw, 1.5rem);       /* 20–24px */
  --step-2: clamp(1.5rem, 1.37rem + 0.6vw, 2rem);           /* 24–32px */
  --step-3: clamp(1.75rem, 1.52rem + 1.05vw, 2.5rem);       /* 28–40px */
  --step-4: clamp(2rem, 1.64rem + 1.6vw, 3.25rem);          /* 32–52px */
  --step-5: clamp(2.375rem, 1.86rem + 2.3vw, 4rem);         /* 38–64px */

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 48px;
  --space-9: 64px;

  --gutter: 20px;
  --measure: 720px;     /* text column */
  --wide: 1100px;       /* wide sections */
  --radius: 6px;
  --tap: 48px;
  --focus: 3px solid var(--ink);
  --header-h: 56px;
  --sticky-h: 72px;
}

@media (max-width: 359.98px) {
  :root { --gutter: 16px; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; display: block; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 var(--space-4); font-weight: 700; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 var(--space-4); }

p, li, dd, dt, blockquote, figcaption, td, th, h1, h2, h3, h4, label, .wrap {
  overflow-wrap: anywhere;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }

a { color: var(--red); text-underline-offset: 0.15em; }

a, button, input, select, textarea, label, summary, [role='button'] {
  touch-action: manipulation;
}

:focus-visible { outline: var(--focus); outline-offset: 2px; }

/* iOS zooms on focus below 16px — never let a control go under it. */
input, select, textarea, button {
  font: inherit;
  font-size: max(16px, 1rem);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.container { max-width: calc(var(--measure) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: calc(var(--wide) + 2 * var(--gutter)); }
.section--rose { background: var(--rose); }
.stack { display: grid; gap: var(--space-3); }
.muted { color: var(--gray); }

/* ---------- Parody banner ---------- */

.parody-banner {
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  padding: calc(6px + env(safe-area-inset-top)) max(var(--space-3), env(safe-area-inset-right)) 6px
    max(var(--space-3), env(safe-area-inset-left));
}
.parody-banner__long { display: none; }
.parody-banner__short { display: inline; }

@media (min-width: 480px) {
  .parody-banner__long { display: inline; }
  .parody-banner__short { display: none; }
}

/* ---------- Header ---------- */

.site-header {
  background: var(--red);
  color: var(--white);
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.site-header__inner {
  max-width: var(--wide);
  margin-inline: auto;
  min-height: 52px;
  max-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.wordmark {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}
/* 48px hit area around a 40px visible pill. */
.donate-link {
  min-height: var(--tap);
  min-width: var(--tap);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
}
.donate-pill {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding-inline: 20px;
  border-radius: 999px;
  background: var(--white);
  color: var(--red);
  font-weight: 700;
  font-size: 16px;
}
.donate-link:active .donate-pill { background: var(--rose); }
.donate-link:focus-visible { outline: 3px solid var(--white); outline-offset: 0; }

/* Keep "$ Bribe Collins $" on one line next to the Donate pill on small phones. */
@media (max-width: 379.98px) {
  .wordmark { font-size: 18px; }
}

@media (min-width: 700px) {
  .site-header__inner { min-height: 64px; max-height: none; }
  .wordmark { font-size: 24px; }
}

/* ---------- Hero ---------- */

.hero-band {
  height: clamp(200px, 30svh, 240px);
  overflow: hidden;
  background: var(--rose);
}
.hero-band picture, .hero-band__img { width: 100%; height: 100%; }
.hero-band__img {
  object-fit: cover;
  /* Mobile portrait crop: keep eyes → mouth in frame. */
  object-position: 50% 45%;
}

@media (min-width: 700px) {
  .hero-band { height: clamp(340px, 33vw, 480px); }
  /* Wide shot: face center sits ~47% down the frame. */
  .hero-band__img { object-position: 55% 42%; }
}

/* ---------- Card ---------- */

.card {
  position: relative;
  background: var(--white);
  border: 2px solid var(--red);
  margin: var(--space-5) 12px;
  padding: var(--space-5);
}
.card--overlap-hero { margin-top: -40px; }
.card > :last-child { margin-bottom: 0; }

@media (min-width: 700px) {
  .card {
    max-width: var(--measure);
    margin: var(--space-8) auto;
    padding: var(--space-7) var(--space-8);
  }
  .card--overlap-hero { margin-top: -96px; }
}
@media (min-width: 1024px) {
  .card--overlap-hero { max-width: 800px; }
}

.attribution { color: var(--gray); font-size: var(--step--1); }

/* ---------- Buttons ---------- */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--tap);
  padding: 10px 22px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: max(16px, var(--step-0));
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, transform 80ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn--primary:active { background: var(--red-dark); border-color: var(--red-dark); }
.btn--secondary { background: var(--white); color: var(--red); border-color: var(--red); }
.btn--secondary:active { background: var(--rose); }
.btn--ghost {
  background: transparent;
  color: var(--red);
  width: auto;
  justify-content: flex-start;
  padding-inline: 0;
  text-decoration: underline;
}
.btn--ghost::after { content: ' →'; white-space: pre; }
.btn--ghost:active { color: var(--red-dark); }

@media (hover: hover) {
  .btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
  .btn--secondary:hover { background: var(--rose); }
}

@media (min-width: 700px) {
  .btn { width: auto; display: inline-flex; }
  .stack { grid-auto-flow: column; justify-content: start; }
}

/* ---------- Express Lane disclaimer (ActBlue-required, never hidden) ---------- */

.express-disclaimer {
  font-size: max(14px, var(--step--1));
  line-height: 1.4;
  color: var(--ink);
  margin: var(--space-3) 0 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--red);
  color: var(--white);
  padding: var(--space-7) max(var(--gutter), env(safe-area-inset-right))
    calc(var(--space-7) + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  font-size: 13px;
  line-height: 1.5;
}
.site-footer__inner { max-width: var(--measure); margin-inline: auto; }
.site-footer__logo {
  display: inline-block;
  background: var(--white);
  border-radius: var(--radius);
  padding: 8px 12px;
  margin-bottom: var(--space-4);
}
.site-footer__logo img { width: 150px; height: auto; }
.site-footer__disclaimer { margin-bottom: var(--space-3); }
.site-footer__meta { margin: 0; }
.site-footer a {
  color: var(--white);
  display: inline-block;
  padding-block: 12px;
  margin-block: -12px;
}

/* ---------- Sticky bar (mobile only) ---------- */

.sticky-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 20;
  display: flex;
  gap: var(--space-2);
  background: var(--white);
  border-top: 1px solid var(--rule);
  padding: 10px max(var(--gutter), env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom))
    max(var(--gutter), env(safe-area-inset-left));
  transition: transform 180ms ease, visibility 180ms;
}
.sticky-bar .btn { flex: 1 1 0; }
.sticky-bar.is-hidden { transform: translateY(110%); visibility: hidden; }
body:has(.sticky-bar) main { padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom)); }

@media (min-width: 700px) {
  .sticky-bar { display: none; }
  body:has(.sticky-bar) main { padding-bottom: 0; }
}

/* ---------- Portal (/) ---------- */

.card.card--portal { padding: var(--space-5); }

.eyebrow {
  margin: 0 0 var(--space-2);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
}
.portal-h1 {
  margin: 0 0 var(--space-3);
  font-size: clamp(2.5rem, 11vw, 3rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.portal-attribution {
  margin: 0 0 var(--space-3);
  font-size: 14px;
  line-height: 1.4;
  color: var(--gray-text);
}
/* Inline source link with a ≥44px hit area that doesn't move the text. */
.attribution__source {
  display: inline-block;
  padding-block: 13px;
  margin-block: -13px;
  color: var(--ink);
  font-weight: 700;
}
.portal-subhead {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
}

/* Portal hero compresses toward 200px so the tiles make the first screen. */
.hero-band--portal { height: clamp(200px, 24svh, 240px); }

.nowrap { white-space: nowrap; }

/* The Check — compact (mobile) first. The amount box sits on the PAY TO row. */
.check-wrap { margin: var(--space-4) 0 var(--space-4); }
.check {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    'payer payer'
    'payto amount'
    'payee payee'
    'memo memo'
    'micr micr';
  align-items: end;
  column-gap: var(--space-3);
  padding: 10px 12px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background-color: var(--rose);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.6) 0 2px,
    transparent 2px 7px
  );
  box-shadow: 0 8px 20px -12px rgba(24, 28, 31, 0.45);
  color: var(--ink);
}
.check p { margin: 0; }
.check__payer {
  grid-area: payer;
  margin-bottom: 6px !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.check__sic { font-weight: 400; font-style: italic; letter-spacing: 0; }
.check__payer-note { display: none; }
.check__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  color: var(--gray-text);
}
.check__payto { grid-area: payto; padding-bottom: 4px; }
.check__payee { grid-area: payee; }
.check__payee-name {
  display: block;
  font-size: 22px;
  line-height: 1.2;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.check__amount {
  grid-area: amount;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px !important;
  font-weight: 700;
}
.check__dollar { font-size: 18px; }
.check__amount-value {
  min-width: 8ch;
  padding: 1px 8px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  line-height: 1.35;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.check__memo { grid-area: memo; margin-top: 6px !important; font-size: 15px; line-height: 1.3; }
.check__micr {
  grid-area: micr;
  display: none;
  margin-top: 14px !important;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--gray-text);
}
.check__caption {
  margin-top: var(--space-2);
  font-size: 13px;
  line-height: 1.4;
  color: var(--gray-text);
}

@media (min-width: 480px) {
  .check { padding: 16px 20px; }
  .check__payer-note {
    display: block;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0;
    color: var(--gray-text);
  }
  .check__micr { display: block; }
}

/* Amount grid: 2 columns on phones, 3 from 700px. */
.donate-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.donate-grid > li { display: flex; min-width: 0; }
.donate-grid__custom { grid-column: 1 / -1; }

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  min-height: 76px;
  padding: 8px 12px 10px;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 120ms ease, color 120ms ease, transform 80ms ease;
}
.tile__amount {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.05;
  color: var(--red);
}
.tile__label { font-size: 15px; line-height: 1.2; }
.tile__sublabel { margin-top: 2px; font-size: 13px; line-height: 1.25; color: var(--gray-text); }

/* Odd last preset: one full-width row on phones, figure left of the text. */
.donate-grid__wide { grid-column: 1 / -1; }
.donate-grid__wide .tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--space-4);
  align-content: center;
}
.donate-grid__wide .tile__amount { grid-row: 1 / span 2; align-self: center; white-space: nowrap; }

a.tile:focus-visible,
.tile--suggested {
  background: var(--red);
  color: var(--white);
}
a.tile:focus-visible { outline: var(--focus); outline-offset: 2px; }
a.tile:focus-visible .tile__amount,
a.tile:focus-visible .tile__sublabel,
.tile--suggested .tile__amount,
.tile--suggested .tile__sublabel { color: var(--white); }
a.tile:active { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); transform: translateY(1px); }
a.tile:active .tile__amount,
a.tile:active .tile__sublabel { color: var(--white); }

@media (hover: hover) {
  a.tile:hover { background: var(--red); color: var(--white); }
  a.tile:hover .tile__amount,
  a.tile:hover .tile__sublabel { color: var(--white); }
}

.tile__badge {
  position: absolute;
  top: -11px;
  right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* Custom-amount tile ("Other"). */
.tile--custom { gap: 10px; }
.tile--custom:focus-within { border-color: var(--ink); }
.tile--custom .tile__text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 10px;
  row-gap: 2px;
}
.tile--custom .tile__sublabel { flex-basis: 100%; }
.custom-amount__row { display: flex; gap: var(--space-2); }
.custom-amount__field {
  flex: 0 0 42%;
  min-width: 0;
  height: 52px;
  display: flex;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
}
.custom-amount__field:focus-within { outline: var(--focus); outline-offset: 2px; }
.custom-amount__dollar { padding-left: 12px; font-size: 20px; font-weight: 700; }
.custom-amount__input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 10px 0 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
}
.custom-amount__input:focus { outline: none; }
.custom-amount__input::placeholder { color: var(--gray-text); font-weight: 400; opacity: 1; }
.btn.custom-amount__go {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  min-height: 52px;
  padding: 6px 12px;
  font-size: 16px;
}
/* Looks disabled, stays clickable (it just opens the form). */
.btn.custom-amount__go.is-empty { background: var(--rose); border-color: var(--rose); color: var(--red-dark); }
.btn.custom-amount__go.is-armed { background: var(--ink); border-color: var(--ink); }
.custom-amount__nojs-label { display: none; }
.custom-amount__hint { margin: 0; font-size: 13px; font-weight: 700; color: var(--red-dark); }

/* Disclaimer + recipient reveal: one tight block right under the grid. */
.portal-reveal { margin-top: var(--space-3); }
.portal-reveal .express-disclaimer { margin: 0 0 var(--space-2); font-size: 13px; }
.portal-reveal__text { margin: 0 0 var(--space-1); font-size: 15px; line-height: 1.45; }
.portal-reveal__secure { margin: 0; font-size: 13px; color: var(--gray-text); }
.btn.portal-skip { margin-top: var(--space-5); min-height: 52px; text-wrap: balance; }

/* Stat teaser band. */
.stat-band { background: var(--rose); }
.stat-band__link {
  display: block;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin-inline: auto;
  padding: var(--space-6) var(--gutter) var(--space-6);
  color: var(--ink);
  text-decoration: none;
}
.stat-band__chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.stat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 6px;
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
}
.stat-chip__value { font-size: 24px; font-weight: 800; line-height: 1.1; color: var(--red); }
.stat-chip__long { display: none; }
.stat-chip__caption { font-size: 13px; line-height: 1.3; }
.stat-chip__source { font-size: 13px; font-style: italic; color: var(--gray-text); }
.stat-band__cta {
  display: block;
  margin-top: var(--space-4);
  text-align: center;
  font-weight: 700;
  color: var(--red-dark);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.stat-band__link:focus-visible { outline-offset: -3px; }
.stat-band__link:active .stat-band__cta { color: var(--ink); }

@media (min-width: 700px) {
  .hero-band--portal { height: clamp(340px, 33vw, 480px); }
  .card.card--portal { padding: var(--space-7) var(--space-8); }
  .portal-subhead { font-size: var(--step-1); }
  .check-wrap { max-width: 520px; }
  .donate-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .donate-grid__custom,
  .donate-grid__wide { grid-column: auto; }
  .donate-grid__wide .tile { display: flex; }
  .donate-grid__wide .tile__amount { align-self: auto; }
  .tile__label { font-size: 16px; }
  .custom-amount__row { flex-direction: column; }
  .custom-amount__field { flex-basis: auto; }
  .btn.custom-amount__go { flex: 0 0 auto; }
  .portal-reveal .express-disclaimer { font-size: 14px; }
  .portal-reveal__text { font-size: var(--step-0); }
  .btn.portal-skip { display: flex; width: 100%; }
  .stat-band__link { padding-block: var(--space-8); }
  .stat-band__chips { gap: var(--space-5); }
  .stat-chip { padding: var(--space-5) var(--space-3); }
  .stat-chip__value { font-size: var(--step-4); }
  .stat-chip__long { display: inline; }
  .stat-chip__short { display: none; }
  .stat-chip__caption { font-size: 15px; }
}

@media (min-width: 1024px) {
  .card.card--portal { max-width: 1040px; }
  .portal-top {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: var(--space-8);
    align-items: center;
    margin-bottom: var(--space-7);
  }
  .portal-h1 { font-size: clamp(3rem, 5.9vw, 4.75rem); margin-bottom: var(--space-4); }
  .portal-subhead { font-size: 24px; }
  .check-wrap { margin: 0; max-width: none; }
  .check { transform: rotate(-1deg); }
  .check__payee-name { font-size: 26px; }
  .custom-amount__row { flex-direction: row; }
  .custom-amount__field { flex: 0 0 42%; }
  .btn.custom-amount__go { flex: 1 1 0; }
}

/* ---------- Shared helpers (receipts / evidence) ---------- */

/* `hidden` must beat component display rules (.btn is display:flex). */
[hidden] { display: none !important; }

/* Inline link with a ≥44px hit area that doesn't move the text. */
.tap-inline {
  display: inline-block;
  padding-block: 13px;
  margin-block: -13px;
}
.btn--no-arrow::after { content: none; }

#add-your-voice, #share { scroll-margin-top: var(--space-4); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- Receipts (/receipts) ---------- */

/* Donor thank-you strip: ≤ 2 lines on phones, Share on the right. */
.thanks-strip { background: var(--rose); border-bottom: 1px solid rgba(206, 39, 51, 0.25); }
.thanks-strip__inner {
  max-width: var(--wide);
  margin-inline: auto;
  padding: 4px max(var(--space-4), env(safe-area-inset-right)) 4px max(var(--space-4), env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.thanks-strip__text { flex: 1; margin: 0; font-size: 14px; line-height: 1.35; }
.thanks-strip__share {
  flex: none;
  min-height: var(--tap);
  min-width: var(--tap);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--red-dark);
}

.hero-band--receipts { height: clamp(160px, 24svh, 200px); }

.receipts-h1 {
  margin: 0 0 var(--space-3);
  font-size: clamp(2.5rem, 11vw, 2.75rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.receipts-attribution {
  margin: 0 0 var(--space-3);
  font-size: 14px;
  line-height: 1.4;
  color: var(--gray-text);
}
.receipts-dek { margin: 0; font-size: 17px; line-height: 1.45; }

.receipts-body {
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section-heading { margin: var(--space-7) 0 var(--space-2); font-size: var(--step-2); }

/* Fact rows (phones): stat column + text, 1px rules between. */
.fact-list { list-style: none; margin: 0; padding: 0; }
.fact {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  column-gap: var(--space-3);
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.fact:last-child { border-bottom: 0; }
.fact__stat {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--red);
  white-space: nowrap;
  overflow-wrap: normal;
}
.fact__stat-long { display: none; }
.fact__headline { margin: 0 0 4px; font-size: 17px; line-height: 1.25; }
.fact__body { margin: 0 0 2px; font-size: 15px; line-height: 1.45; }
.fact__source { font-size: 13px; color: var(--gray-text); }

/* "Her side": calm, gray. */
.response-box {
  margin: var(--space-6) 0 0;
  padding: var(--space-4);
  border-left: 4px solid var(--gray);
  background: #F4F4F5;
  font-size: 16px;
  line-height: 1.5;
}
.response-box__label {
  margin: 0 0 var(--space-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gray-text);
}
.response-box__text { margin: 0 0 var(--space-3); }
.response-box__ours { margin: 0; color: var(--red); }

.evidence-links { display: grid; gap: var(--space-2); margin: var(--space-6) 0 var(--space-2); }
.evidence-links .btn { min-height: 52px; }
.btn.evidence-links__external { width: 100%; justify-content: center; }

/* Comment form card. 16px side padding keeps Turnstile (min 300px) inside at 360px. */
.card--voice { padding: var(--space-5) var(--space-4); }
.counter { margin: 0 0 var(--space-2); font-size: 17px; line-height: 1.3; }
.counter strong { color: var(--red); }
.voice__heading { margin: 0 0 var(--space-2); font-size: var(--step-3); }
.voice__intro { margin: 0 0 var(--space-5); font-size: 17px; line-height: 1.45; }
.voice__intro:has(+ .amplify-link) { margin-bottom: var(--space-1); }

/* "No comment?" entry link → #amplify. Quiet: must not pull commenters off the form. */
.amplify-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  margin: 0 0 var(--space-3);
  color: var(--red);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.amplify-link:active { color: var(--red-dark); }
.amplify-link:focus-visible { outline: var(--focus); outline-offset: 2px; }

.voice-form { display: grid; gap: var(--space-4); }
.field { display: grid; gap: 6px; min-width: 0; }
.field__label { color: var(--red); font-size: 15px; font-weight: 700; line-height: 1.3; }
.field__optional { color: var(--gray-text); font-weight: 400; }
.field__meta { margin: 0; font-size: 13px; color: var(--gray-text); text-align: right; }
.field__error, .form-alert { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--red-dark); }
.form-alert { padding: var(--space-3); border-radius: var(--radius); background: var(--rose); }

.voice-form input[type='text'],
.voice-form input[type='email'],
.voice-form input[type='tel'],
.voice-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-size: max(16px, 1rem);
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}
.voice-form textarea { min-height: 132px; resize: vertical; }
.voice-form input:focus, .voice-form textarea:focus { border-color: var(--ink); outline: var(--focus); outline-offset: 1px; }
.voice-form [aria-invalid='true'] { border-color: var(--red-dark); }
.voice-form ::placeholder { color: var(--gray-text); opacity: 1; }
.field--zip input[type='text'] { max-width: 140px; }

.check-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  min-height: var(--tap);
  padding-block: 12px;
  font-size: 16px;
  line-height: 1.4;
  cursor: pointer;
}
.check-row input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--red);
}
.check-row input[aria-invalid='true'] { outline: 2px solid var(--red-dark); outline-offset: 2px; }

.voice-form__divider {
  margin: var(--space-2) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

/* SMS consent slides open once a number is typed (receipts.js adds .is-collapsible). */
.sms-consent { display: grid; grid-template-rows: 1fr; }
.sms-consent__inner { min-height: 0; }
.sms-consent .check-row { font-size: 15px; }
.sms-consent.is-collapsible {
  transition: grid-template-rows 200ms ease, margin-top 200ms ease, visibility 200ms;
}
.sms-consent.is-collapsible:not(.is-open) {
  grid-template-rows: 0fr;
  margin-top: calc(-1 * var(--space-4));
  visibility: hidden;
}
.sms-consent.is-collapsible:not(.is-open) .sms-consent__inner { overflow: hidden; }

.hp {
  position: absolute !important;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.voice-form__turnstile { min-height: 65px; }
.voice-form__turnstile .cf-turnstile { width: 100%; max-width: 100%; }
.btn.voice-form__submit { width: 100%; min-height: 56px; font-size: 18px; }
.btn.voice-form__submit:disabled { opacity: 0.7; cursor: progress; }
.voice-form__fine { margin: 0; font-size: 13px; line-height: 1.45; color: var(--gray-text); }
.voice-form__fine a { color: var(--gray-text); }

/* Post-submit: second ask replaces the form in place. */
.postsubmit__heading { margin: 0 0 var(--space-2); font-size: var(--step-3); }
.postsubmit__heading:focus { outline: none; }
.postsubmit__ask { margin: 0 0 var(--space-1); font-size: var(--step-1); font-weight: 700; line-height: 1.25; }
.postsubmit__recipient { margin: 0 0 var(--space-4); font-size: 14px; line-height: 1.4; color: var(--gray-text); }
.postsubmit-grid {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.postsubmit-grid > li { display: flex; min-width: 0; }
.tile.tile--compact { min-height: 64px; align-items: center; justify-content: center; padding: 8px; }
.tile--compact .tile__amount { font-size: 26px; }

/* Amplify: donate option for visitors without a comment, below the form. */
.amplify { margin-top: var(--space-6); }
.amplify__divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-5);
  color: var(--gray-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.amplify__divider::before,
.amplify__divider::after { content: ''; flex: 1; border-top: 1px solid var(--rule); }
.amplify__heading { margin: 0 0 var(--space-2); font-size: var(--step-2); line-height: 1.2; scroll-margin-top: var(--space-5); }
.amplify__heading:focus { outline: none; }
.amplify__heading:focus-visible { outline: var(--focus); outline-offset: 4px; }
.amplify__body { margin: 0 0 var(--space-1); font-size: 17px; line-height: 1.45; }

/* Share bar. */
.share-bar {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: var(--space-7) auto var(--space-8);
  padding-inline: var(--gutter);
  text-align: center;
}
.share-bar__heading { margin: 0 0 var(--space-4); font-size: var(--step-2); }
.btn.share-bar__native { gap: 10px; min-height: 56px; margin-bottom: var(--space-4); font-size: 18px; }
.share-bar__row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}
.share-circle {
  width: 48px;
  height: 48px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--red);
  border-radius: 50%;
  background: var(--white);
  color: var(--red);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.share-circle:active { background: var(--rose); }
/* No native share sheet: the network circles are the primary row. */
html:not(.has-native-share) .share-circle { width: 56px; height: 56px; background: var(--red); color: var(--white); }
html:not(.has-native-share) .share-circle:active { background: var(--red-dark); }
.share-bar__status { min-height: 1.4em; margin: var(--space-2) 0 0; font-size: 14px; font-weight: 700; }
.share-bar__url {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  font-size: max(16px, 1rem);
}

@media (hover: hover) {
  .share-circle:hover { background: var(--rose); }
  html:not(.has-native-share) .share-circle:hover { background: var(--red-dark); }
}

@media (min-width: 700px) {
  .hero-band--receipts { height: clamp(280px, 26vw, 400px); }
  .receipts-h1 { font-size: clamp(3rem, 5.9vw, 4.25rem); }
  .receipts-attribution { font-size: 15px; }
  .receipts-dek { font-size: var(--step-1); line-height: 1.4; }
  .section-heading { margin-top: var(--space-8); margin-bottom: var(--space-5); }

  .fact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
  .fact,
  .fact:last-child {
    display: flex;
    flex-direction: column;
    padding: var(--space-5);
    border: 1px solid var(--rule);
    border-top: 4px solid var(--red);
    border-radius: var(--radius);
  }
  .fact__stat { margin-bottom: var(--space-3); font-size: var(--step-4); }
  .fact__stat-long { display: inline; }
  .fact__stat-short { display: none; }
  .fact__headline { font-size: 19px; }
  .fact__body { font-size: 16px; margin-bottom: var(--space-2); }
  .fact__text { display: flex; flex-direction: column; flex: 1; }
  .fact__source { margin-top: auto; align-self: flex-start; }

  .response-box { max-width: var(--measure); margin-top: var(--space-7); padding: var(--space-5) var(--space-6); font-size: 17px; }
  .evidence-links { display: flex; align-items: center; gap: var(--space-6); margin-top: var(--space-6); }
  .btn.evidence-links__external { width: auto; }

  .card.card--voice { max-width: 640px; padding: var(--space-7) var(--space-8); }
  .btn.voice-form__submit { display: flex; }
  .btn.share-bar__native { display: inline-flex; width: auto; }
}

@media (min-width: 1024px) {
  .card--receipts.card--overlap-hero { max-width: 880px; }
  .fact-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
  /* Desktop: ShareBar is an inline icon row. */
  .btn.share-bar__native { display: none !important; }
  .share-circle,
  html:not(.has-native-share) .share-circle { width: 52px; height: 52px; background: var(--white); color: var(--red); }
}

/* ---------- Evidence (/evidence) ---------- */

main { position: relative; }
/* Sticky "back" link appears once this (the first screen) scrolls away. */
.evidence-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100svh;
  max-height: 100%;
  pointer-events: none;
}

.evidence {
  max-width: calc(680px + 2 * var(--gutter));
  margin-inline: auto;
  padding: var(--space-6) var(--gutter) var(--space-7);
}
.evidence__intro { margin-bottom: var(--space-6); padding-bottom: var(--space-4); border-bottom: 1px solid var(--rule); }
.evidence__framing, .evidence__credit { margin: 0 0 var(--space-2); font-size: 14px; line-height: 1.45; color: var(--gray-text); }
.evidence__credit { margin: 0; }
.evidence__credit a { color: var(--gray-text); }
.evidence__title { font-size: clamp(1.625rem, 1.4rem + 1vw, 2.25rem); line-height: 1.2; }
.evidence__placeholder p { font-size: 18px; line-height: 1.65; }
.evidence__back { margin: var(--space-7) 0 0; }

/* Long-form reprint: our fonts, colours and column only — never its content. */
.reprint { font-size: 18px; line-height: 1.65; }
.reprint h1, .reprint h2, .reprint h3, .reprint h4 { font-family: var(--font); font-weight: 700; line-height: 1.2; margin: 1.4em 0 0.6em; }
.reprint h1 { font-size: clamp(1.625rem, 1.4rem + 1vw, 2.25rem); margin-top: 0; }
.reprint h2 { font-size: clamp(1.5rem, 1.4rem + 0.5vw, 1.75rem); }
.reprint h3 { font-size: 1.25rem; }
.reprint p { margin: 0 0 1.1em; }
.reprint a { color: var(--red); text-decoration: underline; }
.reprint ul, .reprint ol { padding-left: 1.3em; }
.reprint li { min-height: 44px; padding-block: 6px; }
.reprint blockquote { margin: 1.2em 0; padding-left: 1em; border-left: 3px solid var(--rule); }
.reprint figure, .reprint table, .reprint iframe, .reprint pre { display: block; max-width: 100%; overflow-x: auto; }
.reprint img { max-width: 100%; height: auto; }
.reprint hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }

@media (min-width: 700px) {
  .reprint { font-size: 19px; line-height: 1.6; }
  .evidence { padding-top: var(--space-8); }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
