/* Footer ancestors vary across the legacy page templates. */
body > .wrapper.page,
body > .wrapper.page div:has(.footer) {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}
body > .wrapper.page {
    min-height: 100vh;
    min-height: 100dvh;
}
body > .wrapper.page .footer {
    flex-shrink: 0;
    margin-top: auto;
}
body > .wrapper.page > .footer,
body > .wrapper.page > .container-white + .footer {
    margin-top: auto;
}
/* Keep the homepage footer in the final fullpage section. */
.home-page #section1,
.home-page #section1 > .fp-tableCell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}
.home-page #section1 > .fp-tableCell {
    flex-grow: 1;
}
.home-page #section1 .footer {
    margin-top: auto;
    flex-shrink: 0;
}
