/*
 * Footer, per the Claude Design shared chrome (mbh-chrome.js, Nov 2026).
 * Builds on the v8 footer rules in the global-styles custom CSS: five
 * columns, the legal links in the bottom bar, and collapsible link groups
 * on phones.
 */

.mbh-footer.wp-block-group {
	margin-top: 132px;
}

.mbh-footer__cols {
	grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
	gap: 40px;
}

/* Group headings are buttons so they can collapse on phones; on wider
 * screens they look and behave like plain headings. */
.mbh-footer__group > .mbh-footer__h {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-family: var(--wp--preset--font-family--subtitle);
	font-size: 20px;
	letter-spacing: 0.04em;
	text-align: left;
	color: var(--mbh-peach);
	cursor: default;
}

.mbh-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
}

.mbh-footer__legal a {
	color: #f6d3bc;
}

@media (max-width: 1100px) {
	.mbh-footer__cols {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.mbh-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 820px) {
	.mbh-footer__cols {
		grid-template-columns: 1fr 1fr;
	}

	.mbh-footer.wp-block-group {
		margin-top: 76px;
	}
}

@media (max-width: 640px) {
	.mbh-footer__cols {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.mbh-footer__brand {
		padding-bottom: 24px;
	}

	.mbh-footer__group {
		border-top: 1px solid rgba(255, 242, 225, 0.16);
	}

	.mbh-footer__group > .mbh-footer__h {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin: 0;
		padding: 18px 0;
		cursor: pointer;
	}

	.mbh-footer__group > .mbh-footer__h::after {
		content: "+";
		font-size: 24px;
		line-height: 1;
	}

	.mbh-footer__group.is-open > .mbh-footer__h::after {
		content: "\2212";
	}

	.mbh-footer__group .mbh-footer__links {
		display: none;
		padding-bottom: 20px;
	}

	.mbh-footer__group.is-open .mbh-footer__links {
		display: flex;
	}

	.mbh-footer__find {
		padding-top: 24px;
		border-top: 1px solid rgba(255, 242, 225, 0.16);
	}
}

.mbh-footer__brand img {
	width: 141px;
	height: auto;
}

@media (max-width: 640px) {
	.mbh-footer__group a,
	.mbh-footer__legal a {
		display: inline-block;
		padding-block: 4px;
	}
}
