/**
 * Print.
 *
 * When someone presses Print they want the worksheet, not the website. This
 * hides everything except the container the export layer fills with full-size
 * pages, and lets the page size rule injected at print time control the paper.
 *
 * Loaded with media="print", so it costs nothing on screen.
 *
 * @package ActivityMaker
 */

@page {
	margin: 0;
}

html,
body {
	margin: 0 !important;
	padding: 0 !important;
	background: #ffffff !important;
}

/* Everything that is not the print root is hidden outright. */
body > *:not(#am-print-root) {
	display: none !important;
}

#am-print-root {
	display: block !important;
	margin: 0;
	padding: 0;
}

.am-print-page {
	display: block;
	page-break-after: always;
	break-after: page;
	overflow: hidden;
	margin: 0;
	padding: 0;
}

.am-print-page:last-child {
	page-break-after: auto;
	break-after: auto;
}

.am-print-page svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* Preserve the exact tones of the worksheet - some presets rely on a tinted
   panel to separate the word list from the grid. */
* {
	-webkit-print-color-adjust: exact !important;
	print-color-adjust: exact !important;
}

/* Nothing decorative, promotional or interactive reaches the printer. */
.am-header,
.am-footer,
.am-generator__editor,
.am-preview__toolbar,
.am-preview__actions,
.am-preview__messages,
.am-ad,
.am-toasts,
.am-dialog,
.am-skip-link,
.am-convert,
.am-breadcrumbs {
	display: none !important;
}
