:root {
  --chalk: #f8f3e8;
  --paper: #fffdf7;
  --blue: #174a7e;
  --blue-deep: #0e365f;
  --terracotta: #c85b3c;
  --terracotta-deep: #923c2a;
  --olive: #737a32;
  --ink: #172425;
  --muted: #536160;
  --sky: #ddecf2;
  --line: #c6c5b8;
  --error: #a52a2a;
  --success: #486313;
  --display: Cambria, Cochin, Georgia, Times, serif;
  --body: "Segoe UI Variable", "Segoe UI", Tahoma, sans-serif;
  --utility: Verdana, Geneva, sans-serif;
  --step--1: clamp(.82rem, .79rem + .12vw, .9rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.12rem);
  --step-1: clamp(1.25rem, 1.12rem + .65vw, 1.65rem);
  --step-2: clamp(1.65rem, 1.38rem + 1.3vw, 2.45rem);
  --step-3: clamp(2.25rem, 1.72rem + 2.6vw, 4rem);
  --step-4: clamp(3rem, 2rem + 4.5vw, 6rem);
  --shell: min(1180px, calc(100% - 2.5rem));
  --measure: 68ch;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--chalk);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--blue-deep); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 4px; }
::selection { background: var(--sky); color: var(--ink); }

.shell { width: var(--shell); margin-inline: auto; }
.narrow { width: min(var(--measure), calc(100% - 2.5rem)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 7.5rem); }
.section-tight { padding-block: clamp(2.8rem, 5vw, 4.5rem); }
.paper { background: var(--paper); }
.sky { background: var(--sky); }
.dark { background: var(--ink); color: var(--paper); }
.dark a { color: #c8e6ff; }
.eyebrow {
  margin: 0 0 1rem;
  color: var(--blue);
  font-family: var(--utility);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.dark .eyebrow { color: #bcd9ef; }
h1, h2, h3 {
  margin: 0 0 .75em;
  font-family: var(--display);
  line-height: 1.04;
  text-wrap: balance;
}
h1 { max-width: 14ch; font-size: var(--step-4); letter-spacing: -.045em; }
h2 { max-width: 23ch; font-size: var(--step-3); letter-spacing: -.035em; }
h3 { font-size: var(--step-1); line-height: 1.2; }
p, ul, ol { margin-top: 0; }
.lede { max-width: 58ch; font-size: var(--step-1); line-height: 1.48; }
.small, .source-note { font-size: var(--step--1); line-height: 1.55; color: var(--muted); }
.source-note { border-left: 4px solid var(--olive); padding: .75rem 0 .75rem 1rem; }
.dark .small { color: #d7ddda; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-180%);
  padding: .75rem 1rem;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(23,36,37,.18);
  background: rgba(248,243,232,.96);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand-link { margin-right: auto; }
.brand-full { width: 208px; height: auto; }
.brand-compact { display: none; }
.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: .65rem .8rem;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}
.main-nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -3px var(--blue); }
.main-nav .nav-cta {
  margin-left: .45rem;
  padding-inline: 1rem;
  background: var(--blue);
  color: white;
}
.main-nav .nav-cta:hover { background: var(--blue-deep); color: white; }
.main-nav .nav-cta[aria-current="page"] { background: var(--blue-deep); color: white; box-shadow: inset 0 -3px white; }
.menu-toggle {
  display: none;
  min-width: 88px;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.hero-grid {
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
  align-items: stretch;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4.5rem, 8vw, 8rem) clamp(2rem, 6vw, 6rem) clamp(4rem, 7vw, 7rem) max(0px, calc((100vw - 1180px)/2));
  padding-left: max(1.25rem, calc((100vw - 1180px)/2));
}
.hero-copy .lede { margin-bottom: 2rem; }
.hero-mosaic {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  grid-template-rows: .85fr 1.15fr;
  gap: 7px;
  padding: 7px;
  background: var(--ink);
}
.hero-tile {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.25rem, 3vw, 2.4rem);
  color: white;
  transform: translateY(14px);
  opacity: .84;
}
.js-ready .hero-tile { animation: tile-settle .42s ease-out forwards; }
.hero-tile:nth-child(2) { animation-delay: .07s; }
.hero-tile:nth-child(3) { animation-delay: .14s; }
.hero-tile:nth-child(4) { animation-delay: .21s; }
.tile-blue { background: var(--blue); }
.tile-terra { background: var(--terracotta-deep); color: white; }
.tile-olive { background: var(--olive); }
.tile-sky { background: var(--sky); color: var(--ink); }
.hero-tile span {
  font-family: var(--utility);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-tile strong { font-family: var(--display); font-size: var(--step-2); line-height: 1.05; }
@keyframes tile-settle { to { transform: translateY(0); opacity: 1; } }

.button-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.1rem;
  border: 2px solid var(--blue);
  background: var(--blue);
  color: white;
  font-weight: 750;
  text-decoration: none;
}
.button:hover { background: var(--blue-deep); color: white; }
.button-secondary { background: transparent; color: var(--blue); }
.button-secondary:hover { background: var(--sky); color: var(--ink); }

.editorial-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}
.mosaic-key { border-top: 7px solid var(--ink); }
.key-row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.key-swatch { width: 14px; height: 42px; }
.key-row strong { display: block; }
.key-row span:last-child { color: var(--muted); font-family: var(--utility); font-size: var(--step--1); }

.guide-index { border-top: 1px solid var(--ink); }
.guide-link {
  display: grid;
  grid-template-columns: minmax(170px,.55fr) minmax(0,1fr) auto;
  gap: 1.5rem;
  align-items: start;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.guide-link:hover .guide-arrow { transform: translateX(5px); }
.guide-link h3 { margin-bottom: .35rem; }
.guide-link p { margin-bottom: 0; color: var(--muted); }
.guide-tag { font-family: var(--utility); font-size: var(--step--1); font-weight: 700; color: var(--blue); text-transform: uppercase; }
.guide-arrow { color: var(--blue); font-size: 1.4rem; transition: transform .18s ease; }

.page-hero {
  padding-block: clamp(4.5rem, 9vw, 8rem);
  border-bottom: 7px solid var(--ink);
  background: var(--paper);
}
.page-hero-grid { display: grid; grid-template-columns: 1fr minmax(230px,.45fr); gap: 3rem; align-items: end; }
.page-hero h1 { max-width: 15ch; }
.route-mosaic { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; align-self: stretch; min-height: 150px; }
.route-mosaic span { display: block; }
.route-mosaic span:nth-child(1) { background: var(--blue); }
.route-mosaic span:nth-child(2) { background: var(--terracotta); margin-top: 30%; }
.route-mosaic span:nth-child(3) { background: var(--olive); margin-bottom: 22%; }
.route-mosaic span:nth-child(4) { background: var(--sky); margin-top: 15%; }

.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: clamp(2rem,6vw,6rem); align-items: start; }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.6em; }
.prose h3 { margin-top: 2em; }
.prose li + li { margin-top: .45rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: .96em; }
.prose th, .prose td { padding: .8rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--sky); }
.callout { margin: 2rem 0; padding: 1.5rem; border-left: 7px solid var(--terracotta); background: var(--paper); }
.callout h2, .callout h3 { margin-top: 0; }
.side-rail { position: sticky; top: 1.5rem; border-top: 7px solid var(--blue); padding-top: 1.2rem; }
.side-rail ul { padding-left: 1.2rem; }
.side-rail li + li { margin-top: .55rem; }

.steps { counter-reset: step; margin: 2.5rem 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  background: var(--blue);
  color: white;
  font-family: var(--utility);
  font-weight: 700;
}
.steps li:last-child { border-bottom: 1px solid var(--line); }

.contact-grid { display: grid; grid-template-columns: minmax(0,.72fr) minmax(360px,1fr); gap: clamp(2.5rem,7vw,7rem); align-items: start; }
.form-panel { padding: clamp(1.5rem,4vw,3rem); background: var(--paper); border-top: 8px solid var(--blue); }
.field { margin-bottom: 1.25rem; }
.field label, .field legend { display: block; margin-bottom: .4rem; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: .75rem;
  border: 2px solid #758180;
  border-radius: 0;
  background: white;
  color: var(--ink);
}
.field textarea { min-height: 170px; resize: vertical; }
.field-hint { margin: .35rem 0 0; color: var(--muted); font-size: var(--step--1); }
.checkbox { display: grid; grid-template-columns: 24px 1fr; gap: .75rem; align-items: start; }
.checkbox input { width: 22px; height: 22px; margin-top: .2rem; }
.field-error { display: block; color: var(--error); font-size: var(--step--1); font-weight: 650; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.error-summary { margin-bottom: 1.5rem; padding: 1rem; border: 3px solid var(--error); background: #fff4f2; }
.form-status { min-height: 3rem; margin-top: 1rem; padding: .8rem 0; font-weight: 700; }
.form-status.success { color: var(--success); }
.form-status.error { color: var(--error); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.legal-note { padding: 1.4rem; background: var(--sky); border-left: 7px solid var(--blue); }
.meta-list { display: grid; grid-template-columns: minmax(150px,.35fr) 1fr; margin: 2rem 0; }
.meta-list dt, .meta-list dd { margin: 0; padding: .8rem 0; border-top: 1px solid var(--line); }
.meta-list dt { font-weight: 700; }
.meta-list dd { padding-left: 1rem; }

.site-footer { padding-top: 4rem; background: var(--ink); color: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.25fr .65fr .9fr; gap: 3rem; }
.footer-brand img { width: 215px; }
.site-footer h2 { font-family: var(--utility); font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer ul { padding: 0; list-style: none; }
.site-footer li + li { margin-top: .5rem; }
.site-footer a { color: #d3e8f7; }
.footer-bottom { margin-top: 3rem; padding-block: 1.2rem; border-top: 1px solid rgba(255,255,255,.25); font-size: var(--step--1); }

@media (max-width: 900px) {
  .hero-grid { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { padding: 5rem max(1.25rem, calc((100vw - 740px)/2)); }
  .hero-mosaic { min-height: 420px; }
  .editorial-split, .contact-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .side-rail { position: static; }
  .footer-grid { grid-template-columns: 1.2fr 1fr; }
}
@media (max-width: 720px) {
  :root { --shell: min(100% - 2rem, 680px); }
  .header-inner { min-height: 68px; flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 1rem;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { border-top: 1px solid var(--line); }
  .main-nav .nav-cta { margin-left: 0; margin-top: .4rem; justify-content: center; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .route-mosaic { min-height: 105px; }
  .guide-link { grid-template-columns: 1fr auto; gap: .6rem 1rem; }
  .guide-tag { grid-column: 1 / -1; }
  .guide-link p { grid-column: 1 / 2; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .brand-full { display: none; }
  .brand-compact { display: block; }
  .hero-mosaic { min-height: 500px; grid-template-columns: 1fr 1fr; }
  .hero-tile { min-height: 175px; padding: 1rem; }
  .button-row { flex-direction: column; }
  .button { width: 100%; }
  .meta-list { grid-template-columns: 1fr; }
  .meta-list dt { padding-bottom: .15rem; }
  .meta-list dd { padding-top: 0; padding-left: 0; border-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-tile { transform: none; opacity: 1; }
}



.footer-choice {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d3e8f7;
  text-decoration: underline;
  text-underline-offset: .18em;
}
.consent-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  width: min(760px, calc(100% - 2rem));
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: 12px 12px 0 rgba(23, 74, 126, .28);
}
.consent-banner[hidden] { display: none; }
.consent-banner h2, .consent-dialog h2 { font-size: var(--step-2); }
.consent-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.2rem; }
.consent-dialog {
  width: min(680px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 3px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}
.consent-dialog::backdrop { background: rgba(23,36,37,.68); }
.consent-category {
  display: grid;
  grid-template-columns: 1fr 28px;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.consent-category p { margin: .2rem 0 0; color: var(--muted); font-size: var(--step--1); }
.consent-category input { width: 24px; height: 24px; }
@media (max-width: 560px) {
  .consent-banner { right: .5rem; bottom: .5rem; width: calc(100% - 1rem); max-height: calc(100vh - 1rem); overflow: auto; }
  .consent-actions { flex-direction: column; }
  .consent-actions .button { width: 100%; }
}




