/**
 * Common Design: Page Layout
 */
html {
  height: 100%;
}

body {
  min-height: 100%;
}

/* Drupal-generated parent of our CD layout markup */
.dialog-off-canvas-main-canvas {
  height: 100vh;
}

/**
 * CD Page Layout
 *
 * Flex is used to fix the footer to the bottom of the screen, regardless of
 * viewport height.
 *
 * - .cd-page-layout-container height is 100% of viewport; forms Flex container.
 * - .cd-header height is fixed.
 * - #main-content grows to fit the available space.
 * - .cd-soft-footer (optional) has variable height.
 * - .cd-footer has variable height, sticks to the bottom of the viewport.
 */
.cd-page-layout-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%; /* @IE11 */
  margin: 0 auto;
  padding: 0;
}
.cd-header {
  flex-shrink: 0;
}
#main-content {
  flex: 1 0 auto;
}
.cd-soft-footer {
  flex-shrink: 0;
}
.cd-footer {
  flex-shrink: 0;
}
