/*
 * Bobbies Pool Engine — WordPress berichten
 * v1.1.55
 *
 * Alleen styling: inhoud, links en WordPress-query blijven ongemoeid.
 */

:root {
	--bpe-post-accent: #ff0000;
	--bpe-post-card: #192536;
	--bpe-post-card-inner: #111c29;
	--bpe-post-border: #2e3d50;
	--bpe-post-text: #f3f6fa;
	--bpe-post-muted: #9eabba;
}

/* =========================================================
   ARCHIEF / BERICHTENOVERZICHT
   ========================================================= */

/* Common Kadence, Blocksy and core WP post grids. */
body.blog main .content-wrap,
body.archive main .content-wrap,
body.blog .site-main,
body.archive .site-main {
	--bpe-card-gap: 24px;
}

/* Kadence archive grids */
body.blog .site-main > .content-wrap,
body.archive .site-main > .content-wrap,
body.blog .grid-cols,
body.archive .grid-cols {
	gap: var(--bpe-card-gap) !important;
}

/* The individual article/post containers become Bobbies cards. */
body.blog article.entry,
body.archive article.entry,
body.blog article.post,
body.archive article.post,
body.blog .wp-block-post,
body.archive .wp-block-post {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--bpe-post-border) !important;
	border-radius: 16px !important;
	background:
		linear-gradient(145deg, color-mix(in srgb, var(--bpe-post-accent) 4%, transparent), transparent 42%),
		var(--bpe-post-card) !important;
	box-shadow: 0 10px 26px rgba(0,0,0,.10);
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

body.blog article.entry:hover,
body.archive article.entry:hover,
body.blog article.post:hover,
body.archive article.post:hover,
body.blog .wp-block-post:hover,
body.archive .wp-block-post:hover {
	transform: translateY(-2px);
	border-color: color-mix(in srgb, var(--bpe-post-accent) 52%, var(--bpe-post-border)) !important;
	box-shadow: 0 14px 32px rgba(0,0,0,.16);
}

/* Thin Bobbies accent instead of a heavy coloured header. */
body.blog article.entry::before,
body.archive article.entry::before,
body.blog article.post::before,
body.archive article.post::before,
body.blog .wp-block-post::before,
body.archive .wp-block-post::before {
	content: "";
	position: absolute;
	top: 0;
	left: 20px;
	width: 58px;
	height: 3px;
	border-radius: 0 0 4px 4px;
	background: var(--bpe-post-accent);
	z-index: 2;
}

/* Give common theme content wrappers consistent card spacing. */
body.blog article.entry .entry-content-wrap,
body.archive article.entry .entry-content-wrap,
body.blog article.post .entry-content-wrap,
body.archive article.post .entry-content-wrap,
body.blog article.entry .entry-wrapper,
body.archive article.entry .entry-wrapper,
body.blog .wp-block-post > * {
	box-sizing: border-box;
}

body.blog article.entry .entry-content-wrap,
body.archive article.entry .entry-content-wrap,
body.blog article.post .entry-content-wrap,
body.archive article.post .entry-content-wrap {
	padding: 26px 26px 24px !important;
}

/* Category = small accent label. */
body.blog article .entry-taxonomies,
body.archive article .entry-taxonomies,
body.blog article .cat-links,
body.archive article .cat-links,
body.blog .wp-block-post-terms,
body.archive .wp-block-post-terms {
	margin: 0 0 9px !important;
	color: var(--bpe-post-accent) !important;
	font-size: 11px !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	letter-spacing: .055em !important;
	text-transform: uppercase !important;
}

body.blog article .entry-taxonomies a,
body.archive article .entry-taxonomies a,
body.blog article .cat-links a,
body.archive article .cat-links a,
body.blog .wp-block-post-terms a,
body.archive .wp-block-post-terms a {
	color: var(--bpe-post-accent) !important;
	text-decoration: none !important;
}

/* Titles: compact, strong and consistent. */
body.blog article .entry-title,
body.archive article .entry-title,
body.blog .wp-block-post-title,
body.archive .wp-block-post-title {
	margin: 0 0 10px !important;
	font-size: clamp(21px, 2vw, 27px) !important;
	line-height: 1.15 !important;
	font-weight: 850 !important;
	letter-spacing: -.018em !important;
}

body.blog article .entry-title a,
body.archive article .entry-title a,
body.blog .wp-block-post-title a,
body.archive .wp-block-post-title a {
	color: var(--bpe-post-text) !important;
	text-decoration: none !important;
}

/* Metadata: one quiet line. */
body.blog article .entry-meta,
body.archive article .entry-meta,
body.blog .wp-block-post-date,
body.archive .wp-block-post-date,
body.blog .wp-block-post-author,
body.archive .wp-block-post-author {
	color: var(--bpe-post-muted) !important;
	font-size: 12px !important;
	line-height: 1.45 !important;
}

body.blog article .entry-meta a,
body.archive article .entry-meta a {
	color: inherit !important;
	text-decoration: none !important;
}

/* Excerpt/body in cards. */
body.blog article .entry-summary,
body.archive article .entry-summary,
body.blog article .entry-content,
body.archive article .entry-content,
body.blog .wp-block-post-excerpt,
body.archive .wp-block-post-excerpt {
	color: color-mix(in srgb, var(--bpe-post-text) 88%, transparent) !important;
	line-height: 1.62 !important;
}

/* WordPress/Kadence read-more link: button-like link, not a large button. */
body.blog article .more-link,
body.archive article .more-link,
body.blog article .post-more-link,
body.archive article .post-more-link,
body.blog .wp-block-post-excerpt__more-link,
body.archive .wp-block-post-excerpt__more-link {
	display: inline-flex !important;
	align-items: center !important;
	gap: 5px !important;
	margin-top: 9px !important;
	color: var(--bpe-post-accent) !important;
	font-weight: 800 !important;
	text-decoration: none !important;
}

body.blog article .more-link::after,
body.archive article .more-link::after,
body.blog article .post-more-link::after,
body.archive article .post-more-link::after,
body.blog .wp-block-post-excerpt__more-link::after,
body.archive .wp-block-post-excerpt__more-link::after {
	content: "→";
	transition: transform .16s ease;
}

body.blog article .more-link:hover::after,
body.archive article .more-link:hover::after,
body.blog article .post-more-link:hover::after,
body.archive article .post-more-link:hover::after,
body.blog .wp-block-post-excerpt__more-link:hover::after,
body.archive .wp-block-post-excerpt__more-link:hover::after {
	transform: translateX(3px);
}

/* =========================================================
   INDIVIDUEEL BERICHT
   ========================================================= */

body.single-post article.entry,
body.single-post article.post {
	background: transparent !important;
}

/* Header remains restrained: article text should stay the focus. */
body.single-post article .entry-header,
body.single-post .post .entry-header {
	position: relative;
	margin-bottom: 28px !important;
	padding-bottom: 20px !important;
	border-bottom: 1px solid var(--bpe-post-border) !important;
}

body.single-post article .entry-header::after,
body.single-post .post .entry-header::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 62px;
	height: 3px;
	border-radius: 3px;
	background: var(--bpe-post-accent);
}

body.single-post article .entry-taxonomies,
body.single-post article .cat-links {
	color: var(--bpe-post-accent) !important;
	font-size: 11px !important;
	font-weight: 850 !important;
	letter-spacing: .06em !important;
	text-transform: uppercase !important;
}

body.single-post article .entry-taxonomies a,
body.single-post article .cat-links a {
	color: var(--bpe-post-accent) !important;
	text-decoration: none !important;
}

body.single-post article .entry-title {
	margin-top: 7px !important;
	margin-bottom: 10px !important;
	font-weight: 900 !important;
	line-height: 1.12 !important;
	letter-spacing: -.025em !important;
}

body.single-post article .entry-meta {
	color: var(--bpe-post-muted) !important;
	font-size: 12px !important;
}

body.single-post article .entry-meta a {
	color: inherit !important;
	text-decoration: none !important;
}

/* Preserve generous reading rhythm; no card around every paragraph. */
body.single-post article .entry-content {
	line-height: 1.68 !important;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {
	body.blog article.entry .entry-content-wrap,
	body.archive article.entry .entry-content-wrap,
	body.blog article.post .entry-content-wrap,
	body.archive article.post .entry-content-wrap {
		padding: 22px 18px 20px !important;
	}

	body.blog article.entry::before,
	body.archive article.entry::before,
	body.blog article.post::before,
	body.archive article.post::before,
	body.blog .wp-block-post::before,
	body.archive .wp-block-post::before {
		left: 18px;
		width: 48px;
	}

	body.blog article .entry-title,
	body.archive article .entry-title,
	body.blog .wp-block-post-title,
	body.archive .wp-block-post-title {
		font-size: 21px !important;
	}

	body.single-post article .entry-header,
	body.single-post .post .entry-header {
		margin-bottom: 22px !important;
		padding-bottom: 17px !important;
	}
}

/* Browsers without color-mix(): solid, safe fallback. */
@supports not (color: color-mix(in srgb, white 50%, black)) {
	body.blog article.entry,
	body.archive article.entry,
	body.blog article.post,
	body.archive article.post,
	body.blog .wp-block-post,
	body.archive .wp-block-post {
		background: var(--bpe-post-card) !important;
	}
}


/* =========================================================
   1.1.56 — Query Loop / statische berichtenpagina's
   De Statler & Waldorf pagina is geen blog/archive template maar
   een gewone WordPress-pagina met een Query Loop. Daarom expliciet
   de core Query Loop markup stylen.
   ========================================================= */

body.page .wp-block-query .wp-block-post-template {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 24px !important;
	margin: 28px 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

body.page .wp-block-query .wp-block-post {
	position: relative !important;
	display: flex !important;
	flex-direction: column !important;
	min-width: 0 !important;
	padding: 24px !important;
	margin: 0 !important;
	border: 1px solid var(--bpe-post-border) !important;
	border-radius: 16px !important;
	background:
		linear-gradient(145deg, color-mix(in srgb, var(--bpe-post-accent) 4%, transparent), transparent 42%),
		var(--bpe-post-card) !important;
	box-shadow: 0 10px 26px rgba(0,0,0,.10) !important;
	overflow: hidden !important;
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}

body.page .wp-block-query .wp-block-post::before {
	content: "" !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 2px !important;
	border-radius: 0 0 4px 4px !important;
	background: var(--bpe-post-accent) !important;
}

body.page .wp-block-query .wp-block-post:hover {
	transform: translateY(-2px) !important;
	border-color: color-mix(in srgb, var(--bpe-post-accent) 52%, var(--bpe-post-border)) !important;
	box-shadow: 0 14px 32px rgba(0,0,0,.16) !important;
}

body.page .wp-block-query .wp-block-post-title {
	margin: 0 0 10px !important;
	font-size: clamp(21px,2vw,27px) !important;
	line-height: 1.15 !important;
	font-weight: 850 !important;
	letter-spacing: -.018em !important;
}

body.page .wp-block-query .wp-block-post-title a {
	color: var(--bpe-post-text) !important;
	text-decoration: none !important;
}

body.page .wp-block-query .wp-block-post-terms,
body.page .wp-block-query .wp-block-post-terms a {
	color: var(--bpe-post-accent) !important;
	font-size: 11px !important;
	font-weight: 850 !important;
	line-height: 1.2 !important;
	letter-spacing: .055em !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
}

body.page .wp-block-query .wp-block-post-date,
body.page .wp-block-query .wp-block-post-author,
body.page .wp-block-query .wp-block-comments-query-loop,
body.page .wp-block-query .wp-block-post-comments-count {
	color: var(--bpe-post-muted) !important;
	font-size: 12px !important;
	line-height: 1.45 !important;
}

body.page .wp-block-query .wp-block-post-excerpt {
	margin-top: 14px !important;
	color: color-mix(in srgb, var(--bpe-post-text) 88%, transparent) !important;
	line-height: 1.62 !important;
}

body.page .wp-block-query .wp-block-post-excerpt__excerpt {
	display: -webkit-box !important;
	-webkit-box-orient: vertical !important;
	-webkit-line-clamp: 5 !important;
	overflow: hidden !important;
}

body.page .wp-block-query .wp-block-post-excerpt__more-link,
body.page .wp-block-query .wp-block-read-more {
	display: inline-flex !important;
	align-items: center !important;
	gap: 5px !important;
	margin-top: 10px !important;
	color: var(--bpe-post-accent) !important;
	font-weight: 800 !important;
	text-decoration: none !important;
}

body.page .wp-block-query .wp-block-post-excerpt__more-link::after,
body.page .wp-block-query .wp-block-read-more::after {
	content: "→" !important;
	transition: transform .16s ease !important;
}

body.page .wp-block-query .wp-block-post-excerpt__more-link:hover::after,
body.page .wp-block-query .wp-block-read-more:hover::after {
	transform: translateX(3px) !important;
}

/* If the page uses Kadence Posts / Advanced Query instead of core Query Loop. */
body.page .kt-blocks-post-grid-item,
body.page .kb-posts-style-unboxed article,
body.page .kb-query-loop-wrap article {
	position: relative !important;
	border: 1px solid var(--bpe-post-border) !important;
	border-radius: 16px !important;
	background: var(--bpe-post-card) !important;
	overflow: hidden !important;
	box-shadow: 0 10px 26px rgba(0,0,0,.10) !important;
}

body.page .kt-blocks-post-grid-item::before,
body.page .kb-posts-style-unboxed article::before,
body.page .kb-query-loop-wrap article::before {
	content: "" !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 2px !important;
	background: var(--bpe-post-accent) !important;
	border-radius: 0 0 4px 4px !important;
	z-index: 2 !important;
}

@media (max-width: 767px) {
	body.page .wp-block-query .wp-block-post-template {
		grid-template-columns: 1fr !important;
		gap: 16px !important;
	}
	body.page .wp-block-query .wp-block-post {
		padding: 20px 18px !important;
	}
}


/* =========================================================
   1.1.57 — Statler & Waldorf: markup-onafhankelijke post cards
   ========================================================= */

body.bpe-statler-page .bpe-detected-post-grid {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 22px !important;
	align-items: stretch !important;
}

body.bpe-statler-page .bpe-detected-post-card {
	position: relative !important;
	box-sizing: border-box !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 24px !important;
	border: 1px solid var(--bpe-post-border) !important;
	border-radius: 16px !important;
	background: #172333 !important;
	box-shadow: 0 10px 28px rgba(0,0,0,.12) !important;
	overflow: hidden !important;
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}

body.bpe-statler-page .bpe-detected-post-card::before {
	content: "" !important;
	position: absolute !important;
	left: 22px !important;
	top: 0 !important;
	width: 56px !important;
	height: 3px !important;
	border-radius: 0 0 4px 4px !important;
	background: var(--bpe-post-accent) !important;
}

body.bpe-statler-page .bpe-detected-post-card:hover {
	transform: translateY(-2px) !important;
	border-color: var(--bpe-post-accent) !important;
	box-shadow: 0 14px 34px rgba(0,0,0,.18) !important;
}

body.bpe-statler-page .bpe-detected-post-title {
	margin-top: 0 !important;
	margin-bottom: 9px !important;
	font-size: clamp(21px,2vw,27px) !important;
	line-height: 1.15 !important;
	font-weight: 850 !important;
	letter-spacing: -.018em !important;
}

body.bpe-statler-page .bpe-detected-post-title a {
	color: var(--bpe-post-text) !important;
	text-decoration: none !important;
}

body.bpe-statler-page .bpe-detected-post-card .entry-meta,
body.bpe-statler-page .bpe-detected-post-card .post-meta,
body.bpe-statler-page .bpe-detected-post-card .wp-block-post-date,
body.bpe-statler-page .bpe-detected-post-card .wp-block-post-author,
body.bpe-statler-page .bpe-detected-post-card [class*="meta"] {
	color: var(--bpe-post-muted) !important;
	font-size: 12px !important;
}

body.bpe-statler-page .bpe-detected-post-card .entry-taxonomies,
body.bpe-statler-page .bpe-detected-post-card .cat-links,
body.bpe-statler-page .bpe-detected-post-card .wp-block-post-terms {
	color: var(--bpe-post-accent) !important;
	font-size: 11px !important;
	font-weight: 800 !important;
	letter-spacing: .05em !important;
	text-transform: uppercase !important;
}

body.bpe-statler-page .bpe-detected-post-card .entry-taxonomies a,
body.bpe-statler-page .bpe-detected-post-card .cat-links a,
body.bpe-statler-page .bpe-detected-post-card .wp-block-post-terms a {
	color: var(--bpe-post-accent) !important;
	text-decoration: none !important;
}

body.bpe-statler-page .bpe-detected-post-card p {
	line-height: 1.58 !important;
}

body.bpe-statler-page .bpe-detected-read-more {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	margin-top: 8px !important;
	color: var(--bpe-post-accent) !important;
	font-weight: 800 !important;
	text-decoration: none !important;
}

body.bpe-statler-page .bpe-detected-read-more::after {
	content: "→" !important;
}

@media (max-width: 767px) {
	body.bpe-statler-page .bpe-detected-post-grid {
		grid-template-columns: 1fr !important;
		gap: 16px !important;
	}
	body.bpe-statler-page .bpe-detected-post-card {
		padding: 20px 18px !important;
	}
}


/* =========================================================
   1.1.59 — Statler & Waldorf structurele layout
   De Bobbies-grid bezit zelf de kolombreedtes; de theme/query
   bepaalt uitsluitend welke berichten worden aangeleverd.
   ========================================================= */

body.bpe-statler-page .bpe-statler-owned-grid {
	box-sizing: border-box !important;
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 24px !important;
	width: 100% !important;
	max-width: 1150px !important;
	margin: 28px auto 0 !important;
	padding: 0 !important;
	align-items: stretch !important;
	clear: both !important;
}

body.bpe-statler-page .bpe-statler-owned-grid > .bpe-detected-post-card {
	position: relative !important;
	box-sizing: border-box !important;
	display: flex !important;
	flex-direction: column !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 26px 28px 24px !important;
	border: 1px solid var(--bpe-post-border) !important;
	border-radius: 16px !important;
	background: var(--bpe-post-card) !important;
	box-shadow: 0 10px 28px rgba(0,0,0,.12) !important;
	overflow: hidden !important;
	float: none !important;
	flex-basis: auto !important;
}

body.bpe-statler-page .bpe-statler-owned-grid > .bpe-detected-post-card::before {
	content: "" !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 2px !important;
	background: var(--bpe-post-accent) !important;
	border-radius: 0 0 4px 4px !important;
}

body.bpe-statler-page .bpe-statler-owned-grid .bpe-detected-post-title {
	margin: 6px 0 10px !important;
	font-size: clamp(21px, 1.7vw, 26px) !important;
	line-height: 1.18 !important;
	font-weight: 850 !important;
	letter-spacing: -.015em !important;
	overflow-wrap: normal !important;
	word-break: normal !important;
	hyphens: none !important;
}

body.bpe-statler-page .bpe-statler-owned-grid .bpe-detected-post-title a {
	color: var(--bpe-post-text) !important;
	text-decoration: none !important;
}

body.bpe-statler-page .bpe-statler-owned-grid .entry-meta,
body.bpe-statler-page .bpe-statler-owned-grid .post-meta,
body.bpe-statler-page .bpe-statler-owned-grid .wp-block-post-date,
body.bpe-statler-page .bpe-statler-owned-grid .wp-block-post-author,
body.bpe-statler-page .bpe-statler-owned-grid [class*="meta"] {
	color: var(--bpe-post-muted) !important;
	font-size: 12px !important;
	line-height: 1.45 !important;
}

body.bpe-statler-page .bpe-statler-owned-grid .entry-taxonomies,
body.bpe-statler-page .bpe-statler-owned-grid .cat-links,
body.bpe-statler-page .bpe-statler-owned-grid .wp-block-post-terms {
	color: var(--bpe-post-accent) !important;
	font-size: 11px !important;
	font-weight: 800 !important;
	letter-spacing: .04em !important;
	text-transform: uppercase !important;
}

body.bpe-statler-page .bpe-statler-owned-grid .entry-taxonomies a,
body.bpe-statler-page .bpe-statler-owned-grid .cat-links a,
body.bpe-statler-page .bpe-statler-owned-grid .wp-block-post-terms a {
	color: var(--bpe-post-accent) !important;
	text-decoration: none !important;
}

body.bpe-statler-page .bpe-statler-owned-grid p {
	line-height: 1.56 !important;
}

body.bpe-statler-page .bpe-statler-owned-grid .bpe-detected-read-more {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	margin-top: auto !important;
	padding-top: 12px !important;
	color: var(--bpe-post-accent) !important;
	font-weight: 800 !important;
	text-decoration: none !important;
}

body.bpe-statler-page .bpe-statler-owned-grid .bpe-detected-read-more::after {
	content: "→" !important;
}

/* Tablet: breedte gaat vóór het vasthouden aan twee kolommen. */
@media (max-width: 900px) {
	body.bpe-statler-page .bpe-statler-owned-grid {
		grid-template-columns: 1fr !important;
		max-width: 720px !important;
		gap: 18px !important;
	}
}

/* Mobiel */
@media (max-width: 767px) {
	body.bpe-statler-page .bpe-statler-owned-grid {
		margin-top: 22px !important;
	}
	body.bpe-statler-page .bpe-statler-owned-grid > .bpe-detected-post-card {
		padding: 21px 19px 20px !important;
	}
	body.bpe-statler-page .bpe-statler-owned-grid > .bpe-detected-post-card::before {
		left: 19px !important;
		width: 48px !important;
	}
}


/* =========================================================
   1.1.60 — Enkel dagverslag als Bobbies-card
   Zelfde vormentaal als de berichtenkaarten:
   subtiel grijs kader + korte rondekleur-accentlijn.
   ========================================================= */

body.bpe-bobbies-single-post .site-main article,
body.bpe-bobbies-single-post main article,
body.bpe-bobbies-single-post article.single-entry,
body.bpe-bobbies-single-post article.entry {
	position: relative !important;
	box-sizing: border-box !important;
	max-width: 1120px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 42px 48px 46px !important;
	border: 1px solid var(--bpe-post-border) !important;
	border-radius: 16px !important;
	background: var(--bpe-post-card) !important;
	box-shadow: 0 10px 30px rgba(0,0,0,.12) !important;
	overflow: hidden !important;
}

/* Korte accentlijn bovenin, zoals bij de overzichtskaarten. */
body.bpe-bobbies-single-post .site-main article::before,
body.bpe-bobbies-single-post main article::before,
body.bpe-bobbies-single-post article.single-entry::before,
body.bpe-bobbies-single-post article.entry::before {
	content: "" !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 2px !important;
	border-radius: 0 0 4px 4px !important;
	background: var(--bpe-post-accent) !important;
	z-index: 2 !important;
}

/* Binnen de card mag de bestaande horizontale titelaccentlijn blijven. */
body.bpe-bobbies-single-post article .entry-header {
	margin-bottom: 30px !important;
}

/* Geen extra theme-schaduw/rand om geneste contentblokken. */
body.bpe-bobbies-single-post article .entry-content {
	background: transparent !important;
	box-shadow: none !important;
}

/* Tablet */
@media (max-width: 900px) {
	body.bpe-bobbies-single-post .site-main article,
	body.bpe-bobbies-single-post main article,
	body.bpe-bobbies-single-post article.single-entry,
	body.bpe-bobbies-single-post article.entry {
		padding: 34px 30px 38px !important;
		border-radius: 14px !important;
	}
	body.bpe-bobbies-single-post .site-main article::before,
	body.bpe-bobbies-single-post main article::before,
	body.bpe-bobbies-single-post article.single-entry::before,
	body.bpe-bobbies-single-post article.entry::before {
		left: 30px !important;
		width: 56px !important;
	}
}

/* Mobiel */
@media (max-width: 600px) {
	body.bpe-bobbies-single-post .site-main article,
	body.bpe-bobbies-single-post main article,
	body.bpe-bobbies-single-post article.single-entry,
	body.bpe-bobbies-single-post article.entry {
		padding: 27px 20px 30px !important;
		border-radius: 12px !important;
	}
	body.bpe-bobbies-single-post .site-main article::before,
	body.bpe-bobbies-single-post main article::before,
	body.bpe-bobbies-single-post article.single-entry::before,
	body.bpe-bobbies-single-post article.entry::before {
		left: 20px !important;
		width: 48px !important;
	}
}

/* 1.1.156 — Brede berichten en responsieve dagverslagtabellen. */
@media (min-width: 901px) {
 body.bpe-bobbies-single-post .content-bg,
 body.bpe-bobbies-single-post .site-main,
 body.bpe-bobbies-single-post .content-container,
 body.bpe-bobbies-single-post .site-container,
 body.bpe-bobbies-single-post .content-wrap {max-width: 1200px !important; width: 100%;}
 body.bpe-bobbies-single-post .site-main article,
 body.bpe-bobbies-single-post main article,
 body.bpe-bobbies-single-post article.single-entry,
 body.bpe-bobbies-single-post article.entry {max-width: 1120px !important;width:100% !important;}
}
body.bpe-bobbies-single-post article .entry-content,
body.bpe-bobbies-single-post article .entry-content-wrap {min-width:0 !important;max-width:100% !important;}
/* De tabel behoudt de originele inhoud; alleen visuele opmaak. */
body.bobbies-day-report article .entry-content table,
body.bobbies-day-report article .entry-content .wp-block-table table {
 width:100% !important; border-collapse:collapse !important; border-spacing:0 !important;
 background:var(--bpe-surface) !important;color:var(--bpe-text) !important;font-size:clamp(11px,1.15vw,14px) !important;
 margin:12px 0 18px !important;table-layout:auto !important;
}
body.bobbies-day-report article .entry-content table thead th {
 background:var(--bpe-table-head) !important;color:var(--bpe-table-head-text) !important;font-weight:800 !important;
 padding:11px 9px !important;border:0 !important;vertical-align:bottom !important;
}
body.bobbies-day-report article .entry-content table tbody td {
 padding:8px 9px !important;border:0 !important;vertical-align:middle !important;
 color:var(--bpe-text) !important;
}
body.bobbies-day-report article .entry-content table tbody tr:nth-child(odd) {background:var(--bpe-table-odd) !important;}
body.bobbies-day-report article .entry-content table tbody tr:nth-child(even) {background:var(--bpe-table-even) !important;}
body.bobbies-day-report article .entry-content table tbody tr:first-child td {font-weight:800 !important;}
body.bobbies-day-report article .entry-content table th:not(:first-child),
body.bobbies-day-report article .entry-content table td:not(:first-child) {font-variant-numeric:tabular-nums;}
body.bobbies-day-report article .entry-content .wp-block-table {max-width:100% !important;overflow-x:auto !important;-webkit-overflow-scrolling:touch;}
@media (max-width: 767px) {
 body.bpe-bobbies-single-post .site-main,
 body.bpe-bobbies-single-post article,
 body.bpe-bobbies-single-post article .entry-content {min-width:0 !important;max-width:100% !important;}
 body.bpe-bobbies-single-post .site-main article,
 body.bpe-bobbies-single-post main article,
 body.bpe-bobbies-single-post article.single-entry,
 body.bpe-bobbies-single-post article.entry {padding:22px 12px 26px !important;}
 body.bobbies-day-report article .entry-content .wp-block-table {width:100% !important;}
 body.bobbies-day-report article .entry-content table {font-size:11px !important;}
 body.bobbies-day-report article .entry-content table th,
 body.bobbies-day-report article .entry-content table td {padding:7px 5px !important;}
 /* Ook klassieke tabellen zonder Gutenberg-wrapper kunnen horizontaal worden gelezen. */
 body.bobbies-day-report article .entry-content {overflow-x:auto !important;-webkit-overflow-scrolling:touch;}
}

/* v1.1.157: archive cards must never render full report shortcodes/tables. */
body.blog article .entry-summary .bpe-daily-result,
body.archive article .entry-summary .bpe-daily-result,
body.blog article .entry-content .bpe-daily-result,
body.archive article .entry-content .bpe-daily-result,
body.page .wp-block-query .bpe-daily-result,
body.page .wp-block-query .bpe-final-result,
body.blog article .entry-content .bpe-final-result,
body.archive article .entry-content .bpe-final-result,
body.blog article .entry-summary table,
body.archive article .entry-summary table,
body.page .wp-block-query .wp-block-post-excerpt table { display:none !important; }

/* v1.1.162: same page-scoped fallback as TotaalKoers /reacties/.
   Covers Stackable Posts and native posts blocks; single reports are unaffected. */
body.bpe-statler-page .bpe-daily-result,
body.bpe-statler-page .bpe-final-result {
  display: none !important;
}

/* 1.1.181 — ook WordPress-gegenereerde berichten volgen de centrale
   donker/licht-variabelen. Het bronbericht en de Query Loop blijven intact. */
html[data-bpe-theme] body.bpe-bobbies-single-post :is(.site-main article,article.single-entry,article.entry),
html[data-bpe-theme] body.bpe-statler-page .bpe-statler-owned-grid>.bpe-detected-post-card,
html[data-bpe-theme] body.page .wp-block-query .wp-block-post {
  background:var(--bpe-surface)!important;
  color:var(--bpe-text)!important;
  border:1px solid var(--bpe-border)!important;
  border-radius:12px!important;
  box-shadow:var(--bpe-shadow)!important;
}
html[data-bpe-theme] body.bpe-bobbies-single-post :is(.entry-header,.entry-title,.entry-content),
html[data-bpe-theme] body.bpe-statler-page .bpe-statler-owned-grid,
html[data-bpe-theme] body.page .wp-block-query .wp-block-post{
  color:var(--bpe-text)!important;
}
html[data-bpe-theme] body.bobbies-day-report article .entry-content .wp-block-table{
  border:1px solid var(--bpe-border)!important;
  border-top:2px solid var(--bpe-theme-accent)!important;
  border-radius:12px!important;
  overflow-x:auto!important;
  overflow-y:hidden;
}
html[data-bpe-theme] body.bobbies-day-report article .entry-content table{
  background:var(--bpe-surface)!important;
  color:var(--bpe-text)!important;
  border-collapse:separate!important;border-spacing:0!important;
}
html[data-bpe-theme] body.bobbies-day-report article .entry-content table thead th{
  background:var(--bpe-table-head)!important;
  color:var(--bpe-table-head-text)!important;
}
html[data-bpe-theme] body.bobbies-day-report article .entry-content table tbody td{
  color:var(--bpe-text)!important;
  border-bottom:1px solid var(--bpe-border)!important;
}
html[data-bpe-theme] body.bpe-report-archive :is(
  .kt-blocks-post-grid-item,.kb-posts-style-unboxed article,
  .kb-query-loop-wrap article){
  background:var(--bpe-surface)!important;
  color:var(--bpe-text)!important;
  border-color:var(--bpe-border)!important;
  border-radius:12px!important;
}
html[data-bpe-theme="light"] body.bpe-report-archive :is(
  .wp-block-post-terms a,.wp-block-read-more,.wp-block-post-excerpt__more-link){
  color:var(--bpe-accent-ink)!important;
}

/* 1.1.185: legacy short accent bars removed; use continuous card border. */
html[data-bpe-theme] body.bpe-report-archive :is(article.entry,article.post,.wp-block-post,.kt-blocks-post-grid-item,.kb-query-loop-wrap article)::before,
html[data-bpe-theme] body.bpe-bobbies-single-post :is(article.entry,article.post,article.single-entry)::before{content:none!important;display:none!important}


/* 1.1.186 — each individual stage in the Etappeverslagen overview is a card.
   Works with WordPress/Kadence markup identified by the existing read-more
   detection; no dependency on a particular block type. */
html[data-bpe-theme] body.bpe-report-archive .bpe-report-stage-card {
  position:relative!important;box-sizing:border-box!important;min-width:0!important;
  display:flex!important;flex-direction:column!important;
  padding:24px!important;margin:0!important;
  background:var(--bpe-surface)!important;color:var(--bpe-text)!important;
  border:1px solid var(--bpe-border)!important;
  border-top:2px solid var(--bpe-theme-accent)!important;
  border-radius:13px!important;box-shadow:var(--bpe-shadow)!important;
  overflow:hidden!important;
}
html[data-bpe-theme] body.bpe-report-archive .bpe-report-stage-card::before,
html[data-bpe-theme] body.bpe-report-archive .bpe-report-stage-card::after {
  content:none!important;display:none!important;
}
html[data-bpe-theme] body.bpe-report-archive .bpe-report-stage-card :is(h2,h3,.entry-title,.wp-block-post-title){
  color:var(--bpe-text)!important;margin-top:0!important;
}
html[data-bpe-theme] body.bpe-report-archive .bpe-report-stage-card :is(.entry-meta,.post-meta,.wp-block-post-date,.posted-on){
  color:var(--bpe-muted)!important;
}
html[data-bpe-theme] body.bpe-report-archive .bpe-report-stage-card a{color:var(--bpe-accent-ink)!important}
@media(max-width:650px){html[data-bpe-theme] body.bpe-report-archive .bpe-report-stage-card{padding:18px!important}}

/* 1.1.189 — readable spacing between stage-report cards in WordPress columns. */
html[data-bpe-theme] body.bpe-report-archive :is(.wp-block-columns,.wp-block-post-template,.wp-block-query ul,.kt-row-column-wrap,.kb-query-loop-wrap):has(.bpe-report-stage-card){
  column-gap:24px!important;
  row-gap:24px!important;
  gap:24px!important;
}
/* WordPress may set the gap on the immediate layout rather than the outer query. */
html[data-bpe-theme] body.bpe-report-archive :is(.wp-block-columns,.wp-block-post-template,.kt-row-column-wrap):has(> .bpe-report-stage-card){
  gap:24px!important;
}
html[data-bpe-theme] body.bpe-report-archive .bpe-report-stage-card{
  margin-block-end:24px!important;
}
@media(max-width:700px){
  html[data-bpe-theme] body.bpe-report-archive :is(.wp-block-columns,.wp-block-post-template,.kt-row-column-wrap):has(.bpe-report-stage-card){gap:16px!important}
  html[data-bpe-theme] body.bpe-report-archive .bpe-report-stage-card{margin-block-end:16px!important}
}

/* 1.1.192 — report titles use normal theme text; pool colour stays on accents. */
html[data-bpe-theme="dark"] body.bpe-report-archive .bpe-report-stage-card :is(h1,h2,h3,h4,.entry-title,.wp-block-post-title),
html[data-bpe-theme="dark"] body.bpe-report-archive .bpe-report-stage-card :is(h1,h2,h3,h4,.entry-title,.wp-block-post-title) a{color:#fff!important}
html[data-bpe-theme="light"] body.bpe-report-archive .bpe-report-stage-card :is(h1,h2,h3,h4,.entry-title,.wp-block-post-title),
html[data-bpe-theme="light"] body.bpe-report-archive .bpe-report-stage-card :is(h1,h2,h3,h4,.entry-title,.wp-block-post-title) a{color:var(--bpe-text)!important}

/* 1.1.194 — Single reports: one continuous pool-coloured top border.
   Replace the obsolete short underline below the title. */
html[data-bpe-theme] body.bpe-bobbies-single-post :is(.site-main article,main article,article.single-entry,article.entry){
  border-top:2px solid var(--bpe-theme-accent)!important;
}
html[data-bpe-theme] body.bpe-bobbies-single-post article .entry-header::after,
html[data-bpe-theme] body.bpe-bobbies-single-post .post .entry-header::after{
  content:none!important;display:none!important;
}
/* Also cover themes that don't set the data attribute on the html element. */
body.bpe-bobbies-single-post :is(.site-main article,main article,article.single-entry,article.entry){border-top:2px solid var(--bpe-post-accent)!important}
body.bpe-bobbies-single-post article .entry-header::after{content:none!important;display:none!important}

/* 1.1.195 — central edition shortcode layout. */
.bpe-edition{max-width:1160px;margin:0 auto 48px;color:var(--bpe-post-text,#fff)}
.bpe-edition-header{margin:0 0 28px;padding:24px 28px;background:var(--bpe-post-card,#25212c);border:1px solid var(--bpe-post-border,#49424f);border-top:2px solid var(--bpe-theme-accent,#ffe900);border-radius:13px}
.bpe-edition-eyebrow{display:block;font-size:12px;font-weight:800;letter-spacing:.06em;color:var(--bpe-theme-accent,#ffe900)}
.bpe-edition-header h1{font-size:clamp(25px,3vw,34px);margin:8px 0 0;color:var(--bpe-post-text,#fff)}
.bpe-edition-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.bpe-edition-card{min-width:0;display:flex;flex-direction:column;gap:0;padding:26px;background:var(--bpe-post-card,#25212c);border:1px solid var(--bpe-post-border,#49424f);border-top:2px solid var(--bpe-theme-accent,#ffe900);border-radius:14px}
.bpe-edition-category{font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--bpe-theme-accent,#ffe900);margin-bottom:10px}
.bpe-edition-card h2{font-size:clamp(19px,2vw,25px);line-height:1.2;margin:0 0 12px;color:var(--bpe-post-text,#fff)}
.bpe-edition-card h2 a{color:inherit!important;text-decoration:none!important}
.bpe-edition-meta{font-size:12px;color:var(--bpe-post-muted,#b4b1bd);margin-bottom:20px}
.bpe-edition-excerpt{font-size:15px;line-height:1.65;color:var(--bpe-post-text,#fff);margin-bottom:22px;overflow-wrap:anywhere}
.bpe-edition-more{margin-top:auto;font-size:14px;font-weight:800;color:var(--bpe-theme-accent,#ffe900)!important;text-decoration:none!important}
.bpe-edition-pages{display:flex;gap:9px;justify-content:center;margin-top:28px}.bpe-edition-pages a{padding:8px 13px;border:1px solid var(--bpe-post-border);border-radius:7px;color:var(--bpe-post-text)!important}.bpe-edition-pages a[aria-current]{background:var(--bpe-theme-accent);color:var(--bpe-on-accent,#111)!important}
html[data-bpe-theme="light"] .bpe-edition,body.bpe-light .bpe-edition{--bpe-post-text:#201b29;--bpe-post-card:#f5f1f6;--bpe-post-muted:#625b6c;--bpe-post-border:#d5cbd9}
@media(max-width:900px){.bpe-edition-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.bpe-edition-grid{grid-template-columns:1fr;gap:16px}.bpe-edition-card{padding:20px}}

/* 1.1.196 — Tour-only light posts; never affects other pools or dark mode. */
html[data-bpe-theme="light"] body.bpe-race-tour{--bpe-post-accent:#4E8098;--bpe-post-card:#F8FAFB;--bpe-post-card-inner:#EDF3F5;--bpe-post-border:#CAD5DC;--bpe-post-text:#202B36;--bpe-post-muted:#536473}
html[data-bpe-theme="light"] body.bpe-race-tour .bpe-edition :is(.bpe-edition-card,.bpe-edition-header){border-top-color:#4E8098!important}
html[data-bpe-theme="light"] body.bpe-race-tour .bpe-edition :is(.bpe-edition-category,.bpe-edition-eyebrow,.bpe-edition-more){color:#39677E!important}
