/* Print stylesheet — keep editorial content readable, strip nav/chrome/forms */

@page {
	margin: 18mm;
}

* {
	background: transparent !important;
	color: #000 !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

body {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 11pt;
	line-height: 1.5;
}

/* Hide chrome and interactive elements */
.site-header,
.site-footer,
.mobile-nav,
.nav-toggle,
.skip-link,
.archive-filters,
.subtabs,
.pager,
.card__glyph,
.partner-constellation,
.join-callout,
.chevron-band,
.news-feature__cta,
.projidx-filters,
.card__socials,
.programmes-band__ctas,
.donate__ctas,
.amount-grid,
.form-actions,
.contact-form,
.contact-form-band,
.member-form,
.four04__ctas,
.legal-toc,
.aamda-tools,
.has-background[href],
.wp-block-button {
	display: none !important;
}

/* Strip page-level dark sections */
.project-impact,
.programmes-band,
.finance-band,
.hero--pine {
	background: #fff !important;
	border: none !important;
	padding: 12pt 0 !important;
}

.project-impact *,
.programmes-band *,
.finance-band *,
.hero--pine * {
	color: #000 !important;
}

/* Headings */
h1, h2, h3, h4 {
	page-break-after: avoid;
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 700;
}

h1 { font-size: 22pt; margin: 0 0 8pt; }
h2 { font-size: 16pt; margin: 16pt 0 6pt; }
h3 { font-size: 13pt; margin: 12pt 0 4pt; }

p, li {
	orphans: 3;
	widows: 3;
}

/* Links: append URL in print */
a[href]::after {
	content: " (" attr(href) ")";
	font-size: 9pt;
	color: #555 !important;
	word-break: break-all;
}

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

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

figure {
	page-break-inside: avoid;
	margin: 8pt 0;
}

figcaption {
	font-size: 9pt;
	font-style: italic;
	color: #555 !important;
}

/* Tables */
table {
	border-collapse: collapse;
	page-break-inside: auto;
}

thead {
	display: table-header-group;
}

tr {
	page-break-inside: avoid;
}

th, td {
	border: 1px solid #999 !important;
	padding: 4pt 6pt !important;
}

/* Editorial grids — let them flow naturally */
.archive-grid,
.related-grid,
.vol-grid,
.contact-grid,
.sitemap-grid,
.mvv,
.org-grid,
.trails,
.programmes,
.phases,
.gallery,
.projidx-grid,
.projidx-featured {
	display: block !important;
	border: none !important;
}

.archive-grid > *,
.related-grid > *,
.vol-grid > *,
.contact-grid > *,
.sitemap-grid > *,
.mvv > *,
.org-grid > *,
.trails > *,
.programmes > *,
.phases > *,
.gallery > *,
.projidx-grid > *,
.projidx-featured > * {
	border: none !important;
	border-bottom: 0.5pt solid #ccc !important;
	padding: 8pt 0 !important;
	page-break-inside: avoid;
}

/* Article body */
.article {
	max-width: none !important;
	padding: 0 !important;
}

.article__hero {
	margin: 0 0 12pt;
	aspect-ratio: auto;
	border: none !important;
}

.article__standfirst,
.article__dropcap > p:first-of-type::first-letter {
	font-style: italic;
}

.article__dropcap > p:first-of-type::first-letter {
	font-size: 11pt !important;
	float: none !important;
	padding: 0 !important;
}

/* Breadcrumbs — keep as small text, no border */
.breadcrumbs {
	border: none !important;
	padding: 0 0 8pt !important;
	font-size: 9pt;
}

/* Legal sidebar collapses */
.legal-shell {
	display: block !important;
	border: none !important;
}

.legal-doc {
	padding: 0 !important;
	max-width: none !important;
}

/* Add an unobtrusive footer with source URL */
@page {
	@bottom-right {
		content: counter(page) " / " counter(pages);
		font-family: Georgia, serif;
		font-size: 9pt;
	}
}
