@media (min-width:1300px) {

    .toc-link,
    .toc-link:hover {
        text-decoration: none;
        color: #000
    }

    .toc-link.is-active-link,
    .toc-link:hover {
        background-color: #f5f5f5
    }

    /* The TOC lives in a zero-width, full-height absolute column anchored to
       the article's left edge. Unlike the old float+sticky combo, this keeps
       the TOC out of the article's block formatting context, so `clear:`
       rules (isso comments, paper.css) can never compute clearance against
       its sticky-shifted position (a Firefox layout bug source). */
    .js-toc-content {
        position: relative
    }

    .js-toc-wrapper {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 0
    }

    .js-toc {
        position: sticky;
        top: 20px;
        max-height: calc(100vh - 40px);
        padding: 15px;
        background: #fff;
        border-radius: 4px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
        font-size: .75rem;
        width: 220px;
        margin-left: -270px;
        overflow-x: auto
    }

    /* .toc-list / .toc-list-item / .js-toc>.toc-list are defined once below
       (they apply at all widths); only .toc-link needs a wide-screen override. */
    .toc-link {
        display: block;
        padding: 5px 0 5px 5px;
        transition: .2s
    }

    .is-collapsible {
        max-height: 1000px;
        overflow: hidden;
        transition: .3s ease-in-out
    }

    .is-collapsed {
        max-height: 0
    }

    .js-toc::-webkit-scrollbar {
        width: 6px
    }

    .js-toc::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px
    }

    .js-toc::-webkit-scrollbar-thumb {
        background: #d3d3d3;
        border-radius: 3px
    }
}

.js-toc>.toc-list {
    padding-left: 0;
    list-style: none;
}

.toc-list {
    list-style: none;
    padding-left: 10px;
    margin: 0
}

.toc-list-item {
    line-height: 1.4;
}

.toc-link {
    display: block;
    padding: 0px 0 5px 5px;
    transition: .2s
}

/* Publications reuse the same .js-toc-wrapper pattern as blog posts (the paper's
   mount lives inline in its per-paper content; the blog's comes from the
   template): an out-of-flow margin sidebar at >=1300px, and a plain inline TOC
   below that breakpoint. No publication-specific rules are needed. */
