/*
 * Persona print / PDF stylesheet.
 * Loaded only for the "print" media type. When the visitor clicks
 * "Download / Print PDF" on the resume page (or uses Cmd/Ctrl+P),
 * the browser uses these rules to produce a clean, single-purpose document.
 */

@page {
	size: A4;
	margin: 16mm 14mm;
}

@media print {

	/* Hide everything that isn't part of the resume document. */
	.persona-screen-only,
	.persona-header,
	.persona-footer,
	.wp-block-navigation,
	.wp-block-site-title,
	.persona-print-btn,
	.persona-ad-slot,
	.wp-block-comments,
	#wpadminbar {
		display: none !important;
	}

	/* Show anything flagged print-only (e.g. a printable header block). */
	.persona-print-only {
		display: block !important;
	}

	html,
	body {
		background: #fff !important;
		color: #000 !important;
		font-size: 11pt;
		line-height: 1.4;
	}

	/* Let the resume use the full printable width. */
	.persona-resume-page,
	.wp-block-group.persona-resume-page,
	main {
		margin: 0 !important;
		padding: 0 !important;
		max-width: 100% !important;
	}

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

	/* Print the destination of meaningful links after the text. */
	.persona-resume a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-size: 9pt;
		color: #555;
		word-break: break-all;
	}

	/* Avoid awkward breaks inside an experience/project entry. */
	.persona-resume__item,
	.persona-resume__section h2 {
		break-inside: avoid;
		page-break-inside: avoid;
	}

	.persona-resume__section {
		margin-top: 14pt;
	}

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