/* GGDS: Ghana Government Design System. Generated by @ggds/css build.mjs. Do not edit. */
:root {
  --ggds-color-brand-50: #f0f8fc;
  --ggds-color-brand-100: #dceff9;
  --ggds-color-brand-500: #0090d8;
  --ggds-color-brand-600: #0073ad;
  --ggds-color-brand-700: #005f8f;
  --ggds-color-brand-800: #00496e;
  --ggds-color-brand-900: #00334d;
  --ggds-color-institution: var(--ggds-color-brand-700);
  --ggds-color-institution-deep: #005d8c;
  --ggds-color-flag-red: #ce1126;
  --ggds-color-flag-gold: #fcd116;
  --ggds-color-flag-green: #006b3f;
  --ggds-color-flag-black: #000000;
  --ggds-color-text: #14213d;
  --ggds-color-text-muted: #4a5568;
  --ggds-color-text-inverse: #ffffff;
  --ggds-color-link: var(--ggds-color-brand-700);
  --ggds-color-link-hover: var(--ggds-color-brand-900);
  --ggds-color-link-visited: #5b2a86;
  --ggds-color-border-subtle: #d5dbe5;
  --ggds-color-border-strong: #9aa5b8;
  --ggds-color-border-control: #5c6a80;
  --ggds-color-surface: #ffffff;
  --ggds-color-surface-sunken: #f5f7fa;
  --ggds-color-surface-raised: #ffffff;
  --ggds-color-status-success-strong: #0d6b3a;
  --ggds-color-status-success-subtle: #e8f5ee;
  --ggds-color-status-warning-strong: #7a4b00;
  --ggds-color-status-warning-subtle: #fff6e0;
  --ggds-color-status-danger-strong: #b3261e;
  --ggds-color-status-danger-subtle: #fdecea;
  --ggds-color-status-info-strong: #0b5394;
  --ggds-color-status-info-subtle: #e8f1fb;
  --ggds-color-status-neutral-strong: #4a5568;
  --ggds-color-status-neutral-subtle: #eef1f5;
  --ggds-color-focus-ring: #ffbf47;
  --ggds-color-focus-halo: #0b0c0c;
  --ggds-font-family-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  --ggds-font-family-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, monospace;
  --ggds-font-size-xs: 0.8125rem;
  --ggds-font-size-sm: 0.9375rem;
  --ggds-font-size-base: 1.0625rem;
  --ggds-font-size-lg: 1.25rem;
  --ggds-font-size-xl: 1.5rem;
  --ggds-font-size-2xl: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  --ggds-font-size-3xl: clamp(2rem, 1.5rem + 2.2vw, 3rem);
  --ggds-font-weight-regular: 400;
  --ggds-font-weight-bold: 700;
  --ggds-line-height-tight: 1.2;
  --ggds-line-height-body: 1.6;
  --ggds-measure: 68ch;
  --ggds-space-1: 0.25rem;
  --ggds-space-2: 0.5rem;
  --ggds-space-3: 0.75rem;
  --ggds-space-4: 1rem;
  --ggds-space-6: 1.5rem;
  --ggds-space-8: 2rem;
  --ggds-space-12: 3rem;
  --ggds-space-16: 4rem;
  --ggds-size-gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --ggds-size-content-max: 76rem;
  --ggds-size-target: 44px;
  --ggds-size-icon-sm: 1rem;
  --ggds-size-icon-md: 1.25rem;
  --ggds-size-icon-lg: 1.5rem;
  --ggds-size-icon-xl: 2rem;
  --ggds-radius-sm: 4px;
  --ggds-radius-md: 8px;
  --ggds-radius-lg: 14px;
  --ggds-radius-pill: 999px;
  --ggds-radius-round: 50%;
  --ggds-radius-sheet: 18px;
  --ggds-shadow-1: 0 1px 2px rgb(20 33 61 / 0.08), 0 1px 3px rgb(20 33 61 / 0.06);
  --ggds-shadow-2: 0 4px 12px rgb(20 33 61 / 0.1), 0 2px 4px rgb(20 33 61 / 0.06);
  --ggds-shadow-sheet: 0 -8px 32px rgb(20 33 61 / 0.18);
  --ggds-motion-duration-fast: 120ms;
  --ggds-motion-duration-base: 220ms;
  --ggds-motion-duration-slow: 360ms;
  --ggds-motion-duration-stagger: 40ms;
  --ggds-motion-easing-standard: cubic-bezier(0.2, 0, 0, 1);
  --ggds-motion-easing-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --ggds-motion-easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ggds-layer-base: 0;
  --ggds-layer-raised: 10;
  --ggds-layer-sticky: 100;
  --ggds-layer-overlay: 400;
  --ggds-layer-modal: 500;
  --ggds-layer-toast: 600;
  --ggds-breakpoint-tablet: 48rem;
  --ggds-breakpoint-desktop: 64rem;
  --ggds-breakpoint-wide: 80rem;
  --ggds-breakpoint-tall: 36rem;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --ggds-motion-duration-fast: 0ms;
    --ggds-motion-duration-base: 0ms;
    --ggds-motion-duration-slow: 0ms;
    --ggds-motion-duration-stagger: 0ms;
  }
}

@layer ggds.base, ggds.components, ggds.utilities;

@layer ggds.base {
/* Base: element defaults, focus, links, layout helpers. Uses only --ggds-* tokens. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 6rem; /* links and focused elements scroll clear of the sticky header (WCAG 2.4.11) */
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--ggds-font-family-sans);
  font-size: var(--ggds-font-size-base);
  line-height: var(--ggds-line-height-body);
  color: var(--ggds-color-text);
  background: var(--ggds-color-surface);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--ggds-space-4);
  line-height: var(--ggds-line-height-tight);
  font-weight: var(--ggds-font-weight-bold);
  color: var(--ggds-color-text);
  text-wrap: balance;
}

h1 { font-size: var(--ggds-font-size-3xl); }
h2 { font-size: var(--ggds-font-size-2xl); }
h3 { font-size: var(--ggds-font-size-lg); }
h4 { font-size: var(--ggds-font-size-base); }

p,
li {
  text-wrap: pretty;
}

p {
  margin: 0 0 var(--ggds-space-4);
}

a {
  color: var(--ggds-color-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:visited {
  color: var(--ggds-color-link-visited);
}

a:hover {
  color: var(--ggds-color-link-hover);
  text-decoration-thickness: 2px;
}

/* One focus style everywhere: a gold ring with a dark band inside it, visible on light and dark surfaces. */
:focus-visible {
  outline: 3px solid var(--ggds-color-focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--ggds-color-focus-halo);
}

input,
select,
textarea,
button {
  font: inherit;
  color: inherit;
}

code {
  font-family: var(--ggds-font-family-mono);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

table {
  border-collapse: collapse;
}

/* Hidden visually, still read by screen readers. */
.ggds-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ggds-container {
  width: 100%;
  max-width: var(--ggds-size-content-max);
  margin-inline: auto;
  /* Clear of a phone's notch or rounded corners in landscape. */
  padding-inline: max(var(--ggds-size-gutter), env(safe-area-inset-left)) max(var(--ggds-size-gutter), env(safe-area-inset-right));
}

.ggds-main {
  display: block;
  padding-block: var(--ggds-space-8) var(--ggds-space-12);
}

.ggds-main:focus {
  outline: none;
}

.ggds-measure {
  max-width: var(--ggds-measure);
}

.ggds-lead {
  font-size: var(--ggds-font-size-lg);
  color: var(--ggds-color-text-muted);
}

@media print {
  .ggds-no-print {
    display: none !important;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}

@media (forced-colors: active) {
  :focus-visible {
    outline-color: Highlight;
  }
}
}

@layer ggds.components {
/* skip-link */
/* Skip link: the first focusable element on every page (NITA S&A 6.4.20 "Skip Navigation", WCAG 2.4.1). */
.ggds-skip-link {
  position: absolute;
  inset-inline-start: var(--ggds-space-2);
  inset-block-start: var(--ggds-space-2);
  z-index: var(--ggds-layer-toast);
  padding: var(--ggds-space-3) var(--ggds-space-4);
  background: var(--ggds-color-focus-ring);
  color: var(--ggds-color-focus-halo);
  font-weight: var(--ggds-font-weight-bold);
  transform: translateY(-200%);
}

.ggds-skip-link:visited {
  color: var(--ggds-color-focus-halo);
}

.ggds-skip-link:focus {
  transform: none;
}

/* cookie-banner */
/* Cookie banner: asks before setting cookies a website does not need to work, such as analytics. At the very top
   of the page, before the skip link's target. Works without JavaScript: the buttons submit a form, and the server
   remembers the choice. A website that sets only essential cookies needs no banner. */
.ggds-cookie-banner {
  border-bottom: 4px solid var(--ggds-color-brand-700);
  background: var(--ggds-color-surface-sunken);
}

.ggds-cookie-banner__inner {
  padding-block: var(--ggds-space-6);
}

.ggds-cookie-banner__title {
  font-size: var(--ggds-font-size-xl);
}

.ggds-cookie-banner__body > :last-child {
  margin-bottom: 0;
}

.ggds-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ggds-space-3) var(--ggds-space-6);
  margin-top: var(--ggds-space-4);
}

.ggds-cookie-banner__actions .ggds-button {
  margin: 0;
}

/* banner */
/* Government website identification banner. Works without JavaScript (<details>). Never sticky. */
.ggds-banner {
  background: var(--ggds-color-surface-sunken);
  border-bottom: 1px solid var(--ggds-color-border-subtle);
  font-size: 0.8125rem;
}

.ggds-banner__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ggds-space-1) 0.6rem;
  min-height: var(--ggds-size-target);
  padding-block: var(--ggds-space-1);
  cursor: pointer;
  list-style: none;
}

.ggds-banner__summary::-webkit-details-marker {
  display: none;
}

.ggds-banner__flag {
  flex: none;
  width: 1.25rem;
  height: 0.875rem;
}

.ggds-banner__flag-red { fill: var(--ggds-color-flag-red); }
.ggds-banner__flag-gold { fill: var(--ggds-color-flag-gold); }
.ggds-banner__flag-green { fill: var(--ggds-color-flag-green); }
.ggds-banner__flag-star { fill: var(--ggds-color-flag-black); }

.ggds-banner__text {
  min-width: 0;
}

.ggds-banner__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--ggds-space-1);
  color: var(--ggds-color-link);
  font-weight: var(--ggds-font-weight-bold);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  white-space: nowrap;
}

.ggds-banner__toggle::after {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-25%) rotate(45deg);
  transition: transform var(--ggds-motion-duration-fast) var(--ggds-motion-easing-standard);
}

.ggds-banner__details[open] .ggds-banner__toggle::after {
  transform: translateY(25%) rotate(-135deg);
}

.ggds-banner__content {
  display: grid;
  gap: var(--ggds-space-4);
  padding-block: var(--ggds-space-2) var(--ggds-space-6);
}

@media (min-width: 48rem) {
  .ggds-banner__content {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ggds-banner__heading {
  margin: 0 0 var(--ggds-space-1);
  font-weight: var(--ggds-font-weight-bold);
}

.ggds-banner__item p:last-child {
  margin-bottom: 0;
}

.ggds-banner__summary:hover .ggds-banner__toggle {
  color: var(--ggds-color-link-hover);
}

/* A copy served anywhere but the official address (staging, preview, a mirror). */
.ggds-banner--unofficial {
  background: var(--ggds-color-status-warning-subtle);
}

/* phase-banner */
/* Phase banner: says a service is new (alpha or beta) and asks for feedback. Under the header, on every page of the
   service, until it is finished. */
.ggds-phase-banner {
  border-bottom: 1px solid var(--ggds-color-border-subtle);
  background: var(--ggds-color-surface);
}

.ggds-phase-banner__content {
  display: flex;
  align-items: baseline;
  gap: var(--ggds-space-3);
  margin: 0;
  padding-block: var(--ggds-space-2);
  font-size: var(--ggds-font-size-sm);
}

.ggds-phase-banner__tag {
  flex-shrink: 0;
  padding: 0 var(--ggds-space-2);
  border-radius: var(--ggds-radius-sm);
  background: var(--ggds-color-brand-700);
  color: var(--ggds-color-text-inverse);
  font-weight: var(--ggds-font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Lets a long sentence wrap beside the tag instead of widening the page. */
.ggds-phase-banner__text {
  min-width: 0;
}

@media (forced-colors: active) {
  .ggds-phase-banner__tag {
    border: 1px solid CanvasText;
  }
}

/* header */
/*
 * Header: the flag colours as a thin rule, then one row with the institution's logo,
 * name and country, the main navigation and Search. Sticky, white, with a rule in the institution's colour.
 *
 * Its layout follows the header's own width, not the screen's (container queries): on a website the two are the same,
 * and in a preview, a phone frame or a narrow column the header still lays itself out for the room it has.
 *
 * Below 80rem the navigation does not fit beside the name. Without JavaScript it is a visible list under the row.
 * With @ggds/js a menu button shows and hides it in place: the menu pushes the page down instead of covering it,
 * so keyboard focus can never land on content hidden behind it (WCAG 2.4.11 Focus Not Obscured;
 * a full-screen drawer fails this).
 */
.ggds-header {
  container: ggds-header / inline-size; /* the header spans the page, so its width is the viewport's */
  position: sticky;
  top: 0;
  z-index: var(--ggds-layer-sticky);
  background: var(--ggds-color-surface);
  border-bottom: 3px solid var(--ggds-color-institution);
}

/* National colours as a thin rule only, never as text. */
.ggds-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg,
    var(--ggds-color-flag-red) 0 33.33%,
    var(--ggds-color-flag-gold) 33.33% 66.66%,
    var(--ggds-color-flag-green) 66.66% 100%);
}

.ggds-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--ggds-space-3);
  min-height: 4rem;
}

.ggds-header__identity {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: var(--ggds-space-3);
  min-width: 0; /* long institution names wrap instead of pushing the buttons off a 320px screen */
  min-height: var(--ggds-size-target);
  padding-block: var(--ggds-space-2);
  color: var(--ggds-color-text);
  text-decoration: none;
}

.ggds-header__identity:visited {
  color: var(--ggds-color-text);
}

.ggds-header__identity:hover .ggds-header__name {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* An approved logo, drawn round on white. */
.ggds-header__logo {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--ggds-radius-round);
  background: var(--ggds-color-surface);
  object-fit: contain;
}

/* No approved logo yet: the institution's initials in a round badge keep the layout. */
.ggds-header__monogram {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--ggds-radius-round);
  background: var(--ggds-color-brand-900);
  color: var(--ggds-color-text-inverse);
  font-size: 0.8rem;
  font-weight: var(--ggds-font-weight-bold);
  letter-spacing: -0.01em;
}

.ggds-header__text {
  display: block;
  min-width: 0;
  line-height: var(--ggds-line-height-tight);
}

.ggds-header__name {
  display: block;
  overflow-wrap: break-word;
  color: var(--ggds-color-institution);
  font-size: 0.95rem;
  font-weight: var(--ggds-font-weight-bold);
  letter-spacing: -0.01em;
}

/* A long name (a ministry's) is set smaller on phones so it fits in three lines. */
.ggds-header__name--long {
  font-size: 0.8rem;
}

.ggds-header__country {
  display: none;
  color: var(--ggds-color-text-muted);
  font-size: var(--ggds-font-size-xs);
}

/* Search and the menu button: quiet icon buttons. */
.ggds-header__search,
.ggds-header__menu-button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: var(--ggds-space-2);
  min-width: var(--ggds-size-target);
  min-height: var(--ggds-size-target);
  padding: 0 var(--ggds-space-2);
  border: 0;
  border-radius: var(--ggds-radius-md);
  background: transparent;
  color: var(--ggds-color-link);
  font: inherit;
  font-weight: var(--ggds-font-weight-bold);
  text-decoration: none;
  cursor: pointer;
}

.ggds-header__search:visited {
  color: var(--ggds-color-link);
}

.ggds-header__search:hover,
.ggds-header__menu-button:hover {
  background: var(--ggds-color-brand-50);
  color: var(--ggds-color-link-hover);
}

.ggds-header__icon {
  flex: none;
  width: 24px;
  height: 24px;
}

/* "Search" shows from 90rem; below, the icon shows and the word stays for screen readers. */
.ggds-header__search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* With six or more sections the word would push the row past the container, so the icon stays alone. */
@container ggds-header (min-width: 90rem) {
  .ggds-header__inner:not(:has(.ggds-header__list > li:nth-child(6))) .ggds-header__search-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }
}

.ggds-header__menu-button[hidden] {
  display: none;
}

.ggds-header__menu-button .ggds-header__icon--close,
.ggds-header__menu-button[aria-expanded="true"] .ggds-header__icon--menu {
  display: none;
}

.ggds-header__menu-button[aria-expanded="true"] .ggds-header__icon--close {
  display: block;
}

.ggds-header__menu-button[aria-expanded="true"] {
  background: var(--ggds-color-surface-sunken);
}

/* Navigation: a list under the row on narrow screens, inline from 80rem. */
.ggds-header__nav {
  flex: 1 0 100%;
  order: 1;
  border-top: 1px solid var(--ggds-color-border-subtle);
}

.ggds-header__list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: var(--ggds-space-2) 0;
  list-style: none;
}

.ggds-header__link {
  display: flex;
  align-items: center;
  min-height: var(--ggds-size-target);
  padding-inline: var(--ggds-space-3);
  border-radius: var(--ggds-radius-md);
  color: var(--ggds-color-text);
  font-size: 0.95rem;
  font-weight: var(--ggds-font-weight-bold);
  text-decoration: none;
  white-space: nowrap;
}

.ggds-header__link:visited {
  color: var(--ggds-color-text);
}

.ggds-header__link:hover {
  background: var(--ggds-color-brand-50);
  color: var(--ggds-color-brand-800);
}

.ggds-header__link[aria-current] {
  background: var(--ggds-color-brand-50);
  color: var(--ggds-color-link);
  box-shadow: inset 3px 0 0 var(--ggds-color-link);
}

@container ggds-header (min-width: 48rem) {
  .ggds-header__inner {
    min-height: 4.5rem;
  }

  .ggds-header__name--long {
    font-size: 0.95rem;
  }

  .ggds-header__country {
    display: block;
  }
}

/* Narrow screens with JavaScript: collapsed until the menu button opens it; long menus scroll inside it. */
@container ggds-header (max-width: 79.99rem) {
  .ggds-header__nav--collapsible:not(.is-open) {
    display: none;
  }

  .ggds-header__nav--collapsible.is-open {
    max-height: calc(100dvh - 5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@container ggds-header (min-width: 80rem) {
  .ggds-header__inner {
    flex-wrap: nowrap;
  }

  .ggds-header__identity {
    flex: none;
    margin-inline-end: var(--ggds-space-3);
  }

  .ggds-header__name {
    max-width: 14rem;
  }

  .ggds-header__nav {
    flex: 1 1 auto;
    order: 0;
    min-width: 0;
    border-top: 0;
  }

  .ggds-header__list {
    flex-direction: row;
    gap: var(--ggds-space-1);
    padding: 0;
  }

  .ggds-header__link {
    padding-inline: 0.625rem;
  }

  .ggds-header__link[aria-current] {
    box-shadow: inset 0 -3px 0 var(--ggds-color-link);
  }

  .ggds-header__menu-button {
    display: none;
  }
}

@media (forced-colors: active) {
  .ggds-header__link[aria-current] {
    text-decoration: underline;
  }
}

/* footer */
/*
 * Footer in the institution's deep colour: a woven band in the flag colours, the
 * institution (logo, name, purpose, contact details), its main sections with their most-used pages, and a bottom
 * bar with the links NITA's Systems and Applications Standard expects on every public website (6.4.18:
 * disclaimer, privacy, copyright) plus accessibility. White text on the deep shade is at 7:1 or more.
 */
.ggds-footer {
  margin-top: var(--ggds-space-16);
  background: var(--ggds-color-institution-deep);
  color: var(--ggds-color-text-inverse);
}

/* The flag colours as a woven band (a kente band). Decoration only, never text. */
.ggds-footer::before {
  content: "";
  display: block;
  height: 8px;
  background: repeating-linear-gradient(90deg,
    var(--ggds-color-flag-gold) 0 14px,
    var(--ggds-color-flag-green) 14px 20px,
    var(--ggds-color-flag-gold) 20px 34px,
    var(--ggds-color-flag-red) 34px 40px,
    var(--ggds-color-flag-black) 40px 44px);
}

.ggds-footer a,
.ggds-footer a:visited {
  color: var(--ggds-color-text-inverse);
  text-decoration: none;
}

.ggds-footer a:hover {
  color: var(--ggds-color-text-inverse);
  text-decoration: underline;
}

.ggds-footer__main {
  display: grid;
  gap: var(--ggds-space-8) var(--ggds-space-12);
  padding-block: var(--ggds-space-12);
}

.ggds-footer__identity {
  display: flex;
  align-items: center;
  gap: var(--ggds-space-3);
  margin: 0;
  font-size: var(--ggds-font-size-lg);
  font-weight: var(--ggds-font-weight-bold);
  line-height: var(--ggds-line-height-tight);
}

.ggds-footer__logo {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: var(--ggds-radius-round);
  background: var(--ggds-color-surface);
  object-fit: contain;
}

.ggds-footer__purpose {
  max-width: 24rem;
  margin: var(--ggds-space-2) 0 0;
  color: color-mix(in srgb, var(--ggds-color-text-inverse) 85%, transparent);
}

.ggds-footer__contact {
  display: grid;
  gap: var(--ggds-space-1);
  margin-top: var(--ggds-space-4);
  font-style: normal;
}

.ggds-footer__more {
  margin: var(--ggds-space-4) 0 0;
  font-weight: var(--ggds-font-weight-bold);
}

/* Sections: two columns on phones, three from 48rem. */
.ggds-footer__sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ggds-space-8) var(--ggds-space-6);
  align-content: start;
}

.ggds-footer__section {
  min-width: 0;
}

.ggds-footer__heading {
  margin: 0 0 var(--ggds-space-2);
  font-size: var(--ggds-font-size-base);
  font-weight: var(--ggds-font-weight-bold);
}

.ggds-footer__list {
  display: grid;
  gap: var(--ggds-space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ggds-footer__list a,
.ggds-footer__list a:visited {
  display: inline-flex;
  align-items: center;
  min-height: var(--ggds-size-target);
  color: color-mix(in srgb, var(--ggds-color-text-inverse) 88%, transparent);
  line-height: var(--ggds-line-height-tight);
}

.ggds-footer__list a:hover {
  color: var(--ggds-color-text-inverse);
}

/* Bottom bar: copyright and the required links. */
.ggds-footer__bottom {
  border-top: 1px solid color-mix(in srgb, var(--ggds-color-text-inverse) 15%, transparent);
  font-size: var(--ggds-font-size-sm);
}

.ggds-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--ggds-space-6);
  margin-block: 0;
  padding-block: var(--ggds-space-3);
  list-style: none;
  color: color-mix(in srgb, var(--ggds-color-text-inverse) 85%, transparent);
}

.ggds-footer__bar > li {
  display: inline-flex;
  align-items: center;
  min-height: var(--ggds-size-target);
}

@media (min-width: 48rem) {
  .ggds-footer__sections {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .ggds-footer__main {
    grid-template-columns: 1.05fr 2.2fr;
  }
}

/* Room for the phone tab bar, when the page has one. */
@media (max-width: 47.99rem) {
  .ggds-tab-bar ~ .ggds-footer,
  .ggds-footer:has(~ .ggds-tab-bar) {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
  }
}

/* navigation */
/* Breadcrumbs, pagination, tab links, back link, side navigation, contents list and language switcher: navigation
   built from plain links. */

/* Breadcrumbs */
.ggds-breadcrumbs {
  margin-bottom: var(--ggds-space-4);
  font-size: var(--ggds-font-size-sm);
}

.ggds-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ggds-breadcrumbs__item {
  display: inline-flex;
  align-items: center;
}

.ggds-breadcrumbs__item + .ggds-breadcrumbs__item::before {
  content: "";
  width: 0.4em;
  height: 0.4em;
  margin-inline: var(--ggds-space-2);
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.ggds-breadcrumbs__link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

/* Pagination */
.ggds-pagination {
  margin-block: var(--ggds-space-8);
}

.ggds-pagination__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ggds-space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ggds-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--ggds-size-target);
  min-height: var(--ggds-size-target);
  padding-inline: var(--ggds-space-3);
  border-radius: var(--ggds-radius-sm);
  font-weight: var(--ggds-font-weight-bold);
}

.ggds-pagination__link:hover {
  background: var(--ggds-color-brand-50);
}

.ggds-pagination__link[aria-current="page"],
.ggds-pagination__link[aria-current="page"]:visited {
  background: var(--ggds-color-brand-700);
  color: var(--ggds-color-text-inverse);
  text-decoration: none;
}

.ggds-pagination__ellipsis {
  padding-inline: var(--ggds-space-2);
}

/* Tab links: section navigation that looks like tabs. Each "tab" is a link to its own URL, so it works without
   JavaScript, can be bookmarked, and is announced as a link, not as an ARIA tab. */
.ggds-tab-links {
  margin-bottom: var(--ggds-space-6);
  border-bottom: 1px solid var(--ggds-color-border-strong);
}

.ggds-tab-links__list {
  display: flex;
  gap: var(--ggds-space-1);
  margin: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
}

.ggds-tab-links__link,
.ggds-tab-links__link:visited {
  display: inline-flex;
  align-items: center;
  min-height: var(--ggds-size-target);
  padding-inline: var(--ggds-space-4);
  color: var(--ggds-color-link);
  white-space: nowrap;
}

.ggds-tab-links__link[aria-current="page"] {
  color: var(--ggds-color-text);
  font-weight: var(--ggds-font-weight-bold);
  text-decoration: none;
  box-shadow: inset 0 -4px 0 var(--ggds-color-brand-700);
}

/* Back link: to the previous page of a task, above the content. Only where the browser's back button might not
   do the same, such as after a form submits. */
.ggds-back-link,
.ggds-back-link:visited {
  display: inline-flex;
  align-items: center;
  gap: var(--ggds-space-2);
  min-height: var(--ggds-size-target);
  margin-bottom: var(--ggds-space-4);
  color: var(--ggds-color-text);
}

.ggds-back-link::before {
  content: "";
  width: 0.45em;
  height: 0.45em;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}

/* Side navigation: the pages of one section, beside its content (in ggds-with-aside) or above it on phones. */
.ggds-side-nav {
  margin-bottom: var(--ggds-space-6);
}

.ggds-side-nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ggds-side-nav__list--sub {
  padding-inline-start: var(--ggds-space-4);
}

.ggds-side-nav__link,
.ggds-side-nav__link:visited {
  display: flex;
  align-items: center;
  min-height: var(--ggds-size-target);
  padding: var(--ggds-space-2) var(--ggds-space-3);
  border-inline-start: 4px solid transparent;
  color: var(--ggds-color-link);
}

.ggds-side-nav__link[aria-current="page"],
.ggds-side-nav__link[aria-current="page"]:visited {
  border-inline-start-color: var(--ggds-color-brand-700);
  background: var(--ggds-color-brand-50);
  color: var(--ggds-color-text);
  font-weight: var(--ggds-font-weight-bold);
  text-decoration: none;
}

/* Contents list: "On this page", linking to the page's own headings. */
.ggds-contents {
  margin-bottom: var(--ggds-space-8);
}

.ggds-contents__title {
  margin-bottom: var(--ggds-space-2);
  font-size: var(--ggds-font-size-base);
}

.ggds-contents__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ggds-contents__list > li {
  position: relative;
  padding-inline-start: var(--ggds-space-6);
}

.ggds-contents__list > li::before {
  content: "—" / ""; /* drawn, not read aloud */
  position: absolute;
  inset-inline-start: 0;
  color: var(--ggds-color-text-muted);
}

.ggds-contents__link {
  display: inline-block;
  padding-block: var(--ggds-space-1);
}

/* Language switcher: the same page in another language, each named in its own language. */
.ggds-language-switcher {
  font-size: var(--ggds-font-size-sm);
}

.ggds-language-switcher__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 var(--ggds-space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ggds-language-switcher__link,
.ggds-language-switcher__link:visited {
  display: inline-flex;
  align-items: center;
  min-height: var(--ggds-size-target);
  padding-inline: var(--ggds-space-2);
  color: var(--ggds-color-link);
}

.ggds-language-switcher__link[aria-current="true"] {
  color: var(--ggds-color-text);
  font-weight: var(--ggds-font-weight-bold);
  text-decoration: none;
}

/* button */
/* Buttons. Use <button> for actions and <a class="ggds-button"> only for navigation that looks like an action. */
.ggds-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ggds-space-2);
  min-height: var(--ggds-size-target);
  padding: var(--ggds-space-2) var(--ggds-space-6);
  border: 2px solid transparent;
  border-radius: var(--ggds-radius-sm);
  background: var(--ggds-color-brand-700);
  color: var(--ggds-color-text-inverse);
  font-weight: var(--ggds-font-weight-bold);
  line-height: var(--ggds-line-height-tight);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--ggds-motion-duration-fast) var(--ggds-motion-easing-standard);
}

.ggds-button:visited {
  color: var(--ggds-color-text-inverse);
}

.ggds-button:hover {
  background: var(--ggds-color-brand-900);
  color: var(--ggds-color-text-inverse);
}

.ggds-button--secondary {
  border-color: var(--ggds-color-brand-700);
  background: var(--ggds-color-surface);
  color: var(--ggds-color-brand-700);
}

.ggds-button--secondary:visited {
  color: var(--ggds-color-brand-700);
}

.ggds-button--secondary:hover {
  background: var(--ggds-color-brand-50);
  color: var(--ggds-color-brand-900);
}

.ggds-button--quiet {
  padding-inline: var(--ggds-space-3);
  background: transparent;
  color: var(--ggds-color-link);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.ggds-button--quiet:visited {
  color: var(--ggds-color-link);
}

.ggds-button--quiet:hover {
  background: var(--ggds-color-brand-50);
  color: var(--ggds-color-link-hover);
}

.ggds-button--warning {
  background: var(--ggds-color-status-danger-strong);
}

.ggds-button--warning:hover {
  background: var(--ggds-color-text);
}

.ggds-button:disabled,
.ggds-button[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

.ggds-button-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ggds-space-3) var(--ggds-space-4);
  margin-bottom: var(--ggds-space-6); /* like a field, so a heading or text after the buttons is not cramped */
}

@media (forced-colors: active) {
  .ggds-button {
    border-color: ButtonText;
  }
}

/* field */
/*
 * Form fields: label, hint, error message, text input, textarea, select, file input, and radio/checkbox groups
 * in a fieldset with a legend. Native controls throughout, so forced colours, zoom and assistive technology work.
 */
.ggds-field {
  margin-bottom: var(--ggds-space-6);
}

.ggds-field--error {
  padding-inline-start: var(--ggds-space-4);
  border-inline-start: 4px solid var(--ggds-color-status-danger-strong);
}

.ggds-label,
.ggds-fieldset__legend {
  display: block;
  margin-bottom: var(--ggds-space-1);
  font-weight: var(--ggds-font-weight-bold);
}

.ggds-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.ggds-fieldset__legend {
  padding: 0;
}

/* A question that is also the page's heading: <h1><label class="ggds-label ggds-label--page">. */
.ggds-label--page {
  margin-bottom: var(--ggds-space-4);
  font-size: var(--ggds-font-size-2xl);
  line-height: var(--ggds-line-height-tight);
}

.ggds-fieldset__legend--page {
  margin-bottom: var(--ggds-space-4);
  font-size: var(--ggds-font-size-2xl);
  line-height: var(--ggds-line-height-tight);
}

.ggds-hint {
  margin: 0 0 var(--ggds-space-2);
  color: var(--ggds-color-text-muted);
}

.ggds-error-message {
  margin: 0 0 var(--ggds-space-2);
  color: var(--ggds-color-status-danger-strong);
  font-weight: var(--ggds-font-weight-bold);
}

.ggds-input,
.ggds-textarea,
.ggds-select {
  display: block;
  width: 100%;
  min-height: var(--ggds-size-target);
  padding: var(--ggds-space-2) var(--ggds-space-3);
  border: 2px solid var(--ggds-color-border-control);
  border-radius: var(--ggds-radius-sm);
  background: var(--ggds-color-surface);
  color: var(--ggds-color-text);
  /* Phones zoom into inputs below 16px. */
  font-size: max(16px, 1em);
}

.ggds-input--width-short { max-width: 10ch; }
.ggds-input--width-medium { max-width: 20ch; }
.ggds-input--width-long { max-width: 40ch; }

.ggds-textarea {
  min-height: 8rem;
  resize: vertical;
}

.ggds-select {
  width: auto;
  min-width: 12rem;
  max-width: 100%;
}

.ggds-input:focus-visible,
.ggds-textarea:focus-visible,
.ggds-select:focus-visible {
  border-color: var(--ggds-color-focus-halo);
}

.ggds-input[aria-invalid="true"],
.ggds-textarea[aria-invalid="true"],
.ggds-select[aria-invalid="true"] {
  border-color: var(--ggds-color-status-danger-strong);
}

.ggds-file-upload {
  display: block;
  max-width: 100%;
  padding: var(--ggds-space-2) 0;
}

.ggds-file-upload::file-selector-button {
  min-height: var(--ggds-size-target);
  margin-inline-end: var(--ggds-space-3);
  padding: var(--ggds-space-2) var(--ggds-space-4);
  border: 2px solid var(--ggds-color-brand-700);
  border-radius: var(--ggds-radius-sm);
  background: var(--ggds-color-surface);
  color: var(--ggds-color-brand-700);
  font: inherit;
  font-weight: var(--ggds-font-weight-bold);
  cursor: pointer;
}

/* Radios and checkboxes: native inputs, enlarged, with the whole row as the target. */
.ggds-choices {
  display: grid;
  gap: var(--ggds-space-1);
}

.ggds-choices--inline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ggds-space-1) var(--ggds-space-6);
}

.ggds-choice {
  display: flex;
  align-items: flex-start;
  gap: var(--ggds-space-3);
  min-height: var(--ggds-size-target);
  padding-block: var(--ggds-space-2);
}

.ggds-choice__input {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0.05rem 0 0;
  accent-color: var(--ggds-color-brand-700);
  cursor: pointer;
}

.ggds-choice__label {
  cursor: pointer;
}

.ggds-choice__hint {
  display: block;
  color: var(--ggds-color-text-muted);
}

/* Character count: how many characters are left in a textarea. Without JavaScript, the limit is a hint; with it
   (@ggds/js), the count updates as people type and screen readers hear it when they pause. */
.ggds-character-count .ggds-textarea {
  margin-bottom: var(--ggds-space-1);
}

.ggds-character-count__message {
  margin: 0;
}

.ggds-character-count__status--over {
  color: var(--ggds-color-status-danger-strong);
  font-weight: var(--ggds-font-weight-bold);
}

.ggds-textarea.ggds-character-count__textarea--over {
  border-color: var(--ggds-color-status-danger-strong);
}

/* Prefix and suffix: a unit beside the answer, such as GH₵ or kg. The label or hint names the unit too, so the
   prefix and suffix are hidden from screen readers and never the only place it is said. */
.ggds-input-wrapper {
  display: flex;
  align-items: stretch;
  max-width: 100%;
}

.ggds-input-wrapper .ggds-input {
  flex: 0 1 auto;
  min-width: 0;
}

.ggds-input__prefix,
.ggds-input__suffix {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-width: var(--ggds-size-target);
  padding: 0 var(--ggds-space-2);
  border: 2px solid var(--ggds-color-border-control);
  background: var(--ggds-color-surface-sunken);
  font-size: max(16px, 1em);
  font-weight: var(--ggds-font-weight-bold);
  white-space: nowrap;
}

.ggds-input__prefix {
  border-inline-end: 0;
  border-radius: var(--ggds-radius-sm) 0 0 var(--ggds-radius-sm);
}

.ggds-input__suffix {
  border-inline-start: 0;
  border-radius: 0 var(--ggds-radius-sm) var(--ggds-radius-sm) 0;
}

.ggds-input__prefix + .ggds-input { border-start-start-radius: 0; border-end-start-radius: 0; }
.ggds-input:has(+ .ggds-input__suffix) { border-start-end-radius: 0; border-end-end-radius: 0; }

/* A code people copy from an SMS or email: wide letter spacing and figures that line up, so they can check it
   digit by digit. */
.ggds-input--code {
  max-width: 12ch;
  font-family: var(--ggds-font-family-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.15em;
}

/* password-input */
/* Password input: the password field, with a Show button the script adds. Showing the password helps people check
   what they typed, especially on a phone. */
.ggds-password-input .ggds-password-input__wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--ggds-space-2);
}

.ggds-password-input__input {
  flex: 1 1 14rem;
  max-width: 40ch;
}

.ggds-password-input__toggle {
  flex: none;
  min-width: 5rem;
  margin: 0;
}

.ggds-password-input__toggle[hidden] {
  display: none;
}

/* error-summary */
/* Error summary: at the top of the page after a failed submit, each error linking to its field (WCAG 3.3.1). */
.ggds-error-summary {
  margin-bottom: var(--ggds-space-8);
  padding: var(--ggds-space-4) var(--ggds-space-6);
  border: 4px solid var(--ggds-color-status-danger-strong);
  border-radius: var(--ggds-radius-sm);
  background: var(--ggds-color-surface);
}

.ggds-error-summary:focus {
  outline: 3px solid var(--ggds-color-focus-ring);
  outline-offset: 0;
}

.ggds-error-summary__title {
  margin-bottom: var(--ggds-space-3);
  font-size: var(--ggds-font-size-xl);
}

.ggds-error-summary__list {
  margin: 0;
  padding-inline-start: var(--ggds-space-6);
}

.ggds-error-summary__list a,
.ggds-error-summary__list a:visited {
  color: var(--ggds-color-status-danger-strong);
  font-weight: var(--ggds-font-weight-bold);
}

/* date-input */
/*
 * Date input: day, month and year as three text inputs in one fieldset, for dates people know, such as a date of
 * birth. Built on the field component: put it in a .ggds-field, with a .ggds-fieldset and its legend, hint and
 * error message. Each box is sized for what goes in it, so people can see the format.
 */
.ggds-date-input {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ggds-space-4);
}

.ggds-date-input__item {
  margin: 0;
}

.ggds-date-input__label {
  display: block;
  margin-bottom: var(--ggds-space-1);
}

/* Two digits for day and month, four for the year: the width shows the format. */
.ggds-date-input__input {
  width: 4.5rem;
  text-align: center;
}

.ggds-date-input__input--year {
  width: 6.5rem;
}

/* progress */
/*
 * Progress: how far through a task someone is ("Question 3 of 4"). The words say it; the bar, a native <progress>,
 * shows it at a glance and tells screen readers the same. No style attributes: the value sets the width.
 */
.ggds-progress {
  margin-bottom: var(--ggds-space-6);
}

.ggds-progress__label {
  display: block;
  margin-bottom: var(--ggds-space-1);
  color: var(--ggds-color-text-muted);
  font-size: var(--ggds-font-size-sm);
  font-weight: var(--ggds-font-weight-bold);
}

.ggds-progress__bar {
  display: block;
  width: 100%;
  height: 0.5rem;
  border: 0;
  border-radius: var(--ggds-radius-pill);
  background: var(--ggds-color-border-subtle);
  color: var(--ggds-color-institution);
  overflow: hidden;
  appearance: none;
}

.ggds-progress__bar::-webkit-progress-bar {
  background: var(--ggds-color-border-subtle);
}

.ggds-progress__bar::-webkit-progress-value {
  border-radius: var(--ggds-radius-pill);
  background: var(--ggds-color-institution);
}

.ggds-progress__bar::-moz-progress-bar {
  border-radius: var(--ggds-radius-pill);
  background: var(--ggds-color-institution);
}

@media (forced-colors: active) {
  .ggds-progress__bar {
    border: 1px solid CanvasText;
  }
}

/* summary-list */
/*
 * Summary list: pairs of a question (or label) and its answer, with an optional link to change it. For "Check your
 * answers" pages and for showing a record, such as an application's details. A description list, so screen
 * readers announce each answer with its question. One column on phones; label, answer and action side by side
 * from 48rem.
 */
.ggds-summary-list {
  margin: 0 0 var(--ggds-space-8);
  padding: 0;
}

.ggds-summary-list__row {
  padding-block: var(--ggds-space-3);
  border-bottom: 1px solid var(--ggds-color-border-subtle);
}

.ggds-summary-list__row:first-child {
  border-top: 1px solid var(--ggds-color-border-subtle);
}

.ggds-summary-list__key,
.ggds-summary-list__value,
.ggds-summary-list__actions {
  margin: 0;
  overflow-wrap: anywhere;
}

.ggds-summary-list__key {
  margin-bottom: var(--ggds-space-1);
  font-weight: var(--ggds-font-weight-bold);
}

.ggds-summary-list__value > :first-child {
  margin-top: 0;
}

.ggds-summary-list__value > :last-child {
  margin-bottom: 0;
}

.ggds-summary-list__actions {
  margin-top: var(--ggds-space-2);
}

/* Change links are at least the height of a touch target, so they are easy to tap on a phone. */
.ggds-summary-list__actions a {
  display: inline-flex;
  align-items: center;
  min-height: var(--ggds-size-target);
}

/* No lines between rows: for a short list inside a card or panel. */
.ggds-summary-list--plain .ggds-summary-list__row,
.ggds-summary-list--plain .ggds-summary-list__row:first-child {
  border: 0;
  padding-block: var(--ggds-space-1);
}

@media (min-width: 48rem) {
  .ggds-summary-list__row {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 2fr);
    gap: var(--ggds-space-4);
    align-items: baseline;
  }

  .ggds-summary-list__key {
    margin-bottom: 0;
  }

  .ggds-summary-list__actions {
    margin-top: 0;
    text-align: end;
  }

  /* A row without an action keeps the answer in its column. */
  .ggds-summary-list__value:last-child {
    grid-column: 2 / -1;
  }
}

/* panel */
/*
 * Confirmation panel: the top of the page people see when they have finished a task. It says that it worked and
 * gives the reference number they need later. White text on the success green (6.6 to 1, checked in tokens.json).
 * The title is the page's <h1>.
 */
.ggds-panel {
  margin-bottom: var(--ggds-space-8);
  padding: var(--ggds-space-6) var(--ggds-space-4);
  border-radius: var(--ggds-radius-md);
  background: var(--ggds-color-status-success-strong);
  color: var(--ggds-color-text-inverse);
  text-align: center;
}

.ggds-panel__title {
  margin: 0 0 var(--ggds-space-3);
  color: inherit;
  font-size: var(--ggds-font-size-3xl);
  line-height: var(--ggds-line-height-tight);
}

.ggds-panel__body {
  margin: 0;
  font-size: var(--ggds-font-size-xl);
}

/* The reference: large and bold, and broken anywhere rather than overflowing a 320px screen. */
.ggds-panel__reference {
  display: block;
  margin-top: var(--ggds-space-1);
  font-weight: var(--ggds-font-weight-bold);
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
}

@media (min-width: 48rem) {
  .ggds-panel {
    padding: var(--ggds-space-8);
  }
}

@media (forced-colors: active) {
  .ggds-panel {
    border: 2px solid CanvasText;
  }
}

@media print {
  .ggds-panel {
    border: 2px solid currentColor;
    background: none;
    color: inherit;
  }
}

/* notice */
/* Notices: information, success, warning and danger. Always start with a visible or visually hidden text
   label ("Warning:") so meaning never depends on colour alone (WCAG 1.4.1). */
.ggds-notice {
  margin-bottom: var(--ggds-space-6);
  padding: var(--ggds-space-4);
  border-inline-start: 6px solid var(--ggds-color-status-info-strong);
  background: var(--ggds-color-status-info-subtle);
  color: var(--ggds-color-text);
}

.ggds-notice__title {
  margin: 0 0 var(--ggds-space-1);
  font-weight: var(--ggds-font-weight-bold);
}

.ggds-notice > :last-child {
  margin-bottom: 0;
}

.ggds-notice--success {
  border-color: var(--ggds-color-status-success-strong);
  background: var(--ggds-color-status-success-subtle);
}

.ggds-notice--warning {
  border-color: var(--ggds-color-status-warning-strong);
  background: var(--ggds-color-status-warning-subtle);
}

.ggds-notice--danger {
  border-color: var(--ggds-color-status-danger-strong);
  background: var(--ggds-color-status-danger-subtle);
}

/* Site-wide urgent notice under the header (e.g. an emergency). */
.ggds-notice--urgent {
  margin: 0;
  border: 0;
  background: var(--ggds-color-status-danger-strong);
  color: var(--ggds-color-text-inverse);
}

.ggds-notice--urgent a,
.ggds-notice--urgent a:visited {
  color: var(--ggds-color-text-inverse);
}

@media (forced-colors: active) {
  .ggds-notice {
    border: 2px solid CanvasText;
  }
}

/* tag */
/* Tag: a short status label ("Approved", "In force", "Closed"). The text carries the meaning; colour supports it. */
.ggds-tag {
  display: inline-block;
  padding: 0.125rem var(--ggds-space-2);
  border: 1px solid currentColor;
  border-radius: var(--ggds-radius-sm);
  background: var(--ggds-color-status-neutral-subtle);
  color: var(--ggds-color-status-neutral-strong);
  font-size: var(--ggds-font-size-sm);
  font-weight: var(--ggds-font-weight-bold);
  line-height: var(--ggds-line-height-body);
}

.ggds-tag--info { background: var(--ggds-color-status-info-subtle); color: var(--ggds-color-status-info-strong); }
.ggds-tag--success { background: var(--ggds-color-status-success-subtle); color: var(--ggds-color-status-success-strong); }
.ggds-tag--warning { background: var(--ggds-color-status-warning-subtle); color: var(--ggds-color-status-warning-strong); }
.ggds-tag--danger { background: var(--ggds-color-status-danger-subtle); color: var(--ggds-color-status-danger-strong); }

/* icon */
/* Icon: a GGDS line icon (@ggds/icons), sized by the icon tokens and drawn in the colour of the text around it.
   The stroke settings are repeated here so an icon drawn with <use href="sprite.svg#name"> looks the same. */
.ggds-icon {
  --ggds-icon-size: var(--ggds-size-icon-md);
  display: inline-block;
  flex-shrink: 0;
  inline-size: var(--ggds-icon-size);
  block-size: var(--ggds-icon-size);
  vertical-align: -0.3em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ggds-icon--sm { --ggds-icon-size: var(--ggds-size-icon-sm); vertical-align: -0.15em; }
.ggds-icon--lg { --ggds-icon-size: var(--ggds-size-icon-lg); }
.ggds-icon--xl { --ggds-icon-size: var(--ggds-size-icon-xl); }

/* An icon and its words side by side: <span class="ggds-with-icon">. When the words wrap, the icon stays centred
   on their first line. */
.ggds-with-icon {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--ggds-space-2);
}

.ggds-with-icon > .ggds-icon {
  margin-block-start: max(0px, calc((1lh - var(--ggds-icon-size)) / 2));
  vertical-align: 0;
}

/* card */
/* Card: a linked summary of a service, document or page. The heading link covers the
   whole card, so there is one link per card for screen readers and the full card is the touch target. */
.ggds-card-grid {
  display: grid;
  gap: var(--ggds-space-3);
  margin: 0 0 var(--ggds-space-8); /* so the next section's heading is not cramped */
  padding: 0;
  list-style: none;
}

@media (min-width: 48rem) {
  .ggds-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .ggds-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ggds-card-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ggds-card {
  position: relative;
  min-width: 0;
  padding: var(--ggds-space-4);
  border: 1px solid var(--ggds-color-border-subtle);
  border-radius: var(--ggds-radius-lg);
  background: var(--ggds-color-surface-raised);
  overflow-wrap: break-word;
}

@media (min-width: 48rem) {
  .ggds-card {
    padding: var(--ggds-space-6);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .ggds-card {
    transition:
      border-color var(--ggds-motion-duration-fast) var(--ggds-motion-easing-standard),
      box-shadow var(--ggds-motion-duration-fast) var(--ggds-motion-easing-standard),
      transform var(--ggds-motion-duration-fast) var(--ggds-motion-easing-standard);
  }

  .ggds-card:has(.ggds-card__link:hover) {
    transform: translateY(-2px);
  }
}

.ggds-card:has(.ggds-card__link:hover) {
  border-color: var(--ggds-color-brand-600);
  box-shadow: var(--ggds-shadow-2);
}

.ggds-card:has(.ggds-card__link:focus-visible) {
  outline: 3px solid var(--ggds-color-focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--ggds-color-focus-halo);
}

.ggds-card__title {
  margin: 0;
  font-size: var(--ggds-font-size-lg);
  line-height: 1.3;
}

.ggds-card__link,
.ggds-card__link:visited {
  color: var(--ggds-color-brand-800);
  text-decoration: none;
}

.ggds-card__link:hover {
  color: var(--ggds-color-brand-900);
  text-decoration: underline;
}

.ggds-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.ggds-card__link:focus-visible {
  outline: none;
  box-shadow: none;
}

.ggds-card__body {
  margin: var(--ggds-space-1) 0 0;
  color: var(--ggds-color-text-muted);
  font-size: 0.95rem;
}

/* Card with an icon: a GGDS icon (@ggds/icons) in a circle tinted with the institution colour, above the title,
   for a page of services or topics. The circle fills with the colour when the card is pointed at. */
.ggds-card--icon {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--ggds-space-1) var(--ggds-space-4);
}

/* On phones the icon sits beside the title, so more cards fit on the screen; from 48rem it sits above. */
.ggds-card__icon {
  display: grid;
  grid-row: span 2;
  place-items: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  border-radius: var(--ggds-radius-round);
  background: var(--ggds-color-brand-50);
  background: color-mix(in srgb, var(--ggds-color-institution) 10%, var(--ggds-color-surface-raised));
  color: var(--ggds-color-institution);
}

.ggds-card__icon > svg {
  inline-size: 1.375rem;
  block-size: 1.375rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 48rem) {
  .ggds-card--icon {
    display: flex;
    flex-direction: column;
    gap: var(--ggds-space-3);
  }

  .ggds-card__icon {
    inline-size: 3.5rem;
    block-size: 3.5rem;
  }

  .ggds-card__icon > svg {
    inline-size: 1.75rem;
    block-size: 1.75rem;
  }
}

.ggds-card--icon .ggds-card__body {
  margin: 0;
}

.ggds-card:has(.ggds-card__link:hover) .ggds-card__icon {
  background: var(--ggds-color-institution);
  color: var(--ggds-color-text-inverse);
}

@media (prefers-reduced-motion: no-preference) {
  .ggds-card__icon {
    transition:
      background-color var(--ggds-motion-duration-fast) var(--ggds-motion-easing-standard),
      color var(--ggds-motion-duration-fast) var(--ggds-motion-easing-standard);
  }
}

@media (forced-colors: active) {
  .ggds-card__icon {
    border: 2px solid CanvasText;
  }
}

/* Institution card (a ministry's directory of its agencies): a rule in that institution's colour, its logo,
   short name and full name, what it does and its most-used tasks. Load @ggds/themes themes.css and put
   data-ggds-theme="<slug>" on the card; never a style attribute. */
.ggds-card--institution {
  display: flex;
  flex-direction: column;
  gap: var(--ggds-space-3);
  padding: var(--ggds-space-4);
  background:
    linear-gradient(var(--ggds-color-institution) 0 0) top / 100% 4px no-repeat,
    var(--ggds-color-surface-raised);
}

@media (min-width: 48rem) {
  .ggds-card--institution {
    padding: 1.25rem;
  }
}

.ggds-card__head {
  display: flex;
  align-items: center;
  gap: var(--ggds-space-3);
}

.ggds-card__logo {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--ggds-radius-round);
  background: var(--ggds-color-surface);
  object-fit: contain;
}

.ggds-card--institution .ggds-card__title {
  font-size: 1.05rem;
}

.ggds-card__subtitle {
  margin: 0;
  color: var(--ggds-color-text-muted);
  font-size: var(--ggds-font-size-sm);
  line-height: var(--ggds-line-height-tight);
}

.ggds-card--institution .ggds-card__body {
  margin: 0;
  color: var(--ggds-color-text);
}

/* Task links inside a card sit above the card's own link. */
.ggds-card__actions {
  position: relative;
  display: grid;
  gap: 0.125rem;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.ggds-card__action,
.ggds-card__action:visited {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: var(--ggds-size-target);
  color: var(--ggds-color-link);
  font-weight: var(--ggds-font-weight-bold);
  text-decoration: none;
}

.ggds-card__action:hover {
  color: var(--ggds-color-link-hover);
  text-decoration: underline;
}

.ggds-card__action::before {
  content: "→" / "";
  flex: none;
}

@media (forced-colors: active) {
  .ggds-card--institution {
    border-top: 4px solid CanvasText;
  }
}

/* table */
/* Data table in a scrollable, keyboard-focusable region, so wide tables never make the page scroll sideways
   at 320px (WCAG 1.4.10). Give the region role="region", tabindex="0" and aria-labelledby the caption. */
.ggds-table-wrap {
  position: relative; /* keeps visually hidden text in cells inside the scroll box, so it cannot widen the page */
  max-width: 100%;
  margin-bottom: var(--ggds-space-6);
  overflow-x: auto;
}

.ggds-table {
  width: 100%;
  font-size: var(--ggds-font-size-sm);
}

.ggds-table__caption {
  margin-bottom: var(--ggds-space-2);
  font-size: var(--ggds-font-size-base);
  font-weight: var(--ggds-font-weight-bold);
  text-align: start;
}

.ggds-table th,
.ggds-table td {
  padding: var(--ggds-space-2) var(--ggds-space-3);
  border-bottom: 1px solid var(--ggds-color-border-strong);
  text-align: start;
  vertical-align: top;
}

.ggds-table thead th {
  border-bottom-width: 2px;
  border-bottom-color: var(--ggds-color-text);
}

.ggds-table .ggds-table__numeric {
  text-align: end;
  font-variant-numeric: tabular-nums;
}

/* Stacked: on a narrow screen each row becomes a card, its row title on top and each cell under its column's name,
   so people read down, never sideways, and long notes get the full width. @ggds/js names the cells (data-label)
   and keeps the table's meaning for screen readers (explicit roles, as display changes can remove it); without the
   script, or when there is room, it stays a table. */
.ggds-table-wrap:has(.ggds-table--stack) {
  container: ggds-table / inline-size;
}

@container ggds-table (max-width: 36rem) {
  .ggds-table--stack[data-ggds-stacked] :is(thead, tbody, tr, th, td) {
    display: block;
  }

  .ggds-table--stack[data-ggds-stacked] thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .ggds-table--stack[data-ggds-stacked] tbody tr {
    margin-bottom: var(--ggds-space-3);
    padding: var(--ggds-space-3) var(--ggds-space-4);
    border: 1px solid var(--ggds-color-border-subtle);
    border-inline-start: 4px solid var(--ggds-color-institution);
    border-radius: var(--ggds-radius-md);
    background: var(--ggds-color-surface);
  }

  .ggds-table--stack[data-ggds-stacked] :is(th, td) {
    padding: var(--ggds-space-1) 0;
    border: 0;
    text-align: start;
    overflow-wrap: anywhere;
  }

  .ggds-table--stack[data-ggds-stacked] tbody th {
    padding-bottom: var(--ggds-space-2);
    font-size: var(--ggds-font-size-base);
  }

  .ggds-table--stack[data-ggds-stacked] td[data-label]:not(:empty)::before {
    content: attr(data-label);
    display: block;
    color: var(--ggds-color-text-muted);
    font-size: var(--ggds-font-size-xs);
    font-weight: var(--ggds-font-weight-bold);
  }

  .ggds-table--stack[data-ggds-stacked] td:empty {
    display: none;
  }
}

/* meter */
/*
 * Meter: an amount drawn as a bar, such as each region's rainfall in a table. A native <meter> with min, max and
 * value: no style attributes. Put the number in words next to it, and hide the bar from screen readers.
 */
.ggds-meter {
  display: block;
  width: 100%;
  min-width: 6rem;
  height: 0.75rem;
  margin: var(--ggds-space-1) 0;
  border: 0;
  border-radius: var(--ggds-radius-pill);
  background: var(--ggds-color-surface-sunken);
  overflow: hidden;
}

.ggds-meter::-webkit-meter-bar {
  height: 0.75rem;
  border: 0;
  border-radius: var(--ggds-radius-pill);
  background: var(--ggds-color-surface-sunken);
}

.ggds-meter::-webkit-meter-optimum-value,
.ggds-meter::-webkit-meter-suboptimum-value,
.ggds-meter::-webkit-meter-even-less-good-value {
  border-radius: var(--ggds-radius-pill);
  background: var(--ggds-color-institution);
}

.ggds-meter::-moz-meter-bar {
  border-radius: var(--ggds-radius-pill);
  background: var(--ggds-color-institution);
}

@media (forced-colors: active) {
  .ggds-meter {
    border: 1px solid CanvasText;
  }
}

/* key-figures */
/*
 * Key figures: the few numbers that matter most on a page, each with what it measures. A list (<ul>), so screen
 * readers say how many there are. The value is large; the change, if any, says its direction in words.
 */
.ggds-key-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: var(--ggds-space-3);
  margin: 0 0 var(--ggds-space-8);
  padding: 0;
  list-style: none;
}

.ggds-key-figure {
  padding: var(--ggds-space-4);
  border: 1px solid var(--ggds-color-border-subtle);
  border-left: 4px solid var(--ggds-color-institution);
  border-radius: var(--ggds-radius-md);
  background: var(--ggds-color-surface);
}

.ggds-key-figure > * {
  margin: 0;
}

.ggds-key-figure--danger {
  border-left-color: var(--ggds-color-status-danger-strong);
}

.ggds-key-figure__value {
  font-size: var(--ggds-font-size-3xl);
  font-weight: var(--ggds-font-weight-bold);
  line-height: var(--ggds-line-height-tight);
  overflow-wrap: anywhere;
}

.ggds-key-figure__label {
  color: var(--ggds-color-text-muted);
}

.ggds-key-figure .ggds-key-figure__change {
  margin-top: var(--ggds-space-2);
  font-size: var(--ggds-font-size-sm);
  font-weight: var(--ggds-font-weight-bold);
}

/* On a page heading or another dark background. */
.ggds-key-figures--inverse .ggds-key-figure {
  border-color: currentColor;
  border-left-color: var(--ggds-color-flag-gold);
  background: transparent;
  color: var(--ggds-color-text-inverse);
}

.ggds-key-figures--inverse .ggds-key-figure__label {
  color: inherit;
}

@media (forced-colors: active) {
  .ggds-key-figure {
    border-left-color: CanvasText;
  }
}

/* timeline */
/*
 * Timeline: what has happened and what happens next, such as an application's stages. An ordered list; each item
 * starts with hidden words ("Done:", "Next:") so the state is said, not only drawn.
 */
.ggds-timeline {
  margin: 0 0 var(--ggds-space-8);
  padding: 0;
  list-style: none;
}

.ggds-timeline__item {
  position: relative;
  padding: 0 0 var(--ggds-space-6) var(--ggds-space-8);
}

.ggds-timeline__item > * {
  margin: 0;
}

/* The dot, and the line to the next one. */
.ggds-timeline__item::before {
  content: "";
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  box-sizing: border-box;
  width: 1rem;
  height: 1rem;
  border: 3px solid var(--ggds-color-border-strong);
  border-radius: 50%;
  background: var(--ggds-color-surface);
}

.ggds-timeline__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.375rem;
  bottom: 0.125rem;
  left: 0.6875rem;
  width: 2px;
  background: var(--ggds-color-border-subtle);
}

.ggds-timeline__item--done::before {
  border-color: var(--ggds-color-status-success-strong);
  background: var(--ggds-color-status-success-strong);
}

.ggds-timeline__item--current::before {
  border-color: var(--ggds-color-institution);
  box-shadow: 0 0 0 4px var(--ggds-color-brand-100);
}

.ggds-timeline__title {
  font-weight: var(--ggds-font-weight-bold);
}

.ggds-timeline__when {
  color: var(--ggds-color-text-muted);
}

@media (forced-colors: active) {
  .ggds-timeline__item--done::before {
    background: CanvasText;
  }
}

/* steps */
/*
 * Steps: a few numbered things to do, in order, each with an icon, a short title and one sentence. For what to do
 * in an emergency, or how a service works. An ordered list, so the numbers are real; the big ones are drawn.
 */
.ggds-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--ggds-space-4);
  margin: 0 0 var(--ggds-space-8);
  padding: 0;
  list-style: none;
  counter-reset: ggds-step;
}

.ggds-steps__item {
  position: relative;
  padding: var(--ggds-space-6);
  border-radius: var(--ggds-radius-lg);
  background: var(--ggds-color-brand-50);
  counter-increment: ggds-step;
}

.ggds-steps__item > p {
  margin: 0;
}

.ggds-steps__item::after {
  content: counter(ggds-step);
  position: absolute;
  top: var(--ggds-space-4);
  right: var(--ggds-space-6);
  color: var(--ggds-color-brand-700);
  font-size: var(--ggds-font-size-3xl);
  font-weight: var(--ggds-font-weight-bold);
  line-height: 1;
}

.ggds-steps__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--ggds-space-3);
  border-radius: 50%;
  background: var(--ggds-color-brand-700);
  color: var(--ggds-color-text-inverse);
}

.ggds-steps__title {
  margin: 0 0 var(--ggds-space-1);
  font-size: var(--ggds-font-size-lg);
}

/* For an emergency: the danger colours. */
.ggds-steps--urgent .ggds-steps__item {
  background: var(--ggds-color-status-danger-subtle);
}

.ggds-steps--urgent .ggds-steps__item::after {
  color: var(--ggds-color-status-danger-strong);
}

.ggds-steps--urgent .ggds-steps__icon {
  background: var(--ggds-color-status-danger-strong);
}

@media (forced-colors: active) {
  .ggds-steps__item {
    border: 1px solid CanvasText;
  }
}

/* task-list */
/* Task list: the sections of a long application, each with its status, so people can do them in any order and come
   back later. The whole row is the target; the status is text, and colour only supports it. */
.ggds-task-list__summary {
  margin: 0 0 var(--ggds-space-4);
  font-weight: var(--ggds-font-weight-bold);
}

.ggds-task-list {
  margin: 0 0 var(--ggds-space-8);
  padding: 0;
  border-top: 1px solid var(--ggds-color-border-subtle);
  list-style: none;
}

.ggds-task-list__item {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--ggds-space-2) var(--ggds-space-4);
  min-height: var(--ggds-size-target);
  padding: var(--ggds-space-3) var(--ggds-space-2);
  border-bottom: 1px solid var(--ggds-color-border-subtle);
}

.ggds-task-list__item--link:hover {
  background: var(--ggds-color-surface-sunken);
}

.ggds-task-list__name {
  flex: 1 1 14rem;
  min-width: 0;
}

.ggds-task-list__link {
  font-weight: var(--ggds-font-weight-bold);
}

/* The link covers the row, so the status is part of the target too. */
.ggds-task-list__link::after {
  position: absolute;
  inset: 0;
  content: "";
}

.ggds-task-list__hint {
  margin: var(--ggds-space-1) 0 0;
  color: var(--ggds-color-text-muted);
  font-size: var(--ggds-font-size-sm);
}

.ggds-task-list__status {
  flex: none;
}

.ggds-task-list__status--cannot-start {
  color: var(--ggds-color-text-muted);
}

/* dialog */
/* Dialog: the browser's own <dialog>, opened as a modal. The browser keeps focus inside it, closes it with Escape and
   returns focus to what opened it. For confirmations and the timeout warning only: a page is better for anything
   people need to read or fill in. */
.ggds-dialog {
  width: min(32rem, calc(100% - 2 * var(--ggds-space-4)));
  max-height: calc(100% - 2 * var(--ggds-space-4));
  padding: var(--ggds-space-6);
  border: 0;
  border-top: 6px solid var(--ggds-color-brand-700);
  border-radius: var(--ggds-radius-md);
  background: var(--ggds-color-surface);
  color: var(--ggds-color-text);
  box-shadow: var(--ggds-shadow-sheet);
}

.ggds-dialog::backdrop {
  background: color-mix(in srgb, var(--ggds-color-text) 60%, transparent);
}

.ggds-dialog--warning {
  border-top-color: var(--ggds-color-status-warning-strong);
}

.ggds-dialog__title {
  margin: 0 0 var(--ggds-space-3);
  font-size: var(--ggds-font-size-xl);
  line-height: var(--ggds-line-height-tight);
}

.ggds-dialog__body > :last-child {
  margin-bottom: 0;
}

.ggds-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ggds-space-3) var(--ggds-space-4);
  margin-top: var(--ggds-space-6);
}

.ggds-dialog__actions .ggds-button {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .ggds-dialog[open] {
    animation: ggds-dialog-in var(--ggds-motion-duration-base) ease-out;
  }

  @keyframes ggds-dialog-in {
    from { opacity: 0; transform: translateY(var(--ggds-space-2)); }
  }
}

/* Timeout warning: a dialog that counts down before people are signed out. */
.ggds-timeout-warning {
  border-top-color: var(--ggds-color-status-warning-strong);
}

.ggds-timeout-warning__time {
  font-weight: var(--ggds-font-weight-bold);
  font-variant-numeric: tabular-nums;
}

/* disclosure */
/* Disclosure (single expandable section) and accordion (a stack of them), built on <details>/<summary>:
   keyboard and screen-reader support come from the browser, and it works without JavaScript. */
.ggds-disclosure {
  border-bottom: 1px solid var(--ggds-color-border-strong);
}

.ggds-accordion > .ggds-disclosure:first-child {
  border-top: 1px solid var(--ggds-color-border-strong);
}

.ggds-disclosure__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ggds-space-4);
  min-height: var(--ggds-size-target);
  padding-block: var(--ggds-space-3);
  color: var(--ggds-color-link);
  font-weight: var(--ggds-font-weight-bold);
  cursor: pointer;
  list-style: none;
}

.ggds-disclosure__summary::-webkit-details-marker {
  display: none;
}

.ggds-disclosure__summary::after {
  content: "";
  flex: none;
  width: 0.6em;
  height: 0.6em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-25%) rotate(45deg);
  transition: transform var(--ggds-motion-duration-fast) var(--ggds-motion-easing-standard);
}

.ggds-disclosure[open] > .ggds-disclosure__summary::after {
  transform: translateY(25%) rotate(-135deg);
}

.ggds-disclosure__summary:hover {
  color: var(--ggds-color-link-hover);
  text-decoration: underline;
}

.ggds-disclosure__content {
  padding-bottom: var(--ggds-space-4);
}

.ggds-disclosure__content > :last-child {
  margin-bottom: 0;
}

/* prose */
/* Prose: styles for rich text from a CMS. GGDS does not sanitise HTML: the application must, before rendering.
   Elements styled here: p, h2–h4, ul, ol, li, a, strong, em, blockquote, table. Wrap CMS tables in
   .ggds-table-wrap when sanitising; the fallback below keeps unwrapped tables from breaking narrow screens. */
.ggds-prose {
  max-width: var(--ggds-measure);
}

.ggds-prose > :first-child {
  margin-top: 0;
}

.ggds-prose h2 {
  margin-top: var(--ggds-space-8);
  font-size: var(--ggds-font-size-xl);
}

.ggds-prose h3 {
  margin-top: var(--ggds-space-6);
}

.ggds-prose ul,
.ggds-prose ol {
  margin: 0 0 var(--ggds-space-4);
  padding-inline-start: var(--ggds-space-6);
}

.ggds-prose li + li {
  margin-top: var(--ggds-space-1);
}

.ggds-prose blockquote {
  margin: 0 0 var(--ggds-space-4);
  padding-inline-start: var(--ggds-space-4);
  border-inline-start: 4px solid var(--ggds-color-border-strong);
  color: var(--ggds-color-text-muted);
}

.ggds-prose table {
  width: 100%;
  margin-bottom: var(--ggds-space-6);
  font-size: var(--ggds-font-size-sm);
}

.ggds-prose th,
.ggds-prose td {
  padding: var(--ggds-space-2) var(--ggds-space-3);
  border-bottom: 1px solid var(--ggds-color-border-strong);
  text-align: start;
  vertical-align: top;
  overflow-wrap: anywhere;
}

/* feedback */
/* Feedback: "Did this page help you?" at the end of a page, with Yes and No, and a link to report a problem. The
   buttons send a form, so it works without JavaScript; the server counts the answers for each page. */
.ggds-feedback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--ggds-space-3) var(--ggds-space-6);
  margin-block-start: var(--ggds-space-12);
  padding: var(--ggds-space-4) var(--ggds-space-6);
  border-block-start: 4px solid var(--ggds-color-institution);
  background: var(--ggds-color-surface);
}

.ggds-feedback__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ggds-space-3) var(--ggds-space-4);
}

.ggds-feedback__title,
.ggds-feedback__thanks {
  margin: 0;
  font-size: var(--ggds-font-size-base);
  font-weight: var(--ggds-font-weight-bold);
}

.ggds-feedback__thanks:focus {
  outline: none;
}

.ggds-feedback__answers {
  display: flex;
  gap: var(--ggds-space-3);
}

/* Two equal buttons, at least as wide as a fingertip needs, and on the same line as the question when it fits. */
.ggds-feedback__answer {
  min-width: 5rem;
  margin: 0;
}

.ggds-feedback__report {
  margin: 0;
}

/* hero */
/*
 * Hero: the top of an institution's homepage, in its deep colour. The purpose line (who we are) is in the flag
 * gold, which institutionPalette() guarantees at 4.5:1 or more on the deep shade; white text there is at 7:1 or
 * more. It leads with the visitor's task: a heading, an optional search and common tasks, because most visitors come
 * to do something, not to read about the institution.
 */
.ggds-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--ggds-color-text-inverse) 8%, transparent) 0, transparent 40%),
    var(--ggds-color-institution-deep);
  color: var(--ggds-color-text-inverse);
}

.ggds-hero__inner {
  position: relative;
  max-width: var(--ggds-size-content-max);
  margin-inline: auto;
  padding: 1.75rem var(--ggds-size-gutter);
}

/* A ministry hub leads with one search across all its agencies: a narrower, centred column. */
.ggds-hero--hub .ggds-hero__inner {
  max-width: calc(56rem + 2 * var(--ggds-size-gutter));
}

.ggds-hero--hub .ggds-hero__body {
  max-width: none;
}

@media (min-width: 48rem) {
  .ggds-hero__inner {
    padding-block: var(--ggds-space-12);
  }
}

@media (min-width: 64rem) {
  .ggds-hero__inner {
    padding-block: 3.5rem;
  }
}

.ggds-hero__body {
  max-width: 42rem;
}

.ggds-hero__purpose {
  margin: 0 0 var(--ggds-space-2);
  color: var(--ggds-color-flag-gold);
  font-size: var(--ggds-font-size-sm);
  font-weight: var(--ggds-font-weight-bold);
}

@media (min-width: 48rem) {
  .ggds-hero__purpose {
    margin-bottom: var(--ggds-space-3);
    font-size: var(--ggds-font-size-base);
  }
}

.ggds-hero__title {
  margin: 0;
  color: var(--ggds-color-text-inverse);
}

.ggds-hero__lede {
  margin: var(--ggds-space-3) 0 0;
  color: color-mix(in srgb, var(--ggds-color-text-inverse) 88%, transparent);
  font-size: var(--ggds-font-size-lg);
}

@media (min-width: 48rem) {
  .ggds-hero__lede {
    font-size: var(--ggds-font-size-xl);
  }
}

.ggds-hero a:not(.ggds-hero__task),
.ggds-hero a:not(.ggds-hero__task):visited {
  color: var(--ggds-color-text-inverse);
}

/* Search: one input and a gold button, as a single control. */
.ggds-hero__search {
  display: flex;
  margin-top: var(--ggds-space-6);
  overflow: hidden;
  border-radius: var(--ggds-radius-lg);
  background: var(--ggds-color-surface);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ggds-color-text-inverse) 20%, transparent), var(--ggds-shadow-2);
}

.ggds-hero__search:focus-within {
  outline: 3px solid var(--ggds-color-focus-ring);
  outline-offset: 2px;
}

.ggds-hero__input {
  flex: 1;
  min-width: 0;
  min-height: 56px;
  padding-inline: 1.25rem;
  border: 0;
  background: transparent;
  color: var(--ggds-color-text);
  font: inherit;
  font-size: 1.0625rem;
}

.ggds-hero__input::placeholder {
  color: var(--ggds-color-text-muted);
  opacity: 1;
}

.ggds-hero__input:focus-visible {
  outline: none;
  box-shadow: none;
}

.ggds-hero__button {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: var(--ggds-space-2);
  min-width: 56px;
  padding-inline: var(--ggds-space-4);
  border: 0;
  background: var(--ggds-color-flag-gold);
  color: var(--ggds-color-brand-900);
  font: inherit;
  font-weight: var(--ggds-font-weight-bold);
  cursor: pointer;
}

.ggds-hero__button:hover {
  background: color-mix(in srgb, var(--ggds-color-flag-gold) 70%, var(--ggds-color-surface));
}

.ggds-hero__button:focus-visible {
  outline: none;
  box-shadow: none;
}

/* The button's word "Search" shows from 48rem; on phones the icon shows and the word stays for screen readers. */
.ggds-hero__button-icon {
  flex: none;
  width: 22px;
  height: 22px;
}

@media (max-width: 47.99rem) {
  .ggds-hero__button-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (min-width: 48rem) {
  .ggds-hero__button {
    padding-inline: var(--ggds-space-6);
  }
}

/* Common tasks: links below the search. One swipeable row on phones, so they do not push the page down. */
.ggds-hero__tasks-label {
  margin: var(--ggds-space-4) 0 var(--ggds-space-2);
  color: color-mix(in srgb, var(--ggds-color-text-inverse) 85%, transparent);
  font-size: var(--ggds-font-size-sm);
}

.ggds-hero__tasks {
  display: flex;
  gap: var(--ggds-space-2);
  margin: 0 calc(-1 * var(--ggds-size-gutter));
  padding: 0 var(--ggds-size-gutter) var(--ggds-space-1);
  overflow-x: auto;
  overscroll-behavior-x: contain; /* a swipe moves the row, never back a page */
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--ggds-size-gutter);
  list-style: none;
  font-size: var(--ggds-font-size-sm);
}

.ggds-hero__tasks > li {
  flex: none;
  scroll-snap-align: start;
}

@media (min-width: 48rem) {
  .ggds-hero__tasks {
    flex-wrap: wrap;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }
}

.ggds-hero__task,
.ggds-hero__task:visited {
  display: inline-flex;
  align-items: center;
  gap: var(--ggds-space-2);
  min-height: var(--ggds-size-target);
  padding-inline: 0.875rem;
  border-radius: var(--ggds-radius-pill);
  background: color-mix(in srgb, var(--ggds-color-text-inverse) 10%, transparent);
  color: var(--ggds-color-text-inverse);
  text-decoration: none;
  white-space: nowrap;
}

/* Which agency answers it, on a ministry hub. 90% white: 60% would be below 4.5:1 on the chip. */
.ggds-hero__task-tag {
  color: color-mix(in srgb, var(--ggds-color-text-inverse) 90%, transparent);
  font-size: var(--ggds-font-size-xs);
  font-weight: var(--ggds-font-weight-bold);
}

.ggds-hero__task:hover {
  background: color-mix(in srgb, var(--ggds-color-text-inverse) 20%, transparent);
  color: var(--ggds-color-text-inverse);
}

@media (forced-colors: active) {
  .ggds-hero__search,
  .ggds-hero__button,
  .ggds-hero__task {
    border: 1px solid CanvasText;
  }
}

/*
 * Drawing beside the hero text (ggds-hero--art). Decorative: put aria-hidden="true" on .ggds-hero__art; the text
 * says the same. Hidden on phones so it never pushes the search down; below the text from 48rem; beside it from
 * 64rem.
 */
.ggds-hero__art {
  display: none;
}

@media (min-width: 48rem) {
  .ggds-hero__art {
    display: block;
    position: relative;
    margin-top: var(--ggds-space-8);
  }
}

@media (min-width: 64rem) {
  .ggds-hero--art .ggds-hero__inner {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: var(--ggds-space-12);
    align-items: center;
  }

  .ggds-hero--art .ggds-hero__art {
    margin-top: 0;
  }
}

/*
 * The shared animated drawing (ggds-hero-art): floating planes, a network of points and a pulse, in white and the
 * flag gold on the institution's dark shade. It moves only for
 * people who have not asked for less motion.
 */
.ggds-hero-art {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin-inline: auto;
  overflow: visible;
}

.ggds-hero-art__shadow { fill: var(--ggds-color-text); opacity: .28; }
.ggds-hero-art__surface { fill: var(--ggds-color-text-inverse); fill-opacity: .16; stroke: var(--ggds-color-text-inverse); stroke-opacity: .32; }
.ggds-hero-art__side { fill: var(--ggds-color-text); opacity: .2; }
.ggds-hero-art__edge { fill: none; stroke: var(--ggds-color-flag-gold); stroke-width: 4; }
.ggds-hero-art__orbit { fill: none; stroke: var(--ggds-color-text-inverse); stroke-opacity: .18; stroke-width: 2; stroke-dasharray: 5 12; transform-origin: 280px 250px; }
.ggds-hero-art__links { fill: none; stroke: var(--ggds-color-flag-gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.ggds-hero-art__node { fill: var(--ggds-color-flag-gold); stroke: var(--ggds-color-text-inverse); stroke-width: 3; }
.ggds-hero-art__pulse { fill: none; stroke: var(--ggds-color-flag-gold); stroke-width: 2; opacity: .45; transform-origin: 326px 215px; }

/* Every movement ends within 5 seconds of the page loading, then the drawing stays still, so it needs no pause
   button (WCAG 2.2.2 Pause, Stop, Hide). Fractions of an iteration stop each part part-way, where it is. */
@media (prefers-reduced-motion: no-preference) {
  .ggds-hero-art__orbit { animation: ggds-hero-art-turn 16s linear 0.3 forwards; }
  .ggds-hero-art__orbit--reverse { animation-direction: reverse; animation-duration: 20s; animation-iteration-count: 0.24; }
  .ggds-hero-art__plane { animation: ggds-hero-art-float 7s ease-in-out 0.65 forwards; }
  .ggds-hero-art__plane--front { animation-delay: .35s; animation-direction: reverse; }
  .ggds-hero-art__pulse { opacity: 0; animation: ggds-hero-art-pulse 2.4s ease-out 1; }
  .ggds-hero-art__pulse:nth-child(2) { animation-delay: 1.2s; }
  .ggds-hero-art__pulse:nth-child(3) { animation-delay: 2.4s; }
}

@keyframes ggds-hero-art-turn { to { transform: rotate(360deg); } }
@keyframes ggds-hero-art-float { 50% { transform: translateY(-8px); } }
@keyframes ggds-hero-art-pulse { 0% { opacity: .65; transform: scale(.55); } 100% { opacity: 0; transform: scale(1.15); } }

@media (forced-colors: active) {
  .ggds-hero__art { display: none; }
}

/* page-heading */
/*
 * Page heading: the top of an inner page in the institution's colour, with the page's <h1>, a line above it and a
 * short summary. For an account's welcome or a service's start; --danger for a warning in force. Full width: put it
 * first in <main>, with a .ggds-container inside.
 */
.ggds-page-heading {
  padding-block: var(--ggds-space-8);
  background: var(--ggds-color-institution-deep);
  color: var(--ggds-color-text-inverse);
}

.ggds-page-heading--danger {
  background: var(--ggds-color-status-danger-strong);
}

.ggds-page-heading a {
  color: inherit;
}

.ggds-page-heading__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ggds-space-2);
  margin: 0 0 var(--ggds-space-2);
  font-weight: var(--ggds-font-weight-bold);
}

.ggds-page-heading__title {
  margin: 0 0 var(--ggds-space-3);
  color: inherit;
}

.ggds-page-heading__lede {
  max-width: 40rem;
  margin: 0;
  font-size: var(--ggds-font-size-lg);
}

.ggds-page-heading > .ggds-container > :last-child {
  margin-bottom: 0;
}

@media (forced-colors: active) {
  .ggds-page-heading {
    border-block: 2px solid CanvasText;
  }
}

@media print {
  .ggds-page-heading {
    background: none;
    color: inherit;
  }
}

/* tab-bar */
/*
 * Tab bar: phone-only quick links fixed to the bottom of the screen, within reach of a thumb (as Material
 * Design's navigation bar and Apple's tab bar advise). Home and Search, with up to three of the site's main sections between them. Hidden
 * from 48rem, where the header shows the navigation. It repeats links that are also in the header, so it is a
 * separate <nav> with its own label.
 */
.ggds-tab-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: var(--ggds-layer-sticky);
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--ggds-color-border-subtle);
  background: color-mix(in srgb, var(--ggds-color-surface) 96%, transparent);
}

.ggds-tab-bar__list {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ggds-tab-bar__link,
.ggds-tab-bar__link:visited {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  min-height: 56px;
  color: var(--ggds-color-text-muted);
  font-size: 0.75rem;
  font-weight: var(--ggds-font-weight-bold);
  text-decoration: none;
}

.ggds-tab-bar__link:hover {
  color: var(--ggds-color-link-hover);
}

.ggds-tab-bar__link[aria-current] {
  color: var(--ggds-color-link);
}

.ggds-tab-bar__icon {
  width: 22px;
  height: 22px;
}

@media (min-width: 48rem) {
  .ggds-tab-bar {
    display: none;
  }
}

@media (forced-colors: active) {
  .ggds-tab-bar__link[aria-current] {
    text-decoration: underline;
  }
}

@media print {
  .ggds-tab-bar {
    display: none;
  }
}

/* motion */
/* Scroll effects: parts that rise into view, layers that move at different speeds, lines that draw themselves, and
   scenes that stay on screen while their story plays as people scroll.

   The browser drives them from the scroll position (animation-timeline), so there is no script, the page always
   scrolls at the person's own speed, and only transform, opacity and SVG strokes move: nothing shifts the layout.
   Everything here is inside @supports and prefers-reduced-motion: in a browser without scroll-driven animations,
   and for anyone who asks for less motion, the page is simply still and finished. Content is never hidden waiting
   for an animation.

   For homepages, campaign and information pages. Never inside a service's steps: questions, check your answers,
   errors, payment and confirmation stay still. */

/* Every moving part turns and grows around its own centre, SVG shapes included (which would otherwise move from the
   drawing's top-left corner). */
.ggds-reveal,
.ggds-stagger > *,
.ggds-parallax,
.ggds-scene__part {
  transform-box: fill-box;
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* Reveal: rises (or fades, or grows) as it comes into view. */
    .ggds-reveal {
      animation: ggds-motion-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }

    .ggds-reveal--fade { animation-name: ggds-motion-fade; }
    .ggds-reveal--scale { animation-name: ggds-motion-grow; }

    /* Stagger: each child of a list or grid arrives a little after the one before it. It rises without fading, so the
       words on a card are at full contrast even when it is only half way on screen. */
    .ggds-stagger > * {
      animation: ggds-motion-lift linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }

    .ggds-stagger > :nth-child(2) { animation-range: entry 8% entry 98%; }
    .ggds-stagger > :nth-child(3) { animation-range: entry 16% cover 30%; }
    .ggds-stagger > :nth-child(4) { animation-range: entry 24% cover 35%; }
    .ggds-stagger > :nth-child(5) { animation-range: entry 32% cover 40%; }
    .ggds-stagger > :nth-child(n + 6) { animation-range: entry 40% cover 45%; }

    /* Parallax: a layer that moves a little against the scroll, so the page has depth. Kept small. */
    .ggds-parallax {
      --ggds-parallax: var(--ggds-space-8);
      animation: ggds-motion-parallax linear both;
      animation-timeline: view();
      animation-range: cover;
    }

    .ggds-parallax--near { --ggds-parallax: var(--ggds-space-12); }
    .ggds-parallax--far { --ggds-parallax: var(--ggds-space-4); }

    /* Draw: the lines of an SVG draw themselves as it comes into view. Give each path pathLength="1". */
    .ggds-draw :is(path, line, polyline, circle, rect) {
      stroke-dasharray: 1;
      animation: ggds-motion-draw linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 45%;
    }

    /* Scene: a story told as people scroll. Its parts (.ggds-scene__part) use the scene's own timeline, so they can
       play in order: --1 first, --6 last. */
    .ggds-scene {
      view-timeline: --ggds-scene block;
    }

    .ggds-scene__stage {
      animation: ggds-motion-fade linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
  }
}

/* A pinned scene stays on screen while people scroll through it, and its parts play in order. Only where the screen
   is wide enough to set the words beside the drawing and tall enough to hold them: at high zoom, on a short screen
   or on a phone, it is never pinned, so nothing is ever cut off (WCAG 1.4.10, reflow). */
@media (prefers-reduced-motion: no-preference) and (min-width: 64rem) and (min-height: 36rem) {
  @supports (animation-timeline: view()) {
    .ggds-scene--pinned {
      min-height: 240svh;
    }

    .ggds-scene--pinned .ggds-scene__stage {
      position: sticky;
      top: calc(var(--ggds-space-16) + var(--ggds-space-4)); /* below the sticky header */
      min-height: calc(100svh - 2 * var(--ggds-space-16));
      animation: none;
    }

    .ggds-scene--pinned .ggds-scene__part {
      animation: ggds-motion-rise linear both;
      animation-timeline: --ggds-scene;
      animation-range: contain 0% contain 18%;
    }

    .ggds-scene--pinned .ggds-scene__part--2 { animation-range: contain 14% contain 32%; }
    .ggds-scene--pinned .ggds-scene__part--3 { animation-range: contain 28% contain 46%; }
    .ggds-scene--pinned .ggds-scene__part--4 { animation-range: contain 42% contain 60%; }
    .ggds-scene--pinned .ggds-scene__part--5 { animation-range: contain 56% contain 74%; }
    .ggds-scene--pinned .ggds-scene__part--6 { animation-range: contain 70% contain 88%; }
  }
}

/* On a phone the words come first and the drawing under them, which together are taller than the screen: pinned,
   people would scroll through words that do not move while the drawing waits below. Instead the scene scrolls like
   any section, its drawing builds itself as it rises from the bottom of the screen to the middle, and it drifts a
   little slower than the words, so the page has depth. Reading is never paused. */
@media (prefers-reduced-motion: no-preference) and (max-width: 63.99rem) {
  @supports (animation-timeline: view()) {
    .ggds-scene--pinned .ggds-scene__stage {
      animation: none;
    }

    .ggds-scene--pinned .ggds-scene__stage > :has(.ggds-scene__part) {
      --ggds-parallax: var(--ggds-space-6);
      view-timeline: --ggds-scene-art block;
      animation: ggds-motion-parallax linear both;
      animation-timeline: view();
      animation-range: cover;
    }

    .ggds-scene--pinned .ggds-scene__part {
      animation: ggds-motion-rise linear both;
      animation-timeline: --ggds-scene-art;
      animation-range: cover 4% cover 20%;
    }

    .ggds-scene--pinned .ggds-scene__part--2 { animation-range: cover 11% cover 27%; }
    .ggds-scene--pinned .ggds-scene__part--3 { animation-range: cover 18% cover 34%; }
    .ggds-scene--pinned .ggds-scene__part--4 { animation-range: cover 25% cover 41%; }
    .ggds-scene--pinned .ggds-scene__part--5 { animation-range: cover 32% cover 48%; }
    .ggds-scene--pinned .ggds-scene__part--6 { animation-range: cover 39% cover 55%; }
  }
}

/* The kind of movement of a part, pinned or not. Three classes, so it wins over the default rise, with no need to
   force it. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .ggds-scene--pinned .ggds-scene__part.ggds-scene__part--fade { animation-name: ggds-motion-fade; }
    .ggds-scene--pinned .ggds-scene__part.ggds-scene__part--grow { animation-name: ggds-motion-grow; }
    .ggds-scene--pinned .ggds-scene__part.ggds-scene__part--from-start { animation-name: ggds-motion-from-start; }
    .ggds-scene--pinned .ggds-scene__part.ggds-scene__part--from-end { animation-name: ggds-motion-from-end; }

    .ggds-scene--pinned .ggds-scene__part.ggds-scene__part--draw {
      stroke-dasharray: 1;
      animation-name: ggds-motion-draw;
    }
  }
}

@keyframes ggds-motion-rise {
  from { opacity: 0; transform: translateY(var(--ggds-space-8)); }
}

@keyframes ggds-motion-lift {
  from { transform: translateY(var(--ggds-space-8)); }
}

@keyframes ggds-motion-fade {
  from { opacity: 0; }
}

@keyframes ggds-motion-grow {
  from { opacity: 0; transform: scale(0.85); }
}

@keyframes ggds-motion-from-start {
  from { opacity: 0; transform: translateX(-40%); }
}

@keyframes ggds-motion-from-end {
  from { opacity: 0; transform: translateX(40%); }
}

@keyframes ggds-motion-parallax {
  from { transform: translateY(var(--ggds-parallax)); }
  to { transform: translateY(calc(var(--ggds-parallax) * -1)); }
}

@keyframes ggds-motion-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
}

@layer ggds.utilities {
/* layout */
/* Layout: arranging content on the page, with the GGDS spacing, type and colour tokens. These classes sit in their
   own cascade layer, ggds.utilities, after the components, so a layout class on a component wins over the
   component's own spacing without !important, and a site's unlayered CSS still wins over both. */

/* Stack, cluster and grid share one gap, set with the ggds-gap-* classes. Each sets its own default, so a stack
   inside a grid does not take the grid's gap. */

/* Stack: things one above the other, with the same space between each. Their own top and bottom margins go. */
.ggds-stack {
  --ggds-gap: var(--ggds-space-4);
}

.ggds-stack > * {
  margin-block: 0;
}

.ggds-stack > * + * {
  margin-block-start: var(--ggds-gap);
}

/* Cluster: things side by side that wrap onto the next line when there is no room: buttons, tags, links. */
.ggds-cluster {
  --ggds-gap: var(--ggds-space-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ggds-gap);
}

.ggds-cluster--spread {
  justify-content: space-between;
}

.ggds-cluster--top {
  align-items: flex-start;
}

.ggds-cluster--baseline {
  align-items: baseline;
}

/* Grid: as many columns of at least 16rem as fit, one column on phones. --ggds-grid-min changes the width. */
.ggds-grid {
  --ggds-gap: var(--ggds-space-4);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(var(--ggds-grid-min, 16rem), 100%), 1fr));
  gap: var(--ggds-gap);
}

/* A set number of columns: one on phones, two from tablets, the full number from desktops. */
.ggds-grid--2,
.ggds-grid--3,
.ggds-grid--4 {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 48rem) {
  .ggds-grid--2,
  .ggds-grid--3,
  .ggds-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .ggds-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ggds-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Scroll row: on phones, a set of cards people swipe through sideways instead of scrolling past one under another,
   so a long set does not make the page long. Each card snaps into place and the next one peeks in from the edge,
   so people can see there is more. From 48rem it is laid out by its own grid again. Only for sets people browse
   (examples, stories, related links), never for steps, answers or anything people must read in order. */
@media (max-width: 47.99rem) {
  .ggds-scroll-row {
    --ggds-scroll-row-bleed: var(--ggds-size-gutter);
    display: grid;
    grid-auto-columns: var(--ggds-scroll-row-size, min(82%, 22rem));
    grid-auto-flow: column;
    grid-template-columns: none;
    margin-inline: calc(-1 * var(--ggds-scroll-row-bleed));
    padding: 0 var(--ggds-scroll-row-bleed) var(--ggds-space-3);
    overflow-x: auto;
    overscroll-behavior-x: contain; /* a swipe moves the row, never back a page */
    scroll-padding-inline: var(--ggds-scroll-row-bleed);
    scroll-snap-type: x mandatory;
  }

  .ggds-scroll-row > * {
    scroll-snap-align: start;
  }
}

/* Main content with a side column from desktops: related links, a contents list, filters. One column before. */
.ggds-with-aside {
  --ggds-gap: var(--ggds-space-8);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ggds-gap);
}

@media (min-width: 64rem) {
  .ggds-with-aside {
    grid-template-columns: minmax(0, 1fr) var(--ggds-aside-width, 20rem);
  }

  /* Stays in view while the main content scrolls, clear of the sticky header. */
  .ggds-sticky {
    position: sticky;
    top: 6rem; /* the header's height, as scroll-padding-top in base.css */
    align-self: start;
  }
}

/* Centres its content both ways: an icon in a circle, a number in a badge. */
.ggds-center {
  display: grid;
  place-items: center;
}

/* Children of a cluster or a flex row. */
.ggds-grow {
  flex: 1 1 0;
  min-width: 0;
}

.ggds-fixed {
  flex-shrink: 0;
}

/* Lets a grid or flex child shrink below its content's width, so long words and tables do not widen the page. */
.ggds-shrink {
  min-width: 0;
}

/* Pushes the last part of a card or column to its bottom edge. */
.ggds-push-down {
  margin-block-start: auto;
}

/* Gaps: for stack, cluster, grid and with-aside. */
.ggds-gap-1 { --ggds-gap: var(--ggds-space-1); }
.ggds-gap-2 { --ggds-gap: var(--ggds-space-2); }
.ggds-gap-3 { --ggds-gap: var(--ggds-space-3); }
.ggds-gap-4 { --ggds-gap: var(--ggds-space-4); }
.ggds-gap-6 { --ggds-gap: var(--ggds-space-6); }
.ggds-gap-8 { --ggds-gap: var(--ggds-space-8); }
.ggds-gap-12 { --ggds-gap: var(--ggds-space-12); }

/* Space outside: for the few places a stack does not fit. After the stack, so they win over it. */
.ggds-flush { margin: 0; }
.ggds-mt-0 { margin-block-start: 0; }
.ggds-mt-2 { margin-block-start: var(--ggds-space-2); }
.ggds-mt-4 { margin-block-start: var(--ggds-space-4); }
.ggds-mt-6 { margin-block-start: var(--ggds-space-6); }
.ggds-mt-8 { margin-block-start: var(--ggds-space-8); }
.ggds-mt-12 { margin-block-start: var(--ggds-space-12); }
.ggds-mb-0 { margin-block-end: 0; }

/* Space inside. */
.ggds-pad-0 { padding: 0; }
.ggds-pad-3 { padding: var(--ggds-space-3); }
.ggds-pad-4 { padding: var(--ggds-space-4); }
.ggds-pad-6 { padding: var(--ggds-space-6); }

/* More space on larger screens: a panel or section that needs room on a computer but not on a phone. */
.ggds-pad-fluid {
  padding: var(--ggds-space-4);
}

@media (min-width: 48rem) {
  .ggds-pad-fluid {
    padding: var(--ggds-space-8);
  }
}

/* Text: the type scale, weights and colours. Headings already have their sizes; use these for other text. */
.ggds-text-xs { font-size: var(--ggds-font-size-xs); }
.ggds-text-sm { font-size: var(--ggds-font-size-sm); }
.ggds-text-base { font-size: var(--ggds-font-size-base); }
.ggds-text-lg { font-size: var(--ggds-font-size-lg); }
.ggds-text-xl { font-size: var(--ggds-font-size-xl); }
.ggds-text-2xl { font-size: var(--ggds-font-size-2xl); }
.ggds-text-regular { font-weight: var(--ggds-font-weight-regular); }
.ggds-text-bold { font-weight: var(--ggds-font-weight-bold); }
.ggds-text-muted { color: var(--ggds-color-text-muted); }
.ggds-text-institution { color: var(--ggds-color-institution); }
.ggds-text-mono { font-family: var(--ggds-font-family-mono); }
.ggds-text-tight { line-height: var(--ggds-line-height-tight); }
.ggds-nowrap { white-space: nowrap; }

/* Surfaces, borders and corners. */
.ggds-surface { background: var(--ggds-color-surface); }
.ggds-surface-raised { background: var(--ggds-color-surface-raised); }
.ggds-surface-sunken { background: var(--ggds-color-surface-sunken); }
.ggds-surface-brand { background: var(--ggds-color-brand-50); }
.ggds-border { border: 1px solid var(--ggds-color-border-subtle); }
.ggds-border-top { border-block-start: 1px solid var(--ggds-color-border-subtle); }
.ggds-border-bottom { border-block-end: 1px solid var(--ggds-color-border-subtle); }
.ggds-border-strong { border-color: var(--ggds-color-border-strong); }
.ggds-rounded { border-radius: var(--ggds-radius-md); }
.ggds-rounded-lg { border-radius: var(--ggds-radius-lg); }
.ggds-rounded-full { border-radius: var(--ggds-radius-pill); }
.ggds-clip { overflow: hidden; }

/* An image or video that fills its box, cropped rather than stretched. */
.ggds-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sizes. */
.ggds-full { width: 100%; }

.ggds-width-narrow { max-width: 42rem; }
.ggds-width-medium { max-width: 56rem; }

/* At least 44px tall, the GGDS touch target, for anything people tap that is not a GGDS button or field. */
.ggds-target { min-block-size: var(--ggds-size-target); }

/* A 44px square, its content centred: an icon button. */
.ggds-target-square {
  display: inline-grid;
  place-items: center;
  inline-size: var(--ggds-size-target);
  block-size: var(--ggds-size-target);
}

/* Full width on phones only: a button that is easy to reach on a phone and its own size on a computer. */
@media (max-width: 47.99rem) {
  .ggds-full-phone { width: 100%; }
  .ggds-from-tablet { display: none; }
}

/* Shown only on some screens. Content must not depend on the screen: show the same information another way. */
@media (max-width: 63.99rem) {
  .ggds-from-desktop { display: none; }
}

@media (min-width: 64rem) {
  .ggds-below-desktop { display: none; }
}
}
