/**
 * Light4Food / Systems4Food – template fixes (2026-10-28)
 * Loaded after style.css (see light4food_scripts() in functions.php).
 * Plain CSS on purpose: survives a Tailwind rebuild of style.css.
 */

/* ---------- Single news post ---------- */
.l4f-post {
	padding-top: 2.5rem;
	padding-bottom: 4rem;
}

@media (min-width: 64rem) {
	.l4f-post {
		padding-top: 3.5rem;
		padding-bottom: 5rem;
	}
}

.l4f-post__breadcrumbs,
.l4f-post__content {
	max-width: 48rem;
}

.l4f-post__breadcrumbs {
	margin: 0 0 1.5rem;
	font-size: 0.875rem;
	color: var(--color-text);
	opacity: 0.8;
}

.l4f-post__breadcrumbs a {
	color: var(--color-secondary);
	text-decoration: none;
}

.l4f-post__breadcrumbs a:hover {
	text-decoration: underline;
}

.l4f-post__content {
	color: var(--color-text);
	font-size: 1.0625rem;
	line-height: 1.75;
	text-align: left;
}

.l4f-post__content > :first-child {
	margin-top: 0;
}

.l4f-post__content > :last-child {
	margin-bottom: 0;
}

.l4f-post__content h2,
.l4f-post__content h3,
.l4f-post__content h4 {
	font-family: var(--font-kanit);
	font-weight: 500;
	color: var(--color-secondary);
}

.l4f-post__content a:not(.wp-block-button__link) {
	color: var(--color-secondary);
}

/* Images inside the article: never wider than the text column, keep ratio */
.l4f-post__content figure,
.l4f-post__content .wp-block-image {
	margin: 2rem 0;
}

.l4f-post__content img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0;
}

.l4f-post__content figcaption {
	margin-top: 0.5rem;
	font-size: 0.875rem;
	opacity: 0.8;
}

.l4f-post__content .wp-block-image.aligncenter img,
.l4f-post__content .aligncenter > img {
	margin-inline: auto;
}

.l4f-post__content .wp-block-buttons {
	margin: 1.75rem 0;
}

.l4f-post__content .wp-block-button__link {
	text-decoration: none;
}

/* ---------- Header: menu right of the logo (location menu-3) ---------- */
.l4f-menu-right {
	margin-right: 1.25rem;
}

.l4f-menu-right ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (hover: hover) {
	#primary-menu-right a:hover {
		color: var(--color-secondary);
	}
}

/* ---------- News overview cards (blocks/cards_showcase_all.php, posts) ---------- */
#cards_showcase_all .l4f-news-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

#cards_showcase_all .l4f-news-card .card__content {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 1.25rem 1.25rem 1.5rem;
}

#cards_showcase_all .l4f-news-card h3 {
	margin: 0 0 0.75rem;
	line-height: 1.3;
}

#cards_showcase_all .l4f-news-card .card__content > div {
	margin: 0 0 1.5rem;
	line-height: 1.65;
}

/* button: own box (was inline, so its padding stuck out of the card) and always at the bottom */
#cards_showcase_all .l4f-news-card .card__content > a {
	align-self: flex-start;
	margin-top: auto;
	line-height: 1.4;
}
