/*
Print Stylesheet for RS Capital Posts
*/

/* Keep all colors and backgrounds as they appear online */
* {
	-webkit-print-color-adjust: exact !important;
	print-color-adjust: exact !important;
	color-adjust: exact !important;
}

/* Remove shadows but preserve all colors */
*,
*:before,
*:after {
	box-shadow: none !important;
	text-shadow: none !important;
}

/* Ensure body and html preserve colors */
html,
body {
	-webkit-print-color-adjust: exact !important;
	print-color-adjust: exact !important;
}

a[href^="javascript:"]:after,
a[href^="#"]:after,
.site-title > a:after {
	content: "";
}

thead {
	display: table-header-group;
}

img,
tr {
	page-break-inside: avoid;
}

img {
	max-width: 100% !important;
}

@page {
	margin: 2cm 0.5cm;
}

p,
h2,
h3 {
	orphans: 3;
	widows: 3;
}

blockquote,
pre {
	border: 1px solid #999;
	page-break-inside: avoid;
}

/* Hide elements that shouldn't print */
button,
input,
select,
textarea,
.breadcrumb,
.comment-edit-link,
.comment-form,
.comment-list .reply a,
.comment-reply-title,
.edit-link,
.entry-comments-link,
.entry-footer,
.hidden-print,
.nav-primary,
.nav-secondary,
.post-edit-link,
.sidebar,
.talk-to-me,
.talk-to-us,
.elementor-widget-footer,
.elementor-location-footer,
.site-footer,
.entry-comments,
.comment-respond,
.after-entry,
.elementor-button,
.elementor-widget-social-icons,
.elementor-widget-button,
.elementor-widget-share-buttons,
.elementor-widget-sidebar,
header,
.site-header,
.elementor-location-header,
.grecaptcha-badge {
	display: none !important;
}

/* Post-specific print styles */
.entry-title,
.elementor-heading-title {
	font-size: 24pt !important;
	font-weight: bold !important;
}

/* Preserve inline layout and colors for rs-icon-category */
.rs-icon-category {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 10px !important;
}

.rs-icon-category h3.elementor-image-box-title {
	color: #a6acb3 !important;
}

.entry-meta {
	font-size: 10pt !important;
}

.entry-content,
.elementor-widget-theme-post-content,
article {
	font-size: 12pt !important;
	line-height: 1.6;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	page-break-after: avoid;
}

/* Ensure images display properly */
.entry-content img,
.wp-post-image,
.elementor-image img {
	max-width: 100% !important;
	height: auto !important;
	page-break-inside: avoid;
}

/* Optimize layout for printing */
.site-inner {
	max-width: 100%;
}

.content,
.content-sidebar,
main {
	width: 100% !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	orphans: 3;
	page-break-after: avoid;
	page-break-inside: avoid;
	widows: 3;
}

blockquote,
pre,
table {
	page-break-inside: avoid;
}

dl,
ol,
ul {
	page-break-before: avoid;
}

.rs-post-author h2.elementor-heading-title.elementor-size-default {
	font-size: 18px !important;
	font-weight: 700;
}
