:root {
  color-scheme: light;
  --navy: #273171;
  --navy-dark: #171d4d;
  --orange: #d8580d;
  --teal: #087f77;
  --ink: #171a2b;
  --muted: #555c70;
  --line: #dfe3ed;
  --surface: #f5f7fb;
  --white: #fff;
  --focus: #f07827;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
}

a { color: var(--navy); text-underline-offset: .18em; }
a:hover { color: var(--orange); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  padding: .7rem 1rem;
  background: var(--white);
  color: var(--ink);
  border-radius: .5rem;
  box-shadow: 0 8px 30px #12163333;
}
.skip-link:focus { top: 1rem; }

.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--orange);
  color: var(--navy-dark);
  box-shadow: 0 8px 24px #1419450d;
}

.header-inner, .content, .footer-inner {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.header-inner {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.brand img { display: block; width: min(13.75rem, 48vw); height: auto; }

.nav { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.nav a { color: var(--navy); font-size: .92rem; font-weight: 700; }
.nav a:hover { color: var(--orange); }
.nav a[aria-current="page"] { color: var(--orange); text-decoration-thickness: 2px; }

.content { padding-block: clamp(2.5rem, 6vw, 5rem); }
.content.narrow { max-width: 54rem; }

.eyebrow {
  color: var(--teal);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2, h3 { color: var(--navy-dark); line-height: 1.2; letter-spacing: -.025em; }
h1 { margin: .55rem 0 1rem; font-size: clamp(2.1rem, 7vw, 4rem); }
h2 { margin: 2.7rem 0 .8rem; font-size: clamp(1.35rem, 4vw, 1.85rem); }
h3 { margin: 1.5rem 0 .5rem; font-size: 1.08rem; }

.lede { max-width: 47rem; color: var(--muted); font-size: clamp(1.05rem, 2.4vw, 1.25rem); }
.updated { color: var(--muted); font-size: .9rem; }

.hero {
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: linear-gradient(145deg, #fff 50%, #e8ecff);
  box-shadow: 0 16px 50px #14194512;
}

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

.card {
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 10px 30px #1419450d;
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover { color: var(--ink); border-color: #9299c3; transform: translateY(-2px); }
.card strong { color: var(--navy-dark); font-size: 1.1rem; }
.card span { margin-top: .5rem; color: var(--muted); }

.document {
  padding: clamp(1.4rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--white);
  box-shadow: 0 16px 45px #1419450d;
}
.document > :first-child { margin-top: 0; }
.document li + li { margin-top: .45rem; }

.notice {
  margin-block: 1.5rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--teal);
  background: #eaf9f7;
  border-radius: 0 .75rem .75rem 0;
}
.warning { border-left-color: var(--orange); background: #fff2e9; }

.data-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.data-table th, .data-table td { padding: .8rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { background: #eef1fa; color: var(--navy-dark); }
.table-wrap { overflow-x: auto; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-top: .8rem;
  padding: .7rem 1.1rem;
  border-radius: .7rem;
  background: var(--navy);
  color: var(--white);
  font-weight: 750;
  text-decoration: none;
}
.button:hover { background: var(--navy-dark); color: var(--white); }

.site-footer { background: var(--navy-dark); color: #e5e8f5; }
.footer-inner { padding-block: 2rem; display: flex; justify-content: space-between; gap: 1.5rem; }
.footer-inner p { margin: 0; }
.footer-inner a { color: #fff; }

@media (max-width: 48rem) {
  .header-inner, .footer-inner { align-items: flex-start; flex-direction: column; padding-block: 1rem; }
  .nav { gap: .45rem 1rem; }
  .grid { grid-template-columns: 1fr; }
  .document { border-radius: .8rem; }
}

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