/* Ysra docs — built from theme/assets/css/ */
:root {
color-scheme: light dark;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"]  { color-scheme: dark; }
:root {
--bg: light-dark(#f4f2ed, #1a1a18);           
--bg-raised: light-dark(#ffffff, #242422);    
--bg-sunken: light-dark(#fbfaf7, #1e1e1c);    
--bg-hover: light-dark(#efece5, #2c2c29);     
--bg-overlay: light-dark(rgb(244 242 237 / 0.86), rgb(26 26 24 / 0.84)); 
--line-faint: light-dark(#f0ede7, #262624);
--line: light-dark(#e3dfd7, #33332f);
--line-strong: light-dark(#c4c1b8, #4a4a44);
--text: light-dark(#191a18, #f2f1ec);
--text-body: light-dark(#3d3e3a, #cfccc4);
--text-muted: light-dark(#6c6d66, #918e86);
--text-faint: light-dark(#8c8d85, #7a776f);
--ok: light-dark(#2e7d53, #7ce3c4);
--warn: light-dark(#8a5a12, #f5c761);
--danger: light-dark(#c0442b, #ff6b6b);
--info: light-dark(#1f4fd8, #82aaff);
--violet: light-dark(#7130c9, #c48cff);
--accent: #ff6a1a;
--accent-text: light-dark(#b24309, color-mix(in srgb, var(--accent) 72%, #fff));
--accent-ink: #1a0e06;
--accent-wash: color-mix(in srgb, var(--accent) 9%, var(--bg));
--accent-line: color-mix(in srgb, var(--accent) 38%, var(--line));
--focus: color-mix(in srgb, var(--accent) 70%, transparent);
--selection: color-mix(in srgb, var(--accent) 24%, transparent);
--code-bg: light-dark(#ffffff, #131311);  
--code-text: light-dark(#24262b, #e6e3dc);
--code-comment: light-dark(#6b7280, #818b95);
--code-keyword: var(--violet);
--code-string: light-dark(#0a6e4a, #9ee493);
--code-number: light-dark(#9a4a00, #ffab70);
--code-type: light-dark(#0b6b7a, #63d2e8);
--code-func: light-dark(#1f4fd8, #82aaff);
--code-property: light-dark(#3f4650, #b9c4cf);
--code-tag: light-dark(#a02020, #ff8a8a);
--code-attr: light-dark(#7a4a00, #ffc777);
--code-punct: light-dark(#565a61, #8b949e);
--code-meta: light-dark(#767a82, #8a929a);
--code-highlight: color-mix(in srgb, var(--accent) 10%, transparent);
--code-inserted: color-mix(in srgb, var(--ok) 12%, transparent);
--code-deleted: color-mix(in srgb, var(--danger) 12%, transparent);
--font-display: "Space Grotesk", "Hanken Grotesk", system-ui, sans-serif;
--font-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
--font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
--fs-2xs: 0.6875rem; 
--fs-xs: 0.75rem;    
--fs-sm: 0.8125rem;  
--fs-md: 0.875rem;   
--fs-base: 1rem;     
--fs-lg: 1.0625rem;  
--fs-h4: 1rem;
--fs-h3: 1.1875rem;
--fs-h2: 1.4375rem;
--fs-h1: clamp(1.75rem, 1.4rem + 1.2vw, 2.125rem);
--r-sm: 6px;
--r-md: 8px;
--r-lg: 11px;
--r-xl: 13px;
--r-pill: 999px;
--shadow-sm: light-dark(0 1px 2px rgb(20 22 26 / 0.06), 0 1px 2px rgb(0 0 0 / 0.4));
--shadow-lg: light-dark(0 24px 56px -24px rgb(20 22 26 / 0.32), 0 30px 70px -30px #000);
--scrim: light-dark(rgb(42 44 48 / 0.34), rgb(4 5 6 / 0.62));
--header-h: 3.5rem;
--sidebar-w: 16.5rem;
--toc-w: 14rem;
--prose-max: 46rem;
--shell-max: 90rem;
--gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
--ease: cubic-bezier(0.2, 0, 0, 1);
}
@font-face {
font-family: "Hanken Grotesk";
font-style: normal;
font-display: swap;
font-weight: 100 900;
src: url("fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2-variations");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: "Hanken Grotesk";
font-style: normal;
font-display: swap;
font-weight: 100 900;
src: url("fonts/hanken-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations");
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
font-family: "Hanken Grotesk";
font-style: italic;
font-display: swap;
font-weight: 100 900;
src: url("fonts/hanken-grotesk-latin-wght-italic.woff2") format("woff2-variations");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: "Space Grotesk";
font-style: normal;
font-display: swap;
font-weight: 300 700;
src: url("fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: "Space Grotesk";
font-style: normal;
font-display: swap;
font-weight: 300 700;
src: url("fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations");
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
font-family: "JetBrains Mono";
font-style: normal;
font-display: swap;
font-weight: 100 800;
src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: "JetBrains Mono";
font-style: normal;
font-display: swap;
font-weight: 100 800;
src: url("fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2-variations");
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
-webkit-text-size-adjust: 100%;
text-size-adjust: 100%;
scroll-padding-top: calc(var(--header-h) + 1.25rem);
hanging-punctuation: first last;
}
@media (prefers-reduced-motion: no-preference) {
html { scroll-behavior: smooth; }
}
body {
min-height: 100svh;
display: flex;
flex-direction: column;
background: var(--bg);
color: var(--text-body);
font-family: var(--font-sans);
font-size: var(--fs-base);
line-height: 1.6;
font-optical-sizing: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
dialog { color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--selection); }
:focus-visible {
outline: 2px solid var(--focus);
outline-offset: 2px;
border-radius: var(--r-sm);
}
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
@view-transition { navigation: none; }
}
::view-transition-old(page), ::view-transition-new(page) { animation-duration: 140ms; }
.sr-only {
position: absolute !important;
width: 1px; height: 1px;
padding: 0; margin: -1px;
overflow: hidden; clip: rect(0, 0, 0, 0);
white-space: nowrap; border: 0;
}
.skip-link {
position: fixed;
top: 0.5rem; left: 0.5rem;
z-index: 100;
padding: 0.5rem 0.875rem;
border-radius: var(--r-md);
background: var(--accent);
color: var(--accent-ink);
font-size: var(--fs-md);
font-weight: 600;
text-decoration: none;
transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.icon { flex: none; }
.button {
display: inline-flex;
align-items: center;
gap: 0.4rem;
height: 2.125rem;
padding: 0 0.75rem;
border: 1px solid var(--line);
border-radius: var(--r-md);
background: var(--bg-raised);
color: var(--text);
font-size: var(--fs-md);
font-weight: 500;
line-height: 1;
white-space: nowrap;
text-decoration: none;
transition: background-color 120ms var(--ease), border-color 120ms var(--ease), color 120ms var(--ease);
}
.button:hover { background: var(--bg-hover); border-color: var(--line-strong); }
.button--quiet { background: transparent; border-color: transparent; color: var(--text-muted); }
.button--quiet:hover { background: var(--bg-hover); border-color: transparent; color: var(--text); }
.button--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.button--primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); border-color: transparent; }
.button--sm { height: 1.875rem; padding: 0 0.625rem; font-size: var(--fs-sm); }
.icon-button {
display: inline-grid;
place-items: center;
width: 2.125rem;
height: 2.125rem;
border-radius: var(--r-md);
color: var(--text-muted);
transition: background-color 120ms var(--ease), color 120ms var(--ease);
}
.icon-button:hover { background: var(--bg-hover); color: var(--text); }
.icon-button--sm { width: 1.875rem; height: 1.875rem; }
.icon-button--accent { background: var(--accent); color: var(--accent-ink); }
.icon-button--accent:hover { background: color-mix(in srgb, var(--accent) 88%, #000); color: var(--accent-ink); }
kbd {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 1.35em;
height: 1.35em;
padding: 0 0.3em;
border: 1px solid var(--line);
border-bottom-width: 2px;
border-radius: 4px;
background: var(--bg-raised);
color: var(--text-muted);
font-family: var(--font-mono);
font-size: 0.75em;
font-weight: 500;
line-height: 1;
vertical-align: 0.1em;
}
.site-header {
position: sticky;
top: 0;
z-index: 40;
height: var(--header-h);
border-bottom: 1px solid var(--line);
background: var(--bg-overlay);
backdrop-filter: saturate(1.4) blur(12px);
-webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.site-header__inner {
display: flex;
align-items: center;
gap: 0.75rem;
height: 100%;
max-width: var(--shell-max);
margin-inline: auto;
padding-inline: var(--gutter);
}
.site-header__menu { margin-left: -0.5rem; }
.site-header__search { flex: 1; display: flex; justify-content: flex-end; }
.site-header__actions { display: flex; align-items: center; gap: 0.25rem; }
.brand {
display: inline-flex;
align-items: center;
gap: 0.5rem;
color: var(--text);
text-decoration: none;
flex: none;
}
.brand { gap: 0.4rem; }
.brand__name {
font-family: var(--font-display);
font-size: 1.1875rem;
font-weight: 600;
letter-spacing: -0.04em;
}
.brand__tag {
margin-left: 0.2rem;
padding-left: 0.6rem;
border-left: 1px solid var(--line-strong);
color: var(--text-muted);
font-family: var(--font-display);
font-size: 0.9375rem;
font-weight: 500;
letter-spacing: -0.01em;
}
.search-trigger {
display: inline-flex;
align-items: center;
gap: 0.5rem;
width: 2.125rem;
height: 2.125rem;
justify-content: center;
border-radius: var(--r-md);
color: var(--text-muted);
font-size: var(--fs-md);
transition: background-color 120ms var(--ease), border-color 120ms var(--ease), color 120ms var(--ease);
}
.search-trigger:hover { background: var(--bg-hover); color: var(--text); }
.search-trigger__label, .search-trigger__kbd { display: none; }
.search-trigger--block {
width: auto;
justify-content: flex-start;
margin: 0 1rem 0.5rem;
padding: 0 0.75rem;
border: 1px solid var(--line);
background: var(--bg);
}
.search-trigger--block .search-trigger__label { display: inline; }
@media (min-width: 48rem) {
.search-trigger {
width: min(100%, 17rem);
justify-content: flex-start;
padding: 0 0.5rem 0 0.75rem;
border: 1px solid var(--line);
background: var(--bg-raised);
box-shadow: var(--shadow-sm);
}
.search-trigger:hover { background: var(--bg-raised); border-color: var(--line-strong); }
.search-trigger__label { display: inline; flex: 1; text-align: left; }
.search-trigger__kbd { display: inline-flex; font-size: var(--fs-2xs); height: 1.5rem; padding: 0 0.4rem; }
.site-header__search { justify-content: center; padding-left: 1rem; }
}
.header-links { display: none; }
@media (min-width: 64rem) {
.header-links { display: flex; align-items: center; margin-right: 0.25rem; }
.header-links__item {
display: inline-flex;
align-items: center;
gap: 0.2rem;
padding: 0.375rem 0.625rem;
border-radius: var(--r-md);
color: var(--text-muted);
font-size: var(--fs-md);
font-weight: 500;
text-decoration: none;
}
.header-links__item:hover { color: var(--text); background: var(--bg-hover); }
}
.hide-sm { display: none; }
@media (min-width: 48rem) { .hide-sm { display: inline; } }
.theme-icon { display: grid; }
.theme-icon--dark { display: none; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .theme-icon--light { display: none; }
:root:not([data-theme="light"]) .theme-icon--dark { display: grid; }
}
:root[data-theme="dark"] .theme-icon--light { display: none; }
:root[data-theme="dark"] .theme-icon--dark { display: grid; }
.version-select { position: relative; }
.version-select select {
height: 2rem;
padding: 0 1.6rem 0 0.6rem;
border: 1px solid var(--line);
border-radius: var(--r-md);
background: var(--bg-raised);
color: var(--text);
font-family: var(--font-mono);
font-size: var(--fs-xs);
font-weight: 500;
appearance: none;
cursor: pointer;
}
.version-select select:hover { border-color: var(--line-strong); }
.version-select::after {
content: "";
position: absolute;
right: 0.5rem;
top: 50%;
width: 0.75rem;
height: 0.75rem;
translate: 0 -50%;
rotate: 90deg;
background: var(--text-muted);
mask: var(--i-chevron) center / contain no-repeat;
pointer-events: none;
}
.shell {
flex: 1;
display: grid;
grid-template-columns: minmax(0, 1fr);
width: 100%;
max-width: var(--shell-max);
margin-inline: auto;
padding-inline: var(--gutter);
}
.main { min-width: 0; padding-block: 2rem 4rem; }
.main:focus { outline: none; }
.sidebar, .toc-rail { display: none; }
@media (min-width: 64rem) {
.shell {
grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
column-gap: clamp(2rem, 4vw, 3.5rem);
}
.site-header__menu { display: none; }
.sidebar { display: block; }
.main { padding-top: 2.5rem; }
}
@media (min-width: 80rem) {
.shell { grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--toc-w); }
.toc-rail { display: block; }
}
.sidebar { position: relative; }
.sidebar__scroll {
position: sticky;
top: var(--header-h);
height: calc(100svh - var(--header-h));
overflow-y: auto;
overscroll-behavior: contain;
padding: 1.75rem 0.75rem 3rem 0;
margin-left: -0.625rem;
scrollbar-width: thin;
scrollbar-color: var(--line) transparent;
mask-image: linear-gradient(to bottom, transparent 0, #000 1.25rem, #000 calc(100% - 2.5rem), transparent);
}
.nav-group + .nav-group { margin-top: 1.5rem; }
.nav-group__label {
margin: 0 0 0.5rem 0.625rem;
color: var(--text-muted);
font-family: var(--font-mono);
font-size: 0.6875rem;
font-weight: 500;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.nav-list { list-style: none; padding: 0; display: grid; gap: 1px; }
.nav-list .nav-list {
margin: 1px 0 0.375rem 0.875rem;
padding-left: 0.5rem;
border-left: 1px solid var(--line);
}
.nav-link {
position: relative;
display: flex;
align-items: center;
gap: 0.375rem;
min-height: 1.875rem;
padding: 0.3125rem 0.625rem;
border-radius: var(--r-sm);
color: var(--text-muted);
font-size: var(--fs-sm);
font-weight: 450;
line-height: 1.35;
text-decoration: none;
transition: background-color 100ms var(--ease), color 100ms var(--ease);
}
.nav-link:hover { color: var(--text); background: var(--bg-hover); }
.nav-link[aria-current="page"] {
color: var(--text);
background: var(--bg-hover);
font-weight: 600;
}
.nav-link[aria-current="page"]::before {
content: "";
position: absolute;
left: 0;
top: 0.4rem;
bottom: 0.4rem;
width: 2px;
border-radius: 2px;
background: var(--accent);
}
.nav-list .nav-list .nav-link[aria-current="page"]::before { left: calc(-0.5rem - 1px); top: 0; bottom: 0; border-radius: 0; }
.nav-branch > details > summary { list-style: none; cursor: pointer; }
.nav-branch > details > summary::-webkit-details-marker { display: none; }
.nav-chevron { margin-left: auto; color: var(--text-faint); transition: transform 150ms var(--ease); }
.nav-branch > details[open] > summary .nav-chevron { transform: rotate(90deg); }
.nav-badge {
margin-left: auto;
padding: 0.0625rem 0.375rem;
border-radius: var(--r-pill);
background: var(--accent-wash);
color: var(--accent-text);
font-family: var(--font-mono);
font-size: 0.625rem;
font-weight: 600;
letter-spacing: 0.02em;
text-transform: uppercase;
}
.nav-badge--deprecated { background: var(--bg-sunken); color: var(--text-muted); }
.toc-rail { position: relative; }
.toc-rail > .toc {
position: sticky;
top: var(--header-h);
max-height: calc(100svh - var(--header-h));
overflow-y: auto;
padding: 2.5rem 0 3rem;
scrollbar-width: none;
}
.toc__title {
margin-bottom: 0.75rem;
color: var(--text-muted);
font-family: var(--font-mono);
font-size: 0.6875rem;
font-weight: 500;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.toc__list { list-style: none; padding: 0; border-left: 1px solid var(--line); }
.toc__link {
position: relative;
display: block;
padding: 0.25rem 0 0.25rem 0.875rem;
color: var(--text-muted);
font-size: var(--fs-sm);
line-height: 1.4;
text-decoration: none;
transition: color 100ms var(--ease);
}
.toc__link[data-level="3"] { padding-left: 1.625rem; }
.toc__link:hover { color: var(--text); }
.toc__link[aria-current="true"] { color: var(--text); font-weight: 550; }
.toc__link[aria-current="true"]::before {
content: "";
position: absolute;
left: -1px;
top: 0.25rem;
bottom: 0.25rem;
width: 2px;
border-radius: 2px;
background: var(--accent);
}
.toc__top {
display: inline-block;
margin-top: 1rem;
color: var(--text-muted);
font-size: var(--fs-xs);
text-decoration: none;
opacity: 0;
transition: opacity 150ms var(--ease);
}
.toc__top:hover { color: var(--text); }
.toc[data-scrolled] .toc__top { opacity: 1; }
.toc-inline {
margin: 0 0 2rem;
border: 1px solid var(--line);
border-radius: var(--r-lg);
background: var(--bg-raised);
}
.toc-inline > summary {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.625rem 0.875rem;
color: var(--text);
font-size: var(--fs-md);
font-weight: 550;
list-style: none;
cursor: pointer;
}
.toc-inline > summary::-webkit-details-marker { display: none; }
.toc-inline__chevron { margin-left: auto; color: var(--text-faint); transition: transform 150ms var(--ease); }
.toc-inline[open] .toc-inline__chevron { transform: rotate(180deg); }
.toc-inline .toc { padding: 0 0.875rem 0.875rem; }
.toc-inline .toc__title, .toc-inline .toc__top { display: none; }
@media (min-width: 80rem) { .toc-inline { display: none; } }
.drawer {
position: fixed;
inset: 0 auto 0 0;
width: min(20rem, 88vw);
max-width: none;
height: 100dvh;
max-height: none;
margin: 0;
padding: 0 0 2rem;
border: 0;
border-right: 1px solid var(--line);
background: var(--bg);
overflow-y: auto;
overscroll-behavior: contain;
transition: transform 220ms var(--ease), overlay 220ms allow-discrete, display 220ms allow-discrete;
transform: translateX(-100%);
}
.drawer[open] { transform: none; }
@starting-style { .drawer[open] { transform: translateX(-100%); } }
.drawer::backdrop { background: var(--scrim); }
.drawer__head {
position: sticky;
top: 0;
z-index: 1;
display: flex;
align-items: center;
justify-content: space-between;
height: var(--header-h);
padding: 0 0.75rem 0 1rem;
background: var(--bg);
}
.drawer__nav { padding: 0.5rem 0.75rem 0 0.625rem; }
@media (prefers-reduced-motion: reduce) { .drawer { transition: none; } }
.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.75rem 1.5rem;
max-width: var(--shell-max);
margin-inline: auto;
padding: 1.5rem var(--gutter);
color: var(--text-muted);
font-size: var(--fs-xs);
}
.site-footer__brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text); }
.site-footer__links { display: flex; gap: 1rem; }
.site-footer__credit { margin-left: auto; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.doc { max-width: var(--prose-max); margin-inline: auto; }
.doc-header { margin-bottom: 2rem; }
.breadcrumbs ol {
display: flex;
flex-wrap: wrap;
gap: 0.25rem;
margin-bottom: 0.625rem;
padding: 0;
list-style: none;
color: var(--accent-text);
font-size: var(--fs-sm);
font-weight: 550;
}
.breadcrumbs li + li::before { content: "/"; margin-right: 0.25rem; color: var(--text-faint); font-weight: 400; }
.doc-header__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.doc-title {
color: var(--text);
font-family: var(--font-display);
font-size: var(--fs-h1);
font-weight: 600;
line-height: 1.15;
letter-spacing: -0.03em;
text-wrap: balance;
}
.doc-lede {
margin-top: 0.75rem;
color: var(--text-muted);
font-size: var(--fs-lg);
line-height: 1.55;
text-wrap: pretty;
}
.prose { color: var(--text-body); line-height: 1.7; overflow-wrap: break-word; }
.prose > * + *,
.prose :where(li, dd, .admonition, details, .tabbed-block, .steps, blockquote) > * + * { margin-top: 1.1em; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
position: relative;
color: var(--text);
font-family: var(--font-display);
font-weight: 600;
letter-spacing: -0.02em;
line-height: 1.3;
text-wrap: balance;
}
.prose h2 {
margin-top: 2.25em;
padding-top: 1.25em;
border-top: 1px solid var(--line-faint);
font-size: var(--fs-h2);
}
.prose > h2:first-child { padding-top: 0; border-top: 0; }
.prose h3 { margin-top: 1.9em; font-size: var(--fs-h3); letter-spacing: -0.015em; }
.prose h4 { margin-top: 1.9em; font-size: var(--fs-h4); letter-spacing: -0.01em; }
.prose h5, .prose h6 { margin-top: 1.6em; font-size: var(--fs-md); color: var(--text-body); }
.prose :is(h2, h3, h4) + * { margin-top: 0.65em; }
.prose h2 code, .prose h3 code, .prose h4 code { font-size: 0.86em; }
.prose .headerlink {
display: inline-grid;
place-items: center;
width: 1.2em;
height: 1.2em;
margin-left: 0.3em;
border-radius: var(--r-sm);
color: var(--text-faint);
font-size: 0.8em;
text-decoration: none;
vertical-align: 0.05em;
opacity: 0;
transition: opacity 120ms var(--ease), color 120ms var(--ease);
}
.prose :is(h2, h3, h4, h5, h6):hover .headerlink, .prose .headerlink:focus-visible { opacity: 1; }
.prose .headerlink:hover { color: var(--accent-text); }
.prose :is(h2, h3, h4, h5, h6):target { scroll-margin-top: calc(var(--header-h) + 1.25rem); }
@media (hover: none) { .prose .headerlink { opacity: 0.5; } }
.prose strong { color: var(--text); font-weight: 650; }
.prose mark { padding: 0 0.15em; border-radius: 3px; background: color-mix(in srgb, var(--warn) 22%, transparent); color: inherit; }
.prose ins { text-decoration-color: var(--ok); }
.prose del { text-decoration-color: var(--danger); }
.prose abbr[title] { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.prose small { font-size: var(--fs-sm); }
.prose sup, .prose sub { line-height: 0; }
.prose a {
color: var(--text);
font-weight: 500;
text-decoration: underline;
text-decoration-color: var(--accent-line);
text-decoration-thickness: 1px;
text-underline-offset: 0.2em;
transition: color 100ms var(--ease), text-decoration-color 100ms var(--ease);
}
.prose a:hover { color: var(--accent-text); text-decoration-color: currentColor; }
.prose a[data-external]::after {
content: "";
display: inline-block;
width: 0.62em;
height: 0.62em;
margin-left: 0.18em;
background: currentColor;
opacity: 0.55;
vertical-align: 0.12em;
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { padding-left: 0.2em; }
.prose li + li { margin-top: 0.4em; }
.prose ul > li::marker { color: var(--text-faint); }
.prose ol > li::marker { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.85em; }
.prose li > ul, .prose li > ol { margin-top: 0.4em; }
.prose .task-list-item { list-style: none; margin-left: -1.4em; }
.prose .task-list-control { display: inline-flex; margin-right: 0.5em; vertical-align: -0.15em; }
.prose .task-list-indicator {
width: 1em;
height: 1em;
border: 1.5px solid var(--line-strong);
border-radius: 4px;
}
.prose .task-list-control input { position: absolute; opacity: 0; pointer-events: none; }
.prose .task-list-control input:checked + .task-list-indicator {
border-color: var(--ok);
background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 75% no-repeat;
}
.prose dt { color: var(--text); font-weight: 600; }
.prose dd { margin: 0.25em 0 0 1.25em; }
.prose dd + dt { margin-top: 1em; }
.prose blockquote {
padding-left: 1.1em;
border-left: 2px solid var(--line-strong);
color: var(--text-muted);
}
.prose hr { height: 1px; margin-block: 2.5em; border: 0; background: var(--line); }
.prose :not(pre) > code {
padding: 0.12em 0.36em;
border: 1px solid var(--line-faint);
border-radius: 5px;
background: var(--bg-raised);
color: var(--text);
font-family: var(--font-mono);
font-size: 0.855em;
font-weight: 450;
font-variant-ligatures: none;
overflow-wrap: anywhere;
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
}
.prose a > code { color: inherit; }
.prose .table-wrapper {
overflow-x: auto;
border: 1px solid var(--line);
border-radius: var(--r-lg);
background: var(--bg-raised);
scrollbar-width: thin;
}
.prose table {
width: 100%;
border-collapse: collapse;
font-size: var(--fs-md);
line-height: 1.5;
font-variant-numeric: tabular-nums;
}
.prose th, .prose td { padding: 0.55rem 0.9rem; text-align: left; vertical-align: top; }
.prose th {
border-bottom: 1px solid var(--line);
background: var(--bg-sunken);
color: var(--text);
font-size: var(--fs-sm);
font-weight: 600;
white-space: nowrap;
}
.prose td { border-top: 1px solid var(--line-faint); }
.prose tr:first-child td { border-top: 0; }
.prose tbody tr:hover td { background: color-mix(in srgb, var(--bg-hover) 50%, transparent); }
.prose td:first-child > code:only-child { white-space: nowrap; }
.prose th[align="right"], .prose td[align="right"] { text-align: right; }
.prose th[align="center"], .prose td[align="center"] { text-align: center; }
.prose img { border-radius: var(--r-lg); }
.prose figure { display: grid; gap: 0.75rem; justify-items: center; }
.prose figure img, .prose p > img:only-child { border: 1px solid var(--line); background: var(--bg-raised); }
.prose figcaption { color: var(--text-muted); font-size: var(--fs-sm); text-align: center; text-wrap: balance; }
.prose video { border-radius: var(--r-lg); border: 1px solid var(--line); }
.prose a.shot { display: block; text-decoration: none; cursor: zoom-in; }
.prose a.shot img { border: 1px solid var(--line); background: var(--bg-raised); box-shadow: var(--shadow-sm); }
.prose a.shot:hover img { border-color: var(--line-strong); }
.prose .footnote { margin-top: 3em; color: var(--text-muted); font-size: var(--fs-md); }
.prose .footnote hr { margin-block: 0 1.5em; }
.prose .footnote-ref a, .prose .footnote-backref { text-decoration: none; font-family: var(--font-mono); font-size: 0.8em; }
.doc-footer { margin-top: 4rem; }
.doc-meta {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 0.5rem 1.5rem;
padding-bottom: 1.25rem;
color: var(--text-muted);
font-size: var(--fs-sm);
}
.doc-meta__edit { display: inline-flex; align-items: center; gap: 0.375rem; color: inherit; text-decoration: none; }
.doc-meta__edit:hover { color: var(--text); }
.pager {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
gap: 0.75rem;
padding-top: 1.5rem;
border-top: 1px solid var(--line);
}
.pager__link {
display: grid;
gap: 0.25rem;
padding: 0.875rem 1rem;
border: 1px solid var(--line);
border-radius: var(--r-lg);
background: var(--bg-raised);
text-decoration: none;
transition: border-color 120ms var(--ease), box-shadow 120ms var(--ease);
}
.pager__link:hover { border-color: var(--accent-line); box-shadow: var(--shadow-sm); }
.pager__link--next { text-align: right; grid-column: -2; }
.pager__hint {
display: inline-flex;
align-items: center;
gap: 0.3rem;
color: var(--text-muted);
font-size: var(--fs-xs);
}
.pager__link--next .pager__hint { justify-content: flex-end; }
.pager__title { color: var(--text); font-weight: 600; font-size: var(--fs-md); }
.pager__link:hover .pager__title { color: var(--accent-text); }
.highlight { position: relative; }
.prose .highlight, .prose pre.mermaid { margin-top: 1.25em; }
.prose .highlight + .highlight { margin-top: 0.75em; }
.highlight pre {
overflow-x: auto;
padding: 0.9rem 1.1rem;
border: 1px solid var(--line);
border-radius: var(--r-lg);
background: var(--code-bg);
color: var(--code-text);
font-family: var(--font-mono);
font-size: 0.8125rem;
line-height: 1.7;
tab-size: 2;
font-variant-ligatures: none;
scrollbar-width: thin;
scrollbar-color: var(--line-strong) transparent;
}
.highlight code { font: inherit; }
.highlight pre > code { display: block; min-width: max-content; }
.highlight .filename {
display: flex;
align-items: center;
gap: 0.5rem;
min-height: 2.375rem;
padding: 0 3rem 0 1rem;
border: 1px solid var(--line);
border-bottom: 0;
border-radius: var(--r-lg) var(--r-lg) 0 0;
background: var(--bg-sunken);
color: var(--text);
font-family: var(--font-mono);
font-size: var(--fs-xs);
font-weight: 500;
}
.highlight .filename + pre { border-top-left-radius: 0; border-top-right-radius: 0; }
.code-copy {
position: absolute;
top: 0.4rem;
right: 0.4rem;
z-index: 1;
display: grid;
place-items: center;
width: 1.875rem;
height: 1.875rem;
border: 1px solid var(--line);
border-radius: var(--r-md);
background: var(--bg-raised);
color: var(--text-muted);
opacity: 0;
transition: opacity 120ms var(--ease), color 120ms var(--ease);
}
.highlight:hover .code-copy, .code-copy:focus-visible, .code-copy[data-copied] { opacity: 1; }
.code-copy:hover { color: var(--text); }
.code-copy[data-copied] { color: var(--ok); }
@media (hover: none) { .code-copy { opacity: 1; } }
.highlight .linenos {
display: inline-block;
width: 2.25ch;
margin-right: 1.25ch;
color: var(--text-faint);
text-align: right;
user-select: none;
}
.highlight .linenos::before { content: attr(data-linenos); }
.highlight .hll {
display: block;
margin: 0 -1.1rem;
padding: 0 1.1rem;
background: var(--code-highlight);
box-shadow: inset 2px 0 0 var(--accent);
}
.highlight:is(.language-console, .language-shell-session, .language-pycon) {
color-scheme: dark;
}
.highlight:is(.language-console, .language-shell-session, .language-pycon) pre {
--code-bg: #131311;
border-color: #2b2b28;
}
.highlight:is(.language-console, .language-shell-session) .filename {
background: #1e1e1c;
border-color: #2b2b28;
color: #cfccc4;
}
.highlight:is(.language-console, .language-shell-session) .code-copy {
border-color: #33332f;
background: #1e1e1c;
color: #99968e;
}
.highlight .gp { color: var(--accent); user-select: none; }
.highlight .go { color: var(--code-meta); }
.highlight :is(.c, .ch, .cm, .c1, .cs, .cpf) { color: var(--code-comment); font-style: italic; }
.highlight .cp { color: var(--code-meta); }
.highlight :is(.k, .kd, .kn, .kr, .kp, .ow) { color: var(--code-keyword); }
.highlight .kc { color: var(--code-number); }
.highlight .kt { color: var(--code-type); }
.highlight :is(.s, .s1, .s2, .sa, .sb, .sc, .sd, .sh, .sx, .dl) { color: var(--code-string); }
.highlight :is(.se, .si) { color: var(--code-number); }
.highlight :is(.sr, .ss) { color: var(--code-attr); }
.highlight :is(.m, .mb, .mf, .mh, .mi, .mo, .il) { color: var(--code-number); }
.highlight :is(.nf, .fm) { color: var(--code-func); }
.highlight :is(.nc, .nn, .ne) { color: var(--code-type); }
.highlight :is(.nb, .bp) { color: var(--code-type); }
.highlight .nd { color: var(--code-meta); }
.highlight .na { color: var(--code-attr); }
.highlight .nt { color: var(--code-tag); }
.highlight :is(.no, .nl) { color: var(--code-number); }
.highlight :is(.nv, .vc, .vg, .vi, .vm, .py) { color: var(--code-property); }
.highlight :is(.o, .p) { color: var(--code-punct); }
.highlight .err { color: var(--danger); }
.highlight .gh { color: var(--code-func); font-weight: 600; }
.highlight .gu { color: var(--code-keyword); font-weight: 600; }
.highlight .gi { display: inline-block; min-width: 100%; background: var(--code-inserted); color: var(--code-string); }
.highlight .gd { display: inline-block; min-width: 100%; background: var(--code-deleted); color: var(--code-tag); }
.highlight .ge { font-style: italic; }
.highlight .gs { font-weight: 700; }
.highlight:is(.language-json, .language-jsonc, .language-yaml, .language-toml) .nt { color: var(--code-property); }
.prose code.highlight { color: var(--code-text); }
.prose :is(.admonition, details:not(.toc-inline)) {
--tone: var(--text-muted);
--icon: var(--i-note);
padding: 0.875rem 1rem;
border: 1px solid color-mix(in srgb, var(--tone) 26%, var(--line));
border-radius: var(--r-lg);
background: color-mix(in srgb, var(--tone) 5%, var(--bg-raised));
font-size: 0.9375rem;
line-height: 1.65;
}
.prose :is(.admonition, details) > :is(.admonition-title, summary) {
display: flex;
align-items: center;
gap: 0.5rem;
color: var(--text);
font-size: var(--fs-md);
font-weight: 650;
line-height: 1.4;
}
.prose :is(.admonition, details) > :is(.admonition-title, summary)::before {
content: "";
flex: none;
width: 1rem;
height: 1rem;
background: var(--tone);
mask: var(--icon) center / contain no-repeat;
}
.prose .admonition > .admonition-title + * { margin-top: 0.4em; }
.prose details > summary { list-style: none; cursor: pointer; }
.prose details > summary::-webkit-details-marker { display: none; }
.prose details > summary::after {
content: "";
width: 0.875rem;
height: 0.875rem;
margin-left: auto;
background: var(--text-faint);
mask: var(--i-chevron) center / contain no-repeat;
transition: transform 150ms var(--ease);
}
.prose details[open] > summary::after { transform: rotate(90deg); }
.prose details[open] > summary { margin-bottom: 0.5em; }
.prose .admonition .highlight pre, .prose details .highlight pre { background: var(--code-bg); }
.prose :is(.admonition, details):is(.info, .abstract, .summary, .tldr, .question, .help, .faq) { --tone: var(--info); --icon: var(--i-info); }
.prose :is(.admonition, details):is(.tip, .hint, .important) { --tone: var(--accent); --icon: var(--i-tip); }
.prose :is(.admonition, details):is(.success, .check, .done) { --tone: var(--ok); --icon: var(--i-check); }
.prose :is(.admonition, details):is(.warning, .caution, .attention) { --tone: var(--warn); --icon: var(--i-warn); }
.prose :is(.admonition, details):is(.danger, .error, .failure, .fail, .missing, .bug) { --tone: var(--danger); --icon: var(--i-danger); }
.prose :is(.admonition, details).example { --tone: var(--violet); --icon: var(--i-example); }
.prose :is(.admonition, details).quote { --icon: var(--i-quote); }
:root {
--i-note: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.4 3.6a2.1 2.1 0 1 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E");
--i-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
--i-tip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5'/%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3C/svg%3E");
--i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
--i-warn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
--i-danger: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.86 2h8.28L22 7.86v8.28L16.14 22H7.86L2 16.14V7.86z'/%3E%3Cpath d='m15 9-6 6'/%3E%3Cpath d='m9 9 6 6'/%3E%3C/svg%3E");
--i-example: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6'/%3E%3Cpath d='M10 9V3'/%3E%3Cpath d='M14 9V3'/%3E%3Cpath d='M10 9 4.4 18.3A1.8 1.8 0 0 0 6 21h12a1.8 1.8 0 0 0 1.6-2.7L14 9'/%3E%3Cpath d='M6.5 15h11'/%3E%3C/svg%3E");
--i-quote: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21c3 0 7-1 7-8V5c0-1.25-.76-2-2-2H4c-1.25 0-2 .75-2 1.97V11c0 1.25.75 2 2 2 1 0 1 0 1 1v1c0 1-1 2-2 2s-1 .01-1 1.03V20c0 1 0 1 1 1z'/%3E%3Cpath d='M15 21c3 0 7-1 7-8V5c0-1.25-.76-2-2-2h-4c-1.25 0-2 .75-2 1.97V11c0 1.25.75 2 2 2h.75c0 2.25.25 4-2.75 4v3c0 1 0 1 1 1z'/%3E%3C/svg%3E");
--i-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
}
.prose .tabbed-set {
position: relative;
display: flex;
flex-direction: column;
border: 1px solid var(--line);
border-radius: var(--r-lg);
background: var(--bg-raised);
}
.prose .tabbed-set > input { position: absolute; opacity: 0; pointer-events: none; }
.prose .tabbed-labels {
display: flex;
gap: 0.25rem;
padding: 0 0.5rem;
border-bottom: 1px solid var(--line);
overflow-x: auto;
scrollbar-width: none;
}
.prose .tabbed-labels > label {
flex: none;
padding: 0.625rem 0.5rem 0.5rem;
border-bottom: 2px solid transparent;
margin-bottom: -1px;
color: var(--text-muted);
font-size: var(--fs-sm);
font-weight: 550;
white-space: nowrap;
cursor: pointer;
transition: color 100ms var(--ease), border-color 100ms var(--ease);
}
.prose .tabbed-labels > label:hover { color: var(--text); }
.prose .tabbed-content > .tabbed-block { display: none; padding: 1rem 1.1rem; }
.prose .tabbed-content > .tabbed-block > :first-child { margin-top: 0; }
.prose .tabbed-set > input:nth-child(1):checked ~ .tabbed-labels > :nth-child(1),
.prose .tabbed-set > input:nth-child(2):checked ~ .tabbed-labels > :nth-child(2),
.prose .tabbed-set > input:nth-child(3):checked ~ .tabbed-labels > :nth-child(3),
.prose .tabbed-set > input:nth-child(4):checked ~ .tabbed-labels > :nth-child(4),
.prose .tabbed-set > input:nth-child(5):checked ~ .tabbed-labels > :nth-child(5),
.prose .tabbed-set > input:nth-child(6):checked ~ .tabbed-labels > :nth-child(6),
.prose .tabbed-set > input:nth-child(7):checked ~ .tabbed-labels > :nth-child(7),
.prose .tabbed-set > input:nth-child(8):checked ~ .tabbed-labels > :nth-child(8) {
color: var(--text);
border-bottom-color: var(--accent);
}
.prose .tabbed-set > input:nth-child(1):focus-visible ~ .tabbed-labels > :nth-child(1),
.prose .tabbed-set > input:nth-child(2):focus-visible ~ .tabbed-labels > :nth-child(2),
.prose .tabbed-set > input:nth-child(3):focus-visible ~ .tabbed-labels > :nth-child(3),
.prose .tabbed-set > input:nth-child(4):focus-visible ~ .tabbed-labels > :nth-child(4),
.prose .tabbed-set > input:nth-child(5):focus-visible ~ .tabbed-labels > :nth-child(5),
.prose .tabbed-set > input:nth-child(6):focus-visible ~ .tabbed-labels > :nth-child(6),
.prose .tabbed-set > input:nth-child(7):focus-visible ~ .tabbed-labels > :nth-child(7),
.prose .tabbed-set > input:nth-child(8):focus-visible ~ .tabbed-labels > :nth-child(8) {
outline: 2px solid var(--focus);
outline-offset: -2px;
border-radius: var(--r-sm);
}
.prose .tabbed-set > input:nth-child(1):checked ~ .tabbed-content > :nth-child(1),
.prose .tabbed-set > input:nth-child(2):checked ~ .tabbed-content > :nth-child(2),
.prose .tabbed-set > input:nth-child(3):checked ~ .tabbed-content > :nth-child(3),
.prose .tabbed-set > input:nth-child(4):checked ~ .tabbed-content > :nth-child(4),
.prose .tabbed-set > input:nth-child(5):checked ~ .tabbed-content > :nth-child(5),
.prose .tabbed-set > input:nth-child(6):checked ~ .tabbed-content > :nth-child(6),
.prose .tabbed-set > input:nth-child(7):checked ~ .tabbed-content > :nth-child(7),
.prose .tabbed-set > input:nth-child(8):checked ~ .tabbed-content > :nth-child(8) {
display: block;
}
.prose .tabbed-block:has(> .highlight:only-child) { padding: 0; }
.prose .tabbed-block > .highlight:only-child pre {
border: 0;
border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.prose .tabbed-set:has(.tabbed-block > .highlight:only-child) { background: var(--code-bg); }
.prose .tabbed-set:has(.tabbed-block > .highlight:only-child) .tabbed-labels { background: var(--bg-sunken); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.prose .tabbed-set:has(.tabbed-block > .highlight:only-child):not(:has(.tabbed-block > .highlight:not(.language-console, .language-shell-session))) {
color-scheme: dark;
--code-bg: #131311;
border-color: #2b2b28;
background: #131311;
}
.prose .tabbed-set:has(.tabbed-block > .highlight:only-child):not(:has(.tabbed-block > .highlight:not(.language-console, .language-shell-session))) .tabbed-labels {
background: #1e1e1c;
border-color: #2b2b28;
}
.prose .tabbed-set:has(.tabbed-block > .highlight:only-child):not(:has(.tabbed-block > .highlight:not(.language-console, .language-shell-session))) .tabbed-labels > label { color: #99968e; }
.prose .tabbed-set:has(.tabbed-block > .highlight:only-child):not(:has(.tabbed-block > .highlight:not(.language-console, .language-shell-session))) .tabbed-labels > label:hover,
.prose .tabbed-set:has(.tabbed-block > .highlight:only-child):not(:has(.tabbed-block > .highlight:not(.language-console, .language-shell-session))) > input:checked ~ .tabbed-labels > label { color: #f2f1ec; }
.prose .cards > ul {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
gap: 0.75rem;
padding: 0;
list-style: none;
}
.prose .cards > ul > li {
position: relative;
margin: 0;
padding: 1rem 1.1rem;
border: 1px solid var(--line);
border-radius: var(--r-lg);
background: var(--bg-raised);
color: var(--text-muted);
font-size: var(--fs-md);
line-height: 1.55;
transition: border-color 120ms var(--ease), box-shadow 120ms var(--ease);
}
.prose .cards > ul > li > * + * { margin-top: 0.35em; }
.prose .cards > ul > li:has(a):hover { border-color: var(--accent-line); box-shadow: var(--shadow-sm); }
.prose .cards > ul > li > p:first-child { color: var(--text); font-size: var(--fs-base); font-weight: 600; }
.prose .cards > ul > li > p:first-child a { text-decoration: none; font-weight: 600; }
.prose .cards > ul > li > p:first-child a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.prose .cards > ul > li > p:first-child a[data-external]::after { all: unset; }
.prose .steps {
counter-reset: step;
margin-left: 0.875rem;
padding-left: 1.75rem;
border-left: 1px solid var(--line);
}
.prose .steps > h3 { counter-increment: step; margin-top: 2em; font-size: var(--fs-base); }
.prose .steps > h3:first-child { margin-top: 0; }
.prose .steps > h3::before {
content: counter(step);
position: absolute;
left: calc(-1.75rem - 0.875rem - 0.5px);
top: -0.1rem;
display: grid;
place-items: center;
width: 1.75rem;
height: 1.75rem;
border: 1px solid var(--line-strong);
border-radius: var(--r-pill);
background: var(--bg);
color: var(--text);
font-family: var(--font-mono);
font-size: var(--fs-xs);
font-weight: 600;
letter-spacing: 0;
}
.prose .badge {
display: inline-flex;
align-items: center;
padding: 0.05rem 0.45rem;
border: 1px solid var(--line);
border-radius: var(--r-pill);
background: var(--bg-sunken);
color: var(--text-muted);
font-family: var(--font-mono);
font-size: 0.7rem;
font-weight: 600;
letter-spacing: 0.01em;
line-height: 1.5;
vertical-align: 0.12em;
}
.prose .badge:is(.ok, .success) { --b: var(--ok); }
.prose .badge.warn { --b: var(--warn); }
.prose .badge.danger { --b: var(--danger); }
.prose .badge.info { --b: var(--info); }
.prose .badge.accent { --b: var(--accent-text); }
.prose .badge:is(.ok, .success, .warn, .danger, .info, .accent) {
border-color: color-mix(in srgb, var(--b, var(--line)) 32%, transparent);
background: color-mix(in srgb, var(--b, transparent) 10%, transparent);
color: var(--b, var(--text-muted));
}
.prose .endpoint {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.6rem;
padding: 0.6rem 0.75rem;
border: 1px solid var(--line);
border-radius: var(--r-lg);
background: var(--bg-raised);
}
.prose .endpoint > code:not(.get, .post, .put, .patch, .delete) {
padding: 0;
border: 0;
background: none;
font-size: var(--fs-md);
}
.prose code:is(.get, .post, .put, .patch, .delete) {
--m: var(--info);
padding: 0.15rem 0.45rem;
border: 1px solid color-mix(in srgb, var(--m) 35%, transparent);
background: color-mix(in srgb, var(--m) 11%, transparent);
color: var(--m);
font-size: 0.7rem;
font-weight: 700;
letter-spacing: 0.03em;
}
.prose code.post { --m: var(--ok); }
.prose code:is(.put, .patch) { --m: var(--warn); }
.prose code.delete { --m: var(--danger); }
.prose .params dl { border-top: 1px solid var(--line); }
.prose .params dt {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 0.25rem 0.6rem;
padding-top: 0.9rem;
font-weight: 400;
}
.prose .params dt:not(:first-child) { margin-top: 0.9rem; border-top: 1px solid var(--line-faint); }
.prose .params dt > code:first-child {
padding: 0;
border: 0;
background: none;
color: var(--text);
font-size: var(--fs-md);
font-weight: 650;
}
.prose .params dt > code.type { padding: 0; border: 0; background: none; color: var(--text-muted); font-size: var(--fs-sm); }
.prose .params dt > .required { color: var(--accent-text); font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 600; }
.prose .params dt > .optional { color: var(--text-muted); font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; }
.prose .params dd { margin: 0.3rem 0 0; color: var(--text-body); font-size: 0.9375rem; }
.prose pre.mermaid {
overflow-x: auto;
padding: 1rem;
border: 1px solid var(--line);
border-radius: var(--r-lg);
background: var(--code-bg);
color: var(--text-muted);
font-family: var(--font-mono);
font-size: var(--fs-sm);
white-space: pre;
}
.prose .diagram {
overflow-x: auto;
padding: 1.25rem 1rem;
border: 1px solid var(--line);
border-radius: var(--r-lg);
background: var(--bg-raised);
}
.prose .diagram svg { display: block; max-width: 100%; height: auto; margin-inline: auto; }
.page-actions {
position: relative;
display: flex;
flex: none;
margin-top: 0.3rem;
border: 1px solid var(--line);
border-radius: var(--r-md);
background: var(--bg-raised);
}
.page-actions > .button { border-radius: var(--r-md) 0 0 var(--r-md); color: var(--text-body); }
.page-actions > .icon-button { border-left: 1px solid var(--line); border-radius: 0 var(--r-md) var(--r-md) 0; }
.page-actions [data-copied] { color: var(--ok); }
@media (max-width: 40rem) { .page-actions > .button span { display: none; } }
.menu {
position: absolute;
top: calc(100% + 0.375rem);
right: 0;
z-index: 30;
display: grid;
min-width: 16rem;
padding: 0.3rem;
border: 1px solid var(--line);
border-radius: var(--r-lg);
background: var(--bg-raised);
box-shadow: var(--shadow-lg);
}
.menu__item {
display: flex;
align-items: flex-start;
gap: 0.625rem;
width: 100%;
padding: 0.5rem 0.6rem;
border-radius: var(--r-md);
color: var(--text-muted);
font-size: var(--fs-sm);
text-align: left;
text-decoration: none;
}
.menu__item .icon { margin-top: 0.15rem; }
.menu__item span { display: grid; }
.menu__item strong { color: var(--text); font-weight: 550; }
.menu__item small { font-size: var(--fs-xs); }
.menu__item:is(:hover, :focus-visible) { background: var(--bg-hover); outline: none; }
.search-dialog {
width: min(40rem, calc(100vw - 2rem));
max-width: none;
max-height: min(36rem, calc(100dvh - 8rem));
margin: 10vh auto auto;
padding: 0;
border: 1px solid var(--line);
border-radius: var(--r-xl);
background: var(--bg-raised);
box-shadow: var(--shadow-lg);
overflow: hidden;
}
.search-dialog[open] { display: flex; }
.search-dialog::backdrop { background: var(--scrim); backdrop-filter: blur(2px); }
.search { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.search__field {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0 0.75rem 0 1rem;
border-bottom: 1px solid var(--line);
color: var(--text-muted);
}
.search__input {
flex: 1;
min-width: 0;
height: 3.25rem;
border: 0;
background: none;
color: var(--text);
font-size: 1rem;
outline: none;
}
.search__input::placeholder { color: var(--text-faint); }
.search__close kbd { cursor: pointer; }
.search__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0.375rem; }
.search__status { padding: 1.5rem 1rem; color: var(--text-muted); font-size: var(--fs-md); text-align: center; }
.search__status:empty { display: none; }
.search__group + .search__group { margin-top: 0.25rem; }
.search__group-label {
padding: 0.625rem 0.625rem 0.25rem;
color: var(--text-muted);
font-size: var(--fs-xs);
font-weight: 550;
}
.search__option {
display: flex;
gap: 0.625rem;
padding: 0.55rem 0.625rem;
border-radius: var(--r-md);
color: var(--text-body);
text-decoration: none;
cursor: pointer;
}
.search__option .icon { margin-top: 0.2rem; color: var(--text-faint); }
.search__option[aria-selected="true"] { background: var(--bg-hover); }
.search__option[aria-selected="true"] .icon { color: var(--accent); }
.search__option-text { display: grid; gap: 0.1rem; min-width: 0; }
.search__option-title { color: var(--text); font-size: var(--fs-md); font-weight: 550; }
.search__option-snippet {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
color: var(--text-muted);
font-size: var(--fs-sm);
line-height: 1.5;
}
.search__option mark { background: none; color: var(--accent-text); font-weight: 650; }
.search__option--ai { margin-top: 0.25rem; border-top: 1px solid var(--line-faint); border-radius: 0 0 var(--r-md) var(--r-md); }
.search__footer {
display: flex;
flex-wrap: wrap;
gap: 0.5rem 1.25rem;
padding: 0.6rem 1rem;
border-top: 1px solid var(--line);
background: var(--bg-sunken);
color: var(--text-muted);
font-size: var(--fs-xs);
}
.search__footer span { display: inline-flex; align-items: center; gap: 0.25rem; }
.search__footer-ai { margin-left: auto; }
@media (max-width: 40rem) {
.search-dialog { width: 100vw; max-height: none; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
.search__footer { display: none; }
}
.ai-panel {
position: fixed;
inset: 0 0 0 auto;
width: min(28rem, 100vw);
max-width: none;
height: 100dvh;
max-height: none;
margin: 0;
padding: 0;
border: 0;
border-left: 1px solid var(--line);
background: var(--bg-raised);
box-shadow: var(--shadow-lg);
transition: transform 220ms var(--ease), overlay 220ms allow-discrete, display 220ms allow-discrete;
transform: translateX(100%);
}
.ai-panel[open] { display: flex; flex-direction: column; transform: none; }
@starting-style { .ai-panel[open] { transform: translateX(100%); } }
.ai-panel::backdrop { background: var(--scrim); }
.ai-panel__head {
display: flex;
align-items: center;
justify-content: space-between;
height: var(--header-h);
padding: 0 0.75rem 0 1.25rem;
border-bottom: 1px solid var(--line);
}
.ai-panel__title { display: flex; align-items: center; gap: 0.5rem; color: var(--text); font-family: var(--font-display); font-size: var(--fs-base); font-weight: 600; }
.ai-panel__title .icon { color: var(--accent); }
.ai-panel__log { flex: 1; overflow-y: auto; padding: 1.25rem; display: grid; align-content: start; gap: 1.25rem; }
.ai-panel__empty { color: var(--text-muted); font-size: var(--fs-md); }
.ai-msg--question {
justify-self: end;
max-width: 85%;
padding: 0.55rem 0.8rem;
border-radius: var(--r-lg) var(--r-lg) var(--r-sm) var(--r-lg);
background: var(--bg-sunken);
color: var(--text);
font-size: var(--fs-md);
white-space: pre-wrap;
}
.ai-msg--answer { font-size: 0.9375rem; }
.ai-msg--answer.prose > * + * { margin-top: 0.75em; }
.ai-msg--error { color: var(--danger); font-size: var(--fs-md); }
.prose .ai-msg__sources { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.875rem; padding: 0; list-style: none; }
.prose .ai-msg__sources li { margin: 0; padding: 0; }
.ai-msg__sources a {
display: inline-flex;
align-items: center;
gap: 0.3rem;
padding: 0.2rem 0.55rem;
border: 1px solid var(--line);
border-radius: var(--r-pill);
color: var(--text-muted);
font-size: var(--fs-xs);
text-decoration: none;
}
.ai-msg__sources a:hover { border-color: var(--accent-line); color: var(--text); }
.ai-thinking { display: inline-flex; gap: 0.3rem; padding: 0.25rem 0; }
.ai-thinking span { width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--text-faint); animation: ai-pulse 1s infinite ease-in-out; }
.ai-thinking span:nth-child(2) { animation-delay: 0.15s; }
.ai-thinking span:nth-child(3) { animation-delay: 0.3s; }
@keyframes ai-pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
.ai-panel__form { position: relative; margin: 0 1rem; }
.ai-panel__scope { margin-bottom: 0.4rem; color: var(--text-muted); font-size: var(--fs-xs); }
.ai-panel__input {
display: block;
width: 100%;
min-height: 4.5rem;
max-height: 12rem;
padding: 0.7rem 3.25rem 0.7rem 0.85rem;
border: 1px solid var(--line);
border-radius: var(--r-lg);
background: var(--bg);
color: var(--text);
font-size: var(--fs-md);
line-height: 1.5;
resize: vertical;
}
.ai-panel__input:focus { outline: 2px solid var(--focus); outline-offset: -1px; }
.ai-panel__form > .icon-button { position: absolute; right: 0.5rem; bottom: 0.5rem; }
.ai-panel__note { padding: 0.6rem 1rem 1rem; color: var(--text-faint); font-size: var(--fs-2xs); text-align: center; }
@media (prefers-reduced-motion: reduce) { .ai-panel { transition: none; } .ai-thinking span { animation: none; opacity: 0.6; } }
.not-found { padding-block: 10vh; text-align: center; }
.not-found__code { color: var(--accent-text); font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.1em; }
.not-found .doc-title { margin-top: 0.5rem; }
.not-found .doc-lede { max-width: 32rem; margin-inline: auto; }
.not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.prose .phones {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.5rem), 1fr));
gap: 1.25rem 1rem;
align-items: start;
}
.prose .phones > * { margin-top: 0; }
.prose .phones figure { gap: 0.5rem; }
.prose .phones img, .prose img.phone {
width: 100%;
max-width: 17rem;
margin-inline: auto;
border-radius: 1.4rem;
border: 1px solid var(--line);
}
.prose .phones figcaption { font-size: var(--fs-xs); }
