:root {
  color-scheme: light;
  --ink: #18212b;
  --muted: #5c6775;
  --link: #1455ad;
  --border: #dde3eb;
  --surface: #f6f8fb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
}
* { 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; }
.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; border-bottom: 1px solid var(--border); }
.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: 28px; max-height: calc(100vh - 56px); 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: 24px; }
#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; }
.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: 1; }
.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: 0 20px; gap: 0 20px; }
  .guide-nav a { 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 {
  .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; }
}
