/* AHS — single stylesheet. Tokens first, then layout, then components. */
:root {
  --ink: #12202B;
  --ink-soft: #4A5A68;
  --paper: #FFFFFF;
  --paper-warm: #F7F5F1;
  --brand: #123B57;
  --brand-soft: #E3ECF2;
  --accent: #B5822F;
  --rule: #DFE4E8;
  --measure: 68ch;
  --gap: 1.25rem;
  --radius: 10px;
}

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

body {
  margin: 0;
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.container { width: min(72rem, 100% - 2.5rem); margin-inline: auto; }

/* Keyboard users get a visible way past the nav. Hidden until focused. */
.skip-link {
  position: absolute; left: -9999px;
  background: var(--brand); color: #fff; padding: .6rem 1rem; z-index: 10;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* --- header / nav --- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header__inner {
  display: flex; flex-wrap: wrap; gap: var(--gap);
  align-items: center; justify-content: space-between;
  padding-block: 1rem;
}
.brand { text-decoration: none; color: var(--brand); }
.brand__name { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }

.nav {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  list-style: none; margin: 0; padding: 0;
}
.nav a {
  text-decoration: none; color: var(--ink-soft);
  font-weight: 500; padding-block: .25rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--brand); }
/* aria-current is set by build.py, so the styling and the screen-reader
   announcement can never disagree about which page you are on. */
.nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--accent); }

/* --- typography --- */
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); margin-top: 2em; }
h3 { font-size: 1.2rem; margin-top: 1.75em; }
p, ul, ol { max-width: var(--measure); }
a { color: var(--brand); text-underline-offset: 2px; }
.muted { color: var(--ink-soft); font-size: .9375rem; }
.lead { font-size: 1.1875rem; color: var(--ink-soft); max-width: var(--measure); }

/* --- sections --- */
section { padding-block: 3rem; }
.section--warm { background: var(--paper-warm); }
.hero { padding-block: clamp(3rem, 8vw, 5.5rem); background: var(--brand-soft); }

/* --- components --- */
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.card {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1.5rem;
}
.card > :first-child { margin-top: 0; }
.card p { max-width: none; }

.btn {
  display: inline-block; background: var(--brand); color: #fff;
  padding: .75rem 1.4rem; border-radius: var(--radius);
  text-decoration: none; font-weight: 600;
}
.btn:hover { background: #0D2C42; }
.btn--ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }

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

/* --- footer --- */
.site-footer { border-top: 1px solid var(--rule); margin-top: 4rem; padding-block: 2rem; }

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

/* --- hero with a background photo ---------------------------------------
   The image is a real <img> rather than a CSS background so it can carry
   width/height (no layout shift) and be marked aria-hidden — it is decoration,
   and a screen reader announcing it would only get in the way of the h1. */
.hero--image { position: relative; isolation: isolate; background: #000; }
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .55; z-index: -1;
}
.hero--image .hero__body { color: #fff; }
.hero--image .hero__body .lead { color: rgba(255,255,255,.9); }

/* --- two-column split, image beside text --- */
.split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 48rem) {
  .split { grid-template-columns: 1fr 1fr; }
  /* Reverse visual order only; the DOM keeps text-then-image so the reading
     order and tab order stay sensible. */
  .split--reverse .split__media { order: 2; }
}
.split__media img { border-radius: var(--radius); display: block; }
.split > div > :first-child { margin-top: 0; }

.figure { margin: 2rem 0; }
.figure img { border-radius: var(--radius); display: block; width: 100%; }
.figure figcaption { margin-top: .6rem; }
.logo-strip { display: block; width: 100%; margin-top: 1.5rem; }

/* --- numbered process steps --- */
.steps {
  list-style: none; counter-reset: step;
  margin: 2rem 0 0; padding: 0;
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.steps li {
  counter-increment: step;
  border-top: 3px solid var(--accent);
  padding-top: 1rem;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-weight: 700; color: var(--accent);
  font-size: .875rem; letter-spacing: .08em;
}
.steps h3 { margin-top: .35rem; }
.steps p { max-width: none; }

/* --- table --- */
.table { border-collapse: collapse; width: 100%; margin-top: 1.5rem; }
.table th, .table td {
  text-align: left; vertical-align: top;
  padding: .85rem 1rem; border-bottom: 1px solid var(--rule);
}
.table th { width: 32%; color: var(--brand); }
.table tr:nth-child(odd) { background: var(--paper-warm); }
@media (max-width: 34rem) {
  /* Two-column rows stack rather than squeezing the text to a few characters. */
  .table th, .table td { display: block; width: auto; border-bottom: 0; }
  .table td { padding-top: 0; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
}

/* --- disclosure rows --- */
details { border-bottom: 1px solid var(--rule); padding: .85rem 0; }
summary { cursor: pointer; font-weight: 600; color: var(--brand); }
details p { margin: .6rem 0 0; }

/* --- long-form legal pages --- */
.prose h2 { font-size: 1.25rem; }
.prose address { font-style: normal; margin: 1rem 0; color: var(--ink-soft); }
.legal { padding-left: 1.25rem; }
.legal > li { margin-bottom: 1.25rem; max-width: var(--measure); }
.legal ul, .legal ol { margin-top: .5rem; }

/* --- footer --- */
.site-footer { background: var(--paper-warm); }
.footer__legal {
  font-size: .875rem; color: var(--ink-soft);
  max-width: var(--measure); margin-bottom: 1.25rem;
}
