 :root { --font-heading: var(--font-sans); --font-prose: var(--font-sans); --page-width: 1440px; --page-gutter: 40px; --clay-soft: color-mix(in oklab, var(--clay) 9%, var(--background)); --clay-hover: color-mix(in oklab, var(--clay) 15%, var(--background)); --heading-size: clamp(32px, 3.4vw, 46px); --prose-size: 16px; --prose-leading: 1.8; }
.container { width: min(var(--page-width), calc(100% - var(--page-gutter) * 2)); }
html { scroll-padding-top: 92px; }
* { box-sizing: border-box; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button:hover, a:hover { color: var(--clay); }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }
[hidden] { display: none !important; }
::selection { background: var(--clay); color: var(--background); }
* { scrollbar-color: var(--border) transparent; scrollbar-width: thin; }
input { caret-color: var(--clay); }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 24px; z-index: 100; padding: 12px 20px; background: var(--surface); }
.skip-link:focus { top: 12px; }
.navigation-band { position: sticky; top: 0; z-index: 30; background: var(--background); }
.docs-navbar { min-height: 65px; display: flex; align-items: center; gap: 32px; border-block: 1px solid var(--border); }
.docs-label { color: var(--ink); font-weight: 500; letter-spacing: .01em; }
.section-tabs { display: flex; gap: 28px; margin-left: auto; font-size: 14px; color: var(--muted); }
.section-tabs a { padding-block: 22px; position: relative; }
.section-tabs [aria-current] { color: var(--clay); }
.section-tabs [aria-current]::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--clay); }
.search { width: 232px; height: 37px; position: relative; display: flex; gap: 9px; align-items: center; background: var(--surface); border: 1px solid var(--border); padding: 0 10px; border-radius: 4px; }
.search label { display: flex; color: var(--muted); }
.search input { width: 100%; min-width: 0; background: transparent; color: var(--ink); border: 0; font-size: 14px; padding-block: 6px; }
.search input:focus { outline: 0; }
.search:focus-within { outline: 1px solid var(--clay); }
.search input::placeholder { color: var(--muted); }
.search kbd { font: 12px var(--font-mono); color: var(--muted); border: 1px solid var(--border); padding: 0 5px; }
.search-results { position: absolute; top: calc(100% + 10px); right: 0; width: 340px; max-height: 420px; overflow-y: auto; background: var(--surface); padding: 8px; border: 1px solid var(--border); border-radius: 4px; box-shadow: 0 12px 32px #0002; }
.search-results a { display: block; font-size: 15px; padding: 10px 12px; border-radius: 3px; }
.search-results a:hover, .search-results a:focus { background: var(--clay-soft); }
.search-empty { margin: 8px 12px; font-size: 14px; }
.mobile-menu { display: none; }
.docs-layout { display: grid; grid-template-columns: 244px minmax(0, 1fr); gap: 56px; align-items: start; }
.sidebar { position: sticky; top: 65px; max-height: calc(100dvh - 85px); overflow-y: auto; padding: 34px 0 30px; }
.sidebar nav { display: grid; gap: 24px; }
.sidebar a { display: block; padding: 8px 12px; margin-inline: 8px 0; border-radius: 4px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.sidebar a:hover { color: var(--clay); background: var(--clay-soft); }
.sidebar a[aria-current] { color: var(--clay); background: var(--clay-hover); font-weight: 500; }
.sidebar .nav-overview { color: var(--body); }
.nav-group h2 { margin: 6px 8px 10px ; font: 600 14px/1.4 var(--font-sans); color: var(--ink); }
.main-content { min-width: 0; padding: 38px 0 0; }
.main-content:focus { outline: none; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--clay); }
.article-heading { margin: 26px 0 28px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.page-actions { position: relative; flex: none; display: inline-flex; margin-top: 10px; border: 1px solid var(--border); border-radius: 7px; font: 13px var(--font-sans); }
.page-actions button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--body); cursor: pointer; font: inherit; }
.page-actions button:hover { color: var(--clay); }
.page-actions svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page-actions > .copy-page { padding: 6px 10px; }
.page-actions-toggle { padding: 6px 7px; border-left: 1px solid var(--border) !important; }
.page-actions-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 20; min-width: 210px; padding: 6px; border: 1px solid var(--border); border-radius: 9px; background: var(--background); box-shadow: 0 10px 30px #0003; }
.page-actions-menu[hidden] { display: none; }
.page-actions-menu button, .page-actions-menu a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 6px; color: var(--ink); font: 13px var(--font-sans); text-decoration: none; }
.page-actions-menu button:hover, .page-actions-menu a:hover { background: var(--surface); color: var(--ink); }
h1 { margin: 0; max-width: 940px; font: 500 var(--heading-size)/1.15 var(--font-heading); letter-spacing: -.032em; text-wrap: balance; color: var(--ink); overflow-wrap: anywhere; }
.reading-layout { display: grid; grid-template-columns: minmax(0, 1fr) 174px; gap: 48px; align-items: start; }
.prose { width: 100%; min-width: 0; font: 400 var(--prose-size)/var(--prose-leading) var(--font-prose); }
.prose p { margin: 0 0 22px; }
.prose > p:first-child { color: var(--body); }
.prose a:not(.pagination a):not(.overview-links a) { color: var(--clay); text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--clay) 45%, transparent); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--clay); }
.prose h2, .prose h3 { position: relative; color: var(--ink); font-family: var(--font-heading); text-wrap: balance; overflow-wrap: anywhere; }
.prose h2 { margin: 44px 0 16px; padding-top: 22px; border-top: 1px solid var(--border); font-weight: 500; font-size: 26px; line-height: 1.35; letter-spacing: -.02em; }
.prose h3 { margin: 32px 0 12px; font-size: 21px; font-weight: 500; line-height: 1.4; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 24px; }
.prose li { padding-left: 4px; margin-block: 9px; }
.prose li::marker { color: var(--clay); }
.prose strong { color: var(--ink); font-weight: 600; }
.code-sample { margin: 26px 0; border: 1px solid var(--border); border-radius: 4px; background: var(--code-background); overflow: hidden; }
.code-sample figcaption { display: flex; align-items: center; justify-content: space-between; min-height: 39px; padding: 0 18px; font: 12px var(--font-mono); color: var(--muted); border-bottom: 1px solid var(--border); background: var(--surface); }
.copy-code { border: 0; background: transparent; padding: 8px 0 8px 14px; font: 12px var(--font-sans); }
.code-sample pre { margin: 0; padding: 21px; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; }
.code-sample code { display: block; background: none; padding: 0; font: 13px/1.85 var(--font-mono); border-radius: 0; color: var(--body); }
.table-scroll { overflow: auto; margin-block: 25px; border-block: 1px solid var(--border); }
table { border-collapse: collapse; width: 100%; font: 14px/1.65 var(--font-sans); text-align: left; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 13px 15px; vertical-align: top; border-bottom: 1px solid var(--border); }
th { color: var(--ink); font-weight: 500; background: var(--clay-soft); }
td { color: var(--body); }
tr:last-child td { border: 0; }
tbody tr:hover { background: var(--clay-soft); }
td:first-child { min-width: 135px; }
td code { font-size: 12px; background: transparent; padding: 0; }
.prose blockquote { margin-inline: 0; padding: 20px 24px; background: var(--clay-soft); border: 1px solid var(--border); }
.contents { position: sticky; top: 100px; max-height: calc(100dvh - 125px); overflow-y: auto; border-left: 1px solid var(--border); padding-left: 22px; font: 13px/1.5 var(--font-sans); }
.contents summary { color: var(--ink); font-weight: 500; list-style: none; margin-bottom: 14px; cursor: pointer; }
.contents summary::-webkit-details-marker { display: none; }
.contents nav { display: flex; flex-direction: column; gap: 11px; }
.contents a { color: var(--muted); overflow-wrap: anywhere; }
.contents a:hover { color: var(--clay); }
.contents .toc-level-3 { padding-left: 12px; font-size: 12px; }
.prose .release-tag { margin-top: 42px; color: var(--muted); font-size: 13px; }
.release-tag strong { color: var(--body); font-weight: 600; }
.release-tag .separator { margin-inline: 8px; opacity: .6; }
.pagination { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--border); margin-top: 36px; padding-top: 24px; font-family: var(--font-sans); }
.pagination a { flex: 1; position: relative; padding: 10px 28px 10px 12px; border-radius: 3px; }
.pagination a:hover { background: var(--clay-soft); }
.pagination span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.pagination strong { font-size: 15px; font-weight: 500; line-height: 1.45; display: block; }
.pagination svg { position: absolute; right: 2px; top: 40px; width: 15px; color: var(--clay); }
.page-next { text-align: right; margin-left: auto; }
.page-previous svg { display: none; }
.article-footer { display: flex; justify-content: flex-end; gap: 24px; padding-block: 35px; margin-top: 50px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.overview-page .reading-layout { grid-template-columns: minmax(0, 1fr); }
.overview-intro { font-size: 20px; line-height: 1.7; }
.overview-section { display: grid; grid-template-columns: 1fr 1.12fr; gap: 56px; border-top: 1px solid var(--border); padding-block: 34px 10px; margin-top: 34px; }
.overview-section h2 { margin: 0 0 12px; padding: 0; border: 0; }
.overview-section p { font-size: 15px; color: var(--muted); }
.overview-links { display: grid; align-content: start; }
.overview-links a { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px; margin: -3px -12px 3px; border-bottom: 1px solid var(--border); font: 16px/1.5 var(--font-sans); color: var(--ink); }
.overview-links a:last-child { border-bottom: 0; }
.overview-links a:hover { background: var(--clay-soft); color: var(--clay); }
.overview-links svg { flex-shrink: 0; width: 16px; color: var(--clay); }
@media (min-width: 1450px) { .docs-layout { gap: 70px; } .reading-layout { gap: 60px; grid-template-columns: minmax(0, 1fr) 188px; } }
@media (max-width: 1180px) {
  :root { --page-gutter: 30px; }
  .docs-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 38px; }
  .reading-layout { display: flex; flex-direction: column; gap: 26px; }
  .contents { order: -1; position: static; max-height: none; border-left: 0; border-block: 1px solid var(--border); padding: 15px 0; width: 100%; }
  .contents summary { margin-bottom: 0; }
  .contents details[open] summary { margin-bottom: 12px; }
  .contents nav { display: flex; flex-flow: row wrap; gap: 8px 20px; }
  .contents .toc-level-3 { padding: 0; }
  .section-tabs { gap: 18px; }
  .docs-navbar { gap: 22px; }
  .search { width: 200px; }
  .overview-section { gap: 32px; }
}
@media (max-width: 880px) {
  .section-tabs { display: none; }
  .search { margin-left: auto; }
  .docs-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 30px; }
  .overview-section { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 680px) {
  :root { --page-gutter: 22px; --prose-size: 17px; }
  .docs-navbar { min-height: 63px; gap: 16px; }
  .docs-label { display: none; }
  .mobile-menu { display: block; white-space: nowrap; font-size: 14px; border: 0; background: transparent; padding: 10px 0; }
  .mobile-menu::after { content: '+'; margin-left: 12px; color: var(--clay); }
  .mobile-menu[aria-expanded="true"]::after { content: '−'; }
  .search { width: min(205px, 56%); }
  .search kbd { display: none; }
  .search-results { max-width: calc(100vw - 44px); }
  .docs-layout { display: block; }
  .sidebar { display: none; position: static; max-height: none; padding: 18px 8px; border-bottom: 1px solid var(--border); }
  .menu-open .sidebar { display: block; }
  .main-content { padding-top: 28px; }
  .article-heading { margin: 23px 0; }
  .prose h2 { font-size: 24px; }
  .code-sample pre { padding: 16px; }
  .code-sample code { font-size: 12px; line-height: 1.8; }
  .table-scroll { margin-inline: 0; }
  table { min-width: 550px; }
  .overview-intro { font-size: 19px; }
  .pagination { gap: 14px; }
  .pagination strong { font-size: 14px; }
  .article-footer { margin-top: 34px; padding-block: 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
.article-heading { padding-bottom: 4px; }
h1 { font-weight: 400; letter-spacing: -.035em; }
.docs-label { font: 500 21px var(--font-heading); }
.nav-group h2 { font: 500 18px/1.4 var(--font-heading); }
.prose h2 { font-size: 28px; }
.prose h3 { font-size: 22px; }
.contents summary { font: 500 17px var(--font-heading); }
.sidebar { padding-right: 8px; }
.sidebar a[aria-current] { box-shadow: 0 0 var(--clay); }
.prose > .code-sample:first-child { margin-top: 0; }
@media (max-width: 680px) { .prose h2 { font-size: 26px; } }

.docs-label { white-space: nowrap; }
.search { flex-shrink: 0; }
.overview-links ul { list-style: none; padding: 0; margin: 0; }
.overview-links li { margin: 0; padding: 0; }
.overview-links li a { margin: 0; border-bottom: 1px solid var(--border); }
.overview-links li:last-child a { border-bottom: 0; }
.contents summary::after { content: '−'; color: var(--clay); margin-left: 12px; font-family: var(--font-mono); }
.contents details:not([open]) summary::after { content: '+'; }
@media (max-width: 1180px) {
  .section-tabs { display: none; }
  .search { margin-left: auto; }
  .contents nav { max-height: 40dvh; overflow-y: auto; }
}
@media (max-width: 680px) {
}
/* Documentation keeps the same type and brand as the landing page. */
h1 { font-weight: 700; }
.prose h2, .prose h3 { font-weight: 700; }
.nav-group h2 { font: 700 13px/1.5 var(--font-sans); }
.docs-label { font: 700 16px/1.5 var(--font-sans); }
.contents summary { font: 700 13px/1.5 var(--font-sans); }
.prose :not(pre) > code { color: var(--ink); background: var(--clay-soft); padding: 2px 4px; border-radius: 2px; overflow-wrap: anywhere; }
.prose code { font-family: var(--font-mono); }
@media (max-width: 430px) { .site-header { padding-bottom: 18px; } }
@media (max-width: 680px) { html:not(.js) .sidebar { display: block; } }
@media (max-width: 680px) { .article-heading { flex-direction: column; gap: 14px; } .page-actions { margin-top: 0; } }
