/*
  Virtual Concept Technologies: self-hosted type.
  Figtree (SIL OFL 1.1) at 400, 500 and 600, and IBM Plex Mono (SIL OFL 1.1) for code and token names only.
  Licences sit beside these files. Latin subset only. URLs are relative to this file.
*/

@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/IBMPlexMono-Regular-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Metric-matched fallback so text does not shift when the web font arrives. Measured against Arial on running English text. */
@font-face {
  font-family: "Figtree Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans");
  size-adjust: 100.99%;
  ascent-override: 94.06%;
  descent-override: 24.75%;
  line-gap-override: 0%;
}

/*
  Virtual Concept Technologies: design tokens, round three.
  Load brand/fonts/fonts.css first for the typefaces named here.
  Every text and interface colour pair is checked by brand/tools/contrast.mjs; ratios are listed in BRAND.md.
  The system is a calm working tool: a saturated blue bar and actions, white cards on cool grey, navy text,
  pill controls, thin dividers and flat spot illustrations. Red is kept for warnings.
*/

:root {
  /* Colour: blue, the one brand colour. Top bar, primary actions, links, focus ring, current state. */
  --vc-blue: #1463d6;
  --vc-blue-dark: #0b4aa8;        /* hover and pressed for anything blue, an open menu in the bar */
  --vc-blue-tint: #e8f0fc;        /* selected segments, menu hover, panel intro band, chips */
  --vc-on-blue: #ffffff;          /* text, the logo and the focus ring on the blue bar */
  --vc-blue-on-dark: #7fb8f5;     /* the mark in dark browser chrome */

  /* Colour: surfaces and text */
  --vc-navy: #14243b;             /* text and headings */
  --vc-muted: #4a5a70;            /* descriptions, meta, table headers, legal line */
  --vc-page: #f1f4f8;             /* page background, light cool grey */
  --vc-card: #ffffff;             /* cards, header band, menus, panels, footer */
  --vc-selection: #cfe0f9;        /* text selection, navy on top */

  /* Colour: hairlines. Decorative only: never the sole boundary of a control. */
  --vc-divider: #dce3ec;

  /* Colour: warnings only, always with a "Warning:" label so colour is never the only signal */
  --vc-warning: #c42b2b;

  /* Colour: spot illustrations only, never text or interface state */
  --vc-illo-sky: #7fb8f5;
  --vc-illo-teal: #1ba39c;
  --vc-illo-sun: #f5b83d;
  --vc-illo-coral: #f07a5a;
  --vc-illo-lilac: #8e7ce0;

  /* Type: Figtree for everything; Plex Mono only for code and token names */
  --vc-font-sans: "Figtree", "Figtree Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --vc-font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Type: medium-weight headings, small steps, generous line height */
  --vc-text-h1: clamp(1.875rem, 1.43rem + 1.9vw, 2.5rem);     /* 30 to 40 px */
  --vc-text-h2: clamp(1.3125rem, 1.18rem + 0.56vw, 1.5rem);   /* 21 to 24 px */
  --vc-text-h3: clamp(1.0625rem, 1.03rem + 0.14vw, 1.125rem); /* 17 to 18 px */
  --vc-text-lead: clamp(1.0625rem, 0.97rem + 0.38vw, 1.1875rem); /* 17 to 19 px */
  --vc-text-body: clamp(1rem, 0.97rem + 0.14vw, 1.0625rem);   /* 16 to 17 px */
  --vc-text-card: 0.9375rem;      /* 15 px: card descriptions, nav, buttons, tabs */
  --vc-text-meta: 0.8125rem;      /* 13 px: meta, chips, table headers, legal line */

  --vc-leading-h1: 1.15;
  --vc-leading-h2: 1.25;
  --vc-leading-h3: 1.35;
  --vc-leading-lead: 1.55;
  --vc-leading-body: 1.6;
  --vc-leading-card: 1.55;
  --vc-leading-meta: 1.4;

  --vc-tracking-h1: -0.02em;
  --vc-tracking-h2: -0.01em;

  --vc-weight-regular: 400;
  --vc-weight-medium: 500;
  --vc-weight-semibold: 600;

  --vc-measure: 68ch;

  /* Space: 4 px base */
  --vc-space-1: 0.25rem;  /* 4 */
  --vc-space-2: 0.5rem;   /* 8 */
  --vc-space-3: 0.75rem;  /* 12 */
  --vc-space-4: 1rem;     /* 16 */
  --vc-space-5: 1.25rem;  /* 20 */
  --vc-space-6: 1.5rem;   /* 24 */
  --vc-space-7: 2rem;     /* 32 */
  --vc-space-8: 2.5rem;   /* 40 */
  --vc-space-9: 3.5rem;   /* 56 */
  --vc-space-10: 5rem;    /* 80 */
  --vc-section: clamp(2.5rem, 1.9rem + 2.6vw, 3.5rem); /* 40 to 56 px between sections */

  /* Layout */
  --vc-container: 75rem;  /* 1200 px */
  --vc-gutter: 1rem;      /* 16 px, 24 px from 600 px, 40 px from 1024 px (set in the site stylesheet) */
  --vc-gap: 1rem;         /* 16 px, 20 px from 600 px */
  --vc-bar: 3.75rem;      /* 60 px top bar, 56 px under 900 px */

  /* Shape */
  --vc-radius-card: 0.5rem;   /* 8 px */
  --vc-radius-item: 0.375rem; /* 6 px: rows inside menus */
  --vc-radius-pill: 999px;

  /* Elevation: declared once per surface, shadow only */
  --vc-shadow-card: 0 1px 2px rgb(20 36 59 / 0.06), 0 2px 8px rgb(20 36 59 / 0.06);
  --vc-shadow-lift: 0 4px 16px rgb(20 36 59 / 0.1);
  --vc-shadow-menu: 0 8px 24px rgb(20 36 59 / 0.16);
  --vc-shadow-panel: -8px 0 24px rgb(20 36 59 / 0.12);
  --vc-backdrop: rgb(20 36 59 / 0.2);

  /* Motion: light and quick, transform and opacity only */
  --vc-ease-out: cubic-bezier(0.23, 1, 0.32, 1);    /* entering, responding */
  --vc-ease-panel: cubic-bezier(0.2, 0.8, 0.2, 1);  /* the side panel sliding in */
  --vc-duration-hover: 120ms;
  --vc-duration-menu-in: 120ms;
  --vc-duration-menu-out: 80ms;
  --vc-duration-panel-in: 200ms;
  --vc-duration-panel-out: 150ms;
  --vc-duration-reveal: 200ms;
  --vc-duration-slice: 240ms;
  --vc-duration-fill: 400ms;
  --vc-stagger: 40ms;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --vc-duration-menu-in: 0ms;
    --vc-duration-menu-out: 0ms;
    --vc-duration-panel-in: 0ms;
    --vc-duration-panel-out: 0ms;
    --vc-duration-reveal: 0ms;
    --vc-duration-slice: 0ms;
    --vc-duration-fill: 0ms;
    --vc-stagger: 0ms;
  }
}

/*
  virtualconcepts.org, round three: a calm working tool.
  A blue top bar, white cards on cool grey, pill buttons, thin dividers, flat spot illustrations.
  Tokens come from brand/tokens.css. Motion is transform and opacity only, and switches off under reduced motion.
  Nothing is hidden until the script has run: every component works as plain HTML first.
*/

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--vc-bar) + var(--vc-space-4));
  --vc-gutter: 1rem;
  --vc-gap: 1rem;
  --vc-pad: 1.25rem;
}

@media (min-width: 37.5rem) {
  html {
    --vc-gutter: 1.5rem;
    --vc-gap: 1.25rem;
    --vc-pad: 1.5rem;
  }
}

@media (min-width: 64rem) {
  html {
    --vc-gutter: 2.5rem;
  }
}

@media (max-width: 56.24rem) {
  html {
    --vc-bar: 3.5rem;
  }
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--vc-page);
  color: var(--vc-navy);
  font-family: var(--vc-font-sans);
  font-size: var(--vc-text-body);
  line-height: var(--vc-leading-body);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

main:focus {
  outline: none;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: var(--vc-weight-semibold);
  text-wrap: balance;
}

h1 {
  font-size: var(--vc-text-h1);
  line-height: var(--vc-leading-h1);
  letter-spacing: var(--vc-tracking-h1);
}

h2 {
  font-size: var(--vc-text-h2);
  line-height: var(--vc-leading-h2);
  letter-spacing: var(--vc-tracking-h2);
}

h3 {
  font-size: var(--vc-text-h3);
  line-height: var(--vc-leading-h3);
}

p,
li,
dd {
  text-wrap: pretty;
}

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

img {
  height: auto;
}

a {
  color: var(--vc-blue);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--vc-blue-dark);
  text-decoration-thickness: 2px;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

::selection {
  background: var(--vc-selection);
  color: var(--vc-navy);
}

:focus-visible {
  outline: 2px solid var(--vc-blue);
  outline-offset: 2px;
}

.num,
.meta,
.step,
.table {
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - 2 * var(--vc-gutter), var(--vc-container));
  margin-inline: auto;
}

.icon {
  flex: none;
  width: 1rem;
  height: 1rem;
}

.icon--caret {
  width: 0.75rem;
  height: 0.75rem;
}

.icon--close {
  width: 1.25rem;
  height: 1.25rem;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: var(--vc-space-2);
  left: var(--vc-space-2);
  padding: var(--vc-space-2) var(--vc-space-4);
  border-radius: var(--vc-radius-pill);
  background: var(--vc-card);
  color: var(--vc-blue);
  font-weight: var(--vc-weight-semibold);
  transform: translateY(-200%);
}

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

/* ---------- Text pieces ---------- */

.lead {
  max-width: var(--vc-measure);
  color: var(--vc-muted);
  font-size: var(--vc-text-lead);
  line-height: var(--vc-leading-lead);
}

.meta {
  color: var(--vc-muted);
  font-size: var(--vc-text-meta);
  font-weight: var(--vc-weight-medium);
  line-height: var(--vc-leading-meta);
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.125rem 0.625rem;
  border-radius: var(--vc-radius-pill);
  background: var(--vc-blue-tint);
  color: var(--vc-blue-dark);
  font-size: var(--vc-text-meta);
  font-weight: var(--vc-weight-semibold);
  line-height: var(--vc-leading-meta);
}

/* A text link with a chevron: inside cards and menus the underline shows on hover only. */
.go {
  display: inline-flex;
  align-items: center;
  gap: var(--vc-space-1);
  font-size: var(--vc-text-card);
  font-weight: var(--vc-weight-semibold);
  text-decoration: none;
}

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

.go .icon {
  transition: transform var(--vc-duration-hover) var(--vc-ease-out);
}

.go:hover .icon {
  transform: translateX(2px);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--vc-space-2);
  min-height: 2.5rem;
  padding: 0 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--vc-radius-pill);
  font: inherit;
  font-size: var(--vc-text-card);
  font-weight: var(--vc-weight-semibold);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--vc-duration-hover) var(--vc-ease-out);
}

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

.btn:active {
  transform: scale(0.97);
}

.btn--sm {
  min-height: 2rem;
  padding: 0 0.875rem;
  font-size: 0.875rem;
}

.btn--lg {
  min-height: 3rem;
  padding: 0 1.5rem;
  font-size: 1rem;
}

.btn--primary {
  background: var(--vc-blue);
  color: var(--vc-on-blue);
}

.btn--primary:hover,
.btn--primary:active {
  background: var(--vc-blue-dark);
  color: var(--vc-on-blue);
}

.btn--secondary {
  background: var(--vc-card);
  border-color: var(--vc-blue);
  color: var(--vc-blue);
}

.btn--secondary:hover {
  background: var(--vc-blue-tint);
  color: var(--vc-blue-dark);
}

.btn--light {
  background: var(--vc-card);
  color: var(--vc-blue);
}

.btn--light:hover {
  background: var(--vc-blue-tint);
  color: var(--vc-blue-dark);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--vc-muted);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--vc-blue-tint);
  color: var(--vc-navy);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vc-space-3);
}

.actions--center {
  justify-content: center;
}

/* ---------- Top bar ---------- */

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: var(--vc-blue);
  color: var(--vc-on-blue);
}

.site-header :focus-visible {
  outline-color: var(--vc-on-blue);
}

.bar {
  display: flex;
  align-items: center;
  gap: var(--vc-space-6);
  height: var(--vc-bar);
}

/* On phones only the name and the Menu button share the bar; a narrower gap keeps the name on one line at 390px. */
@media (max-width: 56.24rem) {
  .bar {
    gap: var(--vc-space-3);
  }
}

/* The company name wraps to two lines only when the bar runs out of room (320px, or 400% zoom),
   so the Menu button always stays on screen. */
.bar__home {
  display: inline-flex;
  flex: 0 1 auto;
  min-width: 0;
  align-items: center;
  gap: var(--vc-space-3);
  min-height: 2.75rem;
  color: var(--vc-on-blue);
  font-size: 1rem;
  font-weight: var(--vc-weight-semibold);
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-decoration: none;
}

.bar__home:hover {
  color: var(--vc-on-blue);
}

.bar__mark {
  flex: none;
  width: 2rem;
  height: 2rem;
  padding: 0.125rem;
  border-radius: 0.5rem;
  background: #ffffff;
}

.nav {
  display: none;
  flex: 1;
  align-items: center;
  height: 100%;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--vc-space-1);
  height: 100%;
  margin-right: auto;
}

.nav__list > li {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: var(--vc-radius-pill);
  color: var(--vc-on-blue);
  font-size: var(--vc-text-card);
  font-weight: var(--vc-weight-medium);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--vc-duration-hover) linear;
}

.nav__item:hover,
details[open] > .nav__item {
  background: var(--vc-blue-dark);
  color: var(--vc-on-blue);
}

/* The current page: a 4px white bar along the bottom edge of the top bar, under its label. */
.nav__item[aria-current]::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc((var(--vc-bar) - 2.25rem) / -2);
  height: 4px;
  border-radius: 2px 2px 0 0;
  background: var(--vc-on-blue);
}

.nav > .btn {
  height: 2.25rem;
  min-height: 0;
  font-size: var(--vc-text-card);
}

.nav > .btn[aria-current] {
  background: var(--vc-blue-tint);
  color: var(--vc-blue-dark);
}

summary {
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary .icon--caret {
  transition: transform var(--vc-duration-hover) var(--vc-ease-out);
}

details[open] > summary .icon--caret {
  transform: rotate(180deg);
}

/* Services mega-menu: a <details>, so it opens and closes without script. */
.mega__panel {
  position: absolute;
  z-index: 30;
  top: calc(100% - (var(--vc-bar) - 2.25rem) / 2 + var(--vc-space-2));
  left: 0;
  width: 40rem;
  padding: var(--vc-space-2);
  border: 1px solid var(--vc-divider);
  border-radius: var(--vc-radius-card);
  background: var(--vc-card);
  box-shadow: var(--vc-shadow-menu);
  color: var(--vc-navy);
  transform-origin: top left;
}

.site-header .mega__panel :focus-visible {
  outline-color: var(--vc-blue);
}

.mega__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--vc-space-1);
}

.mega__item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--vc-space-3);
  align-items: center;
  padding: var(--vc-space-3);
  border-radius: var(--vc-radius-item);
  color: var(--vc-navy);
  text-decoration: none;
  transition: background-color var(--vc-duration-hover) linear;
}

.mega__item:hover,
.mega__item:focus-visible,
.mega__item[aria-current] {
  background: var(--vc-blue-tint);
  color: var(--vc-navy);
}

.mega__illo {
  grid-row: 1 / 3;
  width: 2.5rem;
}

.mega__name {
  font-size: var(--vc-text-card);
  font-weight: var(--vc-weight-semibold);
  line-height: 1.3;
}

.mega__item:hover .mega__name {
  color: var(--vc-blue);
}

.mega__desc {
  color: var(--vc-muted);
  font-size: var(--vc-text-meta);
  line-height: var(--vc-leading-meta);
}

.mega__foot {
  display: flex;
  gap: var(--vc-space-6);
  margin-top: var(--vc-space-2);
  padding: var(--vc-space-3) var(--vc-space-3) var(--vc-space-2);
  border-top: 1px solid var(--vc-divider);
}

/* Under 900px: a Menu button that opens a full-width sheet below the bar. */
.menu__button {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 2.5rem;
  padding: 0 1rem;
  border: 1px solid var(--vc-on-blue);
  border-radius: var(--vc-radius-pill);
  color: var(--vc-on-blue);
  font-size: var(--vc-text-card);
  font-weight: var(--vc-weight-semibold);
  cursor: pointer;
}

.menu__button:hover,
.menu[open] > .menu__button {
  background: var(--vc-blue-dark);
}

.menu-nav {
  flex: none;
  margin-left: auto;
}

.menu__sheet {
  position: absolute;
  z-index: 30;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100dvh - var(--vc-bar));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-block: var(--vc-space-4) var(--vc-space-6);
  border-bottom: 1px solid var(--vc-divider);
  background: var(--vc-card);
  box-shadow: var(--vc-shadow-menu);
  color: var(--vc-navy);
  transform-origin: top center;
}

.site-header .menu__sheet :focus-visible {
  outline-color: var(--vc-blue);
}

.menu__label {
  padding-bottom: var(--vc-space-1);
  color: var(--vc-muted);
  font-size: var(--vc-text-meta);
  font-weight: var(--vc-weight-medium);
}

.menu__list > li + li {
  border-top: 1px solid var(--vc-divider);
}

.menu__list a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  color: var(--vc-navy);
  font-size: 1rem;
  font-weight: var(--vc-weight-medium);
  text-decoration: none;
}

.menu__list a[aria-current] {
  color: var(--vc-blue);
  font-weight: var(--vc-weight-semibold);
}

.menu__list a[aria-current]::before {
  content: "";
  width: 4px;
  height: 1.25rem;
  margin-right: var(--vc-space-3);
  border-radius: 2px;
  background: var(--vc-blue);
}

.menu__list--pages {
  margin-top: var(--vc-space-4);
  border-top: 1px solid var(--vc-divider);
}

@media (min-width: 56.25rem) {
  .nav {
    display: flex;
  }

  .menu-nav {
    display: none;
  }
}

/* Menus come in quickly and leave faster. The script adds .is-closing for the exit. */
@media (prefers-reduced-motion: no-preference) {
  details[open] > .mega__panel,
  details[open] > .menu__sheet {
    animation: menu-in var(--vc-duration-menu-in) var(--vc-ease-out);
  }

  details.is-closing > .mega__panel,
  details.is-closing > .menu__sheet {
    opacity: 0;
    transform: translateY(-4px);
    transition:
      opacity var(--vc-duration-menu-out) linear,
      transform var(--vc-duration-menu-out) linear;
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* ---------- Page header band ---------- */

.page-head {
  border-bottom: 1px solid var(--vc-divider);
  background: var(--vc-card);
}

.page-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--vc-space-6);
  padding-block: var(--vc-space-6) var(--vc-space-5);
}

.page-head__text {
  display: grid;
  justify-items: start;
  gap: var(--vc-space-3);
  max-width: 46rem;
}

.page-head__illo {
  display: none;
  flex: none;
  width: 11rem;
}

@media (min-width: 37.5rem) {
  .page-head__inner {
    padding-block: var(--vc-space-7) var(--vc-space-6);
  }

  .page-head__illo {
    display: block;
  }
}

.page-head__inner--controls {
  flex-wrap: wrap;
  align-items: flex-end;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--vc-space-1);
  font-size: var(--vc-text-meta);
  font-weight: var(--vc-weight-medium);
  line-height: var(--vc-leading-meta);
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: var(--vc-space-1);
  color: var(--vc-muted);
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  text-decoration: underline;
}

.crumbs .icon {
  width: 0.875rem;
  height: 0.875rem;
}

/* The headline settles in once on load: CSS only, so it never waits on the script. */
@media (prefers-reduced-motion: no-preference) {
  .slice {
    animation: slice-in var(--vc-duration-slice) var(--vc-ease-out) both;
  }
}

@keyframes slice-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* ---------- Page body and sections ---------- */

.page-body {
  padding-block: var(--vc-space-6) var(--vc-section);
}

@media (min-width: 37.5rem) {
  .page-body {
    padding-top: var(--vc-space-7);
  }
}

.section {
  margin-top: var(--vc-section);
}

.page-body > .section:first-child {
  margin-top: 0;
}

.section--tight {
  margin-top: var(--vc-space-5);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: var(--vc-space-3);
  row-gap: var(--vc-space-1);
  margin-bottom: var(--vc-space-4);
}

.section-head__meta {
  color: var(--vc-muted);
  font-size: var(--vc-text-meta);
  font-weight: var(--vc-weight-medium);
}

.section-head__link {
  flex-basis: 100%;
}

@media (min-width: 37.5rem) {
  .section-head__link {
    flex-basis: auto;
    margin-left: auto;
  }
}

/* ---------- Cards ---------- */

.card {
  position: relative;
  padding: var(--vc-pad);
  border: 1px solid transparent;
  border-radius: var(--vc-radius-card);
  background: var(--vc-card);
  box-shadow: var(--vc-shadow-card);
}

.card--flush {
  padding: 0;
  overflow: hidden;
}

.card--narrow {
  max-width: 45rem;
}

.card__heading {
  font-size: var(--vc-text-h3);
  line-height: var(--vc-leading-h3);
  letter-spacing: 0;
}

.card__heading + * {
  margin-top: var(--vc-space-2);
}

.card__title {
  font-size: var(--vc-text-h3);
  line-height: var(--vc-leading-h3);
}

.card__title + .card__text {
  margin-top: var(--vc-space-2);
}

.card__text {
  color: var(--vc-muted);
  font-size: var(--vc-text-card);
  line-height: var(--vc-leading-card);
}

.card > * + p,
.card > * + .btn,
.card > p + * {
  margin-top: var(--vc-space-4);
}

.card__more {
  margin-top: var(--vc-space-3);
}

.cards {
  display: grid;
  gap: var(--vc-gap);
}

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

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

.cards--top {
  align-items: start;
}

.cards > .card {
  display: flex;
  flex-direction: column;
}

.cards > .card > * + * {
  margin-top: var(--vc-space-2);
}

/* A card that is a link: the title link stretches over the whole card, and the card lifts on hover. */
.card--link {
  transition: transform var(--vc-duration-hover) var(--vc-ease-out);
}

.card--link::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: var(--vc-shadow-lift);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--vc-duration-hover) linear;
}

@media (hover: hover) {
  .card--link:hover {
    transform: translateY(-1px);
  }

  .card--link:hover::before {
    opacity: 1;
  }

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

.card--link:has(.card__link:focus-visible) {
  outline: 2px solid var(--vc-blue);
  outline-offset: 2px;
}

.card__link {
  color: var(--vc-blue);
  text-decoration: none;
}

.card__link:focus-visible {
  outline: none;
}

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

.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--vc-space-3);
}

.card__head .icon--chev {
  margin-top: calc((var(--vc-leading-h3) * 1em - 1rem) / 2);
  color: var(--vc-muted);
  font-size: var(--vc-text-h3);
  transition: transform var(--vc-duration-hover) var(--vc-ease-out);
}

.card--link:hover .card__head .icon--chev {
  transform: translateX(2px);
}

.card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--vc-space-3);
  margin-top: auto;
  padding-top: var(--vc-space-3);
}

.cards > .card > .card__foot {
  margin-top: auto;
}

.card__meta {
  display: grid;
  justify-items: start;
  gap: var(--vc-space-3);
}

.card__action {
  position: relative;
  z-index: 2;
}

.card__illo {
  flex: none;
  width: 4.5rem;
  margin-bottom: -0.25rem;
}

@media (min-width: 37.5rem) {
  .card__illo {
    width: 5.5rem;
  }
}

/* Lists of covered parts: thin dividers between rows, none at the outer edges. */
.parts > div {
  display: grid;
  gap: var(--vc-space-1);
}

.parts > div + div {
  border-top: 1px solid var(--vc-divider);
}

.parts > div:last-child {
  padding-bottom: 0;
}

.parts {
  margin-top: var(--vc-space-2);
}

.parts > div {
  padding-block: var(--vc-space-4);
}

.parts dt {
  font-size: 1.0625rem;
  font-weight: var(--vc-weight-semibold);
  line-height: 1.4;
}

.parts dd {
  max-width: var(--vc-measure);
  font-size: 1rem;
  line-height: var(--vc-leading-body);
}

.dlist > li {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding-block: var(--vc-space-3);
  font-size: var(--vc-text-card);
}

.dlist > li + li {
  border-top: 1px solid var(--vc-divider);
}

.dlist--links > li,
.dlist--toc > li {
  padding: 0;
}

.dlist--links a,
.dlist--toc a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 3rem;
}

.dlist--links .go {
  justify-content: space-between;
}

/* The two by two divided grid. */
.quad > li {
  padding: var(--vc-pad);
}

.quad > li + li {
  border-top: 1px solid var(--vc-divider);
}

.quad h3 {
  font-size: 1.0625rem;
}

.quad p {
  margin-top: var(--vc-space-2);
  color: var(--vc-muted);
  font-size: var(--vc-text-card);
  line-height: var(--vc-leading-card);
}

@media (min-width: 37.5rem) {
  .quad {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .quad > li + li {
    border-top: 0;
  }

  .quad > li:nth-child(even) {
    border-left: 1px solid var(--vc-divider);
  }

  .quad > li:nth-child(n + 3) {
    border-top: 1px solid var(--vc-divider);
  }
}

/* Divided table. */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--vc-text-card);
  line-height: var(--vc-leading-card);
}

.table th,
.table td {
  padding: var(--vc-space-3) var(--vc-pad);
  text-align: left;
  vertical-align: top;
}

.table thead th {
  padding-block: var(--vc-space-3);
  color: var(--vc-muted);
  font-size: var(--vc-text-meta);
  font-weight: var(--vc-weight-medium);
  white-space: nowrap;
}

.table tbody tr {
  border-top: 1px solid var(--vc-divider);
}

.table tbody th {
  font-weight: var(--vc-weight-semibold);
  white-space: nowrap;
}

.table td {
  color: var(--vc-muted);
}

.table__go {
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 47.99rem) {
  .table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .table tr,
  .table th,
  .table td {
    display: block;
  }

  .table tbody tr {
    padding-block: var(--vc-space-3);
  }

  .table tbody tr:first-child {
    border-top: 0;
  }

  .table th,
  .table td {
    padding-block: var(--vc-space-1);
  }

  .table__go {
    text-align: left;
  }
}

/* Banner: white with a 4px left bar. */
.banner {
  padding: var(--vc-space-4) var(--vc-pad);
  border: 1px solid transparent;
  border-left: 4px solid var(--vc-blue);
  border-radius: var(--vc-radius-card);
  background: var(--vc-card);
  box-shadow: var(--vc-shadow-card);
  font-size: var(--vc-text-card);
}

.banner strong {
  font-weight: var(--vc-weight-semibold);
}

.quote p {
  max-width: var(--vc-measure);
  font-size: 1.0625rem;
  line-height: var(--vc-leading-lead);
}

/* ---------- Home ---------- */

.hero {
  display: grid;
  gap: var(--vc-space-6);
  align-items: center;
  padding: var(--vc-pad);
}

.hero__text {
  display: grid;
  justify-items: start;
  gap: var(--vc-space-4);
}

.hero__text .actions {
  margin-top: var(--vc-space-2);
}

.hero__art {
  order: -1;
  display: grid;
  place-items: center;
}

.hero__illo {
  width: 100%;
  max-height: 15rem;
  object-fit: contain;
}

@media (min-width: 64rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: var(--vc-space-8);
    padding: var(--vc-space-8);
  }

  .hero__art {
    order: 0;
  }

  .hero__illo {
    max-height: none;
  }
}

/* ---------- Call to action: a short card that leads to a form on /contact ---------- */

.cta {
  display: grid;
  gap: var(--vc-space-4);
  justify-items: start;
  align-items: center;
}

.cta__illo {
  width: 6rem;
}

.cta__text {
  display: grid;
  gap: var(--vc-space-2);
  max-width: var(--vc-measure);
}

@media (min-width: 48rem) {
  .cta {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: var(--vc-space-6);
  }

  .cta__illo {
    width: 7rem;
  }
}

/* The contact form's styles are in contact.css, which the build appends to this stylesheet. */

/* ---------- Services: view switch, list view, side panel ---------- */

.segmented {
  display: inline-flex;
  margin: 0;
  padding: 0;
  border: 1px solid var(--vc-blue);
  border-radius: var(--vc-radius-pill);
  background: var(--vc-card);
  overflow: hidden;
}

.segmented__legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.segmented__opt {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  padding: 0 1rem;
  color: var(--vc-navy);
  font-size: var(--vc-text-card);
  font-weight: var(--vc-weight-medium);
  cursor: pointer;
}

.segmented__opt + .segmented__opt {
  border-left: 1px solid var(--vc-blue);
}

.segmented__opt input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.segmented__opt:has(input:checked) {
  background: var(--vc-blue-tint);
  color: var(--vc-blue-dark);
  font-weight: var(--vc-weight-semibold);
}

.segmented__opt:has(input:focus-visible) {
  outline: 2px solid var(--vc-blue);
  outline-offset: -4px;
  border-radius: var(--vc-radius-pill);
}

.segmented:not(:has(input)) {
  display: none;
}

.view-list {
  display: none;
}

body:has(#view-list:checked) .view-cards {
  display: none;
}

body:has(#view-list:checked) .view-list {
  display: block;
}

/* Side panel: a modal <dialog> from the right edge. Without script, its trigger is a link to the full page. */
.panel {
  position: fixed;
  inset: var(--vc-bar) 0 0 auto;
  width: min(100%, 25rem);
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--vc-divider);
  background: var(--vc-card);
  box-shadow: var(--vc-shadow-panel);
  color: var(--vc-navy);
}

.panel[open] {
  display: flex;
  flex-direction: column;
}

.panel::backdrop {
  background: var(--vc-backdrop);
}

@media (prefers-reduced-motion: no-preference) {
  .panel[open] {
    animation: panel-in var(--vc-duration-panel-in) var(--vc-ease-panel);
  }

  .panel[open]::backdrop {
    animation: fade-in var(--vc-duration-panel-in) linear;
  }

  .panel.is-closing {
    transform: translateX(100%);
    transition: transform var(--vc-duration-panel-out) var(--vc-ease-out);
  }

  .panel.is-closing::backdrop {
    opacity: 0;
    transition: opacity var(--vc-duration-panel-out) linear;
  }
}

@keyframes panel-in {
  from {
    transform: translateX(100%);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

.panel__head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--vc-space-3);
  min-height: 3.75rem;
  padding: var(--vc-space-2) var(--vc-space-3) var(--vc-space-2) var(--vc-space-6);
  border-bottom: 1px solid var(--vc-divider);
}

.panel__title {
  font-size: var(--vc-text-h3);
  line-height: var(--vc-leading-h3);
}

.panel__title:focus {
  outline: none;
}

.panel__title:focus-visible {
  outline: 2px solid var(--vc-blue);
  outline-offset: 2px;
}

.panel__scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.panel__intro {
  display: flex;
  align-items: center;
  gap: var(--vc-space-4);
  padding: var(--vc-space-5) var(--vc-space-6);
  background: var(--vc-blue-tint);
  font-size: var(--vc-text-card);
  line-height: var(--vc-leading-card);
}

.panel__illo {
  flex: none;
  width: 6rem;
}

.panel__body {
  padding: var(--vc-space-5) var(--vc-space-6);
}

.panel__sub {
  color: var(--vc-muted);
  font-size: var(--vc-text-meta);
  font-weight: var(--vc-weight-medium);
}

.panel__foot {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: var(--vc-space-3);
  padding: var(--vc-space-3) var(--vc-space-6);
  border-top: 1px solid var(--vc-divider);
}

html:has(.panel[open]) {
  overflow: hidden;
}

/* ---------- Service pages ---------- */

.split {
  display: grid;
  gap: var(--vc-gap);
  align-items: start;
}

.card--aside {
  display: grid;
  justify-items: start;
}

.card__aside-illo {
  width: 10rem;
  margin-bottom: var(--vc-space-2);
}

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

  .split__aside {
    position: sticky;
    top: calc(var(--vc-bar) + var(--vc-space-5));
  }
}

.pager {
  margin-top: var(--vc-section);
}

.card--pager .card__title {
  font-size: var(--vc-text-h3);
}

.cards > .card--pager > * + * {
  margin-top: var(--vc-space-1);
}

/* ---------- How we work: tracker, step guide, tabs ---------- */

.guide {
  padding: 0;
}

.tracker {
  padding: var(--vc-pad) var(--vc-pad) var(--vc-space-4);
  border-bottom: 1px solid var(--vc-divider);
}

.tracker ol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* The line between the step circles, from the first centre to the last; its blue fill follows the reader. */
.tracker ol::before,
.tracker ol::after {
  content: "";
  position: absolute;
  top: calc(1rem - 1px);
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--vc-divider);
}

.tracker ol::after {
  background: var(--vc-blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--vc-duration-fill) var(--vc-ease-out);
}

.tracker[data-current="2"] ol::after {
  transform: scaleX(0.25);
}

.tracker[data-current="3"] ol::after {
  transform: scaleX(0.5);
}

.tracker[data-current="4"] ol::after {
  transform: scaleX(0.75);
}

.tracker[data-current="5"] ol::after {
  transform: scaleX(1);
}

.tracker a {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: var(--vc-space-2);
  padding-bottom: var(--vc-space-1);
  border-radius: var(--vc-radius-item);
  color: var(--vc-navy);
  text-align: center;
  text-decoration: none;
}

.tracker__name {
  font-size: var(--vc-text-meta);
  font-weight: var(--vc-weight-medium);
  line-height: 1.3;
}

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

.tracker a:hover .tracker__name {
  color: var(--vc-blue);
  text-decoration: underline;
}

.step {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid transparent;
  border-radius: 50%;
  background: var(--vc-blue-tint);
  color: var(--vc-blue-dark);
  font-size: var(--vc-text-card);
  font-weight: var(--vc-weight-semibold);
  line-height: 1;
  transition: transform var(--vc-duration-hover) var(--vc-ease-out);
}

.tracker a[aria-current] .step,
.stage.is-current > .step {
  background: var(--vc-blue);
  color: var(--vc-on-blue);
}

.tracker a[aria-current] .tracker__name {
  color: var(--vc-blue-dark);
  font-weight: var(--vc-weight-semibold);
}

.tracker a:hover .step {
  transform: scale(1.06);
}

.stages > .stage {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: var(--vc-space-4);
  padding: var(--vc-space-5) var(--vc-pad);
}

.stages > .stage + .stage {
  border-top: 1px solid var(--vc-divider);
}

.stage__body {
  display: grid;
  gap: var(--vc-space-2);
}

.stage__body h3 {
  padding-top: 0.125rem;
}

.stage__body p:not(.progress) {
  max-width: var(--vc-measure);
}

.stage__illo {
  display: none;
}

@media (min-width: 64rem) {
  .stages > .stage {
    grid-template-columns: 2rem minmax(0, 1fr) 6rem;
    gap: var(--vc-space-6);
  }

  .stage__illo {
    display: block;
    width: 6rem;
    align-self: center;
  }
}

.progress {
  display: grid;
  gap: var(--vc-space-1);
  margin-top: var(--vc-space-1);
}

.progress__bar {
  display: block;
  width: 7.5rem;
  height: 4px;
  border-radius: 2px;
  background: var(--vc-divider);
  overflow: hidden;
}

.progress__bar i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--vc-blue);
  transform-origin: left center;
  transition: transform var(--vc-duration-fill) var(--vc-ease-out);
}

.stage:nth-child(1) .progress__bar i {
  transform: scaleX(0.2);
}

.stage:nth-child(2) .progress__bar i {
  transform: scaleX(0.4);
}

.stage:nth-child(3) .progress__bar i {
  transform: scaleX(0.6);
}

.stage:nth-child(4) .progress__bar i {
  transform: scaleX(0.8);
}

.stage:nth-child(5) .progress__bar i {
  transform: scaleX(1);
}

.stage.is-unfilled .progress__bar i {
  transform: scaleX(0);
}

/* Tabs: without script every panel shows in order as a card. The script builds the tab list. */
.tabs {
  display: grid;
  gap: var(--vc-gap);
}

.tabs.is-tabbed {
  display: block;
  gap: 0;
  padding: 0;
}

.tabs__list {
  display: flex;
  overflow-x: auto;
  padding-inline: var(--vc-space-2);
  border-bottom: 1px solid var(--vc-divider);
  scrollbar-width: none;
}

.tabs__tab {
  position: relative;
  flex: none;
  height: 2.75rem;
  padding: 0 var(--vc-space-4);
  border: 0;
  background: none;
  color: var(--vc-navy);
  font: inherit;
  font-size: var(--vc-text-card);
  font-weight: var(--vc-weight-medium);
  cursor: pointer;
}

.tabs__tab:hover {
  color: var(--vc-blue);
}

.tabs__tab:focus-visible {
  outline-offset: -4px;
  border-radius: var(--vc-radius-item);
}

.tabs__tab[aria-selected="true"] {
  color: var(--vc-blue);
  font-weight: var(--vc-weight-semibold);
}

.tabs__tab::after {
  content: "";
  position: absolute;
  left: var(--vc-space-4);
  right: var(--vc-space-4);
  bottom: -1px;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: var(--vc-blue);
  transform: scaleX(0);
  transition: transform var(--vc-duration-hover) var(--vc-ease-out);
}

.tabs__tab[aria-selected="true"]::after {
  transform: scaleX(1);
}

.tabs.is-tabbed .tabs__panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
}

.tabs.is-tabbed .tabs__panel .card__title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.tabs.is-tabbed .tabs__panel .card__text {
  margin-top: 0;
  color: var(--vc-navy);
  font-size: var(--vc-text-body);
  line-height: var(--vc-leading-body);
}

@media (prefers-reduced-motion: no-preference) {
  .tabs.is-tabbed .tabs__panel:not([hidden]) {
    animation: fade-in var(--vc-duration-reveal) linear;
  }
}

/* ---------- Reading pages (privacy, terms, accessibility) ---------- */

.reading {
  display: grid;
  gap: var(--vc-gap);
  align-items: start;
}

.toc {
  padding-block: var(--vc-space-4) var(--vc-space-2);
}

.toc__title {
  color: var(--vc-muted);
  font-size: var(--vc-text-meta);
  font-weight: var(--vc-weight-medium);
  letter-spacing: 0;
}

.dlist--toc a {
  font-size: var(--vc-text-card);
  font-weight: var(--vc-weight-medium);
  line-height: 1.35;
  text-decoration: none;
  padding-block: var(--vc-space-2);
}

.dlist--toc a:hover {
  text-decoration: underline;
}

.reading__body {
  max-width: 45rem;
}

@media (min-width: 37.5rem) {
  .reading__body {
    padding: var(--vc-space-8);
  }
}

@media (min-width: 64rem) {
  .reading {
    grid-template-columns: 15rem minmax(0, 45rem);
    gap: var(--vc-space-8);
  }

  .toc {
    position: sticky;
    top: calc(var(--vc-bar) + var(--vc-space-5));
  }
}

.prose {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.prose > * + * {
  margin-top: var(--vc-space-4);
}

.prose h2 {
  margin-top: var(--vc-space-8);
  font-size: 1.375rem;
  line-height: 1.3;
}

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

.prose h2 + * {
  margin-top: var(--vc-space-3);
}

.prose ul:not([role]),
.prose ol:not([role]) {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: var(--vc-space-2);
}

.prose .dlist > li + li {
  margin-top: 0;
}

.prose .dlist > li {
  font-size: inherit;
}

.prose strong {
  font-weight: var(--vc-weight-semibold);
}

.prose--card {
  font-size: var(--vc-text-body);
  line-height: var(--vc-leading-body);
}

.prose--card > * + * {
  margin-top: var(--vc-space-3);
}

/* ---------- 404 ---------- */

.notfound {
  display: grid;
  justify-items: center;
  max-width: 35rem;
  margin-inline: auto;
  text-align: center;
}

.notfound__illo {
  width: 12.5rem;
}

.notfound h1 {
  margin-top: var(--vc-space-4);
  font-size: 1.875rem;
}

.notfound .actions {
  margin-top: var(--vc-space-5);
}

.notfound__sub {
  justify-self: stretch;
  margin-top: var(--vc-space-7);
  padding-bottom: var(--vc-space-1);
  color: var(--vc-muted);
  font-size: var(--vc-text-meta);
  font-weight: var(--vc-weight-medium);
  letter-spacing: 0;
  text-align: left;
}

.notfound .dlist {
  justify-self: stretch;
  border-top: 1px solid var(--vc-divider);
  text-align: left;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--vc-divider);
  background: var(--vc-card);
  font-size: var(--vc-text-card);
}

.site-footer__inner {
  display: grid;
  gap: var(--vc-space-5);
  padding-block: var(--vc-space-7);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 var(--vc-space-7);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--vc-space-5);
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: var(--vc-weight-medium);
  text-decoration: none;
}

.site-footer__links a:hover {
  text-decoration: underline;
}

/* The one place the company's legal details and email address appear. */
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vc-space-1) var(--vc-space-4);
  padding-top: var(--vc-space-5);
  border-top: 1px solid var(--vc-divider);
  color: var(--vc-muted);
  font-size: var(--vc-text-meta);
  font-style: normal;
  line-height: var(--vc-leading-meta);
}

.site-footer__legal > span {
  padding-block: 0.1875rem;
}

.site-footer__name {
  color: var(--vc-navy);
  font-weight: var(--vc-weight-semibold);
}

@media (min-width: 37.5rem) {
  .site-footer__legal > span + span::before {
    content: "\00b7";
    margin-right: var(--vc-space-4);
    color: var(--vc-muted);
  }
}

@media (max-width: 37.49rem) {
  .site-footer__legal {
    display: grid;
  }
}

/* ---------- Section reveals (added by the script only for content below the fold) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .is-pending {
    opacity: 0;
    transform: translateY(8px);
  }

  .is-revealed {
    transition:
      opacity var(--vc-duration-reveal) linear,
      transform var(--vc-duration-reveal) var(--vc-ease-out);
  }
}

/* Under reduced motion, hover and press feedback is colour only: no nudges, lifts or presses. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --vc-duration-hover: 0ms;
  }

  .go:hover .icon,
  .btn:active,
  .card--link:hover,
  .card--link:hover .card__head .icon--chev,
  .tracker a:hover .step {
    transform: none;
  }
}

/* ---------- Forced colours ---------- */

@media (forced-colors: active) {
  .nav__item[aria-current]::after,
  .menu__list a[aria-current]::before,
  .progress__bar i,
  .tracker ol::after,
  .tabs__tab::after {
    background: Highlight;
  }

  .step,
  .chip,
  .btn,
  .segmented__opt:has(input:checked) {
    border: 1px solid CanvasText;
  }

  .card--link:has(.card__link:focus-visible) {
    outline-color: Highlight;
  }
}

/* ---------- Print ---------- */

@media print {
  .site-header,
  .site-footer__nav,
  .toc,
  .tracker,
  .card__action,
  .panel,
  .segmented {
    display: none;
  }

  body {
    background: none;
  }

  .card {
    box-shadow: none;
    border-color: #ccc;
  }
}

/* ---------- Progress indicators (Material 3) ---------- */

/*
  Linear, along the bottom edge of the blue top bar, in two states set by the script:
  - arriving: determinate. The bar fills from 0 to 100% in 600 ms with Material 3's 4px gap before the track and a
    stop dot at the far end, then the whole indicator fades in 200 ms. Under reduced motion it shows the full bar
    for half a second, then fades: nothing travels.
  - leaving: indeterminate, from the moment a link is followed until the next page replaces this one. Two rounded
    bars run across the faint track; under reduced motion one bar holds still.
  Circular, indeterminate: inside a button while a form is sending. A 4px arc with rounded ends grows, shrinks
  and turns, over a faint track. Both are white on the blue they sit on. Everything moves by transform or opacity.
*/
.m3-linear {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  overflow: hidden;
  pointer-events: none;
}

.m3-linear[hidden] {
  display: none;
}

.m3-linear::before {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: color-mix(in srgb, var(--vc-on-blue) 32%, transparent);
  content: "";
}

.m3-linear__fill,
.m3-linear__bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  border-radius: 2px;
  background: var(--vc-on-blue);
  box-shadow: 0 0 0 4px var(--vc-blue);
  transform-origin: 0 50%;
}

/* Determinate: a full-width bar slid in from the left keeps its rounded leading end (scaling would squash it). */
.m3-linear__fill {
  transform: translateX(-100%);
}

/* Material 3's stop indicator: a 4px dot at the end of the track, where a determinate bar finishes. */
.m3-linear::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--vc-on-blue);
  content: "";
}

.m3-linear[data-state="arriving"] .m3-linear__bar,
.m3-linear[data-state="leaving"] .m3-linear__fill,
.m3-linear[data-state="leaving"]::after {
  display: none;
}

.m3-linear[data-state="arriving"] {
  animation: m3-linear-leave 200ms linear 650ms forwards;
}

@media (prefers-reduced-motion: no-preference) {
  .m3-linear[data-state="arriving"] .m3-linear__fill {
    animation: m3-linear-fill 600ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
}

@keyframes m3-linear-fill {
  to {
    transform: translateX(0);
  }
}

@keyframes m3-linear-leave {
  to {
    opacity: 0;
  }
}

.m3-linear__bar--1 {
  transform: translateX(-100%) scaleX(0.4);
}

.m3-linear__bar--2 {
  transform: translateX(-100%) scaleX(0.2);
}

.m3-circular {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
}

.m3-circular circle {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
}

.m3-circular__track {
  stroke: currentColor;
  opacity: 0.3;
}

.m3-circular__arc {
  stroke: currentColor;
  stroke-dasharray: 14 57;
  transform-origin: 12px 12px;
  transform: rotate(-90deg);
}

@media (prefers-reduced-motion: no-preference) {
  /* The cycle starts 600 ms in, so the leading bar is already crossing the track on the first frame after a click. */
  .m3-linear__bar--1 {
    animation: m3-linear-1 2s -600ms infinite linear;
  }

  .m3-linear__bar--2 {
    animation: m3-linear-2 2s -600ms infinite linear;
  }

  .m3-circular {
    animation: m3-circular-turn 1.568s linear infinite;
  }

  .m3-circular__arc {
    animation: m3-circular-arc 1.333s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }
}

/* Material's indeterminate timing: the long bar leads, the short bar follows, each easing as it crosses. */
@keyframes m3-linear-1 {
  0% {
    transform: translateX(-100%) scaleX(0.08);
    animation-timing-function: cubic-bezier(0.5, 0, 0.7, 0.5);
  }
  20% {
    transform: translateX(-60%) scaleX(0.3);
    animation-timing-function: cubic-bezier(0.3, 0.4, 0.55, 1);
  }
  60% {
    transform: translateX(80%) scaleX(0.6);
  }
  100% {
    transform: translateX(110%) scaleX(0.1);
  }
}

@keyframes m3-linear-2 {
  0%,
  35% {
    transform: translateX(-100%) scaleX(0.08);
    animation-timing-function: cubic-bezier(0.15, 0, 0.5, 0.4);
  }
  70% {
    transform: translateX(20%) scaleX(0.5);
    animation-timing-function: cubic-bezier(0.2, 0.6, 0.6, 1);
  }
  100% {
    transform: translateX(110%) scaleX(0.1);
  }
}

@keyframes m3-circular-turn {
  to {
    transform: rotate(360deg);
  }
}

@keyframes m3-circular-arc {
  0% {
    stroke-dasharray: 3 57;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 42 57;
    stroke-dashoffset: -8;
  }
  100% {
    stroke-dasharray: 3 57;
    stroke-dashoffset: -54;
  }
}

/* Reduced motion: a still bar and a still arc, so the state is shown without movement. */
@media (prefers-reduced-motion: reduce) {
  .m3-linear[data-state="arriving"] {
    animation-duration: 150ms;
    animation-delay: 500ms;
  }

  .m3-linear[data-state="arriving"] .m3-linear__fill {
    transform: none;
  }

  .m3-linear__bar--1 {
    transform: scaleX(0.35);
  }

  .m3-linear__bar--2 {
    display: none;
  }

  .m3-circular__arc {
    stroke-dasharray: 28 57;
  }
}

/* ---------- Arrival: cards and illustrations ---------- */

/*
  On first paint, cards fade in and rise 12px, and illustrations follow 100 ms after their card: page sections start
  80 ms apart and cards within a list 50 ms apart. CSS alone runs it, so it needs no script, cannot be held up by
  one, and every card ends visible without one. Only transform and opacity move, so nothing shifts the layout.
  The fill mode is "backwards": once played, an element's own hover transform applies again. The script then marks
  the page settled, so a tab, view or form step shown later does not replay it; a section revealed below the fold
  replays it for its own cards. Selectors sit in :where() so an image skeleton (below) always takes precedence.
  Durations stay under half a second: decoration, never a wait.
*/
.page-body > :nth-child(2) {
  --vc-arrive-section: 80ms;
}

.page-body > :nth-child(3) {
  --vc-arrive-section: 160ms;
}

.page-body > :nth-child(4) {
  --vc-arrive-section: 240ms;
}

.page-body > :nth-child(n + 5) {
  --vc-arrive-section: 320ms;
}

.cards > :nth-child(2) {
  --vc-arrive-item: 50ms;
}

.cards > :nth-child(3) {
  --vc-arrive-item: 100ms;
}

.cards > :nth-child(4) {
  --vc-arrive-item: 150ms;
}

.cards > :nth-child(5) {
  --vc-arrive-item: 200ms;
}

.cards > :nth-child(n + 6) {
  --vc-arrive-item: 250ms;
}

@media (prefers-reduced-motion: no-preference) {
  :where(.page-body :is(.card, .banner):not(:is(.card, .banner) *)) {
    animation: vc-arrive 400ms var(--vc-ease-out) backwards;
    animation-delay: calc(var(--vc-arrive-section, 0ms) + var(--vc-arrive-item, 0ms));
  }

  :where(main img:not(.hero__art img), .hero__art) {
    animation: vc-arrive-illo 400ms var(--vc-ease-out) backwards;
    animation-delay: calc(var(--vc-arrive-section, 0ms) + var(--vc-arrive-item, 0ms) + 100ms);
  }

  .is-settled :where(.page-body :is(.card, .banner), main img, .hero__art) {
    animation: none;
  }

  .is-revealing :where(.card, .banner) {
    animation: vc-arrive-again 400ms var(--vc-ease-out) backwards;
    animation-delay: var(--vc-arrive-item, 0ms);
  }

  .is-revealing :where(img) {
    animation: vc-arrive-illo-again 400ms var(--vc-ease-out) backwards;
    animation-delay: calc(var(--vc-arrive-item, 0ms) + 100ms);
  }
}

/* The "again" copies differ only in name: a new name is what makes a browser start an animation over. */
@keyframes vc-arrive {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes vc-arrive-again {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes vc-arrive-illo {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes vc-arrive-illo-again {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ---------- Image skeletons ---------- */

/*
  While an image loads (the script adds .is-loading only to images not already complete), its reserved box shows a
  soft blue-tint skeleton with a highlight sweeping across. The sweep moves background-position, a repaint rather
  than a composite, because an <img> cannot hold a moving child; it costs one small box and stops at load.
  Under reduced motion the skeleton holds still.
*/
img.is-loading {
  border-radius: var(--vc-radius-card);
  background: linear-gradient(100deg, transparent 20%, rgb(255 255 255 / 0.75) 50%, transparent 80%) 150% 0 / 200% 100% no-repeat var(--vc-blue-tint);
}

@media (prefers-reduced-motion: no-preference) {
  img.is-loading {
    animation: vc-shimmer 1.4s linear infinite;
  }
}

@keyframes vc-shimmer {
  to {
    background-position: -50% 0;
  }
}

/* ---------- Home hero: still illustration with an optional looping clip ---------- */

/*
  The still is always there and is what loads first. The clip sits in the same grid cell at the same 2:1 size, so
  it covers the still exactly and shifts nothing; it fades in once it is actually playing. The pause button is
  visible whenever the clip is offered. Without the script, or under reduced motion or Save-Data, the clip and its
  button stay hidden and only the still shows.
*/
.hero-media {
  position: relative;
}

.hero-media > img,
.hero-media > video {
  grid-area: 1 / 1;
}

.hero-media__video {
  height: auto;
  opacity: 0;
}

.hero-media__video[hidden],
.hero-media__toggle[hidden] {
  display: none;
}

.hero-media.is-playing .hero-media__video {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-media__video {
    transition: opacity 400ms linear;
  }
}

.hero-media__toggle {
  position: absolute;
  right: var(--vc-space-2);
  bottom: var(--vc-space-2);
}

.hero-media__toggle .icon {
  width: 1rem;
  height: 1rem;
}

.hero-media__toggle[data-playing="false"] .icon--pause,
.hero-media__toggle:not([data-playing="false"]) .icon--play {
  display: none;
}

@media print {
  .hero-media__video,
  .hero-media__toggle {
    display: none;
  }
}

/*
  virtualconcepts.org: the contact form on /contact. Appended to site.css by the build, so it shares its tokens.
  Without script the form is one page of questions, with each purpose's own questions in a tinted group. With
  site/src/scripts/contact-form.js it shows one question per screen ([data-steps] on the form), with a Material 3
  determinate progress bar above and Back and Next below. Motion is transform and opacity only, and none of it
  runs under reduced motion.
*/

.cform-card {
  max-width: 52rem;
  padding: clamp(1.25rem, 0.75rem + 2.2vw, 2.5rem);
  scroll-margin-top: calc(var(--vc-bar) + var(--vc-space-4));
}

.cform {
  display: grid;
  gap: var(--vc-space-8);
}

.cform[hidden],
.form-done[hidden],
.cstep[hidden],
.branch[hidden] {
  display: none;
}

.cstep {
  display: grid;
  align-content: start;
  gap: var(--vc-space-4);
  min-width: 0;
}

.q {
  display: grid;
  gap: var(--vc-space-3);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.q__legend {
  margin-bottom: var(--vc-space-3);
  padding: 0;
}

.cstep__title {
  font-size: var(--vc-text-h3);
  line-height: var(--vc-leading-h3);
  text-wrap: balance;
}

/* Headings take focus only from the script, when a step opens; the question itself is the focus cue. */
.cstep__title:focus {
  outline: none;
}

.cstep__title label {
  cursor: pointer;
}

.field__opt {
  color: var(--vc-muted);
  font-weight: var(--vc-weight-regular);
}

.field__hint {
  max-width: var(--vc-measure);
  color: var(--vc-muted);
  font-size: var(--vc-text-card);
  line-height: var(--vc-leading-card);
}

.field__error {
  color: var(--vc-warning);
  font-size: var(--vc-text-card);
  font-weight: var(--vc-weight-semibold);
  line-height: 1.4;
}

/* ---------- Text boxes ---------- */

/* Controls are outlined in slate (7:1 on white), so the boundary never relies on the decorative divider. */
.input {
  width: 100%;
  max-width: 34rem;
  min-height: 3rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--vc-muted);
  border-radius: var(--vc-radius-item);
  background: var(--vc-card);
  color: var(--vc-navy);
  caret-color: var(--vc-blue);
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.4;
}

.input--area {
  max-width: none;
  min-height: 10rem;
  resize: vertical;
}

.input:hover {
  border-color: var(--vc-navy);
}

.input:focus-visible {
  outline: 2px solid var(--vc-blue);
  outline-offset: 0;
  border-color: var(--vc-blue);
}

.input[aria-invalid="true"] {
  border-color: var(--vc-warning);
  box-shadow: inset 0 0 0 1px var(--vc-warning);
}

/* ---------- Step 1: what the message is about, as large choice cards ---------- */

.purposes {
  display: grid;
  gap: var(--vc-space-3);
}

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

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

/* The whole card is the radio's label. The selected card is filled with the blue tint and ringed in blue; the
   ring is an inset shadow on top of the border, so selecting never moves anything. */
.purpose {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: var(--vc-space-1);
  padding: var(--vc-space-4);
  padding-right: 3rem;
  border: 1px solid var(--vc-divider);
  border-radius: var(--vc-radius-card);
  background: var(--vc-card);
  cursor: pointer;
  transition: transform var(--vc-duration-hover) var(--vc-ease-out);
}

.purpose:hover {
  border-color: var(--vc-blue);
}

.purpose:active {
  transform: scale(0.98);
}

.purpose:has(input:checked) {
  border-color: var(--vc-blue);
  background: var(--vc-blue-tint);
  box-shadow: inset 0 0 0 1px var(--vc-blue);
}

.purpose:has(input:focus-visible) {
  outline: 2px solid var(--vc-blue);
  outline-offset: 2px;
}

.purpose input {
  position: absolute;
  top: var(--vc-space-4);
  right: var(--vc-space-4);
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: var(--vc-blue);
  cursor: pointer;
}

.purpose input:focus-visible {
  outline: none;
}

.purpose__illo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  margin-bottom: var(--vc-space-2);
  object-fit: contain;
}

.purpose__title {
  font-size: 1.0625rem;
  font-weight: var(--vc-weight-semibold);
  line-height: 1.35;
}

.purpose__text {
  color: var(--vc-muted);
  font-size: var(--vc-text-card);
  line-height: var(--vc-leading-card);
}

/* On a phone the art sits beside the words, so all six cards fit in a short scroll. */
@media (max-width: 37.49rem) {
  .purpose:has(.purpose__illo) {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    column-gap: var(--vc-space-3);
  }

  .purpose__illo {
    grid-row: 1 / span 2;
    align-self: center;
    margin-bottom: 0;
  }
}

/* ---------- Other choices: one bordered row per answer ---------- */

.options {
  display: grid;
  gap: var(--vc-space-2);
  max-width: 34rem;
}

.option {
  display: flex;
  align-items: center;
  gap: var(--vc-space-3);
  min-height: 3rem;
  padding: 0.625rem var(--vc-space-4);
  border: 1px solid var(--vc-divider);
  border-radius: var(--vc-radius-card);
  background: var(--vc-card);
  font-size: 1rem;
  line-height: 1.4;
  cursor: pointer;
  transition: transform var(--vc-duration-hover) var(--vc-ease-out);
}

.option:hover {
  border-color: var(--vc-blue);
}

.option:active {
  transform: scale(0.99);
}

.option:has(input:checked) {
  border-color: var(--vc-blue);
  background: var(--vc-blue-tint);
  box-shadow: inset 0 0 0 1px var(--vc-blue);
}

.option:has(input:focus-visible) {
  outline: 2px solid var(--vc-blue);
  outline-offset: 2px;
}

.option input,
.choice input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: var(--vc-blue);
  cursor: pointer;
}

.option input:focus-visible {
  outline: none;
}

.q--choices[data-invalid] .option,
.q--choices[data-invalid] .purpose {
  border-color: var(--vc-warning);
}

/* ---------- Consent, the security check and the honeypot ---------- */

.choice {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--vc-space-3);
  max-width: var(--vc-measure);
  min-height: 2.75rem;
  padding-block: 0.625rem;
  font-size: 1rem;
  line-height: 1.5;
  cursor: pointer;
}

.choice input {
  margin-top: 0.125rem;
}

.field--consent[data-invalid] .choice input {
  outline: 2px solid var(--vc-warning);
  outline-offset: 1px;
}

/* Turnstile's widget is 65 px tall; the space is kept so nothing moves when it draws. */
.form__check {
  min-height: 4.0625rem;
}

/* The honeypot: off screen and out of the accessibility tree; people never see or reach it. */
.form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Without script: each purpose's questions in a tinted group ---------- */

.branch {
  display: grid;
  gap: var(--vc-space-6);
  min-width: 0;
  margin: 0;
  padding: var(--vc-space-5);
  border: 0;
  border-radius: var(--vc-radius-card);
  background: var(--vc-page);
}

.branch__legend {
  float: left;
  width: 100%;
  margin-bottom: var(--vc-space-4);
  padding: 0;
  color: var(--vc-navy);
  font-size: var(--vc-text-card);
  font-weight: var(--vc-weight-semibold);
}

.branch__legend + * {
  clear: both;
}

.cform__send {
  padding-top: var(--vc-space-5);
  border-top: 1px solid var(--vc-divider);
}

/* ---------- With script: one question per screen ---------- */

/* Block flow, not grid: the hidden steps and the other purposes' groups are still in the form, and a grid would
   leave a gap for each of them. Only the head, the open step and the buttons take space. */
.cform[data-steps]:not([hidden]) {
  display: block;
}

.cform[data-steps] .cstep {
  min-height: 15rem;
  margin-block: var(--vc-space-6) var(--vc-space-7);
}

.cform[data-steps] .cstep__title {
  font-size: clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.cform[data-steps] .branch {
  display: block;
  padding: 0;
  background: none;
}

.cform[data-steps] .branch[hidden] {
  display: none;
}

.cform__head {
  display: grid;
  gap: var(--vc-space-2);
}

.cform__count {
  color: var(--vc-muted);
  font-size: var(--vc-text-meta);
  font-weight: var(--vc-weight-semibold);
  font-variant-numeric: tabular-nums;
  line-height: var(--vc-leading-meta);
}

/*
  Material 3 linear progress indicator, determinate. The active indicator ends at the progress point, then a 4px
  gap, then the inactive track, which ends in a 4px stop dot. Both bars keep their rounded ends because they move
  (translate) rather than stretch; --p (0 to 1) is set by the script.
*/
.m3-progress {
  --p: 0;
  position: relative;
  height: 4px;
  overflow: hidden;
}

.m3-progress__active,
.m3-progress__track {
  position: absolute;
  inset: 0;
  border-radius: 2px;
}

.m3-progress__active {
  background: var(--vc-blue);
  transform: translateX(calc((var(--p) - 1) * 100% - 2px));
}

.m3-progress__track {
  background: var(--vc-selection);
  transform: translateX(calc(var(--p) * 100% + 2px));
}

.m3-progress__stop {
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--vc-blue);
}

@media (prefers-reduced-motion: no-preference) {
  .m3-progress__active,
  .m3-progress__track {
    transition: transform var(--vc-duration-fill) var(--vc-ease-out);
  }
}

.cform__alert {
  margin-top: var(--vc-space-5);
  padding: var(--vc-space-3) var(--vc-space-4);
  border: 2px solid var(--vc-warning);
  border-radius: var(--vc-radius-item);
  color: var(--vc-navy);
  font-size: var(--vc-text-card);
  font-weight: var(--vc-weight-medium);
}

.cform__alert[hidden] {
  display: none;
}

.cform__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--vc-space-3);
  padding-top: var(--vc-space-5);
  border-top: 1px solid var(--vc-divider);
}

.cform__nav [hidden] {
  display: none;
}

.cform__nav .btn[aria-disabled="true"] {
  opacity: 0.8;
  cursor: progress;
}

.cform__keys {
  color: var(--vc-muted);
  font-size: var(--vc-text-meta);
}

@media (hover: none) {
  .cform__keys {
    display: none;
  }
}

@media (max-width: 37.49rem) {
  .cform__nav .btn {
    flex: 1 1 8rem;
  }
}

/* ---------- Check your answers ---------- */

.review {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--vc-divider);
}

.review__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label action"
    "value value";
  column-gap: var(--vc-space-4);
  align-items: center;
  padding-block: var(--vc-space-2);
  border-bottom: 1px solid var(--vc-divider);
}

@media (min-width: 48rem) {
  .review__row {
    grid-template-columns: 11rem minmax(0, 1fr) auto;
    grid-template-areas: "label value action";
    align-items: baseline;
  }
}

.review__label {
  grid-area: label;
  font-size: var(--vc-text-card);
  font-weight: var(--vc-weight-semibold);
}

.review__value {
  grid-area: value;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.review__value--none {
  color: var(--vc-muted);
}

.review__action {
  grid-area: action;
  margin: 0;
}

.review__change {
  min-height: 2.75rem;
  padding: 0 var(--vc-space-1);
  border: 0;
  background: none;
  color: var(--vc-blue);
  font: inherit;
  font-size: var(--vc-text-card);
  font-weight: var(--vc-weight-semibold);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.review__change:hover {
  color: var(--vc-blue-dark);
}

.review__change:focus-visible {
  outline: 2px solid var(--vc-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Sent ---------- */

.form-done {
  display: grid;
  justify-items: start;
  gap: var(--vc-space-3);
}

.form-done:focus {
  outline: none;
}

.form-done__illo {
  width: 8rem;
  height: auto;
}

.form-done__title {
  font-size: var(--vc-text-h2);
  line-height: var(--vc-leading-h2);
}

.form-done .card__text {
  color: var(--vc-navy);
}

.forms__note {
  max-width: var(--vc-measure);
  margin-top: var(--vc-space-6);
  color: var(--vc-muted);
  font-size: var(--vc-text-card);
}

/* ---------- Reduced motion, forced colours ---------- */

@media (prefers-reduced-motion: reduce) {
  .purpose:active,
  .option:active {
    transform: none;
  }
}

@media (forced-colors: active) {
  .m3-progress__active,
  .m3-progress__stop {
    background: Highlight;
  }

  .m3-progress__track {
    background: GrayText;
  }

  .purpose:has(input:checked),
  .option:has(input:checked) {
    outline: 2px solid Highlight;
  }
}
