/* ============================================
   Access100 -Main Stylesheet
   WordPress Block Theme
   Design System: UI UX Pro Max -Accessible & Ethical
   ============================================ */

/* --- Self-Hosted Fonts --- */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('../fonts/atkinson-hyperlegible-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('../fonts/atkinson-hyperlegible-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #0F172A;
  --color-primary-end: #1E293B;   /* second stop of the dark gradients */
  --color-secondary: #334155;
  --color-cta: #1E40AF;
  --color-cta-hover: #1a3690;
  --color-background: #F8FAFC;
  --color-text: #020617;
  --color-white: #FFFFFF;
  --color-success: #22c55e;       /* decorative only: 2.3:1 on white */
  --color-success-text: #15803D;  /* green that carries meaning: 5:1 */
  --color-surface-alt: #F1F5F9;
  --color-border: #CBD5E1;        /* decorative card and rule borders */
  --color-border-input: #6B7280;  /* form field borders: 4.8:1 (WCAG 1.4.11) */
  --color-muted: #374151;
  --color-warning: #F59E0B;
  --color-warning-surface: #FEF3C7;
  --color-success-surface: #DCFCE7;
  --color-danger: #EF4444;        /* borders and icons only */
  --color-danger-text: #B91C1C;   /* error text and the required marker: 6.5:1 */
  --color-info-surface: #EFF6FF;

  /* Typography */
  --font-heading: 'Atkinson Hyperlegible', system-ui, -apple-system, sans-serif;
  --font-body: 'Atkinson Hyperlegible', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --content-width: 800px;
  --header-height: 110px;         /* a minimum: the header grows with text size */
  --border-radius: 8px;
  --radius-sm: 6px;
  --measure: 68ch;                /* comfortable line length (WCAG 1.4.8) */
  --transition: 200ms ease;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 5rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  /* Anchor targets and focused items land below the sticky header instead
     of under it (WCAG 2.4.11). */
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-cta);
  text-decoration: underline;
  transition: color var(--transition);
  cursor: pointer;
}

a:hover {
  color: var(--color-primary);
}

/* --- Focus Styles (WCAG AAA) --- */
:focus-visible {
  outline: 3px solid var(--color-cta);
  outline-offset: 3px;
  border-radius: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Focus ring on dark surfaces.
   The default --color-cta ring (#1E40AF) is only 1.68:1 against the hero
   gradient and 2.05:1 against the #0F172A footer - below the 3:1 that
   WCAG 2.2 SC 1.4.11 requires of a focus indicator. White is 17.85:1
   there. Measured in-browser, not estimated. */
.hero :focus-visible,
.page-header :focus-visible,
.cta-section :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--color-white);
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  z-index: 9999;
  font-weight: 700;
  text-decoration: none;
  transition: top var(--transition);
}

.skip-link:focus {
  top: var(--space-md);
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-4xl) var(--space-lg);
}

.section--alt {
  background-color: var(--color-surface-alt);
}

/* Constrain section content.
   WordPress supplied this through is-layout-constrained, which generated
   `max-width: <contentSize>; margin-inline: auto` on every direct child of a
   .hero / .page-header / .section. main.css only ever set padding, so without
   it the static build runs full-bleed and .card-grid gains a fourth column
   above roughly 1300px.

   The children are constrained rather than the section itself, so
   .section--alt, .hero and .page-header keep their full-bleed backgrounds.
   Sizes are taken from the block templates: 1200px throughout, 600px for the
   CTA blocks. */
.hero > *,
.page-header > *,
.section > * {
  max-width: var(--max-width);
  margin-inline: auto;
}

/* NB: a `margin:` shorthand on any direct child of these wrappers will reset
   the inline margins above and knock that child out of alignment - it is one
   class more specific than the `> *` selector. Use `margin: <v> auto <v>`.
   `npm run audit:layout` fails the build-check if anything drifts. */

.section.cta-section > * {
  max-width: 600px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.25rem;
  color: var(--color-secondary);
  line-height: 1.8;
}

/* --- Header --- */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  /* min-height, not height: with text enlarged to 200% the header grows
     instead of clipping the nav (WCAG 1.4.4). */
  min-height: var(--header-height);
}

/* On a short viewport (a phone on its side, or 400% zoom) a sticky header
   would cover too much of the page, so it scrolls away with the content.
   relative, not static: the header must stay the positioned ancestor of the
   collapsed menu, or that menu's top: 100% is measured from the viewport and
   it opens a full screen down, below the hero. */
@media (max-height: 30em) {
  .site-header {
    position: relative;
  }
  html {
    scroll-padding-top: 1rem;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.site-logo,
.site-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo svg,
.site-logo img,
.site-logo-link svg {
  height: 80px;
  width: auto;
  color: var(--color-primary);
}

/* --- Navigation --- */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-xs);
  align-items: center;
}

.nav-list a,
.submenu-toggle {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 44px;
  padding: var(--space-sm) 0.75rem;
  color: var(--color-secondary);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  border-radius: var(--border-radius);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}

.nav-list a:hover,
.submenu-toggle:hover,
.nav-list a[aria-current="page"],
.submenu-toggle.is-current-section {
  background: var(--color-surface-alt);
  color: var(--color-primary);
}

/* .is-current-section marks the group button whose list holds the current
   page, which is otherwise hidden while the list is closed. */
.nav-list a[aria-current="page"],
.submenu-toggle.is-current-section {
  color: var(--color-cta);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

/* --- Submenus: button disclosures at every width --- */
.has-submenu {
  position: relative;
}

.submenu-toggle {
  background: none;
  border: none;
}

.submenu-toggle svg {
  flex-shrink: 0;
  transition: transform var(--transition);
}

.submenu-toggle[aria-expanded="true"] {
  background: var(--color-surface-alt);
  color: var(--color-primary);
}

.submenu-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.nav-submenu {
  display: none;
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  list-style: none;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  min-width: 16rem;
  padding: var(--space-xs) 0;
  z-index: 100;
}

.submenu-toggle[aria-expanded="true"] + .nav-submenu {
  display: block;
}

.nav-submenu li a {
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  border-radius: 0;
}

/* The header's call to action: the one button-styled item in the menu. */
.nav-list .nav-cta a {
  background: var(--color-cta);
  color: var(--color-white);
  padding: var(--space-sm) var(--space-md);
  margin-left: var(--space-xs);
}

.nav-list .nav-cta a:hover {
  background: var(--color-cta-hover);
  color: var(--color-white);
}

.nav-list .nav-cta a[aria-current="page"] {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--space-sm);
  background: none;
  border: 2px solid var(--color-border-input);
  border-radius: var(--border-radius);
  cursor: pointer;
  padding: var(--space-sm) 0.75rem;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  min-width: 44px;
  min-height: 44px;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.nav-toggle .close-icon {
  display: none;
}

.nav-toggle[aria-expanded="true"] .hamburger-icon {
  display: none;
}

.nav-toggle[aria-expanded="true"] .close-icon {
  display: block;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  min-block-size: 44px;
}

.btn-primary {
  background: var(--color-cta);
  color: var(--color-white);
  border-color: var(--color-cta);
}

.btn-primary:hover {
  background: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* White outline is for the dark hero. On a light section the outline
   button takes the primary colour instead. */
.section .btn-outline {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.section .btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-secondary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-white);
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-end) 100%);
  color: var(--color-white);
  padding: 6rem var(--space-lg);
  text-align: left;
}

.hero h1,
.hero .hero-heading {
  color: var(--color-white);
  /* Scales with the viewport, and a long word wraps instead of being cut
     off at 320px (WCAG 1.4.10). */
  font-size: clamp(1.75rem, 4vw + 1rem, 3rem);
  overflow-wrap: break-word;
  margin-bottom: 1.25rem;
}

/* A short line above the hero heading: who we are, in a few words. */
.eyebrow {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-sm);
}

.hero-note {
  margin-top: var(--space-xl);
  color: rgba(255, 255, 255, 0.9);
}

.hero .lead {
  color: rgba(255, 255, 255, 0.9);
  /* `auto` on the inline sides, not 0. This is a constrained child of .hero,
     and a margin shorthand with 0 here outranks the `margin-inline: auto` in
     the constraint block, which left the paragraph pinned to the padding
     edge while the h1 and buttons above and below it stayed centred. */
  margin: 0 auto 2.5rem;
  font-size: 1.3rem;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17em), 1fr));
  gap: var(--space-xl);
}

.card-grid + p {
  margin-top: var(--space-xl);
}

/* Text links on the dark hero and page header. The default link blue is
   too dark to read there. */
.hero a:not(.btn),
.page-header a:not(.btn) {
  color: var(--color-white);
}

.card {
  /* Grid items default to min-width:auto, which refuses to shrink below the
     item's content. .card is itself a grid (see .card:has(.card-icon)), so at
     390px its track held 378px inside a 342px container and the page scrolled
     sideways by 12px. */
  min-width: 0;
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
  border: 1px solid var(--color-border);
}

/* Only a card that holds a link reacts to the pointer. A lift on a card
   that does nothing suggests it can be clicked. */
.card:has(a):hover {
  box-shadow: var(--shadow-lg);
}

.section-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
  position: relative;
  top: -2px;
}

.page-header .section-icon {
  stroke: #fff;
}

.card:has(.card-icon) {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0 var(--space-lg);
  /* A card stretched to its row's height would otherwise share the spare
     height out between its rows, opening gaps between heading and text. */
  align-content: start;
}

.card:has(.card-icon) > *:not(.card-icon) {
  grid-column: 2;
}

.card-icon {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: start;
  position: relative;
  top: 0.5rem;
}

.card h3,
.card h4 {
  margin-bottom: 0.75rem;
  overflow-wrap: break-word;
}

.card ul,
.card-features {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 0;
}

.card ul li,
.card-features li {
  padding: 0.25rem 0 0.25rem 1.5rem;
  position: relative;
}

.card ul li::before,
.card-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
}

.card .card-meta {
  margin-top: var(--space-md);
  font-style: italic;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* --- Problem Section --- */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.problem-list {
  list-style: none;
  padding: 0;
}

.problem-list li {
  padding: 0.75rem 0 0.75rem 2rem;
  position: relative;
  font-size: 1.1rem;
}

.problem-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
}

/* --- Featured Project --- */
.featured-project {
  background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
  padding: var(--space-4xl) 0;
}

.featured-project h2 {
  text-align: center;
  margin-bottom: var(--space-sm);
}

.featured-project .lead {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.project-badge {
  display: inline-block;
  background: var(--color-cta);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: middle;
  margin-left: 0.75rem;
}

.project-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.project-header h2 {
  margin-bottom: 0;
}

.project-detail h3 {
  margin-top: var(--space-xl);
}

/* --- Transparency Callout --- */
.callout {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-end) 100%);
  color: var(--color-white);
  border-radius: var(--border-radius);
  padding: var(--space-2xl);
  text-align: center;
}

.callout h2 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.callout p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto var(--space-xl);
  font-size: 1.1rem;
}

.callout ul {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 500px;
  margin: 0 auto var(--space-xl);
}

.callout ul li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  color: rgba(255, 255, 255, 0.9);
}

.callout ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
}

/* --- CTA Section ---
   A full-width dark band that closes the page, so it never sits on the
   same background as the section above it. */
.cta-section {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-end) 100%);
  color: var(--color-white);
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  color: rgba(255, 255, 255, 0.9);
}

.cta-section .hero-actions {
  justify-content: center;
}

.cta-section a:not(.btn) {
  color: var(--color-white);
}

/* On the dark band the primary button turns white, so it stands out from
   the band instead of blending into it. */
.cta-section .btn-primary {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-primary);
}

.cta-section .btn-primary:hover {
  background: var(--color-surface-alt);
  border-color: var(--color-surface-alt);
  color: var(--color-primary);
}

.section.cta-section .btn-outline {
  color: var(--color-white);
  border-color: var(--color-white);
}

.section.cta-section .btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* --- Page Header --- */
.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-end) 100%);
  color: var(--color-white);
  padding: 6rem var(--space-lg);
  text-align: left;
}

.page-header h1 {
  color: var(--color-white);
  font-size: clamp(1.75rem, 4vw + 1rem, 3rem);
  overflow-wrap: break-word;
  margin-bottom: 1.25rem;
}

.page-header .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.3rem;
}

/* --- Content Sections --- */
.content-section {
  max-width: var(--content-width);
  margin: 0 auto;
}

.values-list {
  list-style: none;
  padding: 0;
}

.values-list li {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.values-list li:last-child {
  border-bottom: none;
}

.values-list strong {
  color: var(--color-primary);
}

/* --- Board Members --- */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12em), 1fr));
  gap: var(--space-lg);
}

.board-member {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  text-align: center;
}

.board-member h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.board-member .role {
  color: var(--color-cta);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
}

.board-member p {
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* --- Services Detail --- */
.service-block {
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--color-border);
}

.service-block:last-child {
  border-bottom: none;
}

.service-block h2,
.service-block h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.service-block ul,
.service-features {
  list-style: none;
  padding: 0;
  /* `auto`, not 0: as a direct child of .section this list must keep the
     centred column the `.section > *` rule gives it (see the NB above). */
  margin: var(--space-md) auto;
}

.service-block ul li,
.service-features li {
  padding: var(--space-sm) 0 var(--space-sm) 1.5rem;
  position: relative;
}

.service-block ul li::before,
.service-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
}

.service-audience {
  font-style: italic;
  color: var(--color-muted);
  margin-top: var(--space-sm);
}

/* --- Transparency Documents --- */
.doc-group {
  margin-bottom: var(--space-2xl);
}

.doc-group h3 {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-cta);
}

.doc-list {
  list-style: none;
  padding: 0;
}

.doc-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.doc-list li:last-child {
  border-bottom: none;
}

/* --- Forms --- */
.form-group {
  margin-bottom: var(--space-lg);
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--color-primary);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-border-input);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--color-cta);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.4);
  outline: 3px solid var(--color-cta);
  outline-offset: 2px;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.field-error {
  display: block;
  color: var(--color-danger-text);
  font-size: 1rem;
  font-weight: 700;
  margin-top: var(--space-xs);
}

.field-error:empty {
  display: none;
}

.form-hint {
  display: block;
  font-size: 1rem;
  color: var(--color-muted);
  margin-top: var(--space-xs);
  margin-bottom: var(--space-xs);
}

/* The asterisk is for sighted readers. A screen reader already hears
   "required" from aria-required, so the alt text after the slash is empty
   and it does not also say "star". */
.required::after {
  content: " *";
  content: " *" / "";
  color: var(--color-danger-text);
}

/* A row of radio buttons or checkboxes inside a fieldset. */
.choice-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  margin-top: var(--space-xs);
}

.choice-list label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 400;
  min-height: 44px;
  margin: 0;
  cursor: pointer;
}

.choice-list input {
  width: 1.5rem;
  height: 1.5rem;
  accent-color: var(--color-cta);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 400;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--color-primary);
}

.form-layout {
  max-width: 700px;
  margin: 0 auto;
}

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

.form-grid .form-group--full {
  grid-column: 1 / -1;
}

/* A group of related fields: the legend names the group, and the fields
   keep the two-column grid inside it. */
.form-fieldset {
  border: 1px solid var(--color-border-input);
  border-radius: 6px;
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  margin: 0;
  min-width: 0;
}

.form-fieldset .form-group {
  margin-bottom: 0;
}

.form-fieldset legend {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-primary);
  padding: 0 var(--space-sm);
}

/* Numbered steps, such as how a request is handled. */
.steps-list {
  padding-left: 1.5rem;
  margin: var(--space-md) auto;
}

.steps-list li {
  padding: var(--space-sm) 0;
}

.form-status {
  grid-column: 1 / -1;
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-sm);
}

.form-status p {
  font-weight: 700;
}

.form-status__heading {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  color: inherit;
}

.form-status ul {
  padding-left: 1.25rem;
}

.form-status a {
  color: inherit;
  font-weight: 700;
}

.form-status:empty {
  display: none;
}

.form-status--success {
  background: #dcfce7;
  color: #166534;
  border: 2px solid #22c55e;
}

.form-status--error {
  background: #fef2f2;
  color: #991b1b;
  border: 3px solid var(--color-danger-text);
}

/* --- Contact Layout --- */
.contact-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-info-card {
  background: var(--color-surface-alt);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
}

.contact-info-card h2 {
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
}

.contact-detail {
  margin-bottom: 1.25rem;
}

.contact-detail h3 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

/* --- Mailing List --- */
.mailing-list-section {
  background: var(--color-surface-alt);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  margin-top: var(--space-2xl);
}

.mailing-list-section h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

/* --- Placeholder Notice --- */
.placeholder-notice {
  background: var(--color-warning-surface);
  border: 1px solid var(--color-warning);
  border-radius: var(--border-radius);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-xl);
  font-size: 0.95rem;
}

.placeholder-notice strong {
  color: #92400E;
}

/* --- Coming Soon Badge --- */
.badge-soon {
  display: inline-block;
  background: var(--color-muted);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: middle;
  margin-left: var(--space-sm);
}

/* --- Draft Badge --- */
.badge-draft {
  display: inline-block;
  background: var(--color-warning-surface);
  color: #78350F;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--color-warning);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: middle;
  margin-left: var(--space-sm);
}

/* --- Footer --- */
.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-2xl) var(--space-lg) var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-xl);
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--space-lg);
}

.footer-brand .footer-tagline {
  font-size: 1rem;
  margin-top: var(--space-md);
  max-width: 350px;
  color: rgba(255, 255, 255, 0.85);
}

.site-footer h4,
.footer-heading {
  color: var(--color-white) !important;
  font-size: 1rem;
  margin-bottom: var(--space-md);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: var(--space-xs);
  color: rgba(255, 255, 255, 0.9);
}

.footer-links a {
  display: inline-block;
  padding: 0.25rem 0;
  min-height: 24px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  font-size: 1rem;
  transition: color var(--transition);
  cursor: pointer;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  flex-wrap: wrap;
  gap: var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.footer-bottom a {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom a:hover {
  color: var(--color-white);
  text-decoration-thickness: 2px;
}

/* --- Line Length Constraint (WCAG 1.4.8) ---
   Prose stays left-aligned in the 1200px column but stops at about 68
   characters. The padding takes up whatever the column has beyond that, so
   the text lines up with the heading above it. */
.section:not(.cta-section) > p,
.section > ul:not(.card-grid),
.section > ol:not(.stage-steps):not(.service-path),
.hero > .lead,
.page-header > .lead,
.page-header > p {
  padding-inline-end: max(0px, calc(min(100%, var(--max-width)) - var(--measure)));
}

.card p,
.content-section p,
.service-block p,
.values-list li,
.doc-group p,
.policy-content li {
  max-width: var(--measure);
}

/* --- Card Header Row (badge outside heading) --- */
.card-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs) var(--space-sm);
}

.card-header-row h3 {
  margin-bottom: 0;
}

/* --- Card Icon Color --- */
.card-icon {
  color: var(--color-success);
}

/* --- Card Link --- */
.card-link {
  display: inline-block;
  margin-top: var(--space-md);
  font-weight: 700;
  color: var(--color-cta);
  text-decoration: none;
  transition: color var(--transition);
}
.card-link:hover { color: var(--color-primary); }

/* --- Breadcrumb Back Link --- */
.breadcrumb-back {
  display: inline-block;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
  transition: color var(--transition);
}
.breadcrumb-back:hover { color: #fff; }

/* --- Policy Content --- */
.policy-content ul {
  list-style: disc;
  padding-left: 2rem;
  /* auto, not 0: this ul is a direct child of .section, so a 0 here
     outranks the constraint block's margin-inline and pins it left. */
  margin: var(--space-sm) auto var(--space-md);
}

.policy-content li {
  margin-bottom: var(--space-xs);
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-center {
  text-align: center;
}

.mt-2 { margin-top: var(--space-xl); }
.mt-3 { margin-top: var(--space-2xl); }
.mb-2 { margin-bottom: var(--space-xl); }
.mb-3 { margin-bottom: var(--space-2xl); }

/* --- Responsive ---
   Breakpoints are in em, so they follow the reader's text size as well as
   the window. With text at 200% the full menu no longer fits, and the
   em breakpoint collapses it to the Menu button instead of letting the
   page scroll sideways (WCAG 1.4.4, 1.4.10).

   The desktop menu needs about 1,000px at default text size; 72em (1152px)
   leaves headroom so renaming an item does not bring the overflow back. */
@media (max-width: 72em) {
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a,
  .submenu-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.75rem var(--space-md);
    font-size: 1.125rem;
    text-align: left;
  }

  .nav-submenu {
    position: static;
    border: none;
    border-left: 3px solid var(--color-border);
    border-radius: 0;
    box-shadow: none;
    min-width: 0;
    padding: 0;
    margin: 0 0 var(--space-sm) var(--space-md);
  }

  .nav-submenu li a {
    font-size: 1.0625rem;
  }

  .nav-list .nav-cta a {
    justify-content: center;
    margin: var(--space-sm) 0 0;
  }
}

@media (max-width: 60em) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.625rem; }
}

@media (max-width: 48em) {
  .hero {
    padding: var(--space-3xl) var(--space-lg);
  }

  .page-header {
    padding: var(--space-3xl) var(--space-lg);
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: var(--space-2xl) var(--space-lg);
  }
}

@media (max-width: 30em) {
  .hero .lead {
    font-size: 1.1rem;
  }

  .site-logo svg,
  .site-logo-link svg {
    height: 64px;
  }

  .header-inner,
  .section,
  .hero,
  .page-header {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .card {
    padding: var(--space-lg);
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  /* On a phone the icon sits above the heading, so the text gets the full
     width of the card instead of a narrow column beside a 40px icon. */
  .card:has(.card-icon) {
    grid-template-columns: 1fr;
  }

  .card:has(.card-icon) > *:not(.card-icon) {
    grid-column: 1;
  }

  .card-icon {
    grid-row: auto;
    top: 0;
    margin-bottom: var(--space-sm);
  }

  .board-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Windows high contrast and other forced-colors modes ---
   The logo's ring and "100" are drawn in a fixed green, which can vanish
   against the system background, so they take the system text colour. */
@media (forced-colors: active) {
  .site-logo svg,
  .footer-brand svg {
    color: CanvasText;
  }
  .logo-accent {
    fill: CanvasText;
    stroke: CanvasText;
  }
  .logo-accent[fill="none"] {
    fill: none;
  }
  .card-icon,
  .callout-deadline {
    forced-color-adjust: auto;
  }
  .btn,
  .nav-toggle,
  .submenu-toggle {
    border: 2px solid ButtonText;
  }
}

/* --- Print ---
   People print service pages and policies for boards. Navigation and
   buttons are dropped, the header stops sticking, and links print their
   address so the paper copy still says where to go. */
@media print {
  .skip-link,
  .main-nav,
  .site-footer .footer-links-col,
  .hero-actions,
  .stage-pager,
  .next-steps,
  .form-layout form {
    display: none !important;
  }

  .site-header {
    position: static;
    border: none;
  }

  .hero,
  .page-header,
  .cta-section,
  .site-footer {
    background: none !important;
    color: #000 !important;
  }

  .hero *,
  .page-header *,
  .cta-section *,
  .site-footer * {
    color: #000 !important;
  }

  .section {
    padding: 1rem 0;
  }

  .card,
  .callout-deadline,
  .service-path__item {
    break-inside: avoid;
    box-shadow: none;
  }

  main a[href^="http"]::after,
  main a[href^="/"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    font-weight: 400;
  }
}


/* ============================================
   Components added October 2026
   ============================================ */

/* --- Deadline callout ---
   A plain, static notice. It carries a text label, not colour alone, and it
   never counts down: a ticking timer adds motion and pressure, not facts. */
.callout-deadline {
  border-left: 6px solid var(--color-cta);
  background: var(--color-info-surface);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  padding: var(--space-lg) var(--space-xl);
}

.callout-deadline__label {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.callout-deadline p {
  max-width: var(--measure);
}

.section > .callout-deadline + * {
  margin-top: var(--space-xl);
}

/* --- Stage steps: the free review, then three stages, in order --- */
.stage-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.stage-steps > li {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 6px solid var(--color-cta);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
}

.stage-steps > li.stage-steps__start {
  border-top-color: var(--color-success-text);
}

.stage-steps__label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-muted);
  margin-bottom: var(--space-xs);
}

.stage-steps h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.stage-steps p {
  margin-bottom: var(--space-sm);
}

.stage-steps .card-link {
  margin-top: auto;
  padding-top: var(--space-sm);
}

/* --- Stage pager: previous and next stage, named --- */
.stage-pager ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
}

.stage-pager a {
  display: inline-flex;
  flex-direction: column;
  gap: 0.125rem;
  min-height: 44px;
  padding: var(--space-md) var(--space-lg);
  border: 2px solid var(--color-border-input);
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 700;
}

.stage-pager a:hover {
  border-color: var(--color-cta);
  background: var(--color-info-surface);
}

.stage-pager__dir {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-muted);
}

.stage-pager .stage-pager__next {
  margin-left: auto;
  text-align: right;
}

/* --- Breadcrumbs, inside the dark page header --- */
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: 1rem;
}

.breadcrumbs li + li::before {
  content: "/";
  content: "/" / "";
  margin-right: var(--space-sm);
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumbs a {
  display: inline-block;
  min-height: 24px;
  color: var(--color-white);
  text-underline-offset: 0.2em;
}

.breadcrumbs [aria-current="page"] {
  color: rgba(255, 255, 255, 0.9);
}

/* --- Screen reader transcript ---
   Word for word what NVDA said. Lines wrap, so it reflows at 320px. */
.transcript {
  margin: var(--space-lg) auto;
  border: 1px solid var(--color-border);
  border-left: 6px solid var(--color-primary);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  background: var(--color-white);
  padding: var(--space-lg);
}

.transcript figcaption {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.transcript__lines {
  list-style: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1rem;
  line-height: 1.6;
}

.transcript__lines li {
  padding: 0.125rem 0;
  overflow-wrap: anywhere;
}

.transcript__flag {
  background: var(--color-warning-surface);
  outline: 1px solid var(--color-warning);
}

.transcript__fixed {
  background: var(--color-success-surface);
  outline: 1px solid var(--color-success-text);
}

.transcript__label {
  font-weight: 700;
  margin: var(--space-md) 0 var(--space-xs);
}

.transcript__note {
  margin-top: var(--space-md);
  font-size: 1rem;
}

/* --- FAQ: native details and summary --- */
.faq {
  margin-top: var(--space-lg);
}

.faq details {
  border: 1px solid var(--color-border-input);
  border-radius: var(--border-radius);
  background: var(--color-white);
  margin-bottom: var(--space-sm);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 44px;
  padding: var(--space-md) var(--space-lg);
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  content: "+" / "";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-cta);
}

.faq details[open] summary::after {
  content: "\2212";
  content: "\2212" / "";
}

.faq details > *:not(summary) {
  padding: 0 var(--space-lg) var(--space-md);
  max-width: var(--measure);
}

/* --- Facts list: label and value pairs --- */
.facts {
  display: grid;
  grid-template-columns: minmax(10rem, max-content) 1fr;
  gap: 0;
  border-top: 1px solid var(--color-border);
}

.facts dt,
.facts dd {
  padding: var(--space-md) var(--space-md) var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.facts dt {
  font-weight: 700;
  color: var(--color-primary);
}

@media (max-width: 40em) {
  .facts {
    grid-template-columns: 1fr;
  }
  .facts dt {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* --- On this page --- */
.page-toc {
  background: var(--color-surface-alt);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
}

.page-toc h2 {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.page-toc ul {
  list-style: none;
  columns: 15rem 2;
  column-gap: var(--space-xl);
}

.page-toc li {
  break-inside: avoid;
}

.page-toc a {
  display: inline-block;
  min-height: 24px;
  padding: 0.25rem 0;
}

/* --- Contact options --- */
.contact-options {
  list-style: none;
}

.contact-options li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-options li:last-child {
  border-bottom: none;
}

.contact-options strong {
  display: block;
  color: var(--color-primary);
}

/* --- Section intro: a short lead under an h2 --- */
.section-intro {
  font-size: 1.125rem;
  color: var(--color-secondary);
}

.footer-brand svg {
  color: var(--color-white);
}

.page-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
}

.page-header-row h1 {
  margin-bottom: 0;
}

.page-header-row + .lead {
  margin-top: 1.25rem;
}

.form-fieldset .form-fieldset {
  margin-top: var(--space-lg);
}

.form-next-heading {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

/* <main> takes focus from the skip link (tabindex="-1"), so the next Tab
   continues inside it. It is a landmark, not a control, so it shows no ring. */
main:focus {
  outline: none;
}

/* --- Label and value pairs inside a card --- */
.card-facts {
  margin: var(--space-md) 0;
}

.card-facts > div {
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--color-border);
}

.card-facts dt {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-muted);
}

.card-facts dd {
  margin: 0;
}

/* --- Requirements and term lists: description lists in place of tables ---
   Each requirement is a name, its section, and one plain sentence, at a
   comfortable reading width, so it reads in order with no columns. */
.requirements,
.term-list {
  max-width: var(--measure);
  margin-top: var(--space-md);
}

.requirements > div,
.term-list > div {
  padding: var(--space-md) 0 var(--space-md) var(--space-lg);
  border-left: 4px solid var(--color-cta);
  margin-bottom: var(--space-md);
  background: var(--color-white);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  padding-right: var(--space-lg);
}

.requirements dt,
.term-list dt {
  font-weight: 700;
  color: var(--color-primary);
}

.requirements .cite {
  font-weight: 400;
  color: var(--color-muted);
  margin-left: var(--space-xs);
}

.requirements dd,
.term-list dd {
  margin: var(--space-xs) 0 0;
}

/* A wide data table scrolls inside its own labelled region on a narrow
   screen, so the page itself never scrolls sideways (WCAG 1.4.10 exempts
   data tables from reflow, not the page around them). The region takes
   focus so keyboard users can scroll it; the global ring shows focus.
   Used by the governance documents, such as the strategic plan. */
.table-scroll {
  overflow-x: auto;
  max-width: 100%;
}

/* Comparison table on site pages (Who We Work With). Borders use the
   form-field grey (4.8:1) so the grid is visible, not decorative. The
   caption stays visible: it says what the table compares and when. */
.rules-table {
  width: 100%;
  min-width: 36em;
  border-collapse: collapse;
  margin-top: var(--space-lg);
  background: var(--color-white);
}

.rules-table caption {
  text-align: left;
  font-weight: 700;
  padding-bottom: var(--space-sm);
}

.rules-table th,
.rules-table td {
  border: 1px solid var(--color-border-input);
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  vertical-align: top;
}

.rules-table thead th {
  background: var(--color-surface-alt);
}

.table-scroll + p {
  margin-top: var(--space-lg);
}

/* --- Service path: the three accessibility services, in order ---
   A numbered list (ol) so the order is announced, with one row per
   service. The circle and the line joining the rows are decoration; the
   step label and heading carry the meaning in text. */
.service-path {
  list-style: none;
  margin-top: var(--space-xl);
}

.service-path__item {
  position: relative;
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0 var(--space-xl);
  padding-bottom: var(--space-xl);
}

.service-path__item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: calc(2.5rem - 2px);
  top: 5rem;
  bottom: 0;
  border-left: 4px solid var(--color-border);
}

.service-path__marker {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--color-info-surface);
  border: 3px solid var(--color-cta);
  color: var(--color-cta);
}

.service-path__icon {
  width: 2.5rem;
  height: 2.5rem;
}

.service-path__body {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: var(--space-xl);
}

.service-path__body p,
.service-path__body li {
  max-width: var(--measure);
}

.service-path__step {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-muted);
  margin-bottom: var(--space-xs);
}

.service-path__body h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.service-path__start {
  font-size: 1.125rem;
}

@media (max-width: 40em) {
  .service-path__item {
    grid-template-columns: 3.5rem 1fr;
    gap: 0 var(--space-md);
  }
  .service-path__item:not(:last-child)::before {
    left: calc(1.75rem - 2px);
    top: 3.5rem;
  }
  .service-path__marker {
    width: 3.5rem;
    height: 3.5rem;
  }
  .service-path__icon {
    width: 1.75rem;
    height: 1.75rem;
  }
  .service-path__body {
    padding: var(--space-lg);
  }
}

@media (forced-colors: active) {
  .service-path__marker {
    border-color: CanvasText;
  }
}
