/* ═══════════════════════════════════════════════════════════════
   Components — one block per partial in templates/partials/
   ═══════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────────
   Buttons — universal 50px pill, from the design system
   ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 26px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-size: 15px;
  font-weight: var(--weight-semibold);
  line-height: 1;
  letter-spacing: var(--tracking-normal);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-color), transform var(--duration-fast) ease;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; }

/* The design system's signature micro-interaction, on every button. */
.btn:active { transform: scale(.95); }

.btn--sm { height: 38px; padding: 0 20px; font-size: 14px; }
.btn--lg { height: 50px; padding: 0 32px; font-size: 16px; }

/* Filled. The primary action colour is the DEEP red — the brighter
   --bbb-red is reserved for dark backgrounds. */
.btn--primary {
  background: var(--bbb-red-deep);
  border-color: var(--bbb-red-deep);
  color: #fff;
}
.btn--primary:hover { background: #9b0f1a; border-color: #9b0f1a; color: #fff; }

/* On indigo, the deep red goes muddy — step up to the brand red. */
.btn--on-dark {
  background: var(--bbb-red);
  border-color: var(--bbb-red);
  color: #fff;
}
.btn--on-dark:hover { background: #c8121f; border-color: #c8121f; color: #fff; }

.btn--outlined {
  background: transparent;
  border-color: var(--bbb-red-deep);
  color: var(--bbb-red-deep);
}
.btn--outlined:hover { background: var(--bbb-red-tint); color: var(--bbb-red-deep); }

.btn--dark-outlined {
  background: transparent;
  border-color: var(--bbb-indigo);
  color: var(--bbb-indigo);
}
.btn--dark-outlined:hover { background: rgba(38, 33, 99, .06); color: var(--bbb-indigo); }

.btn--ghost-on-dark {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}
.btn--ghost-on-dark:hover { background: rgba(255, 255, 255, .2); color: #fff; }

.btn--block { width: 100%; }

.btn[aria-disabled="true"],
.btn:disabled { opacity: .55; pointer-events: none; }

.btn__icon { flex: none; }

/* ───────────────────────────────────────────────────────────────
   Eyebrow — 11px uppercase label above a heading
   ─────────────────────────────────────────────────────────────── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--bbb-ink-soft);
  margin: 0 0 14px;
}

.eyebrow--on-dark { color: rgba(255, 255, 255, .55); }
.eyebrow--flush { margin-bottom: 0; }

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-circle);
  background: var(--bbb-red);
  flex: none;
}

/* ───────────────────────────────────────────────────────────────
   Cards
   ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
}

.card--cream   { background: var(--bbb-cream); box-shadow: none; }
.card--indigo  { background: var(--bbb-indigo); color: #fff; box-shadow: none; }
.card--flush   { padding: 0; overflow: hidden; }
.card--feature { box-shadow: var(--shadow-feature); border: 1.5px solid var(--bbb-red-deep); }

.card__title {
  font-size: 18.5px;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-normal);
  color: var(--bbb-ink);
  margin: 0;
}

.card--indigo .card__title { color: #fff; }

.card__body {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--bbb-ink-soft);
}

.card--indigo .card__body { color: rgba(255, 255, 255, .8); }

.card__icon {
  color: var(--bbb-red-deep);
  margin-bottom: 16px;
}

.card--indigo .card__icon { color: #fff; }

/* Dashed card — content the client has not supplied yet. */
.card--pending {
  background: transparent;
  box-shadow: none;
  border: 1px dashed rgba(0, 0, 0, .22);
}

.card--pending .card__title { color: var(--bbb-ink-soft); }

/* ───────────────────────────────────────────────────────────────
   Pending flag — dashed "we don't know this yet" marker
   ─────────────────────────────────────────────────────────────── */
.pending-flag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: var(--radius-flag);
  border: 1px dashed rgba(0, 0, 0, .22);
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--bbb-ink-soft);
  white-space: nowrap;
}

.pending-flag--on-dark {
  border-color: rgba(255, 255, 255, .4);
  color: rgba(255, 255, 255, .7);
}

.pending-note {
  padding: 14px 16px;
  border-radius: var(--radius-input);
  border: 1px dashed rgba(0, 0, 0, .22);
  font-size: 13px;
  line-height: 1.6;
  color: var(--bbb-ink-soft);
  font-style: italic;
}

/* ───────────────────────────────────────────────────────────────
   Image placeholder — every photo position on the site
   No stock photography was used, deliberately. Each slot says what
   belongs in it so the client can brief a photographer.
   ─────────────────────────────────────────────────────────────── */
.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
  border: 1px dashed rgba(0, 0, 0, .25);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, .4);
  color: var(--bbb-ink-soft);
  min-height: 180px;
}

.img-placeholder__label {
  font-size: 11.5px;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}

.img-placeholder__desc {
  font-size: 13px;
  line-height: 1.55;
  max-width: 280px;
}

.img-placeholder__icon { opacity: .4; }

/* ───────────────────────────────────────────────────────────────
   Status tiles — blood stock. Also the pulsing dot's only home.
   ─────────────────────────────────────────────────────────────── */
.stock-tile {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 8px;
  border-radius: var(--radius-input);
  text-align: center;
}

.stock-tile--critical { background: var(--status-critical-bg); color: var(--status-critical-fg); }
.stock-tile--low      { background: var(--status-low-bg);      color: var(--status-low-fg); }
.stock-tile--adequate { background: var(--status-ok-bg);       color: var(--status-ok-fg); }
.stock-tile--unknown  { background: var(--bbb-cream);          color: var(--bbb-ink-soft); }

.stock-tile__group {
  font-size: 19px;
  font-weight: var(--weight-bold);
  line-height: 1.15;
}

.stock-tile__status {
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.2;
}

.stock-tile__units {
  font-size: 11.5px;
  opacity: .75;
}

/* ── Status dot ──────────────────────────────────────────────── */
.dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-circle);
  flex: none;
  display: inline-block;
}

.dot--critical { background: var(--bbb-red); }
.dot--low      { background: var(--status-low-fg); }
.dot--ok       { background: var(--status-ok-dot); }
.dot--sm       { width: 6px; height: 6px; }

/* THE ONLY animated element on the site. Critical shortage only. */
.dot--pulse { animation: bbbPulse 1.6s ease-in-out infinite; }

/* ───────────────────────────────────────────────────────────────
   Statistics
   ─────────────────────────────────────────────────────────────── */
.stat__figure {
  font-size: 24px;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  color: var(--bbb-indigo);
  line-height: 1.15;
}

.stat__caption {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--bbb-ink-soft);
}

.stat--lg .stat__figure { font-size: 36px; }
.stat--on-dark .stat__figure { color: #fff; }
.stat--on-dark .stat__caption { color: rgba(255, 255, 255, .7); }

/* ───────────────────────────────────────────────────────────────
   Chips and pills
   ─────────────────────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: var(--bbb-cream);
  font-size: 14px;
  font-weight: var(--weight-medium);
  color: var(--bbb-ink);
}

.chip--on-white { background: var(--bbb-cream); }
.chip--on-cream { background: var(--color-white); }
.chip--urgent   { background: var(--bbb-red-tint); color: var(--bbb-red-deep); font-weight: var(--weight-semibold); }

/* Inert — a service the client has not confirmed. Not clickable. */
.chip--pending {
  background: transparent;
  border: 1px dashed rgba(0, 0, 0, .25);
  color: var(--bbb-ink-soft);
}

.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }

/* ───────────────────────────────────────────────────────────────
   Form fields — floating label, matching the design system Input
   ─────────────────────────────────────────────────────────────── */
.field { position: relative; }

.field__control {
  width: 100%;
  height: 56px;
  padding: 22px 16px 6px;
  border: 1px solid var(--color-input-border);
  border-radius: var(--radius-input);
  background: var(--color-white);
  font-size: 16px;
  line-height: 1.3;
  color: var(--bbb-ink);
  transition: var(--transition-color);
  appearance: none;
}

textarea.field__control {
  height: auto;
  min-height: 128px;
  padding-top: 26px;
  resize: vertical;
}

.field__control:hover { border-color: #b9c0c5; }

.field__control:focus {
  outline: none;
  border-color: var(--bbb-red-deep);
  box-shadow: 0 0 0 1px var(--bbb-red-deep);
}

.field__label {
  position: absolute;
  left: 17px;
  top: 18px;
  font-size: 16px;
  line-height: 1;
  color: var(--bbb-ink-soft);
  pointer-events: none;
  transition: all var(--duration-default) ease;
}

/* Float on focus, and stay floated once there is a value. */
.field__control:focus + .field__label,
.field__control:not(:placeholder-shown) + .field__label {
  top: 9px;
  font-size: 12px;
  font-weight: var(--weight-medium);
  color: var(--bbb-ink-soft);
}

.field__control:focus + .field__label { color: var(--bbb-red-deep); }

textarea.field__control:focus + .field__label,
textarea.field__control:not(:placeholder-shown) + .field__label { top: 10px; }

.field__required { color: var(--bbb-red-deep); }

.field__hint {
  margin-top: 6px;
  padding-left: 2px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--bbb-ink-soft);
}

/* ── Error state ─────────────────────────────────────────────── */
.field--error .field__control { border-color: var(--bbb-red-deep); background: #fdf7f7; }
.field--error .field__label   { color: var(--bbb-red-deep); }

.field__error {
  margin-top: 6px;
  padding-left: 2px;
  font-size: 12.5px;
  line-height: 1.5;
  font-weight: var(--weight-medium);
  color: var(--bbb-red-deep);
}

/* ── Form-level messages ─────────────────────────────────────── */
.form-alert {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-input);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 22px;
}

.form-alert--error   { background: var(--status-critical-bg); color: var(--status-critical-fg); }
.form-alert--success { background: var(--status-ok-bg);       color: var(--status-ok-fg); }

.form-alert__icon { flex: none; margin-top: 1px; }
.form-alert__title { font-weight: var(--weight-semibold); }
.form-alert ul { margin-top: 6px; }
.form-alert li { margin-top: 3px; }

.form-note {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--bbb-ink-soft);
  max-width: 340px;
}

/* ── Step label — "1 · Blood group required" ─────────────────── */
.step-label {
  font-size: 11.5px;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--bbb-ink-soft);
  margin: 0 0 14px;
}

/* ───────────────────────────────────────────────────────────────
   Blood-group picker — 8 tiles
   ─────────────────────────────────────────────────────────────── */
.group-picker { display: grid; grid-template-columns: repeat(8, 1fr); gap: 9px; }

.group-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
  border-radius: var(--radius-input);
  border: 1.5px solid var(--color-input-border);
  background: var(--color-white);
  font-size: 19px;
  font-weight: var(--weight-bold);
  color: var(--bbb-ink);
  cursor: pointer;
  transition: var(--transition-color);
}

.group-tile:hover { border-color: var(--bbb-red-deep); }

.group-tile__input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.group-tile__input:checked ~ .group-tile__label,
.group-tile--selected { color: inherit; }

/* Selected — filled deep red, white text. */
.group-tile:has(.group-tile__input:checked) {
  background: var(--bbb-red-deep);
  border-color: var(--bbb-red-deep);
  color: #fff;
}

.group-tile__input:focus-visible ~ .group-tile__label {
  outline: 2px solid var(--bbb-red-deep);
  outline-offset: 4px;
  border-radius: var(--radius-flag);
}

/* ───────────────────────────────────────────────────────────────
   Stepper — units, clamped 1–8
   ─────────────────────────────────────────────────────────────── */
.stepper { display: flex; align-items: center; gap: 14px; }

.stepper__btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-circle);
  border: 1.5px solid var(--color-input-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bbb-ink);
  background: var(--color-white);
  transition: var(--transition-color);
}

.stepper__btn:hover:not(:disabled) { border-color: var(--bbb-red-deep); color: var(--bbb-red-deep); }
.stepper__btn:disabled { opacity: .4; cursor: not-allowed; }

.stepper__value {
  font-size: 26px;
  font-weight: var(--weight-bold);
  color: var(--bbb-indigo);
  min-width: 32px;
  text-align: center;
}

/* ───────────────────────────────────────────────────────────────
   Choice pills — urgency
   ─────────────────────────────────────────────────────────────── */
.pill-group { display: flex; gap: 8px; }

.pill-choice {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-input-border);
  background: var(--color-white);
  font-size: 13.5px;
  font-weight: var(--weight-semibold);
  color: var(--bbb-ink);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-color);
}

.pill-choice:hover { border-color: var(--bbb-red-deep); }

.pill-choice__input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.pill-choice:has(.pill-choice__input:checked) {
  background: var(--bbb-red-deep);
  border-color: var(--bbb-red-deep);
  color: #fff;
}

.pill-choice__input:focus-visible ~ .pill-choice__label {
  outline: 2px solid var(--bbb-red-deep);
  outline-offset: 4px;
  border-radius: var(--radius-flag);
}

/* ───────────────────────────────────────────────────────────────
   Eligibility check rows — Donate Blood
   ─────────────────────────────────────────────────────────────── */
.check-list { display: flex; flex-direction: column; gap: 10px; }

.check-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 18px;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-input);
  background: var(--color-white);
  cursor: pointer;
  transition: var(--transition-color);
  text-align: left;
  width: 100%;
}

.check-row:hover { border-color: var(--bbb-red-deep); }

.check-row__box {
  width: 27px;
  height: 27px;
  flex: none;
  border-radius: var(--radius-circle);
  border: 1.5px solid var(--color-control-border);
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-color);
}

.check-row__tick { opacity: 0; color: #fff; transition: opacity var(--duration-fast) ease; }

.check-row[aria-pressed="true"] .check-row__box,
.check-row__input:checked ~ .check-row__box {
  background: var(--bbb-red-deep);
  border-color: var(--bbb-red-deep);
}

.check-row[aria-pressed="true"] .check-row__tick,
.check-row__input:checked ~ .check-row__box .check-row__tick { opacity: 1; }

.check-row__label {
  display: block;
  font-size: 16px;
  font-weight: var(--weight-semibold);
  color: var(--bbb-ink);
  line-height: 1.35;
}

.check-row__hint {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--bbb-ink-soft);
}

/* ── Progress rail ───────────────────────────────────────────── */
.progress {
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(38, 33, 99, .13);
  overflow: hidden;
  margin-top: 12px;
}

.progress__fill {
  height: 6px;
  width: 0;
  background: var(--bbb-red-deep);
  border-radius: var(--radius-pill);
  transition: width var(--duration-default) ease;
}

/* ── Eligibility rail ────────────────────────────────────────── */
.rail {
  background: var(--bbb-cream);
  border-radius: var(--radius-card);
  padding: 26px 24px;
}

.rail__count { font-size: 13px; font-weight: var(--weight-bold); color: var(--bbb-indigo); }

.rail__state { margin-top: 20px; }

.rail__heading {
  font-size: 20px;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-normal);
  color: var(--bbb-indigo);
  margin: 0;
}

/* The 5/5 state is the only place green appears as a heading colour.
   It reads as "cleared", not as a brand colour. */
.rail__heading--eligible { color: var(--status-ok-fg); }

.rail__body {
  margin: 8px 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--bbb-ink-soft);
}

.rail__note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(38, 33, 99, .14);
  font-size: 13px;
  line-height: 1.6;
  color: var(--bbb-ink-soft);
}

/* ───────────────────────────────────────────────────────────────
   Accordion — single-open
   ─────────────────────────────────────────────────────────────── */
/* One card, rows divided by hairlines. Built on native <details>. */
.accordion {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.accordion__item + .accordion__item { border-top: 1px solid var(--color-divider); }

.accordion__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: var(--weight-semibold);
  color: var(--bbb-ink);
  cursor: pointer;
  list-style: none;
  transition: var(--transition-color);
}

/* Suppress the native disclosure triangle in both engines — the
   chevron on the right is the affordance. */
.accordion__toggle::-webkit-details-marker { display: none; }
.accordion__toggle::marker { content: ''; }

.accordion__toggle:hover { color: var(--bbb-red-deep); }

.accordion__chevron {
  flex: none;
  color: var(--bbb-ink-soft);
  transition: transform var(--duration-default) ease;
}

.accordion__item[open] .accordion__chevron { transform: rotate(180deg); }

.accordion__panel { padding: 0 22px 20px; }

.accordion__body {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--bbb-ink-soft);
  max-width: 820px;
}

.accordion__window {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: var(--weight-semibold);
  color: var(--bbb-red-deep);
}

/* ───────────────────────────────────────────────────────────────
   Availability panel — Request Blood right rail
   ─────────────────────────────────────────────────────────────── */
.availability { border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; }

.availability__head { padding: 20px 22px; background: var(--bbb-indigo); color: #fff; }

.availability__group {
  font-size: 34px;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
}

.availability__units { font-size: 16px; color: rgba(255, 255, 255, .78); }

.availability__body { padding: 18px 22px; background: var(--color-white); }

.availability__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: var(--weight-bold);
  line-height: 1.4;
}

.availability__status--critical { color: var(--bbb-red-deep); }
.availability__status--ok       { color: var(--status-ok-fg); }

.availability__note {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--bbb-ink-soft);
}

.availability__updated {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-divider);
  font-size: 12px;
  color: var(--bbb-ink-soft);
}

/* ───────────────────────────────────────────────────────────────
   Definition list — "Bring with you", contact numbers
   ─────────────────────────────────────────────────────────────── */
.bullet-list { display: flex; flex-direction: column; gap: 9px; }

.bullet-list__item {
  font-size: 14px;
  line-height: 1.5;
  color: var(--bbb-ink-soft);
  padding-left: 14px;
  position: relative;
}

.bullet-list__item::before {
  content: "·";
  position: absolute;
  left: 2px;
  font-weight: var(--weight-bold);
}

.detail-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 14.5px;
}

.detail-row__label { color: var(--bbb-ink-soft); }
.detail-row__value { font-weight: var(--weight-bold); color: var(--bbb-indigo); text-align: right; }
.detail-row__value--plain { font-weight: var(--weight-regular); color: var(--bbb-ink); }
.detail-row__value--pending { font-weight: var(--weight-regular); color: var(--bbb-ink-soft); }

/* ───────────────────────────────────────────────────────────────
   Phone card — the desk number, above every form
   ─────────────────────────────────────────────────────────────── */
.phone-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  text-decoration: none;
}

.phone-card:hover { text-decoration: none; }
.phone-card__icon { color: var(--bbb-red-deep); flex: none; }

.phone-card__label {
  display: block;
  font-size: 12px;
  font-weight: var(--weight-bold);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bbb-ink-soft);
}

.phone-card__number {
  display: block;
  font-size: 23px;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-normal);
  color: var(--bbb-indigo);
  line-height: 1.2;
}

/* ───────────────────────────────────────────────────────────────
   Breadcrumb
   ─────────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--bbb-ink-soft);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--bbb-ink-soft); }
.breadcrumb a:hover { color: var(--bbb-red-deep); }
.breadcrumb__sep { opacity: .5; }
.breadcrumb__current { color: var(--bbb-ink); font-weight: var(--weight-medium); }

/* ───────────────────────────────────────────────────────────────
   Page hero
   ─────────────────────────────────────────────────────────────── */
.page-hero__title {
  font-size: 38px;
  font-weight: var(--weight-semibold);
  line-height: 1.15;
  letter-spacing: var(--tracking-tight);
  margin: 0;
  max-width: 780px;
}

/* Indigo is the default heading tone. Red is held back for the pages
   where somebody is actually in trouble — mainly Request Blood. */
.page-hero__title--indigo { color: var(--bbb-indigo); }
.page-hero__title--red    { color: var(--bbb-red-deep); }

.page-hero__intro {
  margin-top: 14px;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--bbb-ink);
}

/* ───────────────────────────────────────────────────────────────
   Table — screening panel, opening hours
   ─────────────────────────────────────────────────────────────── */
.data-table { width: 100%; font-size: 14.5px; }

.data-table th {
  text-align: left;
  padding: 0 0 12px;
  font-size: 11.5px;
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--bbb-ink-soft);
  border-bottom: 1px solid rgba(38, 33, 99, .14);
}

.data-table td {
  padding: 14px 0;
  border-bottom: 1px solid rgba(38, 33, 99, .09);
  vertical-align: top;
}

.data-table tr:last-child td { border-bottom: 0; }

.data-table__name { font-weight: var(--weight-semibold); color: var(--bbb-ink); }
.data-table__pending { color: var(--bbb-ink-soft); font-style: italic; }

/* ───────────────────────────────────────────────────────────────
   Icon defaults — 24px box, 1.5px stroke, currentColor
   ─────────────────────────────────────────────────────────────── */
.icon {
  display: inline-block;
  vertical-align: middle;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--filled { fill: currentColor; stroke: none; }

/* ───────────────────────────────────────────────────────────────
   Select — the enquiry form's purpose dropdown
   ───────────────────────────────────────────────────────────────
   A <select> can never match :placeholder-shown, which means the
   float rule above already treats it as "has a value" and pins the
   label up. That is the behaviour we want, but relying on a double
   negative is not something the next person should have to work out,
   so it is stated explicitly here.
   ─────────────────────────────────────────────────────────────── */
.field--select .field__control {
  padding-right: 42px;
  cursor: pointer;
  /* Some engines vertically centre select text and ignore the shared
     padding. Restating it keeps the value clear of the pinned label. */
  padding-top: 23px;
  padding-bottom: 6px;
}

.field--select .field__label {
  top: 9px;
  font-size: 12px;
  font-weight: var(--weight-medium);
}

.field--select .field__control:focus ~ .field__label { color: var(--bbb-red-deep); }
.field--error.field--select .field__label { color: var(--bbb-red-deep); }

/* appearance:none removes the native arrow, so we draw our own. */
.field__chevron {
  position: absolute;
  top: 50%;
  right: 15px;
  display: flex;
  transform: translateY(-50%);
  color: var(--bbb-ink-soft);
  pointer-events: none;
}

.field--select .field__control:focus ~ .field__chevron { color: var(--bbb-red-deep); }

/* The disabled prompt reads as unselectable in the open list. */
.field__control option[disabled] { color: var(--bbb-ink-soft); }

/* ───────────────────────────────────────────────────────────────
   Photograph — the filled state of the image-placeholder partial
   ─────────────────────────────────────────────────────────────── */
.photo { margin: 0; min-width: 0; }

.photo__img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-card);
  object-fit: cover;
  background: var(--bbb-cream);
}

.photo__caption {
  margin-top: 10px;
  padding-left: 2px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--bbb-ink-soft);
}

/* Inline link inside card copy — the desk number, mostly. */
.card__link {
  color: var(--bbb-red-deep);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}

.card__link:hover { text-decoration: underline; }

/* The "call the desk instead" note above the enquiry form. Always
   visible; this is only what the purpose dropdown emphasises.
   See .enquiry__urgent in pages.css for its standalone placement. */
.card__body--urgent {
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--bbb-cream);
  transition: background var(--duration-default) ease,
              box-shadow var(--duration-default) ease;
}

.card__body--urgent.is-emphasised {
  background: var(--status-critical-bg);
  box-shadow: inset 0 0 0 1px rgba(179, 18, 31, .25);
}
