/* Print css */
@page {
	size: auto;
}

@page {
	@bottom-right {
		counter-increment: page;
		content: 'Page ' counter(page);
	}
}

@media print {
	* {
		background-color: #fff;
	}

	html,
	body {
		background-color: #fff;
		color: #000;
		font-size: 14px;
		line-height: 1.5;
	}

	.print-only {
		display: block;
	}

	.no-print {
		display: none;
	}

	.absolute,
	.fixed,
	.sticky {
		position: static;
	}

	.grid,
	.flex {
		display: block;
	}

	h1,
	h2 {
		break-after: avoid-page;
	}

	h1,
	h2,
	h3,
	h4,
	h5 {
		break-inside: avoid;
	}

	h2:not(:first-of-type) {
		margin-top: 0.5in !important;
	}

	table,
	img,
	svg {
		break-inside: avoid;
	}

	.toc {
		position: relative !important;
		top: unset;
		break-inside: avoid;
		break-before: page;
		break-after: page;
	}

	.toc li::before {
		content: '>';
		color: #e7282b;
		font-size: 1rem;
		font-weight: 700;
	}

	.print-footer {
		break-before: page;
	}

	.print-footer > div {
		padding: 0;
	}
}
