:root {
  color-scheme: dark;
  --navy: #12358f;
  --navy-deep: #0b286f;
  --ink: #102047;
  --accent: #ffc400;
  --paper: #f5f8ff;
  --soft-blue: #e7f0ff;
  --outline: #d5e2f5;
  --muted: rgba(255, 255, 255, 0.66);
  --line: rgba(255, 255, 255, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--navy);
  color: #fff;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 53, 143, 0.94);
  backdrop-filter: blur(18px);
}

.header-inner,
.page,
.footer-inner {
  width: min(100% - 40px, 960px);
  margin-inline: auto;
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 46px;
  height: 24px;
  color: var(--accent);
}

.header-link {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.header-link:hover {
  color: #fff;
}

.page {
  padding: 72px 0 88px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(40px, 8vw, 76px);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(25px, 4vw, 34px);
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.lede {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(17px, 2.4vw, 21px);
}

.meta {
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
}

.document-list {
  margin-top: 64px;
  border-top: 1px solid var(--line);
}

.document-link {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color 160ms ease, padding 160ms ease;
}

.document-link:hover {
  padding-left: 8px;
  color: var(--accent);
}

.document-number,
.document-note {
  color: var(--muted);
  font-size: 13px;
}

.document-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.document {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 72px;
  align-items: start;
  margin-top: 68px;
}

.document-content {
  min-width: 0;
}

.document-content section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.document-content p,
.document-content li {
  color: rgba(255, 255, 255, 0.78);
}

.document-content strong {
  color: #fff;
}

.document-content a {
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.document-content ul,
.document-content ol {
  padding-left: 22px;
}

.document-content li + li {
  margin-top: 9px;
}

.callout {
  margin: 28px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.toc {
  position: sticky;
  top: 100px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.toc-title {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  .header-inner,
  .page,
  .footer-inner {
    width: min(100% - 32px, 960px);
  }

  .page {
    padding-top: 48px;
  }

  .document {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 48px;
  }

  .toc {
    position: static;
    grid-row: 1;
  }

  .document-link {
    grid-template-columns: 32px 1fr;
  }

  .document-note {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
  }
}

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

  .document-link {
    transition: none;
  }
}
