/* Print: keep the evidence, drop the chrome. Report pages print as the report's PDF (bin/report-pdf renders them
   with headless Chrome; a reader's Print > Save as PDF gives the same result). */

@page {
	size: letter;
	margin: 0.75in 0.8in 0.85in;
	@bottom-left { content: "Private Equity Oversight"; font: var(--peo-weight-ui) 8pt var(--peo-sans); color: var(--peo-ink-2); }
	@bottom-right { content: counter(page) " of " counter(pages); font: var(--peo-weight-ui) 8pt var(--peo-sans); color: var(--peo-ink-2); }
}
@page :first {
	@bottom-left { content: none; }
}

/* Type sizes are rem, so this scales the whole system to paper (body text about 10pt). */
html { font-size: 12px; }
a { color: inherit; text-decoration: underline; }

/* Chrome that has no use on paper. The masthead keeps only the wordmark and tagline. */
.skip-link, .peo-masthead__right, .peo-footer, .peo-band, .peo-filters, .peo-searchtoggle, .peo-menu, .peo-copy-link,
.peo-taglist, .peo-report__tags-end, .peo-downloads__title, .peo-downloads__primary, .peo-cite summary, .peo-cite button, .peo-tips, .peo-related,
.wp-block-query-pagination { display: none !important; }
.peo-masthead { padding-top: 0; }

/* The citation (closed on screen) prints open, at the foot of the lead. */
.peo-downloads { background: none; border: 0; padding: 0; margin-top: var(--peo-space-5); }
.peo-cite::details-content { content-visibility: visible; }
.peo-cite__text::before { content: "Cite as: "; font-weight: var(--peo-weight-strong); }

/* Page breaks: headings stay with what follows; findings, figures, quotes and table rows don't split. */
h1, h2, h3, h4 { break-after: avoid; break-inside: avoid; }
.peo-finding, .peo-pullquote, .peo-chart, .peo-embed, figure, tr, .wp-block-footnotes li { break-inside: avoid; }
img { max-height: 4in; width: auto; }
.wp-block-gallery img { max-height: none; }

/* Links print their address where the reader can't otherwise see it. Footnote links already show theirs, and the
   footnote's jump-back arrow means nothing on paper. */
.peo-sources a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; word-break: break-all; }
.wp-block-footnotes a[href^="#"] { display: none; }
.wp-block-footnotes a { text-decoration: none; word-break: break-all; }

.peo-embed__frame { display: none; } .peo-embed__thumb { display: block; }
.peo-findings { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
