/* =====================================================================
   megafire — base del sitio
   ---------------------------------------------------------------------
   Lo que pinta en TODO el sitio: el fondo de piedra con rejilla, la fuente
   y el color base del texto, y el desenganche de la barra lateral del
   padre en la portada. Cada zona tiene ademas su hoja: cabina.css
   (portada, cabecera, pie), ficha.css, catalogo.css, blog.css, listas.css.
   ===================================================================== */
:root {
	--mf-bg:   #12151b;   /* piedra (forja) */
	--mf-text: #e7dcc2;   /* pergamino */
}

body.home .sections, body.blog .sections {
	width: 100% !important; max-width: none !important;
	float: none !important; margin: 0 !important; padding: 0 !important;
}

body.home #sidebar, body.blog #sidebar, body.home .sidebar, body.blog .sidebar, body.home aside.widget-area, body.blog aside.widget-area { display: none !important; }

body.home #main-site .container, body.blog #main-site .container {
	max-width: none !important; width: 100% !important; padding: 0 !important;
}

@media (max-width: 900px) { .mf-cat { padding: 0 16px; } }

html body, body.home, .wrapper-page, .wrapper-inside { color: var(--mf-text); }

html body #main-site { padding-top: 0 !important; margin-top: 0 !important; }

html body, html body.home {
	background-color: var(--mf-bg) !important;
	/* Rejilla MEDIDA de la referencia: paso 37px y linea verdosa apenas 7
	   niveles sobre el fondo. Una sola pasada, sin subrejilla. */
	background-image:
		linear-gradient(rgba(217,164,65,.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(217,164,65,.07) 1px, transparent 1px) !important;
	background-size: 37px 37px, 37px 37px !important;
	background-attachment: fixed !important;
	background-position: center top !important;
}

/* Los contenedores del padre tapaban la cuadricula del fondo. */
html .wrapper-page, html .wrapper-inside, html body #main-site, html .sections, html body .container {
	background: transparent !important;
}

/* Base global: fuente y color del texto que no cuelga de ningun bloque
   nuestro (comentarios, plugins) y la seleccion en oro. */
html body, p { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #f2f4f9; }
a { color: #f2f4f9; text-decoration: none; }
/* el bloque de notas va entero en Inter: sus parrafos heredan */
.cab2f__score p { font-family: inherit; }
::selection { background: rgba(217,164,65,.35); color: #fff; }
