/**
 * Notas editoriales (todo lo que es entrada y no ficha).
 *
 * La nota va en dos columnas: el texto a la izquierda y una barra lateral con
 * lo que el sitio tiene para ofrecerle a quien cae en una nota desde Google
 * —comparador, fichas mas leidas, marcas y temas—. El reparto en columnas y el
 * componente de la barra viven en aside.css, compartidos con la ficha.
 *
 * El ancho de lectura ya no se fuerza con un max-width sobre el texto: lo da la
 * propia columna, que con la barra al lado queda en unos 760 px. Antes el
 * contenido corria a 1160 y habia que recortarlo por dentro, lo que dejaba dos
 * franjas vacias enormes a los costados.
 *
 * Los tokens comunes vienen de :root en header.css.
 */

body.bt-nota-single {
	--bt-nota-borde: #dde4f3;
	--bt-nota-aire: 34px;
}

/* Astra deja 2.5em (40 px) de aire a cada lado del texto; con el texto ademas
   recortado por dentro, la caja parecia todo margen. */
body.bt-nota-single.ast-separate-container .ast-article-single {
	padding: var(--bt-nota-aire);
}

@media (max-width: 921px) {
	body.bt-nota-single {
		--bt-nota-aire: 26px;
	}
}

@media (max-width: 544px) {
	body.bt-nota-single {
		--bt-nota-aire: 20px 16px;
	}
}

/* ---------- foto destacada ---------- */

/* Sin el solape de -80px que Astra usa para montar el articulo sobre la foto. */
body.bt-nota-single.ast-separate-container .site-content .ast-single-post-featured-section + article {
	margin-top: 20px;
	z-index: auto;
}

body.bt-nota-single .site-content .ast-article-image-container--wide,
body.bt-nota-single .site-content .ast-article-image-container--full {
	margin-left: auto;
	margin-right: auto;
	max-width: 100%;
	width: auto;
}

body.bt-nota-single .site-content .ast-single-post-featured-section {
	/* Sin margen arriba: el aire bajo la cabecera lo pone #primary. */
	margin: 0 auto;
	border-radius: 12px;
	overflow: hidden;
}

/* La foto de nota es apaisada: se recorta al centro, con tope de alto para que
   no se coma la primera pantalla. */
body.bt-nota-single .site-content .ast-single-post-featured-section img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 21 / 9;
	max-height: 400px;
	object-fit: cover;
}

/* ---------- cabecera ---------- */

body.bt-nota-single .entry-header {
	padding-bottom: 4px;
}

body.bt-nota-single .entry-title {
	margin: 0 0 10px;
	font-size: clamp(26px, 3.2vw, 36px);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -.02em;
}

body.bt-nota-single .entry-meta,
body.bt-nota-single .entry-meta * {
	font-size: 13.5px;
	color: var(--bt-muted);
}

body.bt-nota-single .entry-meta a {
	color: var(--bt-muted);
	text-decoration: none;
}

body.bt-nota-single .entry-meta a:hover {
	color: var(--bt-accent);
}

/* ---------- cuerpo ---------- */

body.bt-nota-single .entry-content {
	font-size: 17.5px;
	line-height: 1.72;
	color: #2d3138;
}

/* Solo el margen vertical: el atajo `margin` pisa cualquier centrado lateral. */
body.bt-nota-single .entry-content p {
	margin-top: 0;
	margin-bottom: 1.25em;
}

body.bt-nota-single .entry-content h2 {
	margin: 1.9em 0 .6em;
	font-size: clamp(21px, 2.2vw, 26px);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -.02em;
	color: var(--bt-text);
}

body.bt-nota-single .entry-content h3 {
	margin: 1.5em 0 .5em;
	font-size: clamp(18px, 1.9vw, 20px);
	font-weight: 700;
	line-height: 1.3;
	color: var(--bt-text);
}

body.bt-nota-single .entry-content h4 {
	margin: 1.4em 0 .4em;
	font-size: 17px;
	font-weight: 700;
	color: var(--bt-text);
}

body.bt-nota-single .entry-content ul,
body.bt-nota-single .entry-content ol {
	margin: 0 0 1.35em;
	padding-left: 1.3em;
}

body.bt-nota-single .entry-content li {
	margin-bottom: .45em;
}

body.bt-nota-single .entry-content li::marker {
	color: var(--bt-accent);
}

body.bt-nota-single .entry-content a {
	color: var(--bt-accent-dark);
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
}

body.bt-nota-single .entry-content a:hover {
	color: var(--bt-accent);
}

body.bt-nota-single .entry-content strong,
body.bt-nota-single .entry-content b {
	color: var(--bt-text);
	font-weight: 700;
}

body.bt-nota-single .entry-content blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--bt-accent);
	background: transparent;
	font-size: 18px;
	line-height: 1.7;
	color: var(--bt-text);
}

body.bt-nota-single .entry-content blockquote p:last-child {
	margin-bottom: 0;
}

body.bt-nota-single .entry-content figure,
body.bt-nota-single .entry-content .wp-block-image {
	max-width: 100%;
	margin: 1.8em 0;
}

body.bt-nota-single .entry-content img {
	display: block;
	height: auto;
	max-width: 100%;
	margin-inline: auto;
	border-radius: 10px;
	box-shadow: none;
}

body.bt-nota-single .entry-content figcaption {
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--bt-muted);
	text-align: center;
}

/* Una tabla en un telefono se desplaza sola en vez de empujar la pagina. */
body.bt-nota-single .entry-content table {
	display: block;
	width: 100%;
	overflow-x: auto;
	font-size: 15px;
}

/* ---------- segui leyendo ---------- */

.bt-sigue {
	margin: 34px 0 4px;
	padding-top: 24px;
	border-top: 1px solid var(--bt-nota-borde, #dde4f3);
}

.bt-sigue,
.bt-sigue * {
	box-sizing: border-box;
}

.bt-sigue__title {
	margin: 0 0 2px !important;
	font-size: 20px !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	color: var(--bt-text) !important;
}

.bt-sigue__bajada {
	margin: 0 0 16px;
	font-size: 13.5px;
	color: var(--bt-muted);
}

.bt-sigue__list {
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

.bt-sigue__item {
	min-width: 0;
	margin: 0 !important;
}

.bt-sigue__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #ffffff;
	border: 1px solid var(--bt-nota-borde, #dde4f3);
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none !important;
	color: inherit;
	box-shadow: 0 1px 2px rgba(16, 29, 66, .05);
	transition: transform .15s, box-shadow .15s, border-color .15s;
}

.bt-sigue__link:hover,
.bt-sigue__link:focus-visible {
	transform: translateY(-3px);
	border-color: #c3d3f6;
	box-shadow: 0 10px 22px rgba(16, 29, 66, .13);
}

.bt-sigue__media {
	display: block;
	background: var(--bt-surface-2);
	overflow: hidden;
}

.bt-sigue__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 0 !important;
	box-shadow: none !important;
	margin: 0 !important;
}

.bt-sigue__cuerpo {
	padding: 12px 14px 15px;
	min-width: 0;
}

.bt-sigue__chip {
	display: block;
	margin-bottom: 5px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--bt-accent);
}

.bt-sigue__nombre {
	display: -webkit-box;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--bt-text);
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bt-sigue__ver {
	display: inline-block;
	margin-top: 16px;
	font-size: 14px;
	font-weight: 600;
	color: var(--bt-accent-dark);
	text-decoration: none;
}

.bt-sigue__ver:hover {
	text-decoration: underline;
}

/* ---------- adaptaciones ---------- */

@media (min-width: 560px) {
	.bt-sigue__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.bt-sigue__link {
		transition: none;
	}

	.bt-sigue__link:hover {
		transform: none;
	}
}
