:root {
	--bg:      #0c0c0e;   
	--panel:   #141418;   
	--line:    #3c3c3e;   
	--fg:      #c0c0e0;   
	--muted:   #808091;   
	--accent:  #d03bcf;   
	--focus:   #ffb000;   
	--mono:    ui-monospace, Menlo, Consolas, "DejaVu Sans Mono", monospace;
	--toolbar-height: 3.5rem;
	color-scheme: dark;   
}

* {
	box-sizing: border-box;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100dvh;
	margin: 0;
	background: var(--bg);
	color: var(--fg);
}

#header {
	position: sticky;
	top: 0;
	z-index: 1;
	flex: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	height: var(--toolbar-height);
	padding-inline: 1rem;
	border-bottom: 2px solid var(--accent);
	background: var(--bg);
	font-family: var(--mono);
}

#header h1 {
	min-width: 0;
	margin: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: var(--accent);
	font-size: 1.5rem;
	font-weight: bolder;
	letter-spacing:	5px;
}

#menu-button {
	flex: none;
	min-height: 2.75rem;
	padding-inline: 0.75rem;
	border: 1px solid var(--muted);
	border-radius: 4px;
	background: var(--panel);
	color: var(--fg);
	font: inherit;
	cursor: pointer;
}

#menu {
	position: fixed;
	top: calc(var(--toolbar-height) + 0.25rem);
	right: 0.5rem;
	bottom: auto;
	left: auto;
	margin: 0;
	min-width: 12rem;
	padding: 0.25rem;
	border: 0.25px solid var(--muted);
	border-radius: 8px;
	background: var(--panel);
	color: var(--fg);
	font-family: var(--mono);
}

#menu button {
	display: block;
	width: 100%;
	min-height: 2.75rem;
	padding-inline: 0.75rem;
	border: 0;
	border-inline-start: 3px solid transparent;
	background: none;
	color: var(--fg);
	font: inherit;
	text-align: start;
	cursor: pointer;
}

@media (hover: hover) {
	#menu-button:hover {
		border-color: var(--accent);
		color: var(--accent);
	}
	#menu button:hover {
		background: var(--line);
	}
}

#menu button[aria-current="page"] {
	border-inline-start-color: var(--accent);
	color: var(--accent);
}

#menu-button:active,
#menu button:active {
	background: var(--fg);
	color: var(--bg);
}

#menu-button:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
}

#menu button:focus-visible,
#content:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: -3px;
}

#content {
	flex: 1;
	margin: 0.5rem;
	padding: 1rem;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: var(--panel);
	font-family: sans-serif;
	font-size: clamp(1rem, 0.9rem + 0.5vw, 1.4rem);
	line-height: 1.6;
}

#content > * {
	max-width: 90ch;
	margin-inline: auto;
}

#content img,
#content video {
	max-width: 100%;
	height: auto;
}

#content pre {
	max-width: 100%;
	overflow-x: auto;
}

#footer {
	position: sticky;
	bottom: 0;
	flex: none;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0.35rem 1rem;
	border-top: none;
	background: var(--bg);
	color: var(--muted);
	font-family: var(--mono);
	font-size: 0.8125rem;
	font-weight:	bolder;
	text-align: center;
}

#footer p {
	margin: 0;
}

#footer a {
	color: var(--fg);
}

#content table	{
	display:		grid;
	width:			100dvw;
	border-spacing:		50px;
	
}
#content th,td	{
	border-bottom:		0.5px solid var(--line);
	text-align:		center;
}
#content .notes	{
	text-align:		left;
}
