/**
 * Hoogeveen Schaaktoernooi — Drupal “Unive” lineage + migrated layout
 * Homepage shell, article hero + overlay, pages, tables, footer.
 */
:root {
	--hvc-primary: #0049ad;
	--hvc-primary-alt: #0054a6;
	--hvc-text: #212121;
	--hvc-muted: #7a7d80;
	--hvc-link-hover: #313030;
	--hvc-shell-bg: #ffffff;
	--hvc-panel: #f5f5f5;
	--hvc-nav-h: 48px;
	/* Drupal Unive .narrow / #content — main column */
	--hvc-shell-max: 970px;
	--hvc-hero-w: 970px;
	--hvc-hero-h: 369px;
	--hvc-hero-ratio: 970 / 369;
	/* Drupal .narrow-wrapper-text — desktop article gutters */
	--hvc-text-pad-left: 130px;
	--hvc-text-pad-right: 230px;
	--hvc-inset-shadow: inset 0 10px 28px -10px rgba(0, 0, 0, 0.35);
}

html {
	font-family: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	font-size: 100%;
	line-height: 1.5em;
	-ms-text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	overflow-x: hidden;
}

body {
	padding: 0;
	margin: 0;
	width: 100%;
	color: #111111;
	background: var(--hvc-shell-bg);
	font-family: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.55em;
	overflow-x: hidden;
}

body .wp-site-blocks {
	background: var(--hvc-shell-bg);
	min-height: 100vh;
}

/* Any .fullwidth inside the content shell — escape shell padding to reach the box edges.
   Modern equivalent of WP's alignfull but for arbitrary divs authored in the editor. */
.hvc-content-shell .fullwidth {
	width: calc(100% + 2 * var(--hvc-shell-pad-x)) !important;
	max-width: none !important;
	margin-left: calc(-1 * var(--hvc-shell-pad-x)) !important;
	margin-right: calc(-1 * var(--hvc-shell-pad-x)) !important;
	box-sizing: border-box;
}

/* narrow-wrapper-text: reset Drupal indentation — content now flows at the shell edge. */
.hvc-content-shell .narrow-wrapper-text {
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.narrow-wrapper-text .fullwidth {
	margin-left: calc(-1 * var(--hvc-shell-pad-x));
	margin-right: calc(-1 * var(--hvc-shell-pad-x));
	max-width: none !important;
	box-sizing: border-box;
}

/* Remove WP's automatic block-gap margin-block-start on all direct site-block children */
:where(.wp-site-blocks) > * {
	margin-block-start: 0;
}

/* Kill the is-layout-flow margin above each header sub-region */
.hvc-page-shell > *,
#langbar, #topbar, #menubar {
	margin-block-start: 0 !important;
}

/* Remove WP is-layout-flow margin inside template parts (header/footer/menubar parts) */
:where(.wp-block-template-part) :where(.is-layout-flow) > * {
	margin-block-start: 0;
}

/*
 * TT5 wraps the header template part in <header>: do NOT paint that wrapper blue —
 * only #menubar may use the primary blue strip (#langbar / #topbar stay white).
 */
.wp-site-blocks > header {
	background: transparent !important;
	box-shadow: none !important;
	min-height: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.wp-site-blocks > header p:empty {
	display: none !important;
}

/* ----- Global links ----- */
a {
	color: var(--hvc-primary);
	font-weight: 600;
	text-decoration: none;
}
a:hover {
	color: var(--hvc-link-hover);
	text-decoration: underline;
}

.entry-content a,
.wp-block-post-content a {
	text-decoration: underline;
}

/* ----- Drupal shell: #page → #langbar, #topbar, #menubar ----- */
.hvc-page-shell {
	max-width: none;
	padding: 0;
	margin: 0;
	background: transparent;
}

#langbar.hvc-langbar,
.region-langbar {
	background: #fff;
	border-bottom: none;
	padding: 3px clamp(1rem, 4vw, 2rem);
	max-width: var(--hvc-shell-max);
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

#langbar.hvc-langbar p {
	margin: 0;
	font-size: clamp(0.8rem, 2vw, 0.95rem);
	color: var(--hvc-text);
}

/* Gutenberg may emit empty wrappers around the shortcode output. */
#langbar p:empty,
.region-langbar p:empty,
.hvc-langbar-inner > p:empty {
	display: none !important;
}

.hvc-langbar-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem 1.5rem;
	width: 100%;
}

.hvc-langbar-dates {
	flex: 1 1 200px;
	min-width: 0;
}

.hvc-langbar-switcher {
	flex: 0 0 auto;
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
	font-size: clamp(0.78rem, 2vw, 0.9rem);
	white-space: nowrap;
	font-weight: 700;
}

.hvc-langbar-link {
	font-weight: 700;
	text-decoration: none;
}

.hvc-langbar-link:hover {
	text-decoration: underline;
}

.hvc-langbar-link--current {
	text-decoration: underline;
}

.hvc-langbar-sep {
	color: var(--hvc-muted);
	font-weight: 400;
	user-select: none;
}

#topbar.hvc-topbar,
.region-topbar {
	background: #fff;
	padding: 4px clamp(1rem, 4vw, 2rem) 5px;
	max-width: var(--hvc-shell-max);
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	border-bottom: none;
}

/* Two strict columns: [tournament logo] [hoogeveen + drenthe] — never wrap */
.hvc-topbar-logos {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
}

.hvc-topbar-logo-main {
	flex: 0 0 auto;
}

.hvc-topbar-logo-main img {
	max-height: 130px;
	width: auto;
	display: block;
}

/* Hoogeveen + Drenthe: stack vertically within their column */
.hvc-topbar-partners {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.4rem;
}

.hvc-topbar-partners img {
	max-height: 50px;
	width: auto;
	display: block;
}

.hvc-topbar-logos img {
	max-width: 100%;
	height: auto;
}

@media (max-width: 800px) {
	.hvc-topbar-logo-main img {
		min-height: 100px;
		max-height: 110px;
	}

	.hvc-topbar-partners img {
		max-height: 40px;
	}
}

@media (max-width: 500px) {
	.hvc-topbar-logo-main img {
		min-height: 100px;
		max-height: 100px;
	}

	.hvc-topbar-partners img {
		max-height: 32px;
	}
}

@media (max-width: 420px) {
	.hvc-topbar-logos {
		justify-content: center;
	}

	.hvc-topbar-partners {
		display: none;
	}
}

@media (max-width: 782px) {
	#langbar.hvc-langbar {
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 0.35rem;
	}

	.hvc-langbar-en .has-text-align-right {
		text-align: left !important;
	}
}

/* Page shell: sticky so header (lang-bar + top-bar + menubar) follows the user */
#page.hvc-page-shell {
	position: sticky;
	top: 0;
	z-index: 9999;
}

/* Blue menu strip (Drupal #menubar) — full-width background, content centered inside */
#menubar.hvc-menubar-strip,
.region-menu-bar.hvc-menubar-strip {
	background: var(--hvc-primary);
	box-shadow: var(--hvc-inset-shadow);
	min-height: var(--hvc-nav-h);
	max-width: none;
}

#menubar .alignwide {
	max-width: var(--hvc-shell-max) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-top: 6px;
	padding-left: clamp(0.75rem, 3vw, 1.25rem);
	padding-right: clamp(0.75rem, 3vw, 1.25rem);
}

.hvc-menubar-inner {
	width: 100%;
	min-width: 0;
}

/* Primary nav: left-aligned on wide screens, centered when wrapping */
#menubar .wp-block-navigation,
#menubar .wp-block-navigation .wp-block-navigation__container {
	justify-content: flex-start !important;
}

#menubar .wp-block-navigation .wp-block-page-list,
#menubar ul.wp-block-navigation__container {
	justify-content: flex-start !important;
	flex-wrap: wrap !important;
}

/* Under 1080px: remove side padding from nav strip, center items */
@media (max-width: 1080px) {
	#menubar .alignwide {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	#menubar .wp-block-navigation,
	#menubar .wp-block-navigation .wp-block-navigation__container,
	#menubar ul.wp-block-navigation__container {
		justify-content: center !important;
	}
}

/* Under 1000px: tighten vertical padding so wrapped rows aren't too tall */
@media (max-width: 1000px) {
	header .wp-block-navigation .wp-block-navigation-item__content,
	#menubar .wp-block-navigation .wp-block-navigation-item__content {
		padding-top: 0.4rem !important;
		padding-bottom: 0.4rem !important;
	}
}

header .wp-block-site-title a,
header .wp-block-navigation a,
header .wp-block-navigation-submenu a,
#menubar .wp-block-navigation a,
#menubar .wp-block-navigation-submenu a,
.wp-block-navigation__responsive-container-open {
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
	font-size: clamp(0.82rem, 2vw, 0.95rem);
}
header .wp-block-navigation a:hover,
#menubar .wp-block-navigation a:hover {
	color: #fff !important;
	text-decoration: underline !important;
}

/* Nav items: full height stretch so the entire cell is clickable */
#menubar .wp-block-navigation ul.wp-block-navigation__container > li,
#menubar .wp-block-navigation .wp-block-navigation-item {
	display: flex !important;
	align-items: stretch !important;
}

header .wp-block-navigation .wp-block-navigation-item__content,
#menubar .wp-block-navigation .wp-block-navigation-item__content {
	padding: 0.8rem 0.65rem;
	border-radius: 3px;
	transition: background 0.15s ease;
	display: flex !important;
	align-items: center;
	height: 100%;
	box-sizing: border-box;
}

/* Dropdown arrow: white and snug against the label */
#menubar .wp-block-navigation__submenu-icon svg {
	fill: #fff;
	color: #fff;
	margin-left: -6px;
}

/* Top-level item hover: highlight the entire li as one unit */
#menubar .wp-block-navigation-item:not(.wp-block-navigation__submenu-container *):hover,
#menubar .wp-block-navigation-item:not(.wp-block-navigation__submenu-container *):focus-within {
	background: rgba(255, 255, 255, 0.18) !important;
	border-radius: 3px;
}

/* Dropdown container: blue background (matching menubar) */
#menubar .wp-block-navigation__submenu-container {
	background: var(--hvc-primary) !important;
	border: none !important;
	border-top: 2px solid rgba(255, 255, 255, 0.35) !important;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35) !important;
	min-width: 190px;
	padding: 4px 0 !important;
	z-index: 99999;
}

/* Dropdown items: white text */
#menubar .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	color: #fff !important;
	font-weight: 700 !important;
	padding: 0.4rem 0.85rem !important;
	border-radius: 0 !important;
	display: block;
	white-space: nowrap;
}

/* Dropdown item hover */
#menubar .wp-block-navigation__submenu-container .wp-block-navigation-item:hover > .wp-block-navigation-item__content,
#menubar .wp-block-navigation__submenu-container .wp-block-navigation-item:focus-within > .wp-block-navigation-item__content {
	background: rgba(255, 255, 255, 0.2) !important;
	color: #fff !important;
	text-decoration: underline !important;
}

/* Remove click/focus outline on nav links */
#menubar .wp-block-navigation a:focus,
#menubar .wp-block-navigation a:focus-visible,
#menubar .wp-block-navigation button:focus,
#menubar .wp-block-navigation button:focus-visible,
#menubar .wp-block-navigation .wp-block-navigation-item__content:focus,
#menubar .wp-block-navigation .wp-block-navigation-item__content:focus-visible {
	outline: none !important;
	box-shadow: none !important;
}

/* ----- Main column + white “paper” shell ----- */
.hvc-main {
	width: 100%;
	padding-bottom: 2rem;
	background: #ebebeb;
}

.hvc-content-shell {
	--hvc-shell-pad-x: clamp(1rem, 4vw, 2rem);
	max-width: var(--hvc-shell-max) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	background: #fff;
	box-shadow: none;
	padding-left: var(--hvc-shell-pad-x) !important;
	padding-right: var(--hvc-shell-pad-x) !important;
	padding-top: 0 !important;
	padding-bottom: clamp(1.5rem, 3vw, 2.5rem) !important;
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
}

/* Prevent flex/grid children from collapsing to ~1 character width (WP block layout). */
.hvc-content-shell .wp-block-group,
.hvc-content-shell .wp-block-query,
.region-main {
	min-width: 0;
}

/* ----- Front page: Drupal .main-article / .sub-articles ----- */
.hvc-home-shell .region-main {
	width: 100%;
}

.main-article {
	margin-bottom: 1.25rem;
	width: 100%;
	min-width: 0;
}

.main-article .article-block {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	min-width: 0;
	box-shadow: none;
	border-top: none;
	background: #fff;
}

/* Front-page lead story: same hero stack as single (overlay strip). */
.hvc-home-shell .main-article .hvc-post-hero {
	width: 100%;
	min-width: 0;
}

.hvc-home-shell .main-article .wp-block-query.alignfull,
.hvc-home-shell .main-article .wp-block-post-template {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

/* Lead story query: one column, full width (not the sub-articles card grid). */
.hvc-home-shell .main-article .wp-block-post-template {
	display: block;
	list-style: none;
	padding: 0;
	margin: 0;
}

.hvc-home-shell .main-article .wp-block-post-template > li {
	width: 100%;
	max-width: 100%;
	margin: 0;
}

.hvc-home-shell .main-article .wp-block-post-content,
.hvc-home-shell .wp-block-post-content {
	max-width: 100%;
	min-width: 0;
	word-break: normal;
	overflow-wrap: break-word;
}

.main-article .article-block .wp-block-post-featured-image {
	margin: 0;
	aspect-ratio: var(--hvc-hero-ratio);
	overflow: hidden;
	max-height: var(--hvc-hero-h);
	background: #ddd;
}

.main-article .article-block .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Legacy stacked banner (sub-queries / old home template) */
.main-article .article-banner {
	padding: 10px min(var(--hvc-text-pad-right), 28vw) 10px min(var(--hvc-text-pad-left), 18vw);
	background: rgba(255, 255, 255, 0.92);
	border-bottom: none;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

@media (max-width: 782px) {
	.main-article .article-banner {
		padding: 10px 16px;
	}
}

.main-article .article-banner .wp-block-post-title,
.main-article .article-banner .wp-block-heading {
	margin: 0;
	font-size: 20px;
	line-height: 1.35;
	font-weight: bold;
	color: var(--hvc-primary);
	word-break: normal;
}

.main-article .article-banner .subtitle {
	margin-top: 0.25rem;
	font-size: 16px;
	line-height: 1.45;
	color: var(--hvc-muted);
	font-weight: 400;
}

.main-article .article-banner .subtitle p {
	margin: 0;
}

.sub-articles {
	margin-top: 0.35rem;
}

.sub-articles .wp-block-post-template.is-layout-grid {
	gap: 0.75rem;
}

.prominent-block {
	display: flex;
	flex-direction: column;
	box-shadow: none;
	border: 1px solid #d0d0d0;
	background: #fff;
	height: 100%;
	border-radius: 3px;
	overflow: hidden;
	transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.prominent-block:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

.prominent-block .wp-block-post-featured-image {
	margin: 0;
	aspect-ratio: var(--hvc-hero-ratio);
	overflow: hidden;
	max-height: 220px;
	background: #ddd;
}

.prominent-block .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.prominent-block .article-banner {
	padding: 8px 12px;
	flex: 1;
	border-bottom: 3px solid #0049AD;
}

.prominent-block .article-banner .wp-block-post-title {
	margin: 0;
	font-size: clamp(0.92rem, 2vw, 1.05rem);
	line-height: 1.35;
	font-weight: bold;
	color: var(--hvc-primary);
}

.prominent-block .subtitle {
	font-size: 0.88rem;
	color: var(--hvc-muted);
	margin-top: 0.2rem;
}

.prominent-block .subtitle p:empty {
	display: none;
}

/* Article date on homepage */
.hvc-post-date-lead {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.82);
	font-weight: 400;
	margin: 0;
	line-height: 1.4;
}

.hvc-post-date-sub {
	font-size: 12px;
	color: var(--hvc-muted);
	font-weight: 400;
	margin-top: 0.2rem;
	display: block;
}

/* ----- Single: hero + title overlay (Drupal Unive .main-article / .article-banner) ----- */
/* Bleed hero to edges of white shell — ignore horizontal shell padding */
.hvc-post-hero.alignfull {
	position: relative;
	margin-left: calc(-1 * var(--hvc-shell-pad-x)) !important;
	margin-right: calc(-1 * var(--hvc-shell-pad-x)) !important;
	width: calc(100% + 2 * var(--hvc-shell-pad-x)) !important;
	max-width: calc(100% + 2 * var(--hvc-shell-pad-x)) !important;
	box-sizing: border-box;
	margin-bottom: 0.5rem;
	box-shadow: none;
	border-top: none;
	overflow: hidden;
}

.hvc-post-hero .wp-block-post-featured-image {
	margin: 0;
	aspect-ratio: var(--hvc-hero-ratio);
	overflow: hidden;
	max-height: var(--hvc-hero-h);
	background: #ddd;
}

.hvc-post-hero .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	vertical-align: middle;
}

/* Drupal .main-article .article-banner — desktop: top 293px / height 54px in a 369px hero → percentages */
.hvc-post-hero-overlay {
	box-sizing: border-box;
	padding: 10px 16px;
	background: rgba(255, 255, 255, 0.85);
	border-bottom: 3px solid #0049AD;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
	position: relative;
	width: 100%;
	height: auto;
	min-height: 3rem;
	/* WP is-layout-flow adds margin-block-start to 2nd child; reset it so absolute top is exact */
	margin-block-start: 0 !important;
}

@media (min-width: 783px) {
	/* Banner strip: left-aligned narrow overlay matching Drupal (.article-banner: 451/970px wide) */
	.hvc-post-hero-overlay {
		position: absolute;
		left: 0;
		right: auto;
		top: auto;
		/* Drupal: bottom of banner at 347/369px (22px gap); bottom:0 keeps border inside overflow:hidden */
		bottom: 0;
		height: auto;
		min-height: calc(100% * 77 / 369);
		width: calc(100% * 451 / 970);
		padding-top: 8px;
		padding-bottom: 8px;
		padding-left: 55px;
		padding-right: 16px;
		box-sizing: border-box;
		overflow: hidden;
		max-width: 100%;
	}
}

.hvc-post-hero-overlay .wp-block-post-title {
	margin: 0;
	padding: 0;
	font-size: 20px;
	line-height: 27px;
	font-weight: bold;
	color: var(--hvc-primary);
	max-width: 100%;
	white-space: normal;
}

/* Subtitle: post meta hvc_subtitle (Drupal field_subtitel), via [hvc_hero_subtitle] */
.hvc-post-hero-subtitle-wrap {
	margin-block-start: 0.6rem !important;
}

/* Hide subtitle strip only when there is no date and no meta subtitle */
.hvc-post-hero-subtitle-wrap:not(:has(.wp-block-post-date)):not(:has(.hvc-post-hero-subtitle)) {
	display: none !important;
}

.hvc-post-hero-overlay .hvc-post-hero-date,
.hvc-post-hero-overlay .wp-block-post-date {
	margin: 0.2rem 0 0;
	padding: 0;
	font-size: 16px;
	line-height: 1.45;
	font-weight: 400;
	color: var(--hvc-muted);
}

.hvc-post-hero-subtitle {
	margin: 0.35rem 0 0;
	padding: 0;
	font-size: 16px;
	line-height: 29px;
	font-weight: bold;
	color: var(--hvc-muted);
	max-width: 100%;
	white-space: normal;
}

/* No featured image: stack title normally */
.hvc-post-hero:not(:has(.wp-block-post-featured-image img)) .hvc-post-hero-overlay {
	position: relative;
	left: auto;
	right: auto;
	bottom: auto;
	margin: 1rem 0 0;
	background: transparent;
	border-bottom: none;
	box-shadow: none;
	padding: 0;
	max-width: none;
	height: auto;
	min-height: 0;
}
.hvc-post-hero:not(:has(.wp-block-post-featured-image img)) .hvc-post-hero-overlay .wp-block-post-title {
	font-size: clamp(1.35rem, 4vw, 1.85rem);
	line-height: 1.25;
}

/* ----- Meta (date + author inline) ----- */
.hvc-post-meta-row {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 1.25rem;
	padding: 0.35rem 0 1.25rem;
	font-size: 14.5px;
	line-height: 1.5em;
	color: var(--hvc-muted);
	border-bottom: 1px solid #e0e0e0;
	margin-bottom: 1.5rem;
}

.hvc-post-meta-row time {
	color: var(--hvc-muted);
	font-weight: 400;
}

.hvc-post-meta-row .wp-block-post-author-name {
	display: inline-block;
	margin: 0;
	padding: 0;
	vertical-align: baseline;
}

.hvc-post-meta-row a {
	font-weight: bold;
	color: var(--hvc-primary) !important;
	text-decoration: none !important;
}

.hvc-post-meta-row a:hover {
	text-decoration: underline !important;
}

/* ----- Article / page body ----- */
.hvc-content-shell .entry-content,
.hvc-content-shell .wp-block-post-content {
	font-size: 14.5px;
	line-height: 1.5em;
	max-width: 100%;
}

/* Desktop: centre 600px content column, 2/5 left indent, 3/5 right */
@media (min-width: 783px) {
	.hvc-content-shell .wp-block-post-content,
	.hvc-content-shell .entry-content,
	.hvc-content-shell .hvc-post-meta-row,
	.hvc-content-shell .hvc-page-title-bar {
		--_gap: max(0px, 100% - 600px);
		padding-left:  calc(var(--_gap) * 0.4) !important;
		padding-right: calc(var(--_gap) * 0.6) !important;
		box-sizing: border-box;
	}
}

/* Full-width template: content fills the entire shell (no 600px column indent) */
.hvc-template-fullwidth .wp-block-post-content,
.hvc-template-fullwidth .entry-content {
	padding-left: 0 !important;
	padding-right: 0 !important;
}


.hvc-content-shell .wp-block-heading {
	margin-top: 1.5em;
	margin-bottom: 0.65em;
}

/* Tables (toernooischema / prijzen) */
.hvc-content-shell .wp-block-table,
.hvc-content-shell table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.88rem;
	margin: 1.25rem 0;
}
.hvc-content-shell .wp-block-table th,
.hvc-content-shell table th {
	background: #e8e8e8;
	font-weight: 700;
	text-align: left;
	padding: 0.5rem 0.65rem;
	border: 1px solid #ccc;
}
.hvc-content-shell .wp-block-table td,
.hvc-content-shell table td {
	padding: 0.45rem 0.65rem;
	border: 1px solid #ddd;
}
.hvc-content-shell .wp-block-table tbody tr:nth-child(even),
.hvc-content-shell table tbody tr:nth-child(even) {
	background: #f9f9f9;
}

/* ----- Post navigation (prev/next grey strip feel) ----- */
.hvc-post-nav-wrap {
	background: var(--hvc-panel);
	margin-left: calc(-1 * clamp(1rem, 4vw, 2rem)) !important;
	margin-right: calc(-1 * clamp(1rem, 4vw, 2rem)) !important;
	width: calc(100% + 2 * clamp(1rem, 4vw, 2rem)) !important;
	max-width: none !important;
	padding: 0 !important;
	margin-top: 2rem !important;
	border-top: 1px solid #d0d0d0;
}

/* TT5 pattern: outer group + inner nav.alignwide — reset spacing, one grey strip */
.hvc-post-nav-wrap > .wp-block-group.alignwide {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding: 0 !important;
}

.hvc-post-nav-wrap nav.wp-block-group.alignwide {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-left: clamp(1rem, 4vw, 2rem) !important;
	padding-right: clamp(1rem, 4vw, 2rem) !important;
	padding-top: var(--wp--preset--spacing--40, 1rem) !important;
	padding-bottom: var(--wp--preset--spacing--40, 1rem) !important;
	border-top: none !important;
}

.hvc-post-nav-wrap .post-navigation-link__label {
	font-weight: 700;
	color: var(--hvc-primary);
}

/* ----- Page template: optional banner + plain page title ----- */
.hvc-content-shell .hvc-page-banner {
	margin-left: calc(-1 * var(--hvc-shell-pad-x)) !important;
	margin-right: calc(-1 * var(--hvc-shell-pad-x)) !important;
	width: calc(100% + 2 * var(--hvc-shell-pad-x)) !important;
	max-width: none !important;
	box-sizing: border-box;
}

.hvc-page-banner {
	margin: 0;
	overflow: hidden;
	line-height: 0;
}

.hvc-page-banner .wp-block-post-featured-image {
	margin: 0;
	overflow: hidden;
	background: #ccc;
}

.hvc-page-banner .wp-block-post-featured-image img {
	width: 100%;
	height: 150px;
	object-fit: cover;
	object-position: center;
	display: block;
}

.hvc-page-title-bar {
	padding: 1rem 0 0.25rem;
	padding-left: var(--hvc-shell-pad-x);
	margin: 0;
}

.hvc-page-title-bar .wp-block-post-title {
	margin: 0;
	color: #111;
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	line-height: 1.25;
	font-weight: 700;
}

/* Page content area */
.hvc-page-content {
	padding: 1.5rem 0 2rem;
}

/* ----- Blog / archive: card-ish list ----- */
.hvc-home-shell .wp-block-query,
.hvc-archive-shell .wp-block-query {
	padding-top: 0;
}

.hvc-home-shell .sub-articles .wp-block-post-template,
.hvc-archive-shell .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 1.25rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.hvc-home-shell .sub-articles .wp-block-post-template > li,
.hvc-archive-shell .wp-block-post-template > li {
	margin: 0;
}

.hvc-home-shell .sub-articles .wp-block-post-template > li > .wp-block-group,
.hvc-archive-shell .wp-block-post-template > li > .wp-block-group {
	border: none;
	background: #fff;
	padding: 1rem 0 !important;
	box-shadow: none;
}

.hvc-home-shell .sub-articles .wp-block-post-template .wp-block-post-title a,
.hvc-archive-shell .wp-block-post-template .wp-block-post-title a {
	color: var(--hvc-primary) !important;
	font-size: 1.05rem !important;
	line-height: 1.35;
	text-decoration: none !important;
}
.hvc-home-shell .sub-articles .wp-block-post-template .wp-block-post-title a:hover,
.hvc-archive-shell .wp-block-post-template .wp-block-post-title a:hover {
	text-decoration: underline !important;
}

/* Hide full post body on blog index cards (pattern pulls full content) */
.hvc-home-shell .sub-articles .wp-block-post-template .wp-block-post-content,
.hvc-archive-shell .wp-block-post-template .wp-block-post-content {
	display: none;
}

.hvc-home-shell .sub-articles .wp-block-post-template .wp-block-post-excerpt,
.hvc-archive-shell .wp-block-post-template .wp-block-post-excerpt {
	display: block;
	font-size: 0.88rem;
	color: var(--hvc-text);
	margin-top: 0.5rem;
}

/* If excerpt missing, show nothing extra */
.hvc-home-shell .wp-block-query-pagination {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: none;
}

/* Archive title */
.hvc-archive-shell .wp-block-query-title {
	margin-top: 1.25rem;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--hvc-primary);
	font-size: 1.75rem;
}

/* ----- TT5 theme generator row (optional) ----- */
.wp-block-site-generator {
	background: #000 !important;
	color: #ececec !important;
	padding-top: 1rem !important;
	padding-bottom: 1rem !important;
}

.wp-block-site-generator a {
	color: #ececec !important;
}

/* Comments uitgeschakeld — template + filters; verborgen voor het geval nog ergens een blok staat */
.wp-block-comments,
.wp-block-post-comments-form {
	display: none !important;
}

/* ----- Drupal-style sponsors + footer (parts/footer.html) ----- */
/* Full-width background; content is constrained inside via .sponsor-footer-logos */
.sponsors.alignfull {
	width: 100vw;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.sponsor-footer-text {
	background-color: #6d6e70;
	color: #fff;
	font-weight: bold;
	min-height: 30px;
	line-height: 1.4;
	text-transform: uppercase;
	padding: 6px 12px;
	box-sizing: border-box;
}

.sponsor-footer-wrapper-text {
	text-align: center;
	font-size: 13px;
	padding: 4px 0;
}

.sponsor-footer-logos {
	background: #fff;
	min-height: 90px;
	padding: 8px 12px 16px;
	box-sizing: border-box;
	margin-block-start: 0 !important;
	max-width: var(--hvc-shell-max);
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

.sponsors.alignfull .sponsor-footer-logos {
	max-width: var(--hvc-shell-max);
	margin-left: auto;
	margin-right: auto;
}

.hvc-sponsor-grid {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 12px;
	justify-content: center;
}

.hvc-sponsor-grid .views-row {
	display: inline-block;
	margin: 0;
	padding-top: 8px;
	vertical-align: middle;
}

.hvc-sponsor-grid .Hoofd img {
	max-height: 50px;
	width: auto;
	height: auto;
}

.hvc-sponsor-grid .Sub img {
	max-height: 44px;
	width: auto;
	height: auto;
}

.hvc-sponsor-grid a:hover img {
	opacity: 0.75;
}

.hvc-drupal-footer.alignfull {
	width: 100vw;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	background: #0d1f4a !important;
	color: rgba(255,255,255,0.75) !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding: 0 !important;
}

.hvc-footer-inner {
	max-width: var(--hvc-shell-max);
	margin: 0 auto;
	padding: 2.5rem 15px 2rem;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 3rem;
	align-items: start;
}

.hvc-footer-title {
	display: block;
	font-size: 0.95rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: 0.3rem;
}

.hvc-footer-dates {
	display: block;
	font-size: 0.78rem;
	color: rgba(255,255,255,0.45);
	margin-bottom: 1.25rem;
}

.hvc-footer-copy {
	margin: 0;
	font-size: 0.75rem;
	line-height: 1.7;
	color: rgba(255,255,255,0.4);
}

.hvc-footer-copy a {
	color: rgba(255,255,255,0.6) !important;
	font-weight: 600;
	text-decoration: underline;
}

.hvc-footer-col-title {
	display: block;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255,255,255,0.4);
	margin-bottom: 0.85rem;
}

.hvc-footer-nav {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hvc-footer-nav li {
	margin-bottom: 0.45rem;
}

.hvc-footer-nav a {
	color: rgba(255,255,255,0.7) !important;
	font-size: 0.875rem;
	text-decoration: none !important;
}

.hvc-footer-nav a:hover {
	color: #fff !important;
}

@media (max-width: 640px) {
	.hvc-footer-inner {
		grid-template-columns: 1fr 1fr;
	}

	.hvc-footer-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 380px) {
	.hvc-footer-inner {
		grid-template-columns: 1fr;
	}
}

/* ----- Author + ChessBase promo row (Drupal .narrow-wrapper-text + inline-block) ----- */
.hvc-author-ad-row {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 30px;
	padding-bottom: 32px;
	margin-top: 0.5rem;
	clear: both;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.hvc-author-ad-col {
	flex: 1 1 280px;
	min-width: 200px;
	max-width: calc(100% - 320px);
	padding-right: 12px;
	box-sizing: border-box;
}

.hvc-author-ad-promo {
	flex: 0 0 300px;
	width: 300px;
	max-width: 100%;
	box-sizing: border-box;
}

.hvc-author-ad-col .wp-block-post-author {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 7px;
	max-width: 100%;
}

.hvc-author-ad-col .wp-block-post-author__avatar {
	flex-shrink: 0;
	line-height: 0;
}

/* Drupal .user-img — vierkant, geen ronde crop */
.hvc-author-ad-col .wp-block-post-author__avatar img {
	height: 80px;
	width: auto !important;
	max-width: 120px;
	object-fit: contain;
	object-position: left top;
	border-radius: 0;
	display: block;
}

.hvc-author-ad-col .wp-block-post-author__content {
	flex: 1;
	min-width: 0;
	max-width: 520px;
	color: #575a5d;
	font-size: 14.5px;
	line-height: 1.55;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.hvc-author-ad-col .wp-block-post-author__byline {
	display: inline;
	margin: 0;
	padding: 0;
	font-weight: bold;
	color: var(--hvc-primary);
	font-size: 14.5px;
}

.hvc-author-ad-col .wp-block-post-author__name {
	display: inline;
	margin: 0;
	padding: 0;
	font-weight: bold;
	color: var(--hvc-primary);
	font-size: 14.5px;
}

/* ----- News archive list ----- */
.hvc-archive-content {
	padding-top: 0.5rem;
}

/* EN home + photo archive: 2-column grid */
body.hvc-lang-en.page .hvc-archive-content,
.hvc-photo-archive .hvc-archive-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	padding-top: 0.75rem;
	align-items: start;
}

body.hvc-lang-en.page .hvc-archive-item,
.hvc-photo-archive .hvc-archive-item {
	border-bottom: none;
	padding: 0;
	border: 1px solid #e4e8ed;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
}

body.hvc-lang-en.page .hvc-archive-item .hvc-archive-thumb {
	flex: none;
	width: 100%;
}

body.hvc-lang-en.page .hvc-archive-item .hvc-archive-thumb img {
	width: 100%;
	height: 180px;
	object-fit: cover;
}

body.hvc-lang-en.page .hvc-archive-item .hvc-archive-text {
	padding: 0.85rem 1rem 1rem;
	flex: 1 1 auto;
}

@media (max-width: 640px) {
	body.hvc-lang-en.page .hvc-archive-content {
		grid-template-columns: 1fr;
	}
}

.hvc-archive-item {
	display: flex;
	gap: 1.25rem;
	padding: 1.1rem 0;
	border-bottom: 1px solid #e0e0e0;
	align-items: flex-start;
}

.hvc-archive-item .hvc-archive-thumb {
	flex: 0 0 240px;
	width: 240px;
	margin: 0 !important;
}

.hvc-archive-item .hvc-archive-thumb img {
	width: 240px;
	height: 160px;
	object-fit: cover;
	display: block;
}

.hvc-archive-item .hvc-archive-text {
	flex: 1 1 auto;
	min-width: 0;
}

.hvc-archive-item .hvc-archive-text > * {
	margin-block-start: 0 !important;
}

.hvc-archive-item .wp-block-post-title {
	margin: 0 0 0.2rem;
	font-size: 1.1rem;
	font-weight: bold;
	color: var(--hvc-primary);
	line-height: 1.35;
}

.hvc-archive-item .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

.hvc-archive-item .wp-block-post-title a:hover {
	text-decoration: underline;
}

.hvc-archive-item .hvc-post-date-sub {
	margin-bottom: 0.4rem;
}

.hvc-archive-item .wp-block-post-excerpt {
	font-size: 14px;
	color: #444;
	margin: 0.25rem 0 0.65rem;
	line-height: 1.55;
}

.hvc-archive-item .wp-block-post-excerpt p {
	margin: 0;
}

.hvc-archive-item .wp-block-post-excerpt__more-link {
	display: inline-block;
	margin-top: 0.5rem;
	padding: 0.35rem 1rem;
	background: var(--hvc-primary);
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
	border-radius: 3px;
	transition: background 0.15s ease;
}

.hvc-archive-item .wp-block-post-excerpt__more-link:hover {
	background: #003d94;
}

/* Pagination */
.hvc-archive-content .wp-block-query-pagination {
	margin-top: 1.75rem;
	display: flex;
	gap: 0.4rem;
	justify-content: center;
	flex-wrap: wrap;
}

.hvc-archive-content .wp-block-query-pagination a,
.hvc-archive-content .wp-block-query-pagination span {
	display: inline-block;
	padding: 0.35rem 0.75rem;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 13px;
	color: var(--hvc-primary);
	text-decoration: none;
	background: #fff;
	transition: background 0.15s ease, color 0.15s ease;
}

.hvc-archive-content .wp-block-query-pagination a:hover {
	background: var(--hvc-primary);
	color: #fff;
	border-color: var(--hvc-primary);
}

.hvc-archive-content .wp-block-query-pagination .current,
.hvc-archive-content .wp-block-query-pagination .page-numbers.current {
	background: var(--hvc-primary);
	color: #fff;
	border-color: var(--hvc-primary);
}

/* ----- Per-language navigation slots (assign NL menu + EN menu in Site Editor) ----- */
body.hvc-lang-nl .hvc-show-if-en,
body.hvc-lang-en .hvc-show-if-nl {
	display: none !important;
}

body:not(.hvc-lang-nl):not(.hvc-lang-en) .hvc-show-if-en {
	display: none !important;
}

.hvc-nav-slot {
	width: 100%;
	min-width: 0;
	flex: 1 1 auto;
	margin-block-start: 0 !important;
}

/* Homepage ChessBase promo (when used elsewhere). */
.hvc-home-promo-wrap {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: none;
}

.hvc-author-ad-col .wp-block-post-author__bio {
	display: block !important;
	margin-top: 0.65em;
	font-weight: 400;
	color: #575a5d;
	overflow: visible;
	max-height: none !important;
}

.hvc-author-ad-col .wp-block-post-author__bio p {
	margin: 0 0 0.65em;
}

.hvc-author-ad-col .wp-block-post-author__bio p:last-child {
	margin-bottom: 0;
}

/* ChessBase slideshow — 300×200 zoals Drupal cb_slide */
.hvc-cb-promo {
	width: 300px;
	max-width: 100%;
	position: relative;
	overflow: hidden;
	line-height: 0;
	border: 1px solid #ddd;
	background: #fafafa;
}

.hvc-cb-slides {
	position: relative;
	width: 300px;
	max-width: 100%;
	min-height: 200px;
	overflow: hidden;
}

.hvc-cb-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	animation: hvcCbFade 54s infinite ease-in-out;
	pointer-events: none;
}

.hvc-cb-slide:nth-child(1) {
	animation-delay: 0s;
}

.hvc-cb-slide:nth-child(2) {
	animation-delay: -9s;
}

.hvc-cb-slide:nth-child(3) {
	animation-delay: -18s;
}

.hvc-cb-slide:nth-child(4) {
	animation-delay: -27s;
}

.hvc-cb-slide:nth-child(5) {
	animation-delay: -36s;
}

.hvc-cb-slide:nth-child(6) {
	animation-delay: -45s;
}

.hvc-cb-slide a,
.hvc-cb-slide img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 207px;
	object-fit: contain;
}

@keyframes hvcCbFade {
	0%,
	14.8% {
		opacity: 1;
		z-index: 3;
		pointer-events: auto;
	}
	16.8%,
	100% {
		opacity: 0;
		z-index: 1;
		pointer-events: none;
	}
}

/* ----- Responsive / mobile ----- */
@media (max-width: 782px) {
	/* ---- Content ---- */
	.hvc-post-hero-overlay .wp-block-post-title {
		white-space: normal;
		font-size: clamp(1rem, 4.5vw, 1.25rem);
		line-height: 1.3;
	}

	.hvc-post-hero-subtitle {
		white-space: normal;
	}

	body.single-post .hvc-content-shell > .wp-block-post-content {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.hvc-author-ad-row {
		flex-direction: column;
	}

	.hvc-author-ad-col {
		max-width: 100%;
		padding-right: 0;
	}

	.hvc-author-ad-promo {
		flex-basis: auto;
		width: 100%;
	}

	.hvc-cb-promo,
	.hvc-cb-slides {
		width: 100%;
		max-width: 300px;
		margin-left: auto;
		margin-right: auto;
	}

	.hvc-page-hero-overlay {
		position: relative;
		left: auto;
		right: auto;
		bottom: auto;
		height: auto;
		min-height: 3rem;
		padding: 10px 16px;
		margin-top: 0.75rem;
	}

	/* ---- News archive: stack on mobile ---- */
	.hvc-archive-item {
		flex-direction: column;
		gap: 0.75rem;
	}

	.hvc-archive-item .hvc-archive-thumb {
		flex: 0 0 auto;
		width: 100%;
	}

	.hvc-archive-item .hvc-archive-thumb img {
		width: 100%;
		height: 200px;
	}

	/* ---- Homepage sub-articles: single column on small screens ---- */
	.sub-articles .wp-block-post-template.is-layout-grid {
		grid-template-columns: 1fr !important;
	}

	/* ---- Hamburger: visible white icon in blue bar ---- */
	#menubar .wp-block-navigation__responsive-container-open {
		background: rgba(255,255,255,0.15) !important;
		border: 1px solid #fff !important;
		border-radius: 4px !important;
		padding: 7px 10px !important;
		cursor: pointer !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		min-width: 42px !important;
		min-height: 38px !important;
		line-height: 1 !important;
	}

	#menubar .wp-block-navigation__responsive-container-open svg {
		fill: #fff !important;
		stroke: #fff !important;
		width: 22px !important;
		height: 22px !important;
		display: block !important;
	}

	/* ---- Overlay panel: white background ---- */
	#menubar .wp-block-navigation__responsive-container.is-menu-open {
		background: #fff !important;
	}

	/* Header row inside the overlay: keep blue so close button reads well */
	#menubar .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close {
		background: var(--hvc-primary) !important;
		padding: 6px 12px !important;
	}

	#menubar .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
		background: #fff !important;
	}

	/* Close × button (sits in blue header row) */
	#menubar .wp-block-navigation__responsive-container-close {
		color: #fff !important;
		background: transparent !important;
	}

	#menubar .wp-block-navigation__responsive-container-close svg {
		fill: #fff !important;
		stroke: #fff !important;
	}

	/* ---- Items list ---- */
	#menubar .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		display: flex !important;
		flex-direction: column !important;
		gap: 0 !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	/* Each row: link + optional chevron button side by side */
	#menubar .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: wrap !important;
		align-items: stretch !important;
		border-bottom: 1px solid #e4e8ed !important;
		margin: 0 !important;
	}

	/* Top-level link */
	#menubar .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
		color: var(--hvc-primary) !important;
		font-size: 1rem !important;
		font-weight: 700 !important;
		padding: 0.9rem 1.2rem !important;
		flex: 1 1 auto !important;
		display: flex !important;
		align-items: center !important;
		border-radius: 0 !important;
		height: auto !important;
	}

	/* Chevron toggle button — WP renders this as .wp-block-navigation-submenu__toggle */
	#menubar .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle {
		flex: 0 0 50px !important;
		border: none !important;
		border-left: 1px solid #e4e8ed !important;
		background: none !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		cursor: pointer !important;
		padding: 0 !important;
		border-radius: 0 !important;
	}

	#menubar .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle svg {
		fill: var(--hvc-primary) !important;
		stroke: var(--hvc-primary) !important;
		width: 18px !important;
		height: 18px !important;
		transition: transform 0.2s !important;
	}

	#menubar .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle[aria-expanded="true"] svg {
		transform: rotate(180deg) !important;
	}

	/* ---- Submenu panel: hidden by default ---- */
	#menubar .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
		display: none !important;
		flex-basis: 100% !important;
		width: 100% !important;
		position: static !important;
		background: #f3f6fa !important;
		border-top: 1px solid #e4e8ed !important;
		box-shadow: none !important;
		padding: 0 !important;
		min-width: 0 !important;
		z-index: auto !important;
	}

	/* Show submenu: WP sets aria-expanded on the toggle button, use :has() */
	#menubar .wp-block-navigation__responsive-container.is-menu-open
		.wp-block-navigation-item:has(.wp-block-navigation-submenu__toggle[aria-expanded="true"])
		> .wp-block-navigation__submenu-container {
		display: block !important;
	}

	/* Submenu child links */
	#menubar .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		color: #1a3a6b !important;
		font-size: 0.9rem !important;
		font-weight: 600 !important;
		padding: 0.7rem 1.2rem 0.7rem 2.2rem !important;
		display: block !important;
		white-space: normal !important;
	}

	#menubar .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item {
		border-bottom: 1px solid #dde3ea !important;
		display: block !important;
	}

	#menubar .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item:last-child {
		border-bottom: none !important;
	}
}

/*
 * “Mega” panel — modern overlay grid (mark top item: Advanced CSS class → hvc-mega).
 * Site Editor → Navigation → select item with submenu → Additional CSS classes: hvc-mega
 */
:root {
	--hvc-mega-bg: rgba(255, 255, 255, 0.94);
	--hvc-mega-edge: rgba(15, 23, 42, 0.08);
	--hvc-mega-shadow: 0 28px 56px rgba(15, 23, 42, 0.14), 0 10px 22px rgba(15, 23, 42, 0.06),
		0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

@keyframes hvc-mega-in {
	from {
		opacity: 0;
		transform: translateY(10px);
		filter: blur(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
		filter: blur(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	@keyframes hvc-mega-in {
		from,
		to {
			opacity: 1;
			transform: none;
			filter: none;
		}
	}
}

@media (min-width: 783px) {
	:is(#menubar, header) .wp-block-navigation .wp-block-navigation-item.hvc-mega,
	:is(#menubar, header) .wp-block-navigation .wp-block-navigation-submenu.hvc-mega {
		position: relative;
	}

	/* Chevron hint on mega parents (link or submenu button) */
	:is(#menubar, header) .wp-block-navigation .wp-block-navigation-item.hvc-mega > .wp-block-navigation-item__content::after {
		content: "";
		display: inline-block;
		width: 0.42em;
		height: 0.42em;
		margin-inline-start: 0.35em;
		vertical-align: 0.08em;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		opacity: 0.88;
		transition: transform 0.2s ease, opacity 0.2s ease;
	}

	:is(#menubar, header) .wp-block-navigation .wp-block-navigation-item.hvc-mega:is(:hover, :focus-within) > .wp-block-navigation-item__content::after {
		transform: rotate(225deg);
		opacity: 1;
	}

	:is(#menubar, header) .wp-block-navigation .wp-block-navigation-item.hvc-mega .wp-block-navigation__submenu-container,
	:is(#menubar, header) .wp-block-navigation .wp-block-navigation-submenu.hvc-mega .wp-block-navigation__submenu-container {
		min-width: min(920px, calc(100vw - 2.5rem));
		max-width: calc(100vw - 2rem);
		padding: 1.35rem 1.5rem 1.5rem;
		box-sizing: border-box;
		border-radius: 14px;
		border: 1px solid var(--hvc-mega-edge);
		border-top: 3px solid var(--hvc-primary);
		background: linear-gradient(165deg, var(--hvc-mega-bg) 0%, rgba(248, 250, 252, 0.97) 48%, rgba(241, 245, 249, 0.96) 100%);
		backdrop-filter: saturate(160%) blur(14px);
		-webkit-backdrop-filter: saturate(160%) blur(14px);
		box-shadow: var(--hvc-mega-shadow);
		overflow: visible;
		z-index: 100000;
	}

	:is(#menubar, header) .wp-block-navigation .wp-block-navigation-item.hvc-mega .wp-block-navigation__submenu-container:is(:hover, :focus-within),
	:is(#menubar, header) .wp-block-navigation .wp-block-navigation-submenu.hvc-mega .wp-block-navigation__submenu-container:is(:hover, :focus-within) {
		animation: hvc-mega-in 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
	}

	:is(#menubar, header) .wp-block-navigation .wp-block-navigation-item.hvc-mega .wp-block-navigation__submenu-container ul,
	:is(#menubar, header) .wp-block-navigation .wp-block-navigation-submenu.hvc-mega .wp-block-navigation__submenu-container ul {
		display: grid !important;
		grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
		gap: 0.4rem 1.5rem;
		align-content: start;
	}

	:is(#menubar, header) .wp-block-navigation .wp-block-navigation-item.hvc-mega .wp-block-navigation__submenu-container .wp-block-navigation-item,
	:is(#menubar, header) .wp-block-navigation .wp-block-navigation-submenu.hvc-mega .wp-block-navigation__submenu-container .wp-block-navigation-item {
		white-space: normal;
		width: auto;
		margin: 0;
		padding: 0;
		border-radius: 8px;
		transition: background 0.18s ease;
	}

	:is(#menubar, header)
		.wp-block-navigation
		.wp-block-navigation-item.hvc-mega
		.wp-block-navigation__submenu-container
		.wp-block-navigation-item:is(:hover, :focus-within),
	:is(#menubar, header)
		.wp-block-navigation
		.wp-block-navigation-submenu.hvc-mega
		.wp-block-navigation__submenu-container
		.wp-block-navigation-item:is(:hover, :focus-within) {
		background: rgba(0, 73, 173, 0.06);
	}

	:is(#menubar, header) .wp-block-navigation .wp-block-navigation-item.hvc-mega .wp-block-navigation__submenu-container .wp-block-navigation-item__content,
	:is(#menubar, header) .wp-block-navigation .wp-block-navigation-submenu.hvc-mega .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		color: var(--hvc-text) !important;
		font-weight: 600 !important;
		padding: 0.55rem 0.65rem !important;
		border-radius: 8px;
		line-height: 1.35;
		display: block;
		text-decoration: none !important;
		font-size: 0.92rem !important;
	}

	:is(#menubar, header) .wp-block-navigation .wp-block-navigation-item.hvc-mega .wp-block-navigation__submenu-container a:hover,
	:is(#menubar, header) .wp-block-navigation .wp-block-navigation-submenu.hvc-mega .wp-block-navigation__submenu-container a:hover {
		color: var(--hvc-primary) !important;
		text-decoration: none !important;
	}

	:is(#menubar, header) .wp-block-navigation .wp-block-navigation-item.hvc-mega .wp-block-navigation__submenu-container .wp-block-navigation-item__description,
	:is(#menubar, header) .wp-block-navigation .wp-block-navigation-submenu.hvc-mega .wp-block-navigation__submenu-container .wp-block-navigation-item__description {
		display: block;
		font-weight: 400 !important;
		font-size: 0.82rem !important;
		color: var(--hvc-muted) !important;
		margin-top: 0.15rem;
		line-height: 1.35;
	}
}

/* ======================================================
   Design modernization — subtle 2025 polish
   ====================================================== */

/* Smooth link transitions sitewide */
a {
	transition: color 0.15s ease;
}

/* Body content links */
.hvc-content-shell .wp-block-post-content a,
.hvc-page-content a {
	color: var(--hvc-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.hvc-content-shell .wp-block-post-content a:hover,
.hvc-page-content a:hover {
	color: #003d94;
}

/* Lead article image hover: gentle scale */
.main-article .article-block .wp-block-post-featured-image img,
.main-article .hvc-post-hero .wp-block-post-featured-image img {
	transition: transform 0.3s ease;
}

.main-article:hover .article-block .wp-block-post-featured-image img,
.main-article:hover .hvc-post-hero .wp-block-post-featured-image img {
	transform: scale(1.02);
}

/* Homepage article title link */
.main-article .article-banner .wp-block-post-title a,
.main-article .hvc-post-hero-overlay .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

.main-article .article-banner .wp-block-post-title a:hover,
.main-article .hvc-post-hero-overlay .wp-block-post-title a:hover {
	text-decoration: underline;
}

/* Prominent block title */
.prominent-block .article-banner .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

.prominent-block .article-banner .wp-block-post-title a:hover {
	text-decoration: underline;
}

/* Post meta row: cleaner, smaller, muted */
.hvc-post-meta-row {
	color: var(--hvc-muted);
	padding: 0.5rem 0 0.75rem;
	border-bottom: 1px solid #eee;
	margin-bottom: 1.25rem;
	display: flex;
	gap: 0.75rem;
	align-items: center;
	flex-wrap: wrap;
}

/* Footer text link */
.hvc-footer-copy a {
	color: inherit;
	text-decoration: underline;
}

/* Heading improvements */
.hvc-content-shell h2,
.hvc-content-shell .wp-block-heading.is-style-h2 {
	font-size: clamp(1.2rem, 2.5vw, 1.45rem);
	font-weight: 700;
	color: #1a1a2e;
	border-bottom: 2px solid var(--hvc-primary);
	padding-bottom: 0.3rem;
	margin-bottom: 0.75rem;
	width: fit-content;
	margin-left: 0 !important;
}

/* Slightly rounder corners on tables */
.hvc-content-shell .wp-block-table,
.hvc-content-shell table {
	border-radius: 4px;
	overflow: hidden;
}

/* Better focus ring (accessibility) */
a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--hvc-primary);
	outline-offset: 3px;
	border-radius: 2px;
}

/* Mobile general layout improvements */
@media (max-width: 1000px) {
	.hvc-content-shell {
		--hvc-shell-pad-x: 15px;
	}
}

@media (max-width: 782px) {

	.hvc-home-shell .main-article .hvc-post-hero {
		margin-left: 0 !important;
		margin-right: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	/* Header logo: stack vertically on very small screens */
	.hvc-header-logos {
		flex-wrap: wrap;
		gap: 0.5rem;
	}

	/* Sponsor grid: 2 columns on mobile */
	.hvc-sponsor-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

/* ======================================================
   21st-century UX upgrades
   ====================================================== */

/* Sub-article: bottom border accent on hover */
.prominent-block .article-banner {
	transition: border-color 0.18s ease;
}

.prominent-block:hover .article-banner {
	border-bottom-color: #2a6fcc;
}

/* Post title in hero: no underline on hover */
.hvc-post-hero-overlay .wp-block-post-title a:hover {
	text-decoration: none;
	opacity: 0.9;
}


/* Post content: paragraph spacing */
.hvc-content-shell .wp-block-post-content p {
	margin-bottom: 1em;
}

/* Sponsor logos: hover feedback */
.hvc-sponsor-grid .views-row a {
	display: block;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.hvc-sponsor-grid .views-row a:hover {
	opacity: 0.8;
	transform: scale(1.04);
}

/* Page-load fade-in */
.hvc-main {
	animation: hvcFadeIn 0.2s ease both;
}

@keyframes hvcFadeIn {
	from { opacity: 0.88; transform: translateY(3px); }
	to   { opacity: 1;    transform: translateY(0);   }
}

/* Active current-page nav item */
#menubar .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
#menubar .wp-block-navigation-item[aria-current="page"] > .wp-block-navigation-item__content {
	background: rgba(255, 255, 255, 0.25) !important;
}

/* TopBar: tighten font */
#topbar.hvc-topbar {
	font-size: 12.5px;
}

/* ----- Toernooi section navigation [hvc_section_menu] ----- */
.toernooi-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin: 0 0 1.25rem;
	padding: 0;
	border-bottom: 2px solid #d0d0d0;
	list-style: none;
}

.toernooi-menu a,
.toernooi-menu div {
	position: relative;
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 18px;
	margin-bottom: -2px;
	color: var(--hvc-primary);
	font-weight: 700;
	font-size: 0.92rem;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.15s ease;
}

.toernooi-menu div::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: transparent;
	transition: background 0.15s ease;
}

.toernooi-menu div.active::after,
.toernooi-menu div:hover::after {
	background: rgba(37, 92, 167, 1);
}

.toernooi-menu div.active {
	color: rgba(37, 92, 167, 1);
}

.toernooi-menu div:hover {
	color: rgba(37, 92, 167, 1);
}

/* Section content panels */
.hvc-section {
	width: 100%;
}

.hvc-section .fullwidth {
	width: calc(100% + 2 * var(--hvc-shell-pad-x)) !important;
	max-width: none !important;
	margin-left: calc(-1 * var(--hvc-shell-pad-x)) !important;
	margin-right: calc(-1 * var(--hvc-shell-pad-x)) !important;
	box-sizing: border-box;
}

/* Print: strip UI chrome */
@media print {
	#menubar, #topbar, #langbar, .sponsors, .hvc-drupal-footer { display: none !important; }
	.hvc-content-shell { box-shadow: none; padding: 0 !important; max-width: 100% !important; }
}
