/*!
 * Ghasedak Print Styles
 *
 * @package Ghasedak
 * @since 2.0.0
 */

@media print {
	/* Hide unnecessary elements */
	.site-header,
	.search-overlay,
	.sidebar,
	.site-footer,
	.comments-area,
	.comment-respond,
	.related-posts,
	.post-tags,
	.reading-progress,
	.back-to-top,
	.skip-link,
	.menu-toggle,
	.search-toggle,
	.social-links,
	.post-meta,
	.pagination,
	.navigation {
		display: none !important;
	}

	/* Reset layout */
	*,
	*::before,
	*::after {
		background: transparent !important;
		color: #000 !important;
		box-shadow: none !important;
		text-shadow: none !important;
	}

	body {
		font-size: 12pt;
		line-height: 1.6;
		margin: 0;
		padding: 0;
	}

	.site-content {
		padding: 0 !important;
	}

	.site-content .container {
		display: block !important;
		max-width: 100% !important;
		padding: 0 !important;
	}

	.site-main {
		width: 100% !important;
		max-width: 100% !important;
	}

	/* Typography */
	h1 {
		font-size: 24pt !important;
		margin-bottom: 0.5em !important;
	}

	h2 {
		font-size: 18pt !important;
	}

	h3 {
		font-size: 14pt !important;
	}

	p {
		margin-bottom: 1em !important;
		orphans: 3;
		widows: 3;
	}

	/* Links */
	a {
		text-decoration: underline !important;
	}

	a[href]:after {
		content: " (" attr(href) ")";
		font-size: 80%;
		word-wrap: break-word;
	}

	a[href^="#"]:after,
	a[href^="javascript:"]:after {
		content: "";
	}

	/* Images */
	img {
		max-width: 100% !important;
		page-break-inside: avoid;
	}

	.entry-content img {
		margin: 1em 0 !important;
	}

	/* Code */
	pre,
	code {
		border: 1px solid #ccc !important;
		background: #f5f5f5 !important;
	}

	pre {
		white-space: pre-wrap !important;
		word-wrap: break-word !important;
	}

	/* Blockquote */
	blockquote {
		border-left: 3px solid #000 !important;
		margin: 1em 0 !important;
		padding: 0.5em 1em !important;
	}

	/* Page breaks */
	h2,
	h3 {
		page-break-after: avoid;
	}

	.entry-content p,
	.entry-content li,
	.entry-content img {
		page-break-inside: avoid;
	}

	/* Show URL for print */
	.print-url {
		display: block;
		font-size: 10pt;
		color: #666 !important;
		margin-top: 1em;
	}

	/* Entry header */
	.entry-header {
		margin-bottom: 1.5em !important;
	}

	.entry-title {
		font-size: 24pt !important;
		margin-bottom: 0.25em !important;
	}
}