@media print {
	/* === General Reset for Print === */
	body {
		background: white !important;
		color: #000 !important;
		font-family: var(--font-body);
		line-height: 1.5;
		font-size: 12pt;
		margin: 0;
	}

	/* Hide elements that are irrelevant for print */
	header,
	nav,
	footer,
	.breadcrumb,
	.AudioPlayer,
	.tag,
    .player,
    .playerlinks,
	.phones,
    .audio,
	.Mainheader {
		display: none !important;
	}

	/* Page setup */
	@page {
		margin: 1.5cm 2cm;
		size: A4;
	}

	article {
		max-width: none;
		background: white;
		padding: 0;
		box-shadow: none;
	}

	h1,
	h2,
	h3 {
		color: #000 !important;
		page-break-after: avoid;
		text-align: center;
	}

	h1 {
	
		font-size: 40pt;
		margin-bottom: 0.2em;
	}

	p,
	li {
		font-size: 12pt;
		color: #000;
	}

	p.lede {
		font-style: italic;
		font-size: 13pt;
		text-align: center;
		margin-bottom: 1.5em;
	}

	

	a {
		color: #000;
		text-decoration: none;
	}

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

	/* Lists */
	ul,
	ol {
		margin-left: 2em;
	}

	/* Page breaks for story structure */
	h2,
	h3 {
		page-break-before: avoid;
		page-break-after: avoid;
	}

	p,
	blockquote,
	figure {
		page-break-inside: avoid;
	}
  p, blockquote, ul, ol, table {
    widows: 2;
    orphans: 2;
  }

	/* Optional: Header/footer for printed PDF */
	@page :first {
		margin-top: 2cm;
	}
}
@page {
	@bottom-center {
		content: "Storynory — https://www.storynory.com";
		font-size: 9pt;
		color: #666;
	}
    /* Page numbers in the bottom right corner */
		@top-right {
			content: "Page " counter(page) " of " counter(pages);
			font-size: 9pt;
		
		}
}
