/* Status banner — coloured strip stating where a page sits in its lifecycle.
   Two shapes:
   - Inline (default): a compact block inside the page content column.
     <div class="govbb-status-banner govbb-status-banner--alpha"> (or --beta /
     --migrated / --service) containing one or two <p>s. Add --rounded for a
     softer corner when nested inside content.
   - Page-level: add --full-width and wrap the content in
     <div class="govbb-width-container govbb-status-banner__inner"> so the
     tinted background bleeds edge to edge while the text lines up with the
     header/footer content column — the same pattern as the official banner. */

.govbb-status-banner {
  /* tinted surface: links inside go ink and hover lifts to a white
     background, per the Figma links sheet */
  --govbb-link-color: var(--govbb-color-ink);
  --govbb-link-hover-color: var(--govbb-color-ink);
  --govbb-link-hover-bg: var(--govbb-color-surface);

  width: 100%;
  padding: var(--govbb-space-s);
  font-size: var(--govbb-font-size-body);
  line-height: var(--govbb-line-height-base);
  color: var(--govbb-color-ink);
}

/* Full-width shape: the width container owns the inline gutters, the inner
   keeps the vertical rhythm. */
.govbb-status-banner--full-width {
  padding: 0;
}

.govbb-status-banner__inner {
  padding-block: var(--govbb-space-s);
}

:where(.govbb-status-banner, .govbb-status-banner__inner) > p {
  margin: 0;
}

:where(.govbb-status-banner, .govbb-status-banner__inner) > p + p {
  margin-top: var(--govbb-space-xs);
}

.govbb-status-banner--rounded {
  border-radius: var(--govbb-radius);
}

.govbb-status-banner--alpha {
  background: var(--govbb-color-highlight);
}

.govbb-status-banner--beta {
  background: var(--govbb-yellow-20);
}

.govbb-status-banner--migrated {
  background: var(--govbb-pink-10);
}

.govbb-status-banner--service {
  background: var(--govbb-red-10);
}
