@font-face {
    font-family: 'museo_slab500';
    src: url('../fonts/Museo_Slab_500_2-webfont.eot');
    src: url('../fonts/Museo_Slab_500_2-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Museo_Slab_500_2-webfont.woff2') format('woff2'),
         url('../fonts/Museo_Slab_500_2-webfont.woff') format('woff'),
         url('../fonts/Museo_Slab_500_2-webfont.ttf') format('truetype'),
         url('../fonts/Museo_Slab_500_2-webfont.svg#museo_slab500') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'museo_sans500';
    src: url('../fonts/MuseoSans_500-webfont.eot');
    src: url('../fonts/MuseoSans_500-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/MuseoSans_500-webfont.woff2') format('woff2'),
         url('../fonts/MuseoSans_500-webfont.woff') format('woff'),
         url('../fonts/MuseoSans_500-webfont.ttf') format('truetype'),
         url('../fonts/MuseoSans_500-webfont.svg#museo_sans500') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
  font-family: 'texgyreschola';
  src: url('../fonts/texgyreschola-regular-webfont.eot');
  src: url('../fonts/texgyreschola-regular-webfont.eot?#iefix') format('embedded-opentype'),
  url('../fonts/texgyreschola-regular-webfont.woff') format('woff'),
  url('../fonts/texgyreschola-regular-webfont.ttf') format('truetype'),
  url('../fonts/texgyreschola-regular-webfont.svg#texgyrescholaregular') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'texgyreschola';
  src: url('../fonts/texgyreschola-italic-webfont.eot');
  src: url('../fonts/texgyreschola-italic-webfont.eot?#iefix') format('embedded-opentype'),
  url('../fonts/texgyreschola-italic-webfont.woff') format('woff'),
  url('../fonts/texgyreschola-italic-webfont.ttf') format('truetype'),
  url('../fonts/texgyreschola-italic-webfont.svg#texgyrescholaitalic') format('svg');
  font-weight: normal;
  font-style: italic;
}

html, body {
  position: relative;
  overflow-x: hidden;
}

body {
  font-family: "texgyrescholaregular", serif;
  font-size: 14pt;
  text-align: justify;
  text-justify: inter-word;
  line-height: 125%;
  padding: 1em;
  background: #FFF;
  color: #3D3123;
}

h1, h2, h3 {
  line-height: 100%;
  font-family: "museo_slab500", sans-serif;
  margin-top: 2em;
  margin-bottom: 1em;
  text-align: left;
}
h1 a, h2 a, h3 a {
  text-decoration: none;
  color: #3D3123 !important;
}
h1 {
  font-size: 170%;
}
h1:first-child { margin-top: 0.0em; }
h2:first-child { margin-top: 0.0em; }
h2, article h1 {
  font-size: 120%;
}
h3 { font-size: 100%; }

p, ol, li, img {
  margin-top: 1em;
  margin-bottom: 1em;
}
p:first-child, ol:first-child, li:first-child, img:first-child {
  margin-top: 0;
}
ol {
  margin-left: 1em;
}


p {
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}

.footnote-backref {
  display: inline;
}

article img {
  width: 100%;
}

blockquote {
  border-left: 4pt solid #ccc;
  padding-left: 1em;
  color: #444;
}

em {
  font-style: italic;
}

strong {
  font-weight: bold;
}

sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
  top: -0.5em;
}

sub {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
  bottom: -0.25em;
}

code {
  font-family: monospace;
  font-size: 85%;
}
pre {
  white-space: pre;
  overflow-x: auto;
  font-size: 95%;
}

ol {
  list-style-type: decimal;
}
ul {
  list-style-type: square;
}
li {
  margin-left: 1em;
}

figcaption {
  font-size: 90%;
  font-style: italic;
}

table {
  width: 100%;
  border-top: 2px solid #3D3123;
  border-bottom: 2px solid #3D3123;
}
thead {
  border-bottom: 1px solid #3D3123;
}
td, th {
  padding: 0.25em 0.5em;
  text-align: left;
}
td[align="right"], th[align="right"] {
  text-align: right;
}
td:first-child, th:first-child {
  padding-left: 0;
}
td:last-child, th:last-child {
  padding-right: 0;
}
td.date {
  white-space: nowrap;
}

a {
  color: #910B0B;
  text-decoration: none;
}

a:visited {
  color: #710000;
}

a:hover {
  text-decoration: underline;
}

.main {
  max-width: 40em;
  width: 100%;
  margin: 0 auto;
  padding: 1em 0;
  position: relative;
}

@media screen and (min-width: 640px) {
  .main {
    width: 92%;
  }
}

.bar {
  background: #910b0b;
  margin-bottom: 5em;
  padding-right: 4996pt; /* Let the N vertical stroke align nicely */
  margin-right: -5000pt;
  border-top-left-radius: 8pt;
  border-bottom-left-radius: 8pt;
}

.bar h1 {
  text-align: right;
  font-size: 300%;
  margin: 0;
  padding: 0.1em 0 0.05em 0;
  color: #fff;
}

.bar h1 a {
  color: #fff !important;
  text-decoration: none !important;
}

nav {
  margin-top: -4.6em;
  text-align: right;
}

nav a {
  display: inline-block;
  font-family: "museo_sans500", sans-serif;
  font-size: 80%;
  border: 1px solid #bbb;
  padding: 0.2em 0.4em;
  margin-right 0.2em;
  margin-bottom: 0.3em;
  border-radius: 4pt;
}

nav a:hover {
  background: #910b0b;
  border: 1px solid #910b0b;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}

.sheet {
  position: absolute;
  left: 0;
  top: 72px;
  width: 520px;
}

.footer {
  margin-top: 5em;
  text-align: center;
  font-size: 80%;
  color: #444;
}

.footer p {
  margin: 0;
}

h1.with-date {
  margin-bottom: 0;
  padding-bottom: 0;
}
.sub {
  font-family: "museo_sans500", sans-serif;
  margin-top: 0.2em;
}
.sub .author {
  font-size: 80%;
}
.sub .date {
  margin-top: -0.3em;
  font-size: 60%;
}

a.pdf {
  float: right;
  opacity: 0.75;
}
a.pdf:hover {
  opacity: 1;
}
a.pdf img {
  height: 1.65em;
}

.abstract {
  font-size: 90%;
  margin-top: 2em;
  font-family: "texgyreschola", serif;
  font-style: italic;
  margin-bottom: 2em;
}

.header-section-number:after {
  content: ".";
}

.footnotes {
  margin-top: 4em;
  font-size: 80%;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 0px;
  height: 0;
  overflow: hidden;
}

.video-container iframe, .video-container object, .video-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.section {
  margin-top: 2em !important;
}

/* Syntax */
table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode {
margin: 0; padding: 0; vertical-align: baseline; border: none; }
table.sourceCode { width: 100%; line-height: 100%; }
td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; color: #aaaaaa; border-right: 1px solid #aaaaaa; }
td.sourceCode { padding-left: 5px; }
code > span.kw { color: #007020; font-weight: bold; }
code > span.dt { color: #902000; }
code > span.dv { color: #40a070; }
code > span.bn { color: #40a070; }
code > span.fl { color: #40a070; }
code > span.ch { color: #4070a0; }
code > span.st { color: #4070a0; }
code > span.co { color: #60a0b0; font-style: italic; }
code > span.ot { color: #007020; }
code > span.al { color: #ff0000; font-weight: bold; }
code > span.fu { color: #06287e; }
code > span.er { color: #ff0000; font-weight: bold; }
