/**
 * @file
 * Grid system definition for the footer top and footer bottom layouts.
 *
 * Replaces the corresponding Olivero stylesheet.
 *
 * @see core/themes/olivero/css/layout/layout-footer.css
 */

/**
 * Creates stacking context ensuring that child elements can never appear in
 * front of mobile navigation.
 */

.site-footer {
  position: relative;
  z-index: 1;
}

.site-footer__inner {
  padding-block: var(--sp2);

  @media (min-width: 75rem) {
    padding-block-end: var(--sp4);
  }
}

.region--footer_top__inner,
.region--footer_bottom__inner {
  & > * {
    margin-block-end: var(--sp2);

    @media (min-width: 43.75rem) {
      flex: 1;
      margin-block-end: 0;
    }
  }
}

.site-footer__top {
  --grid-col-count: 1;
  grid-row-gap: var(--grid-gap);

  @media (min-width: 24rem) {
    --grid-col-count: 2;
  }

  @media (min-width: 62.5rem) {
    --grid-col-count: 4;
  }
}

@media (min-width: 43.75rem) {
  .region--footer_bottom__inner {
    display: flex;
    flex-wrap: wrap;
  }
}
