
/* open-sans-300 - latin */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300;
  src: url('../media/open-sans/open-sans-v15-latin-300.eot'); /* IE9 Compat Modes */
  src: local('Open Sans Light'), local('OpenSans-Light'),
       url('../media/open-sans/open-sans-v15-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../media/open-sans/open-sans-v15-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
       url('../media/open-sans/open-sans-v15-latin-300.woff') format('woff'), /* Modern Browsers */
       url('../media/open-sans/open-sans-v15-latin-300.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../media/open-sans/open-sans-v15-latin-300.svg#OpenSans') format('svg'); /* Legacy iOS */
}

/* open-sans-regular - latin */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../media/open-sans/open-sans-v15-latin-regular.eot'); /* IE9 Compat Modes */
  src: local('Open Sans Regular'), local('OpenSans-Regular'),
       url('../media/open-sans/open-sans-v15-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../media/open-sans/open-sans-v15-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../media/open-sans/open-sans-v15-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../media/open-sans/open-sans-v15-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../media/open-sans/open-sans-v15-latin-regular.svg#OpenSans') format('svg'); /* Legacy iOS */
}

/* open-sans-700 - latin */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: url('../media/open-sans/open-sans-v15-latin-700.eot'); /* IE9 Compat Modes */
  src: local('Open Sans Bold'), local('OpenSans-Bold'),
       url('../media/open-sans/open-sans-v15-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../media/open-sans/open-sans-v15-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
       url('../media/open-sans/open-sans-v15-latin-700.woff') format('woff'), /* Modern Browsers */
       url('../media/open-sans/open-sans-v15-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../media/open-sans/open-sans-v15-latin-700.svg#OpenSans') format('svg'); /* Legacy iOS */
}


html {
    background-color: #fafafa;
}

body {
    max-width: var(--content-max-width);
    margin: 0 auto;

    background-color: #fff;
    color: var(--text);
    
    position: relative;
    font-size: var(--font-size);
    line-height: 1.4;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 1.5em;
    margin-bottom: .5em;
    position: relative;
}

h1 { font-size: 28px;}
h2 { font-size: 22px;}
h3 { font-size: 20px;}
h4 { font-size: 18px;}
h5 { font-size: 16px;}
h6 { font-size: 14px;}

h1, h2, h3, h4, h5, h6,
h1 a, a h1,
h2 a, a h2,
h3 a, a h3,
h4 a, a h4,
h5 a, a h5,
h6 a, a h6 {
  text-decoration: none !important;
  color: var(--fg);
}

:active,
:focus {
    outline: none;
}

.content a,
.content p a {
  text-decoration: underline;
}

a:hover,
.content a:hover,
#searchresults a {
  color: #ff6600;
}

a {
  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

a.header:target h1::before,
a.header:target h2::before,
a.header:target h3::before,
a.header:target h4::before,
a.header:target h5::before,
a.header:target h6::before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 12px;
    border-color: transparent transparent transparent #ff6600;
    margin: 0;
    position: absolute;
    top: 94px;
    left: -18px;
    text-decoration: none !important;
}

a.header:target h2::before { top: 30px; }
a.header:target h3::before { top: 29px; }
a.header:target h4::before { top: 27px; }
a.header:target h5::before { top: 25px; }
a.header:target h6::before { margin-top: -10px !important; }


.content a.header:link h1,
.content a.header:link h2,
.content a.header:link h3,
.content a.header:link h4,
.content a.header:link h5,
.content a.header:link h6 {
  margin-top: 0;
  padding-top: 20px;
}

.sidebar {
    padding: 0;
    border-right: 1px solid #e5e5e5;
    border-left: 1px solid #e5e5e5;
    top: 82px;
}

.brand {
    position: fixed;
    top: 0;

    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    border-left: 1px solid #e5e5e5;

    height: 81px;
    width: var(--sidebar-width);
}

.sidebar,
.brand {
    left: calc(50% - 720px);
}

.sidebar-hidden .sidebar {
    transform: translateX(calc(0px - 3000px));
}


@media only screen and (max-width: 1440px) {
    .sidebar,
    .brand {
        left: 0;
    }    
}

.brand svg {
    height: 40px;
    margin-top: 20px;
    margin-left: 20px;
}

.page-wrapper {
    border-right: 1px solid #e5e5e5;
    min-height: 100vh;
}

.sidebar-hidden .page-wrapper {
    border-left: 1px solid #e5e5e5;
}

.left-buttons {
    margin-left: -30px;
}

.sidebar-hidden .left-buttons {
    margin-left: 20px;
}

.left-buttons,
.right-buttons {
    display: flex;
}


#menu-bar > #menu-bar-sticky-container {
    border-bottom: 1px solid #e5e5e5 !important;
    background-color: rgba(255, 255, 255, .9);
}

#menu-bar i,
#menu-bar .icon-button {
    line-height: 80px;
}

html:not(.sidebar-visible) #menu-bar:not(:hover).folded > #menu-bar-sticky-container {
    transform: none;
}

pre {
    background-color: #f8f8f8;
    padding: 10px;
    padding-right: 2px;
    border: 1px solid #e5e5e5;
    color: #222e83;
    border-radius: 4px;

    font-size: 13px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

code {
    display: inline-block;
    color: var(--text);
    background-color: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 1px 3px;
    margin: 1px;

    font-size: 13px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

pre code {
  display: inline;
  border: none;
  background-color: transparent;
  padding: 0;
  margin: 0;
  color: #222e83;
}

hr {
    display: block;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #e5e5e5;
    margin: 2em 0;
}

.chapter {
    padding: 20px;
}

.chapter ol {
    padding-left: 10px;
}

.chapter > li > .section > li > .section {
    margin-bottom: 10px;
}

.chapter li {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 2px;
}

.chapter li .active {
    font-weight: bold;
}

.chapter li li {
    font-weight: normal;
}

.chapter li li li {
    font-size: 13px;
}

.chapter li li li a {
    color: #666;
}

.chapter li a:hover {
    color: #222e83;
}

.chapter li a {
    line-height: 1.2;
    padding: 6px 8px;
    display: inline-block;
    border-radius: 4px;
}

.chapter li a:hover {
    background-color: #fff;
}

.chapter li a.active{
    background-color: #fff;
    color: var(--sidebar-active) !important;
}


.page-footer {
    border-top: 1px solid #e5e5e5;
    padding: 50px 30px;
    font-size: 13px;
    color: #999;
}

.footer-meta-wrapper {
  float: right;
}

@media only screen and (max-width: 800px) {
  .footer-meta-wrapper {
    float: none;
  }  
}


#git-sha {
  display: none;
}


#search-wrapper {
    background-color: #fcf0e8;

    margin-left: -15px;
    margin-right: -15px;

    padding-left: 25px;
    padding-right: 25px;
}

#searchbar {
    margin: 0;
    margin-left: -25px;
    margin-right: -25px;

    padding-left: 25px;
    padding-right: 25px;

    width: calc(100% + 50px);

    background-color: #fdeade;
    border: none;
    border-radius: 0;

    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 32px;

    box-shadow: none !important;
    border-bottom: 1px solid #ccc;
}

ul#searchresults {
    padding-left: 0;
}

ul#searchresults span.teaser {
    margin: 5px 0 0 0;
}

.searchresults-outer {
    border-bottom: 1px solid #e5e5e5;
}



.sidebar-hidden .hide-sidebar {
  display: none;
}

.sidebar-visible .show-sidebar {
  display: none;
}

#sidebar-toggle .fa {
  font-size: 16px;
}

table {
  width: 100%;
  margin: 0;
}

table td {
  min-width: 90px;
  word-break: break-word;
}

table thead th {
  color: #fff;
  padding: 10px 15px;
  white-space: nowrap;
}

.intro-meta {
  font-size: 12px;
  background-color: #f5f5f5;
  border: 1px solid #e5e5e5;
  padding: 0 15px;
  border-radius: 4px;
  margin-bottom: 100px;
}

.intro-meta span {
  float: right;
}

@media only screen and (max-width: 1080px) {
  
  .intro-meta {
    text-align: center;
  }

  .intro-meta span {
    float: none;
    display: block;
  }

}
