/*

This stylesheet uses colors from Solarized, whose license is reproduced below.

Copyright (c) 2011 Ethan Schoonover

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

*/

html { font-size: 18px; }

@media screen and (max-width: 650px) {
    html { font-size: 16px; }
}
body {
    background-color: #a0a0a0;
    color: #333;
    font-family: 'Inter', Verdana, sans-serif;

    /* This prevents there being a thin gray border on the sides on narrow
     * screens. */
    margin-left: 0;
    margin-right: 0;
}

div.sourceLine { display:inline-block; }

main, footer {
    font-size: 14px;
    line-height: 1.2;
    background-color: #fdf6e3;
    margin: auto;
    /* max-width: 41rem; */
    text-align: left;
    word-wrap: break-word;
}

main {
    border-radius: 9px 9px 0px 0px; /* top-left top-right bottom-right bottom-left */
    padding: 50px 50px 25px 50px; /* top right bottom left */
}
footer {
    border-radius: 0px 0px 9px 9px; /* top-left top-right bottom-right bottom-left */
    padding: 25px 50px 50px 50px; /* top right bottom left */
}

nav#site_navigation {
    font-family: Lato, Helvetica, sans-serif;
    font-size: 80%;
    color: #ddd;
    /* See http://stackoverflow.com/a/324553 ; this ensures that the
     navigation links (left side) and search bar (right side) play
     nicely */
    overflow: hidden;

    /* Setting margin-left and margin-right to be 0 on body removes the space
     * that the nav bar had. Adding some padding will prevent the navbar being
     * all the way to the left of the window. */
    padding-left: 8px;
}

nav#site_navigation a:link { color: #fff; }
nav#site_navigation a:visited { color: #fff; }

nav#TOC {
    background-color: #fdf6e3;
}

footer { font-size: 80%; }

div.page-nav { font-size: 80%; }
dl.page-metadata { font-size: 80%; }

h1 {
    font-size: 120%;
    text-transform: uppercase;
}
h2 { border-bottom: 1px solid #93a1a1; }
h2, h3, h4, h5, h6 { font-size: 110%; }
h1, h2, h3, h4, h5, h6 { font-family: Lato, Helvetica, sans-serif; }

a { text-decoration: none; }
a:link { color: #3855d1; }
a:visited { color: #698255; }
a:hover, a:active { text-decoration: underline; }
a.anchorjs-link:hover, a.anchorjs-link:active { text-decoration: none; }
a#reader-mode-help:link { color: #3855d1 !important; }
a#reader-mode-help:visited { color: #698255 !important; }

blockquote {
    border-left: 4px solid #93a1a1;
    margin: 0px;
    padding-left: 16px;
}

code {
    font-family: Consolas, monospace;
    font-size: 15px;
    background-color: #eee8d5;
    padding-left: 4px;
    padding-right: 4px;
    word-wrap: normal;
}

pre code {
    display: block;
    line-height: 1.2;
    max-height: 400px;
    overflow: auto;
    padding: 10px;
}

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

div.blockquote-source {
    text-align: right;
}

table {
    background-color: #fdf6e3;
    border-bottom: 2px solid #586e75;
    border-collapse: collapse;
    border-top: 2px solid #586e75;
    margin: 0px auto; /* center table */
}

table th {
    font-weight: normal;
    padding: 0px 10px;
    vertical-align: bottom; /* Maybe this should be "top" instead */
}

table td {
    padding: 0px 10px;
    vertical-align: top;

    /* Hyphenate inside table cells;
     * from https://justmarkup.com/log/2015/07/dealing-with-long-words-in-css/
     */
    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
}

table tbody tr { border-bottom: 1px dotted #ccc; }
table thead th { border-bottom: 1px solid #586e75; }
table tfoot th { border-top: 1px solid #586e75; }

/* For pages containing at least one large table. Don't center the text so that
 * the table doesn't look awkward. */
body.bigtable main, body.bigtable footer {
    max-width: none;
    margin: 0px 40px;
}
body.bigtable p, body.bigtable dl, body.bigtable h2 {
    max-width: 41rem;
}
body.bigtable pre {
    max-width: 100%;
}
/* Due to the padding applied to list markers, these protrude unless they are a
 * bit shorter than the other tags. */
body.bigtable ul, body.bigtable ol {
    max-width: 37rem;
}
body.bigtable footer hr {
    margin: 0;
    max-width: 41rem;
}
@media screen and (max-width: 600px) {
    body.bigtable main, body.bigtable footer {
        margin: 0px 20px;
    }
}

body.wide main, body.wide footer {
    max-width: none;
}


body.absorption main {
    font-size: 21px;
    font-family: Charter, "Bitstream Charter", "PT Serif", Palatino, "Noto Serif", Georgia, serif;
    line-height: 1.45;
    max-width: 41rem;
}

body.absorption footer {
    max-width: 41rem;
}

body.absorption code {
    font-size: 18px;
}


/* From https://stackoverflow.com/a/11787147/3422337 */
.unselectable {
    -khtml-user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}


/*
Colors for source code listings. See
https://github.com/altercation/ethanschoonover.com/blob/master/resources/css/style.css
and
http://claireyu.org/posts/2013-12-24-hakyll-syntax-highlighting.html
for details.
*/

.sourceCode span.st { color: #dc322f; } /* String */
.sourceCode span.co { color: #268bd2; } /* Comment */
.sourceCode span.al { color: #dc322f; } /* Alert */
.sourceCode span.er { color: #dc322f; font-weight: bold; } /* Error */
.sourceCode span.wa { color: #cb4b16; font-weight: italic; } /* Warning */

div#theme-picker-menu {
    position: fixed;
    float: right;
    right: 0;
    bottom: 0;
    color: black;
    background-color: #eee8d5;
}

span#change-reader-mode-toggle {
    color: black;
    cursor: pointer;
    text-decoration: underline;
}

body.dark {
    background-color: #303742;
    color: #93a1a1;
}
body.dark main, body.dark footer {
    background-color: #073642;
}
body.dark nav#TOC {
    background-color: #073642;
}
body.dark nav#site_navigation {
    color: #ddd;
}
body.dark nav#site_navigation a:link { color: #fff; }
body.dark nav#site_navigation a:visited { color: #fff; }
body.dark h2 { border-bottom: 1px solid #93a1a1; }
body.dark a:link { color: #b58900; }
body.dark a:visited { color: #6c71c4; }
body.dark a#reader-mode-help:link { color: #3855d1 !important; }
body.dark a#reader-mode-help:visited { color: #698255 !important; }
body.dark blockquote {
    border-left: 4px solid #93a1a1;
}
body.dark code {
    background-color: #002b36;
}
body.dark table {
    background-color: #073642;
    border-bottom: 2px solid #586e75;
    border-top: 2px solid #586e75;
}
body.dark table tbody tr { border-bottom: 1px dotted #ccc; }
body.dark table thead th { border-bottom: 1px solid #586e75; }
body.dark table tfoot th { border-top: 1px solid #586e75; }
body.dark div#theme-picker-menu {
    background-color: #303742;
    color: #ffffff;
}
body.dark a#reader-mode-help {
    color: #ffffff;
}
body.dark span#change-reader-mode-toggle {
    color: #ffffff;
}
