
@media print {
	html, body {
		margin: 0 !important;
		padding: 0 !important;
		height: auto !important;
	}
	
	.container {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		border: none !important;
	}
	
	.tablepress {
		page-break-inside: auto !important;
	}
	
	tr {
		page-break-inside: avoid !important;
		page-break-after: auto !important;
	}
	
	/* 4. Hide common WP fluff that might occupy space */
	#wpadminbar, .screen-reader-text {
		display: none !important;
	}
}

body {
	font: 10pt Tahoma, Geneva, sans-serif;
	line-height: 1.5;
}

@media print {
	/* 1. Target the parent container that has display: flex */
	.wp-block-columns {
		display: block !important;
		float: none !important;
	}
	
	/* 2. Apply the break-avoidance to the elements */
	ul, p, li {
		display: block !important;
		break-inside: avoid !important;
		page-break-inside: avoid !important;
		/* Forces the browser to treat the element as a single 'chunk' */
		position: relative;
	}
	
	/* 3. Keep headers with their following content */
	h1, h2, h3, h4 {
		break-after: avoid !important;
		page-break-after: avoid !important;
	}
}

@media print {
	/* Ensure the parent doesn't break logic with flex/grid */
	ul, p {
		display: block !important;
		break-inside: avoid;
		page-break-inside: avoid;
		/* Optional: prevents weird splitting in some engines */
		overflow: hidden;
	}
	
	li {
		/* Ensure list items themselves don't split */
		break-inside: avoid;
		page-break-inside: avoid;
		display: block;
	}
}

ul {
	list-style-type: none;
}

li {
	margin-top: 5px !important;
	margin-bottom: 5px;
	line-height: 1.5 !important;
}

p {
	page-break-inside: avoid;
	visibility: visible;
	line-height: 1.5 !important;
	margin-top: 5px !important;
	margin-bottom: 5px;
}

h1, h2, h3, h4, h5, h6 {
	page-break-before: avoid;
	page-break-after: avoid;
	page-break-inside: avoid;
	visibility: visible;
	font-family: "Open Sans", sans-serif;
}

h1 {
	font-size: 18pt !important;
	font-weight: 700 !important;
	color: #115763 !important;
	line-height: 1.5 !important;
	margin-top: 10px !important;
	margin-bottom: 10px;
}

h2 {
	font-size: 16pt !important;
	font-weight: 600 !important;
	color: #115763 !important;
	line-height: 1.5 !important;
	margin-bottom: 10px;
}

.container {
	max-width: 800px;
	margin: auto;
	background: white;
	padding: 40px;
	border-radius: 8px;
}

.container.clean {
	padding: 10px !important;
}
