/**
 * Print Styles for maxheadroom pure
 * Optimized for clean, readable printed output
 */

/* Remove unnecessary elements */
@media print {
	/* Hide navigation, search, and interactive elements */
	.wp-block-navigation,
	.wp-block-search,
	.wp-block-button,
	.wp-block-buttons,
	.comment-reply-link,
	.wp-block-post-navigation-link,
	.wp-block-query-pagination,
	.wp-block-comments-pagination,
	.wp-block-post-comments-form,
	header nav,
	footer {
		display: none !important;
	}

	/* Reset colors for print */
	* {
		background: transparent !important;
		color: #000 !important;
		box-shadow: none !important;
		text-shadow: none !important;
	}

	/* Ensure body uses black text */
	body {
		font-size: 12pt;
		line-height: 1.5;
		color: #000;
		background: #fff;
	}

	/* Optimize headings for print */
	h1, h2, h3, h4, h5, h6 {
		page-break-after: avoid;
		page-break-inside: avoid;
	}

	h1 {
		font-size: 24pt;
	}

	h2 {
		font-size: 20pt;
	}

	h3 {
		font-size: 18pt;
	}

	h4 {
		font-size: 16pt;
	}

	h5, h6 {
		font-size: 14pt;
	}

	/* Optimize paragraphs */
	p {
		orphans: 3;
		widows: 3;
		page-break-inside: avoid;
	}

	/* Optimize blockquotes */
	blockquote {
		page-break-inside: avoid;
		border-left: 2px solid #000;
		padding-left: 1em;
		font-style: italic;
	}

	/* Optimize code blocks */
	pre,
	code {
		page-break-inside: avoid;
		border: 1px solid #000;
		font-family: 'Courier New', Courier, monospace;
		font-size: 10pt;
	}

	pre {
		padding: 0.5em;
		white-space: pre-wrap;
	}

	/* Optimize images */
	img {
		max-width: 100% !important;
		page-break-inside: avoid;
		page-break-after: avoid;
	}

	/* Optimize lists */
	ul, ol {
		page-break-inside: avoid;
	}

	/* Optimize tables */
	table {
		page-break-inside: avoid;
		border-collapse: collapse;
	}

	table, th, td {
		border: 1px solid #000;
	}

	th, td {
		padding: 0.5em;
	}

	/* Show link URLs after the link text */
	a[href]:after {
		content: " (" attr(href) ")";
		font-size: 90%;
	}

	/* Don't show URLs for fragment identifiers or javascript */
	a[href^="#"]:after,
	a[href^="javascript:"]:after {
		content: "";
	}

	/* Optimize post meta */
	.wp-block-post-date,
	.wp-block-post-terms {
		font-size: 10pt;
	}

	/* Ensure adequate spacing */
	.wp-block-group {
		margin-bottom: 1em;
	}

	/* Hide separators */
	.wp-block-separator,
	hr {
		display: none !important;
	}

	/* Optimize page margins */
	@page {
		margin: 2cm;
	}

	/* Ensure main content fills the page */
	main {
		width: 100%;
		max-width: none;
	}
}
