:root {
    --site-header-height: 4rem;
    --site-footer-height: 3.75rem;
    scroll-padding-top: calc(var(--site-header-height) + 1rem);
    scroll-padding-bottom: calc(var(--site-footer-height) + 1rem);
}

body {
    min-height: 100vh;
    margin-bottom: 0;
    padding-bottom: var(--site-footer-height);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    margin-bottom: 1rem;
    background: var(--bs-body-bg);
}

/* Bring anchors and focused controls clear of the fixed bars. */
main [id] {
    scroll-margin-top: 1rem;
    scroll-margin-bottom: 1rem;
}
