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

body {
    margin: 0;
    font-family: sans-serif;
}
#top-bar {
    border-bottom: thin solid gray;
    text-align: center;
    line-height: 1.3;
    padding-top: 0.3em;
    padding-bottom: 0.2em;
}

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

#page-content {
    margin: 1em auto 1em auto;
    padding: 0 0.3em 0 0.3em;
    max-width: 40em;
    line-height: 1.3;
}
figure {
    margin: 0;
    padding: 0;
}
pre {
    margin: 0.5em 0 0.5em 1em;
    overflow-x: auto;
}

/* 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;
}

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


/* Book ToC */
ol.toc, ol.toc ol {
  padding: 0;
  margin: 0;
}

/* Chapters for ToC without Parts */
.toc.no-parts > li {
  margin-bottom: 0.5em;
  margin-top: 0.5em;
}

/* ToC with Parts */
.toc.has-parts > li  {
  margin-bottom: 1em;
  margin-top: 1em;
}

.toc li {
  list-style: none;
  padding-left: 0;
  margin-left: 1em;
}

.toc > li > ol > li > a {
  font-weight: bold;
}

/* ***** */

ol.toc {
    line-height: 1.4;
}

ol.toc > li > ol > li {
    margin-top: 1em;
}

ol.toc a:link, ol.toc a:active, ol.toc a:visited {
    text-decoration: none;
    color: black;
}
ol.toc a:hover {
    text-decoration: underline;
}
ol.toc > li {
    border-top: thin solid gray;
    padding-top: 10px;
}
ol.toc {
    border-bottom: thin solid gray;
}
.verso {
    margin-top: 20px;
}
.dedication {
    margin-top: 20px;
    font-style: italic;
}

/****** Carbon ad *****/

/* Whole ad box */

#adbox {
    width: 280px;
    font-size: 10pt;
    line-height: 1.4;
    border: solid thin gray;
    padding: 2px 5px 2px 5px;
}

#adbox-explain {
    font-size: 9pt;
    color: gray;
    margin-bottom: 3px;
}

/* Image and the text */

.carbon-wrap {
    display: flex;
    flex-flow: row;
    justify-content: space-between;
}

a.carbon-text {
    display: block;
    width: 130px;
    /*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;
}

/* ==================================================================== */
/* everything below this line is generated by */
/* rake generate:pygments:styles[default] */

.hll { background-color: #ffffcc }
.c { color: #408080; font-style: italic } /* Comment */
.err { color: #FF0000 }
.k { color: #008000; font-weight: 600 } /* Keyword */
.o { color: #666666 } /* Operator */
.cm { color: #408080; font-style: italic } /* Comment.Multiline */
.cp { color: #BC7A00 } /* Comment.Preproc */
.c1 { color: #408080; font-style: italic } /* Comment.Single */
.cs { color: #408080; font-style: italic } /* Comment.Special */
.gd { color: #A00000 } /* Generic.Deleted */
.ge { font-style: italic } /* Generic.Emph */
.gr { color: #FF0000 } /* Generic.Error */
.gh { color: #000080; font-weight: 600 } /* Generic.Heading */
.gi { color: #00A000 } /* Generic.Inserted */
.go { color: #888888 } /* Generic.Output */
.gp { color: #000080; font-weight: 600 } /* Generic.Prompt */
.gs { font-weight: 600 } /* Generic.Strong */
.gu { color: #800080; font-weight: 600 } /* Generic.Subheading */
.gt { color: #0044DD } /* Generic.Traceback */
.kc { color: #008000; font-weight: 600 } /* Keyword.Constant */
.kd { color: #008000; font-weight: 600 } /* Keyword.Declaration */
.kn { color: #008000; font-weight: 600 } /* Keyword.Namespace */
.kp { color: #008000 } /* Keyword.Pseudo */
.kr { color: #008000; font-weight: 600 } /* Keyword.Reserved */
.kt { color: #B00040 } /* Keyword.Type */
.m { color: #666666 } /* Literal.Number */
.s { color: #BA2121 } /* Literal.String */
.na { color: #7D9029 } /* Name.Attribute */
.nb { color: #008000 } /* Name.Builtin */
.nc { color: #0000FF; font-weight: 600 } /* Name.Class */
.no { color: #880000 } /* Name.Constant */
.nd { color: #AA22FF } /* Name.Decorator */
.ni { color: #999999; font-weight: 600 } /* Name.Entity */
.ne { color: #D2413A; font-weight: 600 } /* Name.Exception */
.nf { color: #0000FF } /* Name.Function */
.nl { color: #A0A000 } /* Name.Label */
.nn { color: #0000FF; font-weight: 600 } /* Name.Namespace */
.nt { color: #008000; font-weight: 600 } /* Name.Tag */
.nv { color: #19177C } /* Name.Variable */
.ow { color: #AA22FF; font-weight: 600 } /* Operator.Word */
.w { color: #bbbbbb } /* Text.Whitespace */
.mf { color: #666666 } /* Literal.Number.Float */
.mh { color: #666666 } /* Literal.Number.Hex */
.mi { color: #666666 } /* Literal.Number.Integer */
.mo { color: #666666 } /* Literal.Number.Oct */
.sb { color: #BA2121 } /* Literal.String.Backtick */
.sc { color: #BA2121 } /* Literal.String.Char */
.sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
.s2 { color: #BA2121 } /* Literal.String.Double */
.se { color: #BB6622; font-weight: 600 } /* Literal.String.Escape */
.sh { color: #BA2121 } /* Literal.String.Heredoc */
.si { color: #BB6688; font-weight: 600 } /* Literal.String.Interpol */
.sx { color: #008000 } /* Literal.String.Other */
.sr { color: #BB6688 } /* Literal.String.Regex */
.s1 { color: #BA2121 } /* Literal.String.Single */
.ss { color: #19177C } /* Literal.String.Symbol */
.bp { color: #008000 } /* Name.Builtin.Pseudo */
.vc { color: #19177C } /* Name.Variable.Class */
.vg { color: #19177C } /* Name.Variable.Global */
.vi { color: #19177C } /* Name.Variable.Instance */
.il { color: #666666 } /* Literal.Number.Integer.Long */
