/* base.css: reset, type scale (SPEC §2.2), buttons (§2.4), layout (§2.3), global components (§4).
   Class names are documented in README.md. Colours come only from tokens.css. */

/* Layout knobs (--min, --gap, --align) apply only to the element they are set on, never to nested grids. */
@property --min { syntax: '*'; inherits: false; }
@property --gap { syntax: '*'; inherits: false; }
@property --align { syntax: '*'; inherits: false; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, select, textarea, button { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }
a { color: var(--ink); }
a:hover { color: var(--magenta-deep); }
:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
input:focus, select:focus, textarea:focus { outline: var(--focus-ring); outline-offset: 2px; }
section[id], [id].anchor { scroll-margin-top: calc(var(--header-h) + 12px); }

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

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--brand-yellow); color: var(--ink); font-weight: 700;
  padding: 12px 20px; border-radius: var(--radius-pill); text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--ink); }
.muted { color: var(--text-muted); }
.body-text { color: var(--text-body); }
.small { font-size: var(--fs-small); }
.caption { font-size: var(--fs-caption); }
.center { text-align: center; }
.mono { font-family: var(--font-mono); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--content-max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container--wide { max-width: var(--content-max-wide); }
.container--narrow { max-width: 860px; }
.section { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.section--ground { background: var(--ground); }
.section--surface { background: var(--surface); }
.section--cream { background: var(--tint-cream); }
.section--yellow { background: var(--tint-yellow); }
.section--ink { background: var(--ink); color: var(--on-dark); }
.section--bordered { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--tight { padding-top: 56px; padding-bottom: 56px; }

/* .stack: vertical flow. Set gap with --gap (default 16px). */
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
/* .cluster: horizontal wrapping row. */
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 16px); }
/* .grid: responsive auto-fit grid. Set the minimum column with --min (default 300px). */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 300px)), 1fr)); gap: var(--gap, 24px); }
.grid--fill { grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 300px)), 1fr)); }
/* .split: two columns that stack on narrow screens. */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 420px)), 1fr)); gap: var(--gap, 48px); align-items: var(--align, start); }
/* .bar: header row with a CTA on the right (section header + button). */
.bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }

/* ---------- Type (§2.2) ---------- */
.display, .h1, .h2, .h3, .h4 { font-family: var(--font-display); font-weight: 400; letter-spacing: .01em; }
/* Bebas Neue ships one weight: never synthesise bold (SPEC §2.2). */
html { font-synthesis: none; }
.give-card__title, .package__title, .empty-state__title, .assistant-band__title, .stat-tile__value,
.photo-card__num, .site-footer__name, .chip--tag { font-weight: 400; }
.h1 { font-size: var(--fs-h1); line-height: .95; }
.h2 { font-size: var(--fs-h2); line-height: 1; }
.h2--sm { font-size: var(--fs-h2-sm); line-height: 1.05; }
.h3 { font-size: var(--fs-h3); line-height: 1.1; }
.h4 { font-size: 22px; line-height: 1.2; }
.lead { font-size: var(--fs-lead); color: var(--text-body); }
.text-magenta { color: var(--brand-magenta); }      /* large display text only */
.text-magenta-small { color: var(--magenta-text); } /* small text on light */
.measure { max-width: 40ch; }

/* Eyebrow (§4) */
.eyebrow {
  font-size: var(--fs-caption); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--magenta-text);
}
.eyebrow--deep { color: var(--magenta-deep); }   /* on yellow / cream tints */
.eyebrow--muted { color: var(--text-muted); }
.eyebrow--on-dark { color: var(--brand-yellow); }

/* SectionHeader (§4): .section-header > .eyebrow + h2.h2 + p.lead */
.section-header { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.section-header--wide { max-width: 760px; gap: 14px; }
.section-header--center { align-items: center; text-align: center; margin-left: auto; margin-right: auto; max-width: 820px; gap: 14px; }
.underline-mark { width: 200px; height: 14px; }

/* ---------- Buttons (§2.4) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--target); padding: 12px 24px;
  border: 2px solid transparent; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; text-align: center;
  background: var(--ink); color: var(--on-dark);
}
.btn:hover { color: inherit; filter: brightness(.96); }
.btn svg { flex: none; }
.btn--primary { background: var(--brand-yellow); color: var(--ink); }
.btn--primary:hover { color: var(--ink); }
.btn--secondary { background: var(--ink); color: var(--on-dark); }
.btn--secondary:hover { color: var(--on-dark); filter: none; background: var(--dark-2); }
.btn--tertiary { background: var(--surface); color: var(--ink); }
.btn--tertiary:hover { color: var(--ink); }
.btn--outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--outline:hover { color: var(--ink); background: var(--tint-cream); }
.btn--outline-2 { border-width: 2px; }
.btn--danger { background: transparent; color: var(--danger); border: 1.5px solid var(--danger); }
.btn--danger:hover { color: var(--danger); }
.btn--sm { min-height: var(--target); padding: 10px 20px; font-weight: 600; font-size: 15px; }
.btn--md { min-height: 48px; padding: 14px 26px; font-size: 16px; }
.btn--lg { min-height: 54px; padding: 16px 34px; font-size: 15px; }
.btn--xl { min-height: 54px; padding: 16px 28px; font-size: 17px; }
.btn--upper { text-transform: uppercase; letter-spacing: .04em; font-size: 14px; }
.btn--lg.btn--upper { font-size: 15px; letter-spacing: 0; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--disabled-bg); color: var(--ink); cursor: not-allowed; filter: none; }
/* Text-style button (e.g. "Use a different number") */
.btn-link {
  background: none; border: 0; padding: 0 4px; min-height: var(--target);
  color: var(--ink); font-weight: 600; text-decoration: underline;
}
.text-link { font-weight: 700; }
.text-link--magenta { color: var(--magenta-text); }
.text-link--yellow { color: var(--brand-yellow); }
.text-link--yellow:hover { color: var(--on-dark); }

/* ---------- Chips ---------- */
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; border-radius: var(--radius-pill); padding: 6px 14px; font-size: 14px; font-weight: 500; border: 1px solid var(--border-strong); }
.chip--on-dark { border-color: var(--outline-on-dark); color: var(--on-dark); }
.chip--tagline { align-self: flex-start; background: var(--dark-2); color: var(--brand-yellow); font-weight: 600; border: 0; }
.chip--tag { background: var(--brand-magenta); color: var(--on-dark); border: 0; font-family: var(--font-display); font-size: 28px; line-height: 1; padding: 12px 18px; border-radius: 14px; }

/* ---------- PillGroup (§4) ----------
   <div class="pill-group" role="group" aria-label="…" data-pill-group>
     <button type="button" class="pill" aria-pressed="true" data-value="all">All</button> …
   Selected = ink. Add .pill--amount for yellow selection. .pill-group--segmented = the cream track. */
.pill-group { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--target); padding: 8px 18px;
  background: var(--surface); color: var(--ink);
  border: 2px solid var(--border-strong); border-radius: var(--radius-pill);
  font-weight: 600;
}
.pill:hover { border-color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); border-color: var(--ink); font-weight: 700; }
.pill--amount { min-height: 46px; padding: 10px 20px; font-weight: 700; }
.pill--amount[aria-pressed="true"] { background: var(--brand-yellow); color: var(--ink); border-color: transparent; }
.pill-group--segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; background: var(--tint-cream); border-radius: var(--radius-pill); padding: 5px; }
.pill-group--segmented .pill { border: 0; background: transparent; }
.pill-group--segmented .pill[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); }

/* Choice tiles: larger toggle buttons with a sub-label (donation entry and method). Same aria-pressed contract. */
.choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 150px)), 1fr)); }
.choice-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice {
  text-align: left; background: var(--surface); color: var(--ink);
  border: 2px solid var(--border-strong); border-radius: var(--radius-chip);
  padding: 12px 14px; min-height: 64px; font-weight: 700; line-height: 1.35;
}
.choice:hover { border-color: var(--ink); }
.choice__sub { display: block; font-weight: 400; font-size: 13px; color: var(--text-muted); }
.choice[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.choice[aria-pressed="true"] .choice__sub { color: var(--on-dark-muted); }

/* ---------- Switch (§2.4) ----------
   <button type="button" class="switch" role="switch" aria-checked="false" aria-label="SMS"></button> */
.switch {
  flex: none; position: relative; width: 52px; height: 30px; padding: 0; border: 0;
  border-radius: var(--radius-pill); background: var(--border-strong);
}
.switch::before { content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); transition: left .15s ease; }
.switch[aria-checked="true"] { background: var(--ink); }
.switch[aria-checked="true"]::before { left: 26px; background: var(--brand-yellow); }
/* 44px touch target around the 30px track */
.switch::after { content: ""; position: absolute; inset: -7px -2px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--target); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border-radius: var(--radius-card); padding: 26px; }
.card--lg { border-radius: var(--radius-card-lg); padding: 36px; }
.card--bordered { border: 1px solid var(--border); }
.card--ink { background: var(--ink); color: var(--on-dark); }
.card--cream { background: var(--tint-cream); }
.card--pink { background: var(--tint-pink); }
.panel { background: var(--ground); border-radius: var(--radius-card-lg); padding: 36px 24px; }
@media (max-width: 640px) { .card--lg { padding: 24px; } }

/* ---------- StatTile (§4) ---------- */
.stat-tile { background: var(--tint-cream); border-radius: var(--radius-chip); padding: 16px; }
.stat-tile__label { font-size: var(--fs-caption); color: var(--text-muted); }
.stat-tile__value { margin-top: 4px; font-family: var(--font-display); font-size: clamp(28px, 2.6vw, 34px); line-height: 1.1; }

/* ---------- RibbonTile (§4) ---------- */
.ribbon-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 28px 16px; }
.ribbon-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 8px; border-radius: var(--radius-chip); color: var(--ink); text-decoration: none; min-height: var(--target); }
.ribbon-tile:hover { color: var(--magenta-deep); background: rgba(255, 255, 255, .55); }
.ribbon-tile__img { width: 74px; height: 74px; background: var(--surface); border-radius: 4px; object-fit: contain; }
.ribbon-tile__name { font-weight: 700; font-size: 17px; line-height: 1.3; }
@media (max-width: 640px) {
  .ribbon-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr)); gap: 20px 8px; }
  .ribbon-tile__name { font-size: 15px; }
}

/* ---------- PhotoCard (§4) ---------- */
.photo-card { background: var(--surface); border-radius: var(--radius-card); overflow: hidden; display: flex; flex-direction: column; }
.photo-card__img { width: 100%; height: 210px; object-fit: cover; }
.photo-card__body { padding: 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.photo-card__num { font-family: var(--font-display); font-size: 18px; letter-spacing: .04em; color: var(--magenta-text); }
.photo-card__title { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1.1; }
.photo-card__text { color: var(--text-body); }
.photo-card__link { font-weight: 700; margin-top: auto; min-height: 44px; display: inline-flex; align-items: center; }
.photo-card--ink { background: var(--ink); color: var(--on-dark); }
.photo-card--ink .photo-card__num { color: var(--brand-yellow); }
.photo-card--ink .photo-card__text { color: var(--on-dark-muted); }
.photo-card--ink .photo-card__link { color: var(--brand-yellow); }
.photo-card--ink .photo-card__link:hover { color: var(--on-dark); }

/* ---------- Badge (§4) ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-pill); text-transform: uppercase; letter-spacing: .06em; line-height: 1.6; }
.badge--ai { background: var(--ink); color: var(--brand-yellow); }
.badge--nurse, .badge--success { background: var(--success-tint); color: var(--success); }
.badge--author { background: var(--tint-pink); color: var(--pink-text); }
.badge--yellow { background: var(--brand-yellow); color: var(--ink); }
.badge--lg { font-size: 13px; padding: 5px 12px; text-transform: none; letter-spacing: 0; }

/* ---------- Toast / Status (§4) ----------
   <div class="status status--success" role="status"><svg…/> Saved</div>
   Status colours always ship with an icon and a label. */
.status { display: flex; align-items: flex-start; gap: 10px; border-radius: var(--radius-input); padding: 12px 14px; font-weight: 600; font-size: 15px; background: var(--tint-cream); color: var(--ink); }
.status svg { flex: none; margin-top: 2px; }
.status--success { background: var(--success-tint); color: var(--success); }
.status--warning { background: var(--tint-yellow); color: var(--warning); }
.status--info { background: var(--tint-cream); color: var(--ink); }
.status--danger { background: var(--tint-pink); color: var(--danger); }
.status--inline { background: none; padding: 0; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--on-dark); padding: 12px 18px; border-radius: var(--radius-pill); box-shadow: var(--shadow-float); font-weight: 600; max-width: calc(100vw - 32px); }

/* Inline alert, e.g. minimum amount (role="alert") */
.alert { background: var(--tint-pink); color: var(--pink-text); border-radius: var(--radius-input); padding: 10px 14px; font-size: 14px; font-weight: 600; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 220px)), 1fr)); gap: 14px; }
.legend { font-weight: 700; margin-bottom: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.field__hint { font-weight: 400; color: var(--text-muted); }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-input);
  background: var(--surface); font-weight: 400; font-size: 16px;
}
textarea.input { resize: vertical; min-height: 0; }
.input--file { border-style: dashed; border-color: var(--border-dashed); min-height: 52px; padding: 13px; }
.input--code { font-size: 22px; letter-spacing: .4em; text-align: center; min-height: 52px; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-weight: 600; font-size: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; font-weight: 400; cursor: pointer; min-height: var(--target); padding-top: 10px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.method-panel { border: 1.5px solid var(--ink); border-radius: var(--radius-chip); padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.method-panel__title { font-weight: 700; }
.method-panel__text { margin-top: 2px; font-size: 14px; color: var(--text-body); }
.details-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 10px 20px; background: var(--tint-cream); border-radius: var(--radius-input); padding: 14px 16px; font-size: 14px; }
.details-list dt { color: var(--text-muted); }
.details-list dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.card-marks { display: flex; gap: 8px; }
.card-marks span { border: 1px solid var(--border-dashed); border-radius: 6px; padding: 2px 10px; font-size: 12px; font-weight: 700; }

/* ---------- Lists with icons ---------- */
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 10px; }
.check-list svg { flex: none; margin-top: 3px; }
.icon-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.icon-list li { display: flex; gap: 12px; align-items: center; }
.icon-tile { width: 40px; height: 40px; border-radius: 12px; background: var(--tint-yellow); display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--magenta-deep); }
.icon-tile--lg { width: 52px; height: 52px; border-radius: 16px; background: var(--ink); color: var(--brand-yellow); }

/* ---------- Logo slots (sponsors, partners) ---------- */
.logo-slot { border: 1.5px dashed var(--border-dashed); border-radius: var(--radius-chip); height: 96px; display: flex; align-items: center; justify-content: center; }
.logo-slot--sm { height: 72px; border-radius: 14px; }
.logo-slot--lg { flex: 1; min-height: 160px; height: auto; border-color: var(--outline-on-dark); }
.logo-slot img { max-height: 70%; max-width: 80%; object-fit: contain; }

/* ---------- Empty state ---------- */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; background: var(--surface); border-radius: var(--radius-card); padding: 40px 24px; color: var(--text-body); }
.empty-state__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--tint-pink); color: var(--pink-text); display: inline-flex; align-items: center; justify-content: center; }
.empty-state__title { font-family: var(--font-display); font-size: 26px; color: var(--ink); line-height: 1.1; }

/* ---------- Assistant band (pink, §5.3) ---------- */
.assistant-band { background: var(--tint-pink); border-radius: var(--radius-card); padding: 24px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.assistant-band__lead { display: flex; align-items: center; gap: 16px; }
.assistant-band__title { font-family: var(--font-display); font-size: 22px; }
.assistant-band__text { margin-top: 2px; color: var(--text-body); }

/* =================================================================
   Site header (§4 SiteHeader)
   ================================================================= */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 3px solid var(--brand-yellow); }
.site-header__inner { max-width: 1320px; margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-logo { display: flex; align-items: center; flex: none; }
.site-logo img { height: 76px; width: auto; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 20px; font-size: 15px; }
.site-nav__link { display: inline-flex; align-items: center; min-height: var(--target); text-decoration: none; font-weight: 600; color: var(--ink); border-bottom: 2px solid transparent; white-space: nowrap; }
.site-nav__link:hover { color: var(--magenta-deep); }
.site-nav__link[aria-current="page"] { border-bottom-color: var(--brand-yellow); }
.site-nav__cta { display: flex; gap: 10px; }
.menu-toggle { display: none; align-items: center; gap: 8px; min-height: var(--target); min-width: var(--target); padding: 8px 16px; border: 2px solid var(--ink); border-radius: var(--radius-pill); background: var(--surface); font-weight: 700; }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }

@media (max-width: 1259px) {
  .site-header__inner { flex-wrap: wrap; }
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav { display: none; width: 100%; }
  .js .site-nav.is-open { display: block; }
  .site-nav { padding: 4px 0 12px; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list > li { border-top: 1px solid var(--border); }
  .site-nav__link { width: 100%; padding: 8px 4px; font-size: 17px; border-bottom: 0; border-left: 4px solid transparent; padding-left: 12px; }
  .site-nav__link[aria-current="page"] { border-left-color: var(--brand-yellow); background: var(--tint-yellow); }
  .site-nav__list > li.site-nav__cta { border-top: 0; padding-top: 12px; }
  .site-nav__cta .btn { flex: 1; }
}
@media (max-width: 640px) {
  .site-logo img { height: 60px; }
  :root { --header-h: 83px; }
}

/* =================================================================
   Site footer (§4 SiteFooter)
   ================================================================= */
.site-footer { background: var(--ink); color: var(--on-dark-muted); border-top: 4px solid var(--brand-yellow); }
.site-footer__inner { padding-top: 56px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 32px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-start; }
.site-footer__brand { display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.site-footer__logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.site-footer__logo img { height: 64px; width: auto; background: var(--surface); border-radius: 12px; padding: 4px; }
.site-footer__name { font-family: var(--font-display); font-size: 24px; color: var(--on-dark); line-height: 1.05; }
.site-footer__headline { font-size: 19px; line-height: 1.4; color: var(--on-dark); font-weight: 700; } /* 19px bold = large text, so magenta on ink (4.39:1) passes AA */
.site-footer__headline span { color: var(--brand-magenta); }
.site-footer__tagline { font-size: 15px; color: var(--brand-yellow); font-style: italic; }
.site-footer__meta { font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 0; }
.site-footer__meta > *:not([hidden]) ~ *:not([hidden])::before { content: "\00B7"; padding: 0 8px; }
.site-footer__meta[data-config="contact.address"] { display: block; white-space: pre-line; }
.site-footer a { color: var(--on-dark-muted); }
.site-footer a:hover { color: var(--brand-yellow); }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 48px; }
.site-footer__col { display: flex; flex-direction: column; gap: 2px; }
.site-footer__col h2 { font-family: var(--font-body); font-size: 16px; font-weight: 700; color: var(--on-dark); margin-bottom: 4px; }
.site-footer__col a { display: inline-flex; align-items: center; min-height: 32px; }
.site-footer__social { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }
.site-footer__note { border-top: 1px solid var(--dark-3); padding-top: 20px; font-size: 13px; }
@media (max-width: 640px) {
  .site-footer__cols { gap: 28px 40px; }
  .site-footer__col a { min-height: var(--target); }
}

/* =================================================================
   Assistant (§4 AssistantLauncher / AssistantPanel, §11)
   ================================================================= */
.assistant { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; max-width: calc(100vw - 40px); }
.assistant__launcher { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 12px 20px 12px 14px; border: 0; border-radius: var(--radius-pill); background: var(--ink); color: var(--on-dark); font-weight: 700; box-shadow: 0 8px 24px rgba(17, 17, 17, .3); }
.assistant__launcher-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-yellow); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.assistant__panel { width: 380px; max-width: 100%; height: 560px; max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-float); display: flex; flex-direction: column; overflow: hidden; }
.assistant__head { background: var(--ink); color: var(--on-dark); padding: 12px 10px 12px 16px; display: flex; align-items: center; gap: 10px; }
.assistant__avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-yellow); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.assistant__title { font-weight: 700; font-size: 16px; font-family: var(--font-body); white-space: nowrap; }
.assistant__sub { font-size: 12px; color: var(--on-dark-muted); }
.assistant__human { background: var(--dark-2); color: var(--on-dark); border: 0; border-radius: var(--radius-pill); padding: 6px 12px; min-height: var(--target); font-size: 13px; font-weight: 600; white-space: nowrap; }
.assistant__close { background: none; border: 0; color: var(--on-dark); width: var(--target); height: var(--target); display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; }
.assistant__close:focus-visible, .assistant__human:focus-visible { outline-color: var(--brand-yellow); }
.assistant__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--ground); }
.assistant__msg { margin: 0; max-width: 88%; font-size: 14px; line-height: 1.5; padding: 10px 14px; }
.assistant__msg--bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 4px 16px 16px 16px; }
.assistant__msg--user { align-self: flex-end; max-width: 80%; background: var(--ink); color: var(--on-dark); border-radius: 16px 4px 16px 16px; }
.assistant__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.assistant__action { text-decoration: none; background: var(--tint-yellow); color: var(--ink); border-radius: var(--radius-pill); padding: 6px 12px; min-height: 32px; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.assistant__quick { padding: 10px 12px 0; display: flex; gap: 6px; overflow-x: auto; background: var(--surface); }
.assistant__quick button { flex: none; background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: var(--radius-pill); padding: 6px 12px; min-height: var(--target); font-size: 13px; font-weight: 600; }
.assistant__form { padding: 10px 12px 12px; display: flex; gap: 8px; background: var(--surface); }
.assistant__input { flex: 1; min-width: 0; border: 1.5px solid var(--border-strong); border-radius: var(--radius-pill); padding: 10px 16px; min-height: var(--target); }
.assistant__send { background: var(--brand-yellow); color: var(--ink); border: 0; border-radius: 50%; width: var(--target); height: var(--target); flex: none; display: inline-flex; align-items: center; justify-content: center; }
.assistant__note { padding: 0 14px 10px; font-size: 11px; color: var(--text-muted); background: var(--surface); }
@media (max-width: 480px) {
  .assistant { right: 12px; bottom: 12px; max-width: calc(100vw - 24px); }
  /* room below the last control, so the floating launcher never covers it */
  .site-footer { padding-bottom: 88px; }
  .assistant__panel { width: calc(100vw - 24px); }
  .assistant__sub { display: none; }
}

/* =================================================================
   Page sections (Home and Cancer information). Prefixed by page area.
   ================================================================= */
/* Hero (§5.1) */
.hero { background: var(--ink); color: var(--on-dark); }
.hero__inner { max-width: var(--content-max-wide); margin: 0 auto; padding: 56px var(--gutter) 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 48px; align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 24px; }
.hero__sub { font-size: 19px; font-weight: 600; max-width: 40ch; }
.hero__media { position: relative; }
.hero__img { width: 100%; height: 560px; object-fit: cover; border-radius: 28px; }
.hero__tag { position: absolute; left: -14px; bottom: 40px; }
.hero .chip-list { margin-top: 8px; }
@media (max-width: 640px) {
  .hero__inner { padding-top: 40px; padding-bottom: 48px; gap: 36px; }
  .hero__img { height: 420px; }
  .hero__tag { left: -8px; }
}

/* Ways to give (§5.4) */
.give-card { display: flex; flex-direction: column; gap: 20px; }
.give-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.give-card__title { font-family: var(--font-display); font-size: 30px; line-height: 1.1; }
.give-card__amount { font-family: var(--font-display); font-size: 52px; line-height: 1; }
.give-card__amount small { font-family: var(--font-body); font-size: 16px; font-weight: 500; color: var(--text-muted); }
.card--ink .give-card__amount small, .card--ink .give-card__sub { color: var(--on-dark-muted); }
.give-card__sub { margin-top: 4px; color: var(--text-muted); }
.give-card .btn { margin-top: auto; }

/* Donate (§5.5) */
.donor-prompt { background: var(--surface); border-radius: 18px; padding: 18px 20px; font-size: 17px; font-weight: 600; color: var(--text-body); }
.donor-prompt a { color: var(--magenta-text); }
.donate-photo { margin-top: 8px; width: 100%; height: 280px; object-fit: cover; border-radius: var(--radius-card); }
.donate-card { background: var(--surface); border-radius: var(--radius-card-lg); padding: 36px; box-shadow: 0 1px 2px rgba(17, 17, 17, .06); }
.donate-card .form { gap: 22px; }
.donate-submit-note { margin-top: -8px; text-align: center; font-size: 13px; color: var(--text-muted); }
.donate-status { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: 8px 0; }
.donate-status__icon { color: var(--magenta-text); }
.donate-status h3:focus { outline: none; }
.donate-status h3:focus-visible { outline: var(--focus-ring); }
.give-now { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.give-now__title { font-weight: 700; }
@media (max-width: 640px) { .donate-card { padding: 22px 18px; } }

/* Sponsors (§5.8) */
.sponsor-headline { background: var(--ink); border-radius: var(--radius-card); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.package { display: flex; flex-direction: column; gap: 6px; }
.package__title { font-family: var(--font-display); font-size: 22px; }
.package__text { font-size: 14px; color: var(--text-body); }
.slots-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.slots-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

/* Cancer type detail */
.breadcrumb { font-size: 14px; color: var(--text-muted); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li { display: flex; align-items: center; min-height: var(--target); }
.breadcrumb li + li::before { content: "/"; padding: 0 6px; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: var(--target); }
.type-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.type-hero__ribbon { width: 112px; height: 112px; background: var(--surface); border-radius: 20px; padding: 12px; object-fit: contain; flex: none; }
.coming-soon { display: flex; flex-direction: column; gap: 14px; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.pager a { display: inline-flex; align-items: center; gap: 8px; min-height: var(--target); font-weight: 700; }
