.footnote-ref {
    padding-left: 2px;

    a {
        border: none;
    }
}

.footnote-backref {
    border: none;
}

.footnotes-list {
    margin: 0;
    padding-left: rem(5);

    color: $grey--darker;
    font-size: rem(18);

    counter-reset: footnotes;

    li {
        @include display(flex);

        &:target {
            p {
                background: #fcfcb4;
            }
        }

        &:before {
            display: block;
            content: counter(footnotes) ".";

            padding: 0 rem(8) 0 0;

            counter-increment: footnotes;

            color: $grey--dark;
            font-size: rem(15);
            line-height: rem(28);
        }
    }

    p {
        margin: 0;
        line-height: rem(28);
        @include flex(1);
    }

    a {
        color: $purple;
        border: none;

        &:hover {
            color: $purple--light;
        }
    }
}

.footnote-backref {
    display: inline-block;

    margin-left: rem(5);

    color: $grey--darker !important;
    line-height: 1;
    vertical-align: text-bottom;

    &:hover {
        color: $purple--light !important;
    }
}