@CHARSET "UTF-8";

/* ------------------- New CSS styles ------------------- */
/* ------------------------------------------------------ */

/*
 * Page scroll fix
 * ----------------
 * Templates/html.tpl historically omitted <!DOCTYPE>, which forced quirks mode.
 * In quirks mode Chromium uses BODY as document.scrollingElement with overflow:auto,
 * so tall floated layouts (#contentOuterContainer) clip and the page cannot scroll
 * reliably (reports, build descriptions, anleitung, etc.).
 *
 * DOCTYPE restores standards mode (html = scrollingElement). Keep body overflow
 * visible so we do NOT create a second scrollport (overflow-x:auto would force
 * overflow-y to compute as auto per CSS).
 */
html {
	height: auto;
	overflow-y: auto;
}

body {
	height: auto !important;
	min-height: 100%;
	overflow: visible;
}

/* Contain Travian floats so mid/wrapper grow with long content */
#mid:after,
.bodyWrapper:after,
#contentOuterContainer .contentContainer:after,
#content:after {
	content: "";
	display: table;
	clear: both;
}

/* Manual standalone pages: always allow document scroll */
html:has(body.manual-page),
html:has(body.manual) {
	overflow-y: auto;
	height: auto;
}

body.manual,
body.manual-page {
	overflow: visible !important;
	height: auto !important;
	min-height: 100vh;
}
