/* Screen action only; accepted paper styles and mobile Share are preserved. */
.cmn-print-publication, .cmn-print-sources { display: none; }
@media screen and (min-width: 769px) {
	.single-post button.cmn-article-print:not([hidden]) {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		vertical-align: middle;
		width: 2em;
		height: 2em;
		margin: 0 0 0 .8em;
		padding: 0 .15em;
		border: 0;
		border-radius: .2em;
		background: transparent;
		color: inherit;
		font: inherit;
		line-height: inherit;
		cursor: pointer;
	}
	.single-post button.cmn-article-print svg { width: 1.25em; height: 1.25em; }
	.single-post button.cmn-article-print:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
}
@media screen and (max-width: 768px) {
	.single-post button.cmn-article-print { display: none !important; }
}

@media print {
	@page {
		size: A4;
		margin: 16mm 17mm 18mm;
		/* The bottom margin reserves space outside the article's page area. */
		@bottom-left {
			content: "ClassicalMusicNews.Ru · classicalmusicnews.ru";
			color: #777;
			font: 8pt/1.3 Arial, sans-serif;
			vertical-align: middle;
			text-align: left;
		}
		@bottom-right {
			content: counter(page) " / " counter(pages);
			color: #777;
			font: 8pt/1.3 Arial, sans-serif;
			vertical-align: middle;
			text-align: right;
		}
	}
	/* GP's screen flex/grid/fixed shells must not paginate the article. */
	body.single-post.cmn-reading-surface,
	.single-post.cmn-reading-surface #page,
	.single-post.cmn-reading-surface #content,
	.single-post.cmn-reading-surface #primary,
	.single-post.cmn-reading-surface #main,
	.single-post.cmn-reading-surface #main > article,
	.single-post.cmn-reading-surface .inside-article {
		display: block !important;
		position: static !important;
		float: none !important;
		width: auto !important;
		min-width: 0 !important;
		max-width: none !important;
		height: auto !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		background: white !important;
		box-shadow: none !important;
		overflow: visible !important;
	}
	.single-post.cmn-reading-surface { color: #111 !important; font: 11.5pt/1.5 Georgia, 'Times New Roman', serif; }
	/* Keep the native article in normal flow; hide outer chrome and posttext UI. */
	.single-post.cmn-reading-surface > :not(#page),
	.single-post.cmn-reading-surface #page > :not(#content),
	.single-post.cmn-reading-surface #content > :not(#primary),
	.single-post.cmn-reading-surface #main > :not(article),
	.single-post.cmn-reading-surface .inside-article > :not(.entry-header):not(.entry-content):not(.cmn-article-featured-media):not(.featured-image):not(.cmn-print-sources),
	.single-post .cmn-ad-slot, .single-post .code-block,
	.single-post .ad, .single-post .advertisement, .single-post .adsbygoogle,
	.single-post .entry-header .byline:not(.cmn-public-credit),
	.single-post .entry-meta time.updated:not(.published),
	.single-post .cmn-breadcrumbs, .single-post .cmn-series-top-navigation,
	.single-post .cmn-viewer, .single-post .cmn-viewer::backdrop,
	.single-post .cmn-article-print, .single-post .sharedaddy,
	.single-post .a2a_kit, .single-post .addtoany_share_save_container,
	.single-post .yarpp-related, .single-post .wp-block-latest-posts,
	.single-post .entry-content .cmn-inline-related,
	.single-post .entry-content form, .single-post .entry-content button,
	.single-post .entry-content iframe, .single-post .entry-content video,
	.single-post .entry-content audio, .single-post .entry-content object,
	.single-post .entry-content embed { display: none !important; }
	/* WordPress internal article embeds have a native linked-text fallback. */
	.single-post .entry-content blockquote.wp-embedded-content { display: block !important; }
	/* Native embeds keep captions/links but do not reserve a player-sized hole. */
	.single-post .entry-content :is(.wp-block-embed,.wp-block-video,.wp-block-audio,.wp-block-embed__wrapper) { height: auto !important; min-height: 0 !important; padding: 0 !important; aspect-ratio: auto !important; }
	.single-post .entry-content .wp-block-embed__wrapper::before { display: none !important; }
	.single-post .cmn-print-sources { display: block; margin-top: 5mm; font: 9pt/1.5 Arial, sans-serif; }
	.single-post .cmn-print-sources ul { margin: 2mm 0 0 5mm; }
	.single-post .cmn-print-publication {
		display: block; margin-bottom: 5mm; padding-bottom: 2mm;
		border-bottom: .3pt solid #999; color: #444; font: 9pt/1.3 Arial, sans-serif;
	}
	.single-post.cmn-reading-surface .entry-title { color: #111; font: bold 23pt/1.15 Georgia, 'Times New Roman', serif; letter-spacing: normal; margin: 0 0 4mm; overflow-wrap: anywhere; }
	.single-post.cmn-reading-surface .entry-header { margin-bottom: 5mm; }
	.single-post.cmn-reading-surface .entry-meta { margin: 0; color: #333; font: 9pt/1.5 Arial, sans-serif; }
	.single-post.cmn-reading-surface .entry-content { margin: 0; color: #111; font: 11.5pt/1.5 Georgia, 'Times New Roman', serif; overflow-wrap: anywhere; }
	.single-post.cmn-reading-surface .entry-content p { margin: 0 0 3.5mm; orphans: 3; widows: 3; }
	.single-post.cmn-reading-surface .entry-content .cmn-article-lead { font-size: 12.5pt; line-height: 1.45; }
	.single-post.cmn-reading-surface .entry-content h2 { font-size: 17pt; }
	.single-post.cmn-reading-surface .entry-content h3 { font-size: 14pt; }
	.single-post.cmn-reading-surface .entry-content :is(h2,h3,h4,h5,h6) { line-height: 1.25; margin: 5mm 0 3mm; break-after: avoid; }
	.single-post.cmn-reading-surface a { color: inherit; text-decoration: underline; overflow-wrap: anywhere; }
	.single-post.cmn-reading-surface .entry-content :is(ul,ol) { margin: 0 0 4mm 6mm; }
	.single-post.cmn-reading-surface .entry-content blockquote { margin: 4mm 0; padding: 0 0 0 4mm; border-left: 1pt solid #999; background: none; font-size: inherit; }
	.single-post.cmn-reading-surface .entry-content :is(pre,code) { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 10pt; }
	/* Bound legacy inline widths/floats, keeping photographs and their captions. */
	.single-post.cmn-reading-surface :is(figure,.wp-caption,.featured-image,.gallery-item) {
		float: none !important; width: auto !important; max-width: 100% !important;
		margin: 4mm auto !important; break-inside: avoid;
	}
	.single-post.cmn-reading-surface img {
		display: block; float: none !important; width: auto !important; height: auto !important;
		max-width: 100% !important; max-height: 205mm !important;
		object-fit: contain; margin-inline: auto !important; break-inside: avoid; break-after: avoid;
	}
	.single-post.cmn-reading-surface :is(figcaption,.wp-caption-text,.gallery-caption,.cmn-article-featured-caption,.cmn-article-media-credit) {
		color: #444; font: 9pt/1.4 Arial, sans-serif; margin: 2mm 0 0; break-before: avoid;
	}
	.single-post.cmn-reading-surface .entry-content :is(.gallery,.wp-block-gallery,.wp-block-columns,.gallery-item) { display: block !important; }
	.single-post.cmn-reading-surface .entry-content .wp-block-column { width: auto !important; }
	.single-post.cmn-reading-surface .entry-content :is(.wp-block-table,.table-responsive) { overflow: visible !important; max-width: 100%; }
	.single-post.cmn-reading-surface .entry-content table {
		width: 100% !important; min-width: 0 !important; max-width: 100% !important; table-layout: fixed;
		border-collapse: collapse; font-size: 10pt; break-inside: auto;
	}
	.single-post.cmn-reading-surface .entry-content :is(th,td) { width: auto !important; min-width: 0 !important; padding: 2mm; border: .5pt solid #999; overflow-wrap: anywhere; white-space: normal !important; }
	.single-post.cmn-reading-surface .entry-content thead { display: table-header-group; }
	.single-post.cmn-reading-surface .entry-content tr { break-inside: avoid; }
}
