// These are styles which are both common in layout w/ vertical nav & horizontal nav
@use "@layouts/styles/rtl";
@use "@layouts/styles/placeholders";
@use "@layouts/styles/mixins";
@use "@configured-variables" as variables;

html {
  min-height: calc(100% + env(safe-area-inset-top));
}

body {
  background: rgb(var(--v-theme-background));
  overscroll-behavior-y: contain;
  --webkit-overflow-scrolling: touch;
}

body,
#app,
.v-application {
  min-height: 100%;
}

.layout-vertical-nav {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

.navbar-content-container {
  padding-top: env(safe-area-inset-top);
}

.layout-page-content {
  @include mixins.boxed-content(true);

  flex-grow: 1;

  // TODO: Use grid gutter variable here
  padding-block: 0.5rem;
  padding-top: calc(env(safe-area-inset-top) + 70px);
}

.layout-footer {
  .footer-content-container {
    block-size: variables.$layout-vertical-nav-footer-height;
  }

  .layout-footer-sticky & {
    position: sticky;
    inset-block-end: 0;
    will-change: transform;
  }

  .layout-footer-hidden & {
    display: none;
  }
}
