@media (min-width: 851px) {
  aside {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    padding-bottom: 0;
  }

  aside .brand,
  aside .brand-logo {
    flex: 0 0 auto;
  }

  aside nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin-right: -12px;
    padding-right: 12px;
    padding-bottom: 28px;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #6f9b88 #10271e;
  }

  aside nav::-webkit-scrollbar {
    width: 9px;
  }

  aside nav::-webkit-scrollbar-track {
    background: #10271e;
  }

  aside nav::-webkit-scrollbar-thumb {
    background: #6f9b88;
    border: 2px solid #10271e;
    border-radius: 999px;
  }

  aside nav details {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 7px;
  }

  aside nav summary {
    position: relative;
    cursor: pointer;
    list-style: none;
    padding: 10px 28px 10px 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    border-radius: 8px;
    user-select: none;
  }

  aside nav summary::-webkit-details-marker {
    display: none;
  }

  aside nav summary::after {
    content: "›";
    position: absolute;
    right: 12px;
    font-size: 18px;
    line-height: 1;
    transform: rotate(0);
    transition: transform .15s ease;
  }

  aside nav details[open] summary::after {
    transform: rotate(90deg);
  }

  aside nav summary:hover {
    background: #214437;
  }

  aside nav details a {
    margin-left: 8px;
    padding: 8px 12px;
    font-size: 14px;
  }

  aside nav a.active {
    background: #d9ef9f;
    color: #10271e;
    font-weight: 800;
  }
}

@media (max-width: 850px) {
  aside nav details {
    flex: 0 0 auto;
  }

  aside nav details a {
    display: block;
    white-space: nowrap;
  }

  aside nav summary {
    cursor: pointer;
    padding: 10px 12px;
    white-space: nowrap;
  }
}
