/* Halva footer presentation only. Content, menus, widgets and utilities stay native. */
body.shd-has-site-header:not(.shd-front-page) :is(.bwp-site-footer, .bwp-footer-widgets-section) {
    --shd-footer-muted: #5f6368;
    margin: 0;
    padding-block: clamp(2rem, 4vw, 3rem);
    background: var(--shd-surface);
    color: var(--shd-footer-muted);
    border-top: 1px solid var(--shd-line);
    border-radius: 0;
    box-shadow: none;
    font: 400 .875rem/1.8 'Open Sans', sans-serif;
    letter-spacing: 0;
    text-align: left;
    overflow-wrap: anywhere;
}
body.shd-has-site-header :is(.bwp-site-footer, .bwp-footer-widgets-section) > .container {
    width: min(100% - 2 * var(--shd-gutter), var(--shd-container));
    max-width: none;
    padding-inline: 0;
}
body.shd-has-site-header :is(.bwp-site-footer-container, .bwp-footer-widgets-container) { max-width: none; padding: 0; }
body.shd-has-site-header .bwp-footer-text { max-width: none; margin: 0; text-align: center; }
body.shd-has-site-header .bwp-footer-text p { margin: 0 0 .75rem; }
body.shd-has-site-header .bwp-footer-text p:last-child { margin-bottom: 0; }
body.shd-has-site-header .bwp-footer-text :is(strong, b),
body.shd-has-site-header .bwp-footer-widgets :is(.widget-title, h2, h3, h4) {
    color: var(--shd-ink);
    font-family: var(--shd-font-display);
    font-weight: 500;
    letter-spacing: -.025em;
}
body.shd-has-site-header .bwp-footer-widgets :is(.widget-title, h2, h3, h4) { font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.4; }
body.shd-has-site-header :is(.bwp-site-footer, .bwp-footer-widgets) a {
    color: var(--shd-ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .25em;
    box-shadow: none;
}
body.shd-has-site-header :is(.bwp-site-footer, .bwp-footer-widgets) a:hover { color: var(--shd-accent); text-decoration-thickness: 2px; }
body.shd-has-site-header .bwp-site-footer a::after { display: none; }
/* Halva's global reset uses !important to remove keyboard outlines. */
body.shd-has-site-header :is(.bwp-site-footer, .bwp-footer-widgets) :is(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--shd-ink) !important; outline-offset: 4px; }
body.shd-has-site-header .bwp-site-footer a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; padding-block: .5rem; vertical-align: middle; }
body.shd-has-site-header .bwp-footer-menu { margin: 0; }
body.shd-has-site-header .bwp-footer-text + .bwp-footer-menu { margin-top: 1rem; }
body.shd-has-site-header .bwp-footer-menu-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.5rem; margin: 0; }
body.shd-has-site-header .bwp-footer-menu-list > li { margin: 0; max-width: 100%; white-space: normal; }
/* Keep the native widget row, including its existing responsive column behavior. */
body.shd-has-site-header .bwp-footer-widgets-container .row > div:has(> .bwp-footer-widgets:not(:has(> *))) { display: none; }
body.shd-has-site-header .bwp-footer-widgets { padding-inline: 0; font: inherit; }
body.shd-has-site-header .bwp-footer-widgets .widget { margin-bottom: 1.5rem; }
body.shd-has-site-header .bwp-footer-widgets .widget:last-child { margin-bottom: 0; }
/* Replace only the decorative separators at the footer boundary with its border. */
body.shd-has-site-header .bwp-footer-widgets-section > .bwp-section-separator,
body.shd-has-site-header .bwp-single-post-section:has(+ :is(.bwp-site-footer, .bwp-footer-widgets-section)) > .bwp-section-separator:last-child { display: none; }
