/* EM Blog Base v1.1 - editorial design (Fraunces + Inter, off-white + bos-groen + oker) */

/* ---- Resets / base ---- */
.wp-block-group, .wp-block-group__inner-container { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
body {
	font-feature-settings: "ss01" on, "cv11" on;
	-webkit-font-smoothing: antialiased;
}

/* ---- Wrap helper ---- */
.em-wrap { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }

/* ---- Header / Brand ---- */
.em-header {
	display: flex; align-items: center; justify-content: space-between;
	gap: 2rem;
	padding: 1rem 0;
}
.em-brand {
	display: inline-flex; align-items: center; gap: 0.75rem;
	text-decoration: none;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.5rem; font-weight: 600;
	color: var(--wp--preset--color--primary);
	letter-spacing: -0.01em;
}
.em-brand:hover { color: var(--wp--preset--color--accent-dark); }
.em-brand__mark {
	width: 40px; height: 40px; border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--cream);
	display: grid; place-items: center;
	overflow: hidden;
	box-shadow: 0 1px 0 var(--wp--preset--color--accent);
	flex-shrink: 0;
}
.em-brand__mark--img {
	width: 40px; height: 40px; object-fit: cover; display: block;
}
.em-brand__mark--letter {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700; font-size: 1.125rem; line-height: 1;
}
.em-brand__textbox {
	display: inline-block;
	vertical-align: middle;
	line-height: 1.15;
	min-width: 0;
}
.em-brand__name {
	display: block !important;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	letter-spacing: -0.01em;
	line-height: 1.15;
}
.em-brand__tagline {
	display: -webkit-box !important;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	font-family: var(--wp--preset--font-family--heading);
	font-style: italic;
	font-weight: 400;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--tekst-zacht);
	letter-spacing: 0.01em;
	margin-top: 0.125rem;
	max-width: 480px;
	overflow: hidden;
	white-space: normal;
	line-height: 1.3;
}
@media (max-width: 600px) {
	.em-brand__tagline { display: none !important; }
}

/* WP navigation styling */
.wp-block-navigation { gap: 1.75rem !important; }
.wp-block-navigation .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.9375rem; font-weight: 500;
	color: var(--wp--preset--color--tekst);
	position: relative; padding: 0.25rem 0;
}
.wp-block-navigation .wp-block-navigation-item__content::after {
	content: ""; position: absolute;
	left: 0; right: 0; bottom: -2px;
	height: 2px; background: var(--wp--preset--color--accent);
	transform: scaleX(0); transition: transform .2s ease;
	transform-origin: left;
}
.wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--primary);
}
.wp-block-navigation .wp-block-navigation-item__content:hover::after {
	transform: scaleX(1);
}

/* ---- Hero (compact) ---- */
.em-hero {
	padding: 3rem 1.5rem 1.5rem;
	border-bottom: 1px solid var(--wp--preset--color--rand);
	text-align: center;
	margin: 0;
}
.em-hero__inner {
	max-width: 720px; margin: 0 auto; text-align: center;
}
.em-hero__eyebrow {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
	font-weight: 600; color: var(--wp--preset--color--accent-dark);
	margin: 0 auto 1rem;
	display: inline-flex; align-items: center; gap: 0.75rem;
	width: fit-content;
}
.em-hero__eyebrow::before, .em-hero__eyebrow::after {
	content: ""; width: 28px; height: 1px;
	background: var(--wp--preset--color--accent);
}
.em-hero__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2rem, 4vw, 2.75rem);
	line-height: 1.1; letter-spacing: -0.02em;
	font-weight: 600;
	margin: 0 auto 0.75rem;
	max-width: 720px;
	color: var(--wp--preset--color--tekst);
}
.em-hero__title em {
	font-style: italic; font-weight: 400;
	color: var(--wp--preset--color--primary);
	background: linear-gradient(transparent 65%, rgba(193, 154, 91, 0.25) 65%);
}
.em-hero__sub {
	font-size: 1rem;
	color: var(--wp--preset--color--tekst-zacht);
	max-width: 560px; margin: 0 auto;
	line-height: 1.6;
}

/* ---- Section label ---- */
.em-section-label {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
	font-weight: 700; color: var(--wp--preset--color--accent-dark);
	display: inline-flex; align-items: center; gap: 0.75rem;
	margin: 0 0 1.5rem;
}
.em-section-label::before {
	content: ""; width: 28px; height: 1px;
	background: var(--wp--preset--color--accent);
}
.em-divider {
	border: 0; border-top: 1px solid var(--wp--preset--color--rand);
	margin: 3rem 0 2rem;
}

/* ---- Featured (één grote) ---- */
.em-featured {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 2.5rem;
	align-items: center;
	margin: 0 0 3rem;
}
.em-featured__thumb {
	display: block;
	aspect-ratio: 16/10;
	border-radius: 6px;
	overflow: hidden;
	background: var(--wp--preset--color--muted);
}
.em-featured__thumb img,
.em-featured__thumb .em-featured__img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	object-fit: cover;
	display: block;
	transition: transform .4s;
}
.em-featured__thumb:hover img { transform: scale(1.02); }
.em-featured__body { min-width: 0; }
.em-featured__meta {
	display: flex; gap: 0.875rem; align-items: center;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--tekst-zacht);
	margin: 0 0 0.875rem;
	flex-wrap: wrap;
}
.em-featured__cat {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--cream);
	padding: 0.25rem 0.625rem;
	border-radius: 3px;
	font-size: 0.6875rem; font-weight: 600;
	text-transform: uppercase; letter-spacing: 0.08em;
}
.em-featured__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.5rem, 3vw, 2rem);
	line-height: 1.15;
	font-weight: 600;
	margin: 0 0 0.875rem;
	letter-spacing: -0.015em;
}
.em-featured__title a {
	color: var(--wp--preset--color--tekst);
	text-decoration: none;
}
.em-featured__title a:hover {
	color: var(--wp--preset--color--primary);
}
.em-featured__excerpt {
	font-size: 1rem;
	color: var(--wp--preset--color--tekst-zacht);
	line-height: 1.6;
	margin: 0 0 1.25rem;
}
.em-featured__read {
	display: inline-flex; align-items: center; gap: 0.5rem;
	color: var(--wp--preset--color--primary);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 2px solid var(--wp--preset--color--accent);
	padding-bottom: 2px;
}
.em-featured__read::after { content: "→"; }

/* ---- Posts grid (3-koloms gelijke cards) ---- */
.em-posts .wp-block-post-template {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 2.5rem 2rem !important;
	list-style: none;
	padding: 0; margin: 0;
}
.em-posts .wp-block-post-template > li {
	margin: 0;
}
.em-card {
	display: flex !important;
	flex-direction: column;
	text-decoration: none; color: inherit;
	transition: transform .2s;
}
.em-card:hover { transform: translateY(-2px); }
.em-card .wp-block-post-featured-image,
.em-card__thumb {
	aspect-ratio: 4/3;
	border-radius: 6px;
	overflow: hidden;
	background: var(--wp--preset--color--muted);
	margin: 0 0 0.875rem !important;
	display: block;
}
.em-card .wp-block-post-featured-image a,
.em-card .wp-block-post-featured-image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
	transition: transform .4s;
}
.em-card:hover .wp-block-post-featured-image img {
	transform: scale(1.04);
}
.em-card .wp-block-post-title {
	font-family: var(--wp--preset--font-family--heading) !important;
	font-size: 1.0625rem !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	letter-spacing: -0.01em;
	margin: 0 0 0.375rem !important;
}
.em-card .wp-block-post-title a {
	color: var(--wp--preset--color--tekst);
	text-decoration: none;
}
.em-card .wp-block-post-title a:hover {
	color: var(--wp--preset--color--primary);
}
.em-card .wp-block-post-excerpt {
	margin: 0 0 0.5rem !important;
}
.em-card .wp-block-post-excerpt__excerpt {
	font-size: 0.875rem;
	color: var(--wp--preset--color--tekst-zacht);
	line-height: 1.55;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.em-card .wp-block-post-excerpt__more-text { display: none; }
.em-card .wp-block-post-date {
	font-size: 0.75rem !important;
	color: var(--wp--preset--color--tekst-zacht) !important;
	margin-top: auto;
}

/* ---- Pagination ---- */
.em-pagination {
	display: flex !important;
	justify-content: center;
	gap: 0.5rem !important;
	margin-top: 3rem !important;
}
.em-pagination a,
.em-pagination span,
.em-pagination .wp-block-query-pagination-numbers a,
.em-pagination .wp-block-query-pagination-numbers .current,
.em-pagination .wp-block-query-pagination-previous,
.em-pagination .wp-block-query-pagination-next {
	padding: 0.5rem 0.875rem;
	border: 1px solid var(--wp--preset--color--rand);
	border-radius: 4px;
	color: var(--wp--preset--color--tekst);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	background: var(--wp--preset--color--cream);
}
.em-pagination .wp-block-query-pagination-numbers .current {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--cream);
	border-color: var(--wp--preset--color--primary);
}
.em-pagination a:hover {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

/* ---- Footer / copyright ---- */
.em-copyright {
	text-align: center;
	font-size: 0.875rem;
	color: var(--wp--preset--color--tekst-zacht);
	padding: 0; margin: 0;
}

/* ---- Single post ---- */
.wp-block-post-content {
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--wp--preset--color--tekst);
}
.wp-block-post-content h2,
.wp-block-post-content h3 {
	font-family: var(--wp--preset--font-family--heading);
}
.wp-block-post-content a {
	color: var(--wp--preset--color--primary);
	border-bottom: 1px solid var(--wp--preset--color--accent);
}
.wp-block-post-content a:hover {
	color: var(--wp--preset--color--accent-dark);
}

/* ---- Breadcrumbs ---- */
.em-breadcrumbs {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--tekst-zacht);
	margin: 1.5rem 0;
}
.em-breadcrumbs__list {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.em-breadcrumbs__item + .em-breadcrumbs__item::before {
	content: "/";
	margin-right: 0.5rem;
	color: var(--wp--preset--color--rand);
}
.em-breadcrumbs__item a {
	color: var(--wp--preset--color--tekst-zacht);
	text-decoration: none;
}
.em-breadcrumbs__item a:hover {
	color: var(--wp--preset--color--primary);
}
.em-breadcrumbs__item.is-current {
	color: var(--wp--preset--color--tekst);
	font-weight: 500;
}

/* ---- TOC + FAQ (overgenomen, ingepast in nieuwe stijl) ---- */
.em-toc {
	background: var(--wp--preset--color--cream);
	border: 1px solid var(--wp--preset--color--rand);
	border-radius: 6px;
	padding: 1.5rem; margin: 2rem 0;
}
.em-toc__list { margin: 0; padding-left: 1.25rem; }
.em-toc__list li { margin: 0.25rem 0; }
.em-toc__list a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}
.em-toc__list a:hover {
	color: var(--wp--preset--color--accent-dark);
	text-decoration: underline;
}
.em-faq__item {
	border: 1px solid var(--wp--preset--color--rand);
	border-radius: 6px;
	padding: 1rem 1.25rem;
	margin-bottom: 0.75rem;
	background: var(--wp--preset--color--cream);
}
.em-faq__item[open] { background: var(--wp--preset--color--muted); }
.em-faq__q {
	cursor: pointer; font-weight: 600;
	color: var(--wp--preset--color--primary);
	font-family: var(--wp--preset--font-family--heading);
	list-style: none;
	display: flex; justify-content: space-between; align-items: center;
}
.em-faq__q::-webkit-details-marker { display: none; }
.em-faq__q::after {
	content: "+";
	font-size: 1.25rem; font-weight: 400;
	color: var(--wp--preset--color--accent);
}
.em-faq__item[open] .em-faq__q::after { content: "−"; }
.em-faq__a { margin-top: 0.75rem; color: var(--wp--preset--color--tekst); }

/* ---- Affiliate box (overgenomen, ingepast) ---- */
.em-affiliate-box {
	background: var(--wp--preset--color--cream) !important;
	border: 1px solid var(--wp--preset--color--rand) !important;
	border-left: 4px solid var(--wp--preset--color--accent) !important;
	border-radius: 6px !important;
	transition: box-shadow .15s;
}
.em-affiliate-box:hover {
	box-shadow: 0 4px 16px rgba(31, 26, 20, 0.08);
}

/* ---- Sticky CTA bar ---- */
.em-sticky-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--cream);
	box-shadow: 0 -4px 16px rgba(0,0,0,.15);
	transform: translateY(100%); transition: transform .25s;
}
.em-sticky-bar.is-visible { transform: translateY(0); }
.em-sticky-bar.is-dismissed { display: none; }
.em-sticky-bar__inner {
	max-width: 1240px; margin: 0 auto;
	padding: .75rem 1rem;
	display: flex; align-items: center; gap: 1rem;
}
.em-sticky-bar__text { flex: 1; min-width: 0; }
.em-sticky-bar__text strong {
	display: block; font-size: .9375rem; font-weight: 700;
	font-family: var(--wp--preset--font-family--heading);
}
.em-sticky-bar__text span {
	display: block; font-size: .8125rem; opacity: .85;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.em-sticky-bar__cta {
	background: var(--wp--preset--color--cta-bg);
	color: var(--wp--preset--color--cta-text);
	padding: .625rem 1.25rem; border-radius: 4px;
	font-weight: 600; text-decoration: none; white-space: nowrap;
}
.em-sticky-bar__cta:hover {
	background: var(--wp--preset--color--accent-dark);
	color: var(--wp--preset--color--cream);
}
.em-sticky-bar__close {
	background: transparent; border: 0;
	color: var(--wp--preset--color--cream);
	font-size: 1.5rem; line-height: 1; cursor: pointer;
	padding: .25rem .5rem; opacity: .6;
}
.em-sticky-bar__close:hover { opacity: 1; }
@media (min-width: 768px) { .em-sticky-bar { display: none; } }

/* ---- Responsive ---- */
@media (max-width: 900px) {
	.em-featured { grid-template-columns: 1fr; }
	.em-posts .wp-block-post-template { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 600px) {
	.em-posts .wp-block-post-template { grid-template-columns: 1fr !important; }
}
