/**
 * Estilos de contenido editorial (prosa) del tema.
 *
 * Antes vivían hardcodeados en bloques <style> dentro de single.php y
 * template-tetra-legal.php (se re-descargaban en cada vista y no se cacheaban).
 * Ahora están aquí, en un archivo con versión por filemtime, encolado solo en
 * las plantillas que lo usan (ver inc/blog.php → tbs_enqueue_content_css).
 *
 *   .tb-post-content  → cuerpo de los posts del blog (single.php)
 *   .tbs-legal-prose  → páginas legales (template-tetra-legal.php)
 */

/* ============================================================
   Blog — cuerpo del post (.tb-post-content)
   Barlow body, márgenes generosos, h2/h3 Molot.
   ============================================================ */
.tb-post-content { font-size: 1.0625rem; line-height: 1.75; }
.tb-post-content > * + * { margin-top: 1.25rem; }
.tb-post-content h2 {
	font-family: 'Molot', 'Anton', sans-serif;
	font-size: 2rem;
	line-height: 1.15;
	letter-spacing: .02em;
	margin-top: 2.5rem;
}
.tb-post-content h3 {
	font-family: 'Molot', 'Anton', sans-serif;
	font-size: 1.5rem;
	line-height: 1.2;
	letter-spacing: .02em;
	margin-top: 2rem;
}
.tb-post-content h4 {
	font-weight: 700;
	font-size: 1.125rem;
	margin-top: 1.75rem;
}
.tb-post-content p { color: hsl(var(--foreground)); }
.tb-post-content a {
	color: hsl(var(--brand-red));
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1.5px;
}
.tb-post-content a:hover { color: hsl(var(--brand-red-dark)); }
.tb-post-content ul, .tb-post-content ol { padding-left: 1.5rem; }
.tb-post-content ul { list-style: disc; }
.tb-post-content ol { list-style: decimal; }
.tb-post-content li + li { margin-top: 0.5rem; }
.tb-post-content blockquote {
	border-left: 3px solid hsl(var(--brand-red));
	padding: 0.25rem 0 0.25rem 1.25rem;
	font-style: italic;
	color: hsl(var(--muted-foreground));
}
.tb-post-content code {
	background: hsl(var(--muted));
	padding: 0.1em 0.4em;
	border-radius: 0.25rem;
	font-size: 0.9em;
}
.tb-post-content pre {
	background: hsl(var(--muted));
	padding: 1rem;
	border-radius: 0.5rem;
	overflow-x: auto;
	font-size: 0.875rem;
}
.tb-post-content img, .tb-post-content figure {
	border-radius: 0.75rem;
	max-width: 100%;
	height: auto;
}
.tb-post-content figcaption {
	font-size: 0.8125rem;
	color: hsl(var(--muted-foreground));
	text-align: center;
	margin-top: 0.5rem;
}

/* --- Tablas del contenido (comparativas Gutenberg + tablas sueltas) --- */
.tb-post-content figure.wp-block-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid hsl(var(--border));
	border-radius: 0.75rem;
	margin-left: 0;
	margin-right: 0;
}
.tb-post-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
	line-height: 1.5;
	background: hsl(var(--card));
}
/* Tabla suelta (sin <figure>): darle su propio marco con scroll */
.tb-post-content > table {
	display: block;
	overflow-x: auto;
	border: 1px solid hsl(var(--border));
	border-radius: 0.75rem;
}
.tb-post-content thead th {
	background: hsl(var(--foreground));
	color: hsl(var(--background));
	font-weight: 700;
	text-align: left;
	padding: 0.75rem 1rem;
	font-size: 0.75rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
}
.tb-post-content tbody th,
.tb-post-content tbody td {
	padding: 0.7rem 1rem;
	border-top: 1px solid hsl(var(--border));
	vertical-align: top;
	text-align: left;
}
.tb-post-content tbody tr:nth-child(even) {
	background: hsl(var(--muted) / 0.4);
}
.tb-post-content tbody td:first-child,
.tb-post-content tbody th:first-child {
	font-weight: 600;
	color: hsl(var(--foreground));
	white-space: nowrap;
}
@media (max-width: 640px) {
	.tb-post-content thead th { font-size: 0.6875rem; padding: 0.6rem 0.7rem; }
	.tb-post-content tbody th,
	.tb-post-content tbody td { font-size: 0.8125rem; padding: 0.6rem 0.7rem; }
}

/* ============================================================
   Páginas legales (.tbs-legal-prose)
   ============================================================ */
.tbs-legal-prose h2, .tbs-legal-prose h3 {
	font-family: 'Molot', 'Anton', sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin-top: 2rem;
	margin-bottom: 0.75rem;
	color: hsl(var(--foreground));
}
.tbs-legal-prose h2 { font-size: 1.75rem; line-height: 2rem; }
.tbs-legal-prose h3 { font-size: 1.25rem; }
.tbs-legal-prose p { font-size: 0.9375rem; }
.tbs-legal-prose ul, .tbs-legal-prose ol { padding-left: 1.5rem; }
.tbs-legal-prose ul { list-style: disc; }
.tbs-legal-prose ol { list-style: decimal; }
.tbs-legal-prose li { margin: 0.375rem 0; }
.tbs-legal-prose a { color: hsl(var(--brand-red)); text-decoration: underline; }
.tbs-legal-prose strong { color: hsl(var(--foreground)); font-weight: 700; }
.tbs-legal-prose hr { border-color: hsl(var(--border)); margin: 2rem 0; }
