/* Alletop10 Hubs: huisstijl voor de hele site (lettertype, header, menu). Design: Alletop10 Krantenkop. */

@font-face {
	font-family: "Libre Franklin";
	src: url("fonts/libre-franklin-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Libre Franklin";
	src: url("fonts/libre-franklin-italic.woff2") format("woff2");
	font-weight: 100 900;
	font-style: italic;
	font-display: swap;
}

:root:root {
	--theme-font-family: "Libre Franklin", system-ui, sans-serif;
	--t10h-bar: #1C1917;
	--t10h-ink: #1C1917;
	--t10h-muted: #44403C;
	--t10h-line: #E7E5E4;
	--t10h-surface: #F7F6F5;
	--t10h-accent: #FF6A00;
	--t10h-accent-deep: #C2410C;
	--t10h-bar-ink: #EAE7E4;
	--t10h-wrap: 1200px;
}

body {
	background-color: #ffffff;
	color: var(--t10h-ink);
}

/* Header: zwarte balk met het eigen logo (groot genoeg om LIJSTJES te kunnen lezen) */
#header [data-row*="middle"] {
	--height: 100px;
	background-color: var(--t10h-bar);
	border-bottom: 3px solid var(--t10h-accent);
}
#header .site-title-container { display: none; }
#header .site-logo-container {
	--logo-max-height: 60px;
}
#header .site-logo-container img { width: auto; max-width: none; height: var(--logo-max-height); }
#header .menu > li > .ct-menu-link { --menu-item-padding: 0 12px; }

/* Menu */
#header .menu > li > .ct-menu-link {
	--theme-link-initial-color: var(--t10h-bar-ink);
	--theme-link-hover-color: var(--t10h-accent);
	--theme-link-active-color: var(--t10h-accent);
	font-size: 15px;
	font-weight: 650;
	text-transform: none;
	letter-spacing: 0;
}
#header .menu > li.current-menu-item > .ct-menu-link,
#header .menu > li.current-menu-ancestor > .ct-menu-link {
	color: var(--t10h-accent);
}
#header .sub-menu {
	--dropdown-background-color: #292524;
	--dropdown-width: 240px;
	border-radius: 2px;
	padding-block: 6px;
}
#header .sub-menu .ct-menu-link {
	color: var(--t10h-bar-ink);
	font-size: 15px;
	font-weight: 600;
	text-transform: none;
}
#header .sub-menu .ct-menu-link:hover,
#header .sub-menu .current-menu-item > .ct-menu-link {
	color: var(--t10h-accent);
}

/* Desktop: header even breed als de inhoud (t10h-wrap), zodat het logo boven de linkerrand van het vel staat */
#header [data-device="desktop"] .ct-container {
	width: 100%;
	max-width: var(--t10h-wrap);
	padding-inline: 24px;
	box-sizing: border-box;
}

/* Menu-item "Nieuw" (klasse t10h-menu-new): groene pil, valt op naast de rubrieken */
#header .menu > li.t10h-menu-new { margin-right: 8px; }
#header .menu > li.t10h-menu-new > .ct-menu-link {
	--theme-link-initial-color: var(--t10h-ink);
	--theme-link-hover-color: #fff;
	--theme-link-active-color: var(--t10h-ink);
	--menu-item-padding: 0 16px;
	align-self: center;
	height: 34px;
	background: var(--t10h-accent);
	border-radius: 999px;
	font-weight: 800;
	color: var(--t10h-ink);
}
#header .menu > li.t10h-menu-new > .ct-menu-link:hover { background: var(--t10h-accent-deep); color: #fff; }
#offcanvas li.t10h-menu-new > .ct-menu-link {
	--theme-link-initial-color: var(--t10h-accent);
	font-weight: 800;
}

/*
 * "Meer" als breed uitklapmenu (klasse t10h-mega): de groepen (t10h-menu-group) naast elkaar in drie
 * kolommen, met hun hubs er altijd zichtbaar onder. Blocksy opent geneste menu's normaal pas bij hover;
 * dat zetten we hier uit. Het kopje zelf is geen link.
 */
#header li.t10h-mega > .sub-menu {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px 28px;
	width: 680px;
	left: auto !important;
	right: -40px;
	padding: 20px 24px !important;
}
#header li.t10h-mega .sub-menu .sub-menu {
	position: static !important;
	display: block !important;
	width: auto !important;
	margin: 4px 0 0 !important;
	padding: 0 !important;
	opacity: 1 !important;
	visibility: inherit !important; /* volgt het paneel: anders bleven deze links onzichtbaar klikbaar over de pagina liggen */
	transform: none !important;
	background: transparent !important;
	box-shadow: none !important;
	pointer-events: inherit;
}
/*
 * Uitklapmenu's pas openen na 0,3 s stilstaan op het menu-item (sluiten blijft direct). Anders klapte het
 * brede Meer-paneel al open als je de muis er alleen langs bewoog, en lag het over links eronder
 * (zoals "Alle nieuwe lijstjes" op de homepage).
 */
#header .menu > li.menu-item-has-children:is(:hover, .ct-active) > .sub-menu { transition-delay: 0.3s; }

/* Blocksy zet een menu-item op flex in een rij; hier het kopje boven en de lijst eronder */
#header li.t10h-mega li.t10h-menu-group { display: flex !important; flex-direction: column; align-items: stretch; }
#header li.t10h-mega li.t10h-menu-group > .ct-menu-link {
	width: 100%;
	pointer-events: none;
	padding: 0 0 6px !important;
	border-bottom: 1px solid #3A3632;
	font-size: 11px !important;
	font-weight: 800 !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--t10h-accent) !important;
}
#header li.t10h-mega li.t10h-menu-group--blank > .ct-menu-link { visibility: hidden; }
#header li.t10h-mega li.t10h-menu-group .ct-toggle-dropdown-desktop,
#header li.t10h-mega li.t10h-menu-group .ct-toggle-dropdown-desktop-ghost { display: none !important; }
#header li.t10h-mega .sub-menu .sub-menu .ct-menu-link { padding: 5px 0 !important; font-size: 15px; }

/* Mobiel menu: kleine kopjes tussen de groepen, geen link */
#offcanvas li.t10h-menu-heading > .ct-menu-link {
	pointer-events: none;
	margin-top: 14px;
	font-size: 12px !important;
	font-weight: 800 !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #A39A93 !important;
}

/* Iconen (zoeken, mobiel menu) */
#header .ct-header-search,
#header .ct-header-trigger {
	--theme-icon-color: var(--t10h-bar-ink);
	--theme-icon-hover-color: var(--t10h-accent);
}

/* Mobiel menu (offcanvas) */
#offcanvas .ct-panel-inner {
	background-color: var(--t10h-bar);
}
#offcanvas .ct-menu-link {
	--theme-link-initial-color: var(--t10h-bar-ink);
	--theme-link-hover-color: var(--t10h-accent);
	--theme-link-active-color: var(--t10h-accent);
	font-size: 18px;
	font-weight: 650;
}
#offcanvas .ct-toggle-close,
#offcanvas .ct-toggle-dropdown-mobile {
	--theme-icon-color: var(--t10h-bar-ink);
}

/* Gedeelde bouwstenen */
.t10h-wrap {
	width: 100%;
	max-width: var(--t10h-wrap);
	margin-inline: auto;
	padding-inline: 24px;
}
.t10h-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 13px;
	color: var(--t10h-muted);
	margin-bottom: 10px;
}
.t10h-crumbs a { color: var(--t10h-accent-deep); text-decoration: none; }
.t10h-crumbs a:hover { text-decoration: underline; }

/* Footer: eigen footer (Alletop10 Hubs) vervangt die van Blocksy */
#footer { display: none; }
.t10h-footer {
	background: var(--t10h-bar);
	border-top: 3px solid var(--t10h-accent);
	color: #B5AEA8;
	font-family: "Libre Franklin", system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	padding: 48px 0 0;
}
.t10h-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.6fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
	gap: 40px;
	padding-bottom: 40px;
}
.t10h-footer__logo { display: inline-block; }
.t10h-footer__logo img {
	display: block;
	width: auto;
	max-width: 100%;
	height: 46px;
	margin-bottom: 18px;
}
.t10h-footer__about p { margin: 0; max-width: 38ch; }
.t10h-footer h2 {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 750;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #ffffff;
}
.t10h-footer ul { list-style: none; margin: 0; padding: 0; }
.t10h-footer li { margin-bottom: 7px; }
.t10h-footer__col--wide ul { columns: 2; column-gap: 24px; }
.t10h-footer__col--wide li { break-inside: avoid; }
.t10h-footer a { color: var(--t10h-bar-ink); text-decoration: none; }
.t10h-footer a:hover { color: var(--t10h-accent); }
.t10h-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 24px;
	padding-block: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 14px;
}

/* Laptopbreedte (desktopheader van Blocksy vanaf 1000px): logo en menu iets compacter, anders loopt het menu over */
@media (min-width: 1000px) and (max-width: 1279px) {
	#header [data-row*="middle"] { --height: 84px; }
	#header .site-logo-container { --logo-max-height: 46px; }
	#header .menu > li > .ct-menu-link { --menu-item-padding: 0 6px; font-size: 14px; }
}

/* Mobiele header van Blocksy (onder 1000px): vast bovenin, logo in het midden, menuknop rechts */
@media (max-width: 999.98px) {
	/* body ervoor: Blocksy zet #header later op position: relative */
	body #header { position: sticky; top: 0; z-index: 50; }
	#header [data-device="mobile"] [data-row*="middle"] .ct-container { position: relative; }
	/* Logokolom over de volle breedte met het logo in het midden; klikken gaat door naar de menuknop */
	#header [data-device="mobile"] [data-column="start"] {
		position: absolute;
		inset: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		pointer-events: none;
	}
	#header [data-device="mobile"] [data-column="start"] > [data-items] { justify-content: center; margin: 0; }
	#header [data-device="mobile"] [data-column="start"] .site-branding { margin: 0; pointer-events: auto; }
	#header [data-device="mobile"] [data-column="end"] { grid-column: 2; justify-self: end; }
}

@media (max-width: 1023px) {
	.t10h-footer__grid { grid-template-columns: 1fr 1fr; }
	.t10h-footer__about,
	.t10h-footer__col--wide { grid-column: 1 / -1; }
	.t10h-footer__col--wide ul { columns: 3; }
}

@media (max-width: 719px) {
	.t10h-wrap { padding-inline: 16px; }
	#header [data-row*="middle"] { --height: 72px; }
	#header .site-logo-container { --logo-max-height: 40px; }
	.t10h-footer { padding-top: 36px; }
	.t10h-footer__grid { gap: 28px; }
	.t10h-footer__col--wide ul { columns: 2; }
	.t10h-footer__logo img { height: 38px; }
}
