/* Engagement Netwerk
 * .snr = Related in Content, .snt = Trending in Nederland, .sne-live = gedeelde lezersregel.
 * Selectors zijn bewust dubbel (.snr.snr / .snt.snt) zodat JNews-contentstijlen
 * (.content-inner a, h2, h3, img, button) de blokken niet overschrijven. */

.snr.snr,
.snt.snt {
	--sne-accent: #D63035;
	--sne-ink: #14161B;
	--sne-muted: #6B7080;
	--sne-line: #E8E8EC;
	--sne-soft: #F4F4F6;
	--sne-soft-line: #E2E3E8;
	--sne-soft-ink: var(--sne-accent);
	--sne-card: #fff;
	box-sizing: border-box;
	font-family: inherit;
	text-align: left;
}

/* Lichte tinten afgeleid van de accentkleur van de site (instelling Accentkleur). */
@supports (color: color-mix(in srgb, red 50%, white)) {
	.snr.snr,
	.snt.snt {
		--sne-soft: color-mix(in srgb, var(--sne-accent) 9%, #fff);
		--sne-soft-line: color-mix(in srgb, var(--sne-accent) 28%, #fff);
		--sne-soft-ink: color-mix(in srgb, var(--sne-accent) 82%, #000);
	}
}

.snr.snr *,
.snt.snt * { box-sizing: border-box; }

/* ---------- Gedeelde lezersregel met knipperend bolletje ---------- */

.snr.snr .sne-live,
.snt.snt .sne-live {
	display: none;
	align-items: center;
	gap: 6px;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	color: var(--sne-muted);
	text-transform: none;
	letter-spacing: 0;
}

.snr.snr .sne-live.is-live,
.snt.snt .sne-live.is-live { display: inline-flex; }

.snr.snr .sne-dot,
.snt.snt .sne-dot {
	position: relative;
	width: 14px;
	height: 14px;
	flex: none;
	border-radius: 50%;
	background: var(--sne-halo, rgba(31, 165, 90, .16));
}

.snr.snr .sne-dot::after,
.snt.snt .sne-dot::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	margin: -4px 0 0 -4px;
	border-radius: 50%;
	background: var(--sne-dotc, #1FA55A);
	animation: snePulse 1.4s ease-in-out infinite;
}

.snr.snr .sne-text,
.snt.snt .sne-text { overflow: hidden; text-overflow: ellipsis; }

.snr.snr .sne-text strong,
.snt.snt .sne-text strong { color: var(--sne-ink); font-weight: 700; }

.sne-text.is-swap { animation: sneFade .35s ease-out; }

@keyframes snePulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: .35; transform: scale(.75); }
}

@keyframes sneFade {
	from { opacity: 0; transform: translateY(2px); }
	to { opacity: 1; transform: none; }
}

/* ======================================================================
 * Related in Content
 * ==================================================================== */

.snr.snr {
	display: flex;
	align-items: stretch;
	gap: 14px;
	margin: 24px 0;
	padding: 14px 16px;
	background: var(--sne-card);
	border: 1px solid var(--sne-line);
	border-left: 5px solid var(--sne-accent);
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(20, 22, 27, .04);
	clear: both;
	line-height: 1.3;
}

.snr.snr .snr__media {
	flex: 0 0 142px;
	width: 142px;
	height: 96px;
	align-self: flex-start;
	display: block;
	overflow: hidden;
	border-radius: 6px;
	background: #2B2F37;
	border: 0;
	box-shadow: none;
}

.snr.snr .snr__img,
.snt.snt img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	border-radius: 0;
}

.snr.snr .snr__body {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 96px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.snr.snr .snr__kicker {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--sne-accent);
}

.snr.snr a.snr__title,
.snr.snr a.snr__title:visited {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
	color: var(--sne-ink);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	border: 0;
	box-shadow: none;
	background: none;
}

.snr.snr a.snr__title:hover { color: var(--sne-accent); }

.snr.snr .snr__foot {
	margin-top: auto;
	padding-top: 6px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 38px;
}

.snr.snr .sne-live { font-size: 13px; }

.snr.snr a.snr__btn,
.snr.snr a.snr__btn:visited {
	flex: none;
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 32px;
	padding: 0 14px;
	border-radius: 6px;
	background: var(--sne-accent);
	border: 1px solid var(--sne-accent);
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 1px 2px rgba(20, 22, 27, .12);
	transition: filter .2s ease;
}

.snr.snr a.snr__btn:hover,
.snr.snr a.snr__btn:focus { filter: brightness(.92); color: #fff !important; }

.snr.snr a.snr__btn svg,
.snt.snt a.snt__btn svg { flex: none; width: 14px; height: 14px; transition: transform .2s ease; }

.snr.snr a.snr__btn:hover svg,
.snt.snt a.snt__btn:hover svg { transform: translateX(2px); }

.snr.snr.snr--noimg .snr__body { min-height: 0; }

@media (max-width: 600px) {
	.snr.snr {
		gap: 0;
		padding: 0;
		margin: 20px 0;
		overflow: hidden;
		border-left-width: 4px;
	}
	.snr.snr .snr__media {
		flex: 0 0 116px;
		width: 116px;
		height: auto;
		align-self: stretch;
		border-radius: 0;
	}
	.snr.snr .snr__body { min-height: 0; padding: 10px 12px; gap: 3px; }
	.snr.snr .snr__kicker { font-size: 12px; }
	.snr.snr a.snr__title,
	.snr.snr a.snr__title:visited { font-size: 16px; -webkit-line-clamp: 3; }
	.snr.snr .snr__foot { gap: 8px; padding-top: 6px; min-height: 34px; }
	.snr.snr .sne-live { font-size: 12px; }
	.snr.snr a.snr__btn,
	.snr.snr a.snr__btn:visited {
		height: 28px;
		padding: 0 11px;
		border-radius: 999px;
		background: #fff;
		color: var(--sne-accent) !important;
		font-size: 13px;
		box-shadow: none;
	}
	.snr.snr a.snr__btn:hover,
	.snr.snr a.snr__btn:focus { color: var(--sne-accent) !important; background: var(--sne-soft); filter: none; }
	.snr.snr a.snr__btn svg { width: 13px; height: 13px; }
}

/* ======================================================================
 * Trending in Nederland
 * ==================================================================== */

.snt.snt {
	container: snt / inline-size;
	clear: both;
	margin: 40px 0 28px;
	color: var(--sne-ink);
	line-height: 1.3;
}

.snt.snt .snt__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 20px;
	padding-bottom: 14px;
	margin-bottom: 16px;
	border-bottom: 1px solid var(--sne-line);
}

.snt.snt .snt__heading { display: flex; align-items: center; gap: 10px; min-width: 0; }

.snt.snt h2.snt__title {
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--sne-ink);
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.01em;
	text-transform: none;
}

.snt.snt h2.snt__title::before,
.snt.snt h2.snt__title::after { display: none; }

.snt.snt .snt__live {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 22px;
	padding: 0 9px;
	border-radius: 999px;
	background: #EAF7EF;
	border: 1px solid #BFE6CD;
	color: #157A41;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	line-height: 1;
}

.snt.snt .snt__livedot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #1FA55A;
	box-shadow: 0 0 0 3px rgba(31, 165, 90, .2);
	animation: snePulse 1.4s ease-in-out infinite;
}

.snt.snt .snt__tabs {
	display: flex;
	gap: 8px;
	max-width: 100%;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.snt.snt .snt__tabs::-webkit-scrollbar { display: none; }

.snt.snt button.snt__tab {
	flex: none;
	height: 34px;
	min-height: 0;
	margin: 0;
	padding: 0 15px;
	border-radius: 999px;
	border: 1px solid #DCDFE5;
	background: #fff;
	color: #4A5060;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.snt.snt button.snt__tab:hover { border-color: var(--sne-accent); color: var(--sne-soft-ink); background: #fff; }

.snt.snt button.snt__tab[aria-pressed="true"] {
	background: var(--sne-accent);
	border-color: var(--sne-accent);
	color: #fff !important;
}

.snt.snt button.snt__tab:focus-visible,
.snt.snt a:focus-visible,
.snr.snr a:focus-visible {
	outline: 2px solid var(--sne-accent);
	outline-offset: 2px;
}

.snt.snt .snt__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	transition: opacity .2s ease;
}

.snt.snt .snt__grid.is-loading { opacity: .45; }

.snt.snt .snt__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 2px 10px;
	font-size: 12px;
	line-height: 1.4;
	color: var(--sne-muted);
}

.snt.snt .snt__meta--caps .snt__src {
	text-transform: uppercase;
	letter-spacing: .06em;
}

/* Uitgelicht (#1) */
.snt.snt .snt__feat {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: var(--sne-card);
	border: 1px solid var(--sne-line);
	border-radius: 10px;
}

.snt.snt a.snt__fimg {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: #2B2F37;
	overflow: hidden;
	border: 0;
}

.snt.snt .snt__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 5px 9px;
	border-radius: 6px;
	background: rgba(20, 22, 27, .86);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
}

.snt.snt .snt__badge b { color: #fff; font-weight: 800; }
@supports (color: color-mix(in srgb, red 50%, white)) {
	.snt.snt .snt__badge b { color: color-mix(in srgb, var(--sne-accent) 45%, #fff); }
}

.snt.snt .snt__fbody {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px 16px 16px;
}

.snt.snt h3.snt__ftitle,
.snt.snt h3.snt__ititle {
	margin: 0;
	padding: 0;
	border: 0;
	font-weight: 800;
	letter-spacing: -.005em;
	text-transform: none;
}

.snt.snt h3.snt__ftitle { font-size: 21px; line-height: 1.22; }
.snt.snt h3.snt__ititle {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.28;
}

@container snt (max-width: 420px) {
	.snt.snt .snt__item a.snt__thumb { flex-basis: 100px; width: 100px; height: 72px; }
	.snt.snt article.snt__item { gap: 10px; }
}

.snt.snt h3 a,
.snt.snt h3 a:visited {
	color: var(--sne-ink);
	text-decoration: none;
	border: 0;
	box-shadow: none;
	background: none;
}

.snt.snt h3 a:hover { color: var(--sne-accent); }

.snt.snt a.snt__btn,
.snt.snt a.snt__btn:visited {
	margin-top: auto;
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 34px;
	padding: 0 14px;
	border-radius: 6px;
	background: var(--sne-accent);
	border: 1px solid var(--sne-accent);
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(20, 22, 27, .12);
	transition: filter .2s ease;
}

.snt.snt a.snt__btn:hover,
.snt.snt a.snt__btn:focus { filter: brightness(.92); color: #fff !important; }

/* Lijst (#2–#5) */
.snt.snt .snt__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-width: 0;
	padding: 10px;
	background: var(--sne-card);
	border: 1px solid var(--sne-line);
	border-radius: 10px;
}

.snt.snt a.snt__thumb {
	position: relative;
	flex: 0 0 116px;
	width: 116px;
	height: 80px;
	display: block;
	overflow: hidden;
	border-radius: 6px;
	background: #2B2F37;
	border: 0;
}

.snt.snt .snt__num {
	position: absolute;
	top: 6px;
	left: 6px;
	min-width: 22px;
	height: 22px;
	padding: 0 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 5px;
	background: rgba(20, 22, 27, .86);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.snt.snt .snt__ibody {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

/* Breed genoeg (desktop-contentkolom): #1 links, #2–#5 rechts. */
@container snt (min-width: 680px) {
	.snt.snt .snt__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
	.snt.snt .snt__feat { grid-row: span 4; }
	.snt.snt h3.snt__ftitle { font-size: 24px; }
	.snt.snt a.snt__thumb { flex-basis: 88px; width: 88px; height: 72px; }
	.snt.snt h3.snt__ititle { font-size: 15px; -webkit-line-clamp: 4; }
	.snt.snt h2.snt__title { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.snr.snr .sne-dot::after,
	.snt.snt .sne-dot::after,
	.snt.snt .snt__livedot,
	.sne-text.is-swap { animation: none; }
	.snr.snr a.snr__btn svg,
	.snt.snt a.snt__btn svg { transition: none; }
}

/* Donkere modus van JNews */
.jnews-dark-mode .snr.snr,
.jnews-dark-mode .snt.snt {
	--sne-ink: #F2F3F5;
	--sne-muted: #A9AEB9;
	--sne-line: #2C2F36;
	--sne-card: #1B1D22;
	--sne-soft: rgba(255, 255, 255, .06);
	--sne-soft-line: rgba(255, 255, 255, .18);
	--sne-soft-ink: #F2F3F5;
}
@supports (color: color-mix(in srgb, red 50%, white)) {
	.jnews-dark-mode .snr.snr,
	.jnews-dark-mode .snt.snt {
		--sne-soft: color-mix(in srgb, var(--sne-accent) 16%, transparent);
		--sne-soft-line: color-mix(in srgb, var(--sne-accent) 40%, transparent);
		--sne-soft-ink: color-mix(in srgb, var(--sne-accent) 55%, #fff);
	}
}
.jnews-dark-mode .snr.snr { box-shadow: none; }
.jnews-dark-mode .snt.snt .snt__live { background: rgba(31, 165, 90, .14); border-color: rgba(31, 165, 90, .4); color: #5FD08F; }
.jnews-dark-mode .snt.snt button.snt__tab { background: transparent; border-color: #3A3D45; color: #C9CDD4; }
.jnews-dark-mode .snt.snt button.snt__tab[aria-pressed="true"] { background: var(--sne-accent); border-color: var(--sne-accent); color: #fff; }
@media (max-width: 600px) {
	.jnews-dark-mode .snr.snr a.snr__btn { background: transparent; }
}

/* Netwerk: artikel van een partnersite, herkenbaar aan een klein pijltje achter de sitenaam. */
.snt.snt .snt__src--ext { font-weight: 700; }
.snt.snt .snt__src--ext::after {
	content: "";
	display: inline-block;
	width: .62em;
	height: .62em;
	margin-left: .32em;
	vertical-align: .04em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3 1h6v6M9 1 1 9' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3 1h6v6M9 1 1 9' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	opacity: .75;
}
