:root {
	--background: #ffffff;
	--surface: #f0f0f0;
	--text: #000000;
	--muted: #555555;
	--line: #000000;
	--faint: #c8c8c8;
	--mark: #dcdcdc;
	--keyword: #396a2e;
	--function: #305d96;
	--type: #006b6c;
	--constant: #764781;
	--string: #884a16;
	--measure: 100ch;
	--prose: 72ch;
}

@media (prefers-color-scheme: dark) {
	:root {
		--background: #000000;
		--surface: #161616;
		--text: #ffffff;
		--muted: #ababab;
		--line: #ffffff;
		--faint: #3c3c3c;
		--mark: #303030;
		--keyword: #9aca90;
		--function: #91bef7;
		--type: #68cecd;
		--constant: #d6a7e1;
		--string: #eaaa7f;
	}
}

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

html {
	background: var(--background);
	color: var(--text);
	font:
		15px/1.6 ui-monospace,
		Menlo,
		'SF Mono',
		Consolas,
		'Liberation Mono',
		monospace;
	font-size: min(max(15px, 0.95vw), 22px);
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0 auto;
	max-width: var(--measure);
	padding: 0 2ch 2em;
	background: var(--background);
}

::selection {
	color: var(--background);
	background: var(--text);
}

a {
	color: var(--text);
	text-decoration: none;
	border-bottom: 1px solid var(--line);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
	outline: 2px solid var(--text);
	outline-offset: 2px;
}

b,
strong {
	font-weight: 700;
}

p {
	max-width: var(--prose);
}

h1,
h2,
h3 {
	font-weight: 700;
	overflow-wrap: anywhere;
}

h1 {
	font-size: 1.6em;
	line-height: 1.2;
	margin: 1.4em 0 0.3em;
	letter-spacing: -0.02em;
}

h2 {
	font-size: 1.15em;
	line-height: 1.3;
	margin: 0 0 0.9em;
}

h3 {
	font-size: 1em;
	margin: 1.6em 0 0.4em;
}

h1 span,
h2 span,
h3 span {
	color: var(--muted);
	font-weight: 400;
}

section {
	margin: 2.6em 0 0;
	padding-top: 1.4em;
	border-top: 1px solid var(--line);
}

code,
pre,
input,
button {
	font: inherit;
}

pre {
	margin: 1em 0;
	padding: 0.8em 1.2ch;
	font-size: 0.87em;
	overflow-x: auto;
	line-height: 1.5;
	tab-size: 2;
	background: var(--surface);
	border-radius: 3px;
}

button {
	color: var(--text);
	background: var(--background);
	border: 1px solid var(--line);
	border-radius: 3px;
	cursor: pointer;
}

button:hover {
	color: var(--background);
	background: var(--text);
}

.muted {
	color: var(--muted);
}

.muted a {
	color: var(--muted);
	border-bottom-color: var(--muted);
}

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

.id {
	overflow-wrap: anywhere;
}

.meta {
	margin: 0;
	font-size: 0.87em;
	color: var(--muted);
	overflow-wrap: anywhere;
}

.meta a {
	color: var(--muted);
	border-bottom-color: var(--muted);
}

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

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.site-header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.4em 2ch;
	padding: 1.2em 0 0;
	font-size: 0.87em;
}

.site-header a {
	border: 0;
}

.brand {
	font-weight: 700;
}

.site-header nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0 2ch;
}

.site-header nav a[aria-current] {
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

.top-search {
	margin: 1.6em 0 0;
}

.search-form {
	display: flex;
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 3px;
}

.search-field {
	position: relative;
	display: flex;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	background: var(--background);
	border-radius: 3px 0 0 3px;
}

.search-form input {
	position: relative;
	flex: 1;
	min-width: 0;
	padding: 0.4em 1ch;
	color: var(--text);
	background: var(--background);
	border: 0;
	border-radius: 3px 0 0 3px;
}

.search-marks {
	position: absolute;
	inset: 0;
	padding: 0.4em 1ch;
	overflow: hidden;
	white-space: pre;
	pointer-events: none;
}

.search-line {
	display: inline-block;
}

.search-marks .filter {
	color: var(--keyword);
}

.search-marks .filter-value {
	color: var(--string);
}

.search-form.highlighted input {
	color: transparent;
	caret-color: var(--text);
	background: transparent;
}

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

.search-form input::placeholder {
	color: var(--muted);
	opacity: 1;
}

.search-form input:focus-visible {
	outline-offset: -3px;
}

.search-form button {
	padding: 0.4em 1.6ch;
	font-weight: 700;
	color: var(--background);
	background: var(--text);
	border: 0;
	border-radius: 0 1px 1px 0;
}

.search-form button:hover {
	text-decoration: underline;
}

.search-form.large input,
.search-form.large .search-marks,
.search-form.large button {
	padding: 0.6em 1.6ch;
	font-size: 1.1em;
}

.hero {
	padding: 3.4em 0 1.6em;
	text-align: center;
}

.hero h1 {
	margin: 0;
	font-size: 2.9em;
	line-height: 1;
}

.hero h1::after {
	content: '';
	display: inline-block;
	width: 0.5em;
	height: 0.9em;
	margin-left: 0.12em;
	vertical-align: -0.08em;
	background: var(--text);
	animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
	50% {
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero h1::after {
		animation: none;
	}
}

.hero p {
	max-width: none;
}

.sub {
	margin: 1.2em 0 0;
}

.tag {
	margin: 0.5em 0 0;
	color: var(--muted);
	font-size: 0.87em;
}

.tag b {
	color: var(--text);
}

.tag span {
	white-space: nowrap;
}

.examples {
	max-width: none;
	margin: 0.8em 0 0;
	font-size: 0.87em;
}

.examples a {
	white-space: nowrap;
}

.home {
	max-width: var(--prose);
	margin: 0 auto;
}

.head {
	margin: 0.6em 0 0;
}

.import {
	display: flex;
	align-items: flex-start;
	gap: 1ch;
	margin: 0.6em 0 0;
	padding: 0.25em 0.5ch 0.25em 1.2ch;
	font-size: 0.87em;
	border: 1px solid var(--line);
	border-radius: 3px;
}

.import code {
	flex: 1;
	min-width: 0;
	padding: 0.1em 0;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	user-select: all;
	cursor: text;
}


.use {
	margin: 0.5em 0 0;
	font-size: 0.87em;
	color: var(--muted);
}

.use code {
	color: var(--text);
}

pre .comment {
	color: var(--muted);
}

pre .keyword {
	color: var(--keyword);
}

pre .string {
	color: var(--string);
}

pre .number,
pre .constructor {
	color: var(--constant);
}

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

pre .function {
	color: var(--function);
}

pre .declared {
	font-weight: 700;
}

pre a {
	border-bottom: 0;
}

pre a:hover span {
	color: inherit;
}

.source {
	padding-left: 0;
	padding-right: 0;
}

.source code {
	display: inline-block;
	min-width: 100%;
}

.source .line {
	display: block;
	padding-right: 1.2ch;
	white-space: pre;
	scroll-margin: 4em 0;
}

.source .n {
	display: inline-block;
	width: 6ch;
	margin-right: 2ch;
	padding-right: 1ch;
	text-align: right;
	color: var(--muted);
	border: 0;
	user-select: none;
}

.source .n:hover {
	color: var(--text);
	background: transparent;
}

.source span.n:hover {
	color: var(--muted);
}

.source .line:target,
.source .line.marked {
	background: var(--mark);
	box-shadow: inset 3px 0 0 var(--text);
}

.source .line:target .n,
.source .line.marked .n {
	color: var(--text);
	font-weight: 700;
}

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

.list > li {
	padding: 1.1em 0;
}

.list > li + li {
	border-top: 1px solid var(--faint);
}

.list > li:first-child {
	padding-top: 0;
}

.list > li:last-child {
	padding-bottom: 0;
}

.title {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1ch;
	align-items: baseline;
	font-weight: 700;
}

.title .muted {
	font-weight: 400;
}

.results {
	margin-top: 1.6em;
}

.ids {
	margin: 0;
	padding: 0;
	list-style: none;
	line-height: 1.8;
	overflow-wrap: anywhere;
}


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

.defs li {
	padding: 0.2em 0;
}

.defs .summary {
	display: block;
	margin-left: 2ch;
	font-size: 0.87em;
	color: var(--muted);
	overflow-wrap: anywhere;
}

.module {
	margin: 1.8em 0 0.4em;
	padding-bottom: 0.3em;
	font-size: 0.87em;
	font-weight: 400;
	border-bottom: 1px solid var(--faint);
}

.module:first-of-type {
	margin-top: 0;
}

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

.files li {
	display: flex;
	justify-content: space-between;
	gap: 2ch;
	padding: 0.15em 0;
}

.files a {
	overflow-wrap: anywhere;
}

.files .muted {
	flex: none;
	font-size: 0.87em;
}

.release .title a {
	font-weight: 700;
}

.releases > li {
	padding: 0.5em 0;
}

.releases > li:has(.problem) {
	padding: 1em 0;
}

.badge {
	padding: 0 0.6ch;
	font-size: 0.87em;
	font-weight: 700;
	border: 1px solid var(--line);
	border-radius: 2px;
}

.badge.invalid {
	color: var(--background);
	background: var(--text);
}

.badge.unindexed {
	font-weight: 400;
	color: var(--muted);
	border-color: var(--faint);
}

.problem {
	margin: 0.7em 0 0;
	padding: 0.1em 0 0.1em 1.4ch;
	border-left: 2px solid var(--line);
}

.problem p {
	margin: 0;
	overflow-wrap: anywhere;
}

.problem .meta {
	margin-top: 0.2em;
}

.problem details {
	margin-top: 0.2em;
	font-size: 0.87em;
}

.problem details > summary {
	color: var(--muted);
	cursor: pointer;
}

.problem details ul {
	margin: 0.3em 0 0;
	padding: 0 0 0 2ch;
	list-style: none;
}

.table {
	width: 100%;
	overflow-x: auto;
}

table {
	width: 100%;
	border-collapse: collapse;
}

th,
td {
	padding: 0.3em 2ch 0.3em 0;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--faint);
}

th {
	font-weight: 700;
	border-bottom-color: var(--line);
}

th span {
	font-weight: 400;
}

tbody tr:last-child > * {
	border-bottom: 0;
}

th:last-child,
td:last-child {
	padding-right: 0;
}

.number {
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.live {
	font-weight: 700;
}

.pager {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em 2ch;
	align-items: baseline;
	margin-top: 1.6em;
}

@media (max-width: 40em) {
	html {
		font-size: 14px;
	}

	body {
		padding: 0 16px 2em;
	}

	h1 {
		font-size: 1.35em;
	}

	.hero {
		padding: 2.4em 0 1.2em;
	}

	.hero h1 {
		font-size: 2.4em;
	}

	.source .n {
		width: 4.5ch;
		margin-right: 1ch;
	}
}

@media (min-width: 40.01em) {
	.defs .summary {
		display: inline;
		margin-left: 1ch;
	}
}
