/*
a[href^="http://"]:not([href*="jaredscribe.local"]):after,
a[href^="https://"]:not([href*="jaredscribe.local"]):after{ 
	content:"<i class='fa fa-external-link'></i>";
}

a[href^="http://"]:([href*="en.wikipedia.org"]){
    content:"<img src='/static/wikipedia_24_black.png'/>";
}

a[href^="http://"]:not([href*="internet-ethics"]){ 
	color: green; 
}

*/

a[href^="http://"]:not([href*="jaredscribe\."]),
a[href^="https://"]:not([href*="jaredscribe\."]){
	color: blue;
}

.ext-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: text-bottom;
    margin-right: 0.3em;
}

/* Table of contents, rendered by <page-toc> (static/page-toc.js) from the
   active article's own h2/h3 headings. Replaces bootstrap-toc.css. */
page-toc { display: contents; }
page-toc nav {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 0.75rem 1rem;
    font-size: 13px;
    line-height: 1.5;
}
.toc-heading {
    margin: 0 0 0.5rem;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #767676;
}
.toc-list, .toc-sublist {
    list-style: none;
    margin: 0;
    padding: 0;
}
.toc-list > li { margin-bottom: 4px; }
.toc-sublist { margin: 4px 0 8px 12px; }
.toc-sublist > li { margin-bottom: 1px; }
page-toc a, page-toc a:visited {
    display: block;
    color: #767676;
    text-decoration: none;
    border-left: 1px solid transparent;
    padding: 2px 0 2px 12px;
}
page-toc .toc-sublist a { font-size: 12px; }
page-toc a:hover, page-toc a:visited:hover {
    color: #563d7c;
    border-left-color: #563d7c;
}
page-toc a.active, page-toc a:visited.active {
    font-weight: bold;
    color: #563d7c;
    border-left: 2px solid #563d7c;
}

/* NOTE: the :has() selector below has a stray "]" inside the parens and
   fails to parse in every browser tested. Because CSS rules after a bad
   selector can be silently dropped, DO NOT add new rules after this one —
   add them above instead, or fix this selector and verify nothing already
   depends on en.wikipedia.org links staying blue instead of green. */
a[href^="http://"]:has(href*="en.wikipedia.org"]),
a[href^="https://"]:has(href*="en.wikipedia.org"]){
    color:green;
}


/* Disable text selection
body {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
*/

main { }

.row { 
    margin-left:1em;
    margin-right:1em;
}
footer { 
    margin-top:2em;
}

footer > nav { 
}

