
@font-face {
	font-family: "Geist";
	src: url("fonts/Geist-VariableFont_wght.ttf") format("truetype");
	font-weight: 100 900;
	font-display: swap;
}

:root {
	color-scheme: dark;

	--paper: #1f2023;
	--paper-raised: #28292d;
	--paper-hover: #303136;
	--paper-chip: #3b3c42;
	--sunk: #161719;
	--sunk-raised: #1d1e21;
	--sunk-hair: #2e2f33;

	--ink: #ededeb;
	--ink-2: #dddee1;
	--ink-3: #b9babf;
	--hair: #36373c;

	--accent: #3c6fd8;
	--accent-hover: #4a7de6;
	--accent-ink: #8db8ee;
	--on-accent: #ffffff;

	--success: #4fc65c;
	--danger: #ff6b6b;
	--warning: #ffca6b;

	--mc-label: #b7cfed;
	--mc-alert: #6ea2e2;
	--mc-number: #ffca6b;
	--mc-text: #f2f2ef;
	--mc-muted: #8f8f89;
	--mc-green: #6fcf78;

	--night: #161719;
	--night-ink: #f2f2ef;
	--night-ink-2: #a3a39d;
	--night-hair: #2e2f33;

	--r: 6px;
	--r-lg: 10px;

	--t-xs: 0.8125rem;
	--t-sm: 0.875rem;
	--t-base: 0.9375rem;
	--t-lg: 1.125rem;
	--t-xl: 1.375rem;
	--t-2xl: clamp(1.875rem, 1.5rem + 1.2vw, 2.375rem);

	--topbar: 60px;
	--sidebar: 272px;
	--toc: 224px;
	--measure: 46rem;
	--gutter: clamp(16px, 4vw, 40px);

	--ease: cubic-bezier(0.2, 0, 0, 1);
	--sans: "Geist", system-ui, sans-serif;
	--mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

* {
	margin: 0;
	padding: 0;
}

html {
	scroll-padding-top: calc(var(--topbar) + 20px);
	-webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: var(--t-sm);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	font-variant-numeric: lining-nums;
}

img,
svg {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input {
	font: inherit;
	color: inherit;
}

button {
	background: none;
	border: 0;
	cursor: pointer;
}

ul,
ol {
	list-style: none;
}

::selection {
	background: var(--accent);
	color: var(--on-accent);
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

* {
	scrollbar-width: thin;
	scrollbar-color: var(--hair) transparent;
}

kbd {
	font-family: var(--sans);
	font-size: 0.6875rem;
	font-weight: 500;
	line-height: 1;
	padding: 3px 5px;
	border: 1px solid var(--hair);
	border-radius: 4px;
	color: var(--ink-3);
	background: var(--paper);
}

.skip {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 100;
	padding: 8px 12px;
	border-radius: var(--r);
	background: var(--accent);
	color: var(--on-accent);
	font-weight: 600;
}

.skip:focus {
	top: 12px;
}

.ext,
.prose a[target="_blank"]::after {
	display: inline-block;
	flex: none;
	width: 0.7em;
	height: 0.7em;
	margin-left: 0.15em;
	vertical-align: -0.02em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9 9 3M4 3h5v5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9 9 3M4 3h5v5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.prose a[target="_blank"]::after {
	content: "";
}


.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 36px;
	padding: 0 14px;
	border-radius: var(--r);
	font-size: var(--t-sm);
	font-weight: 600;
	white-space: nowrap;
	background: linear-gradient(to right, var(--btn-fill) 50%, var(--btn-base) 50%) right center / 200% 100% no-repeat;
	color: var(--btn-text);
	transition: background-position 320ms var(--ease), color 320ms var(--ease);
}

.btn:hover {
	background-position: left center;
	color: var(--btn-text-hover);
}

.btn .ext {
	margin-left: -2px;
}

.btn-ink {
	--btn-base: var(--ink);
	--btn-fill: var(--accent);
	--btn-text: var(--paper);
	--btn-text-hover: var(--on-accent);
}

@media (prefers-reduced-motion: reduce) {
	.btn {
		transition: none;
	}
}


.topbar {
	position: sticky;
	top: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	gap: 12px;
	height: var(--topbar);
	padding: 0 16px;
	background: var(--paper);
	border-bottom: 1px solid var(--hair);
}

.loading .topbar::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: var(--accent);
	transform-origin: left;
	animation: loading 1.6s var(--ease) both;
}

@keyframes loading {
	from {
		transform: scaleX(0);
	}

	to {
		transform: scaleX(0.85);
	}
}

.brand {
	display: flex;
	align-items: center;
	gap: 8px;
	width: calc(var(--sidebar) - 28px);
	flex: none;
	padding-left: 6px;
	font-size: var(--t-base);
	font-weight: 700;
	letter-spacing: -0.01em;
}

.brand img {
	width: 22px;
	height: auto;
}

.brand-sub {
	font-weight: 500;
	color: var(--ink-3);
}

.search-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	width: min(100%, 320px);
	height: 36px;
	padding: 0 8px 0 11px;
	border: 1px solid var(--hair);
	border-radius: var(--r);
	background: var(--paper-raised);
	color: var(--ink-3);
	font-size: var(--t-sm);
	text-align: left;
	transition: border-color 150ms var(--ease), color 150ms var(--ease);
}

.search-btn:hover {
	border-color: var(--ink-3);
	color: var(--ink-2);
}

.search-btn span {
	flex: 1;
}

.search-btn svg,
.search-field svg {
	width: 16px;
	height: 16px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
}

.top-links {
	display: flex;
	gap: 2px;
	margin-left: auto;
}

.top-links a {
	display: flex;
	align-items: center;
	padding: 8px 10px;
	border-radius: var(--r);
	color: var(--ink-3);
	transition: color 150ms var(--ease);
}

.top-links a:hover {
	color: var(--ink);
}

.menu-btn {
	display: none;
	height: 36px;
	padding: 0 12px;
	border-radius: var(--r);
	font-weight: 600;
}

.menu-btn:hover {
	background: var(--paper-raised);
}


.shell {
	flex: 1;
	display: flex;
	width: 100%;
	max-width: 1520px;
	margin: 0 auto;
}

.sidebar {
	position: sticky;
	top: var(--topbar);
	flex: none;
	width: var(--sidebar);
	height: calc(100vh - var(--topbar));
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 20px 12px 40px;
	border-right: 1px solid var(--hair);
}

.nav-group + .nav-group {
	margin-top: 20px;
}

.nav-label {
	margin-bottom: 4px;
	padding: 0 10px;
	font-size: var(--t-xs);
	font-weight: 500;
	color: var(--ink-3);
}

.sidebar ul {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.sidebar a {
	display: flex;
	align-items: center;
	min-height: 32px;
	padding: 5px 10px;
	border-radius: var(--r);
	color: var(--ink-2);
	line-height: 1.35;
	transition: background-color 150ms var(--ease), color 150ms var(--ease);
}

.sidebar a:hover {
	background: var(--paper-raised);
	color: var(--ink);
}

.sidebar a[aria-current="page"] {
	background: var(--paper-raised);
	color: var(--ink);
	font-weight: 600;
}

.nav-row {
	position: relative;
}

.nav-row a {
	padding-right: 34px;
}

.nav-toggle {
	position: absolute;
	top: 4px;
	right: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 4px;
	color: var(--ink-3);
}

.nav-toggle:hover {
	background: var(--paper-hover);
	color: var(--ink);
}

.nav-toggle svg,
.def summary svg,
.dropdown summary svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 200ms var(--ease);
}

.nav-node.open > .nav-row .nav-toggle svg {
	transform: rotate(90deg);
}

.nav-node > ul {
	display: none;
	margin: 1px 0 4px 10px;
	padding-left: 8px;
	border-left: 1px solid var(--hair);
}

.nav-node.open > ul {
	display: flex;
}

.scrim {
	display: none;
}

.main {
	flex: 1;
	min-width: 0;
	display: flex;
	justify-content: center;
	gap: 48px;
	padding: 36px var(--gutter) 72px;
}

.doc {
	flex: 1;
	min-width: 0;
	max-width: var(--measure);
}


.crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 8px;
	margin-bottom: 10px;
	font-size: var(--t-xs);
	font-weight: 500;
	color: var(--ink-3);
}

.crumbs a {
	transition: color 150ms var(--ease);
}

.crumbs a:hover {
	color: var(--ink);
}

.crumb-sep {
	color: var(--hair);
}

.doc-head h1 {
	font-size: var(--t-2xl);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.035em;
	text-wrap: balance;
	overflow-wrap: anywhere;
}

.doc-head {
	margin-bottom: 28px;
}

.doc-head h1:focus {
	outline: none;
}


.prose {
	font-size: var(--t-base);
	line-height: 1.65;
	color: var(--ink-2);
	overflow-wrap: break-word;
}

.prose > * + *,
.prose .tab-panel > * + *,
.prose .def-body > * + *,
.prose dd > * + *,
.prose .dropdown-body > * + * {
	margin-top: 16px;
}

.prose h2,
.prose h3,
.prose h4,
.prose h5 {
	position: relative;
	color: var(--ink);
	font-weight: 650;
	line-height: 1.25;
	text-wrap: balance;
}

.prose h2 {
	margin-top: 44px;
	padding-top: 20px;
	border-top: 1px solid var(--hair);
	font-size: var(--t-xl);
	letter-spacing: -0.02em;
}

.prose > h2:first-child {
	margin-top: 0;
}

.prose h3 {
	margin-top: 32px;
	font-size: var(--t-lg);
	letter-spacing: -0.012em;
}

.prose h4 {
	margin-top: 28px;
	font-size: var(--t-base);
}

.prose h5 {
	margin-top: 20px;
	font-size: var(--t-sm);
}

.prose h2 + *,
.prose h3 + *,
.prose h4 + *,
.prose h5 + * {
	margin-top: 10px;
}

.prose h3:first-child,
.prose h4:first-child {
	margin-top: 0;
}

.anchor {
	margin-left: 8px;
	font-weight: 500;
	color: var(--ink-3);
	opacity: 0;
	transition: opacity 150ms var(--ease), color 150ms var(--ease);
}

:is(h2, h3, h4, h5):hover > .anchor,
.anchor:focus-visible {
	opacity: 1;
}

.anchor:hover {
	color: var(--accent-ink);
}

.prose strong,
.prose b {
	color: var(--ink);
	font-weight: 600;
}

.prose a:not(.anchor) {
	color: var(--ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-decoration-color: var(--ink-3);
	text-underline-offset: 3px;
	transition: color 150ms var(--ease), text-decoration-color 150ms var(--ease);
}

.prose a:not(.anchor):hover {
	color: var(--accent-ink);
	text-decoration-color: currentColor;
}

.prose ul,
.prose ol {
	padding-left: 1.4em;
}

.prose ul {
	list-style: disc;
}

.prose ol {
	list-style: decimal;
}

.prose ul ul {
	list-style: circle;
}

.prose li::marker {
	color: var(--ink-3);
}

.prose li + li,
.prose li > ul,
.prose li > ol {
	margin-top: 6px;
}

.prose li > p + p {
	margin-top: 8px;
}

.prose .list-none {
	list-style: none;
	padding-left: 0;
}

.prose blockquote {
	padding: 2px 0 2px 16px;
	border-left: 2px solid var(--hair);
	color: var(--ink-3);
}

.prose hr {
	border: 0;
	border-top: 1px solid var(--hair);
}

.pbreak {
	display: block;
	height: 10px;
}

.pbreak:last-child {
	display: none;
}

.prose :not(pre) > code {
	padding: 1px 5px;
	border: 1px solid var(--hair);
	border-radius: 4px;
	background: var(--paper-raised);
	color: var(--ink);
	font-family: var(--mono);
	font-size: 0.85em;
	overflow-wrap: anywhere;
}

.prose h2 code,
.prose h3 code,
.prose h4 code {
	font-size: 0.9em;
}

.tone-success {
	color: var(--success);
	font-weight: 600;
}

.tone-danger {
	color: var(--danger);
	font-weight: 600;
}

.tone-warning {
	color: var(--warning);
	font-weight: 600;
}

.tone-accent {
	color: var(--accent-ink);
	font-weight: 600;
}

.format.b,
.b {
	font-weight: 600;
}

.i {
	font-style: italic;
}


.term {
	position: relative;
	text-decoration: underline dotted var(--ink-3);
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	cursor: help;
}

.term:focus-visible {
	outline-offset: 1px;
}

.term-tip {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	z-index: 20;
	width: max-content;
	max-width: min(300px, 80vw);
	padding: 10px 12px;
	border: 1px solid var(--hair);
	border-radius: var(--r);
	background: var(--paper-raised);
	box-shadow: 0 12px 32px -8px rgb(0 0 0 / 0.6);
	color: var(--ink-2);
	font-size: var(--t-xs);
	font-weight: 400;
	line-height: 1.5;
	text-align: left;
	white-space: normal;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 4px);
	transition: opacity 150ms var(--ease), transform 150ms var(--ease), visibility 150ms;
}

.js .term-tip {
	position: fixed;
	left: var(--tip-x, 0);
	top: var(--tip-y, 0);
	bottom: auto;
	transform: translateY(4px);
}

.term-name {
	display: block;
	margin-bottom: 2px;
	color: var(--ink);
	font-weight: 600;
}

.term:hover .term-tip,
.term:focus .term-tip {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.js .term:hover .term-tip,
.js .term:focus .term-tip {
	transform: none;
}


.callout {
	display: flex;
	gap: 10px;
	padding: 11px 14px;
	border: 1px solid var(--hair);
	border-radius: var(--r);
	background: var(--paper-raised);
	font-size: var(--t-sm);
	line-height: 1.55;
	color: var(--ink-2);
}

.callout-icon {
	flex: none;
	margin-top: 2px;
	color: var(--mark);
}

.callout-icon svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.callout-note {
	--mark: var(--ink-3);
}

.callout-tip {
	--mark: var(--accent-ink);
}

.callout-warning {
	--mark: var(--warning);
}

.callout-body {
	flex: 1;
	min-width: 0;
}

.callout-body > * + * {
	margin-top: 8px;
}

.callout-title {
	color: var(--ink);
	font-weight: 600;
}

.callout :not(pre) > code {
	background: var(--paper);
}


.code {
	border: 1px solid var(--sunk-hair);
	border-radius: var(--r);
	background: var(--sunk);
	overflow: hidden;
}

.code-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 34px;
	padding: 0 6px 0 14px;
	border-bottom: 1px solid var(--sunk-hair);
	font-size: var(--t-xs);
	color: var(--mc-muted);
}

.code-copy {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 26px;
	padding: 0 8px;
	border-radius: 4px;
	color: var(--mc-muted);
	font-size: var(--t-xs);
	transition: color 150ms var(--ease), background-color 150ms var(--ease);
}

.code-copy:hover {
	background: var(--sunk-raised);
	color: var(--mc-text);
}

.code-copy svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.4;
}

.code-copy.copied {
	color: var(--success);
}

.no-js .code-copy {
	display: none;
}

.code pre {
	overflow-x: auto;
	padding: 14px 16px;
	font-family: var(--mono);
	font-size: 0.8125rem;
	line-height: 1.65;
	color: var(--mc-text);
	tab-size: 4;
	scrollbar-color: var(--sunk-hair) transparent;
}

.hljs-keyword,
.hljs-literal,
.hljs-built_in,
.hljs-selector-tag,
.hljs-tag,
.hljs-name {
	color: var(--mc-alert);
}

.hljs-type,
.hljs-title,
.hljs-title.class_,
.hljs-attr,
.hljs-attribute,
.hljs-property {
	color: var(--mc-label);
}

.hljs-string,
.hljs-regexp,
.hljs-symbol,
.hljs-bullet {
	color: var(--mc-green);
}

.hljs-number,
.hljs-meta,
.hljs-variable,
.hljs-template-variable {
	color: var(--mc-number);
}

.hljs-comment,
.hljs-quote,
.hljs-doctag {
	color: var(--mc-muted);
	font-style: italic;
}

.hljs-title.function_ {
	color: var(--mc-text);
	font-weight: 600;
}


.table {
	overflow-x: auto;
	border: 1px solid var(--hair);
	border-radius: var(--r-lg);
	background: var(--paper-raised);
}

.table table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--t-sm);
	line-height: 1.5;
	text-align: left;
}

.table th,
.table td {
	padding: 10px 14px;
	vertical-align: top;
}

.table thead th {
	border-bottom: 1px solid var(--hair);
	font-size: var(--t-xs);
	font-weight: 500;
	color: var(--ink-3);
	white-space: nowrap;
}

.table tbody tr + tr {
	border-top: 1px solid var(--hair);
}

.table tbody th {
	color: var(--ink);
	font-weight: 600;
}

.table td {
	color: var(--ink-2);
}


dl.deflist {
	border-top: 1px solid var(--hair);
}

dl.deflist > .def {
	padding: 14px 0;
	border-bottom: 1px solid var(--hair);
}

dl.deflist dt {
	color: var(--ink);
	font-weight: 600;
	line-height: 1.4;
}

dl.deflist dd {
	margin-top: 6px;
}

:is(dd, .def-body) dl.deflist {
	border-top: 0;
}

:is(dd, .def-body) dl.deflist > .def:first-child {
	padding-top: 4px;
}

:is(dd, .def-body) dl.deflist > .def:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.deflist-collapsible {
	border: 1px solid var(--hair);
	border-radius: var(--r-lg);
	background: var(--paper-raised);
	overflow: hidden;
}

.deflist-collapsible > .def + .def {
	border-top: 1px solid var(--hair);
}

.def summary,
.dropdown summary {
	display: flex;
	align-items: center;
	gap: 10px;
	list-style: none;
	cursor: pointer;
	color: var(--ink);
	font-weight: 600;
	user-select: none;
}

.def summary::-webkit-details-marker,
.dropdown summary::-webkit-details-marker {
	display: none;
}

.def summary svg,
.dropdown summary svg {
	flex: none;
	color: var(--ink-3);
}

.def[open] > summary svg,
.dropdown[open] > summary svg {
	transform: rotate(90deg);
}

.deflist-collapsible .def > summary {
	min-height: 46px;
	padding: 10px 16px;
	transition: background-color 120ms var(--ease);
}

.deflist-collapsible .def > summary:hover {
	background: var(--paper-hover);
}

.def-body {
	padding: 0 16px 16px 40px;
}

.deflist-collapsible dl.deflist {
	border-top: 0;
}

.deflist-collapsible .callout,
.deflist-collapsible .table,
.deflist-collapsible .code {
	background: var(--paper);
}

.deflist-collapsible .code {
	background: var(--sunk);
}


.dropdown {
	margin-top: 8px;
}

.dropdown summary {
	display: inline-flex;
	font-size: var(--t-sm);
	color: var(--ink-2);
	font-weight: 500;
}

.dropdown summary:hover {
	color: var(--ink);
}

.dropdown-body {
	margin: 8px 0 0 6px;
	padding-left: 18px;
	border-left: 1px solid var(--hair);
}

.prose .dropdown-body ul {
	list-style: none;
	padding-left: 0;
}


.tab-list {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	box-shadow: inset 0 -1px 0 var(--hair);
	scrollbar-width: none;
}

.tab-list button {
	flex: none;
	padding: 4px 0 10px;
	border-bottom: 2px solid transparent;
	font-size: var(--t-sm);
	color: var(--ink-2);
	white-space: nowrap;
	transition: color 150ms var(--ease), border-color 150ms var(--ease);
}

.tab-list button:hover {
	color: var(--ink);
}

.tab-list button[aria-selected="true"] {
	border-color: var(--ink);
	color: var(--ink);
	font-weight: 600;
}

.tab-list button::after {
	content: attr(data-label);
	display: block;
	height: 0;
	overflow: hidden;
	visibility: hidden;
	font-weight: 600;
}

.tab-panel {
	padding-top: 18px;
}

.no-js .tab-list {
	display: none;
}

.tab-title {
	color: var(--ink);
	font-weight: 600;
}

.js .tab-title {
	display: none;
}

.js .tab-panel:not(.active) {
	display: none;
}

.js .prose .tab-panel > .tab-title + * {
	margin-top: 0;
}


.procedure-title {
	margin-bottom: 10px;
	color: var(--ink);
	font-weight: 600;
}

.prose ol.steps {
	counter-reset: step;
	list-style: none;
	padding-left: 0;
}

ol.steps > li {
	position: relative;
	padding-left: 38px;
	counter-increment: step;
}

ol.steps > li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: 1px;
	width: 24px;
	height: 24px;
	border-radius: 999px;
	background: var(--paper-chip);
	color: var(--ink);
	font-size: var(--t-xs);
	font-weight: 600;
	line-height: 24px;
	text-align: center;
}

.figure img {
	height: auto;
	border: 1px solid var(--hair);
	border-radius: var(--r-lg);
}

.prose img {
	height: auto;
}


.seealso {
	margin-top: 44px;
	padding-top: 20px;
	border-top: 1px solid var(--hair);
}

.seealso h2 {
	margin-bottom: 10px;
	font-size: var(--t-base);
	font-weight: 600;
}

.seealso-group + .seealso-group {
	margin-top: 20px;
}

.seealso li + li {
	margin-top: 6px;
}

.seealso a {
	color: var(--ink-2);
	text-decoration: underline;
	text-decoration-color: var(--ink-3);
	text-underline-offset: 3px;
	transition: color 150ms var(--ease);
}

.seealso a:hover {
	color: var(--accent-ink);
}

.pager {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 56px;
}

.pager a {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 16px;
	border: 1px solid var(--hair);
	border-radius: var(--r-lg);
	background: var(--paper-raised);
	transition: border-color 150ms var(--ease);
}

.pager a:hover {
	border-color: var(--ink-3);
}

.pager-next {
	grid-column: 2;
	text-align: right;
}

.pager-label {
	font-size: var(--t-xs);
	color: var(--ink-3);
}

.pager-title {
	color: var(--ink);
	font-weight: 600;
}


.toc {
	position: sticky;
	top: calc(var(--topbar) + 36px);
	flex: none;
	align-self: flex-start;
	width: var(--toc);
	max-height: calc(100vh - var(--topbar) - 72px);
	overflow-y: auto;
	font-size: var(--t-xs);
}

.toc-title {
	margin-bottom: 8px;
	font-weight: 500;
	color: var(--ink-3);
}

.toc ul {
	border-left: 1px solid var(--hair);
}

.toc a {
	display: block;
	margin-left: -1px;
	padding: 4px 0 4px 12px;
	border-left: 2px solid transparent;
	color: var(--ink-3);
	line-height: 1.4;
	transition: color 150ms var(--ease), border-color 150ms var(--ease);
}

.toc .toc-l3 a {
	padding-left: 24px;
}

.toc a:hover {
	color: var(--ink);
}

.toc a.active {
	border-color: var(--ink);
	color: var(--ink);
	font-weight: 600;
}


.site-footer {
	background: var(--night);
	color: var(--night-ink-2);
	border-top: 1px solid var(--night-hair);
	font-size: var(--t-sm);
}

.footer-top,
.footer-legal {
	max-width: 1520px;
	margin: 0 auto;
	padding-inline: var(--gutter);
}

.footer-top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 40px 64px;
	padding-block: 48px 40px;
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	color: var(--night-ink);
	font-size: var(--t-base);
	font-weight: 700;
}

.footer-brand img {
	width: 24px;
	height: auto;
}

.footer-intro p {
	max-width: 26rem;
}

.footer-nav {
	display: flex;
	gap: 56px;
}

.footer-nav h2 {
	margin-bottom: 10px;
	color: var(--night-ink);
	font-size: var(--t-sm);
	font-weight: 600;
}

.footer-nav li + li {
	margin-top: 6px;
}

.footer-nav a {
	transition: color 150ms var(--ease);
}

.footer-nav a:hover {
	color: var(--night-ink);
}

.footer-legal {
	padding-block: 20px;
	border-top: 1px solid var(--night-hair);
	font-size: var(--t-xs);
}


.search {
	width: min(640px, calc(100vw - 32px));
	max-height: min(560px, calc(100vh - 96px));
	margin: 72px auto auto;
	padding: 0;
	border: 1px solid var(--hair);
	border-radius: var(--r-lg);
	background: var(--paper-raised);
	color: var(--ink);
	box-shadow: 0 24px 64px -12px rgb(0 0 0 / 0.7);
	overflow: hidden;
}

.search::backdrop {
	background: rgb(10 10 12 / 0.6);
}

.search[open] {
	display: flex;
}

.search-box {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 0;
}

.search-field {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 52px;
	padding: 0 14px 0 16px;
	border-bottom: 1px solid var(--hair);
	color: var(--ink-3);
}

.search-field input {
	flex: 1;
	min-width: 0;
	height: 100%;
	border: 0;
	background: transparent;
	color: var(--ink);
	font-size: var(--t-base);
	outline: 0;
}

.search-field input::placeholder {
	color: var(--ink-3);
}

.search-field input::-webkit-search-cancel-button {
	display: none;
}

.search-results {
	overflow-y: auto;
	padding: 6px;
}

.search-results:empty {
	display: none;
}

.search-results a {
	display: block;
	padding: 9px 12px;
	border-radius: var(--r);
}

.search-results [aria-selected="true"] a {
	background: var(--paper-hover);
}

.sr-title {
	display: block;
	color: var(--ink);
	font-weight: 600;
}

.sr-path {
	display: block;
	margin-top: 1px;
	font-size: var(--t-xs);
	color: var(--ink-3);
}

.sr-snippet {
	display: block;
	margin-top: 3px;
	font-size: var(--t-xs);
	color: var(--ink-2);
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.search-results mark {
	background: none;
	color: var(--accent-ink);
	font-weight: 600;
}

.search-empty {
	padding: 20px 12px;
	color: var(--ink-3);
	text-align: center;
}


@media (max-width: 1240px) {
	.toc {
		display: none;
	}
}

@media (max-width: 1000px) {
	.top-links {
		display: none;
	}

	.topbar .btn {
		margin-left: auto;
	}
}

@media (max-width: 900px) {
	.menu-btn {
		display: block;
	}

	.brand {
		width: auto;
		padding-left: 0;
	}

	.search-btn {
		width: 36px;
		padding: 0;
		justify-content: center;
		margin-left: auto;
	}

	.search-btn span,
	.search-btn kbd {
		display: none;
	}

	.topbar .btn {
		margin-left: 0;
	}

	.sidebar {
		position: fixed;
		top: var(--topbar);
		left: 0;
		z-index: 35;
		width: min(320px, 86vw);
		background: var(--paper);
		transform: translateX(-100%);
		visibility: hidden;
		transition: transform 260ms var(--ease), visibility 260ms;
	}

	.nav-open .sidebar {
		transform: none;
		visibility: visible;
	}

	.scrim {
		position: fixed;
		inset: var(--topbar) 0 0 0;
		z-index: 30;
		background: rgb(10 10 12 / 0.6);
	}

	.nav-open .scrim {
		display: block;
	}

	.main {
		padding-top: 28px;
	}

	.footer-top {
		grid-template-columns: 1fr;
	}

	.footer-nav {
		flex-wrap: wrap;
		gap: 32px 48px;
	}
}

@media (max-width: 520px) {
	.topbar {
		gap: 6px;
		padding: 0 10px;
	}

	.brand-sub {
		display: none;
	}

	.topbar .btn {
		padding: 0 10px;
	}

	.pager {
		grid-template-columns: 1fr;
	}

	.pager-next {
		grid-column: 1;
	}

	.def-body {
		padding-left: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
	}
}
