body {
    font-family: "Linux Libertine O", "Linux Libertine", "Alegreya", Times, serif;
    font-size: 1.2rem;
    line-height: 1.4;
    margin: auto;
    max-width: 55rem;
    padding: 0.5rem;
    text-align: justify;
}

h2, h3, h4, h5, h6, .abstract > p::before {
    font-family: "Linux Biolinum O", "Linux Biolinum", Optima, "Open Sans", sans-serif;
    font-weight: bold;
}

h5 {
    font-size: 0.9em;
    margin-bottom: -0.5rem;
}

h6 {
    float: left;
    font-size: 1.2rem;
    height: 1rem;
    margin: 0 1.5rem 0 0;
}

a {
    text-decoration: none;
}

p {
    hyphens: auto;
    margin: 0.75rem 0;
    text-indent: 1.5rem;
}

pre, code, .doi a, .url a {
    font-family: "Ubuntu Mono", monospace;
}

pre {
    border-width: 1px 0;
    border-style: solid;
    line-height: normal;
    overflow-x: auto;
    overflow-y: hidden; /*  Fonts with large line heights confuse Firefox */
    margin: 1.2rem 0;
    padding: 0.5rem 0;
}

.outline-text-1 > p:first-of-type,
.outline-text-2 > p:first-of-type,
.outline-text-3 > p:first-of-type,
.outline-text-4 > p:first-of-type,
.outline-text-5 > p:first-of-type,
.outline-text-6 > p:first-of-type,
.abstract > p:first-of-type {
    text-indent: 0;
}

.author, .title {
    hyphens: none;
    margin: 1.5rem auto;
    text-align: center;
    padding: 0 1rem;
    max-width: 30rem;
}

.author {
    font-size: 1.5em;
}

.header-links {
    margin: 2rem 0;
}

.abstract > p::before {
    content: "Abstract";
    font-weight: bold;
    margin-right: 1.5rem;
}

.section-number-5, .section-number-6 {
    display: none;
}

.esh-non-ascii {
    font-family: "Ubuntu Mono", "XITS Math", "Asana Math", "Symbola", "Cambria Math", "Latin Modern Math", monospace;
    line-height: 1; /* Work around fonts whose line-height is too large, such as Latin Modern Math in Firefox */
}

pre .esh-non-ascii {
    display: inline-block;
    width: 0.6345rem; /* Width of one character in Ubuntu Mono. */
    text-indent: 0; /* Otherwise it's inherited */
}

pre .esh-non-ascii > span {
    display: inline-block;
    left: 50%; /* Move to middle of parent */
    position: relative;
    text-indent: 0; /* Otherwise it's inherited */
}

pre .esh-non-ascii > span > span {
    margin-left: -50%; /* Move back to center in parent */
}

.footpara {
    display: inline;
}

.footdef {
    margin-bottom: 1em;
}

.figure, .org-src-name {
    margin: 1rem 2rem;
}

.org-src-container {
    /* caption-side: bottom; */
    /* display: table; Invalidates “width” */
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 1.2rem 0;
}

.org-src-container > pre {
    margin: 0;
}

.org-src-name {
    text-align: center;
    /* display: table-caption; */
    order: 1;
    margin-bottom: 0;
}

.org-src-name, .figure {
    font-size: 0.9em;
}

.math {
    max-width: 100%;
}

.math, .figure p {
    text-align: center;
}

.inline-svg-medium-math, .inline-svg-tall-math {
    display: inline-block;
    position: relative;
    text-indent: 0;
}

.inline-svg-medium-math {
    bottom: -0.3em;
}

.inline-svg-tall-math {
    bottom: -0.9rem;
}

.large-fig {
    width: 100%;
}

.raised, .raised-contents, .raised-placeholder {
    display: inline-block;
    text-indent: 0;
}

.raised-contents {
    font-size: 0.9em;
    width: 0;
}

.raised-contents span {
    position: relative;
}

.raised-placeholder {
    height: 0;
    visibility: hidden;
}

.footnum {
    margin-right: 1ex;
}

.header-links {
  border-style: solid;
  border-width: 1px 0;
  text-align: center;
  border-color: lightgrey;
  padding: 0.25rem;
}

#text-table-of-contents ul {
  list-style-type: none;
}

#text-table-of-contents > ul {
  padding-left: 0;
}

#text-table-of-contents > ul > li > ul {
  padding-left: 1em;
}

.packed pre {
    line-height: 1;
}

.bibliography {
    text-align: left;
}

.bibliography p {
    margin: 0.5rem 0 0.5rem 2rem;
    line-height: 1.3;
    text-indent: -2rem;
}

.bibliography .booktitle {
    font-style: italic;
}

.bibliography .doi:before {
    content: "doi: ";
}

.bibliography .url:before {
    content: "url: ";
}

.bibliography .doi:before, .bibliography .url:before {
    font-variant: small-caps;
}

@media screen and (max-width: 500px) {
    body {
        font-size: 1rem !important;
    }

    code {
        word-wrap: break-word;
    }
}
