/*
 * W2H Website – aanvullingen op de stijlen van het bord.
 * Staat los van boards/*-head.html, zodat dit niet verdwijnt als het bord opnieuw wordt opgebouwd
 * (build-website.ps1).
 */

/* Zelfde maatvoering als de themapagina's (shop, levering, utilities): max. 1200 px inclusief 24 px marge.
   De Kadence-stijlen (met de algemene box-sizing) staan op deze pagina's uit, waardoor kop, bovenbalk en
   footer 48 px breder werden en de inhoud (1240 px + 28 px) weer anders uitlijnde. */
body.w2h-sitepage .w2h-topin,
body.w2h-sitepage .w2h-hdr,
body.w2h-sitepage .w2h-footer__in,
body.w2h-sitepage .w2h-cookie__box { box-sizing: border-box; }
#w2h-site section[style*="max-width:1240px"] {
	max-width: 1200px !important;
	box-sizing: border-box !important;
	padding-left: 24px !important;
	padding-right: 24px !important;
}

/* Door de smallere inhoud (1152 i.p.v. 1240 px) zou bij een paar rasters een kolom wegvallen
   (bijv. 4 kaarten → 3 + 1 los). Iets kleinere minimumbreedte = hetzelfde aantal kolommen als in het ontwerp. */
#w2h-site [style*="minmax(min(100%,280px),1fr));gap:16px"] { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)) !important; }
#w2h-site [style*="minmax(min(100%,280px),1fr));gap:28px 40px"] { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)) !important; }
#w2h-site [style*="minmax(min(100%,380px),1fr))"] { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)) !important; }
#w2h-site [style*="minmax(min(100%,220px),1fr))"] { grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)) !important; }
#w2h-site [style*="minmax(min(100%,200px),1fr));gap:8px"] { grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)) !important; }

/* Blog: het nieuwste artikel uitgelicht over de volle breedte (foto links, tekst rechts),
   zodat de overige negen artikelen precies drie rijen van drie vormen. */
/* De kaart heeft inline "all:unset", daarom overal !important. */
.w2hs-blog-grid > a:first-child {
	grid-column: 1 / -1 !important;
	display: grid !important;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) !important;
	grid-template-rows: 1fr auto auto auto auto 1fr !important;
	column-gap: 48px !important;
	row-gap: 14px !important;
	padding-bottom: 28px !important;
	border-bottom: 1px solid #E6DECF !important;
}
.w2hs-blog-grid > a:first-child > img { grid-column: 1; grid-row: 1 / -1; }
.w2hs-blog-grid > a:first-child > :nth-child(2) { grid-column: 2; grid-row: 2; }
.w2hs-blog-grid > a:first-child > :nth-child(3) { grid-column: 2; grid-row: 3; font-size: clamp(34px, 3.6vw, 48px) !important; }
.w2hs-blog-grid > a:first-child > :nth-child(4) { grid-column: 2; grid-row: 4; font-size: 18px !important; }
.w2hs-blog-grid > a:first-child > :nth-child(5) { grid-column: 2; grid-row: 5; }
@media (max-width: 820px) {
	.w2hs-blog-grid > a:first-child { display: flex !important; flex-direction: column !important; border-bottom: 0 !important; padding-bottom: 0 !important; }
	.w2hs-blog-grid > a:first-child > :nth-child(3) { font-size: 32px !important; }
	.w2hs-blog-grid > a:first-child > :nth-child(4) { font-size: 16px !important; }
}

/* Horizontaal scrollende rijen (filters in de Housing Guide op mobiel): geen zichtbare scrollbalk,
   wel nog te vegen. */
#w2h-site [style*="overflow-x:auto"], #w2h-site [style*="overflow-x: auto"] {
	scrollbar-width: none;
	-ms-overflow-style: none;
}
#w2h-site [style*="overflow-x:auto"]::-webkit-scrollbar, #w2h-site [style*="overflow-x: auto"]::-webkit-scrollbar {
	display: none;
}
