/* Footer + mobile action bar  (footer.php → template-parts/footer/*)
   Options: Clinic Settings → Header & Footer → Footer / Mobile bar */
.site-footer { padding: clamp(64px, 8vw, 90px) 0 30px; overflow: hidden; color: var(--ink); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-h { font-family: var(--font-head); font-weight: var(--heading-weight); font-size: 1.05rem; letter-spacing: -.01em; color: var(--ink); margin: 0 0 16px; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-list a { display: inline-block; padding: 4px 0; }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer .logo { color: var(--ink); }
.foot-about { color: var(--muted); max-width: 32ch; margin-top: 16px; }
.foot-nap { color: var(--muted); font-size: .9rem; max-width: 34ch; margin-top: 14px; opacity: .85; }
/* Big footer name: text fits the width on one line (CSS estimate, then exact fit in core.js → wordmarkFit) */
.wordmark-box { container-type: inline-size; margin: 70px 0 20px; }
.wordmark { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.5rem, 22vw, 22rem); font-size: min(22rem, calc(148cqi / var(--chars, 6))); letter-spacing: -.05em; line-height: .9; padding-bottom: .06em; color: var(--ink); width: max-content; max-width: none; white-space: nowrap; user-select: none; }
.wordmark-img { width: auto; line-height: 0; padding: 0; }
.wordmark-img img { display: block; width: auto; max-width: 100%; height: auto; max-height: clamp(90px, 24cqi, 340px); }
.wordmark-img .wm-dark { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not(.no-dark) .wordmark-img.has-dark .wm-main { display: none; }
	:root:not(.no-dark) .wordmark-img.has-dark .wm-dark { display: block; }
}
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; font-size: .88rem; color: var(--muted); }
.foot-base nav { display: flex; gap: 18px; flex-wrap: wrap; }
/* Popular searches (template-parts/footer/searches.php) – one centred line of links, “|” between */
.foot-pop { border-top: 1px solid var(--line); padding: 26px 0 24px; text-align: center; }
.foot-pop-h { margin-bottom: 10px; }
.pop-list { list-style: none; margin: 0 auto; padding: 0; max-width: 1040px; font-size: .88rem; line-height: 1.5; }
.pop-list li { display: inline; white-space: nowrap; }
.pop-list li:not(:last-child)::after { content: "|"; margin: 0 .3em 0 .55em; color: var(--muted); opacity: .5; } /* “|” stays at the end of a line, never starts one */
.pop-list a { display: inline-block; padding: 5px 0; }
@media (max-width: 600px) { .pop-list { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 18px; } .pop-list li:not(:last-child)::after { content: none; } }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* Mobile action bar (only when switched on → body.has-mbar) */
.mbar { display: none; }
@media (max-width: 760px) {
	body.has-mbar { --mbar-space: calc(84px + env(safe-area-inset-bottom, 0px)); padding-bottom: var(--mbar-space); }
	.mbar {
		display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px;
		position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 70;
		padding: 8px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
		border: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(6, 31, 54, .4);
		transition: transform .4s var(--ease-out), opacity .3s;
	}
	.mbar a { min-height: 48px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ink); }
	.mbar .icon { width: 18px; height: 18px; }
	.mbar .book { background: var(--btn); color: var(--btn-text); }
	.menu-open .mbar, .mbar.is-hidden { transform: translateY(140%); opacity: 0; }
}
