/* ==========================================================================
   Adasat print stylesheet (loaded with media="print").
   Goal: an article prints like a clean, readable paper — title, authors,
   date, text, footnotes and the link back to the site. Nothing interactive.
   ========================================================================== */

@page {
	size: A4;
	margin: 18mm 16mm 20mm;

	@bottom-center {
		content: counter(page) " / " counter(pages);
		font-family: Tahoma, Arial, sans-serif;
		font-size: 9pt;
		color: #666;
	}
}

@page :first {
	margin-top: 14mm;
}

/* ---------- Reset the screen look ---------- */

html, body {
	background: #fff !important;
	color: #000 !important;
	font-size: 11.5pt;
}

*,
*::before,
*::after {
	box-shadow: none !important;
	text-shadow: none !important;
	animation: none !important;
	transition: none !important;
}

/* ---------- Hide everything that only makes sense on screen ---------- */

.adasat-header,
.adasat-footer,
.adasat-breadcrumbs,
.adasat-single-tools,
.adasat-share,
.adasat-post-nav,
.adasat-single-foot,
.adasat-comments,
.adasat-carousel-btn,
.adasat-carousel-progress,
.adasat-pagination,
.skip-link,
#wpadminbar,
iframe,
video,
audio,
.wp-block-embed,
form {
	display: none !important;
}

.adasat-print-only { display: block !important; }

.adasat-container {
	max-width: none !important;
	padding: 0 !important;
}

/* ---------- Article head ---------- */

.adasat-print-brand {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8mm;
	padding-bottom: 3mm;
	border-bottom: 1.5pt solid #000;
	font-size: 9pt;
	color: #444;
}
.adasat-print-brand img {
	height: 12mm;
	width: auto;
}

.adasat-single-head { padding: 0 !important; }

.adasat-single-image {
	margin: 0 0 6mm !important;
	break-inside: avoid;
}
.adasat-single-image img {
	max-height: 85mm !important;
	width: 100% !important;
	object-fit: contain !important;
	background: none !important;
	border-radius: 0 !important;
}

.adasat-single-title {
	margin: 0 0 4mm !important;
	font-size: 20pt !important;
	line-height: 1.45 !important;
	color: #000 !important;
}

.adasat-single-meta {
	display: flex !important;
	flex-wrap: wrap;
	gap: 2mm 8mm !important;
	margin-bottom: 6mm;
	padding: 2.5mm 0 !important;
	border: 0 !important;
	border-top: .5pt solid #999 !important;
	border-bottom: .5pt solid #999 !important;
	font-size: 10pt;
	color: #222 !important;
}
.adasat-single-meta .adasat-icon { display: none; }
.adasat-authors,
.adasat-authors * { color: #000 !important; }
.adasat-authors img,
.adasat-authors .pp-author-boxes-avatar { display: none !important; }
.adasat-authors .pp-multiple-authors-boxes-wrapper,
.adasat-authors .pp-author-boxes-description,
.adasat-authors .pp-author-boxes-meta { margin: 0 !important; padding: 0 !important; }
.adasat-authors .pp-author-boxes-description,
.adasat-authors .pp-author-boxes-meta { display: none !important; }

/* ---------- Article body ---------- */

.adasat-single-body { padding: 0 !important; }

.adasat-content *:not(a[href^="#_ftn"]) {
	color: #000 !important;
	background-color: transparent !important;
}

.adasat-content,
.adasat-content p,
.adasat-content li {
	font-size: 11.5pt !important;
	line-height: 1.85 !important;
	color: #000 !important;
}

.adasat-content p {
	text-align: justify;
	orphans: 3;
	widows: 3;
}

.adasat-content h1,
.adasat-content h2,
.adasat-content h3,
.adasat-content h4,
.adasat-content h5,
.adasat-content h6 {
	color: #000 !important;
	line-height: 1.5 !important;
	break-after: avoid;
	break-inside: avoid;
}
.adasat-content h2 { font-size: 15pt !important; margin-top: 7mm !important; }
.adasat-content h3 { font-size: 13pt !important; margin-top: 6mm !important; }
.adasat-content h4 { font-size: 12pt !important; }

.adasat-content img,
.adasat-content figure,
.adasat-content table,
.adasat-content blockquote,
.adasat-content pre {
	break-inside: avoid;
}

.adasat-content img {
	max-width: 100% !important;
	max-height: 120mm;
	height: auto !important;
	width: auto;
}

.adasat-content figcaption,
.adasat-content .wp-caption-text {
	font-size: 9pt !important;
	color: #444 !important;
	text-align: center;
}

.adasat-content blockquote {
	margin: 4mm 0 !important;
	padding: 0 5mm !important;
	border-inline-start: 2pt solid #000 !important;
	font-style: normal;
}

.adasat-content table {
	width: 100% !important;
	border-collapse: collapse;
}
.adasat-content th,
.adasat-content td {
	border: .5pt solid #888 !important;
	padding: 1.5mm 2mm !important;
}

/* Links: plain black text on paper. */
.adasat-content a,
.adasat-content a * {
	color: #000 !important;
	text-decoration: none !important;
}

/* Footnote markers stay small and raised; notes at the end are set smaller. */
.adasat-content a[href^="#_ftn"],
.adasat-content a[href^="#_edn"] {
	font-weight: 700;
}
.adasat-content [id^="ftn"],
.adasat-content [id^="_ftn"],
.adasat-content div[id^="ftn"] p,
.adasat-content p:has(> a[name^="_ftn"]:first-child),
.adasat-content p:has(> a[href^="#_ftnref"]:first-child) {
	font-size: 9.5pt !important;
	line-height: 1.6 !important;
	text-align: start;
}
.adasat-content hr {
	border: 0;
	border-top: .5pt solid #999;
	margin: 6mm 0 4mm;
	width: 40%;
}

/* Table of contents: a plain outline, no box, allowed to split across pages. */
.adasat-toc {
	border: 0 !important;
	padding: 0 !important;
	margin-bottom: 6mm !important;
	background: none !important;
}
.adasat-toc-title { font-size: 14pt !important; font-weight: 700; margin-bottom: 2mm !important; }
.adasat-toc li { font-size: 10pt !important; line-height: 1.7 !important; }

.wp-block-gallery { break-inside: auto; }
.wp-block-gallery .wp-block-image { break-inside: avoid; }

/* ---------- Closing block with the source link ---------- */

.adasat-print-source {
	margin-top: 10mm;
	padding-top: 3mm;
	border-top: .5pt solid #999;
	font-size: 9pt;
	color: #444;
	break-inside: avoid;
}
.adasat-print-source a { color: #000; text-decoration: none; word-break: break-all; }

/* ---------- Listing pages print as a simple list ---------- */

.adasat-grid,
.adasat-list,
.adasat-home-columns { display: block !important; }
.adasat-card {
	display: flex !important;
	flex-direction: row !important;
	gap: 5mm;
	margin-bottom: 5mm;
	border: 0 !important;
	border-bottom: .5pt solid #ccc !important;
	border-radius: 0 !important;
	break-inside: avoid;
	transform: none !important;
}
.adasat-card-media { width: 35mm; flex: none; aspect-ratio: 4 / 3; }
.adasat-card-term { display: none; }
.adasat-card-title a { color: #000 !important; }
.adasat-home-series { background: none !important; padding: 0 !important; }
.adasat-carousel-track { display: block !important; overflow: visible !important; }
