/**
 * Algerie Focus News — Print Stylesheet
 * Hides navigation, ads, sidebars. Optimises article for print/PDF.
 */

@media print {

	/* ── Reset ── */
	*,
	*::before,
	*::after {
		background: transparent !important;
		color: #000 !important;
		box-shadow: none !important;
		text-shadow: none !important;
	}

	/* ── Hide non-content elements ── */
	.site-header,
	.main-nav,
	.top-bar,
	.breaking-news-ticker,
	.sidebar,
	.site-footer,
	.newsletter-section,
	.share-bar,
	.share-floating,
	.post-navigation,
	.related-posts,
	.ad-zone,
	.widget-ad,
	.back-to-top,
	.search-overlay,
	.mobile-menu-toggle,
	.load-more-wrap,
	.breadcrumbs,
	.comments-area,
	.header-actions,
	.logo-bar,
	nav,
	[aria-label="Publicité"],
	ins,
	script {
		display: none !important;
	}

	/* ── Body & layout ── */
	body {
		font-family: Georgia, 'Times New Roman', serif;
		font-size: 12pt;
		line-height: 1.6;
		color: #000;
		background: #fff;
	}

	.site-wrapper {
		display: block;
	}

	.site-main {
		padding: 0;
		margin: 0;
	}

	.container,
	.content-sidebar-wrap {
		display: block;
		max-width: 100%;
		width: 100%;
		padding: 0;
		margin: 0;
	}

	/* ── Article ── */
	.single-post-wrap {
		border: none;
		border-radius: 0;
		margin: 0;
	}

	.single-post-header {
		padding: 0 0 1rem;
		border-bottom: 2px solid #000;
		margin-bottom: 1rem;
	}

	.single-post-title {
		font-size: 22pt;
		font-weight: bold;
		margin-bottom: 0.5rem;
	}

	.single-post-subtitle {
		font-size: 13pt;
		font-style: italic;
		margin-bottom: 0.75rem;
	}

	.single-hero img {
		max-width: 100%;
		page-break-inside: avoid;
	}

	.single-post-content {
		padding: 0;
	}

	.entry-content {
		font-size: 11pt;
		line-height: 1.7;
		max-width: 100%;
	}

	.entry-content h2 {
		font-size: 16pt;
		page-break-after: avoid;
		margin-top: 1.5rem;
	}

	.entry-content h3 {
		font-size: 13pt;
		page-break-after: avoid;
	}

	.entry-content p {
		orphans: 3;
		widows: 3;
	}

	.entry-content img {
		max-width: 60%;
		margin-inline: auto;
		page-break-inside: avoid;
	}

	.entry-content blockquote {
		border-left: 3px solid #000;
		padding-left: 1rem;
		font-style: italic;
		margin: 1rem 0;
	}

	.entry-content a {
		color: #000;
		text-decoration: underline;
	}

	/* ── Show URLs after links ── */
	.entry-content a[href]::after {
		content: ' (' attr(href) ')';
		font-size: 9pt;
		color: #555;
	}

	.entry-content a[href^="#"]::after,
	.entry-content a[href^="javascript:"]::after {
		content: '';
	}

	/* ── Category badge ── */
	.cat-badge {
		border: 1px solid #000;
		padding: 2px 6px;
		font-size: 9pt;
		font-weight: bold;
	}

	/* ── Post meta ── */
	.single-post-meta,
	.post-meta {
		font-size: 9pt;
		border-top: 1px solid #ccc;
		padding-top: 0.5rem;
		margin-bottom: 1rem;
	}

	/* ── Site name as print header ── */
	.site-main::before {
		content: 'Algerie Focus News — algeriefocus.com';
		display: block;
		font-size: 9pt;
		color: #555;
		border-bottom: 1px solid #ccc;
		padding-bottom: 0.5rem;
		margin-bottom: 1.5rem;
	}

	/* ── Page breaks ── */
	h2, h3, h4 { page-break-after: avoid; }
	img, figure, blockquote { page-break-inside: avoid; }

	/* ── Page numbers via CSS ── */
	@page {
		margin: 2cm;
	}

	@page :first {
		margin-top: 1.5cm;
	}
}
