html {
  scroll-padding-top: 3.75rem;
  font-size: 16px;
}

body {
  font-family: Sora, system-ui, sans-serif;
  position: relative;
  font-weight: 300;
  background: var(--primary);
  background: linear-gradient(160deg, var(--primaryLight) 0%, var(--primaryDark) 72%);
  background-attachment: fixed;
  background-size: cover;
  min-height: 100vh;
}

.sticky {
  position: sticky;
  z-index: 10;
  top: 2.75rem;
}

@media screen and (min-width: 992px) { 
  .sticky {
    top: 0;
  }
}

@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1400px;
  }
}

.offcanvas {
  background-color: var(--offWhite);
}

.btn-transparent,
.btn-transparent:link,
.btn-transparent:visited {
  background-color: transparent;
  color: var(--primary);
  border: none;
  text-decoration: none;
}

.btn-transparent:hover,
.btn-transparent:active {
  color: var(--primaryVeryLight);
}

.btn-transparent:disabled {
  color: var(--textVeryLight);
}

/* --- PUBLIC LAYOUT --- */

#public-header {
  height: 336px;
}

#public-main {
  min-height: calc(100vh - 336px);
  background-color: var(--offWhite);
  border-top-left-radius: 3rem;
  border-top-right-radius: 3rem;
  padding: 2rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

#public-header img {
  max-height: 160px;
}

#public-header .title {
  font-size: 1.75rem;
  color: var(--offWhite);
  font-weight: 500;
  border-bottom: none;
  max-width: 408px;
  margin-left: auto;
  margin-right: auto;
}

#public-main h1 {
  color: var(--accent);
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 2rem;
  padding-bottom: .25rem;
}

@media (min-width: 992px) {
  #public {
    position: relative;
    padding-left: clamp(360px, 45vw, 960px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-right: 1rem;
  }

  #public-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 500;
    height: 100vh;
    width: clamp(360px, 45vw, 960px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  #public-main {
    min-height: calc(100vh - 2rem);
    border-radius: 3rem;
    padding: 1rem;
  }
}

/* --- LOGIN PAGE --- */

#login-page {
  width: 380px;
  max-width: calc(100vw - 2rem);
  min-height: 350px;
}

/* --- APP LAYOUT --- */

#app {
  background-color: var(--primaryDark);
  padding: 2.75rem 0 0;
  position: relative;
}

#app-main {
  background-color: var(--offWhite);
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  min-height: calc(100vh - 2.75rem);
}

#app-menu {
  background: var(--primary);
  background: linear-gradient(160deg, var(--primaryLight) 0%, var(--primaryDark) 72%);
  color: var(--primaryContrast);
  border: none;
}

@media (min-width: 992px) {
  #app {
    padding: 1rem 1rem 1rem 16rem;
  }
  
  #app-main {
    border-radius: 1rem;
    min-height: calc(100vh - 2rem);
  }
  
  #app-menu {
    background: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 16rem;
  }
}

#app-top-bar {
  color: var(--offWhite);
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 500;
  background-color: var(--primaryLight);
  height: 2.75rem;
}

#app-top-bar .btn-transparent {
  color: var(--primaryContrast);
}

#app-top-bar .btn-transparent:hover,
#app-top-bar .btn-transparent:active {
  color: var(--primaryVeryLight);
}

#app-slogan {
  font-size: .75rem;
  font-weight: 500;
  min-width: max-content;
}

#app-menu-open-btn,
#app-menu-close-btn  {
  width: 2.75rem;
  text-align: center;
}

#app-menu nav a {
  color: var(--primaryContrast);
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  align-items: center;
  text-decoration-color: transparent;
  text-underline-offset: .375rem;
}

#app-menu nav a:hover,
#app-menu nav a:active,
#app-menu nav a.active {
  color: var(--yellowVeryLight);
  text-decoration-color: var(--yellowVeryLight);
}

#app-menu .btn-transparent {
  text-underline-offset: .375rem;
  color: var(--offWhite);
}

#app-menu .btn-transparent:hover,
#app-menu .btn-transparent:active {
  color: var(--offWhite);
  text-decoration-color: var(--offWhite);
  text-decoration: underline;
}

#app-user-tools .dropdown-menu {
  background-color: var(--primaryDark);
}

#app-user-tools #avatar {
  width: 2.25rem;
  height: 2.25rem;
}

#app-user-tools .user-name {
  font-size: .75rem;
}

#app-user-tools .user-name .name {
  font-weight: 600;
}

#app-header {
  background-color: var(--offWhite);
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

#app-header h1 {
  color: var(--accent);
  font-size: 2rem;
  font-weight: 500;
  margin: 0;
}