/**
 * Read-only treatment — deck p2, marked CRITICAL.
 *
 * Loaded only for readers the protection applies to; see aviaknow-protect.php for
 * what this does and does not achieve, and what it costs.
 */

.aik-protected {
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;

	/* Stops the iOS long-press "Copy / Look Up" sheet. */
	-webkit-touch-callout: none;

	/* Stops the blue flash on tap that makes a page feel selectable. */
	-webkit-tap-highlight-color: transparent;
}

/*
 * Anything a reader legitimately types into stays fully selectable. Without this
 * the sector filter, the sign-in card and every account form become impossible to
 * correct — you could not select a typo to fix it.
 */
.aik-protected input,
.aik-protected textarea,
.aik-protected select,
.aik-protected [contenteditable="true"] {
	-webkit-user-select: text;
	-moz-user-select: text;
	user-select: text;
}

/* Images cannot be dragged to the desktop, which is the one-gesture download. */
.aik-protected img,
.aik-protected svg {
	-webkit-user-drag: none;
	user-drag: none;
	pointer-events: none;
}

/* …except where the image is the control, in which case it has to stay clickable. */
.aik-protected a img,
.aik-protected button img,
.aik-protected a svg,
.aik-protected button svg,
.aik-protected label svg {
	pointer-events: auto;
}

/* The watermark tile is applied inline, per reader, from PHP. */
.aik-article__body {
	background-position: 0 0;
}

/* ═══ Print ══════════════════════════════════════════════════════════════ */

/*
 * "or downloadable" — Print to PDF is the download that needs no download button,
 * so the printed page carries the notice instead of the article.
 */
.aik-printmark {
	display: none;
}

@media print {
	.aik-protected .aik-article__body,
	.aik-protected .aik-browser,
	.aik-protected .aik-header,
	.aik-protected .aik-footer,
	.aik-protected .aik-paywall,
	.aik-protected .aik-main {
		display: none !important;
	}

	.aik-protected .aik-printmark {
		display: block !important;
		max-width: 32em;
		margin: 4em auto;
		font-family: Helvetica, Arial, sans-serif;
		font-size: 12pt;
		line-height: 1.6;
		color: #000;
		text-align: center;
	}

	.aik-protected .aik-printmark p:last-child {
		margin-top: 2em;
		font-weight: 700;
	}
}
