:root {
  --navy: #032655;
  --navy-deep: #021a3a;
  /* Tropical Teal, the brand teal named in the handoff. Used for every teal fill. */
  --teal: #589d97;
  /* Tropical Teal only reaches 3.1:1 on white, so small teal text uses this
     darkened form (4.8:1) instead. Never used as a fill. */
  --teal-text: #3e7d78;
  --gold: #fbaf00;
  --text: #032655;
  --muted: #3e5168;
  --line: #d4e2ea;
  --ice: #f6fafb;
  --mist: #e7f3f2;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(3, 38, 85, 0.08);
  /* Two layers: a tight one to define the card edge and a soft one for depth.
     A single wide blur alone reads as haze at card size. */
  --shadow-card: 0 1px 2px rgba(3, 38, 85, 0.06), 0 8px 20px rgba(3, 38, 85, 0.10);
  --sans: Aptos, "Segoe UI", Calibri, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  /* Tracks the mockup's 92% content band, capped so lines stay readable on wide monitors. */
  --max: min(1320px, 92vw);
  --header: 84px;
  /* Section rhythm. Every content section draws its block padding from these two
     steps: the standard one between plain sections, and the tight one on any
     side that meets a full-bleed colour band, where the colour edge already
     supplies the separation. */
  --space-section: clamp(40px, 4vw, 56px);
  --space-section-tight: clamp(24px, 2.4vw, 34px);
  /* Shared with the home and candidates heroes, so the swoosh crops the same way. */
  --hero-band: clamp(340px, 28vw, 440px);
}

*,
*::before,
*::after { box-sizing: border-box; }

/* Offsets in-page anchors by the sticky header so a section's heading is not
   hidden behind it on arrival. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

/* Keyboard-only bypass link. Clipped to nothing rather than offset off-screen so
   it has no clickable area, and revealed on :focus-visible so that a mouse click
   never surfaces it. */
.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  background: var(--navy);
  color: var(--white);
  z-index: 100;
}

.skip:focus-visible {
  width: auto;
  height: auto;
  padding: 8px 12px;
  overflow: visible;
  clip-path: none;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-bar {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo img { width: 220px; height: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}

.nav-group {
  position: relative;
}

.nav-group > a::after {
  content: " ▾";
  font-size: 0.72em;
}

.submenu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: -14px;
  min-width: 170px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.submenu a {
  display: block;
  padding: 10px 12px;
  border-radius: 5px;
  white-space: nowrap;
}

.submenu a:hover,
.submenu a:focus-visible {
  background: var(--ice);
}

.nav-group:hover .submenu,
.nav-group:focus-within .submenu {
  display: block;
}

.nav a[aria-current="page"] {
  color: var(--teal-text);
  box-shadow: inset 0 -2px 0 var(--teal);
}

.nav a.btn,
.nav a.btn-navy {
  color: var(--white);
  box-shadow: none;
}

/* Hamburger: the span is the middle bar, its pseudo-elements the outer two.
   44px square meets the touch-target minimum. */
.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-bars { position: relative; }

.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-bars::before { top: -7px; }
.menu-bars::after { top: 7px; }

/* Open state: outer bars rotate into an X, middle bar fades out. */
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (prefers-reduced-motion: reduce) {
  .menu-bars,
  .menu-bars::before,
  .menu-bars::after { transition: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 6px;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); }
.btn-ghost {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover { background: var(--ice); }

.btn:focus-visible,
.nav a:focus-visible,
.menu-toggle:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(88, 157, 151, 0.16), transparent 32%),
    linear-gradient(180deg, #f8fbfc 0%, #ffffff 70%);
}

.hero-grid {
  /* Stacks above the .hero-bg artwork layer when a hero has one. */
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  padding: 48px 0 36px;
}

/* A layered hero is built from two images: the full-bleed background artwork and
   the figures as a separate transparent PNG. The background always fills the
   viewport width while the figures scale on their own, so they are never cropped
   or stretched at any size. The gradient is a load-time stand-in sampled from the
   artwork's left side, where the headline sits. */
.hero-art {
  background: linear-gradient(100deg, #ffffff 0%, #fdfdfe 42%, #ebf3fc 80%, #dceafa 100%);
}

/* Taller than the band and anchored to the bottom, so a small scroll lag can
   reveal more of the wash above without uncovering a gap or losing the wedge. */
.hero-bg {
  position: absolute;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 128%;
  display: block;
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg { top: 0; height: 100%; will-change: auto; }
}

.hero-art .hero-grid {
  position: relative;
  z-index: 1;
  align-items: stretch;
  padding: 0;
}

/* The copy sets the hero's height; the figures then scale to whatever it is. */
.hero-art .hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0 52px;
  min-height: var(--hero-band);
}

/* The three-figure cutout is wide, so home gives the visual the larger column. */
.home-page .hero-grid {
  grid-template-columns: 1fr 1.12fr;
  gap: clamp(20px, 2.6vw, 40px);
}

/* Sized so "Advance Your Education." holds one line in the copy column,
   keeping the mockup's two-line headline break. The copy column is ~42% of the
   viewport and this string needs 12.94px of width per 1px of font size. */
.home-page .display {
  font-size: clamp(1.95rem, 3.15vw, 2.9rem);
  letter-spacing: -0.01em;
}

/* Sized so the candidates headline holds three lines across the two-column
   range. The copy column is 1.05 of 2 shares of the wrap, and this string needs
   about 14.6px of column width per 1px of font size to break into three. */
.candidate-page .display {
  font-size: clamp(1.95rem, 3.25vw - 1.5px, 2.85rem);
}

.hero-art .hero-copy .lede { margin: 20px 0 30px; max-width: 34rem; }

.hero-art .hero-copy .btn { align-self: flex-start; }

.hero-art .hero-visual { position: relative; min-height: 0; }

/* Scaled by height and anchored to the container's right edge, flush with the
   band below. Width follows the aspect ratio, so no object-fit crop is needed;
   the transparent margin simply reveals the background layer. */
.hero-art .hero-visual img {
  position: absolute;
  right: 0;
  bottom: 0;
  /* Slightly under full height so the figures get headroom below the header
     while they stay flush with the band below. */
  height: 96%;
  width: auto;
  max-width: none;
  border-radius: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-text);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.86rem;
}

h1, h2, h3 { line-height: 1.15; margin: 0; }

.display {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--navy);
}

.display .accent { color: var(--teal); display: block; }

.lede {
  font-size: 1.12rem;
  max-width: 38rem;
  margin: 18px 0 28px;
}

.hero-visual { position: relative; min-height: 280px; }

.hero-visual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center right;
  border-radius: 18px 0 0 18px;
}

/* Same swoosh artwork as the other heroes; the gradient is the load-time stand-in. */
.about-hero {
  background: linear-gradient(100deg, #ffffff 0%, #fdfdfe 42%, #ebf3fc 80%, #dceafa 100%);
}

.about-hero .hero-grid { align-items: stretch; padding: 0; }
.about-hero .hero-grid > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--hero-band);
  padding: 32px 0;
  position: relative;
  z-index: 1;
}
.about-hero h1 { font-family: var(--sans); font-size: clamp(2.4rem, 4.4vw, 3.6rem); color: var(--teal); max-width: 15ch; }
.kicker { font-size: 1.15rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.rule { width: 72px; height: 4px; background: var(--teal); border: 0; margin: 14px 0 18px; }
/* Cutout figure, same treatment as the other heroes: anchored to the bottom
   right of the band so the swoosh shows through. */
.about-hero .hero-visual { position: relative; min-height: 0; }
.about-hero .hero-visual img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: auto;
  height: 96%;
  max-width: none;
  margin: 0;
  object-fit: contain;
  object-position: right bottom;
  border-radius: 0;
}

.band { color: var(--white); padding: 48px 0; }
.band-navy { background: var(--navy); }
.band-teal { background: var(--teal); }
.band h2 { text-align: center; font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 28px; }
/* For bands whose full-bleed child supplies its own vertical padding, so the
   two are not stacked on top of each other. */
.band-flush { padding: 0; }

.band-navy h2.flanked {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.band-navy h2.flanked::before,
.band-navy h2.flanked::after {
  content: "";
  height: 3px;
  width: clamp(40px, 6vw, 84px);
  background: var(--gold);
  flex: none;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  align-items: start;
}

.step {
  text-align: center;
  position: relative;
  padding-top: 62px;
}

.step img,
.step svg { width: 46px; height: 46px; margin: 0 auto 12px; display: block; }

.step img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
}

.step::after {
  content: "";
  position: absolute;
  top: 23px;
  left: calc(50% + 38px);
  right: calc(-50% + 38px);
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.step:last-child::after { display: none; }

.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p { margin: 0; font-size: 0.92rem; color: rgba(255, 255, 255, 0.92); }

/* Sits between the navy steps band and the teal partners band. */
.highlights { padding-block: var(--space-section-tight); }
.highlights-grid, .cards, .partners, .values, .reqs, .faq-list { display: grid; gap: 18px; }
.highlights-grid { grid-template-columns: repeat(4, 1fr); gap: 0; }

.highlight {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 4px 24px;
  border-left: 1px solid var(--line);
}

.highlight:first-child { border-left: 0; padding-left: 0; }

.highlight img { flex: none; width: 38px; height: 38px; }

.highlight h3 {
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.highlight p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
}
.card, .faq-card, .partner, .value, .req {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.icon-row { display: flex; gap: 12px; align-items: flex-start; }
.icon-row svg { flex: 0 0 36px; width: 36px; height: 36px; }
.card h3, .req h3, .faq-card h3, .partner h3 { font-size: 1.05rem; margin-bottom: 6px; }
.card p, .req p, .faq-card p, .partner p, .value p { margin: 0; color: var(--muted); }

.section { padding-block: var(--space-section); }
/* A colour band or the hero already breaks the page and carries its own block
   padding, so the section pulls in on that side rather than stacking a full gap
   on top of it. */
.band + .section,
.hero + .section { padding-top: var(--space-section-tight); }
.section:has(+ .band) { padding-bottom: var(--space-section-tight); }
.section h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 8px; }

.partners { grid-template-columns: 1fr 1fr; align-items: stretch; }

.partner {
  background: var(--ice);
  border-radius: 10px;
  padding: 24px;
  /* Mockup sets the partner mark to the left of the role and description. */
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Fixed left slot so the mark is centred in it and the text columns line up
   across both cards, whether the mark is an image or a wordmark. */
.partner > .partner-logo,
.partner > .wordmark {
  flex: none;
  width: 124px;
  text-align: center;
}

/* Sized by height so wide wordmark logos and square emblems sit on the same
   optical baseline. */
.partner-logo {
  width: auto;
  height: 44px;
  max-width: 132px;
  object-fit: contain;
}

/* Scoped to .partner so it outranks the `.partner p` body colour, which would
   otherwise render the brand wordmark in muted grey. */
.partner .wordmark {
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--navy);
  margin: 0;
  white-space: nowrap;
}

/* Full-bleed ice band, matching About's Purpose in Practice layout. Sits
   outside .wrap so 100% is the section width (scrollbar-safe, unlike 100vw). */
.section:has(> .help) { padding-bottom: 0; }

.help {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(24px, 6.5vw, 94px);
  background: var(--ice);
  padding: 20px max(20px, calc((100% - var(--max)) / 2));
}

.help-text { flex: 1; min-width: 0; }

.help-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.help-icon { flex: none; width: 38px; height: 38px; }

.help-text h2 {
  font-size: clamp(1.4rem, 2.19vw, 2rem);
  margin: 0 0 6px;
}

.help-title h2 { margin: 0; }

.help-text > p {
  margin: 0;
  font-size: clamp(0.98rem, 1.41vw, 1.27rem);
  line-height: 1.45;
}

.help-cta {
  flex: 0 0 clamp(250px, 27vw, 400px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.help-cta p {
  font-weight: 700;
  font-size: clamp(0.95rem, 1.33vw, 1.2rem);
  margin: 0;
}

.help-cta .btn {
  width: 83%;
  min-width: 210px;
  padding-block: 9px;
}

.split { display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.split article { padding: 48px 40px 56px; }
/* 200% = the full-bleed section width, since each column is exactly half of it.
   Aligns the outer text edges to the shared container without relying on 100vw
   (scrollbar-safe). */
.split article:first-child { padding-left: max(20px, calc((200% - var(--max)) / 2)); }
.split article:last-child { padding-right: max(20px, calc((200% - var(--max)) / 2)); }
.prose { max-width: 760px; }
.prose p { font-size: 1.12rem; }

.reqs { grid-template-columns: 1fr 1fr; }
.req { background: var(--mist); display: grid; grid-template-columns: auto 1fr; gap: 14px; }
.num {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--teal); color: white;
  display: grid; place-items: center; font-weight: 800;
  /* At 19.2px bold this counts as large text, so white on Tropical Teal is held
     to the 3:1 threshold rather than 4.5:1. */
  font-size: 1.2rem;
}

.faq-list { grid-template-columns: 1fr 1fr; align-items: start; }
.faq-card h3 { font-size: 1.05rem; }

.section-strip {
  padding: 15px 0;
}

.section-strip h2 {
  margin: 0;
}

.candidate-page .req {
  min-height: 106px;
  align-items: center;
  padding: 18px;
}

.candidate-page .faq-card {
  min-height: 176px;
  padding: 22px;
}

.about-page .prose {
  max-width: none;
}

.about-page .mission-vision article {
  padding-top: 40px;
  padding-bottom: 34px;
}

/* Vertical rule between Mission and Vision, per the mockup (#83A8C5, inset
   top and bottom rather than running the full band height). */
.mission-vision::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 17%;
  bottom: 17%;
  width: 1px;
  background: #83a8c5;
}

/* .band h2 centres headings for the full-width step/section bands; these two sit
   in columns and are left-aligned in the mockup. */
.mission-vision h2 { text-align: left; margin-bottom: 0; }

/* The mockup sets these statements at ~0.69x the heading size; the default body
   size made them read far smaller than the heading. */
.mission-vision p {
  font-size: clamp(1.05rem, 1.55vw, 1.4rem);
  line-height: 1.45;
  margin-top: 14px;
}

.values { gap: 0; }
.value {
  box-shadow: none;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 18px 0;
}
/* The rules separate the values from each other, so the list should not close
   with one under the final entry. */
.value:last-child { border-bottom: 0; }
.value h3 { color: var(--teal-text); font-size: 1.2rem; margin: 0; }

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 52px 0 24px;
  font-size: 0.92rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}
/* The wrapper only groups the two link columns on small screens. Elsewhere its
   children stay direct grid items. */
.footer-nav { display: contents; }
.footer-brand img {
  width: 196px;
  background: var(--white);
  border-radius: 8px;
  padding: 9px 12px;
  display: block;
}
.footer-brand p {
  margin: 16px 0 0;
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 34ch;
}
.footer-col h2 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 6px 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: 10px; }
.footer-col a:not(.btn) {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-col a:not(.btn):hover,
.footer-col a:not(.btn):focus-visible { color: var(--white); text-decoration: underline; }
.footer-cta p {
  margin: 0 0 16px;
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 32ch;
}
.footer-cta .btn { margin-bottom: 4px; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
}
.fine {
  max-width: 118ch;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}
.footer-legal {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
}
.site-footer a:not(.btn) { color: var(--white); }

/* Same swoosh artwork as the other heroes. The cutout sits on the right, flush
   with the band below. */
.form-hero {
  background: linear-gradient(100deg, #ffffff 0%, #fdfdfe 42%, #ebf3fc 80%, #dceafa 100%);
}
.form-hero .hero-grid {
  grid-template-columns: 1.05fr 0.85fr;
  align-items: stretch;
  padding: 0;
}
.form-hero .hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0 52px;
  min-height: var(--hero-band);
}
.form-hero h1 {
  font-family: var(--sans);
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  color: var(--teal);
}
.form-hero .lede { margin-bottom: 0; max-width: 36rem; }
.form-hero .hero-visual { position: relative; min-height: 0; }
.form-hero .hero-visual img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: auto;
  height: 96%;
  max-width: none;
  margin: 0;
  object-fit: contain;
  object-position: right bottom;
  border-radius: 0;
}
.form-section form { max-width: 720px; margin-inline: auto; }
form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 700; font-size: 0.92rem; }
.req-mark { color: #9a3412; }
input, select, textarea {
  font: inherit;
  color: var(--navy);
  border: 1px solid #b7c7d4;
  border-radius: 8px;
  padding: 12px;
  background: white;
}
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.consent input { margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.error { color: #9a3412; font-weight: 700; min-height: 1.2em; }
.success {
  background: var(--mist);
  border: 1px solid var(--teal);
  border-radius: 12px;
  padding: 18px;
}
.note { color: var(--muted); font-size: 0.92rem; }
.note a { color: var(--teal-text); font-weight: 700; text-decoration: underline; }
.privacy h1 {
  font-family: var(--sans);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--navy);
  margin: 0;
}
.privacy .effective { margin-top: 0; color: var(--muted); }
.privacy h2 { margin-top: 1.5em; }
.privacy a { color: var(--teal-text); font-weight: 700; text-decoration: underline; }
.footer-legal a { text-decoration: underline; }

@media (max-width: 980px) {
  .hero-grid, .highlights-grid, .partners, .split, .steps { grid-template-columns: 1fr 1fr; }
  .highlights-grid { gap: 18px 0; }
  .highlight:nth-child(odd) { border-left: 0; padding-left: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps .step:last-child { grid-column: 1 / -1; max-width: 420px; margin-inline: auto; }
  .step::after { display: none; }
  .split article,
  .split article:first-child,
  .split article:last-child { padding: 32px 20px; }
  .hero-visual img { height: 320px; border-radius: 12px; }
  /* Below this width the two-column hero leaves the copy column too narrow for
     the headline, so stack it and let the figures scale by width instead. */
  .hero-art .hero-grid { grid-template-columns: 1fr; gap: 0; }
  /* Once the copy sits above the figure it is centred, so it lines up with the
     figure below rather than hugging the left edge of the section. */
  .hero-art .hero-copy { padding: 34px 0 30px; min-height: 0; text-align: center; }
  .hero-art .hero-copy .lede { margin-inline: auto; }
  .hero-art .hero-copy .btn { align-self: center; }
  .hero-art .hero-visual { position: static; }
  /* With two cards side by side the fixed mark column leaves the copy too
     narrow, so the mark sits centred above the text from tablet down. */
  .partner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .partner > .partner-logo,
  .partner > .wordmark {
    align-self: center;
    width: auto;
    text-align: center;
  }
  /* Match the image mark's height so both cards' headings start on the same line. */
  .partner > .wordmark { min-height: 44px; display: flex; align-items: center; }
  /* Pairs stay two-across here, and wrapping makes them different heights.
     Stretch each row so the shorter card fills down to its neighbour. */
  .faq-list { align-items: stretch; }
  .form-hero .hero-grid,
  .about-hero .hero-grid { grid-template-columns: 1fr; }
  .form-hero .hero-copy,
  .about-hero .hero-grid > div:first-child {
    min-height: 0;
    text-align: center;
    padding: 34px 0 16px;
  }
  .form-hero .rule,
  .about-hero .rule { margin-inline: auto; }
  .form-hero .lede,
  .about-hero .lede { margin-inline: auto; }
  .form-hero .hero-visual,
  .about-hero .hero-visual { position: static; min-height: 0; }
  .form-hero .hero-visual img,
  .about-hero .hero-visual img {
    position: static;
    inset: auto;
    display: block;
    height: auto;
    width: min(420px, 100%);
    max-width: 100%;
    margin: 0 auto;
    object-fit: contain;
  }
  .hero-art .hero-visual img {
    position: static;
    width: 100%;
    height: auto;
    max-width: 560px;
    margin-inline: auto;
    display: block;
    border-radius: 0;
  }
  /* Home's cutout carries a wide transparent left margin so the figures clear
     the headline in the desktop two-column layout. Stacked, that margin is dead
     space, so crop to the figures with a fixed box shape: cover against this
     ratio always reveals the right ~65% of the frame, whatever the width. */
  .home-page .hero-visual img {
    aspect-ratio: 1.55;
    object-fit: cover;
    object-position: right bottom;
  }
  .value { grid-template-columns: 1fr; gap: 4px; }
  /* Brand shares the row with the two link columns; the wider first track fits
     the logo and blurb. Get Started is its own row: the copy and the button
     sit side by side, and that pair is centred in the footer. */
  .footer-top { grid-template-columns: 1.6fr 1fr 1fr; gap: 28px 24px; }
  .footer-cta {
    grid-column: 1 / -1;
    justify-self: center;
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 36px;
    align-items: center;
    width: max-content;
    max-width: 100%;
    text-align: left;
  }
  .footer-cta h2 { margin: 0 0 6px; }
  .footer-cta p { margin: 0; }
  .footer-cta .btn { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 14px; text-align: center; }
  .footer-legal { white-space: normal; }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: white;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 4px;
  }
  .nav.open { display: flex; }
  /* One even column. The desktop underline and the submenu's teal rail meet
     here and draw a corner bracket, so both come off and the current page is
     marked by colour alone. */
  /* Flat list: every link, including the desktop sub-pages, is an equal
     full-width row separated by a hairline. */
  .nav { gap: 0; }
  .nav a:not(.btn) {
    display: block;
    padding: 15px 4px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
  }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--teal-text); }
  .nav-group > a::after { content: ""; }
  .submenu {
    display: block;
    position: static;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .submenu::before { display: none; }
  .nav a.btn {
    margin-top: 18px;
    padding: 12px 16px;
    text-align: center;
  }
  :root { --header: 72px; }
  .logo img { width: 168px; }
  .hero-grid, .highlights-grid, .reqs, .faq-list, .fields, .steps, .footer-top, .help {
    grid-template-columns: 1fr;
    display: grid;
  }
  .site-footer { padding-top: 40px; text-align: center; }
  .footer-brand,
  .footer-cta { grid-column: 1 / -1; }
  .footer-cta { display: block; width: auto; text-align: center; }
  .footer-cta h2 { margin: 6px 0 14px; }
  /* Both columns take the wider one's width, so the headings share a left edge
     and the shorter list simply ends. The group stays centred. */
  .footer-nav {
    display: inline-grid;
    grid-column: 1 / -1;
    justify-self: center;
    grid-template-columns: 1fr 1fr;
    column-gap: 36px;
    text-align: left;
  }
  .footer-brand img { margin-inline: auto; }
  .footer-brand p,
  .footer-cta p,
  .fine { margin-inline: auto; }
  .footer-bottom { align-items: center; }
  /* Stacked: the vertical rule becomes a horizontal one between the two blocks. */
  .split { grid-template-columns: 1fr; }
  .mission-vision::before { display: none; }
  .mission-vision article + article { border-top: 1px solid #83a8c5; }
  .about-page .mission-vision article { padding-top: 28px; padding-bottom: 30px; }
  .hero-art .hero-copy { padding: 28px 0 22px; }
  .hero-art .hero-visual img { max-width: 100%; }
  .steps .step:last-child { grid-column: auto; max-width: none; }
  .help { text-align: left; gap: 20px; }
  .form-section form { text-align: center; }
  .form-section form .btn { width: 100%; }
  /* The icon sits above the heading so the title can centre as its own line
     instead of wrapping beside the mark. */
  .help-title {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  .help-cta {
    flex: none;
    width: 100%;
    text-align: left;
    align-items: stretch;
  }
  .help-cta .btn { width: 100%; min-width: 0; }
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .display { font-size: 2rem; }
  .partners { grid-template-columns: 1fr; }
  .highlight, .highlight:nth-child(odd) { border-left: 0; padding: 0; }
  .help-icon { width: 34px; height: 34px; }
  .candidate-page .faq-card { min-height: 0; }
}
