/*
 * Styles for specifications written in reStructuredText and rendered with Sphinx.
 *
 * This file is loaded in addition to style.css and only covers the markup that
 * Sphinx generates differently from our DocBook stylesheets.
 */


/* Headings */

.documentation [id] {
  /* ensure link targets are not hidden by the fixed header */
  scroll-margin-top: 40px;
}

.section-number {
  color: #666;
}

section:target>.title>span {
  background-color: rgba(255, 255, 0, 0.3);
}

.headerlink {
  font-size: 75%;
  font-weight: normal;
  color: #999;
  line-height: 100%;
  margin-left: 0.35em;
  text-decoration: none;
}

.headerlink:hover,
.headerlink:focus,
.headerlink:active {
  color: #3B80AE;
  text-decoration: none!important;
}

/* the title of an appendix is followed by a separator line */
.appendix>.title {
  padding-bottom: 22px;
  margin: 0 0 36px;
  border-bottom: 1px solid #3B80AE;
}

.rubric {
  font-weight: 600;
  color: #333;
  margin: 33px 0 0;
}


/* Code */

.verbatim-wrap pre,
pre.verbatim-wrap {
  font: normal 13px 'DejaVu Sans Mono', DejaVuSansMono, Menlo, 'Andale Mono', monospace;
  color: #333;
  line-height: 125%;
}

pre.verbatim-wrap {
  overflow: auto;
}

.verbatim-wrap .highlight {
  background: transparent;
}

.verbatim-wrap .linenos {
  color: #999;
  padding-right: 10px;
  user-select: none;
}

.verbatim-wrap .hll {
  background-color: #FFC;
  display: block;
}

.literal-block-wrapper {
  margin: 24px 0;
}

.code-block-caption {
  font-size: 14px;
  text-transform: uppercase;
  line-height: 120%;
  margin: 0 0 5px;
}

code .pre {
  white-space: nowrap;
}

kbd {
  font-family: 'DejaVu Sans Mono', DejaVuSansMono, Menlo, 'Andale Mono', monospace;
  font-size: 13px;
  color: #333;
  padding: 0 4px;
  border: 1px solid #C1C1C3;
  border-radius: 3px;
  background-color: #EFEFF0;
}


/* Admonitions */

.admonition>.admonition-title {
  font-weight: 600;
  color: #333;
  min-height: 36px;
  line-height: 36px;
  margin: 0!important;
  padding: 0 0 0 46px;
  background: url(../images/icon-note.png) no-repeat scroll left top;
}

.admonition,
.admonition.seealso,
.admonition.admonition-todo {
  border-color: #666;
  background: #FFF url(../images/dots-darkgray.png) repeat-x scroll top;
}

.admonition.hint,
.admonition.tip {
  border-color: #3465A4;
  background: #FFF url(../images/dots-blue.png) repeat-x scroll top;
}

.admonition.hint>.admonition-title,
.admonition.tip>.admonition-title {
  color: #3465A4;
  background-image: url(../images/icon-tip.png);
}

.admonition.important {
  border-color: #BB7B03;
  background: #FFF url(../images/dots-orange.png) repeat-x scroll top;
}

.admonition.important>.admonition-title {
  color: #BB7B03;
  background-image: url(../images/icon-important.png);
}

.admonition.warning,
.admonition.caution,
.admonition.attention,
.admonition.danger,
.admonition.error {
  border-color: #8C0000;
  background: #FFF url(../images/dots-red.png) repeat-x scroll top;
}

.admonition.warning>.admonition-title,
.admonition.caution>.admonition-title,
.admonition.attention>.admonition-title,
.admonition.danger>.admonition-title,
.admonition.error>.admonition-title {
  color: #8C0000;
  background-image: url(../images/icon-warning.png);
}

.admonition ul,
.admonition ol {
  color: #666;
}

.admonition.important ul,
.admonition.important ol {
  color: #BB7B03;
}

details.admonition>summary {
  cursor: pointer;
}

.versionadded,
.versionchanged,
.deprecated,
.versionremoved {
  margin: 17px 0;
}

.versionmodified {
  font-style: italic;
}

.deprecated .versionmodified,
.versionremoved .versionmodified {
  color: #8C0000;
}


/* Lists */

.article section ul,
.article section ol {
  margin-bottom: 24px;
}

.article section li ul,
.article section li ol,
.article section .admonition ul,
.article section .admonition ol {
  margin-bottom: 0;
}

.article ol {
  display: block;
  color: #3B80AE;
  font-weight: normal;
  padding: 5px 0 0 35px;
  margin-left: 10px;
  list-style-type: decimal;
}

.article ol.loweralpha {
  list-style-type: lower-alpha;
}

.article ol.upperalpha {
  list-style-type: upper-alpha;
}

.article ol.lowerroman {
  list-style-type: lower-roman;
}

.article ol.upperroman {
  list-style-type: upper-roman;
}

.article section dl {
  margin: 24px 0;
}

.article section dt {
  font-weight: 600;
  color: #000;
}

.article section dd {
  margin: 0 0 17px;
  padding: 0 0 0 30px;
}

.article section dd>p:first-child {
  margin-top: 0;
}

.article section dd>dl {
  margin: 10px 0 0;
}

.field-list .colon {
  padding: 0;
}


/* Tables */

.table th,
.informaltable th {
  margin: 0;
  padding: 3px 5px;
  font-weight: 600;
  text-align: left;
  vertical-align: middle;
  border-right: 1px solid #999;
  border-bottom: 1px solid #999;
}

.table caption {
  font-size: 14px;
  font-weight: normal;
  text-transform: uppercase;
  text-align: left;
  line-height: 120%;
  padding: 0 0 5px;
}

.table {
  margin: 24px 0;
}

.table table.align-center,
.informaltable table.align-center {
  margin-left: auto;
  margin-right: auto;
}

.table table.align-right,
.informaltable table.align-right {
  margin-left: auto;
}


/* Footnotes and citations */

a.footnote-reference,
a.citation-reference {
  line-height: 0;
}

a.footnote-reference,
a.citation-reference,
.footnote>.label a,
.citation>.label a {
  color: #3B80AE;
}

a.footnote-reference:hover,
a.footnote-reference:focus,
a.citation-reference:hover,
a.citation-reference:focus,
.footnote>.label a:hover,
.footnote>.label a:focus,
.citation>.label a:hover,
.citation>.label a:focus {
  text-decoration: underline;
}

.fn-bracket {
  padding: 0;
}

.footnote-list,
.citation-list {
  margin: 17px 0 0;
}

.footnote,
.citation {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 10px;
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 140%;
}

.footnote>.label,
.citation>.label {
  grid-column: 1;
  min-width: 25px;
  color: #666;
}

.footnote>:not(.label),
.citation>:not(.label) {
  grid-column: 2;
}

.footnote>p,
.citation>p {
  margin: 0 0 5px;
}


/* Other blocks */

.article blockquote {
  margin: 17px 30px;
}

.article hr {
  border: 0;
  border-top: 1px solid #999;
  margin: 24px 0;
}

.article img {
  max-width: 100%;
}

.article figure {
  margin: 24px 0;
}

.article figure.align-center {
  text-align: center;
}

.article figure.align-right {
  text-align: right;
}

.article figcaption {
  font-size: 14px;
  text-transform: uppercase;
  line-height: 120%;
  margin: 5px 0 0;
}

.article figcaption p {
  margin: 0;
  text-align: inherit;
}

.topic,
nav.contents {
  margin: 24px 0;
  padding: 10px;
  border: 1px solid #C1C1C3;
  background-color: #F9F9F9;
}

.topic-title {
  font-weight: 600;
  margin: 0;
}

/* a line in a line block has nothing to do with the separator line from the main stylesheet */
.line-block {
  margin: 10px 0 0;
}

.line-block .line {
  margin: 0;
  border: none;
  width: auto;
}

.line-block .line-block {
  margin: 0 0 0 30px;
}


@media print {
  .headerlink {
    display: none;
  }
}
