/* Divi 5 Child (BuildYoursite Base) — custom.css
   Larger custom style blocks go here. This file is enqueued automatically
   after style.css, with cache-busting based on file modified time. */

/* ==========================================================================
   STICKY FOOTER (house standard)
   On pages shorter than the viewport, Divi lets the document simply end and
   the browser paints its default white canvas below the footer. This pins
   the footer to the true bottom of the window instead: the page scaffold
   becomes a flex column at least one viewport tall, and the content area
   absorbs the leftover space.
   ========================================================================== */
#page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Divi 5 wraps output in #et-boc between the page container and the main
   area — every link in the chain must flex for the height to reach down. */
#page-container > #et-boc {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
}

#et-boc > #et-main-area {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
}

#et-main-area > #main-content {
    flex: 1 0 auto;
}
