/*
 * Print — for pooja.
 *
 * People print these to hold during the ritual. That means: no ads, no
 * navigation, no URLs bleeding into the margins, and above all no verse
 * split across a page break mid-recitation.
 */

@page {
	margin: 18mm 16mm;
}

@media print {

	.onsh-controls,
	.onsh-ad,
	.onsh-share,
	.onsh-related,
	.onsh-header,
	.onsh-footer,
	#wpadminbar,
	.ast-mobile-header-wrap,
	nav,
	iframe,
	ins.adsbygoogle {
		display: none !important;
	}

	html,
	body.onsh {
		background: #fff !important;
		color: #000 !important;
		font-size: 12pt;
		line-height: 1.75;
	}

	.onsh-wrap,
	.onsh-wrap--wide {
		max-width: none;
		padding: 0;
	}

	/* Keep a verse whole on one page. */
	.onsh-verse {
		break-inside: avoid;
		page-break-inside: avoid;
		border-top: 1px solid #bbb;
		padding: 0.5rem 0 0.4rem;
	}

	.onsh-title {
		border-top: none;
		color: #000 !important;
		font-size: 18pt;
		margin-top: 0;
	}

	/* Rubrication still reads in greyscale as a lighter weight. */
	.onsh-danda,
	.onsh-verse__num {
		color: #555 !important;
	}

	/* Meanings are study material, not recitation material — expand only if
	   the reader deliberately opened them before printing. */
	.onsh-meaning:not([open]) {
		display: none;
	}

	.onsh-meaning > summary {
		display: none;
	}

	.onsh-meaning__body {
		border-top: 1px solid #ddd;
		color: #333 !important;
		font-size: 10.5pt;
	}

	/* Don't paste href text after links — it breaks the verse rhythm. */
	a,
	a:visited {
		color: #000 !important;
		text-decoration: none;
	}

	a[href]::after {
		content: '' !important;
	}

	/* A discreet source line at the end of the sheet. */
	.onsh-print-source {
		display: block !important;
		margin-top: 12mm;
		border-top: 1px solid #ccc;
		padding-top: 3mm;
		font-size: 8.5pt;
		color: #666;
		text-align: center;
	}
}

.onsh-print-source {
	display: none;
}
