:root {
	--page-background: #eeeeee;
	--site-background: #ffffff;
	--text-color: #222222;
	--header-background: #1d4f73;
	--header-text: #ffffff;
	--site-name-primary: #02315e;
	--site-name-accent: #1686da;
	--header-title-text: #02315e;
	--header-tagline-text: #02315e;
	--menu-background: #dddddd;
	--menu-text: #222222;
	--menu-hover-background: #bbbbbb;
	--menu-selected-background: #1d4f73;
	--menu-selected-text: #ffffff;
	--submenu-background: #eeeeee;
	--content-background: #ffffff;
	--accent-color: #1d4f73;
	--footer-background: #333333;
	--footer-text: #ffffff;
	--border-color: #cccccc;
	--muted-text-color: #666666;
	--reading-page-background: #ffffff;
	--reading-content-background: #ffffff;
	--reading-text: #222222;
	--reading-accent: #1d4f73;
	--soft-border-color: #dddddd;
	--input-border-color: #aaaaaa;
	--sponsor-background: #f4f4f4;
}

* { box-sizing: border-box; }
body {
	margin: 0;
	padding: 0;
	font-family: Arial, sans-serif;
	background: var(--page-background);
	color: var(--text-color);
}
.page {
	--sponsor-width: 180px;
	--sponsor-ratio: 2 / 1;
	width: 94%;
	max-width: 1800px;
	margin: 0 auto;
	background: var(--site-background);
}

/*
 * READING MODE
 */
.reading-mode-toggle {
	flex: 0 0 auto;
	width: 75px;
	height: 24px;
	padding: 0;
	border: 0px solid var(--border-color);
	border-radius: 3px;
	background: var(--content-background);
	color: var(--accent-color);
	font-size: 17px;
	line-height: 22px;
	text-align: center;
	cursor: pointer;
	opacity: 0.88;
}
.reading-mode-toggle:hover,
.reading-mode-toggle:focus {
	opacity: 1;
}
body.reading-mode {
	background: var(--reading-page-background);
	color: var(--reading-text);
}
body.reading-mode .page {
	width: 100%;
	max-width: none;
	background: var(--reading-page-background);
}
body.reading-mode .header,
body.reading-mode .side-left,
body.reading-mode .side-right,
body.reading-mode .main-menu,
body.reading-mode .secondary-menu,
body.reading-mode .site-search,
body.reading-mode .bottom-area {
	display: none;
}

/*
 * Reading mode keeps the footer motto only.
 * Footer navigation and Privacy Settings remain hidden.
 */
body.reading-mode .footer {
	display: flex;
}

body.reading-mode .footer > :not(.site-footer-motto) {
	display: none;
}

body.reading-mode .body {
	display: block;
	padding: 20px 24px 32px;
	background: var(--reading-page-background);
}
body.reading-mode .main-column {
	width: 100%;
	max-width: 1150px;
	height: auto;
	max-height: none;
	margin: 0 auto;
	overflow: visible;
	border-color: var(--border-color);
	background: var(--reading-content-background);
	color: var(--reading-text);
}
body.reading-mode .reading-mode-toggle {
	background: var(--reading-content-background);
	color: var(--reading-accent);
}
body.reading-mode .content,
body.reading-mode .site-search-results {
	color: var(--reading-text);
	background: var(--reading-content-background);
	overflow: visible;
}

body.reading-mode .content h2,
body.reading-mode .content h3,
body.reading-mode .site-search-results h2,
body.reading-mode .site-search-results h3,
body.reading-mode .main-column a {
	color: var(--reading-accent);
}

body.reading-mode .content,
body.reading-mode .site-search-results {
	overflow: visible;
}

.header {
	min-height: 110px;
	display: flex;
	align-items: center;
	padding: 10px 20px;
	background: var(--header-background);
	color: var(--header-text);
}
.logo {
	max-height: 80px;
	max-width: 180px;
	margin-right: 25px;
}
.header h1 { margin: 0; font-size: 28px; }
.body {
	display: grid;
	grid-template-columns: var(--sponsor-width) minmax(0, 1fr)
		var(--sponsor-width);
	gap: 12px;
	padding: 3px 12px 12px;
}
.side-left,
.side-right {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.side-left img,
.side-right img {
	display: block;
	width: 100%;
	border: 1px solid var(--border-color);
}
.main-column {
	min-width: 0;
	height: calc(4 * var(--sponsor-width) + 7 * 16px);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--border-color);
	background: var(--content-background);
}
.main-menu,
.secondary-menu {
	position: relative;
	background: var(--menu-background);
	border-bottom: 1px solid var(--menu-hover-background);
}
.main-menu ul,
.secondary-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.main-menu > ul,
.secondary-menu > ul { display: flex; flex-wrap: wrap; }
.main-menu li,
.secondary-menu li { position: relative; }
.main-menu a,
.secondary-menu a {
	display: block;
	padding: 10px 14px;
	color: var(--menu-text);
	text-decoration: none;
	border-right: 1px solid var(--menu-hover-background);
	white-space: nowrap;
}
.main-menu a:hover,
.secondary-menu a:hover {
	background: var(--menu-hover-background);
}
.main-menu a.selected,
.secondary-menu a.selected {
	background: var(--menu-selected-background);
	color: var(--menu-selected-text);
}
.main-menu li > ul,
.secondary-menu li > ul {
	display: none;
	position: absolute;
	z-index: 1000;
	min-width: 180px;
	background: var(--submenu-background);
	border: 1px solid var(--menu-hover-background);
}
.main-menu li:hover > ul,
.secondary-menu li:hover > ul,
.main-menu li:focus-within > ul,
.secondary-menu li:focus-within > ul { display: block; }
.main-menu li > ul,
.secondary-menu li > ul { top: 100%; left: 0; }
.main-menu li > ul li > ul,
.secondary-menu li > ul li > ul { top: 0; left: 100%; }
.main-menu li > ul a,
.secondary-menu li > ul a {
	border-right: 0;
	border-bottom: 1px solid var(--border-color);
}
.content {
	flex: 1 1 auto;
	min-height: 0;
	padding: 24px;
	overflow-y: auto;
	overflow-x: hidden;
}
.content h1,
.content h2,
.content h3,
.content h4 { margin-top: 0.6em; margin-bottom: 0.0em; color: var(--accent-color); }
.content h1 { font-size: 1.8rem; }
.content h2 { font-size: 1.6rem; }
.content h3 { font-size: 1.4rem; }
.content h4 { font-size: 1.2rem; }
.content p {
	font-size: 1rem;
	text-align: justify;
	line-height: 1.4rem;
	margin: 0;
}
.content img {
	display: block;
	max-width: 100%;
	height: auto;
}
.content .img-small { width: 25%; }
.content .img-half { width: 50%; }
.content .img-large { width: 75%; }
.content .img-full { width: 100%; }
.content .img-center {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.content .div-center {
	text-align: center;
}
.content .text-center {
	text-align: center;
}
.text { line-height: 1.6; }
.bottom-area {
	display: grid;
	grid-template-columns: repeat(5, var(--sponsor-width));
	justify-content: space-between;
	gap: 12px;
	padding: 12px;
}
.bottom-area .sponsor-slot[hidden] { display: none; }
.bottom-area a { display: block; }
.bottom-area img {
	display: block;
	width: 100%;
}
/* Real sponsor images have no frame; placeholders keep theirs. */
.sponsor-slot:not(.sponsor-empty) { border: 0; background: transparent; }
.footer {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 20px;
	padding: 15px;
	background: var(--footer-background);
	color: var(--footer-text);
}
.footer a { color: var(--footer-text); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
@media (max-width: 1200px) {
	.page { --sponsor-width: 150px; width: 100%; }
	.body { gap: 10px; padding: 3px 10px 10px; }
	/* The shared height formula adapts to the 150px sponsor width. */
	.bottom-area { gap: 10px; padding: 10px; }
}
@media (max-width: 800px) {
	.page { --sponsor-width: min(44vw, 240px); }
	.body { grid-template-columns: 1fr; }
	.main-column { height: auto; max-height: none; overflow: visible; }
	.content,
	.site-search-results { overflow: visible; }
	.side-left,
	.side-right {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
	}
	.side-left a,
	.side-right a {
		flex: 0 0 var(--sponsor-width);
		width: var(--sponsor-width);
	}
	.bottom-area {
		grid-template-columns: repeat(2, var(--sponsor-width));
		justify-content: space-around;
	}
	.header { flex-direction: column; text-align: center; }
	.logo { margin-right: 0; margin-bottom: 10px; }
	body.reading-mode .body {
		padding: 52px 12px 12px;
	}
}
.pdf-documents {
	margin-top: 28px;
	padding-top: 16px;
	border-top: 1px solid var(--soft-border-color);
}
.pdf-heading {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 15px;
	flex-wrap: wrap;
}
.pdf-heading h3 { margin: 0 0 12px; color: var(--accent-color); }
.pdf-sort { font-size: 13px; }
.pdf-sort a,
.pdf-link { color: var(--accent-color); }
.pdf-list { margin: 0; padding-left: 22px; }
.pdf-list li { margin-bottom: 14px; }
.pdf-link { font-weight: bold; }
.pdf-date {
	margin-left: 8px;
	font-size: 12px;
	color: var(--muted-text-color);
}
.pdf-description { margin-top: 4px; line-height: 1.45; }
.site-search { padding: 16px 20px 0; }
.site-search-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.site-search-controls input {
	flex: 1 1 260px;
	min-width: 0;
	padding: 8px 10px;
	border: 1px solid var(--input-border-color);
}
.site-search-controls button { padding: 8px 14px; cursor: pointer; }
.site-search-message {
	margin-top: 6px;
	font-size: 12px;
	color: var(--muted-text-color);
}
.site-search-help {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 4px 20px 0;
	font-size: 12px;
	color: var(--muted-text-color);
}
body.reading-mode .site-search-help {
	max-width: 1150px;
	margin: 0 auto;
	padding: 0 20px 8px;
	justify-content: flex-end;
	background: var(--reading-content-background);
}
body.reading-mode .site-search-help span {
	display: none;
}
.site-search-results {
	flex: 1 1 auto;
	min-height: 0;
	padding: 24px;
	overflow-y: auto;
	overflow-x: hidden;
}
.site-search-results h2,
.site-search-results h3,
.search-result-title a,
.search-result-meta a { color: var(--accent-color); }
.search-result-group { margin-top: 22px; }
.search-result-group ul { margin: 0; padding-left: 22px; }
.search-result-group li { margin-bottom: 18px; }
.search-result-title a { font-weight: bold; }
.search-result-text { margin-top: 4px; line-height: 1.45; }
.search-result-date,
.search-result-meta {
	margin-top: 4px;
	font-size: 12px;
	color: var(--muted-text-color);
}
.sponsor-slot {
	display: block;
	width: var(--sponsor-width);
	aspect-ratio: var(--sponsor-ratio);
	overflow: hidden;
	background: var(--sponsor-background);
	border: 1px solid var(--soft-border-color);
}
.sponsor-slot img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #ffffff;
}
.bottom-area .sponsor-slot {
	width: var(--sponsor-width);
	min-width: var(--sponsor-width);
}
.sponsor-empty { cursor: default; }
.sponsor-empty img { opacity: 0.82; }

/*
 * MODULE 11A - PRIVACY AND COOKIE SETTINGS
 */
.privacy-footer-button {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--footer-text);
	font: inherit;
	cursor: pointer;
}
.privacy-footer-button:hover,
.privacy-footer-button:focus {
	text-decoration: underline;
}
.privacy-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 5000;
	padding: 14px;
	background: var(--site-background);
	border-top: 1px solid var(--border-color);
	box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.18);
}
.privacy-banner[hidden],
.privacy-settings-overlay[hidden] {
	display: none;
}
.privacy-banner-content {
	max-width: 1150px;
	margin: 0 auto;
}
.privacy-banner-text p {
	margin: 6px 0 10px;
	line-height: 1.4;
}
.privacy-banner-actions,
.privacy-settings-actions,
.privacy-settings-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}
.privacy-banner-actions button,
.privacy-settings-actions button {
	min-width: 130px;
	padding: 8px 12px;
	border: 1px solid var(--input-border-color);
	background: var(--content-background);
	color: var(--text-color);
	cursor: pointer;
}
.privacy-banner-actions button:hover,
.privacy-banner-actions button:focus,
.privacy-settings-actions button:hover,
.privacy-settings-actions button:focus {
	border-color: var(--accent-color);
}
.privacy-banner-link {
	display: inline-block;
	margin-top: 10px;
	color: var(--accent-color);
}
.privacy-settings-overlay {
	position: fixed;
	inset: 0;
	z-index: 5100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.42);
}
.privacy-settings-panel {
	width: min(620px, 100%);
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 20px;
	background: var(--content-background);
	color: var(--text-color);
	border: 1px solid var(--border-color);
	box-shadow: 0 5px 24px rgba(0, 0, 0, 0.24);
}
.privacy-settings-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 15px;
	margin-bottom: 10px;
}
.privacy-settings-header h2 {
	margin: 0;
	color: var(--accent-color);
}
.privacy-settings-close {
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid var(--input-border-color);
	background: var(--content-background);
	color: var(--text-color);
	font-size: 24px;
	line-height: 30px;
	cursor: pointer;
}
.privacy-setting-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding: 15px 0;
	border-top: 1px solid var(--soft-border-color);
}
.privacy-setting-row p {
	margin: 5px 0 0;
	line-height: 1.4;
}
.privacy-switch {
	display: flex;
	align-items: center;
	gap: 7px;
	white-space: nowrap;
}
.privacy-switch input[type="checkbox"] {
	width: 24px;
	height: 24px;
	margin: 0;
	flex: 0 0 24px;
	accent-color: var(--accent-color);
	cursor: pointer;
}
.privacy-switch input[type="checkbox"]:disabled {
	cursor: default;
}
.privacy-switch-disabled {
	color: var(--muted-text-color);
}
.privacy-settings-links {
	padding-top: 15px;
	border-top: 1px solid var(--soft-border-color);
}
.privacy-settings-links a {
	color: var(--accent-color);
}
.privacy-settings-actions {
	justify-content: flex-end;
	margin-top: 20px;
}
@media (max-width: 600px) {
	.privacy-setting-row {
		align-items: flex-start;
		flex-direction: column;
	}
	.privacy-banner-actions button,
	.privacy-settings-actions button {
		flex: 1 1 100%;
	}
}



/* Module 12B - Public Audience map */
.public-audience {
	max-width: 900px;
}

.public-audience-summary {
	margin-bottom: 10px;
}

.public-audience-map-controls {
	display: flex;
	gap: 6px;
	margin-bottom: 8px;
}

.public-audience-map-controls button {
	min-width: 34px;
}

#audience-map {
	display: block;
	width: 100%;
	max-width: 900px;
	border: 1px solid var(--border-color);
	touch-action: none;
}

.audience-map-note,
.public-audience-message {
	margin-top: 8px;
	color: var(--muted-text-color);
	font-size: 0.8rem;
}

#audience-map-legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	font-size: 0.85rem;
}

.audience-map-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.audience-map-legend-color {
	display: inline-block;
	width: 14px;
	height: 14px;
	flex: 0 0 14px;
	border: 1px solid #555555;
	border-radius: 50%;
}

.audience-map-legend-separator {
	margin: 0 6px;
}

.audience-map-count {
	font-family: Arial, sans-serif;
	font-weight: 700;
}


/* Module 12B - public Audience period selector */
.public-audience-toolbar {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.public-audience-toolbar label {
	font-weight: 600;
}

.public-audience-toolbar select {
	max-width: 180px;
}


/* VEDR-AI public header identity. */
.site-header {
	display: grid;
	grid-template-columns: 220px auto 1fr;
	background: var(--header-background);
	color: var(--header-text);
	align-items: center;
	column-gap: 18px;
}
.site-header-logo {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.site-header-logo img {
	display: block;
	width: 100%;
	max-width: 205px;
	height: auto;
	object-fit: contain;
}
.site-header-name {
	display: flex;
	align-items: center;
	padding: 0 8px;
}
.site-header-name h1 {
	margin: 0;
	white-space: nowrap;
	font-size: 55px;
	line-height: 1.1;
}
.site-header-name-primary { color: var(--site-name-primary); }
.site-header-name-accent { color: var(--site-name-accent); }
.site-header-identity {
	min-width: 0;
	padding: 8px 18px;
	border-left: 1px solid rgba(0, 0, 0, 0.10);
}
.site-header-identity h3 {
	color: var(--header-title-text);
	margin: 0 0 6px;
	font-size: clamp(18px, 1.65vw, 26px);
	line-height: 1.25;
	font-weight: 600;
	padding-left: 1em;
}
.site-header-identity p {
	color: var(--header-tagline-text);
	margin: 0;
	font-size: clamp(14px, 1.3vw, 20px);
	font-style: italic;
	font-weight: 600;
	line-height: 1.35;
	padding-left: 1em;
}

/* VEDR-AI footer motto. */
.site-footer-motto {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	width: 100%;
	padding: 13px 18px 11px;
	letter-spacing: 3px;
	text-align: center;
}
.site-footer-motto span {
	width: 64px;
	height: 1px;
	background: currentColor;
	opacity: 0.65;
}
.site-footer-motto strong {
	font-size: 28px;
	font-weight: 500;
}
@media (max-width: 900px) {
	.site-header { grid-template-columns: minmax(150px, 210px) 1fr; }
	.site-header-name { align-self: end; }
	.site-header-identity {
		grid-column: 2;
		border-left: 0;
		padding-top: 2px;
	}
}
@media (max-width: 620px) {
	.site-header { grid-template-columns: 120px 1fr; column-gap: 10px; }
	.site-header-logo img { max-width: 118px; }
	.site-header-name h1 { font-size: 25px; }
	.site-header-identity h3 { font-size: 14px; }
	.site-header-identity p { font-size: 12px; }
	.site-footer-motto { gap: 9px; letter-spacing: 1.5px; }
	.site-footer-motto span { width: 26px; }
	.site-footer-motto strong { font-size: 22px; }
}


/*
 * VEDR-AI header/body grid alignment.
 * The logo column uses the same width and horizontal offset
 * as the left and right sponsor columns.
 */
.site-header {
	grid-template-columns: var(--sponsor-width) auto minmax(0, 1fr);
	padding: 6px 12px;
}

.site-header-logo {
	width: var(--sponsor-width);
}

.site-header-logo img {
	width: 100%;
	max-width: var(--sponsor-width);
}

@media (max-width: 1200px) and (min-width: 801px) {
	.site-header {
		grid-template-columns: var(--sponsor-width) auto minmax(0, 1fr);
		padding-left: 12px;
		padding-right: 12px;
	}

	.site-header-logo {
		width: var(--sponsor-width);
	}

	.site-header-logo img {
		max-width: var(--sponsor-width);
	}
}

@media (max-width: 800px) {
	.site-header {
		padding-left: 12px;
		padding-right: 12px;
	}
}


/*
 * VEDR-AI mobile header.
 * This override applies only to screens up to 800px wide.
 * Desktop and tablet layouts above 800px remain unchanged.
 */
@media (max-width: 800px) {
	.site-header {
		display: grid;
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto;
		row-gap: 8px;
		padding: 12px;
	}

	.site-header-logo {
		grid-column: 1;
		grid-row: 1;
		width: 100%;
		justify-content: center;
	}

	.site-header-logo img {
		width: auto;
		max-width: min(280px, 82vw);
		height: auto;
	}

	.site-header-name {
		grid-column: 1;
		grid-row: 2;
		display: block;
		padding: 4px 12px 0;
		text-align: center;
	}

	.site-header-name h1 {
		margin: 0;
		white-space: normal;
		font-size: 28px;
		line-height: 1.15;
	}

	.site-header-identity {
		grid-column: 1;
		grid-row: 3;
		min-width: 0;
		padding: 0 12px 10px;
		border-left: 0;
		text-align: center;
	}

	.site-header-identity h3 {
		margin: 0 0 6px;
		font-size: 16px;
		line-height: 1.3;
	}

	.site-header-identity p {
		margin: 0;
		padding-left: 0;
		font-size: 14px;
		line-height: 1.35;
		text-align: center;
	}
}


/*
 * VEDR-AI mobile sponsor alignment.
 * Keep eight side sponsor banners in two balanced columns (4 + 4).
 * This applies only to the responsive layout up to 800px.
 */
@media (max-width: 800px) {
	.side-left,
	.side-right {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}


/*
 * VEDR-AI mobile sponsor grid fix.
 * The previous 2-column rule could not work because these elements
 * were still flex containers. Use grid only in the <=800px layout.
 */
@media (max-width: 800px) {
	.side-left,
	.side-right {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
}


/*
 * VEDR-AI mobile sponsor centering.
 * Keep the two-column grid and center the sponsor groups
 * across the full mobile body width.
 */
@media (max-width: 800px) {
	.main-body {
		grid-template-columns: 1fr;
	}

	.side-left,
	.side-right {
		grid-column: 1;
		width: min(100%, calc((2 * var(--sponsor-width)) + 16px));
		margin-left: auto;
		margin-right: auto;
		display: grid;
		grid-template-columns: repeat(2, var(--sponsor-width));
		justify-content: center;
		gap: 16px;
	}

	.main-column {
		grid-column: 1;
		width: 100%;
	}
}


/*
 * VEDR-AI header alignment fix for 801-900px.
 * Keep logo, site name and identity on the same vertical row.
 * The <=800px mobile header remains unchanged.
 */
@media (min-width: 801px) and (max-width: 900px) {
	.site-header {
		grid-template-columns: var(--sponsor-width) auto minmax(0, 1fr);
		grid-template-rows: auto;
		align-items: center;
		column-gap: 18px;
	}

	.site-header-logo {
		grid-column: 1;
		grid-row: 1;
		width: var(--sponsor-width);
		align-self: center;
	}

	.site-header-name {
		grid-column: 2;
		grid-row: 1;
		align-self: center;
	}

	.site-header-identity {
		grid-column: 3;
		grid-row: 1;
		align-self: center;
		border-left: 1px solid rgba(0, 0, 0, 0.10);
		padding: 8px 18px;
	}
}

/*
 * Maintenance page.
 * Fixed visual identity, independent from Theme DB.
 */
body.maintenance-page {
	--page-background: #EAD9B8;
	--site-background: #FFFDF8;
	--text-color: #3F302B;
	--header-background: #FFFDF8;
	--header-text: #5B2924;
	--site-name-primary: #7A1F1F;
	--site-name-accent: #C58A18;
	--header-title-text: #5B2924;
	--header-tagline-text: #8A5A42;
	--content-background: #FFFDF8;
	--accent-color: #8C2924;
	--footer-background: #7A1F1F;
	--footer-text: #FFF8EB;
	--border-color: #D2B47D;
	--muted-text-color: #806B5D;
}

body.maintenance-page .maintenance-page-shell {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

body.maintenance-page .maintenance-content {
	flex: 1 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 24px;
	background: var(--page-background);
}

body.maintenance-page .maintenance-box {
	width: min(960px, 100%);
	min-height: 400px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px;
	text-align: center;
	background: var(--content-background);
	border: 1px solid var(--border-color);
	border-radius: 6px;
}

body.maintenance-page .maintenance-icon {
	width: 64px;
	height: 64px;
	margin-bottom: 18px;
	color: var(--accent-color);
}

body.maintenance-page .maintenance-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

body.maintenance-page .maintenance-box h1 {
	margin: 0 0 18px;
	color: var(--accent-color);
	font-size: 2rem;
}

body.maintenance-page .maintenance-box p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.5;
}

body.maintenance-page .maintenance-thanks {
	margin-top: 26px !important;
	color: var(--muted-text-color);
	font-size: 0.9rem !important;
}

body.maintenance-page .maintenance-header-tagline {
	display: inline-block;
	margin-left: 2.5em;
}

body.maintenance-page .maintenance-footer {
	flex: 0 0 auto;
}

@media (max-width: 800px) {
	body.maintenance-page .maintenance-content {
		padding: 24px 12px;
	}

	body.maintenance-page .maintenance-box {
		min-height: 0;
		padding: 32px 20px;
	}

	body.maintenance-page .maintenance-header-tagline {
		margin-left: 0;
	}
}

/* Public Contact page */
.contact-form { display: flex; flex-direction: column; gap: .55rem; max-width: 38rem; }
.contact-form input:not([type=checkbox]), .contact-form textarea { box-sizing: border-box; width: 100%; padding: .6rem; border: 1px solid var(--border-color); border-radius: 4px; font: inherit; }
.contact-form button { align-self: flex-start; padding: .6rem 1.1rem; cursor: pointer; }
.contact-form .contact-consent { display: flex; align-items: baseline; gap: .5rem; }
.contact-privacy-note { font-size: .9em; }
.contact-notice { padding: .7rem; border: 1px solid var(--border-color); }
.contact-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* Displayed equations in page content. */
.content p.formula {
	margin: 1em 0;
	text-align: center;
	line-height: 1.5;
}

/* Arrows and their law labels in interpretative steps. */
.content p.formula math mover {
	font-size: 1.25em;
}

