/* KPR Print Blogs 1.1.1. Loaded with media="print" on single blog posts only.
   Overrides the theme's Foundation print reset (black text, no backgrounds, full URLs after every link). */

@page { size: A4; margin: 14mm 15mm 16mm; }

html, body.single-post {
	-webkit-print-color-adjust: exact !important;
	print-color-adjust: exact !important;
	background: #fff !important;
}
body.single-post { font-size: 10.5pt !important; }
body.single-post * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

/* Hide web-only parts */
body.single-post #wpadminbar,
body.single-post #off-canvas,
body.single-post .js-off-canvas-overlay,
body.single-post #header .top-bar-right,
body.single-post #hero,
body.single-post .listing-element,
body.single-post .page-columns.flexible-content,
body.single-post .kprx-gps,
body.single-post #footer,
body.single-post .bottom-footer,
body.single-post .kpr-actbar,
body.single-post #kprfc-social,
body.single-post #kprfc-btn,
body.single-post #kprfc-panel,
body.single-post #kprx-ring,
body.single-post .hic-media-container,
body.single-post .hic-term,
body.single-post #wfboxOverlay,
body.single-post iframe,
body.single-post form,
body.single-post video { display: none !important; }

body.single-post .off-canvas-wrapper,
body.single-post .off-canvas-content,
body.single-post #body,
body.single-post .inner-body-content,
body.single-post .main-content,
body.single-post .page-elements,
body.single-post .post-element,
body.single-post .post-element .inner-section,
body.single-post .post-element .grid-container,
body.single-post .post-element .grid-x,
body.single-post .post-element .cell,
body.single-post .hic-box,
body.single-post .hic-content,
body.single-post .hic-blurb {
	display: block !important;
	position: static !important;
	transform: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	min-height: 0 !important;
	height: auto !important;
	overflow: visible !important;
	box-shadow: none !important;
	background: none !important;
}

/* Hide again with higher specificity (related posts share .post-element) */
body.single-post .page-elements > .page-element.listing-element,
body.single-post .page-elements > .page-element.flexible-content,
body.single-post .page-elements > .page-element:not(.content-element),
body.single-post .post-element .hic-media-container,
body.single-post #header img.alternative-logo,
body.single-post #header picture:nth-of-type(n+2) { display: none !important; }

/* Logo strip (the site's own header logo, untouched) */
body.single-post #header {
	display: block !important;
	position: static !important;
	height: auto !important;
	background: #fff !important;
	border-bottom: 0.6mm solid #009ac7 !important;
	margin: 0 0 6mm !important;
	padding: 0 0 3mm !important;
	box-shadow: none !important;
}
body.single-post #header .top-bar,
body.single-post #header .grid-container,
body.single-post #header .grid-x,
body.single-post #header .cell,
body.single-post #header .top-bar-left,
body.single-post #header .logo-wrap {
	display: block !important;
	position: static !important;
	padding: 0 !important;
	margin: 0 !important;
	height: auto !important;
	background: none !important;
	width: auto !important;
}
body.single-post #header .logo-wrap img,
body.single-post #header img.site-logo {
	display: block !important;
	width: 42mm !important;
	height: auto !important;
	max-width: none !important;
	filter: none !important;
	opacity: 1 !important;
}
body.single-post #header a::after { content: none !important; }

/* Title and meta */
body.single-post .post-element .page-title {
	color: #144069 !important;
	font-size: 21pt !important;
	line-height: 1.2 !important;
	font-weight: 700 !important;
	text-align: left !important;
	margin: 0 0 1.5mm !important;
	text-transform: none !important;
	break-after: avoid;
	page-break-after: avoid;
}
body.single-post .heading-meta,
body.single-post .post-byline {
	display: block !important;
	text-align: left !important;
	margin: 0 !important;
	padding: 0 !important;
}
body.single-post .post-byline li { display: inline !important; }
body.single-post .post-byline a {
	color: #009ac7 !important;
	text-decoration: none !important;
	font-size: 9pt !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.06em;
}
html body.single-post div .kprpb-date {
	color: #6b6a60 !important;
	font-size: 9pt !important;
	margin: 0 0 4mm !important;
}

/* Featured image */
html body.single-post div .kprpb-print-only { display: block !important; }
html body.single-post div .kprpb-feature { margin: 0 0 6mm !important; break-inside: avoid; page-break-inside: avoid; }
html body.single-post div .kprpb-feature img {
	display: block !important;
	width: 100% !important;
	height: 82mm !important;
	max-width: 100% !important;
	object-fit: cover !important;
	border-radius: 1.5mm;
}

/* Body copy */
body.single-post .hic-blurb,
body.single-post .hic-blurb p,
body.single-post .hic-blurb li {
	color: #2C2522 !important;
	font-size: 10.5pt !important;
	line-height: 1.55 !important;
	text-align: left !important;
}
body.single-post .hic-blurb p { margin: 0 0 3mm !important; orphans: 3; widows: 3; }
body.single-post .hic-blurb ul,
body.single-post .hic-blurb ol { margin: 0 0 3mm 6mm !important; }
body.single-post .hic-blurb h2,
body.single-post .hic-blurb h3,
body.single-post .hic-blurb h4 {
	color: #144069 !important;
	line-height: 1.25 !important;
	margin: 5mm 0 2mm !important;
	text-align: left !important;
	text-transform: none !important;
	break-after: avoid;
	page-break-after: avoid;
	break-inside: avoid;
}
body.single-post .hic-blurb h2 { font-size: 14pt !important; font-weight: 700 !important; }
body.single-post .hic-blurb h3 { font-size: 12pt !important; font-weight: 700 !important; }
body.single-post .hic-blurb h4 { font-size: 11pt !important; font-weight: 700 !important; }
body.single-post .hic-blurb strong,
body.single-post .hic-blurb b { color: #2C2522 !important; }
body.single-post .hic-blurb blockquote {
	border-left: 0.8mm solid #009ac7 !important;
	margin: 3mm 0 !important;
	padding: 0 0 0 4mm !important;
	color: #2C2522 !important;
}
body.single-post .hic-blurb table { border-collapse: collapse !important; width: 100% !important; margin: 0 0 4mm !important; break-inside: avoid; }
body.single-post .hic-blurb th,
body.single-post .hic-blurb td { border: 0.2mm solid #c9c7bc !important; padding: 1.5mm 2mm !important; font-size: 9.5pt !important; color: #2C2522 !important; }
body.single-post .hic-blurb th { background: #eef3f8 !important; color: #144069 !important; }

/* Images and captions in the article */
body.single-post .hic-blurb figure,
body.single-post .hic-blurb .wp-block-image {
	display: block !important;
	margin: 3mm 0 5mm !important;
	break-inside: avoid;
	page-break-inside: avoid;
}
body.single-post .hic-blurb img {
	display: block !important;
	max-width: 100% !important;
	width: auto !important;
	height: auto !important;
	max-height: 95mm !important;
	margin: 0 auto !important;
	border-radius: 1mm;
}
body.single-post .hic-blurb figcaption {
	color: #6b6a60 !important;
	font-size: 8pt !important;
	line-height: 1.4 !important;
	margin: 1.5mm 0 0 !important;
	text-align: left !important;
}

/* Links: brand colour, short host label instead of the full address */
body.single-post a[href]::after { content: none !important; }
body.single-post .hic-blurb a {
	color: #144069 !important;
	text-decoration: underline !important;
	text-decoration-color: #009ac7 !important;
}
body.single-post .hic-blurb a[data-kprpb-host]::after {
	content: " (" attr(data-kprpb-host) ")" !important;
	color: #6b6a60 !important;
	font-size: 0.8em !important;
	text-decoration: none !important;
}
body.single-post .hic-blurb figcaption a[data-kprpb-host]::after { content: none !important; }
body.single-post .hic-blurb figcaption a { color: #6b6a60 !important; text-decoration: none !important; }

/* Print-only call to action */
html body.single-post div .kprpb-cta {
	margin: 8mm 0 0 !important;
	padding: 5mm 0 0 !important;
	border-top: 0.6mm solid #009ac7 !important;
	break-inside: avoid;
	page-break-inside: avoid;
}
html body.single-post div .kprpb-cta p { margin: 0 !important; text-align: left !important; }
html body.single-post div .kprpb-cta-heading {
	color: #144069 !important;
	font-size: 14pt !important;
	font-weight: 700 !important;
	margin: 0 0 4mm !important;
}
html body.single-post div .kprpb-cards {
	display: grid !important;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 4mm;
}
html body.single-post div .kprpb-card {
	display: block !important;
	border: 0.3mm solid #c9d6e3 !important;
	border-radius: 2mm;
	padding: 3mm !important;
	background: #fff !important;
	break-inside: avoid;
}
html body.single-post div .kprpb-qr { width: 24mm !important; height: 24mm !important; margin: 0 0 2.5mm !important; }
html body.single-post div .kprpb-qr svg { display: block !important; width: 24mm !important; height: 24mm !important; }
html body.single-post div .kprpb-who {
	color: #009ac7 !important;
	font-size: 8pt !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.06em;
}
html body.single-post div .kprpb-url {
	color: #144069 !important;
	font-size: 8.6pt !important;
	font-weight: 700 !important;
	margin: 0.8mm 0 1.5mm !important;
	white-space: nowrap !important;
	letter-spacing: -0.01em;
}
html body.single-post div .kprpb-title {
	color: #2C2522 !important;
	font-size: 9.5pt !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	margin: 0 0 1mm !important;
}
html body.single-post div .kprpb-text {
	color: #2C2522 !important;
	font-size: 8.5pt !important;
	line-height: 1.4 !important;
}
html body.single-post div .kprpb-scan {
	color: #6b6a60 !important;
	font-size: 8.5pt !important;
	margin: 3mm 0 0 !important;
}
html body.single-post div .kprpb-online {
	color: #2C2522 !important;
	font-size: 9pt !important;
	margin: 3mm 0 0 !important;
}
html body.single-post div .kprpb-online strong { color: #144069 !important; }
html body.single-post div .kprpb-legal {
	color: #6b6a60 !important;
	font-size: 7.5pt !important;
	margin: 2mm 0 0 !important;
}
html body.single-post div .kprpb-cta-pm { padding-top: 4mm !important; }

/* 1.1.0: QR code to the live article, beside the date */
html body.single-post div .kprpb-head-row {
	display: flex !important;
	justify-content: space-between !important;
	align-items: flex-end !important;
	gap: 6mm;
	margin: 0 0 4mm !important;
}
html body.single-post div .kprpb-head-row .kprpb-date { margin: 0 !important; }
html body.single-post div .kprpb-post-qr {
	display: flex !important;
	align-items: center !important;
	gap: 2.5mm;
	flex: 0 0 auto;
}
html body.single-post div .kprpb-post-qr-code,
html body.single-post div .kprpb-post-qr-code svg {
	display: block !important;
	width: 22mm !important;
	height: 22mm !important;
}
html body.single-post div .kprpb-post-qr-text {
	color: #144069 !important;
	font-size: 8pt !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	width: 24mm;
	margin: 0 !important;
	text-align: left !important;
}
