/* ============================================================================
   NNN Research Evidence Bank — Print stylesheet
   ============================================================================
   Hides chrome (nav, sidebar, buttons, site header/footer) and renders the
   paper in clean, citation-style typography. Browser print dialog uses this
   automatically. Users can also "Save as PDF" from the same dialog.
   ============================================================================ */

@media print {

	/* Hide everything that isn't the paper article */
	body > *:not(.nnn-rb-paper) { display: none !important; }

	/* WP/theme chrome */
	header, footer, nav,
	.site-header, .site-footer,
	#wpadminbar, .wp-admin-bar,
	.elementor-location-header,
	.elementor-location-footer,
	.nnn-rb-paper-topbar,
	.nnn-rb-paper-sidebar,
	.nnn-rb-paper-cta {
		display: none !important;
	}

	/* Reset paper container for print */
	.nnn-rb-paper {
		padding: 0 !important;
		background: #fff !important;
		color: #1a1a1a !important;
		font-size: 11pt !important;
		line-height: 1.55 !important;
	}
	.nnn-rb-paper-wrap {
		max-width: none !important;
		padding: 0 !important;
	}
	.nnn-rb-paper-grid {
		display: block !important;
		gap: 0 !important;
	}
	.nnn-rb-paper-main {
		max-width: none !important;
	}

	/* Header */
	.nnn-rb-paper-header {
		margin-bottom: 24pt !important;
		padding-bottom: 12pt !important;
		border-bottom: 1pt solid #999 !important;
	}
	.nnn-rb-paper-cats {
		font-size: 8pt !important;
		gap: 6pt !important;
		margin-bottom: 8pt !important;
	}
	.nnn-rb-paper-cat {
		background: none !important;
		color: #555 !important;
		padding: 0 !important;
		font-size: 8pt !important;
	}
	.nnn-rb-paper-cat + .nnn-rb-paper-cat::before {
		content: ' · ';
		margin: 0 4pt;
	}
	.nnn-rb-paper-title {
		font-size: 18pt !important;
		line-height: 1.2 !important;
		text-transform: none !important;
		color: #000 !important;
		margin: 0 0 8pt !important;
	}
	.nnn-rb-paper-posted {
		font-size: 9pt !important;
		color: #555 !important;
	}
	.nnn-rb-paper-posted svg { display: none !important; }

	/* Blocks */
	.nnn-rb-paper-block {
		margin-bottom: 16pt !important;
		page-break-inside: avoid;
	}
	.nnn-rb-paper-block-h {
		font-size: 9pt !important;
		letter-spacing: 0.10em !important;
		margin: 0 0 6pt !important;
		color: #444 !important;
	}
	.nnn-rb-paper-citation,
	.nnn-rb-paper-extract {
		font-size: 10.5pt !important;
		line-height: 1.55 !important;
		color: #1a1a1a !important;
	}
	.nnn-rb-paper-doi {
		color: #1a1a1a !important;
		text-decoration: none !important;
	}
	.nnn-rb-paper-doi::after {
		content: ' (https://doi.org/' attr(href) ')';
		display: none; /* uncomment if you want full URL inline */
	}
	.nnn-rb-paper-doi svg { display: none !important; }

	/* Add footer with URL on each printed page */
	@page {
		margin: 20mm 18mm 22mm 18mm;
	}

	/* Avoid orphaned headings */
	h1, h2, h3 { page-break-after: avoid; }
}
