@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Geist:wght@400;500;600&display=swap');

:root {
  --bg: #080a09;
  --surface: #0d100e;
  --surface-2: #131713;
  --text: #f0f1eb;
  --muted: #939991;
  --line: rgba(240,241,235,.15);
  --line-soft: rgba(240,241,235,.075);
  --accent: #d7ff43;
  --accent-ink: #10120d;
  --header: rgba(8,10,9,.84);
  --code: #111510;
  --max: 1540px;
  --pad: clamp(20px,4vw,72px);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f0f1eb;
  --surface: #e7e9e3;
  --surface-2: #dcdfd8;
  --text: #090b0a;
  --muted: #626860;
  --line: rgba(9,11,10,.2);
  --line-soft: rgba(9,11,10,.09);
  --accent: #668000;
  --accent-ink: #f6ffd7;
  --header: rgba(240,241,235,.86);
  --code: #e3e6df;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { min-width: 320px; margin: 0; background: var(--bg); color: var(--text); font-family: Geist,Arial,sans-serif; -webkit-font-smoothing: antialiased; transition: background .35s ease,color .35s ease; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
header { position: sticky; z-index: 30; top: 0; height: 72px; display: flex; align-items: center; gap: 24px; padding: 0 var(--pad); border-bottom: 1px solid var(--line); background: var(--header); backdrop-filter: blur(22px); }
header > a:last-of-type { margin-left: auto; color: var(--muted); font-size: 12px; transition: color .2s ease; }
header > a:last-of-type:hover { color: var(--text); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 11px; font-weight: 600; letter-spacing: .22em; white-space: nowrap; }
.brand::before { content: ""; width: 15px; height: 15px; background: currentColor; clip-path: polygon(7% 27%,53% 4%,53% 70%,7% 94%,7% 27%,19% 33%,19% 76%,41% 65%,41% 22%,7% 38%); }
.brand span { color: var(--muted); font-weight: 400; letter-spacing: .13em; }
.docs-controls { display: flex; align-items: center; gap: 10px; }
.docs-theme { min-width: 92px; height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 11px; cursor: pointer; transition: background .2s ease,transform .2s ease; }
.docs-theme:hover { background: var(--surface-2); transform: translateY(-1px); }
.docs-theme:active { transform: scale(.98); }
.docs-theme i { width: 22px; height: 11px; position: relative; border: 1px solid var(--line); border-radius: 20px; }
.docs-theme i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); transition: transform .25s cubic-bezier(.16,1,.3,1); }
:root[data-theme="light"] .docs-theme i::after { transform: translateX(11px); }
.docs-nav-toggle { display: none; width: 40px; height: 38px; border: 1px solid var(--line); background: transparent; }
.docs-nav-toggle i { display: block; width: 16px; height: 1px; margin: 5px auto; background: var(--text); }
.layout { width: min(100%,var(--max)); min-height: calc(100svh - 72px); display: grid; grid-template-columns: minmax(230px,290px) minmax(0,1fr); margin: 0 auto; }
.layout > nav { position: sticky; top: 72px; height: calc(100svh - 72px); display: flex; flex-direction: column; align-items: stretch; padding: 54px 32px 40px var(--pad); border-right: 1px solid var(--line); overflow-y: auto; }
.layout > nav .eyebrow { margin-bottom: 24px; color: var(--muted); font-size: 9px; letter-spacing: .17em; }
.layout > nav a { position: relative; padding: 13px 16px 13px 0; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 13px; transition: color .2s ease,padding .25s ease; }
.layout > nav a::after { content: "↗"; position: absolute; right: 0; opacity: 0; transform: translate(-7px,7px); transition: .25s ease; }
.layout > nav a:hover { padding-left: 7px; color: var(--text); }
.layout > nav a:hover::after { opacity: 1; transform: none; }
.layout > nav a[aria-current="page"] { color: var(--text); }
.layout > nav a[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); transform: translateY(-50%); }
main { min-width: 0; padding: clamp(70px,8vw,130px) clamp(28px,7vw,120px) 0; }
main > .eyebrow { color: var(--accent); font-size: 9px; font-weight: 600; letter-spacing: .18em; }
h1 { max-width: 9ch; margin: 45px 0 34px; font-size: clamp(64px,9vw,146px); font-weight: 500; letter-spacing: -.085em; line-height: .82; text-wrap: balance; }
.lead { max-width: 42ch; margin: 0 0 clamp(90px,11vw,170px) auto; color: var(--muted); font-size: clamp(18px,1.7vw,25px); line-height: 1.45; }
.product-doc { max-width: 810px; margin-left: auto; counter-reset: section; }
.product-doc > p:first-child { font-size: 20px; line-height: 1.65; color: var(--text); }
.product-doc h2 { counter-increment: section; position: relative; margin: 100px 0 28px; padding-top: 28px; border-top: 1px solid var(--line); font-size: clamp(31px,3.3vw,52px); font-weight: 500; letter-spacing: -.055em; line-height: 1; }
.product-doc h2::before { content: "0" counter(section); display: block; margin-bottom: 35px; color: var(--accent); font: 500 10px DM Mono,monospace; letter-spacing: .12em; }
.product-doc p,.product-doc li { color: var(--muted); font-size: 16px; line-height: 1.78; }
.product-doc strong { color: var(--text); font-weight: 550; }
.product-doc a { color: var(--text); border-bottom: 1px solid var(--accent); transition: color .2s ease; }
.product-doc a:hover { color: var(--accent); }
.product-doc ul,.product-doc ol { margin: 30px 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.product-doc li { position: relative; padding: 18px 10px 18px 38px; border-bottom: 1px solid var(--line-soft); }
.product-doc li::before { content: "→"; position: absolute; left: 3px; color: var(--accent); }
code { padding: .16em .38em; border: 1px solid var(--line); background: var(--code); color: var(--text); font: .87em DM Mono,monospace; }
pre { position: relative; overflow: auto; padding: 28px; border: 1px solid var(--line); background: var(--code); }
pre code { padding: 0; border: 0; background: transparent; }
.copy-code { position: absolute; top: 10px; right: 10px; padding: 7px 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 11px Geist,sans-serif; cursor: pointer; }
main > footer { display: flex; justify-content: space-between; gap: 30px; margin-top: clamp(120px,15vw,240px); padding: 32px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; letter-spacing: .12em; }
main > footer a { color: var(--text); }

@media (max-width: 820px) {
  header { height: 64px; }
  header > a:last-of-type { display: none; }
  .docs-controls { margin-left: auto; }
  .docs-nav-toggle { display: block; }
  .layout { display: block; }
  .layout > nav { position: fixed; z-index: 25; inset: 64px 0 0; width: 100%; height: auto; padding: 38px var(--pad) 70px; border: 0; background: var(--bg); opacity: 0; visibility: hidden; transform: translateY(-20px); transition: .35s cubic-bezier(.16,1,.3,1); }
  .docs-nav-open { overflow: hidden; }
  .docs-nav-open .layout > nav { opacity: 1; visibility: visible; transform: none; }
  main { padding-top: 72px; }
  h1 { font-size: clamp(58px,18vw,100px); }
  .lead { margin-left: 0; }
  .product-doc { margin-left: 0; }
}
@media (max-width: 480px) {
  .brand span { display: none; }
  .docs-theme { min-width: 76px; }
  main { padding-inline: 20px; }
  main > footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* Search, in-page navigation and live service context */
.docs-search-trigger { height: 38px; display: flex; align-items: center; gap: 24px; padding: 0 12px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-size: 11px; cursor: pointer; transition: color .2s ease,background .2s ease; }
.docs-search-trigger:hover { color: var(--text); background: var(--surface); }
.docs-search-trigger kbd { padding: 3px 5px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 9px DM Mono,monospace; }
.docs-health { max-width: 810px; min-height: 54px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin: -105px 0 100px auto; padding: 0 17px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 11px; }
.docs-health i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb,var(--accent) 10%,transparent); }
.docs-health b { color: var(--text); font-weight: 500; }
.docs-health[data-state="outage"] i { background: #e7b45f; }
.docs-health[data-state="down"] i { background: #ff776e; }
.docs-outline { position: fixed; right: max(22px,calc((100vw - var(--max))/2 + 22px)); top: 150px; width: 160px; display: grid; gap: 10px; padding-left: 18px; border-left: 1px solid var(--line); }
.docs-outline span { margin-bottom: 4px; color: var(--text); font: 500 9px DM Mono,monospace; letter-spacing: .13em; text-transform: uppercase; }
.docs-outline a { color: var(--muted); font-size: 11px; line-height: 1.35; transition: color .2s ease,transform .2s ease; }
.docs-outline a:hover { color: var(--text); transform: translateX(3px); }
.docs-search { width: min(680px,calc(100vw - 32px)); max-height: min(720px,calc(100svh - 60px)); padding: 0; border: 1px solid var(--line); background: var(--bg); color: var(--text); box-shadow: 0 30px 90px rgba(0,0,0,.5); }
.docs-search::backdrop { background: rgba(0,0,0,.65); backdrop-filter: blur(10px); }
.docs-search__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.docs-search__head label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.docs-search__head button { border: 0; background: none; color: var(--muted); font-size: 24px; cursor: pointer; }
.docs-search > input { width: calc(100% - 44px); margin: 22px; padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); outline: 0; background: transparent; color: var(--text); font: 500 clamp(20px,3vw,32px) Geist,sans-serif; letter-spacing: -.035em; }
.docs-search__results { display: grid; padding: 0 22px 22px; }
.docs-search__results > p { color: var(--muted); font-size: 13px; }
.docs-search__results a { display: grid; gap: 6px; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.docs-search__results a:hover strong { color: var(--accent); }
.docs-search__results strong { font-size: 15px; font-weight: 500; transition: color .2s ease; }
.docs-search__results span { color: var(--muted); font-size: 12px; line-height: 1.45; }
@media (max-width: 1180px) { .docs-outline { position: static; width: auto; margin: 80px 0 0; } }
@media (max-width: 820px) { .docs-search-trigger span { display: none; } .docs-search-trigger { gap: 0; } .docs-health { margin: -60px 0 80px; } }
