/* Print: content only, current language only, readable on A4. */
.madarish-header,
.madarish-footer,
.madarish-actionbar,
.madarish-lang-toggle,
.madarish-copy,
.wp-block-buttons,
.madarish-map {
	display: none !important;
}

body {
	padding: 0 !important;
	font-size: 11pt;
	color: #000;
	background: #fff;
}

.wp-block-cover,
.madarish-page-hero {
	min-height: 0 !important;
	background: none !important;
	color: #000 !important;
	padding: 0 !important;
}

.wp-block-cover__background,
.wp-block-cover__image-background {
	display: none !important;
}

.madarish-page-hero h1,
.madarish-hero h1 {
	color: #000 !important;
}

a[href^="http"]::after {
	content: " (" attr(href) ")";
	font-size: 0.85em;
}

.wp-block-table table {
	min-width: 0;
}

h2,
h3 {
	break-after: avoid;
}

tr,
figure {
	break-inside: avoid;
}

/* ---------- A4 page, and the single-notice letter layout ---------------- */
@page {
	size: A4;
	margin: 15mm 16mm 16mm;
}

.madarish-share,
.madarish-announce,
.madarish-wa-float,
.madarish-totop,
.madarish-lightbox,
.madarish-breadcrumb,
.madarish-notice-back,
.madarish-file__actions,
.madarish-attachments__dl {
	display: none !important;
}

/* Letterhead first: flatten the body group so its children can be reordered. */
main.madarish-notice {
	display: flex;
	flex-direction: column;
}

.madarish-notice .madarish-notice__body {
	display: contents;
}

.madarish-notice .madarish-print-head {
	order: -1;
	display: flex !important;
	align-items: center;
	gap: 12pt;
	padding-bottom: 8pt;
	margin-bottom: 16pt;
	border-bottom: 3px double #000;
}

.madarish-print-head__logo {
	width: 20mm;
	height: auto;
	flex: none;
}

.madarish-print-head__text {
	flex: 1;
}

.madarish-print-head p {
	margin: 0;
}

.madarish-print-head__name {
	font-size: 17pt;
	font-weight: 700;
	line-height: 1.25;
}

.madarish-print-head__meta {
	font-size: 9pt;
	line-height: 1.45;
}

.madarish-print-head__label {
	flex: none;
	padding: 3pt 10pt;
	border: 1.5pt solid #000;
	font-size: 11pt;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.madarish-notice .madarish-page-hero {
	text-align: center;
	margin-bottom: 12pt !important;
}

.madarish-notice .madarish-page-hero::after {
	display: none;
}

.madarish-notice .madarish-page-hero h1 {
	font-size: 16pt !important;
	margin: 0 0 4pt !important;
	text-decoration: underline;
	text-underline-offset: 4pt;
}

.madarish-notice .madarish-page-hero .wp-block-post-date {
	font-size: 10pt;
	color: #000 !important;
}

.madarish-notice .madarish-section {
	padding: 0 !important;
}

.madarish-notice .wp-block-post-content {
	font-size: 11.5pt;
	line-height: 1.65;
}

.madarish-notice .wp-block-post-featured-image img {
	max-height: 90mm;
	width: auto;
	margin-inline: auto;
}

.madarish-notice .madarish-attachments {
	margin-top: 14pt;
	padding-top: 8pt;
	border-top: 0.75pt solid #999;
	break-inside: avoid;
}

.madarish-attachments__title {
	font-size: 12pt !important;
	margin: 0 0 6pt !important;
}

.madarish-attachments__title svg,
.madarish-file__icon {
	display: none !important;
}

.madarish-files {
	gap: 4pt;
}

.madarish-file {
	display: block !important;
	padding: 0 !important;
	border: 0 !important;
	font-size: 10pt;
}

.madarish-file__body {
	display: block !important;
}

.madarish-file__name::before {
	content: "• ";
}

.madarish-file__meta::before {
	content: " (";
}

.madarish-file__meta::after {
	content: ")";
}

.madarish-file__url {
	display: block !important;
	font-size: 8.5pt;
	color: #444;
	overflow-wrap: anywhere;
}

.madarish-attachments__images {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 6pt;
	margin-top: 8pt;
}

.madarish-attachments__images img {
	max-height: 45mm;
	width: 100%;
	object-fit: cover;
}

.madarish-attachments__images figcaption {
	font-size: 8.5pt;
}

.madarish-notice .madarish-print-foot {
	display: flex !important;
	justify-content: space-between;
	gap: 12pt;
	margin-top: 24pt;
	padding-top: 6pt;
	border-top: 0.75pt solid #000;
	font-size: 8.5pt;
}

/* Scroll-reveal items that were never scrolled into view still print. */
[data-reveal] {
	opacity: 1 !important;
	transform: none !important;
}

/* Use the full A4 text width on the notice letter. */
.madarish-notice .is-layout-constrained > *,
main.madarish-notice > * {
	max-width: none !important;
	margin-inline: 0 !important;
}
