/*!
 * قالب «علي الحسيني» — نمط الطباعة.
 * تصميم وتطوير وبرمجة: المهندس علي الحسيني — https://www.ali-hussaine.com
 */
@page {
	margin: 2cm 1.8cm;
}

html,
html[data-theme="dark"] {
	color-scheme: light;
	--wp--preset--color--base: #fff;
	--wp--preset--color--surface: #fff;
	--wp--preset--color--contrast: #000;
	--wp--preset--color--muted: #444;
	--wp--preset--color--line: #bbb;
	--wp--preset--color--accent: #000;
}

body {
	background: #fff;
	color: #000;
	font-size: 12pt;
	line-height: 1.7;
}

header.wp-block-template-part,
footer.wp-block-template-part .alih-footer__grid,
.alih-progress,
.alih-share,
.alih-postnav,
.alih-related,
.alih-comments,
.alih-breadcrumbs,
.alih-search-panel,
.alih-archive-tools,
.alih-pagination,
.alih-video,
.alih-newsletter,
.alih-form,
.alih-map,
.wp-block-buttons,
	display: none !important;
}

footer.wp-block-template-part {
	background: none;
	color: #000;
	border-block-start: 1px solid #bbb;
	margin-block-start: 1.5cm;
}

.alih-footer,
.alih-footer__bottom {
	padding: 0.4cm 0 0;
	margin: 0;
	border: 0;
}

.alih-footer p,
.alih-footer a,
.alih-footer .alih-credits {
	color: #000 !important;
	font-size: 9pt;
}

.alih-main,
.alih-single,
.alih-page {
	padding: 0;
}

.alih-article-title {
	font-size: 22pt;
}

.alih-prose {
	font-size: 12pt;
	line-height: 1.8;
}

.alih-prose a {
	color: #000;
	text-decoration: underline;
}

.alih-prose a[href^="http"]::after {
	content: " (" attr(href) ")";
	font-size: 9pt;
	direction: ltr;
	unicode-bidi: embed;
	word-break: break-all;
}

h1, h2, h3, h4 {
	break-after: avoid;
}

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

figure, img, table, blockquote, .alih-author {
	break-inside: avoid;
}

.alih-article-cover img {
	max-block-size: 9cm;
	object-fit: cover;
}

.wp-block-table thead {
	display: table-header-group;
}
