aside {
  position: fixed;
  top: 60px;
  bottom: 0px;
  left: calc(50% - 540px);
  width: 350px;
  z-index: 1000;
  background: var(--neutral-20);
  height: calc(100vh - 50px);

  [data-space="Partners"] &::before { height: 30px; }

  &::before,
  &::after {
    content: "";
    width: calc(100% - 20px);
    right: 20px;
    display: block;
    position: absolute;
    z-index: 10;
  }

  &::before {
    background: linear-gradient( var(--neutral-20) 10%, rgba(244, 245, 247, .15) 100%);
    top: 0;
    height: 44px;
  }

  &::after {
    background: linear-gradient(rgba(244, 245, 247, .1) 0%, var(--neutral-20) 70%);
    bottom: 0;
    height: 115px;
    pointer-events: none;
  }
}

details.filters { display: none; }

.page_list {
  font-size: 16px;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 45px 20px 108px 0;
  box-sizing: border-box;
  height: calc(100vh - 60px);

  [data-space="Partners"] & { padding-top: 20px; }

  .open > .fa-angle-right::before {
    content: "\f107";
    margin-left: -2px;
  }

  ul, li { margin: 0; }

  ul {
    list-style: none;
    padding-left: 20px;

    li {
      position: relative;
      width: 100%;
    }
  }

  a {
    display: block;
    padding: 5px 0;
    height: 28px;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--blue-500);
    text-decoration: none;
    font-size: 15px;

    &:hover { color: var(--blue-200); }

    &.current {
      font-weight: 500;
      color: var(--neutral-800);

      &:hover { text-decoration: none; }
    }
  }

  .collapsed .page_list_sub { display: none; }

  .page_link_toggle {
    position: absolute;
    cursor: pointer;
    left: -20px;
    top: 0;
    height: 28px;
    width: 20px;
    text-decoration: none;
    color: var(--neutral-400);
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media screen and (max-width: 1110px) {
  aside {
    display: block !important;
    opacity: 1;
    left: -100%;
    top: 88px;
    width: 100%;
    transition: .4s;

    &::before {
      background: linear-gradient( var(--neutral-20) 50%, rgba(244, 245, 247, .15) 100%);
      height: 12px;
      top: 37px;
    }

    &::after { height: 135px; }
    &.open_menu { left: 0; }
  }

  details.filters {
    position: fixed;
    width: 100%;
    z-index: 1000;
    background: var(--neutral-0);
    display: block;
    margin: 0;
    padding: 0;
    border: none;

    summary {
      border-bottom: 1px solid var(--neutral-60);
      padding: 6px 10px;
      background: var(--neutral-30);
      color: var(--neutral-200);
      display: flex;
      align-items: center;

      &::after {
        font-family: "Font Awesome 7 Pro";
        content: "\f067";
        font-weight: 300;
        font-size: 14px;
        color: var(--neutral-400);
        background: var(--neutral-0);
        display: block;
        margin-left: auto;
        border-radius: var(--border-radius);
        padding: 6px 8px;
        border: 1px solid var(--neutral-400);
      }

      span:first-of-type { margin-right: 6px; }
      span:last-of-type { color: var(--neutral-800); }
    }
  }

  details[open].filters {
    summary::after { content: "\f068"; }

    a {
      margin: 0;
      border-bottom: 1px solid var(--neutral-30);
      padding: 10px;

      &.selected { font-weight: 500; }
      &:last-of-type { box-shadow: 0 5px 6px rgba(0, 0, 0, .15); }
    }
  }

  .page_list_top { padding: 0; }

  .page_list {
    padding: 45px 10px 145px 0;

    .page_link_toggle {
      left: auto;
      top: 4px;
      right: 0;
      display: flex;
      width: 24px;
      height: 24px;
      border-radius: var(--border-radius);
      padding: 2px;
      border: 1px solid var(--neutral-400);
      text-align: center;
    }

    .fa-angle-right::before { content: "\f067"; }

    .open > .fa-angle-right:before {
      content: "\f068";
      margin-left: 0;
    }

    ul a {
      padding: 10px 0;
      margin-right: 48px;
      height: auto;
      white-space: normal;
      text-overflow: clip;
    }
  }
}
