:root {
  color-scheme: light;
  --ink: #18212b;
  --muted: #5c6775;
  --link: #1455ad;
  --border: #dde3eb;
  --surface: #f6f8fb;
  --docs-chrome-offset: 200px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  scroll-padding-top: calc(var(--docs-chrome-offset) + 16px);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #397ddd; outline-offset: 4px; }
.docs-chrome { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--border); }
.site-header, .guide-nav, .doc-layout { max-width: 1240px; margin: 0 auto; }
.site-header { padding: 26px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header a { text-decoration: none; font-size: 14px; }
.site-header .site-title { font-size: 23px; font-weight: 700; letter-spacing: -0.6px; color: var(--ink); }
.site-title span { font-weight: 400; color: var(--muted); }
.guide-nav { padding: 0 32px; display: flex; flex-wrap: wrap; gap: 6px 26px; }
.guide-nav a { padding: 14px 0; color: var(--muted); text-decoration: none; font-size: 14px; border-bottom: 2px solid transparent; }
.guide-nav a[aria-current] { color: var(--link); border-color: var(--link); font-weight: 600; }
.doc-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 44px; padding: 42px 32px 64px; }
.doc-body { min-width: 0; }
.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: 1.6px; font-size: 11px; font-weight: 700; margin: 0 0 12px; }
.page-nav { align-self: start; position: sticky; top: calc(var(--docs-chrome-offset) + 16px); max-height: calc(100vh - var(--docs-chrome-offset) - 32px); overflow-y: auto; font-size: 13px; padding: 4px 6px 12px 0; }
.page-nav summary { font-weight: 650; cursor: pointer; margin-bottom: 18px; }
.page-nav ol { list-style: none; margin: 0; padding: 0; }
.page-nav li { margin: 0 0 13px; line-height: 1.5; overflow-wrap: anywhere; }
.page-nav .toc-level-3 { padding-left: 14px; }
.page-nav li a { color: var(--muted); text-decoration: none; }
.page-nav li a:hover { color: var(--link); text-decoration: underline; }
.markdown-link { display: inline-block; margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--border); text-decoration: none; }
#content { line-height: 1.7; font-size: 16px; overflow-wrap: anywhere; }
#content h1 { margin: 0 0 26px; font-size: clamp(28px, 3vw, 38px); letter-spacing: -1px; line-height: 1.22; }
#content h2 { margin: 46px 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border); font-size: 24px; line-height: 1.35; letter-spacing: -0.4px; }
#content h3 { margin: 30px 0 12px; font-size: 19px; line-height: 1.4; }
#content :is(h1, h2, h3, h4) { scroll-margin-top: 0; }
#content p { margin: 0 0 18px; }
#content li { margin: 7px 0; }
#content code { font-size: 0.86em; padding: 2px 5px; background: #eef2f7; border-radius: 4px; }
#content h1 code { font-size: 0.7em; font-weight: 500; }
#content pre { margin: 0; padding: 48px 20px 20px; overflow-x: auto; line-height: 1.6; font-size: 13px; }
#content pre code { padding: 0; border-radius: 0; background: transparent; font-size: inherit; }
#content pre code.language-text { white-space: pre-wrap; overflow-wrap: anywhere; }
#content pre .tok-cmd,
#content pre .tok-keyword { color: #1455ad; font-weight: 650; }
#content pre .tok-flag,
#content pre .tok-number { color: #9a3412; font-weight: 400; }
#content pre .tok-string { color: #0b6e45; }
#content pre .tok-var,
#content pre .tok-key { color: #6b3fa0; font-weight: 600; }
#content pre .tok-comment { color: #5c6775; font-style: italic; font-weight: 400; }
#content pre .tok-punct { color: #3d4754; font-weight: 400; }
.code-example { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; margin: 20px 0; }
.copy-code { position: absolute; right: 10px; top: 9px; background: #fff; color: var(--muted); border: 1px solid var(--border); border-radius: 5px; padding: 5px 11px; font: inherit; font-size: 12px; cursor: pointer; }
.copy-code:hover { color: var(--link); border-color: var(--link); }
.table-scroll { overflow-x: auto; margin: 22px 0; border: 1px solid var(--border); border-radius: 7px; }
#content table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
#content th, #content td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); min-width: 120px; }
#content th { background: var(--surface); font-weight: 650; }
#content tr:last-child td { border-bottom: 0; }
#content blockquote { margin: 20px 0; border-left: 3px solid #96b7e3; padding: 12px 20px; color: var(--muted); background: var(--surface); }
#content blockquote p:last-child { margin-bottom: 0; }
.doc-footer { border-top: 1px solid var(--border); margin-top: 44px; padding-top: 20px; font-size: 13px; color: var(--muted); }
.skip-link { position: absolute; top: -100px; left: 16px; background: #fff; padding: 12px; z-index: 30; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 800px) {
  .site-header { padding: 22px 20px; gap: 12px; }
  .site-header .site-title { font-size: 21px; }
  .site-header > a:last-child { font-size: 12px; }
  .guide-nav { padding: 8px 20px; gap: 0 20px; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-padding-inline: 12px; overscroll-behavior-x: contain; }
  .guide-nav::-webkit-scrollbar { display: none; }
  .guide-nav a { flex: 0 0 auto; padding: 11px 0; font-size: 13px; }
  .doc-layout { display: flex; flex-direction: column; gap: 28px; padding: 26px 20px 44px; }
  .page-nav { position: static; max-height: none; width: 100%; padding: 16px; background: var(--surface); border-radius: 7px; }
  .page-nav ol { max-height: 190px; overflow-y: auto; }
  .markdown-link { margin-top: 0; padding-top: 12px; }
  #content { font-size: 15px; }
  #content h2 { font-size: 21px; }
  #content th, #content td { min-width: 150px; }
}
@media print {
  .docs-chrome, .site-header, .guide-nav, .page-nav, .copy-code, .eyebrow, .doc-footer { display: none; }
  .doc-layout { display: block; padding: 0; }
  #content pre { white-space: pre-wrap; padding: 12px; }
  .table-scroll { overflow: visible; }
}
.docs-search { position: relative; flex: 0 1 380px; margin-left: auto; }
.docs-search input { width: 100%; padding: 9px 34px 9px 12px; font: inherit; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: 7px; }
.docs-search input:focus { background: #fff; border-color: #397ddd; outline: 2px solid #397ddd; outline-offset: 0; }
.docs-search input::-webkit-search-cancel-button { display: none; }
.docs-search kbd { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; background: #fff; pointer-events: none; }
.docs-search input:focus + kbd { display: none; }
.docs-search-panel { position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: min(460px, calc(100vw - 40px)); max-height: min(70vh, 560px); overflow-y: auto; background: #fff; border: 1px solid var(--border); border-radius: 9px; box-shadow: 0 12px 32px rgba(24, 33, 43, 0.14); z-index: 40; }
.docs-search-status { margin: 0; padding: 10px 14px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--border); }
.docs-search-results { list-style: none; margin: 0; padding: 4px 0; }
.docs-search-results:empty { display: none; }
.docs-search-results a { display: block; padding: 10px 14px; text-decoration: none; color: var(--ink); font-size: 13px; line-height: 1.5; }
.docs-search-results a:hover, .docs-search-results a:focus { background: var(--surface); outline: none; }
.docs-search-results a:focus-visible { box-shadow: inset 3px 0 0 var(--link); }
.docs-search-page { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); }
.docs-search-heading { display: block; font-weight: 650; color: var(--link); }
.docs-search-snippet { display: block; color: var(--muted); overflow-wrap: anywhere; }
.docs-search mark { background: #fff1a8; color: inherit; border-radius: 2px; }
@media (max-width: 800px) {
  .site-header { flex-wrap: wrap; }
  .docs-search { order: 3; flex: 1 1 100%; }
  .docs-search kbd { display: none; }
  .docs-search-panel { min-width: 0; }
}
@media print { .docs-search { display: none; } }
