/* Wiki AllMuOnline — integrada al template MuAmerica (Alchemists dark) de allmuonline */
:root {
	--allmu-bg: #1e2024;
	--allmu-surface: #292c31;
	--allmu-surface-2: #31404b;
	--allmu-border: #3a3f45;
	--allmu-text: #9a9da2;
	--allmu-text-light: #ffffff;
	--allmu-accent: #007bff;
	--allmu-accent-2: #ff7e1f;
}

/* ---------- Base: mismo look que el sitio (Alchemists dark) ---------- */
html, body {
	background-color: #1e2024 !important;
	background-image: none !important;
	color: #9a9da2;
	font-family: "Source Sans Pro", "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 15px;
	line-height: 26px;
	margin: 0;
	padding: 0;
}

/* El jPreLoader del template (overlay "cargando") NO se usa en la wiki — ocultarlo siempre */
#jpreOverlay, .jpreOverlay, #jpreLoader, #jpreBar, #jprePercentage, #jpreButton {
	display: none !important;
}

/* El modal de imágenes arranca cerrado (el atributo hidden no aplica con el CSS del template) */
.wiki-image-modal[hidden] {
	display: none !important;
}

/* El footer del sitio (el del home): full width + transparente.
   El bundle.css de la wiki le imponía ancho fijo 1240px, centrado, padding y fondo propio — se neutraliza */
footer#footer, #footer.footer, .footer#footer, footer.footer {
	background: transparent !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* El footer usa el grid de Bootstrap 4 del template (.row flex + .col-md-*).
   El bundle.css de la wiki trae Bootstrap 3 (.row block + float) → el texto se desplazaba.
   Valores exactos del template: gutter 8px, container 1186px */
.footer-secondary .container {
	width: 1186px !important;
	max-width: 1186px !important;
	padding-left: 8px !important;
	padding-right: 8px !important;
}
.footer-secondary .row {
	display: flex !important;
	flex-wrap: wrap !important;
	margin-left: -8px !important;
	margin-right: -8px !important;
}
.footer-secondary .col-md-4 {
	flex: 0 0 33.333% !important;
	max-width: 33.333% !important;
	float: none !important;
	width: auto !important;
	padding: 0 8px !important;
}
.footer-secondary .col-md-8 {
	flex: 0 0 66.667% !important;
	max-width: 66.667% !important;
	float: none !important;
	width: auto !important;
	padding: 0 8px !important;
}
.footer-secondary ol, .footer-secondary ul {
	margin-bottom: 0 !important;
}
/* Links del contenido: azul del sitio (#007bff), igual que el home — links y hover */
a { color: #007bff; }
/* El bundle pintaba el hover de todos los links en dorado (--theme-link-hover #f4b740) —
   incluido el menú del header. Se fuerza el hover azul del sitio */
a:hover, a:focus {
	color: #007bff !important;
}

/* Títulos de tablas y tarjetas del contenido: azul del sitio */
.wiki-content table th,
.wiki-category-intro table th,
.wiki-home-intro table th,
.wiki-feature-table-title,
.wiki-compare-card-title {
	color: #007bff !important;
}

/* El footer conserva sus colores del template (los links NO se ponen azules) */
#footer .footer-secondary a,
#footer .footer-secondary a:hover {
	color: #fff !important;
}

/* ---------- Capa centrada (como .container del sitio) ---------- */
.wiki-page {
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
}
.wiki-layout {
	max-width: 1200px !important;
	margin: 0 auto !important;
	display: flex !important;
	flex-wrap: nowrap !important;
	flex-direction: row !important;
	gap: 24px;
	padding: 24px 15px 40px;
	align-items: flex-start;
	background: transparent !important;
}

/* ---------- Header estilo allmuonline ---------- */
.allmu-header {
	background: #141619;
	border-bottom: 2px solid var(--allmu-accent);
	padding: 12px 0;
}
.allmu-header-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}
.allmu-logo img {
	height: 40px;
}
.allmu-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}
.allmu-nav a {
	color: #9a9da2;
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
	padding: 8px 14px;
	border-radius: 3px;
	letter-spacing: 1px;
}
.allmu-nav a:hover {
	color: #ffffff;
	background: var(--allmu-surface-2);
}
.allmu-nav a.active {
	color: #fff;
	background: var(--allmu-accent);
}

/* ---------- Paneles ---------- */
.wiki-sidebar {
	flex: 0 0 250px !important;
	background: #292c31 !important;
	border: 1px solid #3a3f45 !important;
	border-radius: 6px;
	padding: 14px;
	/* sin scroll interno: el menú crece con su contenido y scrollea con la página */
	position: static !important;
	max-height: none !important;
	overflow: visible !important;
}
.wiki-main {
	flex: 1 1 0 !important;
	min-width: 0 !important;
	max-width: 100% !important;
	background: #292c31 !important;
	border: 1px solid #3a3f45 !important;
	border-radius: 6px;
	padding: 24px 28px;
	overflow: hidden;
}
.wiki-main img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}
.wiki-main table,
.wiki-main iframe,
.wiki-main .wiki-feature-table,
.wiki-main .wiki-compare-grid,
.wiki-main .wiki-feature-grid {
	max-width: 100% !important;
}
.wiki-main .wiki-feature-table {
	display: block !important;
	overflow-x: auto !important;
}

/* ---------- Footer ---------- */
.allmu-footer {
	text-align: center;
	padding: 22px;
	color: #9a9da2;
	font-size: 13px;
	border-top: 1px solid #3a3f45;
}

/* ---------- Overrides del bundle (colores MuAmerica) ---------- */
.wiki-page-title {
	color: #ffffff !important;
	border-bottom: 2px solid var(--allmu-accent);
	padding-bottom: 10px;
}
.wiki-content h2, .wiki-content h3,
.wiki-main h2, .wiki-main h3 {
	color: #ffffff !important;
}
.wiki-content a, .wiki-main a,
.wiki-content a:hover, .wiki-main a:hover {
	color: #007bff;
}
/* override de los selectores del bundle (nostalgia los pintaba violeta) */
.wiki-content a, .wiki-home-intro a, .wiki-category-intro a, .wiki-toc a {
	color: #007bff !important;
}
.wiki-content a:hover, .wiki-home-intro a:hover, .wiki-category-intro a:hover, .wiki-toc a:hover {
	color: #007bff !important;
}
/* tarjetas de artículos (article-list) también azules */
.wiki-article-list a,
.wiki-article-list-item,
.wiki-article-list-item a,
.wiki-article-list-item a:hover {
	color: #007bff !important;
}
.wiki-sidebar-group-link,
.wiki-sidebar-article-link {
	color: #9a9da2 !important;
	background: transparent !important;
}
.wiki-sidebar-group-link:hover,
.wiki-sidebar-article-link:hover,
.wiki-sidebar-article-link.is-active {
	color: #007bff !important;
	background: #31404b !important;
}
/* marca del menú lateral (el "Wiki") — azul del sitio, el bundle la pintaba dorada */
.wiki-sidebar-brand,
.wiki-sidebar-brand:hover {
	color: #007bff !important;
	text-shadow: none !important;
}
.wiki-feature-table,
.wiki-compare-grid,
.wiki-toc,
.wiki-category-intro,
.wiki-article-list,
.wiki-feature-card,
.wiki-compare-card {
	border-color: #3a3f45 !important;
	background-color: #292c31 !important;
}
.wiki-toc a {
	color: #007bff !important;
}
.wiki-feature-grid,
.wiki-compare-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
}
.wiki-sidebar-group.is-expanded .wiki-sidebar-articles {
	display: block !important;
}
.wiki-sidebar-articles {
	display: none !important;
}
.wiki-sidebar-group.is-expanded > .wiki-sidebar-toggle + .wiki-sidebar-articles,
.wiki-sidebar-group[data-expanded="true"] .wiki-sidebar-articles {
	display: block !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
	.wiki-layout {
		flex-direction: column !important;
	}
	.wiki-sidebar {
		flex: 1 1 auto;
		position: static;
		max-height: none;
		width: 100%;
	}
	.allmu-header-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}
