/* Blog (Lamper Design): artikel met hero, inhoudsopgave in een zijkolom, inhoudsblokken en blogoverzicht.
 * Zelfde opzet als schaatsenenskeelers.nl en topdeals4pets.nl, in de huisstijl van TCB Darts. Code: inc/tcb-blog.php. */

.single-post { --bl-gap: clamp(40px, 6vw, 80px); }
.single-post .site-content { padding-top: 0; }

.single-post .inside-article {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	column-gap: var(--bl-gap);
	max-width: var(--wrap);
	margin-inline: auto;
	padding: 0 var(--gutter);
	box-sizing: border-box;
	background: none;
}
.single-post .inside-article > * { grid-column: 1; min-width: 0; }
.single-post .entry-header,
.single-post .bl-related { grid-column: 1 / -1; }
.single-post .entry-meta,
.single-post footer.entry-meta { display: none; }

/* Gedeelde koppen */
.single-post .entry-title,
.single-post .entry-content :is(h2, h3),
.bl-related h2,
.bl-bloghead h1,
.bl-card__title {
	font-family: var(--head);
	font-weight: 700;
	color: var(--ink);
}

/* Hero */
.bl-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
	padding: clamp(24px, 4vw, 48px) 0;
	margin-bottom: clamp(32px, 4vw, 48px);
	border-bottom: 1px solid var(--line);
}
.bl-hero--text { grid-template-columns: minmax(0, 820px); }
.single-post .entry-title { margin: 0; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.02; }
.bl-hero__lead { margin: 20px 0 0; font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.bl-hero__meta {
	display: flex;
	flex-wrap: wrap;
	column-gap: 18px;
	row-gap: 4px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	color: var(--muted);
}
.bl-hero__meta li + li::before { content: "\00B7"; margin-right: 18px; }
.bl-hero__media { margin: 0; overflow: hidden; border-radius: var(--r); background: var(--tint); }
.bl-hero__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Kruimelpad */
.bl-crumbs { margin-bottom: 20px; font-size: 14px; color: var(--muted); }
.bl-crumbs ol { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.bl-crumbs li + li::before { content: "/"; margin: 0 8px; }
.bl-crumbs a { color: var(--ink); text-decoration: none; }
.bl-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Tekst */
.single-post .entry-content { max-width: 760px; margin: 0; font-size: 18px; line-height: 1.7; color: var(--ink); }
.single-post .entry-content > * { margin-top: 0; margin-bottom: 1.1em; }
.single-post .entry-content h2 { margin: 2.2em 0 0.55em; font-size: clamp(28px, 2.8vw, 36px); line-height: 1.08; scroll-margin-top: 120px; }
.single-post .entry-content h3 { margin: 1.8em 0 0.5em; font-size: 23px; line-height: 1.2; }
.single-post .entry-content strong { font-weight: 600; }
.single-post .entry-content :is(p, li, td) a { color: var(--brand); text-underline-offset: 3px; }

/* Lijsten: vinkjes en genummerde stappen */
.single-post {
	--bl-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
	--bl-bulb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2.1h5c0-.9.4-1.6 1-2.1A6 6 0 0 0 12 3z'/%3E%3C/svg%3E");
}
.single-post .entry-content :is(ul, ol).wp-block-list { margin-left: 0; padding: 0; list-style: none; }
.single-post .entry-content .wp-block-list > li { position: relative; margin-bottom: 0.55em; padding-left: 32px; }
.single-post .entry-content ul.wp-block-list > li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.45em;
	width: 18px;
	height: 18px;
	background: var(--green);
	-webkit-mask: var(--bl-check) center / contain no-repeat;
	mask: var(--bl-check) center / contain no-repeat;
}
.single-post .entry-content ol.wp-block-list { counter-reset: bl-step; }
.single-post .entry-content ol.wp-block-list > li { counter-increment: bl-step; margin-bottom: 0; padding: 0 0 22px 52px; }
.single-post .entry-content ol.wp-block-list > li::before {
	content: counter(bl-step);
	position: absolute;
	left: 0;
	top: 0;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: var(--r);
	background: var(--brand);
	color: var(--paper);
	font-family: var(--head);
	font-size: 17px;
	font-weight: 700;
}
.single-post .entry-content ol.wp-block-list > li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 16px;
	top: 40px;
	bottom: 6px;
	width: 2px;
	background: var(--line);
}
.single-post .entry-content :is(ol.wp-block-list, ul.bl-duo) > li > strong:first-child {
	display: block;
	font-family: var(--head);
	font-size: 21px;
	font-weight: 700;
}

/* In het kort */
.bl-kort { margin: 0 0 2em; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); }
.single-post .entry-content .bl-kort__title {
	margin: 0;
	padding: 12px 24px;
	background: var(--green);
	color: var(--paper);
	font-size: 20px;
	line-height: 1.2;
}
.single-post .entry-content .bl-kort ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; counter-reset: bl-kort; }
.single-post .entry-content .bl-kort ul > li {
	counter-increment: bl-kort;
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	margin: 0;
	padding: 20px 24px;
	font-size: 16px;
	line-height: 1.55;
}
.single-post .entry-content .bl-kort ul > li:nth-child(odd) { border-right: 1px solid var(--line); }
.single-post .entry-content .bl-kort ul > li:nth-child(n + 3) { border-top: 1px solid var(--line); }
.single-post .entry-content .bl-kort ul > li::before {
	content: counter(bl-kort);
	position: static;
	width: auto;
	height: auto;
	background: none;
	-webkit-mask: none;
	mask: none;
	font-family: var(--head);
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
	color: var(--green);
}

/* Twee opties naast elkaar */
.single-post .entry-content ul.bl-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.single-post .entry-content ul.bl-duo > li { margin: 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r); font-size: 16px; line-height: 1.6; }
.single-post .entry-content ul.bl-duo > li::before { display: none; }
.single-post .entry-content ul.bl-duo > li > strong:first-child { margin-bottom: 6px; }

/* Tip en opmerking */
.single-post .entry-content .bl-note { position: relative; padding: 18px 22px 18px 58px; border-radius: var(--r); background: var(--tint); font-size: 16px; line-height: 1.6; }
.single-post .entry-content .bl-note::before {
	content: "";
	position: absolute;
	left: 22px;
	top: 20px;
	width: 22px;
	height: 22px;
	background: var(--brand);
	-webkit-mask: var(--bl-bulb) center / contain no-repeat;
	mask: var(--bl-bulb) center / contain no-repeat;
}
.single-post .entry-content .bl-note--muted { padding-left: 22px; background: none; border: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.single-post .entry-content .bl-note--muted::before { display: none; }

/* Vergelijkingstabel */
.single-post .entry-content .bl-table { margin-block: 1.4em 2em; overflow-x: auto; }
.single-post .entry-content .bl-table table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.single-post .entry-content .bl-table :is(th, td) { padding: 13px 14px; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.single-post .entry-content .bl-table thead th { border-bottom: 2px solid var(--ink); font-family: var(--head); font-size: 17px; font-weight: 700; color: var(--ink); }
.single-post .entry-content .bl-table tbody tr:hover { background: var(--tint); }
.single-post .entry-content .bl-table td:first-child { font-weight: 600; }

/* Productslider ([tcb_slider]) */
.bl-slider { margin-block: 2em 2.4em; }
.bl-slider__head { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.single-post .entry-content .bl-slider__head h3 { margin: 0 auto 0 0; }
.bl-slider__btn {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--paper);
	color: var(--ink);
	cursor: pointer;
}
.bl-slider__btn:hover,
.bl-slider__btn:focus { border-color: var(--ink); background: var(--paper); color: var(--ink); }
.bl-slider__btn svg { width: 18px; height: 18px; }
.single-post .entry-content .bl-slider__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 32px) / 3);
	gap: 16px;
	margin: 0;
	padding: 0 0 6px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.bl-slider__track::-webkit-scrollbar { display: none; }
.single-post .entry-content .bl-slider__track > li { margin: 0; padding: 0; scroll-snap-align: start; font-size: 16px; line-height: 1.4; }
.single-post .entry-content .bl-slider__track > li::before { display: none; }
.single-post .entry-content .bl-slider__track a { color: inherit; text-decoration: none; }
.bl-slider__track .tcb-card { height: 100%; }

/* Chips met merken en categorieen */
.single-post .entry-content .bl-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; }
.single-post .entry-content .bl-chips strong { margin-right: 4px; }
.single-post .entry-content .bl-chips a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--paper);
	color: var(--ink);
	text-decoration: none;
}
.single-post .entry-content .bl-chips a:hover { border-color: var(--ink); }

/* Veelgestelde vragen (Rank Math FAQ-blok, als uitklapper) */
.single-post .entry-content .bl-faq { border-top: 1px solid var(--line); }
.single-post .entry-content .bl-faq details { padding: 18px 0; border-bottom: 1px solid var(--line); }
.single-post .entry-content .bl-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; list-style: none; cursor: pointer; }
.single-post .entry-content .bl-faq summary::-webkit-details-marker { display: none; }
.single-post .entry-content .bl-faq summary h3 { margin: 0; font-size: 21px; line-height: 1.25; }
.single-post .entry-content .bl-faq summary::after { content: "+"; flex: none; font-size: 26px; line-height: 1; color: var(--brand); }
.single-post .entry-content .bl-faq details[open] summary::after { content: "\2212"; }
.single-post .entry-content .bl-faq details > div { margin-top: 10px; color: var(--ink-2); }

.single-post .entry-content .bl-sources { font-size: 15px; color: var(--muted); }
.single-post .entry-content .bl-sources > li { margin-bottom: 0.3em; padding-left: 0; }
.single-post .entry-content .bl-sources > li::before { display: none; }
.single-post .entry-content .bl-sources a { color: var(--muted); }

/* Zijkolom */
.bl-aside { grid-column: 2 !important; grid-row: 2; }
.bl-aside__inner { position: sticky; top: 24px; display: grid; gap: 20px; }
.bl-toc__title,
.bl-cta__title { margin: 0 0 10px; font-family: var(--head); font-size: 20px; font-weight: 700; color: var(--ink); }
.bl-toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.bl-toc a {
	display: block;
	margin-left: -1px;
	padding: 7px 0 7px 16px;
	border-left: 2px solid transparent;
	font-size: 15px;
	line-height: 1.4;
	color: var(--muted);
	text-decoration: none;
}
.bl-toc a:hover,
.bl-toc a[aria-current] { color: var(--ink); border-left-color: var(--brand); }
.bl-toc a[aria-current] { font-weight: 600; }
.bl-cta { padding: 22px; border-radius: var(--r); background: var(--tint); font-size: 15px; line-height: 1.5; }
.bl-cta p { margin: 0 0 14px; }
.bl-cta__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 16px;
	border-radius: var(--r);
	background: var(--brand);
	color: var(--paper);
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}
.bl-cta__btn:hover,
.bl-cta__btn:focus { background: var(--brand-dark); color: var(--paper); }

/* Gerelateerde artikelen en blogoverzicht delen dezelfde kaart */
.bl-related { margin-top: var(--bl-gap); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.bl-related h2 { margin: 0 0 24px; font-size: clamp(28px, 3vw, 40px); line-height: 1; }
.bl-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; margin: 0; padding: 0; list-style: none; }
.bl-card { position: relative; display: flex; flex-direction: column; gap: 10px; }
.bl-card__img { overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--r); background: var(--tint); }
.bl-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.bl-card:hover .bl-card__img img { transform: scale(1.04); }
.bl-card__title { margin: 4px 0 0; font-size: 23px; line-height: 1.15; }
.bl-card__title a { color: var(--ink); text-decoration: none; }
.bl-card__title a::after { content: ""; position: absolute; inset: 0; }
.bl-card:hover .bl-card__title a { text-decoration: underline; text-underline-offset: 3px; }
.bl-card__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

/* Blogoverzicht */
.bl-blog { max-width: var(--wrap); margin-inline: auto; padding: 0 var(--gutter) 64px; box-sizing: border-box; }
.bl-bloghead { padding: clamp(24px, 4vw, 44px) 0 28px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.bl-bloghead h1 { margin: 0; font-size: clamp(40px, 5vw, 60px); line-height: 1; }
.bl-bloghead__intro { max-width: 640px; margin: 14px 0 0; font-size: 18px; color: var(--ink-2); }
.bl-blog .nav-links { margin-top: 48px; }

@media (max-width: 1024px) {
	.single-post .inside-article { grid-template-columns: minmax(0, 1fr); }
	.bl-aside { grid-column: 1 !important; grid-row: 2; margin-bottom: 32px; }
	.bl-aside__inner { position: static; }
	.bl-cta { display: none; }
	.bl-toc { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); }
	.single-post .entry-content { max-width: none; }
	.bl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	.single-post .inside-article,
	.bl-blog { padding-inline: 16px; }
	.bl-hero { grid-template-columns: minmax(0, 1fr); padding-top: 16px; }
	.bl-hero__media { order: -1; }
	.bl-hero__img { aspect-ratio: 16 / 10; }
	.bl-hero__lead { font-size: 17px; }
	.bl-hero__meta { flex-direction: column; }
	.bl-hero__meta li + li::before { display: none; }
	.single-post .entry-content { font-size: 17px; }
	.single-post .entry-content .bl-kort ul > li:nth-child(odd) { border-right: 0; }
	.single-post .entry-content .bl-kort ul > li + li { border-top: 1px solid var(--line); }
	.single-post .entry-content :is(.bl-kort ul, ul.bl-duo) { grid-template-columns: minmax(0, 1fr); }
	.single-post .entry-content .bl-slider__track { grid-auto-columns: 62%; }
	.bl-cards { grid-template-columns: minmax(0, 1fr); }
}
