/**
 * Pontiac Ouest — Theme Builder pages (body.tb-core-page).
 *
 * Theme Builder renders adopted pages with its own template and the site's
 * Elementor header/footer. No Brand Kit is configured on this site, so its
 * tokens fall back to DM Sans; map them to the Elementor kit instead and make
 * the page header match the site-wide Elementor banner (Single Page Template).
 */

body.tb-core-page {
	--cm-font-body: "Source Sans 3", Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
	--cm-font-menu: "Source Sans 3", Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
	--cm-font-heading: "Fjalla One", Roboto, sans-serif;
	--cm-color-background: #ffffff;
	--cm-color-text: #000000;
	--cm-content-width: 1280px;
}

/* —— Page header → same look as the Elementor banner —— */

body.tb-core-page .tb-core-page__block--page-header.tb-core-page__block--image-overlay {
	min-height: var(--po-page-header-h, 500px);
	align-items: flex-end;
	text-align: left;
	background-color: #222233;
}

/* Shared with .po-banner (po-theme.css): keep both header styles in sync. */

/* Coloured municipality line under the header image (matches .po-banner). */
body.tb-core-page.po-has-muni .tb-core-page__block--page-header.tb-core-page__block--image-overlay {
	border-bottom: 6px solid var(--po-accent);
}

body.tb-core-page .tb-core-page__block--page-header.tb-core-page__block--image-overlay::before {
	background: rgba(34, 34, 51, 0.75);
}

body.tb-core-page .tb-core-page__block--page-header .tb-core-page__block-inner--overlay {
	max-width: 1280px;
	padding: 0 20px 24px;
}

body.tb-core-page .tb-core-page__block--page-header.tb-core-page__block--image-overlay .tb-core-page__block-body {
	width: auto;
	max-width: none;
}

body.tb-core-page .tb-core-page__block--page-header .tb-core-page__block-title {
	margin: 0;
	font-family: "Fjalla One", sans-serif;
	font-size: clamp(2.6rem, 6vw, 4.5rem);
	font-weight: 900;
	line-height: 1.2;
	text-transform: uppercase;
	color: #fff;
}

/* —— Full-width HTML blocks that carry their own layout (.po-meetings) —— */

body.tb-core-page .tb-core-page__main:has(> .tb-core-page__block--html .po-meetings) {
	max-width: none;
	padding: 0;
}

body.tb-core-page .tb-core-page__block--html:has(.po-meetings) {
	margin-bottom: 0;
}

body.tb-core-page .tb-core-page__block--html .tb-core-page__block-inner--html:has(.po-meetings) {
	max-width: none;
	padding: 0;
}

@media (max-width: 767px) {
	body.tb-core-page .tb-core-page__block--page-header.tb-core-page__block--image-overlay {
		min-height: var(--po-page-header-h, 340px);
	}

	body.tb-core-page .tb-core-page__block--page-header .tb-core-page__block-inner--overlay {
		padding: 0 16px 20px;
		text-align: center;
	}
}
