/* Frethical Wiki Skin — full-width, header #0e76a8 */

:root {
	--ft-primary: #0e76a8;
	--ft-primary-dark: #0a5f8a;
	--ft-primary-light: #1a9bd4;
	--ft-secondary: #333333;
	--ft-light: #f8f9fa;
	--ft-dark: #212529;
	--ft-gray-100: #f8f9fa;
	--ft-gray-200: #e9ecef;
	--ft-gray-300: #dee2e6;
	--ft-gray-600: #6c757d;
	--ft-gray-700: #495057;
	--ft-gray-800: #343a40;
	--ft-white: #ffffff;
	--ft-footer-bg: #1a1d21;
}

* {
	box-sizing: border-box;
}

html, body.skin-frethical {
	margin: 0;
	padding: 0;
	width: 100%;
	min-height: 100%;
}

body.skin-frethical {
	color: var(--ft-gray-800);
	background: var(--ft-white);
	font-family: "Open Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	line-height: 1.6;
}

body.skin-frethical a {
	color: var(--ft-primary);
	text-decoration: none;
}
body.skin-frethical a:hover {
	color: var(--ft-primary-dark);
	text-decoration: underline;
}

/* —— Full-width shell —— */
.ft-app {
	width: 100%;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.ft-shell {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* —— Header full-width blue —— */
.ft-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	width: 100%;
	padding: 0.75rem 1.5rem;
	background: #0e76a8;
	border-bottom: none;
	margin: 0;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.ft-brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
	text-decoration: none !important;
	color: inherit;
}
.ft-brand:hover {
	text-decoration: none !important;
}

.ft-brand-logo {
	height: 36px;
	width: auto;
	flex: 0 0 auto;
	filter: brightness(0) invert(1);
}

.ft-brand-copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ft-brand-kicker {
	color: rgba(255,255,255,0.85);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-family: "Montserrat", "Segoe UI", sans-serif;
}

.ft-brand-name {
	color: #ffffff;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.15;
	font-family: "Montserrat", "Segoe UI", sans-serif;
}

/* Search on blue header */
.ft-search {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex: 1 1 auto;
	max-width: 480px;
	margin-left: auto;
	background: rgba(255,255,255,0.95);
	border: none;
	border-radius: 8px;
	padding: 0.3rem 0.35rem 0.3rem 0.85rem;
}
.ft-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	color: var(--ft-gray-800);
	font-size: 0.95rem;
	outline: none;
}
.ft-search input[type="submit"] {
	border: 0;
	border-radius: 6px;
	padding: 0.5rem 0.95rem;
	font-weight: 600;
	font-size: 0.88rem;
	background: var(--ft-primary-dark);
	color: #ffffff;
	cursor: pointer;
}
.ft-search input[type="submit"]:hover {
	background: #084a6e;
}

.ft-header-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.ft-header-actions a,
.ft-portlet--personal a {
	color: #ffffff !important;
}
.ft-header-actions a:hover {
	opacity: 0.9;
}

.ft-menu-button {
	display: none;
	border: 1px solid rgba(255,255,255,0.5);
	background: transparent;
	border-radius: 6px;
	padding: 0.45rem 0.75rem;
	font-weight: 600;
	font-size: 0.88rem;
	color: #ffffff;
	cursor: pointer;
}

.ft-menu-toggle {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

/* —— Toolbar —— */
.ft-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.75rem;
	width: 100%;
	padding: 0.5rem 1.5rem;
	border-bottom: 1px solid var(--ft-gray-200);
	background: var(--ft-gray-100);
	margin: 0;
}

.ft-portlet__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
}
.ft-portlet__list li {
	margin: 0;
}
.ft-portlet__list a {
	display: inline-block;
	padding: 0.35rem 0.7rem;
	border-radius: 6px;
	font-size: 0.88rem;
	color: var(--ft-gray-700);
	text-decoration: none !important;
}
.ft-portlet__list a:hover {
	background: var(--ft-gray-200);
	color: var(--ft-primary);
}
.ft-portlet__list li.selected a {
	background: rgba(14, 118, 168, 0.12);
	color: var(--ft-primary);
	font-weight: 600;
}

/* —— Body area: drawer + main full width —— */
.ft-body {
	display: flex;
	width: 100%;
	flex: 1;
	align-items: stretch;
}

.ft-drawer {
	float: none;
	width: 240px;
	flex: 0 0 240px;
	margin: 0;
	background: var(--ft-gray-100);
	border: none;
	border-right: 1px solid var(--ft-gray-200);
	border-radius: 0;
	padding: 1.25rem 1rem;
	box-shadow: none;
}

.ft-drawer-section {
	margin-bottom: 1.25rem;
}
.ft-drawer-section:last-child {
	margin-bottom: 0;
}

.ft-drawer-title {
	font-family: "Montserrat", "Segoe UI", sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ft-primary);
	margin-bottom: 0.5rem;
	padding: 0 0.4rem;
}

.ft-drawer-links {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}
.ft-drawer-links a {
	color: var(--ft-gray-700);
	text-decoration: none !important;
	padding: 0.45rem 0.6rem;
	border-radius: 6px;
	font-size: 0.92rem;
}
.ft-drawer-links a:hover {
	background: rgba(14, 118, 168, 0.1);
	color: var(--ft-primary);
}

/* —— Main content full remaining width —— */
.ft-main {
	flex: 1 1 auto;
	width: auto;
	background: var(--ft-white);
	border: none;
	border-radius: 0;
	padding: 1.5rem 2rem 2.5rem;
	min-height: 320px;
	box-shadow: none;
	overflow: auto;
	margin: 0;
}

.ft-content-header .firstHeading {
	color: var(--ft-secondary);
	font-family: "Montserrat", "Segoe UI", sans-serif;
	font-weight: 700;
	font-size: 1.75rem;
	border: none;
	margin: 0 0 0.75rem;
	padding: 0;
	line-height: 1.25;
}

.ft-subtitle {
	color: var(--ft-gray-600);
	font-size: 0.9rem;
	margin-bottom: 1rem;
}

.ft-content h2 {
	color: var(--ft-secondary);
	font-family: "Montserrat", "Segoe UI", sans-serif;
	font-weight: 600;
	font-size: 1.25rem;
	border-bottom: 2px solid var(--ft-primary);
	padding-bottom: 0.35rem;
	margin-top: 1.75rem;
}

.ft-content h3 {
	color: var(--ft-primary-dark);
	font-family: "Montserrat", "Segoe UI", sans-serif;
	font-weight: 600;
	font-size: 1.08rem;
	margin-top: 1.35rem;
}

.ft-content ul, .ft-content ol {
	padding-left: 1.35rem;
}
.ft-content li {
	margin-bottom: 0.35rem;
}

.ft-content hr {
	border: none;
	border-top: 1px solid var(--ft-gray-200);
	margin: 1.5rem 0;
}

/* —— Footer full width —— */
.ft-footer {
	clear: both;
	width: 100%;
	margin: 0;
	padding: 2rem 1.5rem 1.5rem;
	background: var(--ft-footer-bg);
	color: #c5d0da;
}

.ft-footer-inner {
	width: 100%;
	max-width: none;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem 2rem;
	align-items: flex-start;
	justify-content: space-between;
}

.ft-footer-brand {
	max-width: 400px;
}
.ft-footer-logo {
	height: 32px;
	width: auto;
	margin-bottom: 0.6rem;
	opacity: 0.95;
}
.ft-footer-brand p {
	color: #9aabba;
	font-size: 0.88rem;
	line-height: 1.45;
	margin: 0;
}

.ft-footer-links {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}
.ft-footer-links a {
	color: #c5d0da !important;
	text-decoration: none !important;
	font-size: 0.9rem;
}
.ft-footer-links a:hover {
	color: #ffffff !important;
}

.ft-footer-copy {
	width: 100%;
	margin-top: 0.5rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(255,255,255,0.08);
	color: #7a8a98;
	font-size: 0.78rem;
}

/* —— Responsive —— */
@media (max-width: 860px) {
	.ft-drawer {
		width: 100%;
		flex: none;
		border-right: none;
		border-bottom: 1px solid var(--ft-gray-200);
		display: none;
	}
	.ft-menu-button {
		display: inline-block;
	}
	.ft-menu-toggle:checked ~ .ft-shell .ft-drawer {
		display: block;
	}
	.ft-body {
		flex-direction: column;
	}
	.ft-search {
		max-width: none;
		order: 3;
		width: 100%;
		margin-left: 0;
	}
	.ft-header {
		flex-wrap: wrap;
	}
	.ft-main {
		padding: 1.25rem 1rem 2rem;
	}
}

.mw-editsection {
	font-size: 0.85rem;
}
#siteSub, .mw-jump-link {
	display: none;
}
