/* highlight destination when following links with anchors */
:target {
    background-color: #ffa;
}

/* label links to PDFs as such */
a[href$=".pdf"]::after,
a[href$=".PDF"]::after {
    content: " [PDF]";
}

a:link[href^="http://"]:not([href^="http://kantodb.com/"]):not([href^="http://[::1]"]),
a:link[href^="https://"]:not([href^="https://kantodb.com/"])
{
    &::after {
        margin: 2px;
        /*
        The SVG is from <https://uxwing.com/open-external-link-icon/>.
        No attribution required.
        */
        content: url("data:image/svg+xml,%3Csvg version='1.1' width='10px' height='10px' viewBox='0 0 150 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m110.6 72.58c0-3.19 2.59-5.78 5.78-5.78s5.78 2.59 5.78 5.78v33.19c0 4.71-1.92 8.99-5.02 12.09s-7.38 5.02-12.09 5.02h-87.94c-4.71 0-8.99-1.92-12.09-5.02s-5.02-7.38-5.02-12.09v-88.58c0-4.71 1.92-8.99 5.02-12.09s7.38-5.02 12.09-5.02h32.98c3.19 0 5.78 2.59 5.78 5.78s-2.59 5.78-5.78 5.78h-32.98c-1.52 0-2.9 0.63-3.91 1.63-1.01 1.01-1.63 2.39-1.63 3.91v88.58c0 1.52 0.63 2.9 1.63 3.91 1.01 1.01 2.39 1.63 3.91 1.63h87.95c1.52 0 2.9-0.63 3.91-1.63s1.63-2.39 1.63-3.91zm1.82-55.12-58.41 59.14c-2.23 2.27-5.89 2.3-8.16 0.07s-2.3-5.89-0.07-8.16l56.16-56.87h-23.38c-3.19 0-5.78-2.59-5.78-5.78s2.59-5.78 5.78-5.78h26.5c5.12 0 11.72-0.87 15.65 3.1 2.48 2.51 1.93 22.52 1.61 34.11-0.08 3-0.15 5.29-0.15 6.93 0 3.19-2.59 5.78-5.78 5.78s-5.78-2.59-5.78-5.78c0-0.31 0.08-3.32 0.19-7.24 0.16-6.04 1.13-14.04 1.62-19.52z'/%3E%3C/svg%3E");
    }
}

a:link:not([href^="https://kantodb.com/"]):not([href^="https://kantodb.com/"]):not([href^="#"]):not([href^="\.\./"]):not([href^="/"])::after {
}
