:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #f0f4f3;
  --surface-muted: #f9fafb;
  --ink: #111827;
  --muted: #667085;
  --line: #e4e7ec;
  --line-strong: #cfd5dd;
  --teal: #16856f;
  --teal-dark: #0e6657;
  --teal-soft: #e8f5f1;
  --focus: #1c7ed6;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 14px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --header-height: 72px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.72 var(--font-sans);
  text-rendering: optimizeLegibility;
}

a {
  color: var(--teal-dark);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--teal);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 12px;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-140%);
  transition: transform 120ms ease;
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px);
}

.site-header-inner {
  width: min(100%, 1200px);
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  margin: 0 auto;
  padding: 10px 22px;
}

.brand-lockup {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.brand-lockup:hover {
  color: var(--ink);
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--teal);
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.brand-name {
  line-height: 1.25;
}

.language-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-1);
}

.language-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.language-nav a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.language-nav a[aria-current="page"] {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.layout {
  width: min(100%, 1200px);
  min-height: calc(100vh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  margin: 0 auto;
}

.site-nav-shell {
  position: sticky;
  top: var(--header-height);
  align-self: start;
  min-width: 0;
  max-height: calc(100vh - var(--header-height));
}

.site-nav-disclosure {
  display: none;
}

.site-nav {
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
  padding: 30px 22px 64px;
  border-right: 1px solid var(--line);
}

.site-nav-section + .site-nav-section {
  margin-top: var(--space-5);
}

.site-nav-group {
  margin: 0 10px 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 750;
}

main {
  min-width: 0;
  padding: 38px clamp(26px, 5vw, 64px) 80px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

main:focus {
  outline: none;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--teal-dark);
}

h1,
h2,
h3,
h4 {
  scroll-margin-top: calc(var(--header-height) + 24px);
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 42px);
}

h2 {
  margin: 48px 0 16px;
  font-size: clamp(22px, 3vw, 28px);
}

h3 {
  margin: 34px 0 12px;
  font-size: 20px;
}

p,
ul,
ol {
  margin-block: 0 18px;
}

li + li {
  margin-top: 6px;
}

strong {
  color: var(--ink);
}

code {
  font-family: var(--font-mono);
}

:not(pre) > code {
  padding: 2px 6px;
  border: 1px solid color-mix(in srgb, var(--teal) 16%, var(--line));
  border-radius: 6px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

pre {
  max-width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
  color: var(--ink);
  box-shadow: var(--shadow);
  font: 13px/1.65 var(--font-mono);
  tab-size: 2;
}

pre code {
  font: inherit;
}

table {
  width: 100%;
  display: block;
  overflow-x: auto;
  margin: 24px 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

th,
td {
  min-width: 150px;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 13px;
}

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

th:last-child,
td:last-child {
  border-right: 0;
}

blockquote {
  margin: 24px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--teal-soft);
  color: var(--muted);
}

blockquote > :last-child {
  margin-bottom: 0;
}

hr {
  margin: 42px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.page-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.page-nav-link {
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.page-nav-link:hover {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.page-nav-link:last-child {
  justify-content: flex-end;
  text-align: right;
}

.page-nav-placeholder {
  min-height: 1px;
}

@media (max-width: 760px) {
  :root {
    --header-height: 118px;
  }

  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 10px 18px;
  }

  .language-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .layout {
    display: block;
  }

  .site-nav-shell {
    position: static;
    max-height: none;
    border-bottom: 1px solid var(--line);
    background: var(--surface-muted);
  }

  .site-nav-shell > .site-nav {
    display: none;
  }

  .site-nav-disclosure {
    display: block;
  }

  .site-nav-disclosure > summary {
    min-height: 52px;
    display: list-item;
    padding: 8px 18px;
    color: var(--ink);
    cursor: pointer;
  }

  .site-nav-disclosure > summary::marker {
    color: var(--teal-dark);
  }

  .site-nav-summary-copy {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    font-size: 14px;
    font-weight: 750;
  }

  .site-nav-summary-copy strong {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-nav-disclosure[open] > summary {
    border-bottom: 1px solid var(--line);
  }

  .site-nav-mobile {
    display: block;
    max-height: none;
    overflow: visible;
    padding: 18px 18px 24px;
    border-right: 0;
  }

  .site-nav-section + .site-nav-section {
    margin-top: 18px;
  }

  main {
    padding: 26px 20px 60px;
    border-right: 0;
  }

  .breadcrumbs {
    margin-bottom: 24px;
  }

  .page-nav {
    grid-template-columns: 1fr;
  }

  .page-nav-link:last-child {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 420px) {
  .brand-name {
    font-size: 14px;
  }

  .language-nav a {
    flex: 1 1 0;
    justify-content: center;
    padding-inline: 8px;
  }

  main {
    padding-inline: 16px;
  }

  pre {
    margin-inline: -4px;
    padding: 16px;
    font-size: 12px;
  }
}

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

  .skip-link {
    transition: none;
  }
}
