/*
 * Print stylesheet (RWEB_0031), loaded with <link media="print"> in the root
 * layout: keep the content, drop the site chrome, interactive widgets and
 * decorative backgrounds to save ink and paper.
 */
@page {
	margin: 1.5cm;
}

*,
*::before,
*::after {
	box-shadow: none !important;
	text-shadow: none !important;
	animation: none !important;
	transition: none !important;
}

html,
body,
body > div,
.hero {
	background: #fff !important;
	color: #000 !important;
}

body {
	font-size: 11pt;
	print-color-adjust: economy;
}

/* Site chrome and non-printable widgets */
#site-header,
footer,
nav,
form,
iframe,
video,
main > svg,
.wp-block-embed,
.embla__controls,
.mapboxgl-map,
.skeleton {
	display: none !important;
}

/* Unroll the card slider so every card gets printed */
.embla__viewport {
	overflow: visible !important;
}

.embla__container {
	flex-wrap: wrap;
	gap: 1rem;
	margin-left: 0 !important;
	transform: none !important;
}

.embla__slide {
	flex: 0 0 calc(50% - 0.5rem) !important;
	padding-left: 0 !important;
}

/* Content gets the full page width */
.entry-content {
	--containerWidth: 100%;
	--gap: 0;
}

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

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

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

p {
	orphans: 3;
	widows: 3;
}

/* Paper has no hyperlinks: print external URLs next to their label */
.entry-content :is(p, li) > a[href^="http"]::after {
	content: " (" attr(href) ")";
	font-size: 0.85em;
	word-break: break-all;
}
