/* =============================================
   LaundDry — Blog
   Overzicht (/blog/), categorieën, artikel en het paneel
   "From the blog" op Self-Service en FAQ.
   ============================================= */

/* --- Overzicht --- */
.ld-blog {
	/* Bovenaan ruimte voor de vaste header */
	padding: calc(var(--ld-pill-top) + var(--ld-pill-h) + clamp(18px, 3vw, 40px)) clamp(20px, 5vw, 72px) clamp(64px, 7vw, 100px);
}

.ld-blog__inner {
	max-width: 1180px;
	margin: 0 auto;
}

.ld-blog__head {
	max-width: 680px;
	margin: 0 auto clamp(28px, 3.6vw, 48px);
	text-align: center;
}

.ld-blog__title {
	margin: 0 0 12px;
	font-family: var(--ld-font-display);
	font-size: clamp(34px, 5vw, 58px);
	font-weight: 400;
	line-height: 1.06;
	color: var(--ld-green);
}

/* "Know-How" niet afbreken op het streepje */
.ld-blog__title .ld-em {
	white-space: nowrap;
}

.ld-blog__intro {
	margin: 0 auto;
	max-width: 52ch;
	font-family: var(--ld-font-body);
	font-size: clamp(15px, 1.3vw, 17px);
	line-height: 1.6;
	color: rgba(34, 48, 42, .72);
}

.ld-blog__filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 24px;
}

.ld-chip {
	display: inline-flex;
	align-items: center;
	padding: 9px 18px;
	border-radius: 999px;
	font-family: var(--ld-font-body);
	font-size: 14.5px;
	line-height: 1;
	color: var(--ld-green);
	text-decoration: none;
	box-shadow: inset 0 0 0 1.5px rgba(24, 65, 39, .22);
	transition: background-color .2s var(--ld-ease), color .2s var(--ld-ease), box-shadow .2s var(--ld-ease);
}

.ld-chip:hover,
.ld-chip:focus-visible {
	box-shadow: inset 0 0 0 1.5px var(--ld-green);
}

.ld-chip.is-active {
	background: var(--ld-green);
	color: var(--ld-bg);
	box-shadow: none;
}

.ld-blog__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 24px);
}

.ld-blog__empty {
	text-align: center;
	font-family: var(--ld-font-body);
	color: rgba(34, 48, 42, .7);
}

/* --- Kaart --- */
.ld-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	border-radius: 15px;
	overflow: hidden;
	background: rgba(255, 255, 255, .55);
	border: 1px solid rgba(24, 65, 39, .1);
	box-shadow: 0 14px 36px rgba(34, 48, 42, .06);
	transition: transform .3s var(--ld-ease), box-shadow .3s var(--ld-ease);
}

.ld-card:hover,
.ld-card:focus-within {
	transform: translateY(-3px);
	box-shadow: 0 22px 46px rgba(34, 48, 42, .12);
}

.ld-card__media {
	display: block;
	width: 100%; /* zelfde Safari-reden als bij .ld-service */
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: rgba(24, 65, 39, .06);
}

.ld-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s var(--ld-ease);
}

.ld-card:hover .ld-card__img {
	transform: scale(1.04);
}

.ld-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 18px 22px 20px;
}

.ld-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	margin: 0 0 10px;
	font-family: var(--ld-font-body);
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: rgba(34, 48, 42, .5);
}

.ld-card__cat {
	color: var(--ld-green);
}

.ld-card__title {
	margin: 0 0 10px;
	font-family: var(--ld-font-display);
	font-size: clamp(19px, 1.7vw, 22px);
	font-weight: 400;
	line-height: 1.22;
	color: var(--ld-green);
}

.ld-card__title a {
	color: inherit;
	text-decoration: none;
}

/* Hele kaart klikbaar */
.ld-card__title a::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
}

.ld-card__title a:focus-visible {
	outline: none;
}

.ld-card:focus-within {
	outline: 2px solid var(--ld-green);
	outline-offset: 2px;
}

.ld-card__excerpt {
	margin: 0 0 16px;
	font-family: var(--ld-font-body);
	font-size: 14.5px;
	line-height: 1.55;
	color: rgba(34, 48, 42, .7);
}

.ld-card__more {
	margin-top: auto;
	font-family: var(--ld-font-display);
	font-size: 15px;
	color: var(--ld-green);
}

/* Grote kaart bovenaan het overzicht */
.ld-card--featured {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: 1.15fr 1fr;
}

.ld-card--featured .ld-card__media {
	aspect-ratio: auto;
	min-height: 320px;
}

.ld-card--featured .ld-card__body {
	justify-content: center;
	padding: clamp(24px, 3vw, 44px);
}

.ld-card--featured .ld-card__title {
	font-size: clamp(24px, 2.6vw, 34px);
}

.ld-card--featured .ld-card__excerpt {
	font-size: 15.5px;
}

.ld-card--featured .ld-card__more {
	margin-top: 4px;
}

/* --- Paginering --- */
.ld-blog__pages {
	margin-top: 40px;
}

.ld-blog__pages ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ld-blog__pages a,
.ld-blog__pages span {
	display: inline-flex;
	align-items: center;
	min-width: 42px;
	height: 42px;
	justify-content: center;
	padding: 0 14px;
	border-radius: 999px;
	font-family: var(--ld-font-body);
	font-size: 14.5px;
	color: var(--ld-green);
	text-decoration: none;
	box-shadow: inset 0 0 0 1.5px rgba(24, 65, 39, .2);
}

.ld-blog__pages .current {
	background: var(--ld-green);
	color: var(--ld-bg);
	box-shadow: none;
}

/* --- Artikel --- */
.ld-post {
	padding: calc(var(--ld-pill-top) + var(--ld-pill-h) + clamp(18px, 3vw, 40px)) clamp(20px, 5vw, 72px) clamp(64px, 7vw, 100px);
}

.ld-post__head {
	max-width: 820px;
	margin: 0 auto clamp(24px, 3vw, 36px);
	text-align: center;
}

.ld-crumbs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 8px;
	margin-bottom: 18px;
	font-family: var(--ld-font-body);
	font-size: 13.5px;
	color: rgba(34, 48, 42, .45);
}

.ld-crumbs a {
	color: rgba(34, 48, 42, .7);
	text-decoration: none;
}

.ld-crumbs a:hover,
.ld-crumbs a:focus-visible {
	color: var(--ld-green);
	text-decoration: underline;
}

.ld-post__title {
	margin: 0 0 16px;
	font-family: var(--ld-font-display);
	font-size: clamp(30px, 4.4vw, 52px);
	font-weight: 400;
	line-height: 1.1;
	color: var(--ld-green);
}

.ld-post__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 0;
	margin: 0;
	font-family: var(--ld-font-body);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: rgba(34, 48, 42, .55);
}

.ld-post__meta > * + *::before {
	content: '·';
	margin: 0 10px;
}

.ld-post__hero {
	max-width: 960px;
	margin: 0 auto clamp(30px, 4vw, 48px);
	border-radius: 18px;
	overflow: hidden;
	background: rgba(24, 65, 39, .06);
}

.ld-post__img {
	display: block;
	width: 100%;
	max-height: 560px;
	object-fit: cover;
}

.ld-post__layout {
	display: grid;
	grid-template-columns: 230px minmax(0, 700px);
	justify-content: center;
	align-items: start;
	gap: clamp(28px, 4vw, 56px);
	max-width: 1000px;
	margin: 0 auto;
}

.ld-post__layout--single {
	grid-template-columns: minmax(0, 720px);
}

.ld-post__toc {
	position: sticky;
	top: calc(var(--ld-pill-top) + var(--ld-pill-h) + 24px);
}

.ld-toc {
	padding: 18px 18px 14px;
	border-radius: 15px;
	background: rgba(255, 255, 255, .55);
	border: 1px solid rgba(24, 65, 39, .1);
}

.ld-toc__title {
	margin-bottom: 10px;
	font-family: var(--ld-font-body);
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	color: rgba(34, 48, 42, .55);
	cursor: pointer;
}

.ld-toc__list {
	margin: 0;
	padding: 0 0 0 18px;
	font-family: var(--ld-font-body);
	font-size: 14px;
	line-height: 1.4;
	color: rgba(34, 48, 42, .5);
}

.ld-toc__list li + li {
	margin-top: 8px;
}

.ld-toc__list a {
	color: var(--ld-ink);
	text-decoration: none;
}

.ld-toc__list a:hover,
.ld-toc__list a:focus-visible {
	color: var(--ld-green);
	text-decoration: underline;
}

.ld-post__body h2 {
	scroll-margin-top: calc(var(--ld-pill-top) + var(--ld-pill-h) + 24px);
}

.ld-post__body > :first-child {
	margin-top: 0;
}

.ld-post__body > p:first-child {
	font-size: 1.12em;
	color: var(--ld-green);
}

.ld-post__body figure {
	margin: 1.6em 0;
}

.ld-post__body table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.ld-post__body th,
.ld-post__body td {
	padding: 10px 12px;
	border-bottom: 1px solid rgba(24, 65, 39, .14);
	text-align: left;
	vertical-align: top;
}

.ld-post__body th {
	font-weight: 500;
	color: var(--ld-green);
	background: rgba(24, 65, 39, .05);
}

.ld-post__body .wp-block-table {
	overflow-x: auto;
}

/* Blok naar onze diensten */
.ld-post__cta {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 20px 32px;
	max-width: 1000px;
	margin: clamp(40px, 5vw, 64px) auto 0;
	padding: clamp(26px, 3.4vw, 40px);
	border-radius: 18px;
	background: var(--ld-green);
	color: var(--ld-bg);
}

.ld-post__cta .ld-eyebrow {
	margin-bottom: 8px;
	color: var(--ld-accent);
}

.ld-post__cta-title {
	margin: 0 0 8px;
	font-family: var(--ld-font-display);
	font-size: clamp(24px, 2.6vw, 32px);
	font-weight: 400;
	line-height: 1.15;
	color: var(--ld-bg);
}

.ld-post__cta-title .ld-em {
	color: var(--ld-accent);
	text-decoration-color: rgba(153, 171, 160, .5);
}

.ld-post__cta-text {
	margin: 0;
	max-width: 52ch;
	font-family: var(--ld-font-body);
	font-size: 15px;
	line-height: 1.6;
	color: rgba(236, 235, 232, .76);
}

.ld-post__cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ld-post__btn {
	background: var(--ld-bg);
	color: var(--ld-green);
}

.ld-post__btn:hover,
.ld-post__btn:focus-visible {
	background: #fff;
	color: var(--ld-green);
}

/* Lees ook */
.ld-post__related {
	max-width: 1180px;
	margin: clamp(48px, 6vw, 80px) auto 0;
}

.ld-post__related-title {
	margin: 0 0 clamp(20px, 2.6vw, 30px);
	text-align: center;
	font-family: var(--ld-font-display);
	font-size: clamp(26px, 3vw, 38px);
	font-weight: 400;
	color: var(--ld-green);
}

.ld-post__all {
	margin: 28px 0 0;
	text-align: center;
}

/* --- Paneel "From the blog" (Self-Service, FAQ) --- */
.ld-teaser {
	position: relative;
	background: var(--ld-bg-alt);
	padding: clamp(48px, 5vw, 68px) clamp(24px, 5vw, 72px);
}

.ld-teaser__inner {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
}

.ld-teaser__head {
	margin: 0 auto clamp(22px, 2.8vw, 34px);
	text-align: center;
}

.ld-teaser__title {
	margin: 0;
	font-family: var(--ld-font-display);
	font-size: clamp(26px, 3vw, 40px);
	line-height: 1.12;
	color: var(--ld-green);
}

.ld-teaser__item {
	min-width: 0;
}

.ld-teaser .ld-card__media {
	aspect-ratio: 16 / 9;
}

.ld-teaser__foot {
	display: flex;
	justify-content: center;
	margin-top: clamp(20px, 2.6vw, 30px);
}

/* In- en uitvliegen (alleen met panelen; zie motion.css) */
.ld-teaser__head                 { --ld-i: 0; --ld-y: 55px; }
.ld-teaser__item:nth-child(1)    { --ld-i: 1; --ld-x: -120px; --ld-y: 60px; --ld-r: -4deg; }
.ld-teaser__item:nth-child(2)    { --ld-i: 2; --ld-y: 110px; }
.ld-teaser__item:nth-child(3)    { --ld-i: 3; --ld-x: 120px; --ld-y: 60px; --ld-r: 4deg; }
.ld-teaser__foot                 { --ld-i: 4; --ld-y: 40px; }

@media (min-width: 981px) and (max-height: 700px) {
	.ld-teaser .ld-card__media {
		aspect-ratio: 21 / 9;
	}

	.ld-teaser .ld-card__body {
		padding: 14px 18px 16px;
	}

	.ld-teaser .ld-card__meta {
		margin-bottom: 6px;
	}

	.ld-teaser .ld-card__title {
		margin-bottom: 0;
		font-size: 18px;
	}

	.ld-teaser .ld-card__more {
		display: none;
	}

	.ld-teaser__head {
		margin-bottom: 18px;
	}

	.ld-teaser__foot {
		margin-top: 16px;
	}
}

/* --- Tablet en mobiel --- */
@media (max-width: 980px) {
	.ld-blog__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ld-card--featured {
		display: flex;
	}

	.ld-card--featured .ld-card__media {
		aspect-ratio: 16 / 9;
		min-height: 0;
	}

	.ld-post__layout {
		grid-template-columns: minmax(0, 700px);
	}

	.ld-post__toc {
		position: static;
	}

	.ld-post__cta {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.ld-post__cta-text {
		margin: 0 auto;
	}

	.ld-post__cta-actions {
		justify-content: center;
	}

	/* "From the blog": derde kaart past niet naast de andere twee */
	.ld-teaser__grid .ld-teaser__item:nth-child(3) {
		display: none;
	}
}

@media (max-width: 600px) {
	.ld-blog__grid {
		grid-template-columns: 1fr;
	}

	.ld-teaser__grid .ld-teaser__item:nth-child(3) {
		display: block;
	}

	.ld-post__cta-actions .ld-btn {
		width: 100%;
	}
}
