html {scroll-behavior: smooth;}
@media (prefers-reduced-motion: reduce) {html {scroll-behavior: auto;}}
body {
    margin-left: 20px;
    margin-top: 0px;
    font-size: 95%;
    font-family: sans-serif;
    background-color: #fbfbf9;
    padding-bottom: 50vh;
}
h1 {font-size: 130%}
h2 {font-size: 120%}
main {
    max-width: 900px;
    padding-top: 10px;
}
.page-date {
    font-size: 75%;
    opacity: .4;
    margin: 5px 0;
}
a[href="index.html"] {
    font-size: 90%;
    opacity: .5;
    text-decoration: none;
}
a[href="index.html"]:visited {
    color: black;
}

main img {
    max-width: 100%;
    height: auto;
}

:target {
    animation: flash 2s ease-out;
    background: #ffe06624;
}
@keyframes flash {
    from { background: #ffe066; }
    to   { background: #ffe06624; }
}

blockquote {
    color: #455246;
}

button.info {
    all: unset;
    cursor: help;
    color: inherit;
    text-decoration: underline dashed;
    text-underline-offset: 0.2em;
    text-decoration-color: #0005;
}
button.info:active {
    text-decoration-color: #000a;
}
button.info:focus-visible {
    outline: 2px solid currentColor;
}
button.hasimg::after {
    content: ' 📊';
    font-size: 80%;
}

a[href^="#"] {
    color: inherit;
    text-decoration: underline dashed;
    text-underline-offset: 0.2em;
    text-decoration-color: #0005;
}
a[href^="#"]::after {
    content: " ¶";
    font-size: 80%;
}

div[role=tooltip] {
    max-width: 900px;
    top: auto;
    bottom: anchor(top);
    left: 20px;
    margin: 2px 30px;
    box-shadow: 6px 6px #0004, 0 0 0 1px #0001;
    border: 1px solid #777;
}
div[role=tooltip] > p {
    margin: 5px;
}
div[role=tooltip] > ul {
    margin: 5px 0;
    padding-left: 23px;
}
div[role=tooltip] img,
div[role=tooltip] video {
    max-width: 100%;
    max-height: 400px;
    height: auto;
}
div[role=tooltip] .imglink {
    clear: both;
    display: block;
    width: fit-content;
}

summary {
    padding: 6px;
    background-color: rgba(0, 0, 0, 0.04);
    position: relative;
}
summary > a {
    display: none;
    opacity: .35;
    position: absolute;
    right: 10px;
    width: 20px;
    text-align: center;
    text-decoration: none !important;
}
summary > a::after {
    content: '¶' !important;
}
summary:hover > a {
    display: inline-block;
}
details {
    outline: 1px solid #00000010;
    margin-bottom: 5px;
}
details > p {
    margin-left: 10px;
    margin-right: 5px;
}
details > *:last-child {padding-bottom: 5px;}

bspan {display: inline-block;}