:root {
  color-scheme: light;
  --ink: #182033;
  --muted: #6a7487;
  --blue: #3577f0;
  --contrast: #2b60c4;
  --pink: #f064b7;
  --mint: #55ceaf;
  --yellow: #f3db49;
  --paper: #ffffff;
  --paper-blue: #eef4ff;
  --paper-pink: #fff0f8;
  --background: #f6f8fc;
  --border: #dde5ef;
  --shadow: rgba(32, 61, 112, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f6f8fc 0, #fff3f9 48%, #f6fbfa 100%);
  font-family: ui-rounded, "SF Pro Rounded", "SF Pro Display", -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

a {
  color: var(--contrast);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #204f9f;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(53, 119, 240, 0.28);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 8px 12px;
  border-radius: 6px;
  color: #ffffff;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(221, 229, 239, 0.9);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(145%) blur(18px);
  -webkit-backdrop-filter: saturate(145%) blur(18px);
}

.nav-shell {
  width: min(1120px, calc(100% - 36px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(43, 96, 196, 0.25);
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--pink) 56%, var(--mint));
  box-shadow: 0 7px 18px rgba(53, 119, 240, 0.2);
  font-size: 15px;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 8px 11px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--paper-blue);
}

.nav-links a[aria-current="page"] {
  color: #ffffff;
  background: var(--contrast);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(120deg, rgba(219, 232, 253, 0.92), rgba(250, 219, 240, 0.72) 58%, rgba(216, 243, 235, 0.86));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 6px;
  background: linear-gradient(90deg, var(--blue), var(--pink), var(--mint), var(--yellow));
}

.hero-inner {
  width: min(960px, calc(100% - 36px));
  margin: 0 auto;
  padding: 64px 0 58px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--contrast);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  max-width: 790px;
  margin-bottom: 14px;
  font-size: 64px;
  font-weight: 900;
}

.hero-copy {
  max-width: 720px;
  margin: 0;
  color: #45516a;
  font-size: 18px;
}

.meta-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid rgba(43, 96, 196, 0.18);
  border-radius: 6px;
  color: #3d4c68;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 720;
}

.page-shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 72px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 92px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(32, 61, 112, 0.08);
}

.toc-title {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

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

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

.document {
  min-width: 0;
}

.notice {
  margin: 0 0 30px;
  padding: 18px 20px;
  border: 1px solid #bfd0ed;
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: var(--paper-blue);
}

.notice strong {
  display: block;
  margin-bottom: 4px;
}

.section {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 92px;
}

.section:first-of-type {
  padding-top: 4px;
}

.section:last-child {
  border-bottom: 0;
}

.section h2 {
  margin-bottom: 13px;
  font-size: 25px;
  font-weight: 850;
}

.section h3 {
  margin: 24px 0 8px;
  font-size: 18px;
  font-weight: 820;
}

.section p {
  margin: 0 0 13px;
}

.section p:last-child {
  margin-bottom: 0;
}

.section ul,
.section ol {
  margin: 10px 0 16px;
  padding-left: 24px;
}

.section li {
  margin: 8px 0;
}

.data-grid,
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 8px;
}

.data-card,
.support-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 9px 22px rgba(32, 61, 112, 0.07);
}

.data-card:nth-child(3n + 2),
.support-card:nth-child(3n + 2) {
  background: var(--paper-pink);
}

.data-card:nth-child(3n),
.support-card:nth-child(3n) {
  background: #effaf7;
}

.data-card h3,
.support-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.data-card p,
.support-card p {
  margin: 0;
  color: #4e5b72;
  font-size: 14px;
}

.resource-link {
  display: block;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.resource-link:hover {
  color: var(--ink);
  border-color: rgba(43, 96, 196, 0.48);
  box-shadow: 0 13px 26px rgba(32, 61, 112, 0.12);
  transform: translateY(-2px);
}

.resource-link span {
  display: inline-block;
  margin-top: 14px;
  color: var(--contrast);
  font-size: 14px;
  font-weight: 800;
}

.table-wrap {
  margin: 18px 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  color: #35425a;
  background: var(--paper-blue);
  font-size: 13px;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

details {
  margin: 10px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 20px rgba(32, 61, 112, 0.06);
}

summary {
  position: relative;
  padding: 16px 46px 16px 18px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  top: 12px;
  right: 16px;
  color: var(--contrast);
  font-size: 24px;
  line-height: 1;
}

details[open] summary::after {
  content: "-";
}

.answer {
  padding: 0 18px 18px;
  color: #4e5b72;
}

.answer p:last-child,
.answer ol:last-child,
.answer ul:last-child {
  margin-bottom: 0;
}

.contact-band {
  margin-top: 34px;
  padding: 28px;
  border: 1px solid rgba(43, 96, 196, 0.2);
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(219, 232, 253, 0.92), rgba(216, 243, 235, 0.82));
}

.contact-band h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

.contact-band p {
  max-width: 700px;
  margin: 0;
}

.contact-band .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 18px;
  padding: 9px 15px;
  border-radius: 7px;
  color: #ffffff;
  background: var(--contrast);
  font-weight: 800;
  text-decoration: none;
}

.contact-band .button-link:hover {
  color: #ffffff;
  background: #204f9f;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #17223a;
}

.footer-inner {
  width: min(1120px, calc(100% - 36px));
  min-height: 130px;
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #dbe5f8;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: #ffffff;
}

@media (max-width: 800px) {
  h1 {
    font-size: 52px;
  }

  .nav-shell {
    min-height: 64px;
  }

  .nav-links a {
    padding: 7px;
    font-size: 13px;
  }

  .page-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .toc {
    position: static;
  }

  .toc-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .nav-shell {
    width: min(100% - 24px, 1120px);
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    flex: 1;
    text-align: center;
  }

  .hero-inner {
    width: min(100% - 28px, 960px);
    padding: 46px 0 42px;
  }

  h1 {
    font-size: 38px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .page-shell {
    width: min(100% - 28px, 1120px);
    padding-top: 28px;
  }

  .toc-links,
  .data-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 27px 0;
  }

  .section h2 {
    font-size: 22px;
  }

  .contact-band {
    padding: 22px 18px;
  }

  .footer-inner {
    width: min(100% - 28px, 1120px);
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .resource-link {
    transition: none;
  }
}

@media print {
  .site-header,
  .toc,
  .site-footer {
    display: none;
  }

  body {
    background: #ffffff;
  }

  .hero {
    background: #ffffff;
  }

  .hero-inner,
  .page-shell {
    width: 100%;
  }

  .page-shell {
    display: block;
  }
}
