/**
 * Print styles
 *
 * Loaded with media="print" (no inner media queries needed).
 * Hides site chrome and interactive-only UI, normalizes colors for
 * paper, expands link targets, and forces collapsed content open.
 */

/* --- Hide site chrome and interactive-only elements --- */

header.site-header nav,
.wp-block-navigation,
.wp-site-blocks > footer,
footer.site-footer,
.lp-popup,
.lp-popup__close,
.launchpad-back-to-top,
.launchpad-dark-mode-toggle,
.wp-block-search,
.wp-block-buttons,
video,
audio,
iframe,
.wp-block-embed {
	display: none !important;
}

/* --- Paper-friendly colors --- */

html,
body {
	background: #fff !important;
	color: #000 !important;
}

a {
	color: #000 !important;
	text-decoration: underline;
}

/* --- Expand link targets in content (skip internal anchors) --- */

.entry-content a[href^="http"]::after,
.wp-block-post-content a[href^="http"]::after {
	content: " (" attr(href) ")";
	font-size: 0.85em;
	word-break: break-all;
}

/* --- Force collapsed accordions open --- */

.launchpad-accordion-item__content,
.launchpad-accordion-item__content[aria-hidden="true"] {
	display: block !important;
	visibility: visible !important;
	max-height: none !important;
	overflow: visible !important;
}

.launchpad-accordion-item__icon {
	display: none !important;
}

/* --- Avoid awkward page breaks --- */

.launchpad-accordion-item,
figure,
table,
blockquote {
	break-inside: avoid;
}

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