/** Patch on AsciiDoctor styles */
html, body {font-size: .9em; line-height: .8em}
p {margin-bottom: 1rem}

@media only screen and (min-width:1280px) {
  body.toc2 {
    padding-left:25em;
    padding-right:0
  }
  #toc.toc2 {
    width:25em; overflow-x: scroll;
  }
  body.article > #header {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #fff;
  }
}

:root {
  --search-bg-color: #ccc;
}

#header,
#content,
#footnotes,
#footer {
  max-width: none;
}

#header > h1:first-child {
  margin-top: 1rem;
  white-space: nowrap;
}

.stretch {
  width: 100%;
}

/* body */
body.article > #header,
body.article > #content,
body.article > #footnotes,
body.article > #footer {
  padding-left: 2em;
  padding-right: 2em;
}

body.article > #header #source-link {
  float: right;
}

body * {
  scrollbar-width: thin;
}

/* toc */
#toc.toc2 {
  padding: 0em 1em;
}

#toc.toc2 div.ulist {
  margin-bottom: 0;
}

#toc.toc2 #content > div.ulist > ul {
  margin-left: 0;
}

#toc.toc2 ul.sectlevel1 li a {
  /* color of headers */
  color: #ba3925;
}

#toc.toc2 li {
  margin-top: 0;
}

#toc.toc2 li > p {
  margin-bottom: 0;
}

#toc.toc2 li a {
  white-space: nowrap;
}

#toc.toc2 li a.current {
  font-weight: bold;
}

#toc.toc2 li a.search {
  background-color: var(--search-bg-color);
}

/* current fragment symbol */
#content .current > a.anchor {
  visibility:visible
}

.sectionbody a.current::before {
  content: "\00A7";
}

/* elements */
.exampleblock > .content {
  overflow: auto;
  white-space: nowrap;
}

.listingblock code {
  display: block;
  overflow: auto;
  white-space: pre;
}

/* for asciidoc table columns */
td.tableblock * {
  font-size: 1em;
}

/* search */
#search > * {
  display: table-cell;
}

#search-input {
  width: 100%;
}

#search-input input {
  width: 100%;
}

#search-count {
  width: 1px;
  white-space: nowrap;
  background-color: var(--search-bg-color);
}
