/**
 * Corevia — print.
 *
 * Attached with media="print" so it never blocks rendering on screen.
 *
 * @package Corevia
 * @since   1.0.0
 */

@page {
	margin: 1.6cm;
}

body {
	background: #fff;
	color: #000;
	font-size: 11pt;
	line-height: 1.5;
}

.corevia-header__actions,
.corevia-nav,
.corevia-nav-toggle,
.corevia-sidebar,
.corevia-footer__widgets,
.corevia-pagination,
.corevia-post-nav,
.corevia-comments,
.corevia-skip-link,
.corevia-breadcrumbs,
.corevia-more-link,
#comments,
form {
	display: none;
}

.corevia-layout {
	display: block;
	padding-block: 0;
}

.corevia-container {
	max-inline-size: none;
	padding-inline: 0;
}

/* Expose destinations that a printed page would otherwise lose. */
.corevia-flow a[href^="http"]::after {
	content: " (" attr(href) ")";
	font-size: 9pt;
	word-break: break-all;
}

h1, h2, h3, h4, h5, h6 {
	page-break-after: avoid;
	break-after: avoid;
}

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

/*
 * The one `!important` in this file. A builder or a plugin may set an explicit
 * pixel width on an image for screen; carried into print that overflows the
 * paper and the overflow is simply lost, so this has to win outright.
 */
img {
	max-inline-size: 100% !important;
}
