/*
 * Editorial print entry point.
 */

@media print {

	@page {
		margin: 18mm;
	}

	.site-header,
	.primary-navigation,
	.mobile-navigation,
	.site-header__search,
	.search-form,
	.subscribe-link,
	.more-from-topic,
	.post-navigation,
	.motion-decoration,
	[data-motion]::before,
	[data-motion]::after,
	.footer-navigation {
		display: none !important;
	}

	/* Every Task 4-6 homepage module stays readable: headings, article links,
	   methodology/disclosure/sources text, and the newsletter destination link
	   remain. Only decorative visual-effect styling is stripped. */
	.home-intro,
	.home-briefing,
	.home-audiences,
	.home-coverage,
	.home-guides,
	.home-methodology,
	.home-tools,
	.home-knowledge,
	.home-newsletter {
		background: none !important;
		box-shadow: none !important;
	}

	.home-methodology__marker {
		background: none !important;
		border: 1px solid #000;
		color: #000;
	}

	/* .home-newsletter is styled as an inverted dark callout on screen; repaint
	   it for a printable page instead of hiding the destination link/URL. */
	.home-newsletter {
		color: #000 !important;
		margin-inline: 0;
	}

	/* .home-newsletter a is lavender on screen (readable on the dark callout);
	   on paper it must be overridden directly, since the ancestor's color
	   never wins over a rule that targets the anchor itself. */
	.home-newsletter a {
		color: #000 !important;
		text-decoration: underline;
	}

	/* The subscribe form is not functional on paper; the surrounding heading,
	   copy, and any authored links stay visible. */
	.home-newsletter input,
	.home-newsletter select,
	.home-newsletter textarea,
	.home-newsletter button {
		display: none !important;
	}

	html,
	body,
	.site-main,
	.single-article,
	.article-entry,
	.article-body {
		background: #fff !important;
		color: #000 !important;
	}

	body {
		font-size: 11pt;
		line-height: 1.5;
	}

	.site-main,
	.single-article,
	.article-entry {
		display: block;
		margin: 0;
		max-width: none;
		padding: 0;
	}

	.article-header,
	.article-featured-image,
	.affiliate-disclosure,
	.article-body blockquote,
	.article-body figure,
	.article-body table,
	.article-body pre {
		break-inside: avoid;
	}

	.article-header__title {
		font-size: 28pt;
		letter-spacing: normal;
	}

	.article-featured-image {
		margin-block: 8mm;
	}

	.article-featured-image__image {
		max-height: 120mm;
		object-fit: contain;
	}

	.article-body h2,
	.article-body h3,
	.article-body h4 {
		break-after: avoid;
	}

	.article-body p,
	.article-body li,
	.article-body blockquote,
	.article-body table,
	.article-body figure {
		orphans: 3;
		widows: 3;
	}

	.article-body a {
		color: #000 !important;
		text-decoration: underline;
	}

	.article-body a[href^="http://"]::after,
	.article-body a[href^="https://"]::after {
		content: " (" attr(href) ")";
		font-size: 0.85em;
		overflow-wrap: anywhere;
	}

	.site-footer {
		border-top: 1px solid #000;
		margin-top: 12mm;
		padding-top: 5mm;
	}
}
