/**
 * a11y-dark theme for JavaScript, CSS, and HTML
 * Based on the okaidia theme: https://github.com/PrismJS/prism/blob/gh-pages/themes/prism-okaidia.css
 * @author ericwbailey
 */

/* Inline code */
:not(pre) > code[class*="language-"] {
	padding: 0.1em;
	border-radius: 0.3em;
	white-space: normal;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
	color: #d4d0ab;
}

.token.punctuation {
	color: #ccc;
}

.token.liquid,
.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
	color: #ffa07a;
}

.token.boolean,
.token.number {
	color: #00e0e0;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
	color: #abe338;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string,
.token.variable {
	color: #00e0e0;
}

.token.atrule,
.token.attr-value,
.token.function {
	color: #ffd700;
}

.token.keyword {
	color: #00e0e0;
}

.token.regex,
.token.important {
	color: #ffd700;
}

.token.important,
.token.bold {
	font-weight: bold;
}
.token.italic {
	font-style: italic;
}

.token.entity {
	cursor: help;
}

@media screen and (-ms-high-contrast: active) {
	code[class*="language-"],
	pre[class*="language-"] {
		color: windowText;
		background: window;
	}

	:not(pre) > code[class*="language-"],
	pre[class*="language-"] {
		background: window;
	}

	.token.important {
		background: highlight;
		color: window;
		font-weight: normal;
	}

	.token.atrule,
	.token.attr-value,
	.token.function,
	.token.keyword,
	.token.operator,
	.token.selector {
		font-weight: bold;
	}

	.token.attr-value,
	.token.comment,
	.token.doctype,
	.token.function,
	.token.keyword,
	.token.operator,
	.token.property,
	.token.string {
		color: highlight;
	}

	.token.attr-value,
	.token.url {
		font-weight: normal;
	}
}
.highlight-line {
	display: inline-block;

	/* del, ins, mark default styles */
	text-decoration: none;
	color: inherit;
}

/* allow highlighting empty lines */
.highlight-line:empty:before {
	content: " ";
}

.highlight-line {
	min-width: 100%;
}
.highlight-line .highlight-line {
	min-width: 0;
}

.highlight-line-isdir {
	color: #b0b0b0;
	background-color: #222;
}
.highlight-line-active {
	background-color: #444;
	background-color: hsla(0, 0%, 27%, 0.8);
}
.highlight-line-add {
	background-color: #45844b;
}
.highlight-line-remove {
	background-color: #902f2f;
}

pre[class*="language-diff-"] {
	padding-left: 0;
	padding-right: 0;
}
.token.deleted {
	background-color: hsl(350deg 100% 88% / 20%);
}
.token.inserted {
	background-color: hsl(120deg 73% 75% / 20%);
}
.token.inserted:not(.prefix),
.token.deleted:not(.prefix) {
	display: block;
}
.token.prefix.unchanged,
.token.prefix.inserted,
.token.prefix.deleted {
	-webkit-user-select: none;
	user-select: none;
	margin-right: 0.5em;
	padding: 0 0.2em;
}
/* Popover */
details.elv-popover {
	position: relative;
}
details.elv-popover summary + * {
	position: absolute;
	z-index: 999;
	background-color: var(--background-color);
	color: var(--color);
	border: 1px solid #000;
	padding: 0.5rem;
	box-shadow: 0 0 0 0.3rem var(--shadow-color);
}
details.elv-popover * {
	white-space: nowrap;
}
.elv-popover a {
	display: block;
	text-decoration: none;
	padding-inline: 0.5rem;
	margin-inline: -0.5rem;
}
.elv-popover a:hover,
.elv-popover a:focus {
	background-color: #222;
	color: #fff;
}
.elv-popover a:hover code,
.elv-popover a:focus code {
	background-color: #fff;
	color: #222;
}

@media (prefers-color-scheme: dark) {
	.elv-popover a:hover,
	.elv-popover a:focus {
		background-color: #fff;
		color: #222;
	}
	.elv-popover a:hover code,
	.elv-popover a:focus code {
		background-color: #222;
		color: #fff;
	}
}
.icon,
.avatar,
blockquote img {
	height: 1.3em;
	width: 1.3em;
	display: inline-block;
	vertical-align: text-top;
	margin-left: 2px;
	margin-right: 6px;
}
main .icon[height] {
	height: 1.3em;
	width: 1.3em;
	object-fit: cover;
}
.avatar-large {
	height: 1.5em;
	width: 1.5em;
}
.avatar,
blockquote img {
	border-radius: 50%;
}
.avatar-indieweb {
	border-radius: 0.25em;
}
.icon,
.avatar {
	vertical-align: middle;
}
ul:not(.list-bare):not(.inlinelist) > li > a > .avatar {
	width: auto;
	height: 1.111111111111em; /* 20px /18 */
	vertical-align: top;
	margin-left: 4px;
	margin-right: 4px;
}
ul:not(.list-bare):not(.inlinelist) > li > a > .avatar-large {
	width: 1.444444444444em; /* 26px /18 */
	height: 1.444444444444em; /* 26px /18 */
	object-fit: contain;
	margin-right: 0.3888888888889em; /* 7px /18 */
}
blockquote .bio-source {
	white-space: nowrap;
}

h1 .avatar {
	height: 0.7em;
	width: 0.7em;
	vertical-align: baseline;
}
.subhed {
	display: block;
	font-family: system-ui, sans-serif;
	font-size: 0.9375em; /* 15px /16 */
	line-height: 1;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin: 0;
	color: #666;
	text-align: center;
	border: none;
}
@media (prefers-color-scheme: dark) {
	.subhed {
		color: #adadad;
	}
}
label.radio-align,
input[type="radio"] + label {
	vertical-align: middle;
}
input[type="checkbox"] {
	width: 1.4em;
	height: 1.4em;
}

/* Big primary button */
.btn-form,
.btn-primary {
	cursor: pointer;
	border: 2px solid;
	font-size: 1em;
	text-align: center;
	font-weight: 700;
	text-transform: uppercase;
	text-decoration: none;
	color: inherit;
	background-color: inherit;
}
@media (prefers-color-scheme: dark) {
	.btn-form {
		background-color: #000;
		border-color: transparent;
	}
}
.btn-form {
	border-radius: 1em;
	padding-left: 0.75em;
	padding-right: 0.75em;
	box-shadow: 0 4px 3px -3px #000;
}
.btn-primary {
	display: block;
	border-radius: 1.5em;
	margin: 0;
	padding: 0.5em 1em 0.4em;
	box-shadow: 0 8px 6px -6px #000;
}

.btn-form:hover,
.btn-form:focus,
.btn-primary:hover {
	border-color: transparent;
	background-color: #222;
	color: #fff;
}
@media (prefers-color-scheme: dark) {
	.btn-form:focus,
	.btn-form:hover {
		background-color: #fff;
		color: #222;
	}
}
.btn-primary:hover {
	border-color: rgba(255, 255, 255, 0.3);
}
.btn-primary span {
	text-transform: none;
}
.btn-c {
	margin-left: auto;
	margin-right: auto;
}
@media (min-width: 20em) {
	.btn-primary {
		font-size: 6vw;
	}
	.btn-primary-sm,
	.btn-primary-standard {
		font-size: 1.4em;
	}
}
@media (min-width: 28.125em) {
	/* 450px */
	.btn-primary-sm {
		font-size: 5.6vw;
	}
	.btn-primary-standard {
		font-size: 4vw;
	}
}
@media (min-width: 53.125em) {
	/* 850px */
	.btn-primary-sm {
		font-size: 2.666666666667em; /* 48px /18 */
	}
	.btn-primary-standard {
		font-size: 1.666666666667em; /* 30px /18 */
	}
}
@media (min-width: 87.5em) {
	/* 1400px */
	.btn-primary {
		font-size: 5.25em; /* 84px /16 */
	}
}
.btn-primary-nogrow {
	font-size: 1.4em;
}
/* Tables */
table {
	border-collapse: collapse;
	margin-bottom: 2em;
}
table th,
table td {
	text-align: left;
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
	padding: 0.4em;
	font-size: 0.8125em; /* 13px /16 */
	vertical-align: top;
}
table thead th {
	font-weight: 300;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 0.75em; /* 12px /16 */
	border-top: none;
}
table thead th code {
	text-transform: none;
}
table th:first-child,
table td:first-child {
	padding-left: 0;
}
table th {
	border-color: var(--border-color);
}
table thead th {
	color: #222;
}
table thead th a[href] {
	color: inherit;
}
table .numeric {
	white-space: nowrap;
	text-align: right;
	font-family:
		Roboto Mono,
		Consolas,
		Monaco,
		Andale Mono,
		Ubuntu Mono,
		monospace;
}
.numeric-down:not(.numeric-before, .numeric-after):before, /* default position before */
.numeric-up:not(.numeric-before, .numeric-after):before, /* default position before */
.numeric-before {
	--rating-margin: 0 0.25em 0 0;
}
.numeric-after {
	--rating-margin: 0 0 0 0.25em;
}
.numeric-note {
	--rating-character: "*";
	--rating-margin: 0 0.25em;
	--rating-color: red;
}
.numeric-up {
	--rating-character: "↑";
	--rating-color: green;
}
.numeric-down {
	--rating-character: "↓";
	--rating-color: red;
}
.numeric-good {
	--rating-color: green;
}
.numeric-bad {
	--rating-color: red;
}
.numeric-note:before,
.numeric-up:not(.numeric-before, .numeric-after):before, /* default position before */
.numeric-down:not(.numeric-before, .numeric-after):before, /* default position before */
.numeric-before:before,
.numeric-after:after {
	content: var(--rating-character);
	margin: var(--rating-margin);
	font-weight: bold;
	font-family: system-ui, sans-serif;
	color: var(--rating-color);
}

@media (prefers-color-scheme: dark) {
	table td {
		border-color: #333;
	}
	table thead th {
		color: #ddd;
	}
}
h2 + table {
	margin-top: -0.625em; /* -10px /16 */
}

@media (min-width: 37.5em) {
	/* 600px */
	table th,
	table td {
		padding: 0.4em 0.8em;
		font-size: 1em; /* 16px /16 */
	}
	table thead th {
		font-size: 0.875em; /* 14px /16 */
	}
}
/* Mini link */
.minilink {
	display: inline-block;
	padding: 0.125em 0.375em;
	text-transform: uppercase;
	font-size: 0.875rem; /* 14px /16 */
	text-decoration: none;
	background-color: #ddd;
	border-radius: 0.1875em; /* 3px /16 */
	font-weight: 500;
	margin: 0 0.4285714285714em 0.07142857142857em 0; /* 0 6px 1px 0 /14 */
	line-height: 1.285714285714; /* 18px /14 */
	font-family: system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
	.minilink.minilink {
		background-color: #222;
		color: #fff;
	}
}
table .minilink {
	margin-top: 6px;
}
.minilink[href] {
	box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.5);
}
.minilink[href]:hover,
.minilink[href]:focus {
	background-color: #eee;
}
@media (prefers-color-scheme: dark) {
	.minilink[href]:hover,
	.minilink[href]:focus {
		background-color: #444;
	}
}
pre + .minilink {
	color: #fff;
	border-radius: 0 0 0.2857142857143em 0.2857142857143em; /* 4px /14 */
	float: right;
	background-color: #444;
	color: #fff;
}
pre[class*="language-"] + .minilink {
	position: relative;
	top: -0.7142857142857em; /* -10px /14 */
}
p.minilink {
	float: right;
	margin-left: 2em;
	margin-bottom: 2em;
}
h1 .minilink,
h2 .minilink,
h3 .minilink,
h4 .minilink {
	font-size: 0.9375rem; /* 15px /16 */
	vertical-align: middle;
	margin-left: 1em;
}
h3 .minilink,
h4 .minilink {
	font-size: 0.8125rem; /* 13px /16 */
}
.minilink + pre[class*="language-"] {
	clear: both;
}

.minilink-addedin {
	text-transform: none;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}
@media (prefers-color-scheme: dark) {
	.minilink-addedin {
		box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
	}
}
.minilink-addedin:not(:first-child) {
	margin-left: 0.5em;
}
.minilink-addedin.minilink-inline {
	margin: 0 4px;
	background-color: #fff;
}
@media (prefers-color-scheme: dark) {
	.minilink-addedin.minilink-inline {
		background-color: #000;
	}
}

.minilink-lower {
	text-transform: none;
	background-color: transparent;
}
.minilink-lower[href] {
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.minilink-lower[href]:hover,
.minilink-lower[href]:focus {
	background-color: #eee;
}

.minilink > .minilink {
	margin: -0.125em 0.375em -0.125em -0.375em;
	box-shadow: none;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}

/* Build cost */
.minilink-buildcost {
	--internal-shadow-hsl: 0deg 0% 75%;
	font-weight: 700;
	text-transform: uppercase;
	/* via https://www.joshwcomeau.com/shadow-palette/ */
	box-shadow:
		0px 0.3px 0.5px hsl(var(--internal-shadow-hsl) / 0),
		0.1px 4.3px 6.5px hsl(var(--internal-shadow-hsl) / 0.14);
}
.minilink-buildcost code:before {
	content: "🧰";
	margin-right: 0.25em;
}

a[href]:hover .minilink-buildcost,
a[href]:focus .minilink-buildcost {
	outline: 2px solid blue;
}

/* GitHub star count */
.minilink-github.minilink-github {
	background-color: #f6f8fa;
	color: #222;
}
.minilink-github > :first-child {
	color: #eac54f;
}
/* GitHub star count, home page variant (dark theme) */
.elv-header-default .minilink-github {
	background-color: #222;
	color: #fff;
}
.elv-header-default .minilink[href]:hover,
.elv-header-default .minilink[href]:focus {
	background-color: #444;
}
@media (prefers-color-scheme: dark) {
	.minilink-github.minilink-github {
		background-color: #222;
		color: #fff;
	}
}
/* External links */
a[href^="https://"]:not(
		[href^="https://blog.w3c.cool"],
		[href^="https://blog.w3c.cool"],
		.minilink,
		.elv-externalexempt
	) {
	text-decoration-color: var(--external-link-underline);
}
a[href^="https://"]:not(
		[href^="https://blog.w3c.cool"],
		[href^="https://blog.w3c.cool"],
		.minilink,
		.elv-externalexempt
	):after {
	content: " ↗";
	font-family: system-ui, sans-serif;
	font-style: normal;
	font-weight: 900;
	color: var(--external-link-underline);
	padding-left: 0;
	font-size: 0.75em;
	line-height: 0.75;
	letter-spacing: -0.08333333333333em; /* -1px /12 */
}
/* Contains Font Awesome icon */
a[href^="https://"]:not(
		[href^="https://blog.w3c.cool"],
		[href^="https://blog.w3c.cool"],
		.minilink,
		.elv-externalexempt
	):has(.fa11ty-icon):after {
	content: "";
}

/* External link hovers */
a[href^="https://"]:not(
		[href^="https://blog.w3c.cool"],
		[href^="https://blog.w3c.cool"],
		.minilink,
		.elv-externalexempt
	):hover:after {
	color: inherit;
}

/* CSS-only favicons https://blog.w3c.cool/web/external-link-favicons/
 * Limited to YouTube and GitHub only (most commonly used)
 */
a:is([href^="https://www.youtube.com"], [href^="https://youtube.com"]):not(
		.elv-externalexempt
	):before,
a[href^="https://github.com"]:not(.elv-externalexempt):before {
	content: "";
	display: inline-block;
	vertical-align: text-bottom;
	width: 1em;
	height: 1em;
	margin: 0 0.2em;
	background-size: contain;
	background-repeat: no-repeat;
}
a:is([href^="https://www.youtube.com"], [href^="https://youtube.com"]):not(
		.elv-externalexempt
	):after,
a[href^="https://github.com"]:not(.elv-externalexempt):after {
	display: none;
}

a:is([href^="https://www.youtube.com"], [href^="https://youtube.com"]):before {
	/* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. */
	/* https://fontawesome.com/icons/youtube?f=classic&s=brands */
	background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20576%20512%22%3E%3Cpath%20fill%3D%22%23f03%22%20d%3D%22M549.7%20124.1c-6.3-23.7-24.8-42.3-48.3-48.6C458.8%2064%20288%2064%20288%2064S117.2%2064%2074.6%2075.5c-23.5%206.3-42%2024.9-48.3%2048.6-11.4%2042.9-11.4%20132.3-11.4%20132.3s0%2089.4%2011.4%20132.3c6.3%2023.7%2024.8%2041.5%2048.3%2047.8C117.2%20448%20288%20448%20288%20448s170.8%200%20213.4-11.5c23.5-6.3%2042-24.2%2048.3-47.8%2011.4-42.9%2011.4-132.3%2011.4-132.3s0-89.4-11.4-132.3zm-317.5%20213.5V175.2l142.7%2081.2-142.7%2081.2z%22%2F%3E%3C%2Fsvg%3E");
}
a[href^="https://github.com"]:before {
	border-radius: 7px;
	box-shadow: 0px 0px 0px 2px #fff;
	background-color: #fff;
	/* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc. */
	/* https://fontawesome.com/icons/github?f=classic&s=brands */
	background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20496%20512%22%3E%3Cpath%20fill%3D%22%23000%22%20d%3D%22M165.9%20397.4c0%202-2.3%203.6-5.2%203.6-3.3%20.3-5.6-1.3-5.6-3.6%200-2%202.3-3.6%205.2-3.6%203-.3%205.6%201.3%205.6%203.6zm-31.1-4.5c-.7%202%201.3%204.3%204.3%204.9%202.6%201%205.6%200%206.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5%20.3-6.2%202.3zm44.2-1.7c-2.9%20.7-4.9%202.6-4.6%204.9%20.3%202%202.9%203.3%205.9%202.6%202.9-.7%204.9-2.6%204.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8%208C106.1%208%200%20113.3%200%20252c0%20110.9%2069.8%20205.8%20169.5%20239.2%2012.8%202.3%2017.3-5.6%2017.3-12.1%200-6.2-.3-40.4-.3-61.4%200%200-70%2015-84.7-29.8%200%200-11.4-29.1-27.8-36.6%200%200-22.9-15.7%201.6-15.4%200%200%2024.9%202%2038.6%2025.8%2021.9%2038.6%2058.6%2027.5%2072.9%2020.9%202.3-16%208.8-27.1%2016-33.7-55.9-6.2-112.3-14.3-112.3-110.5%200-27.5%207.6-41.3%2023.6-58.9-2.6-6.5-11.1-33.3%202.6-67.9%2020.9-6.5%2069%2027%2069%2027%2020-5.6%2041.5-8.5%2062.8-8.5s42.8%202.9%2062.8%208.5c0%200%2048.1-33.6%2069-27%2013.7%2034.7%205.2%2061.4%202.6%2067.9%2016%2017.7%2025.8%2031.5%2025.8%2058.9%200%2096.5-58.9%20104.2-114.8%20110.5%209.2%207.9%2017%2022.9%2017%2046.4%200%2033.7-.3%2075.4-.3%2083.6%200%206.5%204.6%2014.4%2017.3%2012.1C428.2%20457.8%20496%20362.9%20496%20252%20496%20113.3%20383.5%208%20244.8%208zM97.2%20352.9c-1.3%201-1%203.3%20.7%205.2%201.6%201.6%203.9%202.3%205.2%201%201.3-1%201-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7%201.3%20.3%202.9%202.3%203.9%201.6%201%203.6%20.7%204.3-.7%20.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3%20.7zm32.4%2035.6c-1.6%201.3-1%204.3%201.3%206.2%202.3%202.3%205.2%202.6%206.5%201%201.3-1.3%20.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6%201-1.6%203.6%200%205.9%201.6%202.3%204.3%203.3%205.6%202.3%201.6-1.3%201.6-3.9%200-6.2-1.4-2.3-4-3.3-5.6-2z%22%2F%3E%3C%2Fsvg%3E");
}
a[href^="https://github.com"].elv-skipicon:before {
	display: none;
}

/* Not in the facepile or in the community links cards */
.sites-site-vert a[href^="https://github.com"]:before,
.sites-site-vert
	a:is([href^="https://www.youtube.com"], [href^="https://youtube.com"]):before,
a[href^="https://youtube.com"].lty-playbtn:before,
.facepile a[href^="https://github.com"]:before {
	display: none;
}

/* Hide duplicate images */
a:is([href^="https://www.youtube.com"], [href^="https://youtube.com"]):not(
		.elv-externalexempt
	)
	.avatar,
a[href^="https://github.com"]:not(.elv-externalexempt) .avatar {
	display: none;
}