Repository Public
1/* Documentation shell */23.docs.wrap { max-width: calc(1360px + 2 * var(--gutter)); }4.docs { display: grid; grid-template-columns: 248px minmax(0, 1fr) 208px; gap: clamp(24px, 3.4vw, 56px); align-items: start; }5.docs-side, .docs-toc { position: sticky; top: calc(var(--header-h) + 1px); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;6 padding: 28px 0 40px; scrollbar-width: thin; }7.docs-side { padding-right: 4px; }8.docs-main { min-width: 0; padding: 40px 0 24px; outline: none; }9.docs-bar { display: none; }1011.search-trigger { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px 0 12px; border-radius: var(--radius-md);12 border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-3); font-size: var(--text-sm); text-align: left;13 box-shadow: var(--shadow-1); transition: border-color var(--dur-fast), color var(--dur-fast); }14.search-trigger:hover { color: var(--text); border-color: var(--accent-ring); }15.search-trigger svg { width: 16px; height: 16px; flex: none; }16.search-trigger span { flex: 1; }17kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--border-strong);18 background: var(--surface-2); color: var(--text-2); font-family: var(--font-mono); font-size: 0.6875rem; }1920.docs-nav { margin-top: 22px; }21.docs-nav h2 { margin: 22px 0 6px; padding: 0 12px; font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }22.docs-nav h2:first-child { margin-top: 0; }23.docs-nav ul { list-style: none; margin: 0; padding: 0; }24.docs-nav a { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; padding: 0 12px;25 border-radius: var(--radius-sm); color: var(--text-2); font-size: var(--text-sm); font-weight: 500; text-decoration: none;26 transition: color var(--dur-fast), background var(--dur-fast); }27.docs-nav a:hover { color: var(--text); background: var(--surface-2); }28.docs-nav a[aria-current="page"] { color: var(--text); background: var(--accent-soft); font-weight: 600; }29.docs-nav a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: var(--accent); }30.docs-nav a svg { width: 12px; height: 12px; color: var(--text-3); flex: none; }31@media (pointer: coarse) { .docs-nav a { min-height: 44px; } }3233.docs-toc h2 { font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); font-weight: 600; margin-bottom: 10px; }34.docs-toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }35.docs-toc a { display: block; margin-left: -1px; padding: 5px 0 5px 14px; border-left: 1px solid transparent; color: var(--text-3); font-size: var(--text-sm);36 line-height: 1.35; text-decoration: none; transition: color var(--dur-fast), border-color var(--dur-fast); }37.docs-toc a.sub { padding-left: 26px; font-size: var(--text-xs); }38.docs-toc a:hover { color: var(--text); }39.docs-toc a.active { color: var(--accent); border-left-color: var(--accent); }4041/* ---------- Prose ---------- */42.prose { max-width: 800px; animation: rise var(--dur-med) var(--ease-out); }43@keyframes rise { from { opacity: 0; transform: translateY(6px); } }44.prose > * + * { margin-top: 18px; }45.prose .kicker { display: block; }46.prose h1 { margin-top: 10px; font-size: clamp(2rem, 4.4vw, 2.75rem); letter-spacing: -0.038em; line-height: 1.05; outline: none; }47.prose .lede { margin-top: 16px; font-size: var(--text-md); color: var(--text-2); max-width: 66ch; }48.prose h2 { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); font-size: var(--text-xl); letter-spacing: -0.028em; }49.prose h3 { margin-top: 36px; font-size: var(--text-md); }50.prose h2 .anchor, .prose h3 .anchor { margin-left: 8px; color: var(--text-3); text-decoration: none; opacity: 0; transition: opacity var(--dur-fast); font-weight: 400; }51.prose h2:hover .anchor, .prose h3:hover .anchor, .prose .anchor:focus-visible { opacity: 1; }52.prose p, .prose li { color: var(--text-2); }53.prose strong { color: var(--text); font-weight: 620; }54.prose a:not(.btn):not(.anchor):not(.card-link) { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);55 text-underline-offset: 3px; }56.prose a:not(.btn):not(.anchor):not(.card-link):hover { text-decoration-color: currentColor; }57.prose ul, .prose ol { padding-left: 22px; }58.prose li + li { margin-top: 6px; }59.prose li::marker { color: var(--text-3); }60.prose .code, .prose .table-wrap { margin-top: 20px; }61.prose .code pre { max-height: 620px; }62.prose .callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid color-mix(in srgb, var(--info) 28%, transparent);63 background: var(--info-soft); }64.prose .callout.warn { border-color: color-mix(in srgb, var(--warn) 32%, transparent); background: var(--warn-soft); }65.prose .callout svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--info); }66.prose .callout.warn svg { color: var(--warn); }67.prose .callout p { color: var(--text); font-size: var(--text-sm); }68.prose .callout p + p { margin-top: 6px; }69.prose .steps { list-style: none; padding: 0; counter-reset: step; }70.prose .steps > li { position: relative; padding-left: 44px; counter-increment: step; }71.prose .steps > li + li { margin-top: 16px; }72.prose .steps > li::before { content: counter(step); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 28px; height: 28px;73 border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: var(--text-sm); font-weight: 650; font-variant-numeric: tabular-nums;74 border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent); }75.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 20px; }76.card-link { display: block; padding: 16px 18px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface); text-decoration: none;77 box-shadow: var(--shadow-1); transition: border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out); }78.card-link:hover { border-color: var(--accent-ring); transform: translateY(-2px); }79.card-link strong { display: block; color: var(--text); font-size: var(--text-base); }80.card-link span { display: block; margin-top: 4px; color: var(--text-3); font-size: var(--text-sm); line-height: 1.45; }81.endpoint { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-md); border: 1px solid var(--border);82 background: var(--surface); font-family: var(--font-mono); font-size: var(--text-sm); overflow-wrap: anywhere; }83.method { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-family: var(--font-mono); font-size: 0.6875rem;84 font-weight: 700; letter-spacing: 0.04em; background: var(--info-soft); color: var(--info); }85.method.post { background: var(--ok-soft); color: var(--ok); }86.param-name { font-family: var(--font-mono); font-weight: 600; color: var(--text); white-space: nowrap; }87.param-req { display: block; margin-top: 3px; font-size: 0.6875rem; color: var(--warn); font-family: var(--font-sans); font-weight: 600; letter-spacing: 0.02em; }88.param-type { font-family: var(--font-mono); font-size: 0.78rem; color: var(--info); }89.param-type a { color: inherit !important; }90td.muted, .muted { color: var(--text-3); }91.dyn-state { padding: 18px; border-radius: var(--radius-md); border: 1px dashed var(--border-strong); color: var(--text-2); font-size: var(--text-sm); background: var(--surface); }92.dyn-state strong { display: block; margin-bottom: 4px; }93.source-note { margin-top: 8px !important; font-size: var(--text-xs); color: var(--text-3) !important; }9495/* Benchmarks */96.bench-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin-top: 20px; border-radius: var(--radius-md); overflow: hidden;97 background: var(--border); border: 1px solid var(--border); }98.bench-tile { padding: 16px; background: var(--surface); }99.bench-tile dt { font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }100.bench-tile dd { margin: 6px 0 0; font-size: var(--text-xl); font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--text); }101.bench-tile dd small { font-size: var(--text-sm); font-weight: 500; color: var(--text-3); letter-spacing: 0; margin-left: 3px; }102.chart { --s1: #27a88f; --s2: #8f7ff5; position: relative; margin-top: 20px; padding: 18px 18px 12px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface); }103:root[data-theme="light"] .chart { --s1: #0a8f6c; --s2: #7a4fd6; }104.chart h4 { font-size: var(--text-sm); font-weight: 620; color: var(--text); }105.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: var(--text-xs); color: var(--text-2); }106.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }107.chart-legend i { width: 14px; height: 3px; border-radius: 2px; }108.chart svg { display: block; width: 100%; height: auto; margin-top: 8px; overflow: visible; }109.chart .grid { stroke: var(--border); stroke-width: 1; }110.chart .axis-text { fill: var(--text-3); font-size: 11px; font-variant-numeric: tabular-nums; font-family: var(--font-sans); }111.chart .axis-title { fill: var(--text-3); font-size: 11px; font-family: var(--font-sans); }112.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }113.chart .pt { stroke: var(--surface); stroke-width: 2; }114.chart .series-label { fill: var(--text-2); font-size: 11px; font-family: var(--font-sans); }115.chart .cross { stroke: var(--border-strong); stroke-width: 1; }116.chart-tip { position: absolute; z-index: 2; pointer-events: none; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--bg-raised);117 box-shadow: var(--shadow-2); font-size: var(--text-xs); color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }118.chart-tip strong { display: block; color: var(--text); margin-bottom: 2px; }119.chart-tip span { display: flex; align-items: center; gap: 6px; }120.chart-tip i { width: 8px; height: 8px; border-radius: 50%; }121122/* Changelog */123.release { position: relative; margin-top: 28px; padding: 22px 24px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-1); }124.release-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }125.release-head h2 { margin: 0; padding: 0; border: 0; font-size: var(--text-lg); }126.release-head time { color: var(--text-3); font-size: var(--text-sm); font-variant-numeric: tabular-nums; }127.release ul { margin-top: 14px; }128129/* Pager */130.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 800px; margin-top: 64px; }131.pager a { display: flex; flex-direction: column; gap: 2px; min-height: 64px; padding: 14px 18px; border-radius: var(--radius-md); border: 1px solid var(--border);132 background: var(--surface); text-decoration: none; transition: border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out); }133.pager a:hover { border-color: var(--accent-ring); transform: translateY(-2px); }134.pager a small { color: var(--text-3); font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; }135.pager a span { font-weight: 620; }136.pager a.next { text-align: right; grid-column: 2; }137138/* ---------- Dialogs: drawer and search ---------- */139dialog { color: var(--text); }140dialog::backdrop { background: rgba(4, 6, 9, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }141.drawer { position: fixed; inset: 0 auto 0 0; width: min(330px, 88vw); max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0 12px calc(24px + var(--safe-b)) max(12px, var(--safe-l));142 border: 0; border-right: 1px solid var(--border-strong); background: var(--bg-raised); overflow-y: auto; box-shadow: var(--shadow-3); }143.drawer[open] { animation: slide-in var(--dur-med) var(--ease-out); }144@keyframes slide-in { from { transform: translateX(-100%); } }145.drawer-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding-left: 12px;146 background: var(--bg-raised); border-bottom: 1px solid var(--border); margin-bottom: 14px; }147.drawer .docs-nav { margin-top: 0; }148149.search { width: min(640px, calc(100vw - 24px)); max-height: min(560px, calc(100dvh - 48px)); margin: 10vh auto auto; padding: 0; border-radius: var(--radius-lg);150 border: 1px solid var(--border-strong); background: var(--bg-raised); box-shadow: var(--shadow-3); overflow: hidden; }151.search[open] { display: flex; flex-direction: column; animation: rise var(--dur-fast) var(--ease-out); }152.search-box { display: flex; align-items: center; gap: 10px; padding: 0 10px 0 16px; border-bottom: 1px solid var(--border); }153.search-box > svg { width: 18px; height: 18px; color: var(--text-3); flex: none; }154.search-box input { flex: 1; min-width: 0; height: 54px; border: 0; background: transparent; outline: none; font-size: 1rem; }155.search-box input::-webkit-search-cancel-button { display: none; }156.search-esc { min-width: 44px; min-height: 32px; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-2);157 font-family: var(--font-mono); font-size: 0.6875rem; }158@media (pointer: coarse) { .search-esc { min-height: 44px; } }159.search-results { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; }160.search-results:empty { display: none; }161.search-results li { padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer; scroll-margin: 8px; }162.search-results li[aria-selected="true"] { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-ring); }163.search-results .r-title { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-weight: 620; font-size: var(--text-sm); }164.search-results .r-title small { color: var(--text-3); font-weight: 500; font-size: var(--text-xs); }165.search-results .r-text { margin-top: 2px; color: var(--text-2); font-size: var(--text-xs); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }166.search-results mark { background: color-mix(in srgb, var(--accent) 26%, transparent); color: var(--text); border-radius: 3px; padding: 0 1px; }167.search-hint { padding: 12px 16px; color: var(--text-3); font-size: var(--text-xs); border-top: 1px solid var(--border); }168169/* ---------- Responsive ---------- */170@media (max-width: 1180px) {171 .docs { grid-template-columns: 232px minmax(0, 1fr); }172 .docs-toc { display: none; }173}174@media (max-width: 860px) {175 .docs { display: block; }176 .docs-side { display: none; }177 .docs-main { padding-top: 24px; }178 .docs-bar { position: sticky; top: var(--header-h); z-index: 60; display: flex; align-items: center; gap: 4px; height: 48px;179 padding: 0 max(8px, var(--safe-r)) 0 max(8px, var(--safe-l)); background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);180 border-bottom: 1px solid var(--border); }181 html { scroll-padding-top: calc(var(--header-h) + 64px); }182 .docs-bar-btn { display: inline-flex; align-items: center; gap: 10px; flex: 1; min-width: 0; min-height: 44px; padding: 0 8px; border: 0; background: transparent;183 font-size: var(--text-sm); font-weight: 600; text-align: left; }184 .docs-bar-btn svg { width: 18px; height: 18px; flex: none; color: var(--text-2); }185 .docs-bar-btn span[data-current-title] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }186 .prose h2 { margin-top: 44px; }187 .search { margin-top: 12px; }188 .pager { grid-template-columns: 1fr; }189 .pager a.next { grid-column: 1; }190 .prose h2 .anchor, .prose h3 .anchor { display: none; }191}192@media (prefers-reduced-motion: reduce) { .prose, .drawer[open], .search[open] { animation: none; } }193194/* Generated tables become stacked cards on narrow screens (no sideways scrolling for parameter lists). */195@media (max-width: 700px) {196 table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }197 table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }198 table.stack tr { padding: 12px 14px; border-bottom: 1px solid var(--border); }199 table.stack tr:last-child { border-bottom: 0; }200 table.data.stack td { padding: 3px 0; border: 0; text-align: left; min-width: 0 !important; white-space: normal; }201 table.stack td.num { text-align: left; }202 table.stack td:not(:first-child)::before { content: attr(data-label); display: inline-block; min-width: 96px; margin-right: 8px; font-size: 0.6875rem;203 letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); font-family: var(--font-sans); font-weight: 600; }204 table.stack td:last-child:not(.num)::before { display: block; margin-top: 4px; }205 table.stack td.muted { display: none; }206 table.stack .param-req { display: inline; margin-left: 8px; }207}208.site-header .wrap, .site-footer .wrap { max-width: calc(1360px + 2 * var(--gutter)); }209