
/* =========== Custom @rauschma =========== */

body {
    margin: 0;
    font-family: sans-serif;
}
#top-bar {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: white;
    border-bottom: thin solid gray;
    overflow: auto;
}
#top-bar-content {
    font-size: 10pt;
    margin: 0px auto 0px auto;
    padding: 7px 0px 0px 0px;
    max-width: 600px;
    text-align: center;
}

/* ----------------------------------- */

/* The whole ad box */
#adbox {
    position: fixed;
    z-index: 1001;
    top: 0;
    left: 0;
    width: 130px;
    font-size: 10pt;
    background: white;
    padding: 10px 10px 10px 10px;
    border-right: thin solid gray;
    border-bottom: thin solid gray;
    line-height: 1.4;
}
#adbox-explain {
    font-size: 9pt;
    color: gray;
    margin-bottom: 3px;
}

/* The image and the text */
.carbon-wrap {
    display: block;
}

a.carbon-text {
    display: block;
    margin-top: 3px;
    margin-bottom: 4px;
}

a.carbon-text:link, a.carbon-text:active, a.carbon-text:visited {
    color: black;
    text-decoration: none;
}
a.carbon-text:hover {
    color: black;
    text-decoration: underline;
}

/* “ads via Carbon” follows the .carbon-wrap, vertically */
a.carbon-poweredby {
    display: block;
    font-size: 9pt;
    text-align: left;
}

a.carbon-poweredby:link, a.carbon-poweredby:active, a.carbon-poweredby:visited {
    color: gray;
    text-decoration: none;
}
a.carbon-poweredby:hover {
    color: gray;
    text-decoration: underline;
}

/* ----------------------------------- */

#page-content {
    margin: 20px auto 20px auto;
    max-width: 600px;
    line-height: 1.3;
}

h1 { /* parts */
    margin-top: 90px;
}

h2 { /* chapters */
    margin-top: 90px;
}

/* Chapter "Notes" now contains all footnotes, too.
 * Make sure they are highlighted when hash points to
 * one of them.
 */
div.footnotes p:target + p {
    background-color: #FFFF66;
}

.footnotes {
    border-top: thin solid gray;
}
.footnotes:before {
    content: "Footnotes:";
    font-weight: bold;
}

a:link, a:active, a:visited {
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.next-chapter {
    margin-top: 3em;
    border-top: thin solid gray;
    text-align: right;
}

/* ----------------------------------- */

/* Highlight what the current hash points to */
*:target {
    background-color: #FFFF66;
}

a.header-anchor {
    visibility: hidden;
    color: #BFBFBF;
    text-decoration: none;
}
a.header-anchor:hover {
    text-decoration: none;
}
h1:hover .header-anchor,
h2:hover .header-anchor,
h3:hover .header-anchor,
h4:hover .header-anchor,
h5:hover .header-anchor,
h6:hover .header-anchor
{
    visibility: visible;
}

/* ----------------------------------- */

#toc-cover {
    display: block;
    margin: 90px auto -60px auto;
}

ol.toc {
  padding-bottom: 1em;
  border-bottom: thin solid gray;
}

ol.toc, .toc ol {
  list-style: none;
}

/* Make chapters bold */
ol.toc > li > ol > li > a {
  font-weight: bold;
}

/* Space before part */
ol.toc > li {
  margin-top: 1em;
}

/*
ol.toc > li {
  border-top: thin solid gray;
}
*/

/* Space before chapter */
ol.toc > li > ol > li {
    margin-top: 1em;
}

ol.toc {
    line-height: 1.4;
}

ol.toc a:link, ol.toc a:active, ol.toc a:visited {
    text-decoration: none;
    color: black;
}
ol.toc a:hover {
    text-decoration: underline;
}
.verso {
    margin-top: 20px;
}
.dedication {
    margin-top: 20px;
    font-style: italic;
}
