/* Nopales OT — capa visual sobre style.css (kathrine).
   Inspiración: tibia.com 2001-2003 (fondo oscuro, cajas de madera, pergamino) + verde nopal, tuna y dorado. */

:root {
	--np-bg: #0d120b;
	--np-wood: #3a2a1a;
	--np-wood-dark: #24190f;
	--np-wood-edge: #6b4f2e;
	--np-gold: #e8c76a;
	--np-gold-dim: #b89a4a;
	--np-parchment: #f1e0c6;
	--np-parchment-dark: #d4c0a1;
	--np-ink: #2b2014;
	--np-nopal: #4f7d32;
	--np-nopal-dark: #2f4a1f;
	--np-nopal-light: #7fb456;
	--np-tuna: #c2185b;
	--np-online: #6fd25a;
	--np-offline: #e0524f;
}

html { background: var(--np-bg); }

body {
	margin: 0;
	font-family: Verdana, Tahoma, Arial, sans-serif;
	font-size: 11px;
	color: var(--np-ink);
	background:
		radial-gradient(ellipse at 50% -10%, rgba(79,125,50,.35), transparent 60%),
		repeating-linear-gradient(45deg, rgba(255,255,255,.015) 0 2px, transparent 2px 6px),
		var(--np-bg);
	background-attachment: fixed;
	min-height: 100vh;
}

a { color: #5a3a12; }
a:hover { color: var(--np-tuna); }

#np-page {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 16px 24px;
	box-sizing: border-box;
}

/* ---------- Cabecera ---------- */
#np-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 6px 14px;
	border-bottom: 3px double var(--np-gold-dim);
	margin-bottom: 14px;
}

.np-brand {
	display: flex;
	align-items: flex-end;
	gap: 14px;
	text-decoration: none;
}

.np-logo {
	width: 84px;
	height: auto;
	filter: drop-shadow(0 4px 0 rgba(0,0,0,.6));
}

.np-brand-text { display: flex; flex-direction: column; }

.np-title {
	font-family: 'MedievalSharp', 'Times New Roman', serif;
	font-size: 54px;
	line-height: 1;
	color: var(--np-gold);
	letter-spacing: 1px;
	text-shadow:
		2px 2px 0 #000,
		-1px -1px 0 #000,
		0 0 18px rgba(232,199,106,.25);
}

.np-subtitle {
	margin-top: 6px;
	color: #cdbb86;
	font-size: 12px;
	font-style: italic;
	text-shadow: 1px 1px 0 #000;
}

.np-header-status {
	color: #e9dfc0;
	font-size: 12px;
	background: rgba(0,0,0,.45);
	border: 1px solid var(--np-wood-edge);
	padding: 6px 10px;
	white-space: nowrap;
}

.np-dot {
	display: inline-block;
	width: 9px; height: 9px;
	border-radius: 50%;
	margin-right: 4px;
	vertical-align: middle;
}
.is-online .np-dot { background: var(--np-online); box-shadow: 0 0 6px var(--np-online); }
.is-offline .np-dot { background: var(--np-offline); }

/* ---------- Columnas ---------- */
#np-columns {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr) 200px;
	gap: 14px;
	align-items: start;
}

/* ---------- Cajas de madera ---------- */
.np-box {
	background: linear-gradient(180deg, var(--np-wood) 0%, var(--np-wood-dark) 100%);
	border: 2px solid #000;
	outline: 1px solid var(--np-wood-edge);
	outline-offset: -4px;
	box-shadow: 0 3px 0 rgba(0,0,0,.6);
	margin-bottom: 12px;
}

.np-box-title {
	font-family: 'MedievalSharp', 'Times New Roman', serif;
	font-size: 15px;
	color: var(--np-gold);
	text-shadow: 1px 1px 0 #000;
	padding: 7px 10px 6px;
	background: linear-gradient(180deg, var(--np-nopal) 0%, var(--np-nopal-dark) 100%);
	border-bottom: 2px solid #000;
}

.np-box-body {
	padding: 10px;
	color: #e9dfc0;
}

.np-menu-box ul {
	list-style: none;
	margin: 0;
	padding: 4px 0;
}

.np-menu-box li a {
	display: block;
	padding: 4px 10px 4px 22px;
	color: #e8d9a8;
	text-decoration: none;
	position: relative;
}

.np-menu-box li a::before {
	content: '';
	position: absolute;
	left: 9px; top: 50%;
	width: 5px; height: 5px;
	margin-top: -3px;
	background: var(--np-nopal-light);
	transform: rotate(45deg);
}

.np-menu-box li a:hover {
	background: rgba(127,180,86,.15);
	color: #fff;
}
.np-menu-box li a:hover::before { background: var(--np-tuna); }

/* ---------- Pergamino ---------- */
.np-breadcrumb {
	color: #cdbb86;
	font-size: 11px;
	padding: 0 2px 6px;
}
.np-breadcrumb a { color: var(--np-gold); text-decoration: none; }

.np-parchment {
	background:
		radial-gradient(ellipse at 20% 10%, rgba(255,255,255,.35), transparent 50%),
		radial-gradient(ellipse at 90% 90%, rgba(120,80,30,.12), transparent 60%),
		var(--np-parchment);
	border: 2px solid #000;
	outline: 2px solid var(--np-wood-edge);
	outline-offset: -6px;
	box-shadow: 0 3px 0 rgba(0,0,0,.6);
	padding: 16px 16px 20px;
	min-height: 400px;
}

.np-parchment .Content { width: auto; }
.np-parchment #ContentHelper { overflow-x: auto; }

.np-parchment h1, .np-parchment h2, .np-parchment h3 {
	font-family: 'MedievalSharp', 'Times New Roman', serif;
	color: var(--np-nopal-dark);
	font-weight: normal;
	margin: 14px 0 8px;
}
.np-parchment h2 { font-size: 20px; border-bottom: 1px solid var(--np-parchment-dark); padding-bottom: 3px; }
.np-parchment h3 { font-size: 16px; }

.np-parchment code {
	background: rgba(61,82,41,.12);
	padding: 0 3px;
}

/* Titulares de noticias */
.Content #News .NewsHeadlineBackground,
.Content #NewsArchive .NewsHeadlineBackground,
.Content #FeaturedArticle .NewsHeadlineBackground {
	background: linear-gradient(180deg, var(--np-nopal) 0%, var(--np-nopal-dark) 100%) !important;
	border: 1px solid #000;
	height: auto;
	min-height: 28px;
}
.Content #News .NewsHeadlineText {
	font-family: 'MedievalSharp', 'Times New Roman', serif;
	font-size: 16px;
	color: var(--np-gold);
	text-shadow: 1px 1px 0 #000;
}
.Content #News .NewsHeadlineDate,
.Content #News .NewsHeadlineAuthor { color: #e9dfc0; }

/* Cabeceras de tablas de MyAAC (las que usan vdarkborder) */
.np-parchment table tr[bgcolor="#3d5229"] td,
.np-parchment .white { color: #fff; }

/* ---------- Columna derecha ---------- */
.np-status-big {
	font-family: 'MedievalSharp', 'Times New Roman', serif;
	font-size: 22px;
	text-align: center;
	margin-bottom: 6px;
	text-shadow: 1px 1px 0 #000;
}
.np-status-big.is-online { color: var(--np-online); }
.np-status-big.is-offline { color: var(--np-offline); }

.np-status dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 3px 8px;
	margin: 0;
}
.np-status dt { color: #b9a978; }
.np-status dd { margin: 0; text-align: right; color: #fff; }
.np-status a, .np-rates a { color: var(--np-gold); }

.np-button {
	display: block;
	text-align: center;
	padding: 7px 8px;
	margin-bottom: 6px;
	font-weight: bold;
	text-decoration: none;
	color: #fff !important;
	background: linear-gradient(180deg, #8a1446 0%, var(--np-tuna) 45%, #7a0f3c 100%);
	border: 2px solid #000;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
	text-shadow: 1px 1px 0 #000;
}
.np-button:hover { filter: brightness(1.15); }
.np-button-quiet {
	background: linear-gradient(180deg, #5d4a33 0%, #3f2f1e 100%);
}

.np-download {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	text-decoration: none;
	color: #fff !important;
	background: linear-gradient(180deg, var(--np-nopal-light) 0%, var(--np-nopal) 50%, var(--np-nopal-dark) 100%);
	border: 2px solid #000;
	font-weight: bold;
	font-size: 13px;
	text-shadow: 1px 1px 0 #000;
}
.np-download small { font-weight: normal; font-size: 10px; color: #f1e9c8; }
.np-download:hover { filter: brightness(1.12); }
.np-download-arrow { font-size: 22px; }

.np-rates { width: 100%; border-collapse: collapse; color: #e9dfc0; }
.np-rates td { padding: 3px 0; border-bottom: 1px dotted rgba(232,199,106,.25); }
.np-rates td:last-child { text-align: right; color: #fff; font-weight: bold; }
.np-small { font-size: 10px; color: #b9a978; margin: 8px 0 0; }

/* ---------- Pie ---------- */
#np-footer {
	text-align: center;
	color: #8f8466;
	font-size: 10px;
	margin-top: 18px;
	padding-top: 10px;
	border-top: 1px solid #2c2416;
}
#np-footer a { color: var(--np-gold-dim); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	#np-columns { grid-template-columns: 1fr; }
	#np-main { order: 1; }
	#np-side { order: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 12px; }
	#np-menu { order: 3; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 12px; }
	.np-title { font-size: 38px; }
	.np-logo { width: 60px; }
	#np-header { flex-wrap: wrap; align-items: center; }
}

/* Titulares de noticia que no quepan: que bajen de línea en vez de salirse */
.Content #News .NewsHeadlineBackground { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 0 8px; padding: 4px 8px 4px 40px; }
.Content #News .NewsHeadlineIcon { position: absolute; left: 6px; top: 4px; }
.Content #News .NewsHeadlineDate,
.Content #News .NewsHeadlineText,
.Content #News .NewsHeadlineAuthor { position: static; float: none; margin: 0; width: auto; height: auto; }
@media (max-width: 600px) { .Content #News .NewsHeadlineText { font-size: 14px; } }
