@font-face {
	font-family: 'Manrope';
	src: url('/fonts/manrope-latin.woff2') format('woff2');
	font-weight: 200 800;
	font-display: swap;
	unicode-range:
		U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074,
		U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
	--base-rgb: 11 11 12;
	--raised-rgb: 17 17 19;
	--line-rgb: 35 35 38;
	--line-strong-rgb: 51 51 58;
	--hover-rgb: 23 23 26;
	--text-rgb: 231 231 234;
	--text-alt-rgb: 138 138 147;
	--text-dim-rgb: 85 85 95;

	--mod-rgb: 74 222 128;
	--vip-rgb: 244 114 182;
	--founder-rgb: 251 191 36;
	--danger-rgb: 248 113 113;

	--base: rgb(var(--base-rgb));
	--raised: rgb(var(--raised-rgb));
	--line: rgb(var(--line-rgb));
	--line-strong: rgb(var(--line-strong-rgb));
	--line-soft: rgb(var(--line-rgb) / 0.7);
	--hover: rgb(var(--hover-rgb));
	--text: rgb(var(--text-rgb));
	--text-alt: rgb(var(--text-alt-rgb));
	--text-dim: rgb(var(--text-dim-rgb));

	--mod: rgb(var(--mod-rgb));
	--vip: rgb(var(--vip-rgb));
	--founder: rgb(var(--founder-rgb));
	--danger: rgb(var(--danger-rgb));

	--mark-in: #4ade80;
	--mark-out: #f472b6;

	--font-sans: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--type-micro: 0.75rem;
	--type-meta: 0.8125rem;
	--type-ui: 0.875rem;
	--type-base: 0.9375rem;
	--type-read: 1rem;
	--type-lead: 1.125rem;
	--type-h3: 1.125rem;
	--type-h2: 1.375rem;
	--type-h1: 1.75rem;

	--radius-xs: 4px;
	--radius-sm: 6px;
	--radius-md: 8px;
	--radius-lg: 12px;
	--radius-full: 9999px;

	--ease: cubic-bezier(0.2, 0, 0, 1);
	--duration: 150ms;

	--z-nav: 40;
	--z-overlay: 60;

	--nav-h: 60px;
	--brand-mark: 24px;
	--brand-gap: 12px;

	--side-w: 264px;
}

[data-theme='light'] {
	--base-rgb: 255 255 255;
	--raised-rgb: 242 242 245;
	--line-rgb: 226 226 231;
	--line-strong-rgb: 196 196 204;
	--hover-rgb: 237 237 241;
	--text-rgb: 24 24 27;
	--text-alt-rgb: 110 110 120;
	--text-dim-rgb: 154 154 164;

	--mod-rgb: 22 101 52;
	--vip-rgb: 190 24 93;
	--founder-rgb: 146 64 14;
	--danger-rgb: 185 28 28;
}

@media (prefers-color-scheme: light) {
	:root:not([data-theme]) {
		--base-rgb: 255 255 255;
		--raised-rgb: 242 242 245;
		--line-rgb: 226 226 231;
		--line-strong-rgb: 196 196 204;
		--hover-rgb: 237 237 241;
		--text-rgb: 24 24 27;
		--text-alt-rgb: 110 110 120;
		--text-dim-rgb: 154 154 164;

		--mod-rgb: 22 101 52;
		--vip-rgb: 190 24 93;
		--founder-rgb: 146 64 14;
		--danger-rgb: 185 28 28;
	}
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	background: var(--base);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: var(--type-base);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	scrollbar-gutter: stable;
}

code {
	font-family: var(--font-mono);
	font-size: 0.875em;
}

a {
	color: inherit;
}

.skip-link {
	position: absolute;
	left: -9999px;
}

.skip-link:focus {
	left: 12px;
	top: 12px;
	z-index: var(--z-overlay);
	padding: 8px 14px;
	background: var(--text);
	color: var(--base);
	border-radius: var(--radius-md);
}

.nav {
	position: sticky;
	top: 0;
	z-index: var(--z-nav);
	height: var(--nav-h);
	background: rgb(var(--base-rgb) / 0.82);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
	display: flex;
	align-items: center;
	gap: 20px;
	height: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 24px;
}

.brand {
	display: flex;
	align-items: center;
	gap: var(--brand-gap);
	flex: none;
	text-decoration: none;
}

.brand svg {
	width: var(--brand-mark);
	height: var(--brand-mark);
	flex: none;
}

.mark-in {
	fill: var(--mark-in);
}

.mark-out {
	fill: var(--mark-out);
}

.brand b {
	font-size: var(--type-h3);
	font-weight: 800;
	letter-spacing: -0.01em;
}

.brand span {
	color: var(--text-dim);
	font-weight: 400;
}

.search {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-width: 0;
	max-width: 420px;
	height: 40px;
	padding: 0 14px;
	background: var(--raised);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	transition: border-color var(--duration) var(--ease);
}

.search:focus-within {
	border-color: var(--line-strong);
}

.search input {
	width: 100%;
	min-width: 0;
	background: none;
	border: 0;
	outline: none;
	color: var(--text);
	font: inherit;
	font-size: var(--type-ui);
}

.search input::placeholder {
	color: var(--text-dim);
}

.btn {
	display: inline-flex;
	align-items: center;
	height: 40px;
	padding: 0 16px;
	margin-left: auto;
	flex: none;
	background: var(--line);
	border-radius: var(--radius-md);
	color: var(--text);
	font-size: var(--type-ui);
	font-weight: 700;
	text-decoration: none;
	transition: background-color var(--duration) var(--ease);
}

.btn:hover {
	background: var(--line-strong);
}

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex: none;
	padding: 0;
	background: none;
	border: 0;
	border-radius: var(--radius-md);
	color: var(--text-alt);
	cursor: pointer;
	transition:
		color var(--duration) var(--ease),
		background-color var(--duration) var(--ease);
}

.icon-btn:hover {
	background: var(--line);
	color: var(--text);
}

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

[data-theme='light'] .icon-sun,
.icon-moon {
	display: none;
}

[data-theme='light'] .icon-moon {
	display: block;
}

@media (prefers-color-scheme: light) {
	:root:not([data-theme]) .icon-sun {
		display: none;
	}

	:root:not([data-theme]) .icon-moon {
		display: block;
	}
}

.shell {
	display: grid;
	grid-template-columns: var(--side-w) minmax(0, 1fr);
	gap: 48px;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 24px 96px;
}

.side {
	position: sticky;
	top: var(--nav-h);
	align-self: start;
	max-height: calc(100vh - var(--nav-h));
	overflow-y: auto;
	padding: 28px 0 40px;
}

.side-head {
	margin: 22px 0 8px;
	font-size: var(--type-micro);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-dim);
}

.side ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.side li a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 10px;
	border-radius: var(--radius-sm);
	text-decoration: none;
	color: var(--text-alt);
	transition:
		background-color var(--duration) var(--ease),
		color var(--duration) var(--ease);
}

.side li a:hover {
	background: var(--hover);
	color: var(--text);
}

.side li a code {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.side li.is-hidden {
	display: none;
}

main {
	padding-top: 28px;
	min-width: 0;
}

.intro h1 {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin: 12px 0 8px;
	font-size: var(--type-h1);
	font-weight: 800;
	letter-spacing: -0.02em;
}

.version {
	font-size: var(--type-ui);
	font-weight: 600;
	color: var(--text-dim);
}

.lead {
	max-width: 68ch;
	color: var(--text-alt);
}

.prose p {
	margin: 0 0 12px;
}

.prose ul {
	margin: 0 0 12px;
	padding-left: 20px;
}

.prose li {
	margin-bottom: 4px;
}

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

.prose a {
	color: var(--text);
	text-decoration-color: var(--text-dim);
	text-underline-offset: 3px;
}

.prose code,
.desc code,
td code {
	padding: 1px 5px;
	background: var(--line);
	border-radius: var(--radius-xs);
}

.desc strong {
	color: var(--text);
}

.facts {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 8px 20px;
	margin: 24px 0 8px;
	padding: 20px 24px;
	background: var(--raised);
	border-radius: var(--radius-lg);
}

.facts dt {
	font-size: var(--type-meta);
	font-weight: 700;
	color: var(--text-dim);
}

.facts dd {
	margin: 0;
	color: var(--text-alt);
}

.group {
	padding-top: 48px;
	scroll-margin-top: calc(var(--nav-h) + 16px);
}

.group.is-hidden {
	display: none;
}

.group h2 {
	margin: 0 0 6px;
	font-size: var(--type-h2);
	font-weight: 700;
	letter-spacing: -0.015em;
	text-transform: capitalize;
}

.notes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 16px;
	margin-top: 20px;
}

.note {
	padding: 20px 24px;
	background: var(--raised);
	border-radius: var(--radius-lg);
	scroll-margin-top: calc(var(--nav-h) + 16px);
}

.note h3 {
	margin: 0 0 8px;
	font-size: 1rem;
}

.note .prose p:last-child {
	margin-bottom: 0;
}

.endpoint {
	margin-top: 20px;
	padding: 20px 24px 24px;
	background: var(--raised);
	border-radius: var(--radius-lg);
	scroll-margin-top: calc(var(--nav-h) + 16px);
}

.endpoint.is-hidden {
	display: none;
}

.endpoint header {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.path {
	font-size: var(--type-read);
	font-weight: 700;
	word-break: break-all;
}

.tag {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 8px;
	border-radius: var(--radius-sm);
	background: var(--line);
	color: var(--text-alt);
	font-size: var(--type-micro);
	font-weight: 800;
	letter-spacing: 0.04em;
	flex: none;
}

.method-get {
	background: rgb(var(--mod-rgb) / 0.14);
	color: var(--mod);
}

.method-post,
.method-put,
.method-patch {
	background: rgb(var(--vip-rgb) / 0.14);
	color: var(--vip);
}

.method-delete {
	background: rgb(var(--danger-rgb) / 0.14);
	color: var(--danger);
}

.lock {
	padding: 2px 8px;
	border-radius: var(--radius-sm);
	background: rgb(var(--founder-rgb) / 0.14);
	color: var(--founder);
	font-size: var(--type-micro);
	font-weight: 700;
}

.anchor {
	margin-left: auto;
	color: var(--text-dim);
	text-decoration: none;
	opacity: 0;
	transition: opacity var(--duration) var(--ease);
}

.endpoint:hover .anchor,
.anchor:focus {
	opacity: 1;
}

.desc {
	max-width: 68ch;
	margin: 12px 0 0;
	color: var(--text-alt);
	white-space: pre-line;
}

.desc,
.prose {
	overflow-wrap: anywhere;
}

.endpoint h3 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 22px 0 8px;
	font-size: var(--type-micro);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-dim);
}

.corner {
	display: block;
	width: 8px;
	height: 8px;
	flex: none;
	border: 2px solid currentColor;
}

.corner-tl {
	border-right: 0;
	border-bottom: 0;
	color: var(--mod);
}

.corner-br {
	border-left: 0;
	border-top: 0;
	color: var(--vip);
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--type-ui);
}

th {
	padding: 0 12px 8px 0;
	text-align: left;
	font-size: var(--type-micro);
	font-weight: 700;
	color: var(--text-dim);
	border-bottom: 1px solid var(--line-soft);
	white-space: nowrap;
}

td {
	padding: 10px 12px 10px 0;
	vertical-align: top;
	color: var(--text-alt);
	border-bottom: 1px solid var(--line-soft);
	white-space: nowrap;
}

td.wrap {
	white-space: normal;
	overflow-wrap: anywhere;
}

tr:last-child td {
	border-bottom: 0;
}

td code {
	color: var(--text);
}

.type {
	color: var(--mod);
}

.dim {
	color: var(--text-dim);
}

.req {
	margin-left: 6px;
	font-size: var(--type-micro);
	font-weight: 700;
	color: var(--founder);
}

.code {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 8px;
	border-radius: var(--radius-sm);
	background: var(--line);
	font-family: var(--font-mono);
	font-size: var(--type-micro);
	font-weight: 700;
	color: var(--text-alt);
}

.code-ok {
	background: rgb(var(--mod-rgb) / 0.14);
	color: var(--mod);
}

.code-bad {
	background: rgb(var(--danger-rgb) / 0.12);
	color: var(--danger);
}

.samples .tabs {
	display: flex;
	gap: 2px;
	margin-bottom: 8px;
}

.samples .tab {
	padding: 5px 12px;
	background: none;
	border: 0;
	border-radius: var(--radius-sm);
	color: var(--text-dim);
	font: inherit;
	font-size: var(--type-meta);
	font-weight: 700;
	cursor: pointer;
	transition:
		background-color var(--duration) var(--ease),
		color var(--duration) var(--ease);
}

.samples .tab:hover {
	color: var(--text);
}

.samples .tab.is-active {
	background: var(--line);
	color: var(--text);
}

.samples.is-switchable pre {
	display: none;
}

.samples.is-switchable pre.is-active {
	display: block;
}

pre {
	margin: 0;
	padding: 16px 18px;
	overflow-x: auto;
	background: var(--base);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
}

.body {
	margin-top: 10px;
}

.body > summary {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: var(--type-micro);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-dim);
	cursor: pointer;
	list-style: none;
}

.body > summary::-webkit-details-marker {
	display: none;
}

/* the same closing corner the Responses heading wears: this is that answer, drawn */
.body > summary::before {
	content: '';
	display: block;
	width: 8px;
	height: 8px;
	flex: none;
	border: 2px solid var(--vip);
	border-left: 0;
	border-top: 0;
}

.body > summary:hover {
	color: var(--text-alt);
}

.body pre {
	max-height: 26rem;
	overflow-y: auto;
}

pre code {
	color: var(--text-alt);
	font-size: var(--type-meta);
	line-height: 1.7;
}

.no-match {
	margin-top: 24px;
	color: var(--text-alt);
}

@media (max-width: 900px) {
	.shell {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.side {
		position: static;
		max-height: none;
		padding-bottom: 8px;
		border-bottom: 1px solid var(--line-soft);
	}

	.facts {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}

	.facts dd {
		margin-bottom: 10px;
	}
}

@media (max-width: 640px) {
	.nav-inner,
	.shell {
		padding-left: 16px;
		padding-right: 16px;
	}

	.nav-inner {
		gap: 12px;
	}

	.brand span,
	.btn {
		display: none;
	}

	.endpoint {
		padding: 16px 16px 20px;
	}

	.endpoint table {
		display: block;
		overflow-x: auto;
	}
}
