/*
 * Pension Plain — print.css
 * Pension content gets printed for adviser meetings.
 * Make sure it's actually useful on paper.
 */

@media print {
	@page {
		margin: 1.5cm 2cm;
	}

	body {
		background: #ffffff !important;
		color: #000000 !important;
		font-family: Georgia, "Times New Roman", serif;
		font-size: 11pt;
		line-height: 1.5;
	}

	a {
		color: #000000 !important;
		text-decoration: underline;
	}

	a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-size: 9pt;
		word-break: break-all;
	}

	a[href^="#"]::after,
	a[href^="mailto:"]::after {
		content: "";
	}

	.site-header,
	.site-footer,
	.skip-link,
	nav,
	.wp-block-navigation,
	.wp-block-search,
	.newsletter-signup,
	.wp-block-buttons,
	form,
	.no-print,
	aside,
	.wp-block-template-part[data-type="header"],
	.wp-block-template-part[data-type="footer"] {
		display: none !important;
	}

	h1, h2, h3, h4, h5, h6 {
		page-break-after: avoid;
		page-break-inside: avoid;
		font-family: Georgia, "Times New Roman", serif;
		color: #000000 !important;
	}

	p, li, blockquote {
		orphans: 3;
		widows: 3;
		page-break-inside: avoid;
	}

	img {
		max-width: 100% !important;
		page-break-inside: avoid;
	}

	table {
		page-break-inside: avoid;
		border-collapse: collapse;
	}

	table, th, td {
		border: 1px solid #000000;
	}

	th, td {
		padding: 4pt 6pt;
		text-align: left;
	}

	thead {
		display: table-header-group;
	}

	tr {
		page-break-inside: avoid;
	}

	/* Add a printed footer note on every page */
	.entry-content::after {
		content: "Source: pensionplain.co.uk — general information, not regulated financial advice.";
		display: block;
		margin-top: 2cm;
		padding-top: 0.5cm;
		border-top: 1px solid #000000;
		font-size: 9pt;
		font-style: italic;
	}
}
