:root {
  --background: #f3f8fc;
  --foreground: #0a1628;
  --surface: #ffffff;
  --muted: #5a6d82;
  --accent-deep: #0052d4;
  --accent: #2f80ed;
  --sky: #56ccf2;
  --sky-soft: #65c7f7;
  --sky-wash: #9cecfb;
  --ocean: #1a4a8c;
  --ocean-deep: #061833;
  --sand: #e6f6fc;
  --font-sans: "Figtree", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: clip;
}
::selection {
  background: color-mix(in srgb, var(--sky) 45%, white);
  color: var(--ocean-deep);
}
a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ocean-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-header__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}
.brand span {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
}
.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  min-width: 0;
}
.header-nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.875rem;
}
.header-nav a:hover,
.header-nav a[aria-current="page"] {
  color: #fff;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.25rem;
  padding: 0.15rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  border-radius: 0.25rem;
  cursor: pointer;
}
.lang-switch button:hover {
  color: #fff;
}
.lang-switch button.is-active,
.lang-switch button[aria-current="true"] {
  background: #fff;
  color: var(--ocean-deep);
}
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 1.5rem 2.5rem;
  color: #fff;
  background:
    radial-gradient(
      ellipse 70% 60% at 88% 0%,
      color-mix(in srgb, var(--sky-wash) 35%, transparent),
      transparent 55%
    ),
    linear-gradient(165deg, #04122e 0%, #0052d4 55%, #2f80ed 100%);
}
.hero__inner {
  position: relative;
  max-width: 48rem;
  margin: 0 auto;
}
.eyebrow {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--sky-soft) 85%, white);
}
.hero h1 {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.hero .lede {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}
.meta {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
}
.layout {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: grid;
  gap: 2.5rem;
  min-width: 0;
}
@media (min-width: 960px) {
  .layout {
    grid-template-columns: 15rem 1fr;
    align-items: start;
    gap: 3rem;
    padding-top: 3rem;
  }
}
.toc {
  position: sticky;
  top: 5.5rem;
  padding: 1.25rem;
  background: var(--sand);
  border: 1px solid color-mix(in srgb, var(--ocean) 12%, transparent);
  border-radius: 0.75rem;
  min-width: 0;
}
.toc h2 {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.toc ol {
  margin: 0;
  padding: 0 0 0 1.1rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.toc li {
  margin: 0.35rem 0;
}
.toc a {
  color: var(--ocean);
  text-decoration: none;
}
.toc a:hover {
  color: var(--accent-deep);
}
.content {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--ocean) 10%, transparent);
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  min-width: 0;
  overflow-wrap: break-word;
}
@media (min-width: 640px) {
  .content {
    padding: 2.5rem 2.5rem 3rem;
  }
}
.content > section + section {
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid color-mix(in srgb, var(--ocean) 10%, transparent);
}
.content h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ocean-deep);
}
.content h3 {
  margin: 1.35rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ocean);
}
.content p,
.content li {
  color: color-mix(in srgb, var(--foreground) 92%, var(--muted));
}
.content p {
  margin: 0 0 0.9rem;
}
.content ul,
.content ol {
  margin: 0 0 0.9rem;
  padding-left: 1.25rem;
}
.content li {
  margin: 0.35rem 0;
}
.content code {
  font-size: 0.875em;
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
  background: var(--sand);
  color: var(--ocean-deep);
}
.notice {
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  background: var(--sand);
  border-left: 3px solid var(--accent);
  border-radius: 0 0.5rem 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--muted);
}
.table-wrap {
  overflow-x: auto;
  margin: 0 0 1rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 36rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid color-mix(in srgb, var(--ocean) 12%, transparent);
}
th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--sand);
}
td {
  color: color-mix(in srgb, var(--foreground) 92%, var(--muted));
}
.site-footer {
  border-top: 1px solid color-mix(in srgb, var(--ocean) 10%, transparent);
  padding: 2rem 1.5rem;
  background: var(--background);
}
.site-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.site-footer .brand-plain {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--ocean-deep);
}
.site-footer p,
.site-footer a {
  font-size: 0.875rem;
  color: var(--muted);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
@media (max-width: 767px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.75rem;
  }
  .brand {
    font-size: 1.2rem;
  }
  .header-nav {
    width: 100%;
    gap: 0.5rem 0.85rem;
  }
  .header-nav a {
    font-size: 0.8125rem;
  }
  .hero {
    padding: 2.5rem 1rem 2rem;
  }
  .hero .lede {
    font-size: 1rem;
  }
  .layout {
    padding: 1.5rem 1rem 3rem;
    gap: 1.5rem;
  }
  .toc {
    position: static;
    padding: 1rem;
  }
  .content {
    padding: 1.25rem 1rem;
  }
  .content h2 {
    font-size: 1.25rem;
  }
  .site-footer {
    padding: 1.5rem 1rem;
  }
}
