/*
  Multazm Canonical UI — Global Page Host Layout
  Candidate Implementation ID: IMPL-LAYOUT-GLOBAL-PAGE-HOST-001
  Base Contract ID: UI-BASE-GLOBAL-PAGE-HOST-001

  Purpose:
  - Short page: the main slot grows so the footer reaches the viewport bottom.
  - Long page: the footer remains in normal document flow after the content.
  - The footer uses normal document flow with no fixed or sticky positioning.
*/

.mz-page-host,
.mz-page-host *,
.mz-page-host *::before,
.mz-page-host *::after {
  box-sizing: border-box;
}

.mz-page-host {
  display: flex;
  flex-direction: column;
  min-block-size: 100vh;
  min-block-size: 100dvh;
  min-inline-size: 0;
  inline-size: 100%;
}

.mz-page-host__header,
.mz-page-host__footer {
  flex: 0 0 auto;
  min-inline-size: 0;
  inline-size: 100%;
}

.mz-page-host__main {
  flex: 1 0 auto;
  min-inline-size: 0;
  inline-size: 100%;
}
