.post-hero:has(img:not([src])),
.post-hero:has(img[src=""]) {
	display: none;
}

.post-tag:empty {
	display: none;
}

.post-body {
	font-family: Roboto, sans-serif;
	font-size: 1.075rem;
	line-height: 1.8;
	color: #2B2B2B;
	overflow-wrap: break-word;
}

.post-body::after {
	content: '';
	display: block;
	clear: both;
}

.post-body p,
.post-body li {
	font-family: Roboto, sans-serif;
	font-size: 1.075rem;
	line-height: 1.8;
	color: #2B2B2B;
}

.post-body p {
	margin: 0 0 1.4em;
}

.post-body h2,
.post-body h3,
.post-body h4 {
	font-family: Montserrat, sans-serif;
	font-weight: 700;
	line-height: 1.25;
	color: #0A0A0A;
	margin: 2em 0 0.6em;
}

.post-body h2 { font-size: 1.6rem; }
.post-body h3 { font-size: 1.3rem; }
.post-body h4 { font-size: 1.1rem; }

.post-body a {
	color: #FE1E32;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.post-body a:hover {
	color: #0A0A0A;
}

.post-body ul,
.post-body ol {
	margin: 0 0 1.4em;
	padding-left: 1.4em;
}

.post-body img {
	max-width: 100%;
	height: auto;
}

.post-body figure,
.post-body .wp-caption {
	max-width: 100%;
	margin: 1.6em 0;
	width: auto !important;
}

.post-body figcaption,
.post-body .wp-caption-text {
	margin-top: 0.5rem;
	font-size: 0.85rem;
	line-height: 1.5;
	color: #777777;
}

.post-body iframe,
.post-body video {
	max-width: 100%;
}

.post-body blockquote {
	margin: 1.8em 0;
	padding: 0.4em 0 0.4em 1.2rem;
	border-left: 4px solid #FE1E32;
	font-style: italic;
	color: #333333;
}

.post-body .alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
	max-width: 50%;
}

.post-body .alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
	max-width: 50%;
}

.post-body .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/* News articles: centered reading column with justified paragraphs (events are not affected) */
body.single-post .post-body {
	width: 100%;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

@media (min-width: 600px) {
	body.single-post .post-body p,
	body.single-post .post-body li {
		text-align: justify;
		text-justify: inter-word;
	}
}

/* Event pages: file links (regulations, invitations, results) as download buttons */
.post-body.event-body hr {
	border: 0;
	border-top: 1px solid #E4E4E4;
	margin: 1.2em 0;
}

.post-body.event-body p:has(> a[href*="/wp-content/uploads/"]:not(:has(img))) {
	margin: 0 0 0.75em;
}

.post-body.event-body a[href*="/wp-content/uploads/"]:not(:has(img)) {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.7rem 1.1rem;
	border: 2px solid #FE1E32;
	background-color: #FFFFFF;
	color: #0A0A0A;
	font-family: Montserrat, sans-serif;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.post-body.event-body a[href*="/wp-content/uploads/"]:not(:has(img))::before {
	content: "\2193";
	color: #FE1E32;
	font-size: 1.1rem;
	font-weight: 800;
	transition: color 0.25s ease;
}

.post-body.event-body a[href*="/wp-content/uploads/"]:not(:has(img)):hover {
	background-color: #FE1E32;
	color: #FFFFFF;
}

.post-body.event-body a[href*="/wp-content/uploads/"]:not(:has(img)):hover::before {
	color: #FFFFFF;
}

@media (max-width: 767px) {
	.post-body,
	.post-body p,
	.post-body li {
		font-size: 1rem;
		line-height: 1.75;
	}
	.post-body .alignleft,
	.post-body .alignright {
		float: none;
		display: block;
		max-width: 100%;
		margin: 1em auto;
	}
}
