:root {
	/* light (default) */
	--color-bg: #ffffff;
	--color-text-body: #171717;
	--color-text-heading: #333;
	--color-text-muted: #666;
	--color-logo-objects: #0d0d0d;
	--color-border: #ddd;
	--color-border-strong: #ccc;
	--color-border-soft: #d8d8d8;
	--color-surface-heading: #efefef;
	--color-surface-news: #f3f7ff;
	--color-surface-breadcrumb: #f5f5f5;
	--color-link: #2a5db0;
	--color-link-visited: #234a8b;
	--color-skip-bg: #eaf2ff;
	--color-skip-text: #234a8b;
	--color-skip-border: #cfe0ff;
	--color-focus-outline: #8b1a1a;
}

@media (prefers-color-scheme: dark) {
	:root {
		--color-bg: #0d1117;
		--color-text-body: #e6e6e6;
		--color-text-heading: #d8d8d8;
		--color-text-muted: #9aa0a6;
		--color-logo-objects: #f0f0f0;
		--color-border: #333;
		--color-border-strong: #3a3a3a;
		--color-border-soft: #2a2a2a;
		--color-surface-heading: #1c1c1c;
		--color-surface-news: #12203a;
		--color-surface-breadcrumb: #161616;
		--color-link: #8ab4f8;
		--color-link-visited: #c3b8f7;
		--color-skip-bg: #13233f;
		--color-skip-text: #a9c6f5;
		--color-skip-border: #2d4a78;
		--color-focus-outline: #ff6a6a;
	}
}

:root[data-theme="light"] {
	--color-bg: #ffffff;
	--color-text-body: #171717;
	--color-text-heading: #333;
	--color-text-muted: #666;
	--color-logo-objects: #0d0d0d;
	--color-border: #ddd;
	--color-border-strong: #ccc;
	--color-border-soft: #d8d8d8;
	--color-surface-heading: #efefef;
	--color-surface-news: #f3f7ff;
	--color-surface-breadcrumb: #f5f5f5;
	--color-link: #2a5db0;
	--color-link-visited: #234a8b;
	--color-skip-bg: #eaf2ff;
	--color-skip-text: #234a8b;
	--color-skip-border: #cfe0ff;
	--color-focus-outline: #8b1a1a;
}

:root[data-theme="dark"] {
	--color-bg: #0d1117;
	--color-text-body: #e6e6e6;
	--color-text-heading: #d8d8d8;
	--color-text-muted: #9aa0a6;
	--color-logo-objects: #f0f0f0;
	--color-border: #333;
	--color-border-strong: #3a3a3a;
	--color-border-soft: #2a2a2a;
	--color-surface-heading: #1c1c1c;
	--color-surface-news: #12203a;
	--color-surface-breadcrumb: #161616;
	--color-link: #8ab4f8;
	--color-link-visited: #c3b8f7;
	--color-skip-bg: #13233f;
	--color-skip-text: #a9c6f5;
	--color-skip-border: #2d4a78;
	--color-focus-outline: #ff6a6a;
}

#banner,
#breadcrumbs,
#footer {
	width: 100%;
	max-width: 1330px;
	margin: 0 auto;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}

#banner {
	min-height: 65px;
	padding: 0 10px;
}

.bannerLeftGroup {
	display: flex;
	align-items: center;
}

#bannerLeft {
	display: inline-block;
	font-size: 2em;
	font-weight: 400;
	margin-right: 14px;
	text-decoration: none;
	letter-spacing: -.035em;
}

.logoCSV {
	color: #8b1a1a;
	font-weight: 600;
}

.logoObjects {
	color: var(--color-logo-objects);
}

#bannerLeftText {
	color: var(--color-text-muted);
	font: 1.125em "Source Sans 3", "Lucida Grande", Arial, Helvetica, sans-serif;
	white-space: nowrap;
	border-left: 1px solid var(--color-border);
	padding-left: .8em;
}

#bannerRight {
	display: flex;
	align-items: center;
	gap: 8px;
}

#bannerRight img {
	display: block;
}

.themeToggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 4px;
	border: 1px solid var(--color-border);
	border-radius: 6px;
	background: transparent;
	color: var(--color-text-muted);
	cursor: pointer;
}

.themeIconSun,
.themeIconMoon {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.themeIconMoon {
	display: none;
}

@media (prefers-color-scheme: dark) {
	.themeIconSun {
		display: none;
	}

	.themeIconMoon {
		display: block;
	}
}

:root[data-theme="light"] .themeIconSun {
	display: block;
}

:root[data-theme="light"] .themeIconMoon {
	display: none;
}

:root[data-theme="dark"] .themeIconSun {
	display: none;
}

:root[data-theme="dark"] .themeIconMoon {
	display: block;
}

body {
	background-color: var(--color-bg);
	color: var(--color-text-body);
	font-family: "Source Sans 3", "Lucida Grande", Arial, Helvetica, sans-serif;
	font-size: 16px;
	margin: 0 auto;
	padding: 0;
}

body ul {
	list-style-type: square;
}

body li {
	margin: 2px 0;
}

#bodyColumn {
	margin: 0 auto;
	width: auto;
	max-width: 1100px;
}

#bodyColumn p {
	line-height: 1.5em;
	text-align: left;
	padding-left: 20px;
	font-size: 1em;
}

strong {
	font-weight: 700;
}

h1 {
	font-size: 1.6em;
	margin-bottom: .35em;
}

h2 {
	font-size: 1.2em;
	color: var(--color-text-heading);
	font-weight: 600;
	margin: 6px 0;
}

h3 {
	color: var(--color-text-heading);
	background-color: var(--color-surface-heading);
	border-bottom: 1px solid var(--color-border-strong);
	font-size: 1.1em;
	font-weight: 600;
	font-variant: small-caps;
	padding: 4px 4px 4px 24px;
}

code {
	font-family: "Source Code Pro", monospace;
	font-size: 1em;
}

pre {
	margin: 2px;
	padding-left: 20px;
	overflow-x: auto;
}

pre code {
	color: #e2e8f0;
	background-color: #0f172a;
	border-radius: 6px;
	line-height: 1.45em;
	max-width: 100%;
	margin: 1px;
	padding: 10px;
	display: block;
	white-space: pre;
}

.section {
	padding: 4px;
}

.introRow {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	margin-top: 8px;
}

.introMain {
	flex: 1 1 68%;
	min-width: 0;
}

.introAside {
	flex: 0 0 30%;
	margin-top: 10px;
}

.newsSection {
	background-color: var(--color-surface-news);
	border: 1px solid var(--color-border-soft);
	border-radius: 6px;
	box-sizing: border-box;
	padding: 10px 12px;
}

.newsSection p {
	padding-left: 0 !important;
}

.newsSection ul {
	margin-top: 6px;
	padding-left: 18px;
}

.helpGroup {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

dl.faq {
	padding-left: 20px;
}

dl.faq dt {
	font-weight: 700;
	margin-top: 14px;
}

dl.faq dt:first-child {
	margin-top: 0;
}

dl.faq dd {
	margin-left: 0;
	margin-top: 4px;
}

#breadcrumbs {
	font-size: .9em;
	background-color: var(--color-surface-breadcrumb);
	border-bottom: 1px solid var(--color-border);
	padding: 8px 10px 8px 20px;
}

#footer {
	font-size: .8em;
	border-top: 1px solid var(--color-border-strong);
	color: var(--color-text-heading);
	margin: 10px auto;
	padding: 10px;
	gap: 8px;
}

.navList {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
}

.navList li {
	padding: 0 10px;
	border-left: 1px solid var(--color-border-strong);
	line-height: 1.4em;
}

.navList li:first-child {
	padding-left: 0;
	border-left: none;
}

a {
	text-decoration: none;
}

a:link {
	color: var(--color-link);
}

a:visited {
	color: var(--color-link-visited);
}

a:hover,
a:active {
	color: var(--color-link);
	text-decoration: underline;
}

a.externalLink::after {
	content: " ↗";
	font-size: .8em;
}

.skipLink {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--color-skip-bg);
	color: var(--color-skip-text);
	padding: 6px 10px;
	border: 1px solid var(--color-skip-border);
	border-radius: 4px;
	z-index: 1000;
}

.skipLink:focus {
	left: 10px;
	top: 10px;
}

a:focus-visible {
	outline: 3px solid var(--color-focus-outline);
	outline-offset: 3px;
	border-radius: 2px;
}

@media (max-width: 860px) {
	#bannerLeftText {
		display: none;
	}

	.introRow {
		flex-direction: column;
	}

	.introAside {
		flex: 1 1 auto;
		width: 100%;
	}

	.helpGroup {
		grid-template-columns: 1fr;
		gap: 0;
	}

	#bodyColumn {
		margin: 0 10px;
		width: auto;
		max-width: none;
	}

	#breadcrumbs {
		flex-direction: column;
		align-items: flex-start;
		padding-bottom: 10px;
	}

	#breadcrumbs .xright {
		margin-top: 6px;
	}
}

@media (max-width: 520px) {
	body {
		font-size: 15px;
	}

	#banner {
		min-height: 58px;
	}

	.navList li {
		padding: 2px 7px;
	}

	#bodyColumn p,
	pre,
	dl.faq {
		padding-left: 8px;
	}
}
