:root {
  --ink: #171717;
  --blue: #004494;
  --blue-dark: #002f67;
  --blue-hover: #003776;
  --blue-5: #f2f5f9;
  --yellow: #ffd617;
  --paper: #ffffff;
  --muted: #404040;
  --line: #cfd4dc;
  --deep: #002f67;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 88px; }

body {
  margin: 0;
  background: #fff;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

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

a { color: var(--blue); }

a:hover { color: var(--blue-hover); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

.hero h1::after,
.page-hero h1::after,
.section h2::after,
.band h2::after {
  content: "";
  display: block;
  width: 4.75rem;
  height: 0.25rem;
  margin-top: 0.75rem;
  background: var(--yellow);
}

p { margin: 0 0 0.8rem; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #fff;
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 50;
}

.skip:focus { top: 0.5rem; }

.wrap {
  width: min(1140px, calc(100% - 2rem));
  margin-inline: auto;
}

.eu-bar {
  height: 4px;
  background: var(--blue);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.bar {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand img {
  height: 64px;
  width: auto;
  display: block;
  background: #fff;
}

.brand strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.nav-toggle {
  display: none;
  border: 2px solid var(--blue);
  background: #fff;
  color: var(--blue);
  border-radius: var(--radius);
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav > a {
  text-decoration: none;
  color: var(--blue);
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
}

.site-nav > a:hover { text-decoration: underline; }

.site-nav > a.nav-cta {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  margin-left: 0.4rem;
}

.site-nav > a.nav-cta:hover {
  background: var(--blue-hover);
  color: #fff;
  text-decoration: none;
}

.hero {
  padding: 2.4rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.625rem);
  max-width: 36rem;
}

.lede {
  font-size: 1.05rem;
  max-width: 40rem;
}

.hero-actions,
.band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.hero-photo {
  margin: 0;
  border: 1px solid var(--line);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  border: 2px solid var(--blue);
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
}

.btn:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--blue);
}

.btn-secondary:hover { background: var(--blue-5); color: var(--blue); }

.btn-small { min-height: 40px; padding: 0.35rem 0.85rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--blue-5);
  border-block: 1px solid var(--line);
}

.stat {
  padding: 1.15rem 1.1rem;
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: 0; }

.stat strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.2;
}

.stat span { font-size: 0.95rem; }

.section { padding: 2.75rem 0; }

.section h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }

.lede-block { max-width: 46rem; }

.paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
}

.path {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.path-main { border-top: 4px solid var(--yellow); }

.path h3 { font-size: 1.45rem; }

.path h3 a { color: var(--blue); text-decoration: none; }

.path h3 a:hover { text-decoration: underline; }

.path-actions { margin-top: auto; padding-top: 0.9rem; }

.kicker {
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
}

.page-hero {
  padding: 1.8rem 0 1.2rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.625rem);
  max-width: 22ch;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
}

.prose-page > p,
.prose-page > h2,
.prose-page > h3,
.prose-page > ul,
.prose-page > ol,
.prose-page > .callout,
.prose-page > figure,
.prose-page > table { max-width: 46rem; }

.prose-page h2 { margin-top: 2rem; font-size: 1.75rem; }

.prose-page h3 { margin-top: 1.4rem; font-size: 1.3rem; }

.prose-page ul,
.prose-page ol { margin: 0.4rem 0 0.8rem; padding-left: 1.2rem; }

.prose-page li { margin: 0.25rem 0; }

.prose-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.2rem;
  font-size: 0.95rem;
}

.prose-page th,
.prose-page td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.prose-page th { color: var(--ink); font-weight: 700; }

.callout {
  border-left: 4px solid var(--yellow);
  background: var(--blue-5);
  padding: 0.8rem 1rem;
  margin: 1rem 0;
}

.figure-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 46rem;
  margin: 1rem 0 1.2rem;
}

.figure-row figure,
.prose-page figure {
  margin: 0;
  border: 1px solid var(--line);
}

.figure-row img,
.prose-page figure img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.prose-page > figure img {
  height: auto;
  object-fit: contain;
}

figcaption {
  padding: 0.7rem 0.85rem 0.85rem;
  font-size: 0.92rem;
}

.timeline {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  max-width: 46rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.timeline time {
  color: var(--blue);
  font-weight: 700;
}

.timeline a {
  font-weight: 700;
  text-decoration: none;
}

.timeline a:hover { text-decoration: underline; }

.timeline p { margin: 0.2rem 0 0; }

.band {
  background: var(--blue);
  color: #fff;
  padding: 2.6rem 0;
}

.band h2,
.band p { color: #fff; }

.band h2::after { background: var(--yellow); }

.band a:not(.btn) { color: var(--yellow); }

.band .btn {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.band .btn:hover {
  background: #f8ae21;
  border-color: #f8ae21;
  color: var(--ink);
}

.site-footer {
  background: var(--deep);
  color: #fff;
  padding: 2.6rem 0 1.2rem;
}

.site-footer a { color: #fff; }

.site-footer a:hover { color: var(--yellow); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.9fr 0.9fr;
  gap: 1.5rem;
}

.footer-mark {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.footer-label {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--yellow);
}

.footer-links { list-style: none; margin: 0; padding: 0; }

.footer-links li { margin: 0.28rem 0; }

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.92rem;
}

code {
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .site-header { position: sticky; }
  .bar { position: relative; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1rem 1rem;
  }
  .site-nav.is-open {
    display: flex;
    max-height: calc(100dvh - 76px);
    overflow: auto;
  }
  .nav-cta { margin-left: 0; text-align: center; }
  .stats,
  .paths,
  .footer-grid,
  .hero-grid,
  .figure-row { grid-template-columns: 1fr 1fr; }
  .hero-grid,
  .figure-row { grid-template-columns: 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .hero { padding: 1.6rem 0 1.4rem; }
  .hero-photo img { height: 200px; }
  .timeline li { grid-template-columns: 1fr; gap: 0.2rem; }
}

@media (max-width: 640px) {
  .stats,
  .paths,
  .footer-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .footer-base { flex-direction: column; }
  .brand small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
