/**
 * Wavecave — print styles.
 *
 * Strips the terminal chrome and re-maps the palette to black-on-white so
 * any page (especially the resume) prints as a clean professional document.
 */

@media print {
	/* Force a light, print-safe palette regardless of screen scheme. */
	:root,
	body {
		--wp--custom--gb--bg-hard: #ffffff;
		--wp--custom--gb--bg: #ffffff;
		--wp--custom--gb--bg-soft: #ffffff;
		--wp--custom--gb--bg1: #ffffff;
		--wp--custom--gb--bg2: #dddddd;
		--wp--custom--gb--fg0: #000000;
		--wp--custom--gb--fg: #111111;
		--wp--custom--gb--fg2: #222222;
		--wp--custom--gb--fg3: #444444;
		--wp--custom--gb--fg4: #555555;
		--wp--custom--gb--gray: #666666;
		--wp--custom--gb--link: #111111;
		--wp--custom--gb--link-hover: #111111;
		--wp--custom--gb--red: #333333;
		--wp--custom--gb--green: #333333;
		--wp--custom--gb--yellow: #333333;
		--wp--custom--gb--blue: #333333;
		--wp--custom--gb--purple: #333333;
		--wp--custom--gb--aqua: #333333;
		--wp--custom--gb--orange: #333333;
	}

	@page {
		margin: 2cm 1.75cm;
	}

	body {
		background: #ffffff !important;
		color: #111111 !important;
		font-size: 11pt;
		line-height: 1.5;
	}

	/* Remove the chrome. */
	.site-header,
	.site-footer,
	.theme-toggle,
	.command-header,
	.hero-cta,
	.no-print,
	.wavecave-lightbox,
	.code-copy-button,
	.wp-block-post-navigation-link,
	.post-comments,
	.wp-block-buttons,
	.footer-social,
	.site-nav-wrap {
		display: none !important;
	}

	/* Everything prints black/gray on white — kill colored text. */
	*,
	*::before,
	*::after {
		color: #111111 !important;
		background: #ffffff !important;
		background-color: #ffffff !important;
		border-color: #cccccc !important;
		box-shadow: none !important;
		text-shadow: none !important;
	}

	a {
		text-decoration: none;
	}

	/* Resume: single-column flow, compact entries. */
	.resume-columns {
		display: block !important;
	}

	.resume-columns .wp-block-column {
		flex-basis: 100% !important;
		width: 100% !important;
		margin-left: 0 !important;
	}

	.resume-card {
		border: 1px solid #999999 !important;
		margin-top: 1rem;
	}

	.resume-section-header {
		border-bottom: 1px solid #999999 !important;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.05em;
	}

	.resume-entry {
		page-break-inside: avoid;
		margin-bottom: 1rem;
	}

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

	/* Code blocks print as simple bordered boxes, no window chrome. */
	.wp-block-code {
		border: 1px solid #999999 !important;
		padding-top: 1rem !important;
		font-size: 9pt;
	}

	.wp-block-code::before {
		display: none !important;
	}

	.wp-block-code code {
		white-space: pre-wrap;
		word-break: break-word;
	}

	/* Images: keep them modest, never split. */
	img {
		max-width: 100% !important;
		page-break-inside: avoid;
	}

	.terminal-cursor {
		display: none !important;
	}
}
