h1, h2, h3, h4, h5, h6
{
  margin: 1em 0;
}

section h1 {
    font-size: 1.3em;
}

section h2 {
    font-size: 1.2em;
}

section h3 {
    font-size: 1.1em;
}

section h4, section h5, section h6 {
    font-size: 1em;
}

section ul {
    list-style: disc;
    margin: 1em 0 1em 2em;
}

section ul li p:first-child {
    margin: 0;
}

section p {
    margin: .75rem 0;
    line-height: 1.6rem;
}

section ul li,
div.sidebar ul li {
    margin: .5em 0;
    line-height: 1.4em;
}

a.headerlink {
    display: none;
    padding: 0em .5em;
}

h1:hover a.headerlink {
    display: inline;
}

ul.post-details {
    padding-top: 2em;
}

ul.post-details li i.fa {
    color: #998;
}

dl {
    margin: 1em 1.5em;
}

dl dt {
    font-weight: bold;
}

dl dd {
    line-height: 1.5em;
    margin: 1em;
}

dl.docutils dd p, dl dd p {
    margin-left: 0em;
    margin-right: 0em;
}

#header img {
    width: initial;
    vertical-align: bottom;
}

#header h1 {
    margin: 0em;
    line-height: 48px;
}

div.admonition {
    padding: 1rem 1rem 0.5rem 1rem;
    margin: 1em 0em;
    border-radius: .3em;
    -moz-border-radius: .3em;
    -webkit-border-radius: .3em;
    background: #f0f0f0;
}

div.admonition p.admonition-title {
    font-weight: bold;
    margin-top: 0;
}

dl.footnote {
  margin: 0.5rem 0;
  display: table;
}

dl.footnote dt {
  display: table-cell;
  white-space: nowrap;
  width: 1%;
  margin-left: 1rem;
  margin-right: 1rem;
  margin-top: 0;  
}

dl.footnote dd > p:first-child {
  display: table-cell;
  margin: 0px;
}

dl.footnote .brackets:before {
  content: "["
}
dl.footnote .brackets:after {
  content: "]"
}

.postlist {
  margin: 1em 0;
}

.postlist li {
    list-style: none;
    margin-bottom: 2rem;
}

.postlist p.first, .postlist .ablog-post-title {
    font-size: 24px;
    margin-bottom: 0.5rem;
}

img.align-center {
    display: block;
    margin: 0 auto;
}

strong {
    font-weight: bold;
}

div.highlight pre {
    white-space: pre;
}

/* Optimize figure CSS */
figure {
  text-align: center;
  margin: 2em 0;
}
figure img {
  max-width: 100%;
}
figure figcaption {
  font-size: 85%;
  line-height: 1.4;
  margin-left: 2.5rem;
  margin-right: 2.5rem;
}

/* Styled blockquotes */
blockquote {
  font-size: 115%;
  line-height: 1.4;
  margin: 1em;
  padding: 0 0.5em;
  border-left: 3px solid #ccc;
}

/*
This compensates for a visual difference in the size of the "Lato" font and
a typical monospace font.

Lato appears much smaller.
*/
code, pre, span.pre
{
  font-size: 0.95em;
}

ul li blockquote {
  font-size: 100%;
}
/* Remove the RTD flyout menu on the blog */
.rst-versions.rst-badge {
    display: none !important;
}
