/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

body {
  display: grid;
  grid-template-areas: "header" "main" "footer";
  grid-template-rows: max-content auto max-content;

  &:has(.primary-nav--active) {
    height: 100%;
    overflow: hidden;
  }
}

body  {
  & > * {
    position: absolute;
    padding-inline: var(--page-padding-inline);
    margin-inline: var(--page-margin-inline);
    width: var(--page-width);
  }

  & > header {
    position: revert;
    grid-area: header;
  }

  & > main {
    position: revert;
    grid-area: main;
  }

  & > footer {
    position: revert;
    grid-area: footer;
  }
}
