/* Loaded after WordPress global-styles to override block defaults */

/* Footer watermark: single centered “hero” mark above content */
.cbf-footer {
	--cbf-footer-watermark-height: clamp(240px, 18vw, 360px);
	--cbf-footer-links-offset-y: clamp(28px, 2vw, 70px);
	--cbf-footer-links-offset-x: clamp(0px, 2vw, 40px);
}

.cbf-footer__watermark {
	min-height: var(--cbf-footer-watermark-height);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	pointer-events: none;
}

.cbf-footer__watermark-img img {
	width: min(1200px, 100%);
	height: auto;
	display: block;
	opacity: 1;
}

.cbf-footer__links-panel {
	position: static;
	width: min(860px, 100%);
	margin: var(--cbf-footer-links-offset-y) 0 0 !important;
	transform: translateX(var(--cbf-footer-links-offset-x));
	padding: 14px 16px;
	border-radius: 16px;
	background: rgba(11, 18, 32, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.10);
	margin-left: auto;
}

/* Force footer panel links to be light (global-styles sets links to cbf-primary) */
.cbf-footer__links-panel a:where(:not(.wp-element-button)):link,
.cbf-footer__links-panel a:where(:not(.wp-element-button)):visited {
	color: var(--wp--preset--color--cbf-sand, #ffffff) !important;
	text-decoration-color: rgba(255, 255, 255, 0.55);
}
.cbf-footer__links-panel a:where(:not(.wp-element-button)):hover,
.cbf-footer__links-panel a:where(:not(.wp-element-button)):active,
.cbf-footer__links-panel a:where(:not(.wp-element-button)):focus {
	color: var(--wp--preset--color--cbf-accent, #F5BD29) !important;
	text-decoration-color: currentColor;
}
.cbf-footer__links-panel :where(h1,h2,h3,h4,h5,h6,p,li,span) {
	color: var(--wp--preset--color--cbf-sand, #ffffff) !important;
}
.cbf-footer__links-panel :where(li)::marker {
	color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 900px) {
	.cbf-footer__links-panel {
		margin-top: 24px !important;
		transform: none;
		width: 100%;
	}
	.cbf-footer__watermark {
		min-height: 180px;
	}
}
