.chfm-footer,
.chfm-footer * { box-sizing: border-box; }

.chfm-footer {
	--chfm-accent: #7b0505;
	--chfm-text: #333333;
	--chfm-muted: #666666;
	--chfm-line: #e3e3e3;
	--chfm-surface: #ffffff;
	--chfm-soft: #f7f7f7;
	background: var(--chfm-surface);
	border-top: 1px solid var(--chfm-line);
	color: var(--chfm-text);
	font-size: 11px;
	line-height: 1.4;
	width: 100%;
}

.chfm-footer a {
	color: var(--chfm-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

.chfm-footer a:hover { text-decoration-thickness: 2px; }
.chfm-footer a:focus-visible,
.chfm-footer button:focus-visible { outline: 2px solid var(--chfm-accent); outline-offset: 2px; }

.chfm-footer__main { background: var(--chfm-surface); padding: 20px 18px; }
.chfm-footer__grid {
	display: grid;
	align-items: start;
	gap: 26px;
	grid-template-columns: minmax(245px, 1.35fr) minmax(220px, 1.1fr) minmax(245px, 1.25fr);
	margin: 0 auto;
	max-width: 1100px;
}
.chfm-footer__grid--with-associations {
	grid-template-columns: minmax(165px, 0.9fr) minmax(245px, 1.35fr) minmax(220px, 1.1fr) minmax(245px, 1.25fr);
}
.chfm-footer__section { min-width: 0; }
.chfm-footer__section > :first-child { margin-top: 0; }
.chfm-footer__heading {
	color: var(--chfm-text);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.3;
	margin: 0 0 8px;
	padding: 0;
	text-transform: none;
}
.chfm-footer__text,
.chfm-contact__address,
.chfm-footer__section p { color: var(--chfm-muted); margin-bottom: 7px; }
.chfm-footer__text { font-size: 11px; line-height: 1.45; margin-top: 0; overflow-wrap: anywhere; }

.chfm-contact__list { list-style: none; margin: 0 0 7px; padding: 0; }
.chfm-contact__list li { line-height: 1.4; margin: 0 0 3px; }
.chfm-contact__list a { font-weight: 400; text-transform: none; }
.chfm-contact__list li:nth-child(2) a { overflow-wrap: normal; white-space: nowrap; }
.chfm-contact__address {
	display: grid;
	font-style: normal;
	gap: 1px;
	line-height: 1.35;
	margin: 6px 0 8px;
	white-space: normal;
}
.chfm-contact__address span { display: block; margin: 0; }
.chfm-contact__interaction { display: inline-grid; gap: 6px; max-width: 100%; }
.chfm-contact__actions {
	display: grid;
	gap: 6px;
	grid-template-columns: max-content max-content;
	margin: 0;
}

.chfm-button,
.chfm-footer a.chfm-button {
	align-items: center;
	background: transparent;
	border: 1px solid var(--chfm-accent);
	color: var(--chfm-accent);
	display: inline-flex;
	justify-content: center;
	line-height: 1.2;
	min-height: 28px;
	padding: 5px 8px;
	text-decoration: none;
	transition: background-color 120ms ease, color 120ms ease;
}
.chfm-button:hover,
.chfm-footer a.chfm-button:hover { background: var(--chfm-accent); color: #ffffff; }
.chfm-button--outline { margin-top: 3px; min-height: 0; }
.chfm-about-link { margin-top: 7px; width: fit-content; }
.chfm-about-link--disabled {
	border-color: #c9c9c9;
	color: #777777;
	cursor: default;
	opacity: 0.85;
	pointer-events: none;
}

.chfm-associations__list { display: grid; gap: 8px; }
.chfm-association {
	align-items: flex-start;
	border-bottom: 1px solid var(--chfm-line);
	display: flex;
	flex-direction: column;
	padding: 0 0 7px;
}
.chfm-association:last-child { border-bottom: 0; }
.chfm-footer .chfm-association__link { color: var(--chfm-text); display: flex; flex-direction: column; text-decoration: none; }
.chfm-footer .chfm-association__link:hover,
.chfm-footer .chfm-association__link:focus-visible { color: var(--chfm-accent); }
.chfm-footer .chfm-association__link:hover .chfm-association__name,
.chfm-footer .chfm-association__link:focus-visible .chfm-association__name { color: var(--chfm-accent); }
.chfm-association-logo { display: block; height: auto; max-height: 42px; max-width: 135px; object-fit: contain; width: auto; }
.chfm-association-placeholder {
	align-items: center;
	background: var(--chfm-soft);
	border: 1px solid var(--chfm-line);
	color: var(--chfm-muted);
	display: flex;
	font-size: 9px;
	font-weight: 700;
	height: 42px;
	justify-content: center;
	letter-spacing: 0.05em;
	max-width: 130px;
	width: 130px;
}
.chfm-association__name,
.chfm-association__note { display: block; margin-top: 2px; }
.chfm-association__name { color: var(--chfm-text); font-weight: 600; }
.chfm-association__note { color: var(--chfm-muted); }

.chfm-socials { display: grid; gap: 6px; margin: 0; width: 100%; }
.chfm-socials--count-1 { grid-template-columns: minmax(0, 1fr); }
.chfm-socials--count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chfm-socials--count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chfm-socials--count-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chfm-socials--count-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.chfm-socials a {
	align-items: center;
	border: 1px solid var(--chfm-line);
	color: var(--chfm-accent);
	display: inline-flex;
	height: 28px;
	justify-content: center;
	text-decoration: none;
	width: 100%;
}
.chfm-socials a:hover { border-color: var(--chfm-accent); }
.chfm-socials svg { fill: currentColor; height: 13px; width: 13px; }

.chfm-hours { margin: 0; }
.chfm-hours__row {
	border-bottom: 1px solid var(--chfm-line);
	display: grid;
	gap: 8px;
	grid-template-columns: minmax(58px, 0.7fr) minmax(0, 1.3fr);
	font-size: 11px;
	line-height: 1.35;
	padding: 5px 0;
}
.chfm-hours__row:first-child { padding-top: 0; }
.chfm-hours dt { font-weight: 600; }
.chfm-hours dd { color: var(--chfm-muted); margin: 0; min-width: 0; overflow-wrap: anywhere; text-align: right; }

.chfm-footer__bottom { background: var(--chfm-soft); border-top: 1px solid var(--chfm-line); font-size: 10px; padding: 10px 18px; }
.chfm-footer__bottom-inner {
	align-items: center;
	display: flex;
	gap: 8px 20px;
	justify-content: space-between;
	margin: 0 auto;
	max-width: 1100px;
}
.chfm-footer__bottom p { color: var(--chfm-muted); margin: 0; }
.chfm-legal { display: flex; flex-wrap: wrap; gap: 5px 12px; }

.chfm-replacement-candidate[hidden] { display: none !important; }
.chfm-theme-footer-hidden { display: none !important; }
.chfm-admin-page .chfm-settings-form { background: #ffffff; border: 1px solid #dcdcde; margin: 15px 0; max-width: 720px; padding: 12px; }
.chfm-acf-status { background: #ffffff; border: 1px solid #dcdcde; margin: 15px 0; max-width: 720px; padding: 12px; }
.chfm-acf-status h2 { margin-top: 0; }
.chfm-acf-status ul { margin-bottom: 0; }
.chfm-preview-toolbar { display: flex; gap: 4px; margin: 15px 0 8px; }
.chfm-preview-toolbar .is-active { border-color: #7b0505; color: #7b0505; }
.chfm-admin-preview {
	background: #ffffff;
	border: 1px solid #c3c4c7;
	container-type: inline-size;
	margin-right: 20px;
	max-width: 100%;
	overflow: auto;
	transition: width 150ms ease;
}
.chfm-admin-preview.is-tablet { width: 820px; }
.chfm-admin-preview.is-mobile { width: 390px; }

@container (max-width: 900px) {
	.chfm-admin-preview .chfm-footer__grid,
	.chfm-admin-preview .chfm-footer__grid--with-associations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 620px) {
	.chfm-admin-preview .chfm-footer__grid,
	.chfm-admin-preview .chfm-footer__grid--with-associations { grid-template-columns: minmax(0, 1fr); }
	.chfm-admin-preview .chfm-footer__bottom-inner { align-items: flex-start; flex-direction: column; }
	.chfm-admin-preview .chfm-contact__list li:nth-child(2) a { overflow-wrap: anywhere; white-space: normal; }
}
@container (max-width: 360px) {
	.chfm-admin-preview .chfm-contact__interaction { width: 100%; }
	.chfm-admin-preview .chfm-contact__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.chfm-admin-preview .chfm-button { width: 100%; }
}

@media (max-width: 900px) {
	.chfm-footer__grid,
	.chfm-footer__grid--with-associations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
	.chfm-footer__grid,
	.chfm-footer__grid--with-associations { grid-template-columns: minmax(0, 1fr); }
	.chfm-footer__bottom-inner { align-items: flex-start; flex-direction: column; }
	.chfm-contact__list li:nth-child(2) a { overflow-wrap: anywhere; white-space: normal; }
}
@media (max-width: 360px) {
	.chfm-contact__interaction { width: 100%; }
	.chfm-contact__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.chfm-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .chfm-button { transition: none; } }
