/* Site frame ------------------------------------------------------------- */
.bc-site {
	display: flex;
	flex-direction: column;
	background: var(--bc-white);
}
.bc-site > main,
.bc-site > .site-main {
	flex: 1 0 auto;
}

.bc-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 var(--bc-gutter);
}

/* Legacy fallback templates (posts, 404, search) */
.bc-container {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 var(--bc-pad-page);
}
.site-main {
	padding-top: 48px;
	padding-bottom: 72px;
}
.bc-product-main {
	padding: 0;
}

/* Home: 1440 px "portal" on the light ground, fills one viewport ---------- */
body.bc-home {
	background: var(--bc-light);
}
body.bc-home .bc-site {
	min-height: 100vh;
	min-height: 100dvh;
	max-width: 1440px;
	margin: 0 auto;
}
body.bc-home .bc-main {
	display: flex;
	flex-direction: column;
	min-height: 0;
}
body.bc-home .bc-main > .elementor {
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* Products page: desktop/tablet view has no page scroll (reference) -------- */
@media (min-width: 600px) {
	body.bc-page-products .bc-site {
		height: 100vh;
		height: 100dvh;
		min-height: 0;
	}
	body.admin-bar.bc-page-products .bc-site {
		height: calc(100dvh - 32px);
	}
	body.bc-page-products .bc-main {
		flex: 1 1 auto;
		min-height: 0;
		overflow-y: auto;
	}
}
/* Phones: keep the footer at the bottom when a tab is short (e.g. Special Purpose text) */
@media (max-width: 599px) {
	body.bc-page-products .bc-site {
		min-height: 100vh;
		min-height: 100dvh;
	}
}

@media (max-width: 760px) {
	.bc-container {
		padding-left: 22px;
		padding-right: 22px;
	}
}
