/* Instrument Design Technology: site stylesheet (v1).
   If you change this file, rename it (site.v2.css) and update ASSET_VERSION in tools/build.mjs:
   CSS and JS are cached for a year. */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-semi-condensed-600-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-variable-latin.woff2") format("woff2");
}
/* Metric-matched fallback so the swap to Source Sans 3 does not shift the layout. */
@font-face {
  font-family: "Source Sans Fallback";
  src: local("Arial");
  size-adjust: 94%;
  ascent-override: 109%;
  descent-override: 43%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  --navy-900: #0B1B2E;
  --navy-700: #14304F;
  --navy-500: #2B5280;
  --slate-600: #4A5866;
  --grey-300: #CBD3DB;
  --grey-100: #EEF1F4;
  --white: #FFFFFF;
  --accent: #A85A1C;
  --error: #B3261E;
  --success: #1E6B4A;
  /* Added to meet contrast targets (see README, "Colour changes"). */
  --accent-text: #9A4F14;   /* small copper text on white and on --grey-100 */
  --accent-light: #E8B07A;  /* copper text on navy */
  --grey-500: #6B7885;      /* form field borders: 3:1 against white */

  --font-head: "Barlow Semi Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: "Source Sans 3", "Source Sans Fallback", "Segoe UI", sans-serif;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;
  --s-6: 48px;
  --s-7: 64px;
  --s-8: 96px;

  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(11, 27, 46, .06), 0 8px 24px rgba(11, 27, 46, .06);
  --container: 1160px;
  --focus: var(--accent);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.6;
  color: var(--slate-600);
  background: var(--white);
  overflow-wrap: break-word;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 var(--s-3);
  text-wrap: balance;
}
h1 { font-size: clamp(2.125rem, 1.4rem + 3.2vw, 3.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.15rem + .5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { margin: 0 0 var(--s-3); max-width: 70ch; }
ul, ol { margin: 0 0 var(--s-3); padding-left: 1.25em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-500); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-900); text-decoration-thickness: 2px; }
strong { color: var(--navy-900); font-weight: 600; }
sup { font-size: .7em; line-height: 0; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s-3); top: -100px; z-index: 100;
  background: var(--navy-900); color: var(--white); padding: var(--s-3) var(--s-4); border-radius: var(--radius);
}
.skip-link:focus { top: var(--s-3); color: var(--white); --focus: var(--accent-light); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-4); }
.section { padding-block: clamp(var(--s-6), 7vw, var(--s-8)); }
.section-soft { background: var(--grey-100); }
.section-head { max-width: 760px; margin-bottom: var(--s-5); }
.section-head.centred { margin-inline: auto; text-align: center; }
.section-head.centred p { margin-inline: auto; }
.eyebrow {
  display: block; margin-bottom: var(--s-2);
  font-size: .875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text);
}
.lede { font-size: clamp(1.125rem, 1.05rem + .4vw, 1.3125rem); line-height: 1.5; }
.note { font-size: .9375rem; }
.mt { margin-top: var(--s-5); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 10px var(--s-4);
  border: 2px solid var(--navy-700); border-radius: 999px;
  font: 600 1.0625rem/1.2 var(--font-body); text-decoration: none; text-align: center; cursor: pointer;
  background: var(--navy-700); color: var(--white);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--navy-700); }
.btn-secondary:hover { background: var(--grey-100); color: var(--navy-900); border-color: var(--navy-900); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn-accent:hover { background: #8A4812; border-color: #8A4812; }
.btn-on-dark { background: var(--white); border-color: var(--white); color: var(--navy-900); }
.btn-on-dark:hover { background: var(--grey-100); border-color: var(--grey-100); color: var(--navy-900); }
.btn-ghost-dark { background: transparent; border-color: var(--white); color: var(--white); }
.btn-ghost-dark:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-4); }
.btn-meta { font-weight: 400; }

/* ---------- Header and navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90; /* above the cookie banner so an open menu is never covered */
  background: var(--white); border-bottom: 1px solid var(--grey-300);
}
.header-inner { display: flex; align-items: center; gap: var(--s-3); min-height: 72px; }
.brand {
  display: inline-flex; align-items: baseline; gap: var(--s-3);
  margin-right: auto; padding-block: var(--s-2); min-height: 44px; min-width: 44px;
  color: var(--navy-700); text-decoration: none;
}
.brand:hover { color: var(--navy-900); }
.brand-mark { font: 600 2.25rem/1 var(--font-head); letter-spacing: -.02em; }
.brand-name { font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-600); }
.nav-toggle {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 44px; min-width: 44px; padding: var(--s-2) var(--s-3);
  background: var(--white); color: var(--navy-700);
  border: 2px solid var(--navy-700); border-radius: 999px; font: 600 1rem/1 var(--font-body); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 1px;
}
.nav-toggle-bars { position: relative; }
.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; }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  max-height: calc(100vh - 72px); overflow-y: auto;
  background: var(--white); border-bottom: 1px solid var(--grey-300); box-shadow: var(--shadow);
  padding: var(--s-3) var(--s-4) var(--s-4);
}
.nav-list, .submenu { list-style: none; margin: 0; padding: 0; }
.nav-link, .submenu a {
  display: flex; align-items: center; min-height: 44px; min-width: 44px; padding: var(--s-2) var(--s-3);
  color: var(--navy-700); font-weight: 600; text-decoration: none; border-radius: var(--radius);
}
.nav-link:hover, .submenu a:hover { background: var(--grey-100); color: var(--navy-900); }
.nav-link[aria-current="page"], .submenu a[aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 2px; }
.submenu a { font-weight: 400; padding-left: var(--s-5); }
/* Mobile: Products is a collapsible group so the menu stays short. */
.has-sub { display: flex; flex-wrap: wrap; align-items: center; }
.has-sub > .nav-link { flex: 1 1 0; min-width: 0; }
.sub-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; border-radius: var(--radius); color: var(--navy-700); cursor: pointer;
}
.sub-toggle:hover { background: var(--grey-100); }
.sub-toggle::before {
  content: ""; width: 8px; height: 8px; margin-top: -4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.sub-toggle[aria-expanded="true"]::before { margin-top: 4px; transform: rotate(-135deg); }
.has-sub > .submenu { display: none; flex: 1 0 100%; }
.has-sub > .submenu.is-open { display: block; }
.nav-cta { margin-top: var(--s-3); }
.nav-cta .btn { width: 100%; }

@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open {
    display: block; position: static; max-height: none; overflow: visible;
    padding: 0; border: 0; box-shadow: none; background: none;
  }
  .nav-list { display: flex; align-items: center; gap: var(--s-1); }
  .nav-item { position: relative; display: flex; align-items: center; }
  .has-sub .nav-link { padding-right: 0; }
  .sub-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0;
    background: none; border: 0; border-radius: var(--radius); color: var(--navy-700); cursor: pointer;
  }
  .sub-toggle:hover { background: var(--grey-100); }
  .sub-toggle::before {
    content: ""; width: 8px; height: 8px; margin-top: -4px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
  }
  .submenu {
    display: none; position: absolute; left: 0; top: 100%; z-index: 60; min-width: 270px;
    padding: var(--s-2); background: var(--white);
    border: 1px solid var(--grey-300); border-radius: var(--radius); box-shadow: var(--shadow);
  }
  .submenu a { padding-left: var(--s-3); }
  .has-sub:hover > .submenu, .has-sub:focus-within > .submenu, .submenu.is-open { display: block; }
  .has-sub.is-dismissed > .submenu { display: none; }
  .nav-cta { margin: 0 0 0 var(--s-3); }
  .nav-cta .btn { width: auto; }
}
@media (max-width: 520px) {
  .brand-name { display: none; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy-900); color: var(--white); --focus: var(--white);
}
.hero-img { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(90deg, rgba(11, 27, 46, .94) 0%, rgba(11, 27, 46, .86) 55%, rgba(11, 27, 46, .74) 100%);
}
.hero::after, .cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
}
.hero-content { padding-block: clamp(var(--s-7), 12vw, 152px); }
.hero h1 { color: var(--white); max-width: 18ch; margin-bottom: var(--s-4); }
.hero .eyebrow, .cta-band .eyebrow { color: var(--accent-light); }
.hero .lede { color: var(--white); max-width: 46ch; }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--grey-100); border-bottom: 1px solid var(--grey-300); padding-block: var(--s-5) var(--s-6); }
.page-head h1 { max-width: 22ch; }
.page-head .lede { max-width: 62ch; margin-bottom: 0; }
.breadcrumb { margin-bottom: var(--s-4); font-size: .9375rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin-inline: var(--s-2); color: var(--grey-500); }
.breadcrumb a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }

/* ---------- Credentials strip ---------- */
.creds { background: var(--white); border-bottom: 1px solid var(--grey-300); padding-block: var(--s-5); }
.creds-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.creds-list li { padding-left: var(--s-3); border-left: 3px solid var(--accent); }
.creds-list strong { display: block; font: 600 1.25rem/1.25 var(--font-head); color: var(--navy-900); }
.creds-list span { display: block; font-size: .9375rem; }
.creds-mark { margin-top: var(--s-2); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); list-style: none; margin: 0; padding: 0; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--grey-300); border-radius: var(--radius-lg); overflow: hidden;
}
.card-link-wrap { transition: box-shadow .15s ease, border-color .15s ease; }
.card-link-wrap:hover { border-color: var(--navy-500); box-shadow: var(--shadow); }
.card-link-wrap:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.card-link-wrap .card-title a:focus-visible { outline: none; }
.card-media {
  position: relative; aspect-ratio: 4 / 3; background: var(--white); border-bottom: 1px solid var(--grey-300);
}
/* scale-down: fit inside the slot but never enlarge beyond the image's own size */
.card-media img {
  position: absolute; inset: var(--s-3); width: calc(100% - 2 * var(--s-3)); height: calc(100% - 2 * var(--s-3));
  max-width: none; object-fit: scale-down;
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: var(--s-4); }
.card-title { margin-bottom: var(--s-2); }
.card-title a { color: var(--navy-900); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-body p { font-size: 1rem; }
.card-more { margin-top: auto; padding-top: var(--s-2); font-weight: 600; color: var(--navy-500); }
.card-more::after { content: " \2192"; }
.card-tag {
  align-self: flex-start; margin-bottom: var(--s-2); padding: 2px var(--s-2);
  border: 1px solid var(--accent-text); border-radius: 999px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text);
}

/* Key facts: label / value rows under a card or product */
.facts { margin: var(--s-2) 0 var(--s-3); padding: 0; font-size: .9375rem; }
.facts > div { display: flex; gap: var(--s-3); padding-block: var(--s-2); border-top: 1px solid var(--grey-300); }
.facts dt { flex: 0 0 7.5em; font-weight: 600; color: var(--navy-900); }
.facts dd { margin: 0; flex: 1; min-width: 0; }

/* ---------- Bullets, split layouts, figures ---------- */
.ticks { list-style: none; padding: 0; margin: 0 0 var(--s-3); }
.ticks li { position: relative; padding: var(--s-2) 0 var(--s-2) var(--s-5); max-width: 68ch; }
.ticks li + li { border-top: 1px solid var(--grey-300); }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 1.05em; width: 12px; height: 2px; background: var(--accent);
}
.split { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s-7); }
  .split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.figures { display: grid; gap: var(--s-4); }
.frame {
  margin: 0; padding: var(--s-3); background: var(--white);
  border: 1px solid var(--grey-300); border-radius: var(--radius-lg);
}
.frame img { margin-inline: auto; }
.frame figcaption { margin-top: var(--s-3); padding-top: var(--s-2); border-top: 1px solid var(--grey-300); font-size: .9375rem; }
.frame-plain { border: 0; padding: 0; background: none; }
.placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--grey-100); border: 1px solid var(--grey-300); border-radius: var(--radius-lg);
  color: var(--slate-600); font-weight: 600; padding: var(--s-3);
}
.placeholder-4x3 { aspect-ratio: 4 / 3; }

/* ---------- Product list (category pages) ---------- */
.products { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); list-style: none; margin: 0; padding: 0; }
.product .card-media { aspect-ratio: 3 / 2; }
.product h3 { margin-bottom: var(--s-2); }
.product .where { font-size: .9375rem; font-weight: 600; color: var(--accent-text); margin-bottom: var(--s-2); }
.product .facts { margin-bottom: 0; }
.footnotes { margin-top: var(--s-4); font-size: .9375rem; }
.footnotes p { max-width: 80ch; margin-bottom: var(--s-2); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--grey-300); border-radius: var(--radius); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
caption { text-align: left; padding: var(--s-3); font-weight: 600; color: var(--navy-900); }
th, td { padding: var(--s-3); text-align: left; vertical-align: top; border-top: 1px solid var(--grey-300); }
thead th { background: var(--navy-700); color: var(--white); font-weight: 600; border-top: 0; }
tbody th { color: var(--navy-900); font-weight: 600; }

/* ---------- Services strip, timeline, steps ---------- */
.cols-3 { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); list-style: none; margin: 0; padding: 0; }
.cols-3 > li { padding-top: var(--s-3); border-top: 3px solid var(--navy-700); }
.cols-3 p { font-size: 1rem; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.timeline li { padding-top: var(--s-3); border-top: 3px solid var(--accent); }
.timeline time { display: block; font: 600 1.75rem/1.1 var(--font-head); color: var(--navy-900); margin-bottom: var(--s-1); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border: 1px solid var(--grey-300); border-radius: var(--radius); background: var(--white); }
.faq details + details { margin-top: var(--s-3); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  min-height: 56px; padding: var(--s-3) var(--s-4); cursor: pointer; list-style: none;
  font: 600 1.1875rem/1.3 var(--font-head); color: var(--navy-900); border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: var(--s-1);
  border-right: 2px solid var(--navy-700); border-bottom: 2px solid var(--navy-700);
  transform: rotate(45deg); transition: transform .15s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { background: var(--grey-100); }
.faq-answer { padding: 0 var(--s-4) var(--s-3); }
.faq-answer p:last-child { margin-bottom: var(--s-2); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy-900); color: var(--white); text-align: center; --focus: var(--white);
  padding-block: clamp(var(--s-6), 8vw, var(--s-8));
}
.cta-band h2 { color: var(--white); }
.cta-band p { margin-inline: auto; color: var(--grey-300); }
.cta-band .btn-row { justify-content: center; }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s-4); }
.field label { display: block; margin-bottom: var(--s-1); font-weight: 600; color: var(--navy-900); }
.field .hint { display: block; margin: 0 0 var(--s-1); font-size: .9375rem; }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 48px; padding: 10px var(--s-3);
  font: inherit; color: var(--navy-900); background: var(--white);
  border: 2px solid var(--grey-500); border-radius: var(--radius);
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--navy-700); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { margin: var(--s-1) 0 0; font-weight: 600; color: var(--error); }
.field-error::before { content: "Error: "; }
.optional { font-weight: 400; color: var(--slate-600); }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-summary { padding: var(--s-3) var(--s-4); border: 2px solid var(--error); border-left-width: 8px; border-radius: var(--radius); background: var(--white); }
.form-summary h2 { font-size: 1.25rem; margin-bottom: var(--s-2); }
.form-summary ul { margin-bottom: 0; }
.form-summary a { color: var(--error); font-weight: 600; }
.form-status { padding: var(--s-3) var(--s-4); border: 2px solid var(--success); border-left-width: 8px; border-radius: var(--radius); background: var(--white); color: var(--navy-900); font-weight: 600; }
.form-status.is-error { border-color: var(--error); }
.form-status:empty { display: none; }
.contact-card { padding: var(--s-4); background: var(--white); border: 1px solid var(--grey-300); border-radius: var(--radius-lg); }
.contact-card h2 { font-size: 1.5rem; }
.contact-card dl { margin: 0; }
.contact-card dt { font-weight: 600; color: var(--navy-900); margin-top: var(--s-3); }
.contact-card dd { margin: 0; }
.contact-card dd > a { display: inline-flex; align-items: center; min-height: 44px; }

.map-frame { border: 1px solid var(--grey-300); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); }
.map-frame iframe { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; min-height: 260px; border: 0; }
.mt-s { margin-top: var(--s-3); }
.contact-card .note { margin-bottom: var(--s-2); }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: var(--s-6); font-size: clamp(1.5rem, 1.3rem + .9vw, 1.875rem); }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: var(--s-2); max-width: 68ch; }
.todo-mark { background: #FFF1D6; color: var(--navy-900); padding: 1px 6px; border-radius: 4px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--grey-300); padding-block: var(--s-7) var(--s-5); --focus: var(--white); }
.footer-grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.site-footer h2 { font-size: 1.125rem; color: var(--white); letter-spacing: .04em; margin-bottom: var(--s-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
/* Footer links look like the surrounding text; they underline and brighten on hover or focus. */
.site-footer a, .footer-btn { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
.site-footer a:hover, .footer-btn:hover { color: var(--white); text-decoration: underline; text-underline-offset: .2em; }
.site-footer address a { min-height: 0; padding-block: var(--s-1); }
.site-footer .addr-link { display: inline-block; }
.footer-btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.footer-brand .brand-mark { color: var(--white); display: block; margin-bottom: var(--s-2); }
.footer-brand p { margin-bottom: var(--s-2); }
.footer-base { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid rgba(255, 255, 255, .2); font-size: .9375rem; }
.footer-base p { max-width: none; margin-bottom: var(--s-1); }

/* ---------- Cookie banner (only rendered when enabled in site.js) ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: var(--navy-900); color: var(--white); border-top: 4px solid var(--accent);
  box-shadow: 0 -8px 32px rgba(11, 27, 46, .35); padding-block: var(--s-4);
  --focus: var(--white);
}
.cookie-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-6); }
.cookie-text { flex: 1 1 480px; }
.cookie-banner h2 { font-size: 1.25rem; margin-bottom: var(--s-1); color: var(--white); }
.cookie-banner p { font-size: 1rem; margin: 0; max-width: 75ch; color: var(--grey-300); }
.cookie-banner a { color: var(--white); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); flex: 0 1 auto; }
/* Equal weight by design: both buttons share one style and one size. */
.cookie-actions .btn { flex: 1 1 180px; min-width: 180px; background: var(--white); color: var(--navy-900); border-color: var(--white); }
.cookie-actions .btn:hover { background: var(--grey-100); border-color: var(--grey-100); color: var(--navy-900); }
@media (max-width: 700px) { .cookie-actions { flex: 1 1 100%; } }

/* ---------- Motion, print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .cta-band, .cookie-banner, .skip-link { display: none; }
  body { font-size: 11pt; color: #000; }
}
