/*
 * Sahaf News - print styles.
 *
 * Only loaded with media="print", so the browser applies it just for the print
 * preview and the print itself. The goal is a clean sheet of paper: the article
 * and its images, no chrome, no navigation, no advertising, no interactive
 * widgets that mean nothing on paper.
 */

/* -------------------------------------------------------------------------
 * Page and typography
 * ---------------------------------------------------------------------- */

@page {
	margin: 18mm 16mm;
}

html,
body.sahaf-page-body {
	background: #fff !important;
	color: #000 !important;
	font-size: 11pt;
	line-height: 1.5;
}

a {
	color: #000 !important;
	text-decoration: underline;
}

/* Print the destination of article links so the page survives on paper. */
.sahaf-prose a[href^="http"]::after {
	content: " (" attr(href) ")";
	font-size: .85em;
	word-break: break-all;
}

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

/* -------------------------------------------------------------------------
 * Drop the interface chrome
 * ---------------------------------------------------------------------- */

.sahaf-header,
.sahaf-nav,
.sahaf-mobile-menu,
.sahaf-search-overlay,
.sahaf-breaking,
.sahaf-footer,
.sahaf-sidebar,
.sahaf-sidebar--sticky,
.sahaf-to-top,
.sahaf-progress,
.sahaf-sticky-rail,
.sahaf-share,
.sahaf-newsletter,
.sahaf-ad,
.sahaf-ad-slot,
.sahaf-breadcrumb,
.sahaf-pagination,
.sahaf-comments__form,
.sahaf-commentform,
.comment-respond,
.comment-form,
.sahaf-author-box__social,
.sahaf-toc,
.sahaf-lightbox,
.sahaf-video__play,
.sahaf-media-list__play,
.sahaf-section__actions,
.sahaf-section__more,
[data-load-more] {
	display: none !important;
}

/* -------------------------------------------------------------------------
 * Content at full width
 * ---------------------------------------------------------------------- */

.sahaf-main,
.sahaf-main--with-sidebar,
.sahaf-main--builder {
	display: block !important;
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.sahaf-content,
.sahaf-content--with-sidebar {
	width: 100% !important;
	max-width: none !important;
}

.sahaf-entry-title,
.sahaf-article__title {
	font-size: 24pt;
	line-height: 1.15;
	margin-block-end: .3em;
}

.sahaf-article__body,
.sahaf-prose {
	max-width: none;
}

/* -------------------------------------------------------------------------
 * Images and embeds
 * ---------------------------------------------------------------------- */

img,
figure,
table,
pre,
blockquote {
	max-width: 100% !important;
	page-break-inside: avoid;
	break-inside: avoid;
}

img {
	height: auto !important;
}

iframe {
	display: none !important;
}

.sahaf-thumb::before,
.sahaf-thumb--placeholder,
.sahaf-img--placeholder {
	display: none !important;
}

/* -------------------------------------------------------------------------
 * Keep headings with the text they introduce
 * ---------------------------------------------------------------------- */

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

p,
h2,
h3 {
	orphans: 3;
	widows: 3;
}
