/* ==========================================================================
   80 · IMPRESIÓN
   --------------------------------------------------------------------------
   Los artículos de este sitio son documentación técnica y hay gente que los
   imprime o los guarda en PDF. Merece la pena que salgan bien.
   ========================================================================== */

@page {
	margin: 18mm 16mm;
}

body {
	background: none;
	color: var(--wp--custom--print--ink);
	font-size: 11pt;
	line-height: 1.5;
}

/* Cromo del sitio: fuera. El índice de las legales también: en papel no se
   puede pulsar, y son justo las páginas que la gente imprime. */
.site-header,
.mobile-drawer,
.site-footer,
.skip-link,
.nav-toggle,
.social-links,
.post-share,
.related-posts,
.legal__toc,
.btn {
	display: none !important;
}

/* Sin fondos oscuros: gastan tinta y dejan el texto ilegible. */
.is-dark,
.is-dark * {
	background: none !important;
	color: var(--wp--custom--print--ink) !important;
}

/* Los titulares no se quedan solos al final de la página. */
h1,
h2,
h3,
h4 {
	break-after: avoid;
	page-break-after: avoid;
}

figure,
img,
table,
pre,
blockquote {
	break-inside: avoid;
	page-break-inside: avoid;
}

img {
	max-width: 100% !important;
}

/* La URL de los enlaces, que en papel no se pueden pulsar. */
.p2080-prose a[href^="http"]::after {
	content: " (" attr(href) ")";
	font-size: 9pt;
	word-break: break-all;
}
