html,
body {
    min-height: 100%;
}

body {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.site-footprint {
    box-sizing: border-box;
    width: 100%;
    margin: 28px auto 0;
    padding: 18px 20px 22px;
    color: #8a94a3;
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}

/* Homepage and route pages: keep the footprint at the true bottom
   of the left sidebar when the sidebar content is short. */
.sidebar-scroll {
    display: flex;
    flex-direction: column;
}

.sidebar-scroll > .site-footprint {
    flex: 0 0 auto;
    margin-top: auto;
    padding: 18px 4px 10px;
    border-top: 1px solid rgba(132, 145, 164, 0.18);
}

/* Standalone SEO pages: push the footer to the viewport bottom when
   page content is short, but let it follow content on long pages. */
.route-directory-main,
.seo-main,
.error-page {
    flex: 1 0 auto;
}

body > .site-footprint {
    flex: 0 0 auto;
    margin-top: auto;
}

.route-directory-main + .site-footprint,
.seo-main + .site-footprint {
    max-width: 1180px;
}

.error-page + .site-footprint {
    margin-top: auto;
}

@media (max-width: 720px) {
    .site-footprint {
        padding-right: 16px;
        padding-left: 16px;
    }
}
