* {
	font-family: 'JetBrains Mono' !important;
}

body {
	margin: 0;
}

.markdown-body .highlight pre,
.markdown-body pre {
	font-size: 100%;
}

.highlight {
	background-color: var(--bgColor-muted) !important;
	border-radius: 6px;
}

@media (prefers-color-scheme: light) {
	body {
		background-color: #ffffff;
	}
}

@media (prefers-color-scheme: dark) {
	body {
		background-color: #0d1117;
	}

	td > a img,
	.card .card_subtitle a img,
	label img {
		filter: invert(100%);
	}
}

tr th:last-of-type {
	min-width: 100px;
}

tr th:first-of-type {
	width: 2016px;
}

tr th {
	white-space: nowrap;
}

tr th:not(:nth-last-child(-n + 2)) {
	cursor: pointer;
}

tr th:not(:nth-last-child(-n + 2)):hover {
	text-decoration: underline;
	text-decoration-style: dashed;
}

tr th[data-selected='true'] {
	text-decoration: underline;
	text-decoration-style: unset !important;
	text-decoration-color: var(--fgColor-accent);
}

.markdown-body table img,
.card .card_subtitle a img,
label img {
	vertical-align: middle;
	transform: scale(0.8);
	background-color: transparent !important;
}

.markdown-body {
	box-sizing: border-box;
	min-width: 200px;
	max-width: 980px;
	margin: 0 auto;
	padding: 45px;
}

.markdown-body > h1:first-of-type {
	display: none;
}

.markdown-body > h1:nth-of-type(2) {
	margin-top: 0 !important;
}

.bdr {
	position: relative;
	left: 0;
	top: 0;
	border-radius: 6px;
}

.search {
	appearance: none;
	background-color: #0000;
	border: 0;
	border-radius: inherit;
	width: 100%;
	padding: 14px 50px;
}

.search:focus,
.search:focus-visible,
.search:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px var(--fgColor-accent);
}

#search_icon {
	position: absolute;
	left: 1em;
	top: 50%;
	width: 1.2em;
	transform: translateY(-50%);
	fill: var(--fgColor-muted);
	padding-bottom: 1px;
	pointer-events: none;
}

@media (max-width: 767px) {
	.markdown-body {
		padding: 15px;
	}
}

.grid-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
	padding-top: 16px;
	margin-bottom: 16px;
	transform-style: preserve-3d;
}

.card {
	position: relative;
	min-height: 100px;
	/* background-color: red; */
	border-radius: 6px;
	font-size: 0;
	--c-h: 16px;
	margin-bottom: 20px;
	cursor: pointer;
	transition: all ease 200ms;
	transform: scale(1) rotateX(0deg);
	transform-style: preserve-3d;
	overflow: hidden;
}

.card:active {
	transform: scale(0.98) rotateX(3deg);
}

.card:active .card_preview_backdrop {
	opacity: 0.2;
}

.card .card_preview {
	border-radius: inherit;
	position: relative;
	pointer-events: none;
	user-select: none;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.card .card_preview_backdrop {
	pointer-events: none;
	user-select: none;
	position: absolute;
	width: auto;
	max-width: none;
	height: 100%;
	filter: contrast(2) brightness(3) blur(46px);
	top: 50%;
	left: 50%;
	opacity: 0.1;
	transform: translate(-50%, -50%);
	transition: inherit;
}

.card .card_title {
	font-size: 1rem;
	padding: 1em var(--c-h);
	padding-bottom: 0.5em;
	font-weight: 700;
}

.card .card_title a {
	color: var(--fgColor-default) !important;
	display: block;
}

.card .card_subtitle {
	font-size: 0.85rem;
	padding: 1em var(--c-h);
	padding-top: 0;
	font-weight: 500;
	display: flex;
	align-items: center;
	opacity: 0.85;
}

.card .card_subtitle a {
	margin-left: 10px;
}

input[type='radio'] {
	position: fixed;
	left: 0;
	top: 0;
	display: inline;
	opacity: 0.2;
	width: 2px;
	height: 2px;
	appearance: none;
}

#a1:not(:checked) ~ table {
	display: none;
}

#a2:not(:checked) ~ #showcase {
	display: none;
}

#a1:checked ~ #archive label:first-of-type,
#a2:checked ~ #archive label:last-of-type {
	background-color: var(--bgColor-muted) !important;
}

label {
	all: unset;
	appearance: none;
	font-size: 0;
	background-color: #0000;
	width: 2rem;
	height: 2rem;
	border-radius: 6px;
	display: inline-grid;
	place-items: center;
	margin: 0;
	vertical-align: middle;
	margin-left: 0.6rem;
	margin-top: -2px;
	cursor: pointer;
	transition: all ease 200ms;
}

label:hover {
	background-color: var(--bgColor-muted);
}

h1 {
	scroll-margin-top: 1em;
}
