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 h2 a,
.resource-body h3 a,
.resource-body h4 a {
    color: inherit;
    text-decoration: inherit;
}

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

button.resource-copy-link,
div.copy-link-success {
    background-color: transparent;
    border: 0;
    cursor: pointer;
    display: inline-block;
    margin: 0.3rem 0 0 0.5rem;
    padding: 0;
    position: absolute;
}

button.resource-copy-link {
    /* Filter black icons to light jazzy-blue. https://codepen.io/sosuke/pen/Pjoqqp *
    filter: invert(54%) sepia(15%) saturate(1059%) hue-rotate(200deg) brightness(88%) contrast(86%); */
    filter: invert(68%) sepia(26%) saturate(413%) hue-rotate(201deg) brightness(93%) contrast(92%);
}

h2 button.resource-copy-link img,
h2 .copy-link-success img {
    height: 1.5rem;
}

h3 button.resource-copy-link img,
h3 .copy-link-success img {
    height: 1.25rem;
}

.copy-link-success {
    opacity: 0;
    /* Filter black icons to green. https://codepen.io/sosuke/pen/Pjoqqp *
    filter: invert(65%) sepia(27%) saturate(4481%) hue-rotate(87deg) brightness(99%) contrast(88%);*/
    filter: invert(26%) sepia(99%) saturate(2101%) hue-rotate(126deg) brightness(105%) contrast(89%);
}

h2.success .copy-link-success,
h3.success .copy-link-success {
    animation-name: showCheck;
    animation-duration: 2s;
}

h2.success .resource-copy-link,
h3.success .resource-copy-link {
    opacity: 0;
}

.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;
    }
}

@media (max-width: 768px) {
    /* Continue working on the mobile TOC experience later. For now, just hide it.
    .toc-list {
        display: none;
    }

    .toc-container {
        position: fixed;
        top: 2%;
        left: 5%;
        margin: 0;
        width: auto;
    }*/
}

@keyframes showCheck {
    0% {
        opacity: 0;
    }

    10%,
    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}