/* Keep the footer in normal flow, including pages shorter than the viewport.
   Border-box includes the existing fixed-header clearance in the viewport height. */
body.main-layout,
body.user-panel-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
}
body.main-layout > .academy-page-content,
body.user-panel-layout > .academy-page-content {
    display: flow-root;
    flex: 1 0 auto;
    width: 100%;
    min-width: 0;
}
body.main-layout > #footer,
body.user-panel-layout > #footer {
    flex: 0 0 auto;
    width: 100%;
}
