@font-face {
  font-family: "Inter V";
  src:
    local("Inter V"),
    local("Inter"),
    url("assets/fonts/Inter-V.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src:
    local("JetBrains Mono"),
    local("JetBrainsMono-Regular"),
    url("assets/fonts/JetBrainsMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: "Inter V", "Inter", "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code", Consolas, monospace;

  --bg: #f8f6f1;
  --bg-elevated: #fdfbf6;
  --surface: #fffefb;
  --surface-soft: #f3f0e8;
  --ink: #17211c;
  --ink-soft: #3f4b45;
  --muted: #5a655f;
  --faint: #6a746e;

  --line: #e6e2d8;
  --line-strong: #d6d1c5;

  --brand: #18543f;
  --brand-strong: #0f402f;
  --brand-soft: #e7f0e9;
  --brand-tint: #f0f5f0;

  --accent: #d97443;
  --accent-ink: #a94b20;
  --accent-soft: #f8e9dd;

  --cta-bg: #173f30;
  --cta-ink: #fbf7ec;

  --logo-mark: #154a37;
  --logo-dot: #e58a55;

  --code-bg: #11231b;
  --code-bg-soft: #172d23;
  --code-line: #284037;
  --code-ink: #e8efe8;
  --code-muted: #84988c;
  --code-green: #93d8b0;
  --code-amber: #eac58d;
  --code-coral: #f0a17c;
  --code-blue: #9bc8e8;

  --announce-bg: #123d2d;
  --announce-ink: #f8f4e8;
  --announce-muted: #b7c9bf;

  --header-bg: rgba(248, 246, 241, 0.84);
  --footer-bg: #f1ede3;
  --scrim: rgba(10, 20, 14, 0.42);

  --shadow-sm: 0 1px 2px rgba(17, 32, 24, 0.04), 0 7px 22px rgba(17, 32, 24, 0.035);
  --shadow-md: 0 16px 44px rgba(16, 32, 24, 0.09);
  --shadow-lg: 0 30px 90px rgba(10, 24, 17, 0.24);

  --glow-brand: rgba(24, 84, 63, 0.075);
  --glow-accent: rgba(217, 116, 67, 0.07);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

[data-theme="dark"] {
  --bg: #0d1310;
  --bg-elevated: #111815;
  --surface: #131b17;
  --surface-soft: #18221c;
  --ink: #eef2ed;
  --ink-soft: #c1cbc5;
  --muted: #96a29b;
  --faint: #7f8b84;

  --line: #26312b;
  --line-strong: #36443c;

  --brand: #84d2ac;
  --brand-strong: #a5e4c4;
  --brand-soft: #163326;
  --brand-tint: #101f18;

  --accent: #f0996b;
  --accent-ink: #f4b28f;
  --accent-soft: #362218;

  --cta-bg: #c9e8d6;
  --cta-ink: #102219;

  --logo-mark: #236d51;
  --logo-dot: #f09a68;

  --code-bg: #070d0a;
  --code-bg-soft: #0b1410;
  --code-line: #23332b;
  --code-ink: #e4ece5;
  --code-muted: #7f9387;
  --code-green: #8bdcb0;
  --code-amber: #efca90;
  --code-coral: #f2a482;
  --code-blue: #9cc9ea;

  --announce-bg: #143326;
  --announce-ink: #eef5ec;
  --announce-muted: #9db4a7;

  --header-bg: rgba(13, 19, 16, 0.84);
  --footer-bg: #0a0f0c;
  --scrim: rgba(0, 0, 0, 0.58);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.22), 0 8px 24px rgba(0, 0, 0, 0.14);
  --shadow-md: 0 18px 48px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 32px 100px rgba(0, 0, 0, 0.55);

  --glow-brand: rgba(132, 210, 172, 0.055);
  --glow-accent: rgba(240, 153, 107, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(52% 38% at 84% -8%, var(--glow-accent), transparent 70%),
    radial-gradient(45% 34% at 2% 2%, var(--glow-brand), transparent 72%);
}

body.nav-open,
body.modal-open {
  overflow: hidden;
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

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

h1,
h2,
h3,
p,
ul,
ol,
pre {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  text-wrap: balance;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

img,
svg {
  display: block;
}

svg {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-flip {
  transform: rotate(180deg);
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #34a56f;
  box-shadow: 0 0 0 3px rgba(52, 165, 111, 0.13);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

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

/* Announcement */

.announcement {
  background: var(--announce-bg);
  color: var(--announce-ink);
}

.announcement-dismissed .announcement {
  display: none;
}

.announcement-inner {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  max-width: 1440px;
  min-height: 40px;
  margin: 0 auto;
  padding: 7px 36px;
}

.announcement-pill {
  flex: 0 0 auto;
  padding: 2px 7px;
  border: 1px solid rgba(248, 244, 232, 0.28);
  border-radius: 5px;
  color: var(--announce-ink);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.announcement-inner p {
  margin: 0;
  color: var(--announce-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.announcement-inner strong {
  color: var(--announce-ink);
  font-weight: 560;
}

.announcement-close {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--announce-muted);
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.announcement-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--announce-ink);
}

.announcement-close .icon {
  width: 15px;
  height: 15px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  transition: box-shadow 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line-strong);
  box-shadow: 0 8px 28px rgba(14, 30, 21, 0.055);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: 1440px;
  height: 72px;
  margin: 0 auto;
  padding: 0 36px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
}

.logo-mark {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  color: var(--logo-mark);
  filter: drop-shadow(0 2px 3px rgba(13, 36, 25, 0.12));
}

.logo-mark svg {
  width: 34px;
  height: 34px;
}

.logo-word {
  font-size: 19.5px;
  font-weight: 660;
  letter-spacing: -0.045em;
  line-height: 1;
}

.logo-tag {
  margin-left: 1px;
  padding: 3px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  height: 100%;
  margin-left: 2px;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  color: var(--muted);
  font-size: 13.3px;
  font-weight: 510;
  text-decoration: none;
  transition: color 160ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--brand);
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 160ms ease, transform 160ms ease;
}

.main-nav a:hover {
  color: var(--ink);
}

.main-nav a.is-current {
  color: var(--ink);
  font-weight: 570;
}

.main-nav a.is-current::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.search-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 228px;
  height: 38px;
  padding: 0 9px 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.search-trigger:hover {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink-soft);
}

.search-trigger .icon {
  width: 16px;
  height: 16px;
  color: var(--faint);
}

.search-trigger-label {
  overflow: hidden;
  font-size: 12.3px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-kbd,
.esc-kbd {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 3px 5px;
  border: 1px solid var(--line);
  border-bottom-color: var(--line-strong);
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--faint);
  font-family: var(--font-sans);
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.icon-btn:hover {
  border-color: var(--line);
  background: var(--bg-elevated);
  color: var(--ink);
}

.theme-toggle .icon {
  width: 17px;
  height: 17px;
}

.icon-sun,
[data-theme="dark"] .icon-moon {
  display: none;
}

[data-theme="dark"] .icon-sun {
  display: block;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 590;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.button .icon {
  width: 15px;
  height: 15px;
}

.button-primary {
  min-height: 38px;
  padding: 0 13px;
  border-color: transparent;
  background: var(--cta-bg);
  color: var(--cta-ink);
  box-shadow: 0 1px 2px rgba(14, 35, 24, 0.15);
}

.button-primary:hover {
  background: var(--brand-strong);
  box-shadow: 0 4px 14px rgba(14, 35, 24, 0.18);
  transform: translateY(-1px);
}

[data-theme="dark"] .button-primary:hover {
  background: var(--brand-strong);
}

.header-cta {
  margin-left: 2px;
}

.menu-toggle {
  display: none;
}

.menu-toggle .close-icon {
  display: none;
}

.reading-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

/* Page layout */

.layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 218px;
  column-gap: 48px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 38px 36px 94px;
  align-items: start;
}

/* Sidebar */

.sidebar {
  position: sticky;
  top: 94px;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  padding: 2px 10px 12px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: var(--line-strong);
}

.sidebar-mobile-head {
  display: none;
}

.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px 12px;
  border-bottom: 1px solid var(--line);
}

.sidebar-title {
  color: var(--ink);
  font-size: 12px;
  font-weight: 640;
  letter-spacing: -0.01em;
}

.version-badge {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-elevated);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.5;
}

.side-group {
  margin-top: 23px;
}

.side-group-title {
  margin: 0 0 6px;
  padding: 0 10px;
  color: var(--faint);
  font-size: 9.8px;
  font-weight: 650;
  letter-spacing: 0.105em;
  line-height: 1.5;
  text-transform: uppercase;
}

.side-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 7px;
  color: var(--ink-soft);
  font-size: 13.1px;
  line-height: 1.35;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}

.side-link::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--brand);
  opacity: 0;
  transform: scaleY(0.6);
  transition: opacity 150ms ease, transform 150ms ease;
}

.side-link:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.side-link.is-active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 590;
}

.side-link.is-active::before {
  opacity: 1;
  transform: scaleY(1);
}

.side-badge {
  margin-left: auto;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.sidebar-help {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 28px 10px 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.sidebar-help-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--accent-ink);
}

.sidebar-help-icon .icon {
  width: 15px;
  height: 15px;
}

.sidebar-help p {
  margin: 1px 0 2px;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
}

.sidebar-help a {
  color: var(--muted);
  font-size: 11.5px;
  text-decoration: none;
}

.sidebar-help a:hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Main document */

.doc {
  min-width: 0;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 27px;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.4;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease;
}

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

.breadcrumb-sep {
  color: var(--line-strong);
}

.doc-hero {
  padding-bottom: 1px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 13px;
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 670;
  letter-spacing: 0.135em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 17px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--accent);
}

.doc-hero h1 {
  max-width: 720px;
  margin: 0 0 19px;
  font-size: clamp(42px, 4.7vw, 58px);
  font-weight: 675;
  letter-spacing: -0.057em;
  line-height: 1.01;
}

.h1-mark {
  position: relative;
  display: inline-block;
  color: var(--brand);
}

.h1-mark::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 0.035em;
  left: 3px;
  height: 0.105em;
  border-radius: 4px;
  background: var(--accent);
  opacity: 0.62;
  transform: rotate(-1.2deg);
  transform-origin: left center;
}

.lead {
  max-width: 680px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 17.4px;
  line-height: 1.65;
  letter-spacing: -0.012em;
}

.page-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 17px;
  margin-top: 24px;
  padding-bottom: 21px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-size: 11.3px;
  line-height: 1.4;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-item .icon {
  width: 13px;
  height: 13px;
  color: var(--faint);
}

.meta-version {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-elevated);
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.meta-spacer {
  flex: 1 1 12px;
}

.byline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}

.avatars {
  display: flex;
  padding-left: 5px;
}

.avatars span {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  margin-left: -5px;
  border: 1.5px solid var(--bg);
  border-radius: 50%;
  background: #deceb5;
  color: #55452f;
  font-size: 7.5px;
  font-weight: 650;
  letter-spacing: 0;
}

.avatars span:last-child {
  background: #c6d8cb;
  color: #2b4b3a;
}

.edit-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11.2px;
  text-decoration: none;
  transition: color 150ms ease;
}

.edit-link .icon {
  width: 12px;
  height: 12px;
}

.edit-link:hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Quick cards */

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-top: 24px;
}

.quick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 13px 14px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.quick-card::before {
  content: "";
  position: absolute;
  top: -1px;
  right: 14px;
  left: 14px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--brand);
  opacity: 0;
  transition: opacity 180ms ease;
}

.quick-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.quick-card:hover::before {
  opacity: 1;
}

.quick-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
}

.quick-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--brand);
}

.quick-icon .icon {
  width: 14px;
  height: 14px;
}

.quick-label {
  overflow: hidden;
  color: var(--faint);
  font-size: 9.3px;
  font-weight: 620;
  letter-spacing: 0.055em;
  line-height: 1.4;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.quick-arrow {
  width: 13px;
  height: 13px;
  margin-left: auto;
  color: var(--faint);
  transition: color 180ms ease, transform 180ms ease;
}

.quick-card:hover .quick-arrow {
  color: var(--brand);
  transform: translate(1px, -1px);
}

.quick-title {
  display: block;
  margin-top: 12px;
  font-size: 14.5px;
  font-weight: 630;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.quick-desc {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.8px;
  line-height: 1.5;
}

/* Sections */

.doc-section {
  margin-top: 64px;
  padding-top: 45px;
  border-top: 1px solid var(--line);
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  color: var(--faint);
  font-size: 9.5px;
  font-weight: 660;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section-kicker span {
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.section-kicker::after {
  content: "";
  width: 30px;
  height: 1px;
  margin-left: 2px;
  background: var(--line-strong);
}

.doc-section h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 15px;
  font-size: clamp(25px, 2.6vw, 31px);
  font-weight: 665;
  letter-spacing: -0.038em;
  line-height: 1.18;
}

.heading-anchor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  color: var(--faint);
  opacity: 0;
  text-decoration: none;
  transition: opacity 150ms ease, color 150ms ease, background-color 150ms ease;
}

.heading-anchor .icon {
  width: 15px;
  height: 15px;
}

.doc-section h2:hover .heading-anchor,
.heading-anchor:focus-visible {
  opacity: 1;
}

.heading-anchor:hover {
  background: var(--surface-soft);
  color: var(--brand);
}

.doc-section > p {
  max-width: 690px;
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

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

.doc-section > p a,
.callout a,
.after-note a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.doc-section > p a:hover,
.callout a:hover,
.after-note a:hover {
  color: var(--accent-ink);
  text-decoration-color: currentColor;
}

.doc-section code,
.faq-answer code,
.after-note code {
  padding: 1.5px 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.82em;
  line-height: 1.5;
  overflow-wrap: anywhere;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  white-space: nowrap;
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.section-heading-row h2 {
  margin-bottom: 0;
}

.api-version {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-elevated);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.5;
}

/* Features */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  margin: 27px 0 26px;
}

.feature {
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
}

.feature-icon .icon {
  width: 16px;
  height: 16px;
}

.feature h3 {
  margin: 12px 0 5px;
  font-size: 14px;
  font-weight: 630;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 12.2px;
  line-height: 1.65;
}

/* Callouts */

.callout {
  display: flex;
  gap: 12px;
  margin: 25px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
}

.callout-tip {
  border-color: color-mix(in srgb, var(--brand) 17%, var(--line));
  background: var(--brand-tint);
}

.callout-warning {
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
  background: var(--accent-soft);
}

.callout-note {
  background: var(--surface-soft);
}

.callout-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  border-radius: 8px;
  background: var(--surface);
  color: var(--brand);
}

.callout-warning .callout-icon {
  color: var(--accent-ink);
}

.callout-note .callout-icon {
  color: var(--muted);
}

.callout-icon .icon {
  width: 15px;
  height: 15px;
}

.callout > div {
  min-width: 0;
}

.callout-title {
  margin: 1px 0 3px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 640;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.callout p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12.4px;
  line-height: 1.62;
}

.callout code {
  padding: 1px 3px;
  border-color: color-mix(in srgb, var(--line-strong) 70%, transparent);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  font-size: 0.84em;
}

/* Steps */

.steps {
  margin: 29px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 33px minmax(0, 1fr);
  gap: 17px;
  padding-bottom: 32px;
}

.step:last-child {
  padding-bottom: 0;
}

.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 40px;
  bottom: 4px;
  left: 16px;
  width: 1px;
  background: linear-gradient(to bottom, var(--line-strong), var(--line));
}

.step-number {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1;
}

.step-body {
  min-width: 0;
  padding-top: 3px;
}

.step-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 640;
  letter-spacing: -0.025em;
  line-height: 1.4;
}

.step-body p {
  max-width: 660px;
  margin: 0 0 7px;
  color: var(--ink-soft);
  font-size: 13.6px;
  line-height: 1.68;
}

.step-body p a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  color: var(--brand);
  font-size: 11.8px;
  font-weight: 550;
  text-decoration: none;
}

.text-link .icon {
  width: 13px;
  height: 13px;
  transition: transform 160ms ease;
}

.text-link:hover .icon {
  transform: translateX(2px);
}

.run-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
}

/* Code blocks */

.code-card {
  margin-top: 15px;
  overflow: hidden;
  border: 1px solid var(--code-line);
  border-radius: var(--radius-md);
  background: var(--code-bg);
  box-shadow: 0 8px 25px rgba(9, 22, 15, 0.12);
}

.code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 39px;
  padding: 0 7px 0 4px;
  border-bottom: 1px solid var(--code-line);
  background: var(--code-bg-soft);
}

.code-tabs {
  display: flex;
  align-items: stretch;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.code-tabs::-webkit-scrollbar {
  display: none;
}

.code-tab {
  position: relative;
  flex: 0 0 auto;
  height: 38px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--code-muted);
  font-size: 10.8px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease;
}

.code-tab::after {
  content: "";
  position: absolute;
  right: 9px;
  bottom: 0;
  left: 9px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--code-green);
  opacity: 0;
  transition: opacity 150ms ease;
}

.code-tab:hover {
  color: var(--code-ink);
}

.code-tab.is-active {
  color: var(--code-ink);
}

.code-tab.is-active::after {
  opacity: 1;
}

.code-tab:focus-visible {
  outline-color: var(--code-green);
  outline-offset: -3px;
}

.code-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
}

.code-lang {
  color: var(--code-muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.03em;
  line-height: 1;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--code-muted);
  font-size: 9.5px;
  line-height: 1;
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--code-ink);
}

.copy-btn .icon {
  width: 13px;
  height: 13px;
}

.copy-btn .check-icon,
.copy-btn .copy-label {
  display: none;
}

.copy-btn.is-copied {
  color: var(--code-green);
}

.copy-btn.is-copied .copy-icon {
  display: none;
}

.copy-btn.is-copied .check-icon {
  display: block;
}

.copy-btn-compact {
  color: var(--muted);
}

.copy-btn-compact:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.code-body {
  position: relative;
}

.code-panel {
  margin: 0;
  padding: 17px 19px 18px;
  overflow-x: auto;
  color: var(--code-ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.78;
  tab-size: 2;
  scrollbar-width: thin;
  scrollbar-color: var(--code-line) transparent;
}

.code-panel::-webkit-scrollbar {
  height: 7px;
}

.code-panel::-webkit-scrollbar-thumb {
  border-radius: 7px;
  background: var(--code-line);
}

.code-panel code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  white-space: pre;
}

.code-panel:focus-visible {
  outline-color: var(--code-green);
  outline-offset: -3px;
}

.tok-c {
  color: var(--code-muted);
  font-style: italic;
}

.tok-k {
  color: var(--code-green);
}

.tok-s {
  color: var(--code-amber);
}

.tok-f {
  color: var(--code-blue);
}

/* Tables */

.table-wrap {
  margin: 23px 0 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.table-wrap::-webkit-scrollbar {
  height: 7px;
}

.table-wrap::-webkit-scrollbar-thumb {
  border-radius: 7px;
  background: var(--line-strong);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.4px;
  line-height: 1.55;
}

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

thead th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 8.8px;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody th {
  color: var(--ink);
  font-weight: 550;
}

tbody td {
  color: var(--ink-soft);
}

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

tbody tr {
  transition: background-color 140ms ease;
}

tbody tr:hover {
  background: var(--brand-tint);
}

table code {
  font-size: 10.5px;
  white-space: nowrap;
}

.config-table tbody th {
  width: 25%;
}

.config-table td:nth-child(2) {
  width: 39%;
}

.config-table td:nth-child(3) {
  width: 36%;
}

.config-table td code {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

.role-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  vertical-align: 1px;
}

.role-owner {
  background: var(--accent);
}

.role-admin {
  background: var(--brand);
}

.role-editor {
  background: #6b96b5;
}

.role-reader {
  background: var(--faint);
}

.platform-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.platform-label {
  margin-right: 3px;
  color: var(--faint);
  font-size: 8.8px;
  font-weight: 650;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg-elevated);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
}

.platform-chip .icon {
  width: 11px;
  height: 11px;
}

.after-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  max-width: 680px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.after-note .icon {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: var(--faint);
}

/* Workspace split */

.split-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  align-items: start;
  margin-top: 25px;
}

.benefit-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  display: flex;
  gap: 11px;
  margin-bottom: 19px;
}

.benefit-list li:last-child {
  margin-bottom: 0;
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg-elevated);
  color: var(--brand);
}

.benefit-icon .icon {
  width: 14px;
  height: 14px;
}

.benefit-list strong {
  display: block;
  margin: 1px 0 3px;
  color: var(--ink);
  font-size: 12.8px;
  font-weight: 620;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.benefit-list p {
  margin: 0;
  color: var(--muted);
  font-size: 11.7px;
  line-height: 1.62;
}

.tree-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.tree-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.tree-card-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
}

.tree-card-icon .icon {
  width: 13px;
  height: 13px;
}

.tree-card-name {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.tree-card-pill {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 8.5px;
  line-height: 1.5;
}

.file-tree {
  margin: 0;
  padding: 15px 16px 16px;
  overflow-x: auto;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.85;
  scrollbar-width: thin;
}

.tree-root {
  color: var(--ink);
  font-weight: 500;
}

.tree-dir {
  color: var(--brand);
}

.tree-card-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 9.5px;
}

.tree-card-foot .icon {
  width: 12px;
  height: 12px;
}

/* API */

.api-demo {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.82fr);
  gap: 12px;
  margin-top: 23px;
}

.code-card-api {
  margin-top: 0;
}

.code-card-api .code-panel {
  min-height: 294px;
  font-size: 10.6px;
  line-height: 1.72;
}

.response-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.response-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 39px;
  padding: 0 7px 0 13px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.response-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1;
}

.response-status .status-dot {
  width: 5px;
  height: 5px;
}

.response-code {
  flex: 1;
  margin: 0;
  padding: 14px 15px;
  overflow: auto;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 9.8px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  scrollbar-width: thin;
}

.response-code code {
  font: inherit;
}

.json-key {
  color: var(--brand);
}

.json-string {
  color: var(--accent-ink);
}

.api-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 15px;
}

.api-chip {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-elevated);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.api-note {
  margin-left: auto;
  color: var(--faint);
  font-size: 10.2px;
  line-height: 1.5;
}

.api-note code {
  background: transparent;
  font-size: 0.9em;
}

/* FAQ */

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

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 2px;
  color: var(--ink);
  font-size: 13.7px;
  font-weight: 560;
  letter-spacing: -0.012em;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
  transition: color 150ms ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--brand);
}

.faq-item summary:focus-visible {
  border-radius: 4px;
  outline-offset: -2px;
}

.faq-chevron {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease;
}

.faq-chevron .icon {
  width: 12px;
  height: 12px;
}

.faq-item[open] .faq-chevron {
  border-color: var(--brand);
  color: var(--brand);
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 40px 17px 2px;
  animation: answer-in 180ms ease both;
}

.faq-answer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12.7px;
  line-height: 1.7;
}

@keyframes answer-in {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Help card */

.help-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 22px;
  margin-top: 43px;
  padding: 29px 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(85% 140% at 91% 8%, rgba(217, 116, 67, 0.18), transparent 58%),
    linear-gradient(135deg, #154431 0%, #0e3023 74%);
  box-shadow: 0 20px 48px rgba(9, 32, 22, 0.18);
}

.help-copy {
  position: relative;
  z-index: 1;
}

.help-kicker {
  margin: 0 0 6px;
  color: #e5a47e;
  font-size: 8.8px;
  font-weight: 680;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.help-card h2 {
  display: block;
  margin: 0 0 8px;
  color: #fbf7ed;
  font-size: 25px;
  font-weight: 660;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.help-copy > p:not(.help-kicker) {
  max-width: 440px;
  margin: 0;
  color: rgba(243, 240, 229, 0.68);
  font-size: 12.6px;
  line-height: 1.65;
}

.help-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 19px;
}

.button-light {
  min-height: 36px;
  padding: 0 13px;
  background: #f8f3e5;
  color: #143d2d;
  font-size: 11.5px;
}

.button-light:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.button-ghost-light {
  min-height: 36px;
  padding: 0 11px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(248, 244, 234, 0.76);
  font-size: 11.5px;
}

.button-ghost-light:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: #fbf7ed;
}

.help-art {
  position: relative;
  min-height: 150px;
}

.help-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(231, 240, 219, 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.help-orbit-one {
  width: 132px;
  height: 132px;
}

.help-orbit-two {
  width: 188px;
  height: 188px;
  border-color: rgba(231, 240, 219, 0.08);
}

.help-book {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(249, 244, 231, 0.09);
  color: #f1e9d9;
  transform: translate(-50%, -50%) rotate(-4deg);
  backdrop-filter: blur(4px);
}

.help-book .icon {
  width: 28px;
  height: 28px;
}

.help-star {
  position: absolute;
  top: 18px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(229, 164, 126, 0.16);
  color: #eab08d;
}

.help-star .icon {
  width: 13px;
  height: 13px;
}

/* TOC */

.toc {
  position: sticky;
  top: 94px;
  max-height: calc(100vh - 112px);
  padding-top: 2px;
  overflow-y: auto;
  scrollbar-width: none;
}

.toc::-webkit-scrollbar {
  display: none;
}

.toc-title {
  margin: 0 0 12px;
  color: var(--faint);
  font-size: 9.6px;
  font-weight: 660;
  letter-spacing: 0.115em;
  line-height: 1.5;
  text-transform: uppercase;
}

.toc-nav {
  border-left: 1px solid var(--line);
}

.toc-nav a {
  position: relative;
  display: block;
  margin-left: -1px;
  padding: 5px 0 5px 13px;
  border-left: 1px solid transparent;
  color: var(--muted);
  font-size: 11.6px;
  line-height: 1.45;
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease;
}

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

.toc-nav a.is-active {
  border-left-color: var(--brand);
  color: var(--brand);
  font-weight: 590;
}

.feedback {
  margin-top: 24px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-elevated);
}

.feedback > p:first-child {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.feedback-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.feedback-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 27px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--muted);
  font-size: 9px;
  line-height: 1;
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.feedback-btn .icon {
  width: 11px;
  height: 11px;
}

.feedback-btn:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.feedback-btn[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
  background: var(--brand-soft);
  color: var(--brand);
}

.feedback-thanks {
  min-height: 0;
  margin: 0;
  color: var(--brand);
  font-size: 9px;
  line-height: 1.45;
}

.feedback-thanks:not(:empty) {
  margin-top: 7px;
}

.toc-help {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.4;
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.toc-help .icon {
  width: 12px;
  height: 12px;
  color: var(--faint);
}

.toc-help:hover {
  border-color: var(--line-strong);
  background: var(--bg-elevated);
}

.toc-help-arrow {
  margin-left: auto;
}

/* Footer */

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

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.65fr) repeat(2, minmax(110px, 0.8fr)) minmax(170px, 1.1fr);
  gap: 42px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 45px 36px 36px;
}

.footer-brand .logo {
  margin-bottom: 13px;
}

.footer-brand .logo-word {
  font-size: 17px;
}

.footer-brand .logo-mark,
.footer-brand .logo-mark svg {
  width: 29px;
  height: 29px;
}

.footer-brand > p {
  max-width: 260px;
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--faint);
  font-size: 9.8px;
  line-height: 1.5;
}

.footer-title {
  margin: 2px 0 9px;
  color: var(--ink);
  font-size: 9.2px;
  font-weight: 660;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.footer-column a {
  display: block;
  width: fit-content;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-column a:hover {
  color: var(--brand);
}

.footer-note p:not(.footer-title) {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.footer-version {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 15px 36px 20px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 9.5px;
  line-height: 1.5;
}

.footer-sep {
  color: var(--line-strong);
}

.footer-bottom-spacer {
  flex: 1;
}

.footer-updated {
  font-family: var(--font-mono);
  font-size: 8.5px;
}

/* Nav scrim */

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--scrim);
  backdrop-filter: blur(2px);
}

/* Search dialog */

.search-dialog {
  width: min(620px, calc(100vw - 28px));
  max-height: 78vh;
  margin: 11vh auto auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--bg-elevated);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.search-dialog[open] {
  animation: dialog-in 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.search-dialog::backdrop {
  background: rgba(7, 14, 10, 0.56);
  backdrop-filter: blur(4px);
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(-7px) scale(0.988);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.search-head {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 58px;
  padding: 0 14px 0 17px;
  border-bottom: 1px solid var(--line);
}

.search-head-icon {
  width: 18px;
  height: 18px;
  color: var(--faint);
}

.search-head input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  letter-spacing: -0.01em;
}

.search-head input::placeholder {
  color: var(--faint);
}

.search-head input::-webkit-search-cancel-button {
  display: none;
}

.search-body {
  max-height: calc(78vh - 105px);
  overflow-y: auto;
  padding: 9px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.search-group-label {
  margin: 3px 8px 6px;
  color: var(--faint);
  font-size: 8.8px;
  font-weight: 660;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.search-result {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.search-result:hover,
.search-result.is-selected {
  border-color: color-mix(in srgb, var(--brand) 15%, var(--line));
  background: var(--brand-soft);
}

.search-result-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--brand);
}

.search-result-icon .icon {
  width: 14px;
  height: 14px;
}

.search-result-body {
  display: block;
  min-width: 0;
}

.search-result-meta {
  display: block;
  margin-bottom: 1px;
  color: var(--faint);
  font-size: 8.3px;
  font-weight: 620;
  letter-spacing: 0.065em;
  line-height: 1.5;
  text-transform: uppercase;
}

.search-result-title {
  display: block;
  color: var(--ink);
  font-size: 12.7px;
  font-weight: 590;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.search-result-desc {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 10.8px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result mark {
  border-radius: 2px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.search-result-arrow {
  width: 13px;
  height: 13px;
  margin: 9px 2px 0 auto;
  color: var(--faint);
  opacity: 0;
  transition: opacity 150ms ease;
}

.search-result.is-selected .search-result-arrow {
  opacity: 1;
}

.search-empty {
  padding: 34px 18px 38px;
  text-align: center;
}

.search-empty-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  margin: 0 auto 12px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--faint);
}

.search-empty-icon .icon {
  width: 16px;
  height: 16px;
}

.search-empty p {
  margin: 0 0 3px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
}

.search-empty span:last-child {
  color: var(--muted);
  font-size: 10.8px;
}

.search-foot {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 15px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--faint);
  font-size: 8.8px;
}

.search-hint {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.search-foot kbd {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 8px;
  line-height: 1;
}

.search-count {
  margin-left: auto;
  white-space: nowrap;
}

/* Theme transition */

html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition:
    background-color 240ms ease,
    border-color 240ms ease,
    color 240ms ease,
    fill 240ms ease,
    stroke 240ms ease !important;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Responsive */

@media (max-width: 1280px) {
  .layout {
    grid-template-columns: 218px minmax(0, 1fr);
    column-gap: 42px;
    padding-right: 30px;
    padding-left: 30px;
  }

  .toc {
    display: none;
  }

  .header-inner {
    padding-right: 30px;
    padding-left: 30px;
  }
}

@media (max-width: 1080px) {
  .main-nav {
    gap: 18px;
  }

  .search-trigger {
    width: 196px;
  }

  .header-inner {
    gap: 20px;
  }
}

@media (max-width: 980px) {
  .header-inner {
    height: 66px;
    gap: 14px;
    padding-right: 22px;
    padding-left: 22px;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .logo {
    margin-right: auto;
  }

  .main-nav {
    display: none;
  }

  .header-actions {
    margin-left: 0;
  }

  .search-trigger {
    width: 200px;
  }

  .layout {
    display: block;
    max-width: 900px;
    padding: 30px 24px 78px;
  }

  .doc {
    max-width: 780px;
    margin: 0 auto;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    width: min(318px, 86vw);
    max-height: none;
    padding: 18px 18px 28px;
    border-right: 1px solid var(--line);
    background: var(--bg-elevated);
    box-shadow: 16px 0 55px rgba(8, 20, 13, 0.18);
    overflow-y: auto;
    transform: translateX(-103%);
    transition: transform 230ms cubic-bezier(0.2, 0.75, 0.25, 1);
  }

  body.nav-open .sidebar {
    transform: translateX(0);
  }

  body.nav-open .menu-toggle .menu-icon {
    display: none;
  }

  body.nav-open .menu-toggle .close-icon {
    display: block;
  }

  .sidebar-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 0 2px 13px 10px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 12px;
    font-weight: 640;
  }

  .sidebar-heading {
    padding-right: 10px;
  }

  .side-link {
    min-height: 38px;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 13.5px;
  }

  .side-group {
    margin-top: 25px;
  }

  .sidebar-help {
    margin-top: 30px;
  }

  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
    padding-right: 24px;
    padding-left: 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
  }

  .footer-bottom {
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (max-width: 820px) {
  .search-trigger {
    width: 38px;
    padding: 0;
    justify-content: center;
  }

  .search-trigger-label,
  .search-trigger .search-kbd {
    display: none;
  }

  .search-trigger .icon {
    width: 17px;
    height: 17px;
  }

  .header-cta {
    display: none;
  }

  .doc-hero h1 {
    font-size: clamp(39px, 7vw, 50px);
  }
}

@media (max-width: 720px) {
  .announcement-inner {
    gap: 8px;
    padding: 7px 18px;
  }

  .announcement-inner p {
    font-size: 11.2px;
  }

  .announcement-pill {
    display: none;
  }

  .header-inner {
    height: 62px;
    padding-right: 16px;
    padding-left: 16px;
    gap: 9px;
  }

  .logo-mark,
  .logo-mark svg {
    width: 31px;
    height: 31px;
  }

  .logo-word {
    font-size: 18px;
  }

  .logo-tag {
    display: none;
  }

  .header-actions {
    gap: 2px;
  }

  .icon-btn,
  .search-trigger {
    width: 36px;
    height: 36px;
  }

  .layout {
    padding: 25px 18px 66px;
  }

  .breadcrumbs {
    margin-bottom: 22px;
    font-size: 10.5px;
  }

  .doc-hero h1 {
    margin-bottom: 16px;
    font-size: clamp(35px, 9.5vw, 44px);
    letter-spacing: -0.05em;
  }

  .eyebrow {
    margin-bottom: 11px;
    font-size: 9px;
  }

  .lead {
    font-size: 15.5px;
    line-height: 1.65;
  }

  .page-meta {
    margin-top: 20px;
    padding-bottom: 17px;
    gap: 8px 12px;
    font-size: 10px;
  }

  .byline,
  .edit-link,
  .meta-spacer {
    display: none;
  }

  .quick-links {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 19px;
  }

  .quick-card {
    padding: 12px 13px 13px;
  }

  .quick-title {
    margin-top: 9px;
    font-size: 13.5px;
  }

  .quick-desc {
    font-size: 11px;
  }

  .doc-section {
    margin-top: 50px;
    padding-top: 36px;
  }

  .section-kicker::after {
    width: 22px;
  }

  .doc-section h2 {
    font-size: 25px;
    gap: 5px;
  }

  .doc-section > p {
    font-size: 13.8px;
    line-height: 1.72;
  }

  .heading-anchor {
    opacity: 0.4;
    width: 21px;
    height: 21px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 23px 0 24px;
  }

  .feature {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 11px;
    padding-top: 14px;
  }

  .feature-icon {
    grid-row: 1 / span 2;
  }

  .feature h3 {
    margin: 1px 0 3px;
  }

  .feature p {
    font-size: 11.7px;
  }

  .callout {
    padding: 12px 13px;
    gap: 10px;
  }

  .callout-icon {
    width: 27px;
    height: 27px;
  }

  .callout p {
    font-size: 11.5px;
  }

  .callout-title {
    font-size: 12px;
  }

  .step {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 28px;
  }

  .step-number {
    width: 28px;
    height: 28px;
    font-size: 9.5px;
  }

  .step:not(:last-child)::before {
    top: 34px;
    left: 13.5px;
  }

  .step-body h3 {
    font-size: 15px;
  }

  .step-body p {
    font-size: 12.5px;
  }

  .code-toolbar {
    min-height: 37px;
  }

  .code-tab {
    height: 36px;
    padding: 0 8px;
    font-size: 10px;
  }

  .code-lang {
    display: none;
  }

  .code-panel {
    padding: 14px;
    font-size: 10.3px;
    line-height: 1.72;
  }

  .code-card-api .code-panel {
    min-height: 0;
    font-size: 9.7px;
  }

  .table-wrap {
    margin-top: 19px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .table-wrap table {
    display: block;
    min-width: 0;
    font-size: 12px;
  }

  .table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .table-wrap tbody {
    display: grid;
    gap: 8px;
  }

  .table-wrap tbody tr {
    display: block;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
  }

  .table-wrap tbody tr:hover {
    background: var(--surface);
  }

  .table-wrap tbody th,
  .table-wrap tbody td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
  }

  .table-wrap tbody th {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.6px;
    font-weight: 630;
    line-height: 1.4;
  }

  .table-wrap tbody th code {
    font-size: 11px;
    font-weight: 500;
  }

  .table-wrap tbody td {
    margin-top: 7px;
    color: var(--ink-soft);
    font-size: 11.8px;
    line-height: 1.6;
  }

  .table-wrap tbody td + td {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--line);
  }

  .table-wrap tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 1px;
    color: var(--faint);
    font-size: 8.2px;
    font-weight: 650;
    letter-spacing: 0.075em;
    line-height: 1.5;
    text-transform: uppercase;
  }

  .table-wrap table code {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .config-table {
    min-width: 0;
  }

  .config-table tbody th {
    width: auto;
  }

  .config-table td:nth-child(2),
  .config-table td:nth-child(3) {
    width: auto;
  }

  .config-table td code {
    display: inline;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
  }

  .split-block {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 22px;
  }

  .tree-card {
    max-width: 380px;
  }

  .api-demo {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .response-code {
    max-height: 235px;
    font-size: 9.5px;
  }

  .api-note {
    width: 100%;
    margin-left: 0;
    margin-top: 2px;
  }

  .faq-item summary {
    padding: 14px 0;
    font-size: 12.6px;
    gap: 12px;
  }

  .faq-answer {
    padding-right: 10px;
    padding-bottom: 15px;
  }

  .faq-answer p {
    font-size: 11.8px;
  }

  .help-card {
    grid-template-columns: 1fr;
    margin-top: 35px;
    padding: 24px 21px;
  }

  .help-card h2 {
    font-size: 23px;
  }

  .help-art {
    display: none;
  }

  .help-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .help-actions .button {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 26px 22px;
    padding: 32px 18px 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    padding-bottom: 2px;
    border-bottom: 0;
  }

  .footer-note {
    grid-column: 1 / -1;
    padding-top: 7px;
    border-top: 1px solid var(--line);
  }

  .footer-bottom {
    flex-wrap: wrap;
    gap: 5px 7px;
    padding: 13px 18px 18px;
  }

  .footer-bottom-spacer {
    display: none;
  }

  .search-dialog {
    width: calc(100vw - 20px);
    max-height: 82vh;
    margin-top: 6vh;
    border-radius: 13px;
  }

  .search-head {
    height: 53px;
    padding-right: 11px;
    padding-left: 13px;
  }

  .search-head input {
    font-size: 14px;
  }

  .search-body {
    max-height: calc(82vh - 98px);
    padding: 7px;
  }

  .search-result {
    padding: 8px;
  }

  .search-result-desc {
    white-space: normal;
  }

  .search-foot {
    gap: 9px;
    font-size: 8px;
  }

  .search-hint:nth-child(2) {
    display: none;
  }

  .search-count {
    font-size: 8px;
  }
}

@media (max-width: 460px) {
  .doc-hero h1 {
    font-size: 35px;
  }

  .lead {
    font-size: 14.8px;
  }

  .page-meta .meta-item:nth-child(2) {
    display: none;
  }

  .quick-label {
    max-width: 180px;
  }

  .section-kicker {
    font-size: 8.8px;
  }

  .doc-section h2 {
    font-size: 23px;
  }

  .step-body .code-tab {
    padding: 0 7px;
    font-size: 9.4px;
  }

  .copy-btn .copy-label {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-note {
    grid-column: auto;
  }

  .footer-note {
    padding-top: 16px;
  }

  .footer-column {
    padding-bottom: 3px;
  }

  .announcement-inner p {
    font-size: 10.5px;
  }

  .announcement-close {
    width: 22px;
    height: 22px;
  }
}
