/* Magazine sidebars scroll independently while the main document scrolls. */
@media (min-width: 768px) {
  .auth_top_row > .col-md-3 {
    position: sticky;
    top: 64px;
    align-self: flex-start;
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
  }

  /* Keep expanded navigation within the sidebar's scrollable area. */
  .auth_top_row > .col-md-3 .dropdown-menu {
    position: static !important;
    float: none;
    transform: none !important;
    max-width: 100%;
    min-width: 100%;
  }

  .auth_top_row > .col-md-3 .dropdown-item {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
@media (min-width: 768px) {
  .magazine-index .auth_top_row > .col-md-3 {
    z-index: 1020;
  }

  .magazine-index .auth_top_row > .col-md-3 .dropdown-menu {
    position: fixed !important;
    right: auto !important;
    bottom: auto !important;
    width: max-content;
    min-width: 0;
    margin-top: 0;
    padding-top: 0;
    max-height: calc(100vh - 16px);
    overflow-x: auto;
    max-width: calc(100vw - 16px);
    overflow-y: auto;
    z-index: 1050;
  }
}
.magazine-index .auth_top_row > .col-md-3 .dropdown-item {
  white-space: nowrap;
  overflow-wrap: normal;
}

@media (max-width: 767.98px) {
  .magazine-index .auth_top_row > .col-md-3 .dropdown-menu {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }
}