/*
 * ENTERPRISE Zambia 2.0 grant portal.
 *
 * Colours come from section 3 of the Partner Visibility and Branding
 * Requirements. Measured contrast against white:
 *
 *   navy   #182251  15.15:1  passes AA, used for text, headers, navigation
 *   blue   #1964AE   6.04:1  passes AA, used for links and primary actions
 *   purple #9D4490   5.73:1  passes AA, secondary accent, safe as text
 *   coral  #EB5F4C   3.35:1  large text only, so errors use #C2402F (5.16:1)
 *   teal   #19A7A3   2.96:1  fills and chips only, never text on white
 *   yellow #FCD503   1.43:1  highlight fills only, never text on white
 *
 * Teal, coral and yellow therefore appear only as tinted fills, chips and
 * borders carrying navy text, where contrast measures 12:1 or better. That
 * keeps the portal readable without leaving the approved palette.
 *
 * Typography follows section 5: Noto Sans for body, Arial as the documented
 * fallback and the standard for web compatibility.
 */

:root {
  --navy: #182251;
  --navy-dark: #0f1636;
  --blue: #1964ae;
  --blue-dark: #14528f;
  --purple: #9d4490;
  --coral: #eb5f4c;
  --coral-dark: #c2402f;
  --teal: #19a7a3;
  --teal-dark: #0f7a77;
  --yellow: #fcd503;

  --ink: #182251;
  --ink-muted: #4a5272;
  --line: #d7dae6;
  --line-soft: #e8eaf1;
  --surface: #ffffff;
  --surface-sunken: #f5f6fa;
  --surface-raised: #ffffff;

  --radius: 6px;
  --radius-lg: 10px;
  --gutter: 16px;
  --measure: 68ch;

  --font-body: "Noto Sans", Arial, Helvetica, sans-serif;
  --shadow: 0 1px 2px rgba(24, 34, 81, 0.08), 0 2px 8px rgba(24, 34, 81, 0.06);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
img, picture, svg, video { max-width: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface-sunken);
}

/* Headings use bold uppercase for the top level, per section 5.1.1. */
h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: 1.75rem; letter-spacing: 0.01em; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.08rem; }
h4 { font-size: 1rem; }

p, li { max-width: var(--measure); }
p { margin: 0 0 1em; }

a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------------------------------------------------------------- layout */

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

main { padding: 28px 0 56px; }

/*
 * A page whose first element is full-bleed, such as the landing page and
 * its hero, starts hard against the header. The padding above is meant
 * for pages that open with text inside the shell; against a photograph it
 * showed as a band of page background between the bar and the image.
 */
.flush-top main { padding-top: 0; }

.page-head {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--line-soft);
}
.page-head p.lede {
  color: var(--ink-muted);
  margin: 0;
  max-width: var(--measure);
}

.grid { display: grid; gap: 20px; }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-sidebar { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}

/* ------------------------------------------------------------ site header */
/*
 * One bar: donor logos, navigation, sign in. It replaces three stacked
 * strips, a logo band over a title band over a navigation band, which
 * between them took most of a phone screen before any content appeared.
 *
 * White, because the EU emblem and the BMZ mark are drawn for a white
 * ground and keep their own backgrounds, which section 2.1.1 of the
 * Partner Visibility and Branding Requirements expects.
 */

.site-head {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(24, 34, 81, 0.06);
}
.site-head__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 0;
}

/*
 * Section 2.1.1: Global Gateway, then the European Union co-funded
 * emblem, then BMZ. The implementing partners close that order in the
 * footer. Global Gateway and the EU emblem appear on every visual, which
 * is why they are in the bar rather than somewhere a reader must scroll
 * to find them.
 */
.site-head__brand {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.site-head__brand img { display: block; width: auto; }

/*
 * Equal visual weight, judged optically rather than by one number. The EU
 * mark is a vertical lockup, a flag above two lines of caption, so it
 * needs more overall height for its emblem to match the height of the
 * Global Gateway wordmark.
 */
.logo-gg { height: 44px; }
.logo-eu { height: 54px; }
.logo-bmz { height: 44px; }

/* ----------------------------------------------------------- navigation */

/*
 * Pushed to the right of the logos, with the account actions after it.
 *
 * min-width lets it shrink below the width of its links, and the overflow
 * then scrolls rather than pushing the sign-out button off the end of the
 * bar. A signed-in user has seven navigation items against the public
 * four, which is what first ran over.
 */
.site-nav { margin-left: auto; min-width: 0; }
.site-nav__links {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav__links::-webkit-scrollbar { display: none; }

.site-nav__links a {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  /* 44px, the smallest reliable touch target, even on a pointer device
   * where it also makes the bar easier to hit in a hurry. */
  min-height: 44px;
  padding: 0 12px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.site-nav__links a:hover {
  color: var(--blue);
  background: var(--surface-sunken);
}
.site-nav__links a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--blue);
}

/* The copy of the account actions that lives inside the drawer. Only
 * wanted on a narrow screen, where the bar has no room for them. */
.site-nav__account { display: none; }

.site-head__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.site-head__who {
  font-size: 0.88rem;
  color: var(--ink-muted);
  max-width: 18ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/*
 * The signed-in navigation is seven items wide, and with the name after
 * it the bar ran past its own edge and cut off the sign-out button. The
 * name is the first thing to drop: every signed-in page greets the
 * reader by name in its own heading, so nothing is lost by it.
 */
@media (max-width: 1200px) { .site-head__who { display: none; } }

/*
 * Tighter between the drawer breakpoint and a full-width desktop. This is
 * the band where the seven signed-in items plus the sign-out button are
 * wider than the bar, and where the overflow would otherwise clip the
 * last item mid-word. Smaller than this a drawer takes over entirely.
 */
@media (max-width: 1120px) {
  .site-head__inner { gap: 16px; }
  .site-head__brand { gap: 14px; }
  .site-nav__links a { padding: 0 9px; font-size: 0.9rem; }
}

/* ------------------------------------------------- the navigation drawer */
/*
 * Most of this portal's readers are on a phone, where a row of navigation
 * links either wraps on to several lines or scrolls sideways, and both are
 * easy to miss. Under 900px the navigation becomes a panel that slides in
 * from the left, opened by a button in the bar.
 *
 * The button is hidden until ui.js unhides it: without the script there is
 * nothing to open the drawer with, so the navigation stays a plain row of
 * links and nothing becomes unreachable.
 */

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 44px;
  padding: 0 14px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle:hover { background: var(--surface-sunken); border-color: var(--blue); }

/* Three bars, drawn rather than an icon font or an image, so they inherit
 * the button's colour and need no extra request. */
.nav-toggle__bars {
  display: block;
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.drawer-backdrop { display: none; }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }

  .site-head__inner { gap: 12px; }
  /* The logos shrink rather than wrap: the bar has to stay one line. */
  .logo-gg { height: 26px; }
  .logo-eu { height: 32px; }
  .logo-bmz { height: 26px; }

  /* Signing in moves into the drawer, where there is room for it. */
  .site-head__actions { margin-left: auto; }
  .site-head__actions > *:not(.nav-toggle) { display: none; }
  .site-nav__account { display: block; padding: 18px 4px 0; }
  .site-nav__account .btn { width: 100%; justify-content: center; }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(82vw, 320px);
    z-index: 60;
    margin-left: 0;
    background: var(--navy);
    border-right: 3px solid var(--teal);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-100%);
    transition: transform 180ms ease;
    box-shadow: 4px 0 24px rgba(15, 22, 54, 0.35);
    padding: 12px var(--gutter) 24px;
  }
  .site-nav__links { display: block; }
  .site-nav__links a {
    display: block;
    color: #dfe3f2;
    padding: 14px 4px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid transparent;
    white-space: normal;
  }
  .site-nav__links a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }
  .site-nav__links a[aria-current="page"] {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--yellow);
    background: rgba(255, 255, 255, 0.07);
  }

  .drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(15, 22, 54, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .drawer-open .site-nav { transform: translateX(0); }
  .drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
  /* Stop the page behind the drawer scrolling under the finger. */
  .drawer-open { overflow: hidden; }
}

/*
 * Below 400px the word "Menu" is dropped and the bars stand alone, which
 * buys back enough width to keep the marks at a legible size. A 390px
 * phone, the commonest size, measures about 188px of logos against 358px
 * of usable bar, so they do not need shrinking there.
 */
@media (max-width: 400px) {
  .site-head__brand { gap: 12px; }
  .nav-toggle { padding: 0 12px; }
  .nav-toggle__label { display: none; }
}

@media (max-width: 345px) {
  /* Only the very narrowest, where the marks genuinely do not fit. */
  .site-head__brand { gap: 8px; }
  .logo-gg { height: 21px; }
  .logo-eu { height: 26px; }
  .logo-bmz { height: 21px; }
}

/*
 * Without the script the drawer never opens, so it must not be a fixed
 * panel stuck off-screen: it stays the ordinary row of links it is on a
 * wide screen. `.js` is added by ui.js once it has run.
 */
@media (max-width: 899px) {
  html:not(.js) .site-head__inner { flex-wrap: wrap; }
  html:not(.js) .site-nav {
    position: static;
    width: 100%;
    transform: none;
    background: none;
    box-shadow: none;
    border-right: 0;
    padding: 0;
    margin-left: 0;
    overflow-x: auto;
  }
  html:not(.js) .site-nav__links { display: flex; }
  html:not(.js) .site-nav__links a {
    color: var(--ink);
    border-left: 0;
    border-bottom: 3px solid transparent;
    padding: 0 12px;
  }
  html:not(.js) .site-nav__links a[aria-current="page"] {
    background: none;
    color: var(--navy);
    border-bottom-color: var(--blue);
  }
  html:not(.js) .site-nav__account { display: none; }
  html:not(.js) .site-head__actions > *:not(.nav-toggle) { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav, .drawer-backdrop { transition: none; }
}

/* ------------------------------------------------------------------ cards */

.card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 18px; }
.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.card__head h2, .card__head h3 { margin: 0; }

.card--accent { border-left: 4px solid var(--teal); }
.card--warn { border-left: 4px solid var(--coral); }
.card--note { border-left: 4px solid var(--purple); }

/* ----------------------------------------------------- apply wizard bar */
/*
 * Built and inserted by setUpApplyWizard() in ui.js. Hidden in the markup
 * until the script runs, same as the nav-toggle button: without it there
 * is nothing to step between, so nothing to show a position within.
 */

.wizard-progress {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
}

/* A row of plain segments rather than numbered circles: it scales to any
 * step count without crowding a phone screen or shrinking past legible,
 * and one continuous bar reads as "progress" at a glance. */
.wizard-progress__track {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}
.wizard-progress__segment {
  flex: 1;
  height: 7px;
  border-radius: 4px;
  background: var(--line-soft);
  transition: background-color 200ms ease, box-shadow 200ms ease;
}
.wizard-progress__segment--done {
  background: var(--teal);
  cursor: pointer;
}
.wizard-progress__segment--current {
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(25, 100, 174, 0.18);
}

.wizard-progress__label {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 10px;
  row-gap: 2px;
}
.wizard-progress__count {
  flex: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue);
}
.wizard-progress__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}

.wizard-nav { margin-top: 16px; }

/* ------------------------------------------------------------ status pips */
/*
 * Chips put navy text on a tinted fill, so teal, coral and yellow can be
 * used without putting low-contrast colour on white.
 */

.pip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--navy);
  background: var(--line-soft);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.pip--ok      { background: #d6f2f1; border-color: var(--teal); }
.pip--wait    { background: #fff6c2; border-color: #d9b703; }
.pip--stop    { background: #fde0db; border-color: var(--coral); }
.pip--info    { background: #dce9f8; border-color: var(--blue); }
.pip--muted   { background: var(--surface-sunken); }
.pip--accent  { background: #f2e0ef; border-color: var(--purple); }

/* ----------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
table.data caption {
  text-align: left;
  color: var(--ink-muted);
  padding-bottom: 8px;
}
table.data th,
table.data td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
table.data th {
  color: var(--navy);
  font-weight: 600;
  background: var(--surface-sunken);
  border-bottom: 2px solid var(--line);
}
table.data tbody tr:hover { background: #fafbfd; }
table.data td p, table.data td li { max-width: none; }

/* ------------------------------------------------------------------ forms */

.field { margin-bottom: 22px; max-width: var(--measure); }
.field > label,
.field > .field__label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.field__guidance {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin: 0 0 8px;
}
.field__required { color: var(--coral-dark); font-weight: 700; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="password"],
input[type="search"],
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 9px 11px;
  border: 1px solid #9aa2bd;
  border-radius: var(--radius);
  background: #fff;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); }

.choices { display: grid; gap: 8px; }
.choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}
.choice:hover { border-color: var(--blue); background: #fafcff; }
.choice input { margin-top: 3px; flex-shrink: 0; }
.choice span { max-width: none; }

.word-count { font-size: 0.82rem; color: var(--ink-muted); margin-top: 4px; }
.word-count.over { color: var(--coral-dark); font-weight: 600; }

fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin: 0 0 22px;
}
legend { font-weight: 700; color: var(--navy); padding: 0 6px; }

/* Disaggregated count tables and fixed tables. */
table.matrix { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.matrix th, table.matrix td {
  border: 1px solid var(--line);
  padding: 8px;
  text-align: left;
}
table.matrix th { background: var(--surface-sunken); color: var(--navy); }
table.matrix input { min-width: 90px; }
table.matrix td.total {
  background: #f2f4fa;
  font-weight: 700;
  color: var(--navy);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--secondary {
  background: #fff;
  color: var(--navy);
  border-color: #9aa2bd;
}
.btn--secondary:hover { border-color: var(--navy); }
.btn--danger { background: var(--coral-dark); color: #fff; }
.btn--danger:hover { background: #a6341f; color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 24px;
}
/* Same specificity as .btn-row itself, so without this the flex display
 * above wins over the browser's default [hidden] rule and the row stays
 * visible - exactly the bug the drawer backdrop had. */
.btn-row[hidden] { display: none; }

/* --------------------------------------------------------------- messages */

.notice {
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  background: #fff;
}
.notice h2, .notice h3 { margin-top: 0; font-size: 1rem; }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice--info { border-left-color: var(--blue); background: #f4f8fd; }
.notice--ok { border-left-color: var(--teal); background: #f2fbfa; }
.notice--warn { border-left-color: #d9b703; background: #fffdf0; }
.notice--error { border-left-color: var(--coral); background: #fef6f4; }
.notice ul { margin: 8px 0 0; padding-left: 20px; }

.errorlist {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  color: var(--coral-dark);
  font-size: 0.88rem;
  font-weight: 600;
}

/* -------------------------------------------------------- receipt and key */

.receipt {
  background: #f2fbfa;
  border: 1px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 20px;
}
/*
 * Definition lists stack on a narrow screen.
 *
 * A `max-content` first column plus a grid item's default `min-width:auto`
 * means one long value, such as a full date with a timezone, sets a floor
 * wider than a phone screen and pushes the whole page sideways. Stacking
 * below 560px removes the floor, and `min-width: 0` lets the value column
 * shrink and wrap at wider sizes.
 */
.receipt dl,
.keyvalue {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px 18px;
  margin: 0;
}
.receipt dl > *,
.keyvalue > * { min-width: 0; overflow-wrap: anywhere; }

@media (min-width: 560px) {
  .receipt dl,
  .keyvalue {
    grid-template-columns: minmax(auto, max-content) minmax(0, 1fr);
    gap: 6px 18px;
  }
}

.receipt dt { font-weight: 600; color: var(--navy); }
.receipt dd { margin: 0; }

.keyvalue { font-size: 0.94rem; }
.keyvalue dt { color: var(--ink-muted); }
.keyvalue dd { margin: 0 0 8px; color: var(--ink); }
@media (min-width: 560px) { .keyvalue dd { margin: 0; } }

/* ------------------------------------------------------------- trail, log */

.trail { list-style: none; margin: 0; padding: 0; }
.trail li {
  padding: 12px 0 12px 18px;
  border-left: 2px solid var(--line);
  position: relative;
  max-width: none;
}
.trail li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
}
.trail li.denied::before { background: var(--coral); }
.trail li.blocked::before { background: var(--yellow); }
.trail__meta { font-size: 0.84rem; color: var(--ink-muted); }

/* ----------------------------------------------------------------- footer */

.partner-strip {
  background: #fff;
  padding: 20px 0;
  margin-top: 48px;
  text-align: center;
}
.partner-strip__donors {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.partner-strip__donors img,
.partner-strip > .shell > img {
  display: block;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}
.partner-strip > .shell > img { height: 56px; }
@media (max-width: 599px) {
  .partner-strip { padding: 16px 0; }
  .partner-strip__donors { gap: 18px; }
  .partner-strip > .shell > img { height: auto; width: 100%; max-width: 340px; }
}
.site-footer {
  background: var(--navy);
  color: #d4daf0;
  padding: 28px 0;
  text-align: center;
}
/*
 * Scoped to plain links, like the site header and the callouts. The footer
 * has no buttons today, so this is not a live fault, but it is the same
 * rule that made a .btn--secondary render as an empty white rectangle in
 * both of those, and the next button added here would have inherited it.
 */
.site-footer a:not(.btn) { color: #fff; }
.site-footer p { font-size: 0.88rem; max-width: 60ch; margin-left: auto; margin-right: auto; }

/* ----------------------------------------------------------------- utility */

.muted { color: var(--ink-muted); }
.small { font-size: 0.88rem; }
.stack > * + * { margin-top: 12px; }
.inline-list { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.empty {
  padding: 32px;
  text-align: center;
  color: var(--ink-muted);
  background: var(--surface-sunken);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* HTMX autosave indicator. */
.autosave { font-size: 0.84rem; color: var(--ink-muted); }
.htmx-request .autosave__idle { display: none; }
.autosave__busy { display: none; }
.htmx-request .autosave__busy { display: inline; }

@media print {
  .site-nav, .site-head__actions, .btn-row, .site-footer { display: none; }
  /* The donor marks stay: section 2.1.1 requires them on every visual,
   * and a printed page is one. */
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #999; }
}
