/* autonomAS.net site style */

:root {
	--bg: #08090b;
	--fg: #e8e6e3;
	--muted: #9a9895;
	--accent: #3fb6e8;
	--panel: #17191d;
	--line: #26292e;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 10pt;
	line-height: 1.6;
}

pre, code, small, input, button {
	font-family: inherit;
}

a {
	color: var(--accent);
	text-decoration: none;
}
a:hover, a:focus-visible { text-decoration: underline dotted; }

.page {
	display: flex;
	align-items: flex-start;
	gap: 3em;
	max-width: 1100px;
	margin: 0 auto;
	padding: 2em 2em 0 2em;
}

#main {
	flex: 1 1 auto;
	min-width: 0;
	padding-bottom: 2em;
}

#sidebar {
	flex: 0 0 auto;
	border-left: 4px solid var(--line);
	padding: 0.8em 0 0.8em 2em;
	margin-top: 1em;
}

#sidebar table { border-collapse: collapse; }
#sidebar td { padding: 0 0.4em 0 0; }

pre {
	margin: 0;
	white-space: pre;
	overflow-x: auto;
}

pre.banner {
	line-height: 1.2;
	margin-bottom: 1em;
}

#header_sub { color: var(--muted); margin-left: 6em; }

.alert {
	background: var(--panel);
	padding: 0.6em 1em;
	margin: 0 0 1em 0;
}

.button {
	display: inline-block;
	margin: 0.5em 0;
	padding: 0.3em 1em;
	border: 1px solid currentColor;
}

footer {
	border-top: 2px solid var(--line);
	margin-top: 2em;
	padding: 1em;
	text-align: center;
	color: var(--muted);
}

footer pre { white-space: pre-wrap; }

/* Narrow screens: the sidebar moves below the content and long lines wrap. */
@media (max-width: 860px) {
	.page {
		flex-direction: column;
		gap: 1em;
		padding: 1em 1em 0 1em;
	}
	#sidebar {
		margin-top: 0;
		padding-left: 1em;
	}
	pre:not(.banner) { white-space: pre-wrap; }
	pre.banner { font-size: 7pt; }
	#header_sub { margin-left: 0; }
}
