/* Sticky footer: when main content is shorter than the viewport, footer sits at
   the bottom with no white gap below (layout-shell used by _Layout.cshtml). */

/* Page chrome background — loaded in AEM + non-AEM (site.css is skipped in AEM mode).
   html + body + main paint #F5F5F7 so margins/gaps between widgets show grey, not default white. */
html {
    height: 100%;
    background-color: #F5F5F7;
}

body.layout-body {
    background-color: #F5F5F7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

body.layout-body.layout-body--minimal > .layout-main--minimal {
    flex: 1 1 auto;
    width: 100%;
    background-color: #F5F5F7;
}

body.layout-body:not(.layout-body--minimal) .layout-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    background-color: #F5F5F7;
}

body.layout-body:not(.layout-body--minimal) .layout-main {
    flex: 1 1 auto;
    width: 100%;
    background-color: #F5F5F7;
}

/* Bootstrap path: inner container still inherits grey strip behind full-width widgets */
body.layout-body .layout-main .layout-content {
    background-color: #F5F5F7;
}

body.layout-body:not(.layout-body--minimal) .layout-footer {
    flex-shrink: 0;
    margin-top: auto;
}
