/* based on the Default styles provided by pandoc.
 ** See https://pandoc.org/MANUAL.html#variables-for-html for config info.
 */

/* Light/dark theme variables */
:root {
    --bg: white;
    --text: #1a1a1a;
    --link: mediumpurple;
    --link-hover-bg: pink;
    --link-hover-text: black;
    --header-bg: mediumpurple;
    --header-border: black;
    --header-link-bg: white;
    --header-link-text: black;
    --blockquote-border: #e6e6e6;
    --blockquote-text: #606060;
    --table-border: #1a1a1a;
    --code-bg: transparent;
    --hr-color: #ccc;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1a1a1a;
        --text: #e0e0e0;
        --link: plum;
        --link-hover-bg: #5a2d5a;
        --link-hover-text: white;
        --header-bg: #2d1f3d;
        --header-border: #666;
        --header-link-bg: #333;
        --header-link-text: #e0e0e0;
        --blockquote-border: #444;
        --blockquote-text: #aaa;
        --table-border: #555;
        --code-bg: #2a2a2a;
        --hr-color: #444;
    }
}

/*https://bjh21.me.uk/bedstead/*/
@font-face {
    font-family: "Bedstead";
    src: url("/bedstead.otf") format("opentype");
}
html {
    height: 100%;
}
body {
    padding: 12px;
    height: 100%;
    font-size: calc(12px + 0.390625vw);
    font-family: var(--font-family), sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: auto;
    background-color: var(--bg);
    color: var(--text);
}
a {
    color: var(--link);
}
a:hover {
    background: var(--link-hover-bg);
    color: var(--link-hover-text);
}

body {
    hyphens: auto;
    overflow-wrap: break-word;
    text-rendering: optimizeLegibility;
    font-kerning: normal;
}
@media (max-width: 600px) {
    body {
        font-size: 0.9em;
        padding: 12px;
    }
    h1 {
        font-size: 1.8em;
    }
}
@media print {
    html {
        background-color: white;
    }
    body {
        background-color: transparent;
        color: black;
        font-size: 12pt;
    }
    p, h2, h3 {
        orphans: 3;
        widows: 3;
    }
    h2, h3, h4 {
        page-break-after: avoid;
    }
}
p {
    margin: 1em 0;
}
img {
    max-width: 100%;
}
svg {
    height: auto;
    max-width: 100%;
}
h5, h6 {
    font-size: 1em;
    font-style: italic;
}
h6 {
    font-weight: normal;
}
ol, ul {
    padding-left: 1.7em;
    margin-top: 1em;
}
li > ol, li > ul {
    margin-top: 0;
}
blockquote {
    margin: 1em 0 1em 1.7em;
    padding-left: 1em;
    border-left: 2px solid var(--blockquote-border);
    color: var(--blockquote-text);
}
code {
    white-space: pre-wrap;
    font-family: "Bedstead", Menlo, Monaco, Consolas, 'Lucida Console', monospace;
    font-size: 85%;
    margin: 0;
    hyphens: manual;
    background-color: var(--code-bg);
}
pre {
    margin: 1em 0;
    overflow: auto;
    background-color: var(--code-bg);
}
pre code {
    padding: 0;
    overflow: visible;
    overflow-wrap: normal;
}
.sourceCode {
    background-color: transparent;
    overflow: visible;
}
hr {
    border-color: var(--hr-color);
}
table {
    margin: 1em 0;
    border-collapse: collapse;
    width: 100%;
    overflow-x: auto;
    display: block;
    font-variant-numeric: lining-nums tabular-nums;
}
table caption {
    margin-bottom: 0.75em;
}
tbody {
    margin-top: 0.5em;
    border-top: 1px solid var(--table-border);
    border-bottom: 1px solid var(--table-border);
}
th {
    border-top: 1px solid var(--table-border);
    padding: 0.25em 0.5em 0.25em 0.5em;
}
td {
    padding: 0.125em 0.5em 0.25em 0.5em;
}
header {
    border: 1px solid var(--header-border);
    padding-top: 1px;
    background-color: var(--header-bg);
    text-align: center;
}
header a {
    border: 1px solid var(--header-border);
    background-color: var(--header-link-bg);
    color: var(--header-link-text);
    border-radius: 4px;
    padding: 9px;
    font-weight: bold;
}
#TOC li {
    list-style: none;
}
#TOC ul {
    padding-left: 1.3em;
}
#TOC > ul {
    padding-left: 0;
}
#TOC a:not(:hover) {
    text-decoration: none;
}
span.smallcaps{font-variant: small-caps;}
div.columns{display: flex; gap: min(4vw, 1.5em);}
div.column{flex: auto; overflow-x: auto;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
/* The extra [class] is a hack that increases specificity enough to
       override a similar rule in reveal.js */
ul.task-list[class]{list-style: none;}
ul.task-list li input[type="checkbox"] {
    font-size: inherit;
    width: 0.8em;
    margin: 0 0.8em 0.2em -1.6em;
    vertical-align: middle;
}
.display.math{display: block; text-align: center; margin: 0.5rem auto;}



/*styles for links at the bottom of pages with ->*/
p.diverge {
    font-family: "Bedstead", monospace;
    padding-left: 2ch;
    margin: 0.1em 0;
}

p.diverge a::before {
    content: "\2192  ";
}
