/******************************************************************************
 * JADE specific styles
 *****************************************************************************/

.muted {
  color: #999;
}

.chapterref>h5 {
  color: #777;
  margin-bottom: 0;
  margin-top: 2.5em;
  line-height: 1;
}

.chapterref~.sect2>h3 {
  margin-top: 0;
}

/* Footer styles
-------------------------------------------------- */

/* Set the fixed height of the footer here */

#footer {
  padding-right: 1em;
  padding-left: 1em;
  text-align: right;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Fixes + improvements for book-style.css
-------------------------------------------------- */

div.navbar-brand {
  padding: 2em;
}

#book-search-input {
  margin: 0;
}

.page-wrapper {
  padding-bottom: 40px;
}

.page-inner {
  font-size: 1.6rem;
  max-width: unset;
}

.markdown-section h2:first-of-type {
  margin-top: 2em;
}

.markdown-section h4 {
  color: #444;
  margin-bottom: 0.5em;
}

.markdown-section .title {
  font-style: italic;
  font-size: 0.9em;
  padding: 15px 0px 20px 0px;
}

/* Needed for ascii-doc [.line-through]#some text# to work as intended */
.line-through { text-decoration: line-through; }

/* Needed for ascii-doc [.underline]#some text# to work as intended */
.underline { text-decoration: underline; }

/* Fix distance between code-block and title */
.markdown-section div.listingblock > div.title {
  padding-bottom: 0;
}

/* fix distance between table and title */
.markdown-section table.tableblock caption.title {
  padding-bottom: 5px;
}

/* Consistent paddings in summary */

.book-summary ul.summary li a, .book-summary ul.summary li span {
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
  white-space: pre-wrap;
}

.book-summary ul.summary {
  padding: 2em;
}

.book-summary ul.summary>li.chapter {
  padding-bottom: 1em;
}

.book-summary ul.summary>li.chapter>a {
  font-weight: bold;
  color: #777;
}

.book-summary ul.summary>li.chapter.active>a,
.book-summary ul.summary a.active {
  color: #008cff;
}

.book-summary ul.summary li.subchapter {
  padding-left: 1em;
}

.book-summary ul.summary ul.articles {
  padding-left: 1em;
}

/* Make summary responsive */

.book.with-summary {
  display: flex;
  flex-wrap: wrap;
  overflow: auto;
}

.book-body {
  padding-bottom: 0;
  max-width: 100%;
}

.book-body .body-inner {
  position: relative;
  overflow: auto;
}

.book.with-summary .book-body {
  -webkit-transform: none;
  -moz-transform: none;
  -ms-transform: none;
  -o-transform: none;
  transform: none;
  position: relative;
  left: initial;
  flex-grow: 1;

  /* Prevents overflow caused by the footer's margins
     which resulted in duplicated scrollbars for mobile devices */
  margin: auto;
}

.book-summary {
  width: 100%;
  position: relative;
  overflow: auto;
}

@media (min-width: 768px) {
  .book-summary {
    width: 300px;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  .book-summary>nav {
    overflow: auto;
  }
  .book.with-summary .book-body {
    max-width: calc(100% - 300px);
    height: 100%;
    display: flex;
    flex-direction: column;
  }
}

/* Put images in the center */

.markdown-section img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.markdown-section span img {
  display: inline-block;
  vertical-align: middle;
}

/* Make large tables horizontally scrollable */

.markdown-section table {
  display: block;
}

/* Unfloat arrows by default */

.book-body .navigation {
  float: none;
  max-width: none;
  position: relative;
  display: inline-block;
  left: initial;
}

.book-body .navigation-prev,
.book-body .navigation-next {
  width: 50%;
}

/* Style for the menulink below the logo */

.navbar-brand > a {
  display: block;
  width: 100%;
}

.navbar-brand > a:link:hover {
  text-decoration: underline;
}

div.navbar-brand a ~ a {
  margin-top: .5em;
  color: #999;
  font-size: smaller;
}

/* Smaller default paddings */

.book-body>.body-inner {
  padding: 20px;
  min-height: calc(100% - 50px - 46px);
}

/* Make paddings bigger, float arrows to use excessive space */

@media (min-width: 1240px) {
  .book-body .navigation {
    position: fixed;
    width: unset;
    height: 80%;
    display: flex;
  }

  /* Prevents the right navigation arrow from overlapping with the scrollbar */
  .book-body .navigation-next {
    margin-right: 17px;
    height: 55%;
    top: 20%;
  }

  .book-body>.body-inner {
    padding: 20px 160px 0px 160px;
  }
}

/* Admonition styles
-------------------------------------------------- */

.admonitionblock td.icon [class^="fa icon-"]:before {
  font-size: 2.5em;
  cursor: default;
}

.admonitionblock td.icon .icon-note:before {
  content: "\f05a";
  color: #009fe3;
}

.admonitionblock td.icon .icon-tip:before {
  content: "\f0eb";
  color: #111;
}

.admonitionblock td.icon .icon-warning:before {
  content: "\f071";
  color: #ffb700;
}

.admonitionblock td.icon .icon-caution:before {
  content: "\f06d";
  color: #ffb700;
}

.admonitionblock td.icon .icon-important:before {
  content: "\f06a";
  color: #ff3100;
}

.admonitionblock>table {
  border: 0;
  background: none;
  width: 100%;
}

.admonitionblock>table td.icon {
  text-align: center;
  width: 80px;
  border: none;
}

.admonitionblock>table td.icon img {
  max-width: none;
}

.admonitionblock>table td.icon .title {
  font-weight: bold;
  text-transform: uppercase;
}

.admonitionblock>table td.content {
  padding-left: 1.125em;
  padding-right: 1.25em;
  padding-top: 1em;
  padding-bottom: 1em;
  border-left: 1px solid #ddd;
  color: #6f6f6f;
  border-right: none;
  border-top: none;
  border-bottom: none;
}

.admonitionblock>table td.content> :last-child> :last-child {
  margin-bottom: 0;
}

.admonitionblock>table>tbody>tr {
  border-top: none;
}

.admonitionblock {
  padding: 1.5em 0;
}

/* Block styles from Asciidoctor
-------------------------------------------------- */

.admonitionblock td.content > .title, 
.exampleblock > .title, 
.imageblock > .title, 
.videoblock > .title, 
.listingblock > .title, 
.literalblock > .title, 
.openblock > .title, 
.paragraph > .title, 
.quoteblock > .title, 
.sidebarblock > .title, 
.tableblock > .title, 
.verseblock > .title, 
.dlist > .title, 
.olist > .title, 
.ulist > .title, 
.qlist > .title, 
.hdlist > .title { 
  text-align: left; 
  font-weight: bold; 
  /* JADE: make titles closer to the blocks */
  padding-bottom: .5em;
}

.exampleblock > .content {
  border-style: solid;
  border-width: 1px;
  border-color: #e6e6e6;
  margin-bottom: 1.25em; 
  padding: 1.25em; 
  background: white; 
  -webkit-border-radius: 4px; 
  border-radius: 4px; 
}

.exampleblock > .content > :first-child { 
  margin-top: 0; 
}

.exampleblock > .content > :last-child { 
  margin-bottom: 0; 
}

.exampleblock > .content h1, 
.exampleblock > .content h2, 
.exampleblock > .content h3, 
.exampleblock > .content #toctitle, 
.sidebarblock.exampleblock > .content > .title, 
.exampleblock > .content h4, 
.exampleblock > .content h5, 
.exampleblock > .content h6, 
.exampleblock > .content p { 
  color: #333333; 
}

.exampleblock > .content h1, 
.exampleblock > .content h2,
.exampleblock > .content h3, 
.exampleblock > .content #toctitle, 
.sidebarblock.exampleblock > .content > .title, 
.exampleblock > .content h4, 
.exampleblock > .content h5, 
.exampleblock > .content h6 { 
  line-height: 1; 
  margin-bottom: 0.625em; 
}

.exampleblock > .content h1.subheader, 
.exampleblock > .content h2.subheader, 
.exampleblock > .content h3.subheader, 
.exampleblock > .content .subheader#toctitle, 
.sidebarblock.exampleblock > .content > .subheader.title, 
.exampleblock > .content h4.subheader, 
.exampleblock > .content h5.subheader, 
.exampleblock > .content h6.subheader { 
  line-height: 1.4; 
}

.exampleblock.result > .content { 
  -webkit-box-shadow: 0 1px 8px #d9d9d9; 
  box-shadow: 0 1px 8px #d9d9d9; 
}

.exampleblock > .content > :last-child > :last-child, 
.exampleblock > .content .olist > ol > li:last-child > :last-child, 
.exampleblock > .content .ulist > ul > li:last-child > :last-child, 
.exampleblock > .content .qlist > ol > li:last-child > :last-child { 
  margin-bottom: 0; 
}

/* horizonal  styles from Asciidoctor that do not work
-------------------------------------------------- */
.markdown-section .hdlist > table > tbody > tr, .markdown-section .colist > table > tbody > tr {
    background: none;
}

.markdown-section .hdlist > table td, .markdown-section .hdlist > table tr{
  border: none;
}

.markdown-section table > tbody > tr > td.hdlist1 {
    font-weight: bold;
    color: #777;
    padding-bottom: 1.25em;
    width: 300px;
    line-height: 1.3em;
    padding-top: .2em;
}

.markdown-section table td.hdlist1, .markdown-section table td.hdlist2 {
    vertical-align: top;
    padding: 0 .625em;
    padding-bottom: 0px;
}
.markdown-section table td.hdlist1, td.hdlist2 {
    vertical-align: top;
    padding: 0 .625em;
}
