@font-face {
    font-family: Geist;
    src: url("./geist.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: optional;
}

:root {
    color-scheme: light;
    --paper: #fff;
    --ink: #242428;
    --muted: #626166;
    --line: #e7e5e6;
    --wash: #f7f6f7;
    --accent: #29292e;
    --accent-hover: #3e3e43;
    --accent-wash: #f2f0f1;
    --accent-line: #d8d5d7;
    --focus: #6a626b;
    --shadow: 0 22px 65px #0002;
    --code-surface: #1d1e24;
    --code-toolbar: #25262e;
    --code-border: #393b45;
    --code-ink: #edf0f6;
    --code-muted: #bbc0ce;
    --bar-height: 68px;
    --header-height: calc(var(--bar-height) + 1px);
    --footer-height: 68px;
    --shell-width: 1584px;
    --gutter: clamp(20px, 3vw, 48px);
    --sidebar: clamp(244px, 20vw, 302px);
    --radius: 12px;
    font: 16px Geist, system-ui, sans-serif;
    scrollbar-gutter: stable;
    scroll-padding-top: calc(var(--header-height) + 24px);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
a, button { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; inset: 12px auto auto 12px; z-index: 30; transform: translateY(-220%); padding: .6rem 1rem; border-radius: 8px; background: var(--paper); }
.skip:focus { transform: none; }
html:has(dialog[open]) { overflow: hidden; }

.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner {
    width: min(100%, var(--shell-width)); min-height: var(--bar-height); margin: auto; padding-inline: var(--gutter);
    display: flex; align-items: center; gap: 14px;
}
.brand, .footer-brand { display: inline-flex; flex: none; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 690; letter-spacing: -.04em; }
.brand { font-size: 1.2rem; }
.brand img, .footer-brand img { display: block; flex: none; object-fit: contain; }
.header-version {
    flex: none; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px;
    color: var(--muted); background: var(--wash); font-size: .8rem; text-decoration: none;
    font-variant-numeric: tabular-nums;
}
.header-version:hover { border-color: var(--accent-line); color: var(--accent); }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; min-width: 0; }
.source-link, .doc-button {
    min-height: 40px; display: inline-flex; align-items: center; justify-content: center; flex: none;
    padding: 0 14px; border: 1px solid transparent; border-radius: 9px; color: var(--ink);
    font-size: .91rem; font-weight: 560; text-decoration: none; white-space: nowrap;
}
.source-link:hover { background: var(--wash); }
.doc-button.demo-link { gap: 6px; }
.doc-button.secondary { border-color: var(--line); background: var(--paper); }
.doc-button.secondary:hover { border-color: var(--accent-line); background: var(--accent-wash); }
.primary { border-color: var(--accent); background: var(--accent); color: var(--paper); }
.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.search-trigger, .mobile-toggle, .dialog-close, .copy-button {
    min-height: 40px; display: inline-flex; align-items: center; gap: 9px; padding: 0 10px;
    border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--wash);
}
.search-trigger { width: clamp(170px, 19vw, 244px); padding-inline: 12px 8px; text-align: start; font-size: .91rem; }
.search-trigger:hover, .mobile-toggle:hover, .dialog-close:hover, .copy-button:hover { background: var(--accent-wash); color: var(--accent); border-color: var(--accent-line); }
.search-trigger kbd { margin-inline-start: auto; }
kbd { padding: 2px 5px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); font: .76rem Geist, system-ui, sans-serif; white-space: nowrap; }
.search-icon { position: relative; display: inline-block; width: 14px; height: 14px; border: 1.7px solid currentColor; border-radius: 50%; flex: none; margin-inline-end: 3px; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 1.7px; background: currentColor; transform: rotate(45deg); inset: 10px auto auto 9px; border-radius: 4px; }
.mobile-toggle { display: none; }
.menu-icon { width: 15px; height: 12px; border-block: 1.6px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 1.6px no-repeat; }
.close-icon { display: grid; place-items: center; width: 14px; height: 14px; }
.close-icon::before, .close-icon::after { content: ""; grid-area: 1 / 1; width: 15px; height: 1.7px; background: currentColor; transform: rotate(45deg); }
.close-icon::after { transform: rotate(-45deg); }
.dialog-close { justify-content: center; width: 36px; min-height: 36px; padding: 0; flex: none; background: var(--paper); }

.doc-layout {
    display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr);
    width: min(100%, var(--shell-width)); margin: auto; overflow: clip;
}
.doc-sidebar {
    grid-column: 1; grid-row: 1; align-self: start; position: sticky; inset-block-start: var(--header-height);
    block-size: calc(100dvh - var(--header-height) - var(--sidebar-footer-overlap, 0px));
    /* Keep the sticky top steady while the scrollport resizes at the footer. */
    margin-block-end: calc(-1 * var(--footer-height));
    overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-gutter: stable;
    scrollbar-color: var(--accent-line) transparent;
    padding: 26px 16px 24px max(15px, calc(var(--gutter) - 9px));
}
.doc-sidebar:focus-visible { outline-offset: -3px; }
.nav-group + .nav-group { margin-top: 16px; }
.nav-group p { margin: 0 0 5px; padding-inline: 10px; font-size: .75rem; line-height: 1.4; font-weight: 660; color: var(--ink); }
.nav-group a {
    display: flex; min-height: 33px; align-items: center; padding: 6px 9px; border: 1px solid transparent; border-radius: 8px;
    color: var(--muted); text-decoration: none; font-size: .875rem; font-weight: 530; line-height: 1.34;
}
.nav-group a + a { margin-block-start: 4px; }
.nav-group a:hover { background: var(--wash); color: var(--ink); }
.nav-group a[aria-current="page"] { background: var(--accent-wash); color: var(--accent); border-color: var(--accent-line); }
.doc-content {
    grid-column: 2; grid-row: 1; min-width: 0; min-height: calc(100dvh - var(--header-height));
    display: grid; grid-template-columns: minmax(0, 760px) minmax(136px, 185px);
    justify-content: center; align-items: start; gap: clamp(28px, 3.6vw, 64px);
    padding: clamp(36px, 5vw, 74px) clamp(27px, 4.2vw, 72px) 76px;
}
.doc-article { min-width: 0; }
.page-heading { margin-bottom: 31px; padding-bottom: 27px; border-bottom: 1px solid var(--line); }
.page-category { margin: 0 0 13px; color: var(--accent); font-size: .84rem; line-height: 1.4; font-weight: 650; }
h1 { margin: 0; font-size: clamp(2rem, 3.9vw, 3.38rem); font-weight: 690; line-height: 1.06; letter-spacing: -.063em; overflow-wrap: anywhere; }
.page-description { max-width: 64ch; margin: 15px 0 0; font-size: clamp(1.02rem, 1.48vw, 1.15rem); line-height: 1.58; color: var(--muted); }
[data-introduction] .page-heading {
    --intro-grid: color-mix(in srgb, var(--ink) 9%, transparent);
    margin-bottom: 27px; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: 18px;
    background:
        linear-gradient(105deg, var(--wash) 12%, color-mix(in srgb, var(--wash) 80%, transparent) 46%, transparent 85%),
        linear-gradient(to right, var(--intro-grid) 1px, transparent 1px) right top / 32px 32px,
        linear-gradient(var(--intro-grid) 1px, transparent 1px) right top / 32px 32px,
        radial-gradient(ellipse at 100% 0%, var(--accent-wash), var(--wash) 72%);
    box-shadow: 0 9px 25px #00000008, inset 0 1px var(--paper);
}
[data-introduction] h1 { font-size: clamp(2.18rem, 4.85vw, 4.08rem); text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.toc {
    position: sticky; top: calc(var(--header-height) + 32px); max-height: calc(100dvh - var(--header-height) - 58px);
    min-width: 0; overflow: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-gutter: stable;
    display: grid; align-content: start; gap: 2px; padding: 4px 0;
}
.toc p { margin: 0 0 7px; padding-inline-start: 12px; color: var(--ink); font-size: .82rem; font-weight: 650; }
.toc a {
    display: block; padding: 5px 9px 5px 10px; border-inline-start: 2px solid var(--line);
    color: var(--muted); font-size: .83rem; line-height: 1.47; text-decoration: none; overflow-wrap: anywhere;
}
.toc .toc-child { padding-inline-start: 22px; font-size: .79rem; }
.toc a:hover, .toc a[aria-current="location"] { border-color: var(--accent); color: var(--accent); background: var(--wash); }

.prose { min-width: 0; color: var(--ink); font-size: 1rem; line-height: 1.72; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose > p, .prose > :where(ul, ol) { margin-block: 14px 19px; }
.prose > :where(p, ul, ol) { max-width: 74ch; }
.prose :where(ul, ol) { padding-inline-start: 1.45em; }
.prose li + li { margin-top: .45em; }
.prose :where(h2, h3, h4) { margin: 36px 0 12px; color: var(--ink); font-weight: 660; line-height: 1.23; letter-spacing: -.04em; }
.prose h2 { font-size: clamp(1.43rem, 2.48vw, 1.85rem); }
.prose h3 { font-size: 1.24rem; }
.prose blockquote { margin: 20px 0; padding: 10px 16px; border-inline-start: 3px solid var(--accent-line); border-radius: 0 9px 9px 0; background: var(--wash); }
.prose blockquote > p { margin: 0; }
.table-wrap { max-width: 100%; overflow: auto; margin: 17px 0 25px; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; min-width: 100%; text-align: start; font-size: .91rem; line-height: 1.58; }
th, td { padding: 11px 14px; text-align: start; vertical-align: top; }
thead { color: var(--ink); background: var(--wash); }
th { font-weight: 640; }
tbody tr { border-top: 1px solid var(--line); }
tbody tr:nth-child(even) { background: var(--wash); }
td:first-child { min-width: 120px; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
:not(pre) > code { padding: 2px 5px; border-radius: 5px; background: var(--code-toolbar); color: var(--code-ink); font-size: .88em; }
.code-block {
    --focus: #d5d9e4;
    min-width: 0; margin: 19px 0 24px; border: 1px solid var(--code-border); border-radius: var(--radius);
    background: var(--code-surface); color-scheme: dark;
}
.code-head {
    display: flex; align-items: center; justify-content: space-between; padding: 5px 8px 5px 13px; gap: 8px;
    border-bottom: 1px solid var(--code-border); border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
    background: var(--code-toolbar); color: var(--code-muted); font-size: .8rem;
}
.copy-button {
    justify-content: center; min-height: 29px; inline-size: 70px; padding: 0; border-radius: 6px;
    border-color: #4b4e5c; background: var(--code-toolbar); color: var(--code-ink); font-size: .8rem;
}
.code-head .copy-button:hover { border-color: #6a6e7e; background: #343641; color: var(--code-ink); }
pre { margin: 0; max-width: 100%; padding: 13px 15px; border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px); overflow: auto; background: var(--code-surface); color: var(--code-ink); font-size: .88rem; line-height: 1.63; tab-size: 4; }
.hljs-comment, .hljs-quote { color: var(--code-muted); }
.hljs-keyword, .hljs-built_in, .hljs-meta, .hljs-selector-class { color: #d2afff; }
.hljs-string, .hljs-addition { color: #9cdec0; }
.hljs-title, .hljs-tag, .hljs-name, .hljs-variable, .hljs-attribute { color: #a9cdf9; }
.hljs-number, .hljs-literal, .hljs-symbol, .hljs-deletion { color: #ffbc9e; }
.start-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 30px; }
.start-links a {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; align-items: start; gap: 5px 12px;
    min-width: 0; padding: 15px; border: 1px solid var(--line);
    border-radius: var(--radius); color: var(--ink); text-decoration: none; overflow-wrap: anywhere;
    background: radial-gradient(ellipse at 100% 0%, var(--wash), transparent 66%), var(--paper);
}
.start-links a:hover, .start-links a:focus-visible { border-color: var(--accent-line); box-shadow: 0 5px 15px #0000000c; }
.start-links a::after {
    content: ""; grid-column: 2; grid-row: 1; width: 7px; height: 7px; margin: 6px 3px 0 0;
    border-block-start: 1.5px solid; border-inline-end: 1.5px solid;
    color: var(--muted); transform: rotate(45deg);
}
.start-links a:hover::after, .start-links a:focus-visible::after { transform: translateX(2px) rotate(45deg); }
.start-links strong { font-weight: 630; }
.start-links span { grid-column: 1 / -1; color: var(--muted); font-size: .88rem; line-height: 1.48; }
.page-navigation {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
    margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line);
}
.page-step {
    display: flex; align-items: center; justify-content: space-between; gap: 13px; min-height: 74px; padding: 12px 14px;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); text-decoration: none;
}
.page-step:only-child { grid-column: 1 / -1; }
.page-step[rel="prev"] { justify-content: flex-start; }
.page-step:hover { border-color: var(--accent-line); background: var(--wash); }
.page-step-label { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.page-step-label small { color: var(--muted); font-size: .79rem; }
.page-step-label strong { font-size: .96rem; line-height: 1.35; font-weight: 640; }
.page-step-direction {
    display: grid; flex: 0 0 34px; height: 34px; place-items: center;
    border: 1px solid var(--line); border-radius: 8px; background: var(--wash);
}
.page-step-direction::before { content: ""; width: 7px; height: 7px; border-block-start: 1.5px solid; border-inline-end: 1.5px solid; transform: translateX(-1px) rotate(45deg); }
.page-step[rel="prev"] .page-step-direction { order: -1; }
.page-step[rel="prev"] .page-step-direction::before { transform: translateX(1px) rotate(-135deg); }
.site-footer { border-top: 1px solid var(--line); background: var(--wash); }
.footer-inner { justify-content: space-between; min-height: calc(var(--footer-height) - 1px); font-size: .88rem; }
.footer-project { display: flex; align-items: center; gap: 16px; }
.footer-inner nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding-inline-start: 16px; border-inline-start: 1px solid var(--accent-line); }
.footer-inner nav a { color: var(--muted); }
.footer-credit { flex: none; margin: 0; margin-inline-start: auto; color: var(--muted); white-space: nowrap; }
.footer-credit a { font-weight: 600; text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }
.missing { width: min(100%, 760px); min-height: 70vh; margin: auto; padding: 64px var(--gutter); }
.missing p { color: var(--muted); }

dialog { color: var(--ink); border: 1px solid var(--line); padding: 0; background: var(--paper); }
dialog::backdrop { background: #0005; }
.search-dialog {
    --search-top: clamp(12px, 12dvh, 128px);
    width: min(560px, calc(100% - 32px)); max-width: none;
    max-height: calc(100dvh - var(--search-top) - 12px); margin: var(--search-top) auto auto;
    border-radius: 16px; box-shadow: 0 24px 72px #18181b29, 0 4px 15px #18181b12; overflow: hidden;
}
.search-dialog[open] { display: flex; flex-direction: column; }
.search-dialog [hidden] { display: none; }
.search-dialog::backdrop { background: #2424284d; }
.search-bar { display: flex; flex: none; align-items: center; gap: 10px; min-height: 61px; padding: 8px 12px 8px 17px; border-bottom: 1px solid var(--line); }
.search-bar > .search-icon { color: var(--muted); }
.search-bar input { flex: 1; min-width: 0; height: 44px; padding: 0; border: 0; background: transparent; }
.search-bar input:focus { outline: none; }
.search-bar input::-webkit-search-cancel-button { display: none; }
.search-bar input::placeholder { color: var(--muted); opacity: 1; }
.search-bar .dialog-close { background: var(--wash); }
.search-bar .dialog-close:hover { background: var(--accent-wash); }
.search-clear, .search-retry {
    flex: none; min-height: 36px; padding: 0 9px; border: 0; border-radius: 7px;
    color: var(--muted); background: var(--paper); font-size: .81rem; font-weight: 590;
}
.search-clear:hover, .search-retry:hover { color: var(--ink); background: var(--wash); }
.search-content { display: flex; flex-direction: column; min-height: 0; padding: 9px 8px 8px; }
.search-status {
    flex: none; margin: 0; padding: 4px 9px 7px;
    color: var(--muted); font-size: .78rem; font-weight: 590; line-height: 1.4;
}
.search-status[data-message] { padding: 14px 9px; font-size: .91rem; font-weight: 500; }
.search-retry { align-self: flex-start; margin-inline-start: 3px; color: var(--ink); }
.search-results { min-height: 0; overflow-y: auto; scrollbar-gutter: stable; scrollbar-width: thin; overscroll-behavior: contain; }
.search-result {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
    min-height: 44px; padding: 6px 9px; border: 1px solid transparent;
    border-radius: 9px; color: var(--ink); text-decoration: none;
}
.search-result + .search-result { margin-top: 2px; }
.search-result[aria-selected="true"] { border-color: var(--line); background: var(--accent-wash); }
.search-result-label { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.search-result strong { font-size: .92rem; font-weight: 620; line-height: 1.32; }
.search-result small { color: var(--muted); font-size: .77rem; line-height: 1.3; }
.search-result-icon {
    display: grid; place-items: center; width: 27px; height: 27px;
    border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--muted);
}
.search-result-icon[data-kind="page"]::before {
    content: ""; width: 10px; height: 12px; border: 1px solid currentColor; border-radius: 2px;
    background: linear-gradient(currentColor, currentColor) center 3px / 4px 1px no-repeat,
                linear-gradient(currentColor, currentColor) center 6px / 4px 1px no-repeat;
}
.search-result-icon[data-kind="section"]::before { content: "#"; font-size: .9rem; line-height: 1; }
.search-result-arrow {
    width: 6px; height: 6px; margin-inline: 2px 4px;
    border-block-start: 1.4px solid var(--muted); border-inline-end: 1.4px solid var(--muted); transform: rotate(45deg);
}
.search-result mark { padding-inline: 1px; border-radius: 2px; background: var(--accent-line); color: inherit; }
.search-help {
    display: flex; flex: none; align-items: center; gap: 14px; padding: 8px 12px;
    border-top: 1px solid var(--line); background: var(--wash); font-size: .75rem; color: var(--muted);
}
.search-help span:last-child { margin-inline-start: auto; }
.search-help kbd { padding: 1px 4px; font-size: .71rem; }
.mobile-navigation { width: min(340px, 92vw); max-width: none; max-height: 100dvh; height: 100dvh; margin: 0 auto 0 0; border-radius: 0 14px 14px 0; box-shadow: var(--shadow); }
.mobile-navigation[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.mobile-navigation-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.mobile-navigation-body { overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-gutter: stable; padding: 16px; }

@media (hover: none) and (pointer: coarse) {
    .search-help { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
    :where(.doc-button, .search-trigger, .source-link, .nav-group a, .toc a, .copy-button, .search-result, .page-step) { transition: background-color .14s ease, color .14s ease, border-color .14s ease; }
    .start-links a { transition: border-color .16s ease, box-shadow .16s ease; }
    .start-links a::after { transition: transform .16s ease; }
    dialog[open] { animation: appear .14s ease-out both; }
    @keyframes appear { from { opacity: 0; transform: translateY(-5px); } }
}
@media (min-width: 761px) {
    .doc-content { border-inline-start: 1px solid var(--line); }
}
@media (max-width: 1100px) {
    .doc-content { grid-template-columns: minmax(0, 760px); }
    .toc { display: none; }
}
@media (max-width: 760px) {
    :root { --bar-height: 62px; }
    .doc-layout { display: block; }
    .doc-sidebar { display: none; }
    .mobile-toggle { display: inline-flex; justify-content: center; width: 40px; }
    .header-inner { gap: 8px; }
    .header-actions { gap: 7px; }
    .source-link { display: none; }
    .doc-content { padding: 30px var(--gutter) 53px; }
}
@media (max-width: 560px) {
    .brand { font-size: 1.02rem; gap: 5px; }
    .brand img { width: 28px; height: 28px; }
    .header-version, .search-trigger span, .search-trigger kbd { display: none; }
    .search-trigger { width: 40px; padding: 0; justify-content: center; }
    .search-dialog { --search-top: 12px; width: calc(100% - 24px); }
    .search-help { display: none; }
    .doc-button { padding-inline: 10px; }
    .header-inner { padding-inline: 12px; }
    .header-actions { gap: 5px; }
    pre:has(.language-bash) { white-space: pre-wrap; overflow-wrap: anywhere; }
    .footer-inner { flex-wrap: wrap; gap: 11px 16px; padding-block: 14px; }
    .footer-project { flex: 1 0 100%; flex-wrap: wrap; gap: 7px 12px; }
    .footer-inner nav { gap: 6px 12px; padding-inline-start: 0; border-inline-start: 0; }
    .start-links, .page-navigation { grid-template-columns: 1fr; }
}
@media (max-width: 375px) {
    .header-inner { padding-inline: 8px; gap: 6px; }
    .brand { font-size: .85rem; gap: 4px; }
    .brand img { width: 24px; height: 24px; }
    .header-actions { gap: 4px; }
    .header-actions :is(.search-trigger, .mobile-toggle) { flex: none; width: 34px; padding-inline: 0; }
    .header-actions .demo-link { padding-inline: 7px; gap: 4px; font-size: .82rem; }
}
