.DiscussionPage-nav {
  > ul {
    padding: 0;
    margin: 0;
    list-style: none;
  }
}

@media @phone {
  .DiscussionPage-nav {
    margin: 0 -15px;
    border-bottom: 1px solid var(--control-bg);

    > ul > li {
      margin: 15px;
      display: inline-block;

      &.item-controls, &.item-scrubber {
        margin: 0;
        display: block;
      }
    }
  }
}
@media @tablet-up {
  .DiscussionPage {
    --sidebar-width: 180px;
    --gap: 55px;

    .Page {
      .Page--cols();

      &-container {
        flex-direction: row-reverse;
      }

      &-content {
        margin-top: 10px;
      }

      &-sidebar {
        margin-top: 0;
      }
    }
  }

  .DiscussionPage-nav {
    align-self: start;
    position: sticky;
    top: var(--header-height);
    padding-top: 32px;
    z-index: 1;

    > ul {
      > li {
        margin-bottom: 10px;
      }
    }
    .ButtonGroup, :not(.ButtonGroup) > .Button {
      width: 100%;
    }
    .ButtonGroup:not(.itemCount1) {
      .Button:first-of-type {
        width: 77%;
      }
      .Dropdown-toggle {
        width: 22%;
      }
    }
  }
}

// Cap the post stream for readability on wide screens and centre it, so the
// slack splits around the column instead of pooling beside the sidebar. The cap
// is in ch, measured against the column's own (wide-screen) font size.
@media @desktop-hd {
  .DiscussionPage .Page-content {
    font-size: var(--post-font-size);
    max-width: var(--discussion-content-max-width);
    margin-left: auto;
    margin-right: auto;
  }
}
