/* ==========================================================================
	 Variables
	 ========================================================================== */
:root {
	/* Lightness values that change in dark mode */
	--main-l: 100%;
	--bg-l: 94%;
	--border-l: 86%;
	--text-l: 20%;
	--text-strong-l: 10%;
	--link-l: 58%;
	--loud-l: 40%;
	--hover-bg-l-delta: -6%;
	--active-bg-l-delta: -10%;

	/* Computed colors (depend on lightness values above) */
	--main: hsl(221, 14%, var(--main-l));
	--bg: hsl(221, 14%, var(--bg-l));
	--border: hsl(221, 14%, var(--border-l));
	--text: hsl(221, 14%, var(--text-l));
	--text-strong: hsl(221, 14%, var(--text-strong-l));
	--code: hsl(348, 100%, var(--loud-l));

	/* Constants */
/*	--navbar-height: 2.75em; */
/*	--column-gap: -0.75em; */
}

/* ==========================================================================
	 Reset
	 ========================================================================== */
html,
body,
p,
ol,
ul,
li,
blockquote,
pre,
hr,
h1,
h2 {
	margin: 0;
	padding: 0;
}
ul {
	list-style: none;
}
/* button, */
input {
	margin: 0;
}
html {
/*	background-color: white; */
	background-color: var(--main);
	box-sizing: border-box;
	font-size: 1em;
/*	min-width: 300px; */
	overflow-x: hidden;
	overflow-y: auto;
	text-rendering: optimizeLegibility;
/*	some webkit bullshit */
	text-size-adjust: 100%;
}
*,
*:before,
*:after {
	box-sizing: inherit;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
td,
th {
	padding: 0;
}
body {
/*	color: #2E333D; */
	color: var(--text);
	font-size: 1em;
	font-weight: 400;
	line-height: 1.5;
	padding: 0.75em 0;
}

/* ==========================================================================
	 Typography
	 ========================================================================== */
* {
	font-family:
		Victor Mono Medium,
		serif;
}
em > em,
em > i,
i > i,
i > em {
	font-style: normal;
}
code,
code *,
pre.chroma,
tt {
	font-family:
		Victor Mono Medium,
		monospace,
		monospace;
	font-variant-numeric: tabular-nums;
}
h1,
h2,
h3,
h4,
h5,
h6 {
	font-style: italic;
}
h1 em,
h2 em,
h3 em,
h4 em,
h5 em,
h6 em {
	font-style: normal;
}
h1,
h2,
h3 {
	font-weight: normal;
	font-size: 125%;
}
h4,
h5,
h6 {
	font-weight: bold;
	font-size: 110%;
}
/* h6 { */
/* 	font-weight: bold; */
/* 	font-size: 100%; */
/* } */
strong {
	color: var(--text-strong);
	font-weight: bolder;
}
time {
	font-weight: bold;
}
.title {
	word-break: break-word;
	color: var(--text-strong);
	font-size: 150%;
	font-weight: bold;
	line-height: 1.125;
	margin: 1em;
}
/*.title em, */
/*.title span { */
/*	font-weight: inherit; */
/*} */
/*.title sub, */
/*.title sup { */
/*	font-size: 0.75em; */
/*} */
/*.title .tag { */
/*	vertical-align: middle; */
/*} */
/*.title strong { */
/*	color: inherit; */
/*	font-weight: inherit; */
/*} */
/*.title:has(+ .subtitle) { */
/*	margin-bottom: 0; */
/*} */
.subtitle {
	font-style: normal;
	font-weight: normal;
	text-align: center;
	font-size: 110%;
	margin: 0;
	padding: 0;
}
span.subtitle {
	font-size: 80%;
}
/* ==========================================================================
	 Base Elements
	 ========================================================================== */
/* a, */
/* button { */
a {
	cursor: pointer;
}
:focus-visible {
	outline: medium solid lightseagreen;
	outline-offset: 1px;
	z-index: 1;
}
:active {
	outline-width: thin;
}
a,
#search a {
	color: hsl(233, 100%, var(--link-l));
	text-decoration: underline;
}
a:visited,
.menu-list a:visited,
#search a:visited {
	color: purple;
}
a strong {
	color: currentColor;
}

/* button { */
/*	appearance: none; */
/*	background: none; */
/*	border: none; */
/*	color: inherit; */
/*	font-family: inherit; */
/*	font-size: 1em; */
/*	margin: 0; */
/*	padding: 0; */
/* } */

code {
	background-color: var(--bg);
	color: var(--code);
	counter-reset: lineNo;
	font-size: 0.875em;
	font-weight: normal;
	padding: 0.2em 0.5em;
}
/* definition list elements. definition term; definition... definition */
dt {
	font-weight: bold;
	font-size: 105%;
}
/*dt:after { */
/*	content: ":"; */
/*} */
/* dd { */
/* 	font-style: italic; */
/* } */
pre {
	background-color: var(--bg);
	color: var(--text);
	font-size: 0.875em;
	overflow-x: auto;
	padding: 1.25em 1.5em;
	white-space: pre;
	word-wrap: normal;
}
pre code {
	background-color: transparent;
	color: currentColor;
	font-size: 1em;
	padding: 0;
}
pre.indented {
	all: inherit;
}
hr {
	border-color: var(--bg);
	margin: 1.5em auto;
	width: 90%;
}
img {
	height: auto;
	max-width: 100%;
}
input[type="checkbox"] {
	vertical-align: baseline;
}
table td,
table th {
	vertical-align: top;
}
table td:not([align]),
table th:not([align]) {
	text-align: inherit;
}
table th {
	color: var(--text-strong);
}
.table-of-contents summary::marker {
	display: none;
	content: "";
}
video {
	display: block;
	max-width: 100%;
	margin: 0 auto;
}

/* ==========================================================================
	 Components
	 ========================================================================== */
/* Block spacing ----------------------------------------------------------- */
/*.message:not(:last-child), */
/*.table:not(:last-child), */
/*.content:not(:last-child), */
/*.buttons:not(:last-child) { */
/*	margin-bottom: 0.5em; */
/*} */

.message,
.table,
.content,
.buttons, {
	margin-bottom: 0.5em;
}

.message:last-child,
.table:last-child,
.content:last-child,
.buttons:last-child {
	margin-bottom: 0;
}

/* Button ------------------------------------------------------------------ */
/* Base layout only; visual style (bg, border, color) set by Win95 Chrome */
.button {
	align-items: center;
	appearance: none;
	cursor: pointer;
	display: inline-block;
	 display: inline-flex;
	font-size: 1em;
	font-weight: 500;
	justify-content: center;
/*	line-height: 1.5; */
	padding: calc(0.5em - 1px) calc(1em - 1px);
	position: relative;
	user-select: none;
	white-space: nowrap;
	outline-offset: 0;
}
/*.button .icon { */
/*.button .icon.is-small { */
/*	height: 1.5em; */
/*	width: 1.5em; */
/*} */
/*.button .icon { */
/*	margin: 0 -0.5em; */
/*} */
.button.is-small {
	font-size: 0.75em;
	padding: 0.4em 0.35em;
}
.buttons {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em;
	justify-content: flex-start;
}

/* Content ----------------------------------------------------------------- */
.content li + li {
	margin-top: 0.25em;
}

/*.content p:not(:last-child), */
/*.content ol:not(:last-child), */
/*.content ul:not(:last-child), */
/*.content blockquote:not(:last-child), */
/*.content pre:not(:last-child), */
/*.content table:not(:last-child) { */
/*	margin-bottom: 1em; */
/*} */


.content p,
.content ol,
.content ul,
.content pre,
.content table {
	margin-bottom: 1em;
}

.content p:last-child,
.content ol:last-child,
.content ul:last-child,
.content pre:last-child,
.content table:last-child {
	margin-bottom: 0;
}

h2#Footnotes, /* omg fix this */
.content h1,
.content h2 {
	margin-top: 1.75em;
}
.content h3 {
	margin-top: 1.5em;
}
.content h1:first-child,
.content h2:first-child,
.content h3:first-child {
	margin-top: 0;
}
.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
	color: var(--text-strong);
	line-height: 1.125;
	margin-bottom: 0.5em;
}
.content blockquote {
	background-color: var(--bg);
	border-left: 5px solid var(--border);
	padding: 0.75em 1.5em;
	margin: 1em 0.5em;
}
.content ol,
.content ul {
	margin-left: 2em;
	margin-top: 0.5em;
}
.content p:has(+ ul),
.content p:has(+ ol) {
	margin-bottom: 0;
}
.content ol {
	list-style-position: outside;
}
.content ul {
	list-style: disc outside;
}
.content ol:not([type]) {
	list-style-type: decimal;
}
.content ul ul {
	list-style-type: circle;
	margin-bottom: 0.25em;
	margin-top: 0.25em;
}
.content ul ul ul {
	list-style-type: square;
}
.content pre {
	overflow-x: auto;
	padding: 1.25em 1.5em;
	white-space: pre;
	word-wrap: normal;
}
.content sup,
.content sub {
	font-size: 75%;
}
.content table td,
.content table th {
	border: 1px solid var(--border);
	border-width: 1px;
	padding: 0.5em 0.75em;
	vertical-align: top;
}
.content table th {
	color: var(--text-strong);
}
.content table th:not([align]) {
	text-align: inherit;
}
/*.content table thead td, */
/*.content table thead th { */
/*	border-width: 0 0 2px; */
/*	color: var(--text-strong); */
/*} */
/*.content table tbody tr:last-child td, */
/*.content table twbody tr:last-child th { */
/*	border-bottom-width: 0; */
/*} */
div.content {
	overflow-wrap: anywhere;
	word-break: break-word;
	word-wrap: break-word;
}

/* Icon -------------------------------------------------------------------- */
.icon {
/*	align-items: center; */
/*	display: inline-flex; */
/*	flex-shrink: 0; */
/*	justify-content: center; */
	height: 1.5em;
}
/*.icon.is-small { */
/*	height: 1em; */
/*} */
.icon-text {
	align-items: flex-start;
	color: inherit;
	display: inline-flex;
	gap: 0.25em;
/*	line-height: 1.5em; */
}
div.icon-text {
	display: flex;
}

/* Table ------------------------------------------------------------------- */
.table td,
.table th {
	vertical-align: top;
}
/*.table tbody tr:last-child td, */
/*.table tbody tr:last-child th { */
/*	border-bottom-width: 0; */
/*} */

/* Tag --------------------------------------------------------------------- */
.tag {
	--tag-bg-l-delta: 0%;
	align-items: center;
	background-color: hsl(221, 14%, calc(var(--bg-l) + var(--tag-bg-l-delta)));
	border-radius: 0.375em;
	color: var(--text);
	display: inline;
	display: inline-flex;
	font-size: 0.75em;
	height: 2em;
	justify-content: center;
/*	line-height: 1.5; */
	padding-left: 0.75em;
	padding-right: 0.75em;
	white-space: nowrap;
	position: relative;
	top: -1px;
	cursor: pointer;
}
a.tag:hover {
	--tag-bg-l-delta: var(--hover-bg-l-delta);
}
a.tag:active {
	--tag-bg-l-delta: var(--active-bg-l-delta);
}

/* Menu -------------------------------------------------------------------- */
.menu {
	--menu-item-bg-l-delta: 0%;
	font-size: 1em;
}
.menu-list {
	line-height: 1.25;
}
/* .menu-list a, */
/* .menu-list button { */
.menu-list > a,
.menu-list li > a {
	appearance: none;
	/* compat: white fallback before var() for old browsers */
	background-color: white;
	background-color: hsl(221, 14%, calc(var(--main-l) + var(--menu-item-bg-l-delta)));
	border: none;
	border-radius: 0.25em;
	color: black;
	color: var(--text);
	display: block;
	font-family: inherit;
	font-size: 1em;
	margin: 0;
	padding: 0.5em 0.75em;
	text-align: left;
/*	width: 100%; */
}
.menu-list a:hover {
	--menu-item-bg-l-delta:var(--hover-bg-l-delta)
}
.menu-list a:active {
	--menu-item-bg-l-delta:var(--active-bg-l-delta)
}
.menu-list li ul {
	border-left: 1px solid var(--border);
	margin: 0.75em;
	padding-left: 0.75em;
}
/* zebra stripes */
/* div.menu-list li:nth-child(odd) { */
/*	--menu-item-bg-l-delta:calc(var(--hover-bg-l-delta) * 0.6) */
/* } */

/* Message (shortcode contents) --------------------------------------------- */
.message {
	--msg-h: 221;
	--msg-s: 14%;
	--msg-border-l: var(--border-l);
	--msg-color-l: var(--text-l);
	--msg-header-bg-l: 21%;
	--msg-header-color-l: 69%;
/*	border-radius: 0.375em; */
	margin-bottom: 1em;
}
.message strong {
	color: currentColor;
}
.message .message-body a {
/*	color: currentColor; */
	text-decoration: underline;
}
.is-danger .message-body {
	--msg-h: 348;
	--msg-s: 100%;
	--msg-border-l: 50%;
	--msg-color-l: var(--loud-l);
	--msg-header-bg-l: 70%;
	--msg-header-color-l: 5%;
	font-weight: bold;
/*	compat fallbacks. note specificity */
	background-color: mistyrose;
	color: crimson;
	border-left: 0.25em solid crimson;
}
.message .message-body {
	color: hsl(var(--msg-h), var(--msg-s), var(--msg-color-l));
	font-size: 1em;
	background-color: hsl(var(--msg-h), var(--msg-s), var(--bg-l));
	border-left: 0.25em solid hsl(var(--msg-h), var(--msg-s), var(--msg-border-l));
	border-radius: 0.25em;
	padding: 1.25em 1.5em;
}
.message-body code,
.message-body pre {
	background-color: hsl(var(--msg-h), var(--msg-s), var(--msg-header-color-l));
	color: hsl(var(--msg-h), var(--msg-s), var(--msg-header-bg-l));
}
.message-body pre code {
	background-color: transparent;
}

/* Navbar ------------------------------------------------------------------ */
.navbar {
	text-align: center;
}
.navbar-menu {
	display: inline;
	 display: inline-block;
	  display: flex;
	text-align: center;
	width: 100%;
	margin: 0 auto;
	min-height: 2.75em;
}
.navbar-item {
	display: inline-block;
	 display: flex;
	flex-grow: 1;
	vertical-align: middle;
	justify-content: center;
/*	line-height: 1.5; */
	padding: 0.5em 0.75em;
	position: relative;
	white-space: nowrap;
	outline-offset: 0;
	cursor: pointer;
}
.navbar-item span,
.navbar-item u,
.button em {
	font-family:
		Victor Mono Medium,
		system-ui,
		sans-serif;
}
.navbar-item .icon {
	display: none;
	display: inline-flex;
}
.navbar-item img {
	max-height: 1.75em;
}
.navbar-li {
	display: inline;
	display: inline-block;
	display: flex;
	flex-grow: 1;
}
.navbar-end {
	flex-grow: 0;
	min-height: 2.75em;
}
/* buttons that lead to current page ("stuck down") */
.navbar-item.active {
	background-color: #E8E8E8;
}
a.navbar-item.active:active {
	background-color: silver;
}

#RSS {
	color: white;
	text-shadow: black 1px 1px;
	background-color: #EC8032;
	border-color: #EC8032 #0B0B0B #0B0B0B #EC8032;
	border-width: 0 1px 1px 0;
	border-style: solid;
	padding: 0px 5px;
	font-family:
		Victor Mono Medium,
		monospace,
		monospace;
	font-weight: bolder;
}

/* Accessibility button */
#skip-nav {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
}
#skip-nav:has(.navbar-item:focus) {
	position: relative;
	left: 0;
}

/*  taskbar look  */
/* .navbar-menu { */
/*  background-color: silver; */
/*  gap: 2px; */
/*  padding: 2px; */
/* } */


/* Photos */
.photos {
	text-align: center;
}
.photo {
	max-height: 80vh;
	max-width: 90%;
	margin: 0.5em;
}

/* ==========================================================================
	 Layout
	 ========================================================================== */
.column {
	display: block;
	flex-basis: 0;
	flex-grow: 1;
	flex-shrink: 1;
/*	padding: 0.75em; */
}
/*.columns.is-mobile > .column.is-narrow { */
.column.is-narrow {
	flex: none;
	width: unset;
}
/*.columns.is-mobile > .column.is-1 { */
/*	flex: none; */
/*	width: calc(8.3333333333% + var(--column-gap) / 2); */
/*} */
.columns {
/*	margin-left: var(--column-gap); */
/*	margin-right: var(--column-gap); */
/*	margin-top: var(--column-gap); */
/*	margin: -0.75em; */
	margin-bottom: 0.5em;
/*} */
/*.columns.is-mobile { */
	display: flex;
	align-items: center;
}
/*.columns:last-child { */
/*	margin-bottom: -0.75em; */
/*} */
/*.columns:not(:last-child) { */
/*	margin-bottom: 0.75em; */
/*} */
.container {
	margin: 0 auto;
	position: relative;
/*	width: 100%; */
	padding-left: 0.75em;
	padding-right: 0.75em;
}

/* ==========================================================================
	 Utilities
	 ========================================================================== */
/*.has-text-grey { */
/*	color: #69748C; */
/*} */
/*.is-clearfix:after { */
/*	clear: both; */
/*	content: " "; */
/*	display: table; */
/*} */
/*.mb-5 { */
/*	margin-bottom: 1.5em; */
/*} */
/*.px-3 { */
/*	padding-left: 0.75em; */
/*	padding-right: 0.75em; */
/*} */
/*.pb-5 { */
/*	padding-bottom: 1.5em; */
/*} */
/*.is-size-7 { */
/*	font-size: 0.75em; */
/*} */
.is-hidden {
	display: none;
}
.is-block {
	display: block;
}
/*.compat-hidden { */
/*	display: inline; */
/*	list-style: none; */
/*} */
.accel {
	text-decoration: underline 2px;
	text-decoration-skip-ink: none;
}
/* *:hover > .hover-button { */
/* 	display: inline; */
/* } */

/* ==========================================================================
	 View (article content)
	 ========================================================================== */
/* @view-transition { */
/* 	navigation: auto; */
/* } */
.view {
	counter-reset: h2;
}
.view p > img:only-child {
	display: block;
	margin-right: auto;
	margin-left: auto;
/*	view-transition-name: banner-image; */
}
.view > p:first-of-type img:only-child {
	border-radius: 0.5em;
	object-fit: cover;
	object-position: 0 50%;
	max-height: 20em;
	width: 100%;
}
.view h1,
.view h2,
.view h3,
.view h4,
.view h5,
.view h6 {
	border-bottom: 2px solid var(--bg);
	padding-bottom: 0.5em;
	display: flex; /* for ^ button */
}
/*.content .view h1, */
/*.content .view h2 { */
/*	margin: 2em 0 1em 0; */
/*} */
.view h1 {
	counter-reset: h2;
	counter-reset: h3;
}
.view h2 {
	counter-reset: h3;
}
.view h3 {
	counter-reset: h4;
}
a.head-sect,
a.to-toc {
	font-style: normal;
	color: lightblue;
}
a.to-toc {
	margin-left: auto;
}
a.head-sect:visited,
a.to-toc:visited {
	color: violet;
}
.head-sect:after {
	color: hsl(221, 14%, 71%);
	padding-left: 2px;
}
h2 .head-sect:after {
	counter-increment: h2;
	content: counter(h2) ".";
}
h3 .head-sect:after {
	counter-increment: h3;
	content: counter(h2) "." counter(h3) ".";
}
h4 .head-sect:after {
	counter-increment: h4;
	content: counter(h2) "." counter(h3) "." counter(h4) ".";
}
/* now that we show headings as flex, we have to do this or the period can break to the next line... */
.head-sect {
	display: flex;
}
/* h1.hashtag-name-noinc:before { */
/* 	content: ""; */
/* } */

/* Link decorators */
/* if i don't do this my annotations are stubbornly annotated */
.view a {
	text-decoration: none;
}
a.autolink {
	text-decoration: underline dashed;
	color: mediumblue;
}
a.autolink:visited {
	color: indigo;
}
a.autolink.glossary {
	text-decoration-style: dotted;
	cursor: help;
}
.link-text {
	text-decoration: underline;
}
.view a:after {
	/* This is only *supposed* to affect CJK... but it seems to fix the problem of annotations wrapping separately from links */
	word-break: keep-all;
}
.view a[href^="http"]:after,
.view a[href^="//"]:after,
.view a[href^="mailto:"]:after,
.view a[href^="magnet:"]:after,
.view a[href$="pdf"]:after {
	font-size: 0.6em;
	margin-left: 0.4em;
	position: relative;
	bottom: 0.1em;
}
.view a[href^="http"]:after,
.view a[href^="//"]:after,
.view a[href$="pdf"]:after {
	content: "%";
	font-weight: 900;
}
/* don't annotate subdomains, or apex from subdomain */
.view a[href*="//pnppl.cc"]:after,
.view a[href*=".pnppl.cc"]:after {
	content: "";
	margin: 0;
}
.view a[href^="magnet:"]:after {
	content: "U";
	font-family: sans-serif;
	font-weight: 900;
}
.view a[href^="mailto:"]:after {
	content: "@";
	font-weight: 100;
	font-family: sans-serif;
	font-style: oblique;
	bottom: 0.2em;
}
.view a[href*="youtube.com"]:after {
	content: "|>";
}
.view a[href*="wikipedia.org"]:after {
	content: "W";
	font-family: serif;
}
.view a[href$="pdf"]:after {
	content: "PDF";
	font-family: inherit;
	letter-spacing: 0.5px;
	margin-left: 0.4em;
}

/* Checkboxes */
.view li:has(> input[type="checkbox"]) {
	list-style: none;
}
.view input[type="checkbox"] {
	appearance: none;
	background-color: transparent;
	margin: 0 0.3em 0 0;
	font: inherit;
	color: currentColor;
	width: 1.3em;
	height: 1.3em;
	border: 0.15em solid currentColor;
	border-radius: 0.15em;
	transform: translateY(-0.075em);
	display: inline-grid;
	place-content: center;
}
.view input[type="checkbox"]:before {
	content: "";
	width: 0.65em;
	height: 0.65em;
	clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
	transform: scale(0);
	transform-origin: bottom left;
	transition: 120ms transform ease-in-out;
	box-shadow: inset 1em 1em #888;
	background-color: CanvasText;
}
.view input[type="checkbox"]:checked:before {
	transform: scale(1);
}
.view input[type="checkbox"]:focus {
	outline: medium solid currentColor;
	outline-offset: 2px;
}

/* Fragment target highlighting */
p:has(a:target),
h1:target,
h2:target,
h3:target,
h4:target,
h5:target,
h6:target,
li:target {
/*	background-color: hsl(221, 14%, calc(var(--bg-l) + var(--hover-bg-l-delta))); */
	background-color: var(--bg);
	background-clip: content-box;
}
a.footnote-ref:target {
	color: var(--code);
}

/* ==========================================================================
	 Win95 Chrome
	 Raised/sunken border style on interactive elements and TOC.
	 ========================================================================== */
a.navbar-item,
a.button,
a.button.is-small {
/* a.hover-button { */
	text-decoration: none;
	border: 2px solid;
	border-color: #F0F0F0 #0B0B0B #0B0B0B #F0F0F0;
	background-color: silver;
	color: black;
	border-radius: 0;
	text-align: center;
}
a.navbar-item:active,
a.button:active,
/* a.hover-button:active, */
a.navbar-item.active {
	border-color: #0B0B0B #F0F0F0 #F0F0F0 #0B0B0B;
}
a.navbar-item:visited {
/* a.hover-button, */
/* a.hover-button:visited { */
	color: black;
}
/* a.hover-button { */
/* 	font-style: normal; */
/* 	padding: 0 5px 2px 5px; */
/* 	font-weight: bold; */
/* } */
.menu-label {
	background-color: purple;
	padding: 2px 2em;
	text-align: center;
}
.menu-label i {
	color: white;
	font-weight: bold;
}
.menu-list a,
#table-of-contents-list a {
	text-decoration: none;
}
#table-of-contents-list {
	border: 2px solid;
	border-color: #F0F0F0 #0B0B0B #0B0B0B #F0F0F0;
	background-color: silver;
	float: right;
	width: 33%;
	padding: 0.25em;
	margin: 0 0 0.25em 1em;
}
#table-of-contents-list:has(details[open]) {
	margin-bottom: 1em;
}
#table-of-contents-list ol {
	list-style: decimal;
	margin-top: 0.25em;
	padding-left: 0.25em;
}
#table-of-contents-list details > ol:has(>li:nth-child(10)) {
	padding-left: 0.75em;
}
#table-of-contents-list details > ol:has(>li:nth-child(100)) {
	padding-left: 1.25em;
}
#table-of-contents-list ol a {
	border: 2px solid;
	border-color: #0B0B0B #F0F0F0 #F0F0F0 #0B0B0B;
/*	color: var(--text); */
	border-radius: 0;
}
/* #table-of-contents-list a { */
/*	 color: var(--text); */
/* } */
#table-of-contents-list ol,
#table-of-contents-list .menu-label {
	margin-bottom: 0;
}
/* hide if only one entry */
.table-of-contents:not(:has(.menu-list li:nth-child(2))) {
	display: none;
}
/* ==========================================================================
	 Site Chrome (badge, footer, view-transitions)
	 ========================================================================== */

/* "dynamic" badge */
/* static */
/*body:has(h2:nth-of-type(1))	{ --badge: url(/public/badges/steal.gif); }
body:has(h2:nth-of-type(2))	{ --badge: url(/public/badges/copyleft.gif); }
body:has(h2:nth-of-type(3))	{ --badge: url(/public/badges/nano-88x31.gif); } */
/* these don't look like the others and so don't work with the press effect */
/*body:has(h2:nth-of-type(4))	{
	--badge: url(/public/badges/invalid-html.gif);
	--badge-press: none;
}
body:has(h2:nth-of-type(5))	{
	--badge: url(/public/badges/invalid-css-red.gif);
	--badge-press: none;
}*/
/* reset to re-enable press effect */
/*body:has(h2:nth-of-type(6))	{
	--badge: url(/public/badges/she-her.gif);
	--badge-press: "";
}
body:has(h2:nth-of-type(7))	{ --badge: url(/public/badges/bgdc-ga-j.gif); }
body:has(h2:nth-of-type(8))	{ --badge: url(/public/badges/bgdc-tr-j.gif); }
body:has(h2:nth-of-type(9))	{ --badge: url(/public/badges/bgdc-bi-j.gif); }
body:has(h2:nth-of-type(10)) { --badge: url(/public/badges/bgdc-gq-j.gif); }*/
/* anim */
/*body:has(h2:nth-of-type(11)) { --badge: url(/public/badges/fish.gif); }
body:has(h2:nth-of-type(12)) { --badge: url(/public/badges/lain.gif); }
body:has(h2:nth-of-type(13)) { --badge: url(/public/badges/gravity-wells.gif); }
body:has(h2:nth-of-type(14)) { --badge: url(/public/badges/online.gif); }*/
/* static */
/*body:has(h2:nth-of-type(15)) { --badge: url(/public/badges/my-anarchy-now.gif); }*/
#badge:has(img[src$="invalid-css-red.gif"]),
#badge:has(img[src$="invalid-html.gif"]) {
	--badge-press: none;
}
@media (prefers-reduced-motion: reduce) {
	#badge-img[src$="fish.gif"] { --badge: url(/public/badges/fish-static.gif); }
	#badge-img[src$="lain.gif"] { --badge: url(/public/badges/lain-static.gif); }
	#badge-img[src$="gravity-wells.gif"] { --badge: url(/public/badges/gravity-wells-static.gif); }
	#badge-img[src$="online.gif"] { --badge: url(/public/badges/online-static.gif); }
}
#badge-img {
	content: var(--badge) / "about";
	/* fallback: pixelated is standard, crisp-edges for Safari */
	image-rendering: pixelated;
	image-rendering: crisp-edges;
}
/* Wrapper lets us draw "indented" border over the image */
#badge {
	float: right;
	position: relative;
	line-height: 0;
	outline-offset: 0;
}
#badge:active:after {
	content: var(--badge-press, "");
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	border: 2px solid;
	border-color: #0B0B0B #F0F0F0 #F0F0F0 #0B0B0B;
	pointer-events: none;
}
#email {
	float: left;
	margin-bottom: 1em;
}
#email-wrapper {
	margin-bottom: 0;
}
.footer-button {
	/* compat: padding + line-height fallback for vertical centering before flex */
	padding: 0 0.75em;
	line-height: 31px;
	display: flex;
	align-items: center;
	height: 31px;
	flex-grow: 0;
}
#next-prev {
	display: flex;
	justify-content: center;
	margin-bottom: 1em;
	gap: 1em;
	width: min-content;
}
.established {
	font-family: cursive, "Victor Mono Medium", serif;
	width: 9ch;
}
.filename-right {
	float: right;
}
.meta {
	display: block;
	clear: both;
	font-size: 0.75em;
/*	font-weight: bold; */
	color: #69748C;
	padding: 0 1em;
}
/* #article { */
/* 	view-transition-name: page-content; */
/* } */
/* .title { */
/* 	view-transition-name: page-title; */
/* } */


/* ==========================================================================
	 Page-Specific (sitemap, calendar, search, onebitday, 404, index) all moved inline
	 404, index are built from md; others are extensions built from templates
	 ========================================================================== */

/* ==========================================================================
	 Typographic Entities
	 ========================================================================== */
.mdash:after	{ content: "\2014"; }
.ndash:after	{ content: "\2013"; }
.hellip:after	{ content: "\2026"; }
.lsquo:after	{ content: "\2018"; }
.rsquo:after	{ content: "\2019"; }
.ldquo:after	{ content: "\201C"; }
.rdquo:after	{ content: "\201D"; }
.ne:after	{ content: "\2260"; }
.asymp:after	{ content: "\2248"; }
.ge:after	{ content: "\2265"; }
.le:after	{ content: "\2264"; }
.times:after	{ content: "\00D7"; }

/* ugly hack on an ugly hack. this way the text is selectable. should change to a class. or rethink the CSS typography stuff */
.mdash + .is-hidden,
.ndash + .is-hidden,
.hellip + .is-hidden,
.lsquo + .is-hidden,
.rsquo + .is-hidden,
.ldquo + .is-hidden,
.rdquo + .is-hidden,
.ne + .is-hidden,
.asymp + .is-hidden,
.ge + .is-hidden,
.le + .is-hidden,
.times + .is-hidden {
	display: inline;
	font-size: 0 !important;
}




/* ==========================================================================
	 Code Highlighting (light: 'greenbar' adapted from dracula; dark: dracula)
	 ========================================================================== */
.chroma {
	color: #1A1A1A;
	background-color: white;
	tab-size: 4;
}
pre.chroma {
	display: inline-block;
	max-width: 100%;
	margin-right: inherit;
	border-radius: 0;
	border-style: dotted solid;
	border-width: 2px 1px;
	border-color: darkgray;
	box-shadow: darkgray 0px 5px 5px;
}
.chroma code {
	display: inline-block;
}
.line {
	counter-increment: lineNo;
	width: 100%;
	margin-right: 2ch;
}
.line:before {
	content: counter(lineNo);
	text-align: right;
	min-width: 5ch;
	padding-right: 2ch;
	margin-left: 1ch;
	color: grey;
}
/* zebra stripes */
.line:nth-child(even) {
	background-color: #D4F5D4;
}
/* LineLink */
.chroma .lnlinks {
	outline: none;
	text-decoration: none;
	color: inherit;
}
/* LineTableTD */
.chroma .lntd {
	vertical-align: top;
	padding: 0;
	margin: 0;
	border: 0;
}
/* LineTable */
.chroma .lntable {
	border-spacing: 0;
	padding: 0;
	margin: 0;
	border: 0;
}
/* LineHighlight */
.chroma .hl {
	background-color: #B8E6B8;
}
/* LineNumbers */
.chroma .ln,
.chroma .lnt {
	white-space: pre;
	user-select: none;
	margin-right: 0.4em;
	padding: 0 0.4em 0 0.4em;
	color: #666666;
}
/* Line; block fallback for browsers without flex */
.chroma .line {
	display: block;
	 display: flex;
}

/* Keyword, NameTag /*
/*.chroma .k, */
/*.chroma .kc, */
/*.chroma .kn, */
/*.chroma .kp, */
/*.chroma .kr, */
/*.chroma .nt, */
/*.chroma .ow { */
/*	color: #C41A7F; */
/*	font-weight: bold; */
/*} */

/* NameLabel */
/* NameBuiltin */
/* Keyword, NameTag */
/*.chroma .nl, */
/*.chroma .nb, */
/*.chroma .bp, */
/*.chroma .k, */
/*.chroma .kc, */
/*.chroma .kn, */
/*.chroma .kp, */
/*.chroma .kr, */
/*.chroma .nt { */
/*	color: #0066CC; */
/*} */

/* NameVariable */
.chroma .nv,
.chroma .vc,
.chroma .vg,
.chroma .vi,
.chroma .vm {
/*	color: #005577; */
	color: #C43E00;
}
/* KeywordDeclaration, KeywordType */
.chroma .kd,
.chroma .kt {
/*	color: #0066CC; */
	color: #C43E00;
	font-weight: bold;
}

/* namebuiltin */
/* NameAttribute */
.chroma .nb,
.chroma .na {
	color: #007A00;
}
/* NameClass, NameFunction */
.chroma .nc,
.chroma .nf,
.chroma .fm {
	color: #007A00;
	font-weight: bold;
}

/* LiteralString */
.chroma .s,
.chroma .sa,
.chroma .sb,
.chroma .sc,
.chroma .sd,
.chroma .s2,
.chroma .se,
.chroma .sh,
.chroma .si,
.chroma .sx,
.chroma .sr,
.chroma .s1,
.chroma .ss,
.chroma .dl {
/*	color: #C43E00; */
	color: #0066CC;
	font-style: italic;
}

/* LiteralNumber */
.chroma .m,
.chroma .mb,
.chroma .mf,
.chroma .mh,
.chroma .mi,
.chroma .il,
.chroma .mo {
/*	color: #7B1FA2; */
	color: #C41A7F;
}

/* Operator, operatorword */
.chroma .o,
.chroma .ow {
/*	color: #C41A7F; */
	color: #7B1FA2;
}
/* CommentPreproc */
.chroma .cp,
.chroma .cpf {
/*	color: #C41A7F; */
	color: #7B1FA2;
	font-style: italic;
}
/* namespacename? */
.chroma .nn {
	color: #7B1FA2;
	font-weight: bold;
}

/* Comment */
.chroma .c,
.chroma .c1,
.chroma .cs,
.chroma .cm,
.chroma .ch {
	color: #5C6370;
	font-style: italic;
}
/* parens, commas, etc. */
.chroma .p {
	color: #5C6370;
}

/* GenericDeleted */
.chroma .gd {
	color: #B31D28;
}
/* GenericEmph */
.chroma .ge,
.chroma .gl {
	text-decoration: underline;
}
/* GenericHeading */
.chroma .gh,
/* GenericSubheading */
.chroma .gu {
	font-weight: bold;
}
/* GenericInserted */
.chroma .gi {
	color: #22863A;
	font-weight: bold;
}
/* GenericOutput */
.chroma .go {
	color: #5C6370;
}

/* ==========================================================================
	 Media Queries
	 ========================================================================== */
@media screen and (min-width: 1024px) {
	div.navbar {
		padding: 0;
	}
	.navbar-item {
		align-items: center;
	}
	.container {
		max-width: 960px;
	}
}

@media screen and (min-width: 1216px) {
	.container:not(.is-max-desktop) {
		max-width: 1152px;
	}
}

@media screen and (min-width: 1408px) {
	.container:not(.is-max-desktop) {
		max-width: 1344px;
	}
}

@media screen and (max-width: 1023px) {
/*	.navbar { */
/*		display: block; */
/*	} */
	.navbar-menu {
		flex-wrap: wrap;
	}
	.navbar-li {
		flex-basis: 21%;
		align-content: center;
		flex-grow: 1;
	}
	.navbar-item > .icon {
		display: none;
	}
}

/* mobile */
@media screen and (max-width: 767px) and (pointer: coarse) {
	@font-face {
		font-family: "Victor Mono Medium";
		font-style: normal;
		/* single-storey 'a', slashed zero, slashed 7 */
		font-feature-settings: "ss01", "ss03", "ss06";
		font-display: swap;
		src:
			local("Victor Mono Medium"),
			local("VictorMono-Medium"),
			url(/public/font/VictorMono-Medium.woff2) format("woff2");
	}
	@font-face {
		font-family: "Victor Mono Medium";
		font-style: italic;
		font-feature-settings: "ss01", "ss03", "ss06";
		font-display: swap;
		src:
			local("Victor Mono Medium Italic"),
			local("VictorMono-MediumItalic"),
			url(/public/font/VictorMono-MediumItalic.woff2) format("woff2");
	}
	/* --- fixes --- */
	/* background flickering - held press (eg, while scrolling) registers as active then hover */
	/* needs !important because darkmode overrides are further down... */
	:root {
		--hover-bg-l-delta: var(--active-bg-l-delta) !important;
	}
	/* inconsistent button behavior due to touch - canceled long-press sets hover state */
	/* with this fix it behaves like holding Lmouse then dragging away before release */
	a.navbar-item:hover,
	a.button:hover {
/*	a.hover-button:hover { */
		border-color: #0B0B0B #F0F0F0 #F0F0F0 #0B0B0B;
	}
	#badge:hover:after {
		content: var(--badge-press, "");
		position: absolute;
		top: 0;
		bottom: 0;
		left: 0;
		right: 0;
		border: 2px solid;
		border-color: #0B0B0B #F0F0F0 #F0F0F0 #0B0B0B;
		pointer-events: none;
	}
}

/* mobile or just skinny */
@media (max-width: 767px) {
	#table-of-contents-list {
		float: none;
		margin-left: 0;
		margin-bottom: 1em;
		width: 100%;
	}
	#email-wrapper {
		margin-bottom: 1em;
		width: min-content;
	}
	#email, #badge {
		float: none;
	}
	#badge {
		display: inline-block;
	}
/*	.meta time { */
/*		display: none; */
/*	} */
	.filename-right {
		float: none;
		display: inline;
		word-break: break-all;
	}
	.content ul {
		margin-left: 1em;
	}
}

/* ==========================================================================
	 Dark Mode
	 ========================================================================== */
@media (prefers-color-scheme: dark) {
	:root {
		--link-l: 73%;
		--loud-l: 70%;
		--main-l: 0%;
		--bg-l: 14%;
		--border-l: 24%;
		--text-l: 82%;
		--text-strong-l: 93%;
		--hover-bg-l-delta: 7%;
		--active-bg-l-delta: 10%;

	}
	.table-of-contents li::marker {
		color: black;
	}
	/* links */
	a:visited,
	.menu-list a:visited,
	#search a:visited {
		color: violet;
	}
	a.autolink {
		color: lightblue;
	}
	a.autolink:visited {
		color: thistle;
	}

	/* Dracula syntax theme */
	.chroma {
		color: #F8F8F2;
		background-color: #202020;
	}
	.chroma .hl {
		background-color: #3D3F4A;
	}
	.chroma .lnt,
	.chroma .ln {
		color: #7F7F7F;
	}
	pre.chroma {
		border-radius: 0.5em;
		border-style: none;
		box-shadow: none;
	}

/*	.chroma .nl, */
/*	.chroma .nb, */
/*	.chroma .bp, */
/*	.chroma .k, */
/*	.chroma .kc, */
/*	.chroma .kn, */
/*	.chroma .kp, */
/*	.chroma .kr, */
/*	.chroma .nt, */
	.chroma .nv,
	.chroma .vc,
	.chroma .vg,
	.chroma .vi,
	.chroma .vm,
	.chroma .kd,
	.chroma .kt {
		color: #8BE9FD;
	}

	.chroma .nb,
	.chroma .na,
	.chroma .nc,
	.chroma .nf,
	.chroma .fm {
		color: #50FA7B;
	}

	.chroma .s,
	.chroma .sa,
	.chroma .sb,
	.chroma .sc,
	.chroma .dl,
	.chroma .sd,
	.chroma .s2,
	.chroma .se,
	.chroma .sh,
	.chroma .si,
	.chroma .sx,
	.chroma .sr,
	.chroma .s1,
	.chroma .ss {
		color: #F1FA8C;
	}

	.chroma .m,
	.chroma .mb,
	.chroma .mf,
	.chroma .mh,
	.chroma .mi,
	.chroma .il,
	.chroma .mo {
/*		color: #BD93F9; */
		color: #FF79C6;
	}

	.chroma .o,
	.chroma .ow,
	.chroma .cp,
	.chroma .cpf,
	.chroma .nn {
/*		color: #FF79C6; */
		color: #BD93F9;
	}

	.chroma .c,
	.chroma .ch,
	.chroma .cm,
	.chroma .c1,
	.chroma .cs,
	.chroma .p {
		color: #6272A4;
	}

	.chroma .gd {
		color: #FF5555;
	}
	.chroma .gi {
		color: #50FA7B;
	}
	.chroma .go {
		color: #44475A;
	}
	.line:nth-child(even) {
		background-color: rgba(0, 0, 0, 0.20);
	}
}

/* (print moved to separate sheet) */
/* LOL DISREGARD THAT I SUCK COCKS. browser still loads print css ffs */
@media print {
	nav,
	.navbar,
	.button,
	.menu,
	#Backlinks,
	#see-also,
	#next-prev,
	#email-wrapper,
	#badge {
		display: none;
	}
	.container {
		padding: 0 !important;
		margin: 0 !important;
	}
	* {
		font-size: 1em !important;
		color: #444;
		background-color: initial !important;
		box-shadow: none !important;
		line-height: 1.2 !important;
		font-family: serif !important;
	}
	code,
	code *,
	pre.chroma,
	tt {
		color: #444;
		tab-size: 2 !important;
		font-family: monospace, monospace !important;
		word-break: break-all !important;
		word-wrap: break-word !important;
		white-space: pre-wrap !important;
		overflow: initial !important;
	}
	pre.chroma {
		padding: 0.5em 0 !important;
	}
	.line:before {
		margin-left: 0;
	}
	.content h1,
	.content h2,
	.content h3,
	.content h4,
	.content h5,
	.content h6 {
		margin: 1.5em 0 0.5em !important;
	}
	h1,
	h2,
	h3,
	h4,
	h5,
	h6 {
		page-break-after: avoid;
		break-after: avoid-page;
	}
	time {
		font-weight: normal !important;
	}
	li,
	blockquote,
	figure,
	img {
		page-break-inside: avoid;
		break-inside: avoid-page;
	}
	img {
		max-height: 90vh;
		max-width: 90vw;
	}
	p {
		hyphens: auto;
	}
	a:after {
		content: "\00a0[URL: " attr(href) "]" !important;
		font-size: 75% !important;
		font-weight: normal !important;
		font-style: normal !important;
		font-family: sans-serif !important;
		margin-left: initial !important;
		bottom: 0.25em !important;
	}
	hr {
		border-top: 2px solid hsl(221, 14%, 94%);
	}
}
