/*
  Dynamic Agility Website
  Sidebar viewport behavior
*/

:root {
  --da-auth-shell-height: 3.65rem;
}

@media (min-width: 1101px) {
  .da-exercise-page {
    --da-sidebar-width: 22rem;
    grid-template-columns: var(--da-sidebar-width) minmax(0, 1fr);
    align-items: start;
  }

  .da-exercise-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 320 !important;
    width: var(--da-sidebar-width);
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  .da-exercise-sidebar .da-sidebar-brand {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: var(--da-auth-shell-height);
    min-height: var(--da-auth-shell-height);
    padding: 0.7rem 1.25rem;
  }

  .da-exercise-sidebar .da-sidebar-brand p {
    margin-top: 0.12rem;
    line-height: 1.15;
  }

  .da-exercise-content {
    grid-column: 2;
  }

  .da-sidebar-scroll {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (max-width: 1100px) {
  .da-exercise-sidebar {
    position: sticky;
    top: 0;
    z-index: 320 !important;
  }
}
