//
// Right side toc
//
.td-toc {
  @include themed() {
    border-left: 1px solid t($theme-border-color);
    background-color: t($theme-td-toc-bg-color);
  }

    @supports (position: sticky) {
        position: sticky;
        top: 4rem;
        left: 10rem;
        height: calc(100vh);
        overflow-y: auto;
    }

    order: 2;
    padding-top: 0.75rem;
    padding-bottom: 1.5rem;
    vertical-align: top;

    a {
        display: block;
        font-weight: $font-weight-light;
        padding-bottom: .25rem;
    }

    li {
        list-style: none;
        display: block;
    }

    li li {
        margin-left: 0.5rem;
    }

    .td-page-meta {
        a {
            font-weight: $font-weight-medium;
        }
    }

    #TableOfContents {
        // Hugo's ToC is a mouthful, this can be used to style the top level h2 entries.
        > ul > li > ul > li > a {}

        a {
          @include themed() {
            color: t($theme-td-toc-text-color);
          }

            &:hover {
              @include themed() {
                color: t($theme-td-toc-text-hover-color);
              }
              text-decoration: none;
            }
        }
    }

    ul {
        padding-left: 0;
    }
}