/**
 * PressFlow — Print Stylesheet
 *
 * Optimized for printing articles with clean, readable output.
 */

@media print {
	/* Hide non-essential elements */
	.site-header,
	.site-footer,
	.wp-block-navigation,
	.wp-block-search,
	.wp-block-social-links,
	.pressflow-back-to-top,
	.skip-link,
	.wp-block-query-pagination,
	.wp-block-comments,
	.wp-block-post-comments-form,
	aside,
	nav {
		display: none !important;
	}

	body.single-post::before {
		display: none !important;
	}

	/* Reset backgrounds and colors */
	body,
	main,
	article,
	.wp-block-group,
	.wp-block-cover {
		background: #fff !important;
		color: #000 !important;
	}

	/* Expand article to full width */
	main,
	article,
	.entry-content {
		max-inline-size: 100% !important;
		inline-size: 100% !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	/* Typography for print */
	body {
		font-size: 12pt;
		line-height: 1.5;
		font-family: Georgia, 'Times New Roman', serif;
	}

	h1 { font-size: 24pt; }
	h2 { font-size: 20pt; }
	h3 { font-size: 16pt; }
	h4 { font-size: 14pt; }

	/* Show URLs after links */
	a[href]::after {
		content: " (" attr(href) ")";
		font-size: 0.85em;
		font-weight: normal;
		word-wrap: break-word;
	}

	/* Don't show URL for internal/anchor links */
	a[href^="#"]::after,
	a[href^="javascript:"]::after {
		content: "";
	}

	/* Avoid page breaks in awkward places */
	h1, h2, h3, h4, h5, h6 {
		page-break-after: avoid;
		page-break-inside: avoid;
	}

	img,
	figure,
	blockquote,
	pre,
	table {
		page-break-inside: avoid;
	}

	/* Ensure images are visible and sized */
	img {
		max-inline-size: 100% !important;
		block-size: auto !important;
	}

	/* Remove shadows and borders */
	* {
		box-shadow: none !important;
		text-shadow: none !important;
	}
}
