/* RFC Core — кнопка «Друк» і стилі для друку сторінок новин (Blocksy). */
.rfc-print { margin: 20px 0 0; text-align: left; }
.rfc-print__btn {
	display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 10px 6px 6px;
	border: 0; border-radius: 4px; background: transparent; color: #1e73be;
	font: inherit; font-size: 14px; line-height: 1; cursor: pointer;
}
.rfc-print__btn:hover { background: rgba(11, 28, 128, .06); color: #0b1c80; }
.rfc-print__btn:focus-visible { outline: 2px solid #0b1c80; outline-offset: 2px; }
.rfc-print__icon { flex: 0 0 auto; }

@media print {
	@page { margin: 15mm; }

	html, body { background: #fff !important; color: #000 !important; }
	body { font-size: 12pt; line-height: 1.45; }
	body::before {
		content: "Рівненський фаховий коледж НУБіП України · rfc.nubip.edu.ua";
		display: block; margin: 0 0 12pt; padding: 0 0 4pt; border-bottom: 1px solid #999;
		font-size: 9pt; color: #444;
	}

	/* Усе, крім самої новини */
	#header, header#header, .ct-header, .ct-drawer-canvas, .skip-link,
	footer.ct-footer, .ct-footer, aside, .ct-sidebar, [data-id="sidebar"],
	.ct-share-box, .ct-related-posts, .post-navigation, .ct-comments, #comments,
	.ct-breadcrumbs, .ct-back-to-top, #ct-back-to-top,
	.trp-language-switcher, .trp-floater-ls-names, #trp-floater-ls,
	.rfc-print, .rfc-form, .wp-block-embed, iframe, video, audio, ._3d-flip-book { display: none !important; }

	/* Контент на всю ширину */
	#main-container, main, .ct-container, .ct-container-full, [data-vertical-spacing], article, .entry-content {
		display: block !important; width: auto !important; max-width: none !important;
		margin: 0 !important; padding: 0 !important; box-shadow: none !important;
	}

	/* Заголовок новини: у темі він білий на фото — друкуємо чорним без фону */
	.hero-section { min-height: 0 !important; height: auto !important; padding: 0 !important; margin: 0 0 10pt !important; background: none !important; }
	.hero-section figure, .hero-section .ct-media-container, .hero-section > .ct-container-full > figure { display: none !important; }
	.hero-section *, .entry-header *, .page-title, .entry-meta, .entry-meta a { color: #000 !important; background: none !important; text-shadow: none !important; }
	.hero-section .entry-header, .hero-section [class*="ct-container"] { position: static !important; padding: 0 !important; min-height: 0 !important; }
	.page-title, h1 { font-size: 18pt !important; line-height: 1.25 !important; margin: 0 0 6pt !important; }

	a { color: #000 !important; text-decoration: underline; }
	img { max-width: 100% !important; height: auto !important; page-break-inside: avoid; break-inside: avoid; }
	figure, table, blockquote, ul, ol { page-break-inside: avoid; break-inside: avoid; }
	h2, h3, h4 { page-break-after: avoid; break-after: avoid; }
	.wp-block-gallery { display: block !important; }
	.wp-block-gallery figure { display: inline-block !important; width: 48% !important; margin: 0 1% 6pt 0 !important; }
}
