:root {
  color-scheme: light dark;
  --ink: #151a22;
  --muted: #606a7a;
  --line: #dfe5ed;
  --surface: #ffffff;
  --canvas: #f3f6fa;
  --soft: #edf4ff;
  --accent: #1769e0;
  --accent-strong: #0e4da9;
  --accent-ink: #ffffff;
  --shadow: 0 18px 55px rgba(28, 47, 76, 0.09);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 85% -10%, rgba(23, 105, 224, 0.12), transparent 31rem),
    var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-strong); }
a:focus-visible, .document-link:focus-visible {
  outline: 3px solid rgba(23, 105, 224, 0.35);
  outline-offset: 4px;
  border-radius: 6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(100% - 40px, 960px);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 720;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #2679ee, #154ca7);
  box-shadow: 0 8px 18px rgba(23, 105, 224, 0.25);
}

.brand-mark svg { width: 25px; height: auto; }

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  background: var(--surface);
  color: var(--ink);
}

main {
  width: min(100% - 40px, 960px);
  margin: 0 auto;
  padding: 72px 0 92px;
}

.hero { max-width: 760px; margin-bottom: 40px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1, h2, h3 { margin-top: 0; line-height: 1.18; letter-spacing: -0.025em; }
h1 { margin-bottom: 18px; font-size: clamp(2.55rem, 7vw, 4.6rem); }
h2 { margin-bottom: 14px; font-size: clamp(1.38rem, 3.2vw, 1.78rem); }
h3 { margin-bottom: 8px; font-size: 1.02rem; }

.lede {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
}

.meta { margin: 18px 0 0; color: var(--muted); font-size: 0.9rem; }

.summary-card, .section, .document-link {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.summary-card { padding: 26px 28px; margin: 0 0 26px; }
.summary-card h2 { font-size: 1.08rem; }
.summary-card ul { margin-bottom: 0; }

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 30px;
}
.toc a {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.section { padding: 32px; margin-top: 16px; scroll-margin-top: 92px; }
.section > :last-child { margin-bottom: 0; }
.section p { margin: 0 0 14px; }
.section ul, .section ol, .summary-card ul { padding-left: 1.3rem; }
.section li + li, .summary-card li + li { margin-top: 8px; }

.notice {
  margin: 20px 0;
  padding: 18px 20px;
  border: 1px solid #b9d3ff;
  border-radius: 16px;
  background: var(--soft);
}
.notice strong { display: block; margin-bottom: 4px; }

.provider-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.provider {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--canvas) 55%, var(--surface));
}
.provider p { color: var(--muted); font-size: 0.92rem; }

.document-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.document-link {
  display: block;
  min-height: 218px;
  padding: 28px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.document-link:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 22px 60px rgba(28, 47, 76, 0.14);
  color: var(--ink);
}
.document-link .icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 13px;
  background: var(--soft);
  color: var(--accent);
  font-size: 1.25rem;
}
.document-link h2 { margin-bottom: 8px; }
.document-link p { margin: 0; color: var(--muted); }
.arrow { display: inline-block; margin-top: 22px; color: var(--accent); font-weight: 700; }

.small { color: var(--muted); font-size: 0.9rem; }

.site-footer {
  width: min(100% - 40px, 960px);
  margin: 0 auto;
  padding: 26px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 16px; }

@media (max-width: 680px) {
  .nav { width: min(100% - 28px, 960px); min-height: 64px; }
  .brand span:last-child { display: none; }
  .nav-links a { padding: 8px; font-size: 0.86rem; }
  main { width: min(100% - 28px, 960px); padding: 48px 0 68px; }
  .section, .summary-card, .document-link { border-radius: 19px; }
  .section { padding: 24px 20px; }
  .summary-card, .document-link { padding: 22px 20px; }
  .provider-list, .document-grid { grid-template-columns: 1fr; }
  .site-footer { width: min(100% - 28px, 960px); flex-direction: column; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f4f7fb;
    --muted: #aab4c3;
    --line: #293446;
    --surface: #141c28;
    --canvas: #0b111a;
    --soft: #172c4d;
    --accent: #78adff;
    --accent-strong: #a9caff;
    --accent-ink: #08111e;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
  }
  .notice { border-color: #31598f; }
}

@media print {
  .site-header, .toc, .site-footer { display: none; }
  body { background: #fff; color: #000; }
  main { width: auto; padding: 0; }
  .section, .summary-card { break-inside: avoid; box-shadow: none; border-color: #bbb; }
  a { color: inherit; }
}
