/* ═══════════════════════════════════════════════════════════════
   Layout — bands, containers and section rhythm

   The page is a vertical stack of full-bleed colour bands. Each band
   holds one centred container. Never more than two background
   colours in a viewport, so bands alternate cream and white with the
   indigo reserved for genuine punctuation.
   ═══════════════════════════════════════════════════════════════ */

.page { min-height: 100vh; display: flex; flex-direction: column; }
.page__main { flex: 1 0 auto; }

/* ── Bands ───────────────────────────────────────────────────── */
.band {
  padding: var(--section-y) 0;
}

.band--white    { background: var(--color-white); }
.band--cream    { background: var(--bbb-cream); }
.band--indigo   { background: var(--bbb-indigo); color: #fff; }
.band--red-tint { background: var(--bbb-red-tint); }

/* Standard page hero — About, Services, Donate, Locations. */
.band--hero     { padding: 46px 0 42px; }
/* The home hero carries more weight and gets more room. */
.band--hero-lg  { padding: 60px 0 64px; }
.band--tight    { padding: 34px 0; }
.band--flush    { padding: 0; }

/* Headings and links invert inside dark bands. */
.band--indigo h1, .band--indigo h2, .band--indigo h3 { color: #fff; }
.band--indigo a { color: #fff; }

/* ── Container ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow { max-width: 900px; }

/* ── Grids ───────────────────────────────────────────────────── */
/* Two-column split: primary content + a right rail. */
.split {
  display: grid;
  gap: var(--gap-major);
  align-items: start;
}

.split--hero      { grid-template-columns: 1.05fr .95fr; gap: 52px; }
.split--rail-380  { grid-template-columns: 1fr 380px; }
.split--rail-400  { grid-template-columns: 1fr 400px; }
.split--rail-360  { grid-template-columns: 1fr 360px; }
.split--even      { grid-template-columns: 1fr 1fr; }

.grid { display: grid; gap: var(--gap-cards); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--8 { grid-template-columns: repeat(8, 1fr); gap: 9px; }

/* Form field pairs. */
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field-grid__full { grid-column: 1 / -1; }

/* ── Stacks ──────────────────────────────────────────────────── */
.stack        { display: flex; flex-direction: column; gap: var(--space-3); }
.stack--tight { gap: var(--space-2); }
.stack--wide  { gap: var(--space-4); }

.row {
  display: flex;
  align-items: center;
  gap: var(--gap-control);
  flex-wrap: wrap;
}

.row--between { justify-content: space-between; }
.row--baseline { align-items: baseline; }
.row--top { align-items: flex-start; }

/* ── Section headers ─────────────────────────────────────────── */
/* An H2 with an attribution pushed to the right on the same baseline. */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.section-head__title {
  font-size: 24px;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-normal);
  color: var(--bbb-red-deep);
  margin: 0;
}

.section-head__note {
  font-size: 13px;
  line-height: 1.55;
  color: var(--bbb-ink-soft);
  max-width: 340px;
  text-align: right;
}

.section-intro {
  margin-top: 10px;
  max-width: 640px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--bbb-ink-soft);
}

/* ── Sticky right rail ───────────────────────────────────────── */
.rail-sticky { position: sticky; top: 20px; }

/* ── Rules and dividers ──────────────────────────────────────── */
.rule {
  height: 1px;
  background: rgba(38, 33, 99, .16);
  border: 0;
  margin: 0;
}

.rule--soft { background: var(--color-divider); }
.rule--on-dark { background: rgba(255, 255, 255, .14); }
