/**
 * Print stylesheet (media="print"): the About page prints as a clean 1–2 page CV; other pages print readable.
 * Interactive and decorative chrome is hidden; links show their destination.
 */
@media print {
	@page {
		margin: 16mm 14mm;
	}

	:root {
		--agm-color-bg: #fff;
	}

	body {
		background: #fff !important;
		color: #000 !important;
		font-size: 10.5pt;
		line-height: 1.45;
	}

	#masthead,
	.site-header,
	.main-header-bar-wrap,
	#colophon,
	.site-footer,
	.ast-scroll-top,
	.skip-link,
	.agm-lang-switcher,
	.agm-breadcrumbs,
	.agm-toc,
	.agm-btn,
	.agm-code__copy,
	.agm-timeline-filter,
	.agm-timeline__toggle,
	.agm-lab-index,
	.agm-lab-nav,
	.agm-quiz,
	.wp-block-buttons,
	.navigation.pagination,
	.agm-no-print {
		display: none !important;
	}

	.ast-container,
	.agm-container,
	.site-content .ast-container {
		max-width: none !important;
		width: 100% !important;
		padding: 0 !important;
		display: block !important;
	}

	#primary,
	.content-area {
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	h1 {
		font-size: 20pt;
	}

	h2 {
		font-size: 14pt;
		margin-top: 12pt;
		border-bottom: 1px solid #000;
		padding-bottom: 2pt;
	}

	h3 {
		font-size: 11.5pt;
	}

	h1,
	h2,
	h3,
	h4 {
		color: #000 !important;
		break-after: avoid;
	}

	p,
	li,
	blockquote,
	.agm-timeline__item,
	.agm-card {
		break-inside: avoid;
	}

	/* Show every collapsed timeline body when printing */
	.agm-timeline__body[hidden] {
		display: block !important;
	}

	.agm-timeline__item[hidden] {
		display: block !important;
	}

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

	.entry-content a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-size: 8.5pt;
		word-break: break-all;
	}

	pre,
	pre.wp-block-code {
		background: #fff !important;
		color: #000 !important;
		border: 1px solid #999;
		white-space: pre-wrap;
		overflow: visible;
	}

	.agm-card,
	.agm-lab-step,
	.agm-callout {
		box-shadow: none !important;
		border: 1px solid #999 !important;
		background: #fff !important;
	}

	.agm-chip {
		background: none !important;
		color: #000 !important;
		border: 1px solid #666;
	}

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