main {
    position: relative;
}

.resource-list {
    list-style: none;
}

.resource-list li a {
    font-weight: 900;
    text-decoration: none;
}

.resource-list li p {
    font-style: italic;
}

.custom-numbered {
    list-style: none;
}

.resource-body {
    justify-content: left;
}

.resource-body * {
    position: relative;
}

.resource-body ul,
.resource-body h2,
.resource-body h3,
.resource-body h4 {
    text-align: left;
}

.resource-body .custom-numbered > li > a,
.resource-body h2 a,
.resource-body h3 a,
.resource-body h4 a {
    position: absolute;
    /* Old school trick to make the page scroll to a bit above the heading. */
    top: -125px;
}

.toc-container {
    background-color: #fff;
    border: 3px solid var(--jazzy-blue-primary);
    border-radius: 5px;
    display: none;
    font-size: 0.85em;
    margin: 1em;
    position: absolute;
    width: 200px;
    z-index: 5;
}

.toc-container.fixed {
    position: fixed;
    top: 100px;
    left: 0;
}

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

.toc-list ul {
    list-style: none;
    padding-left: 1em;
}

.toc-icon {
    cursor: pointer;
    padding: 0.2em;
}

.toc-icon svg {
    width: 4em;
    height: 4em;
}

@media (min-width: 769px) {
    .resource-body {
        padding: 2em 225px;
    }

    .toc-container {
        display: block;
    }
}

@media (min-width: 1081px) {
    .resource-body {
        padding: 2em 300px;
    }

    .toc-container {
        width: 225px;
    }

    .toc-list ul {
        padding-left: 1.5em;
    }
}