:root {
  color-scheme: only light;
  --page: #fff; --surface: #f6f7f5; --raised: #fff; --ink: #202c29;
  --muted: #5d6c66; --line: #e2e7e3; --accent: #196647; --accent-soft: #eaf3ec;
  --code: #152620; --code-ink: #dcebe3; --shadow: 0 14px 42px #182e2115;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; scrollbar-gutter: stable; }
body { margin: 0; color: var(--ink); background: var(--page); line-height: 1.7; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 100; background: var(--raised); padding: 12px 18px; border: 1px solid var(--accent); }
.skip-link:focus { top: 12px; }
.topbar { position: sticky; top: 0; z-index: 30; min-height: 88px; display: flex; align-items: center; gap: 32px; padding: 18px 32px; border-bottom: 1px solid var(--line); background: var(--page); }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 231px; color: var(--ink); font-size: 1rem; font-weight: 750; letter-spacing: -.035em; text-decoration: none; line-height: 1.3; }
.brand-logo { display: block; width: 44px; height: 44px; flex-shrink: 0; border-radius: 8px; object-fit: contain; }
.brand-caption { display: block; margin-top: 4px; font-weight: 500; letter-spacing: .04em; font-size: .65rem; color: var(--muted); }
.search { position: relative; width: min(480px, 100%); margin: 0 auto; }
.search input { display: block; width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 7px; padding: 0 42px 0 38px; background: var(--surface); color: var(--ink); font-size: .84rem; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search-icon { position: absolute; top: 2px; left: 13px; font-size: 1.4rem; color: var(--muted); pointer-events: none; }
kbd { position: absolute; right: 12px; top: 10px; border: 1px solid var(--line); border-radius: 4px; font: .75rem/1.5 monospace; padding: 0 5px; color: var(--muted); pointer-events: none; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 20px; min-height: 42px; padding: 9px 18px; background: var(--accent); color: var(--page); border: 1px solid var(--accent); border-radius: 6px; text-decoration: none; font-size: .82rem; font-weight: 650; line-height: 1.4; }
.button:hover { filter: brightness(.92); text-decoration: none; }
.purchase-link { white-space: nowrap; }
.menu-toggle { padding: 9px; min-height: 42px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: transparent; font-size: .75rem; white-space: nowrap; }
.menu-toggle { display: none; }
.docs-layout { display: grid; grid-template-columns: 263px minmax(0, 1fr) 190px; max-width: 1600px; margin: auto; }
.sidebar { position: sticky; top: 88px; height: calc(100vh - 88px); overflow-y: auto; border-right: 1px solid var(--line); padding: 26px 20px 24px 32px; }
.edition { display: flex; align-items: center; gap: 7px; font-size: .7rem; font-weight: 650; padding-bottom: 23px; white-space: nowrap; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #5b9970; flex-shrink: 0; }
.nav-group { margin: 0 0 22px; }
.nav-group h2 { font-size: .65rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; padding-left: 10px; }
.nav-group a { display: block; color: var(--muted); text-decoration: none; padding: 6px 10px; margin: 2px 0; border-radius: 5px; font-size: .79rem; line-height: 1.6; }
.nav-group a:hover { background: var(--surface); color: var(--ink); }
.nav-group a[aria-current] { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
main { min-width: 0; padding: 29px clamp(24px, 4vw, 64px) 28px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: .72rem; margin-bottom: 34px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.article-header { margin-bottom: 34px; }
.eyebrow { font-size: .68rem; color: var(--accent); font-weight: 750; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 16px; }
h1 { font-size: clamp(2rem, 3.1vw, 3.25rem); font-weight: 700; line-height: 1.13; letter-spacing: -.055em; max-width: 720px; margin: 0 0 20px; text-wrap: balance; }
.lead { font-size: 1.05rem; line-height: 1.75; color: var(--muted); max-width: 660px; margin: 0; }
.article-body { font-size: .9rem; }
.article-body h2 { color: var(--ink); margin: 44px 0 16px; font-size: 1.4rem; line-height: 1.3; letter-spacing: -.03em; }
.article-body h3 { font-size: 1.02rem; letter-spacing: -.025em; margin: 24px 0 10px; }
p { margin: 0 0 17px; }
.article-body p, .article-body li { color: var(--muted); }
strong { color: var(--ink); font-weight: 650; }
ul, ol { padding-left: 22px; margin: 16px 0 22px; }
li + li { margin-top: 9px; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .85em; overflow-wrap: anywhere; }
p code, li code, td code { padding: 2px 5px; background: var(--accent-soft); color: var(--accent); border-radius: 4px; }
pre { position: relative; margin: 20px 0 24px; padding: 38px 22px 25px; overflow-x: auto; color: var(--code-ink); background: var(--code); border-radius: 8px; line-height: 1.8; font-size: .87rem; tab-size: 4; }
pre code { overflow-wrap: normal; }
/* Static token colors: present before scripts run, including offline/no-JS. */
pre .syntax-keyword { color: #c9a5ff; }
pre .syntax-type { color: #7edce2; }
pre .syntax-function { color: #ffd580; }
pre .syntax-string { color: #b8dc99; }
pre .syntax-number { color: #f2b58d; }
pre .syntax-comment { color: #a4b8ac; font-style: italic; }
pre .syntax-option { color: #c9a5ff; }
pre .syntax-variable { color: #7edce2; }
.copy-code { position: absolute; top: 7px; right: 8px; padding: 4px 9px; background: #263e31; color: #e6f4eb; border: 1px solid #577261; border-radius: 4px; font-size: .64rem; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: -4px 0 30px; }
.text-link { font-size: .8rem; text-decoration: none; font-weight: 600; }
.hero-code { overflow: hidden; margin: 0 0 28px; background: var(--code); color: var(--code-ink); border-radius: 9px; box-shadow: var(--shadow); }
.code-caption { display: flex; align-items: center; gap: 8px; font-size: .62rem; padding: 14px 20px; border-bottom: 1px solid #ffffff19; color: #c0d4c7; }
.code-caption > span:last-child { margin-left: auto; font-family: monospace; }
.hero-code pre { margin: 0; padding: 24px 20px; border-radius: 0; }
.hero-code p { color: #c0d4c7; margin: 0; font-size: .72rem; border-top: 1px solid #ffffff19; padding: 12px 20px; }
.hero-code p code { background: #294535; color: #d5eedf; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); padding: 0 0 28px; gap: 16px; }
.facts strong { display: block; font-size: .83rem; font-weight: 650; margin-bottom: 3px; }
.facts span { display: block; font-size: .67rem; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; padding: 22px 18px 19px; border: 1px solid var(--line); border-radius: 8px; background: var(--page); color: var(--ink); text-decoration: none; transition: border-color .15s; }
.card:hover { border-color: var(--accent); background: var(--surface); text-decoration: none; }
.card-number { font-size: .55rem; letter-spacing: .11em; color: var(--accent); font-weight: 700; }
.article-body .card h3 { font-size: 1rem; margin: 19px 0 10px; line-height: 1.4; }
.card p { font-size: .76rem; margin: 0 0 20px; line-height: 1.8; }
.card-link { color: var(--accent); font-size: .66rem; font-weight: 650; margin-top: auto; }
.task-list { border-top: 1px solid var(--line); }
.task-list a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .85rem; font-weight: 600; }
.task-list a span { display: block; font-weight: 400; color: var(--muted); font-size: .73rem; margin-top: 3px; }
.task-list a:hover { color: var(--accent); }
.callout { background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; padding: 20px 22px; margin: 26px 0; font-size: .83rem; }
.callout strong { display: block; margin-bottom: 7px; color: var(--accent); }
.callout p:last-child { margin-bottom: 0; }
details { border: 1px solid var(--line); border-radius: 6px; margin: 18px 0; }
summary { cursor: pointer; padding: 14px 18px; color: var(--accent); font-weight: 600; line-height: 1.6; }
summary:hover { background: var(--surface); }
details[open] > summary { border-bottom: 1px solid var(--line); }
.details-body { padding: 18px; }
.details-body > :first-child { margin-top: 0; }
.details-body > :last-child { margin-bottom: 0; }
@media print { details > .details-body { display: block; } }
table { width: 100%; border-collapse: collapse; margin: 22px 0 28px; font-size: .78rem; text-align: left; }
th { background: var(--surface); color: var(--ink); font-size: .72rem; font-weight: 650; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
td { color: var(--muted); }
img { max-width: 100%; height: auto; }
.page-outline { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 88px); overflow-y: auto; padding: 76px 24px 32px 0; font-size: .7rem; }
.page-outline nav { border-left: 1px solid var(--line); padding-left: 18px; }
.page-outline p { color: var(--ink); margin: 0 0 15px; font-weight: 650; }
.page-outline a { display: block; text-decoration: none; color: var(--muted); line-height: 1.6; margin: 11px 0; }
.page-outline a:hover, .page-outline a[aria-current] { color: var(--accent); }
.page-outline .back-top { margin: 28px 0 0 18px; font-size: .65rem; }
.pagination { display: flex; gap: 16px; border-top: 1px solid var(--line); padding-top: 27px; margin-top: 48px; }
.pagination a { display: block; flex: 1; padding: 15px 18px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.pagination a:last-child { text-align: right; }
.pagination span { color: var(--muted); font-size: .66rem; display: block; }
.pagination strong { font-size: .8rem; color: var(--accent); }
.page-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 34px; color: var(--muted); font-size: .6rem; }
.search-panel { position: absolute; top: 52px; width: min(600px, 75vw); max-height: min(70vh, 600px); overflow-y: auto; background: var(--raised); color: var(--ink); box-shadow: var(--shadow); border: 1px solid var(--line); border-radius: 9px; }
#search-status { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
#search-results { list-style: none; padding: 7px; margin: 0; }
#search-results li { margin: 0; }
#search-results a { display: block; text-decoration: none; color: var(--ink); border-radius: 5px; padding: 11px; }
#search-results a:hover, #search-results a:focus { background: var(--accent-soft); }
.search-result-label { display: block; font-size: .68rem; color: var(--accent); }
.search-result-heading { font-weight: 650; font-size: .86rem; }
.search-result-snippet { display: block; font-size: .73rem; color: var(--muted); margin-top: 3px; }
.noscript-note { padding: 15px 30px; text-align: center; border-top: 1px solid var(--line); font-size: .8rem; }
@media (min-width: 1600px) { .topbar { padding-left: max(32px, calc((100vw - 1600px)/2 + 32px)); padding-right: max(32px, calc((100vw - 1600px)/2 + 32px)); } }
@media (max-width: 1200px) { .docs-layout { grid-template-columns: 245px minmax(0, 1fr); } .page-outline { display: none; } .topbar { gap: 20px; padding-left: 24px; padding-right: 24px; } .brand { flex-basis: 201px; } .sidebar { padding-left: 22px; } }
@media (max-width: 950px) { .cards { grid-template-columns: 1fr; } .card { padding: 22px; } .card p { margin-bottom: 12px; } .article-body .card h3 { margin-top: 10px; } .brand-caption { font-size: .5rem; } .brand { flex-basis: 184px; font-size: 1rem; } .topbar { gap: 15px; } .topbar-actions { gap: 8px; } .purchase-link { padding: 10px; font-size: .72rem; gap: 8px; } }
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; padding: 14px 18px; gap: 14px; }
  .brand { flex: 1; }
  .topbar-actions { gap: 8px; }
  .purchase-link { font-size: .65rem; min-height: 38px; padding: 8px; }
  .purchase-link span { display: none; }
  .menu-toggle { font-size: .7rem; }
  .search { order: 3; width: 100%; }
  .search-panel { width: 100%; }
  .docs-layout { display: block; }
  .sidebar { position: static; width: 100%; height: auto; padding: 20px; max-height: none; border-bottom: 1px solid var(--line); }
  .js-ready body:not(.menu-open) .sidebar { display: none; }
  .js-ready .menu-toggle { display: block; }
  .js-ready .menu-toggle[hidden] { display: block !important; visibility: hidden; }
  .sidebar nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
  .edition { max-width: 300px; }
  main { padding: 24px 22px; }
  .breadcrumb { margin-bottom: 28px; }
  h1 { font-size: 2.5rem; }
  .lead { font-size: .97rem; }
  .page-footer { flex-direction: column; }
  .facts { gap: 12px; }
  .facts strong { font-size: .74rem; }
  .facts span { font-size: .63rem; }
  html { scroll-padding-top: 150px; }
}
@media (max-width: 420px) {
  .topbar { padding: 12px; gap: 12px; }
  .brand { flex-basis: 140px; font-size: .88rem; gap: 8px; }
  .brand-logo { width: 36px; height: 36px; }
  .brand-caption { font-size: .6rem; }
  .topbar-actions { gap: 6px; }
  .purchase-link { display: none; }
  main { padding: 22px 18px; }
  h1 { font-size: 2.15rem; }
  .hero-actions { gap: 16px; }
  .facts { grid-template-columns: 1fr; gap: 12px; }
  .facts strong { display: inline; margin-right: 8px; }
  .facts span { display: inline; }
  .code-caption > span:last-child { display: none; }
  table { display: block; max-width: 100%; overflow-x: auto; }
  th, td { min-width: 140px; }
  .pagination { flex-direction: column; }
  .pagination a:last-child { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .topbar, .sidebar, .page-outline, .pagination, .copy-code, .skip-link { display: none; } .docs-layout { display: block; } main { padding: 0; } pre { white-space: pre-wrap; } }
