/* ==========================================================================
   Artikelen: overzicht /blog en artikelpagina
   Ontwerp: redesign/02-ontwerp/canvas/Blog.dc.html, Desktop-Blog.dc.html, Artikel.dc.html, Desktop-Artikel.dc.html
   ========================================================================== */

/* ---------- Overzicht ---------- */
.articles-page { padding-top: var(--s-3); }
.articles-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--s-6); }
.articles-head .page-title { margin: var(--s-3) 0 0; }
.articles-head__intro { margin: 0; color: var(--c-text); }

.theme-chips {
	display: flex;
	gap: var(--s-2);
	margin-top: 6px;
	overflow-x: auto;
	scrollbar-width: none;
	margin-inline: calc(-1 * var(--gutter));
	padding-inline: var(--gutter);
}
.theme-chips::-webkit-scrollbar { display: none; }
.theme-chip {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 40px;
	padding: 0 16px;
	border: 1px solid var(--c-border);
	border-radius: var(--r-pill);
	background: #fff;
	color: var(--c-dark);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}
.theme-chip small { font-size: 14px; color: var(--c-muted); }
.theme-chip:hover { border-color: var(--c-navy); }
/* Actieve staat = navy (besluit "navy alleen voor kleine actieve staten"). */
.theme-chip.is-active { border-color: var(--c-navy); background: var(--c-navy); color: #fff; }
.theme-chip.is-active small { color: var(--c-blue); }

@media (min-width: 1024px) {
	.articles-page { padding-top: var(--s-8); }
	.theme-chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
}

/* Kaart */
.article-card__link { display: flex; flex-direction: column; gap: 8px; color: var(--c-ink); text-decoration: none; }
.article-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r-md); background: var(--c-placeholder); }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; }
.article-card__body { display: flex; flex-direction: column; gap: 4px; }
.article-card__kicker { font-size: 14px; line-height: 18px; color: var(--c-muted); }
.article-card__title { font-size: 15px; line-height: 1.3; font-weight: 500; }
@media (hover: hover) {
	.article-card__link:hover .article-card__title { color: var(--c-navy); text-decoration: underline; text-underline-offset: 3px; }
}
.article-card__link:focus-visible { outline: none; }
.article-card__link:focus-visible .article-card__media { outline: 2px solid var(--c-navy); outline-offset: 2px; }

@media (min-width: 1024px) {
	.article-card__title { font-size: 17px; }
}

.article-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--s-6) var(--s-3);
}
@media (min-width: 1024px) {
	.article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-8) var(--s-6); }
}

.articles-pagination { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: var(--s-8) 0; }
.articles-pagination .pagination { margin: 0; }
.articles-pagination__count { margin: 0; font-size: 14px; color: var(--c-muted); }
.articles-newsletter { margin-top: var(--s-8); }

/* ---------- Artikelpagina ---------- */
.article-photo {
	align-self: stretch;
	margin: 6px -4px 0 !important;
	aspect-ratio: 750 / 522; /* terugval; echte verhouding inline */
	overflow: hidden;
	border-radius: var(--r-lg);
	background: var(--c-placeholder);
}
.article-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) {
	.article-photo { margin: 6px 0 0 !important; }
}

.toc {
	align-self: stretch;
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 8px !important;
	padding: 18px 20px;
	border-radius: 16px;
	background: var(--c-soft);
}
.toc__title { margin: 0; font-size: 15px; font-weight: 700; color: var(--c-ink); }
.toc ol { display: flex; flex-direction: column; gap: 4px; margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.55; }
.toc a { color: var(--c-link); font-weight: 700; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.single-article .entry-content :is(h2, h3) { scroll-margin-top: var(--s-4); }

.more-articles { display: flex; flex-direction: column; gap: 16px; margin-top: 40px; }
.more-articles__title { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 700; }
.article-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-grid--3 > :nth-child(3) { display: none; }
@media (min-width: 600px) {
	.article-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
	.article-grid--3 > :nth-child(3) { display: block; }
}

/* ---------- Lijstartikelen: roundup-kaarten (inc/roundup.php, voorstel Quint 3 okt) ---------- */
.entry-content > .roundup-toc,
.entry-content > .roundup-card { margin: 0 0 24px; }
.entry-content > .roundup-toc { margin-top: 8px; }

/* Overzicht "In dit lijstje" */
.roundup-toc {
	padding: 18px 16px;
	border-radius: 20px;
	background: var(--c-soft);
}
.roundup-toc__title { margin: 0 0 10px; font-size: 17px; line-height: 1.3; font-weight: 700; color: var(--c-ink); }
.roundup-toc__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 4px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.roundup-toc__list li { margin: 0; }
.entry-content .roundup-toc__list a {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 64px;
	padding: 4px 0;
	color: var(--c-ink);
	font-size: 15px;
	line-height: 1.35;
	font-weight: 600;
	text-decoration: none;
}
.entry-content .roundup-toc__list a:hover .roundup-toc__text { text-decoration: underline; text-underline-offset: 3px; }
.roundup-toc__num {
	flex-shrink: 0;
	width: 24px;
	font-size: 15px;
	font-weight: 700;
	color: var(--c-navy);
	text-align: right;
}
.entry-content .roundup-toc__img {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	border-radius: 10px;
	object-fit: cover;
	background: var(--c-placeholder);
}
@media (min-width: 768px) {
	.roundup-toc { padding: 20px 24px; }
	.roundup-toc__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Kaart */
.roundup-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	padding: 16px;
	border-radius: 20px;
	background: #f7f8fa;
	scroll-margin-top: var(--s-4);
}
.roundup-card__head { display: flex; align-items: flex-start; gap: 12px; }
.roundup-card__num {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--c-navy);
	color: #fff;
	font-family: var(--f-sans);
	font-size: 16px;
	line-height: 1;
	font-weight: 700;
}
.entry-content .roundup-card__title {
	margin: 0;
	padding-top: 4px;
	font-family: var(--f-sans);
	font-size: 19px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: normal;
	text-transform: none;
	color: var(--c-ink);
}
.entry-content .roundup-card__title :is(a, strong) { color: inherit; font-weight: inherit; }
.entry-content .roundup-card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }

.roundup-card__media {
	width: 100%;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: 14px;
	background: var(--c-placeholder);
}
.roundup-card__media a { display: block; height: 100%; }
.entry-content .roundup-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: 0;
	object-fit: cover;
}

.roundup-card__facts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 0;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
	line-height: 1.4;
	color: #444;
}
.roundup-card__facts li { display: inline-flex; align-items: center; gap: 5px; margin: 0; }
.roundup-card__facts li + li::before { content: "·"; margin: 0 8px; color: var(--c-muted); }
.roundup-card__facts svg { color: var(--c-muted); }
.roundup-card__star { color: var(--c-star); }

.roundup-card__text { width: 100%; }
.roundup-card__text > :where(p, ul, ol) { margin: 0 0 1em; }
.roundup-card__text > :last-child { margin-bottom: 0; }
.roundup-card__text img { max-width: 100%; height: auto; }

.entry-content .roundup-card__btn { min-height: 44px; color: var(--c-navy); font-weight: 700; text-decoration: none; }
.entry-content .roundup-card__btn:hover { text-decoration: none; }

@media (min-width: 768px) {
	.roundup-card { padding: 24px; }
	.entry-content .roundup-card__title { font-size: 22px; padding-top: 2px; }
}

/* AdPushup-ankers (lege alinea's na kaart 3): nemen geen ruimte in. */
.entry-content > p.lcc-ad-anchor { height: 0; margin: 0; }
