/* print-guard.css — app-wide guard that steers users away from raw browser printing toward the
   PDF export (see js/print-guard.js). On any print attempt (Ctrl+P OR File > Print) the live page
   is hidden and a centred "print curtain" (#wlPrintCurtain, built by print-guard.js) is shown.

   OPT OUT: a printable layout adds  class="wl-printable"  to its <body> — the guard is skipped and
   the page prints normally (that page's own Print/Download-PDF button calls window.print()). */

/* The curtain is invisible on screen; it only appears in the print rendering. */
#wlPrintCurtain { display: none; }

@media print {
	/* Hide everything on a non-printable page, then reveal only the curtain. */
	body:not(.wl-printable) > *:not(#wlPrintCurtain) { display: none !important; }

	body:not(.wl-printable) #wlPrintCurtain {
		display: flex !important;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 1rem;
		min-height: 92vh;
		text-align: center;
		padding: 2rem;
		font-family: sans-serif;
		color: #111;
		font-size: 14pt;
	}
	#wlPrintCurtain .wl-print-curtain-msg { max-width: 40rem; line-height: 1.5; }
	/* the cloned PDF button is only a graphic here */
	#wlPrintCurtain .wl-print-curtain-btn { pointer-events: none; }
}
