/* =========================================================================
   Oakstone Healthcare Recruitment — site styles
   Palette taken from the logo. Text colours checked for WCAG 2.2 AA
   contrast on their backgrounds (noted beside each token).
   ========================================================================= */

:root {
  /* Brand */
  --navy-900: #0f3247;   /* 13.0:1 on white */
  --navy-700: #1a4c68;   /*  9.1:1 on white – logo wordmark */
  --navy-600: #24607f;   /*  6.6:1 on white */
  --green-700: #2f5e49;  /*  7.4:1 on white */
  --green-600: #447962;  /*  4.9:1 on white – acorn cap */
  --teal-400: #58b5c1;   /* decorative only */
  --mint-300: #8bc296;   /* decorative only */
  --lime-400: #a3c63b;   /* decorative only; used on navy (6.0:1) */
  --olive-600: #5f7c1e;  /*  4.8:1 on white – darker take on logo tagline */

  /* Neutrals */
  --ink: #17242d;        /* 15.6:1 */
  --muted: #47565f;      /*  7.4:1 */
  --line: #d5e0dd;
  --line-strong: #8a9a96; /* 3.0:1 – form borders (non-text contrast) */
  --bg: #ffffff;
  --bg-soft: #f4f8f6;
  --bg-tint: #e6f0ea;

  /* Feedback */
  --error: #b3261e;      /*  6.2:1 on white */
  --error-bg: #fdf0ef;
  --warn-bg: #fff6d6;
  --warn-line: #c99a00;

  --focus: #0f3247;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgb(15 50 71 / 0.06), 0 6px 20px rgb(15 50 71 / 0.07);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --header-h: 4.5rem;
  --brand-stripe: linear-gradient(90deg, var(--teal-400) 0 33.33%, var(--mint-300) 33.33% 66.66%, var(--lime-400) 66.66% 100%);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem); /* keep focused/anchored items clear of the sticky header (WCAG 2.4.11) */
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 1.25rem + 1.3vw, 2.15rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p, ul, ol, dl { margin: 0 0 1.1em; }
p { max-width: 70ch; }

a { color: var(--navy-600); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-900); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

strong { font-weight: 650; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  background: var(--navy-900);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: 0; color: #fff; }

main:focus { outline: none; }

.container {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 40rem) { .container { padding-inline: 1.5rem; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--sm { min-height: 44px; padding: 0.5rem 1.05rem; font-size: 0.95rem; }
.btn--primary { background: var(--navy-700); color: #fff; }
.btn--primary:hover { background: var(--navy-900); color: #fff; }
.btn--outline { background: transparent; color: var(--navy-700); border-color: var(--navy-700); }
.btn--outline:hover { background: var(--navy-700); color: #fff; }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--light:hover { background: var(--bg-tint); color: var(--navy-900); }
.btn--ghost-light { background: transparent; color: #fff; border-color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--navy-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.link-button {
  background: none; border: 0; padding: 0.25rem 0; min-height: 24px;
  font: inherit; color: inherit; text-decoration: underline; cursor: pointer;
}

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.97);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  flex-wrap: wrap;
}
.site-logo { display: inline-flex; padding-block: 0.5rem; }
.site-logo img { width: 170px; height: auto; }
@media (min-width: 30rem) { .site-logo img { width: 198px; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  background: transparent;
  border: 2px solid var(--navy-700);
  border-radius: 999px;
  color: var(--navy-700);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.nav-toggle[hidden] { display: none; }
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { width: 100%; padding-bottom: 1rem; }
.js .site-nav[data-collapsed="true"] { display: none; }
.site-nav__list { list-style: none; margin: 0; padding: 0; }
.site-nav__list a {
  display: block;
  padding: 0.7rem 0.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.site-nav__list a:hover { color: var(--navy-700); text-decoration: underline; }
.site-nav__list a[aria-current] { color: var(--navy-700); box-shadow: inset 4px 0 0 var(--lime-400); padding-left: 0.85rem; }
.site-nav__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }

@media (min-width: 68rem) {
  .nav-toggle { display: none !important; }
  .site-header__inner { flex-wrap: nowrap; }
  .site-nav, .js .site-nav[data-collapsed="true"] {
    display: flex; align-items: center; gap: 1.25rem;
    width: auto; padding: 0;
  }
  .site-nav__list { display: flex; gap: 0.15rem; }
  .site-nav__list a {
    border: 0;
    padding: 0.55rem 0.55rem;
    font-size: 0.95rem;
    border-radius: 6px;
  }
  .site-nav__list a[aria-current] { box-shadow: inset 0 -3px 0 var(--lime-400); padding-left: 0.55rem; border-radius: 0; }
  .site-nav__actions { margin: 0; flex-wrap: nowrap; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.9rem; padding-top: 0.9rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; color: var(--muted); }
.breadcrumbs a { color: var(--muted); display: inline-block; min-height: 24px; }

/* ---------- Page hero ---------- */
.page-hero {
  position: relative;
  background: var(--bg-soft);
  padding-block: 2.5rem 3rem;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 6px;
  background: var(--brand-stripe);
}
.page-hero--plain { padding-block: 2rem 2.25rem; }
.page-hero__inner { position: relative; }
.page-hero .lede { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: var(--muted); max-width: 60ch; }
.page-hero .meta { color: var(--muted); margin: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 0.75rem;
}

/* Home hero */
.home-hero { background: var(--bg-soft); position: relative; overflow: hidden; }
.home-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--brand-stripe); }
.home-hero__inner { display: grid; gap: 2.5rem; padding-block: 3rem 3.75rem; align-items: center; }
.home-hero h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); }
.home-hero .lede { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); color: var(--muted); max-width: 56ch; }
@media (min-width: 62rem) {
  .home-hero__inner { grid-template-columns: 1.25fr 0.85fr; gap: 4rem; padding-block: 4.5rem 5rem; }
}
.hero-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: calc(1.75rem + 6px) 1.75rem 1.75rem;
  position: relative;
  overflow: hidden;
}
.hero-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--brand-stripe); }
.hero-card h2 { font-size: 1.3rem; display: flex; align-items: center; gap: 0.75rem; }
.hero-card h2 img { width: 40px; height: 40px; }
.hero-card ul { margin: 0; }
.hero-card__foot { margin: 1rem 0 0; font-size: 0.95rem; color: var(--muted); }

/* ---------- Sections & layout ---------- */
.section { padding-block: 3.5rem; }
.section--tight { padding-block: 2.5rem; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--bg-tint); }
@media (min-width: 62rem) { .section { padding-block: 5rem; } }

.section-head { max-width: 46rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.split { display: grid; gap: 2.5rem; }
@media (min-width: 62rem) {
  .split { grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: start; }
  .split--even { grid-template-columns: 1fr 1fr; }
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
}
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); }
.card--accent { border-top: 5px solid var(--green-600); }
.card--navy { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.card--navy h2, .card--navy h3 { color: #fff; }
.card--navy p { color: #dbe7ee; }
.card--navy a { color: #fff; }

/* Whole card clickable via the heading link, with a visible focus ring on the card */
.card--link h3 a { color: inherit; text-decoration: none; }
.card--link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.card--link:hover { border-color: var(--navy-600); box-shadow: var(--shadow); }
.card--link:hover h3 a { text-decoration: underline; }
.card--link:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.card--link h3 a:focus-visible { outline: none; }
.card__more { margin-top: auto; padding-top: 0.75rem; font-weight: 650; color: var(--navy-700); }

.icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bg-tint);
  color: var(--green-700);
  margin-bottom: 1rem;
}
.icon svg { width: 26px; height: 26px; }

/* ---------- Lists ---------- */
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 2rem; margin-bottom: 0.65rem; }
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: 0.3em;
  width: 1.2rem; height: 1.2rem;
  border-radius: 50%;
  background: var(--green-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center / 75% no-repeat;
}

.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-700);
}
.chips--soft li { background: var(--bg-tint); border-color: transparent; }

.cols-list { columns: 2 12rem; column-gap: 2rem; padding-left: 1.2rem; }
.cols-list li { break-inside: avoid; margin-bottom: 0.3rem; }

/* Numbered process steps */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 1.25rem; }
@media (min-width: 62rem) { .steps--row { grid-template-columns: repeat(4, 1fr); } }
.steps > li {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
}
.steps > li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: var(--navy-700);
  color: #fff;
  font-weight: 700;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}
.steps h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Callouts, quotes, founder ---------- */
.callout {
  border-left: 5px solid var(--green-600);
  background: var(--bg-soft);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-block: 1.5rem;
}
.callout > :last-child { margin-bottom: 0; }

.founder {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 2rem;
  position: relative;
}
.founder__mark {
  font-family: var(--font-serif);
  font-size: 5rem; line-height: 0.6;
  color: var(--lime-400);
  display: block;
  margin-bottom: 0.5rem;
}
.founder p { font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.55; color: var(--ink); }
.founder__sig { font-family: var(--font-sans) !important; font-size: 1rem !important; color: var(--muted) !important; margin: 0; }
.founder__sig strong { color: var(--navy-900); display: block; }

/* ---------- Placeholders & draft notices ---------- */
.ph {
  background: var(--warn-bg);
  outline: 1px dashed var(--warn-line);
  color: #5c4500;
  padding: 0 0.3em;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95em;
}
.confirm-box, .review-box {
  background: var(--warn-bg);
  border: 2px dashed var(--warn-line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-block: 1.25rem;
  color: #3d2e00;
}
.confirm-box > :last-child, .review-box > :last-child { margin-bottom: 0; }
.confirm-box__label, .review-box__label {
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.review-box { border-color: var(--error); background: var(--error-bg); color: #4a0f0b; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2.5rem 1.1rem 0;
  font-weight: 650;
  font-size: 1.08rem;
  color: var(--navy-900);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0.5rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--green-700);
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 1.1rem; }
.faq details > div > :last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy-900); color: #fff; position: relative; }
.cta-band::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--brand-stripe); }
.cta-band__inner { padding-block: 3.25rem; display: grid; gap: 1rem; align-items: center; }
@media (min-width: 62rem) { .cta-band__inner { grid-template-columns: 1.4fr 1fr; } .cta-band .btn-row { justify-content: flex-end; margin: 0; } }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dbe7ee; margin: 0; }
.cta-band :focus-visible { outline-color: var(--lime-400); }

/* ---------- Prose (legal & long text) ---------- */
.prose { max-width: 50rem; }
.prose h2 { margin-top: 2.25rem; font-size: 1.55rem; }
.prose h3 { margin-top: 1.75rem; font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.4rem; }
.prose table { width: 100%; border-collapse: collapse; margin-block: 1.25rem; font-size: 0.97rem; }
.table-wrap { overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.7rem 0.8rem; border: 1px solid var(--line); }
.prose th { background: var(--bg-soft); color: var(--navy-900); }

/* ---------- Forms ---------- */
.form-layout { display: grid; gap: 2.5rem; }
@media (min-width: 62rem) { .form-layout { grid-template-columns: 1.6fr 1fr; gap: 3.5rem; align-items: start; } }
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
@media (min-width: 40rem) { .form-card { padding: 2.25rem; } }
.form-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }

fieldset { border: 0; padding: 0; margin: 0 0 2rem; min-width: 0; }
legend { padding: 0; }
.form-section > legend {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 1rem;
  width: 100%;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
}
.field { margin-bottom: 1.35rem; }
.field-row { display: grid; gap: 0 1.25rem; }
@media (min-width: 40rem) { .field-row { grid-template-columns: 1fr 1fr; } }

.field label, .field > legend, .group-legend {
  display: block;
  font-weight: 650;
  margin-bottom: 0.35rem;
  color: var(--ink);
}
.req { color: var(--error); font-weight: 700; }
.opt { color: var(--muted); font-weight: 400; font-size: 0.95em; }
.hint { display: block; color: var(--muted); font-size: 0.95rem; margin: -0.1rem 0 0.45rem; }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"],
input[type="file"], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  min-height: 48px;
}
input[type="file"] { padding: 0.55rem; }
textarea { min-height: 8rem; resize: vertical; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231a4c68' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.1rem;
  padding-right: 2.5rem;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--navy-700);
}
.field--error input, .field--error select, .field--error textarea { border-color: var(--error); }
.field-error {
  color: var(--error);
  font-weight: 650;
  margin: 0.4rem 0 0;
  display: flex; gap: 0.4rem; align-items: flex-start;
}
.field-error::before { content: "!"; display: inline-grid; place-items: center; flex: none; width: 1.2rem; height: 1.2rem; margin-top: 0.2em; border-radius: 50%; background: var(--error); color: #fff; font-size: 0.8rem; }
.field-error[hidden] { display: none; }

.checks { display: grid; gap: 0.35rem; }
.checks--cols { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.check { display: flex; align-items: flex-start; gap: 0.65rem; min-height: 32px; }
.check input {
  flex: none;
  width: 1.4rem; height: 1.4rem;
  margin: 0.15rem 0 0;
  accent-color: var(--navy-700);
}
.check label { font-weight: 400; margin: 0; }
.check--boxed { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1rem; background: var(--bg-soft); }

.error-summary {
  border: 3px solid var(--error);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  background: #fff;
}
.error-summary h2 { font-size: 1.25rem; color: var(--error); font-family: var(--font-sans); }
.error-summary ul { margin: 0; padding-left: 1.2rem; }
.error-summary a { color: var(--error); font-weight: 650; }
.error-summary:focus { outline: 3px solid var(--focus); outline-offset: 3px; }

.hidden-field { position: absolute; left: -9999px; }
.form-note { font-size: 0.95rem; color: var(--muted); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: #fff;
  border-top: 6px solid transparent;
  border-image: var(--brand-stripe) 1;
  box-shadow: 0 -8px 28px rgb(15 50 71 / 0.18);
  max-height: 80vh;
  overflow-y: auto;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner { padding-block: 1.25rem 1.5rem; }
.cookie-banner__title { font-size: 1.25rem; margin-bottom: 0.4rem; }
.cookie-banner p { margin-bottom: 0.9rem; max-width: 80ch; }
.cookie-banner__prefs .check { margin-bottom: 0.25rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.75rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding-top: 3rem; font-size: 0.97rem; }
.site-footer__top { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
@media (min-width: 40rem) { .site-footer__top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .site-footer__top { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.site-footer__brand img { margin-bottom: 0.75rem; }
.site-footer__name { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; color: var(--navy-900); margin-bottom: 0.4rem; }
.site-footer__heading { font-family: var(--font-sans); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green-700); margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer__col li { margin-bottom: 0.15rem; }
.site-footer__col a { display: inline-block; padding: 0.2rem 0; min-height: 24px; color: var(--ink); text-decoration: none; }
.site-footer__col a:hover { text-decoration: underline; color: var(--navy-700); }
.site-footer__legal { border-top: 1px solid var(--line); padding-block: 1.5rem; color: var(--muted); font-size: 0.9rem; }
.site-footer__legal p { max-width: none; }
.site-footer__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; margin: 0; }

.contact-lines { list-style: none; padding: 0; margin: 1rem 0 0; }
.contact-lines li { margin-bottom: 0.35rem; }
.contact-lines__label { display: inline-block; min-width: 4rem; font-weight: 650; color: var(--navy-900); }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.stack > * + * { margin-top: 1.25rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .cookie-banner, .cta-band, .breadcrumbs { display: none; }
  body { font-size: 11pt; }
  a { color: inherit; }
}

/* Heading style without changing heading level */
.h3 { font-size: 1.3rem; }

/* Buttons inside dark cards keep their own colours */
.card--navy a.btn--light, .card--navy a.btn--light:hover { color: var(--navy-900); }
.card--navy :focus-visible { outline-color: var(--lime-400); }

/* Let grid children shrink below their content width (prevents sideways scroll at 320px) */
.grid > *, .split > *, .form-layout > *, .field-row > * { min-width: 0; }
figure { margin: 0; }
.founder { padding: 1.5rem; }
@media (min-width: 40rem) { .founder { padding: 2rem; } }
.form-card { overflow-wrap: anywhere; }

/* Unnumbered-row step lists flow into columns on wider screens */
@media (min-width: 40rem) { .steps:not(.steps--row) { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); } }
