/* vim:set filetype=css: */

/* -- page layout ----------------------------------------------------------- */

input,
select {
  vertical-align: middle;
}

html {
  scroll-behavior: smooth;
}

body {
  padding: 0;
  margin: 0;
  font-family: "Arial", "Helvetica", "Hiragino Kaku Gothic Pro",
    "ヒラギノ角ゴ Pro W3", "メイリオ", "Meiryo", "ＭＳ Ｐゴシック",
    "Lucida Grande", "Lucida Sans Unicode", "Verdana", sans-serif;
  font-size: 14px;
  color: #000;
  background-color: white;
}

#container {
  --header-height: 70px;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#container > header {
  position: sticky;
  top: 0;
  left: 0;
  display: flex;
  flex: none;
  flex-direction: row;
  align-items: center;
  height: var(--header-height);
  padding: 0 0 0 10px;
  color: #fff;
  background: #183b43;
}

#container > header > nav {
  padding-right: 10px;
  margin-left: auto;
}

#container > header nav ul {
  display: flex;
  flex-direction: row;
  gap: 0 15px;
  padding: 0;
  margin: 0;
  list-style: none;
}

#container > header nav a {
  padding: 10px 15px;
  color: #ccc;
  text-decoration: none;
  border-radius: 4px;
}

#container > header nav a:hover {
  color: #fff;
  background: #2a5b67;
}

#content {
  display: flex;
  flex: 1;
}

#main {
  --breadcrumbs-height: 50px;

  display: flex;
  flex: 1;
  flex-direction: column;
}

#main :target {
  scroll-margin-block-start: calc(
    var(--header-height) + var(--breadcrumbs-height)
  );
}

#main > nav {
  position: sticky;
  top: var(--header-height);
  z-index: 100000;
  box-sizing: border-box;
  height: 50px;
  padding: 0 10px;
  margin: 0;
  overflow: hidden;
  line-height: calc(var(--breadcrumbs-height) - 1px);
  color: #333;
  background: #fff;
  border-bottom: 1px solid #ddd;
  opacity: 0.9;
}

#main > nav ul {
  display: flex;
  flex-direction: row;
  margin: 0;
  font-size: 16px;
  list-style: none;
}

#main > nav li {
  padding: 0;
  margin: 0;
  white-space: nowrap;
  list-style: none;
}

#main > nav li:not(:last-child)::after {
  padding: 0 5px;
  color: #888;
  content: ">";
}

#main > nav a {
  text-decoration: none;
}

#main > footer {
  padding: 10px;
  text-align: right;
}

main.document {
  flex: 1;
}

.sphinxsidebar {
  width: 250px;
  padding: 20px 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #fff;
  background: #66b0c1;
}

.sphinxsidebar a {
  text-decoration: none;
}

.sphinxsidebar ul {
  padding: 0 0 0 15px;
  margin: 0;
  color: #000;
  list-style: none;
}

.sphinxsidebar ul li a {
  display: block;
  padding: 8px 0 8px 10px;
  font-size: 90%;
  color: #eee;
  text-decoration: none;
}

.sphinxsidebar ul li a:hover {
  background: #316874;
}

.sphinxsidebar h3,
.sphinxsidebar h4 {
  padding: 6px 0 6px 10px;
  margin: 0 0 5px;
  font-weight: normal;
  background: #5097a7;
  border-right: 10px solid #275661;
}

.sphinxsidebar h3 {
  font-size: 24px;
}

.sphinxsidebar h3 a {
  color: #fff;
}

.sphinxsidebar h4 {
  font-size: 20px;
}

.sphinxsidebar p.blurb {
  margin-top: 0;
  font-style: normal;
}

.sphinxsidebar p.logo a,
.sphinxsidebar h3 a,
.sphinxsidebar p.logo a:hover,
.sphinxsidebar h3 a:hover {
  border: none;
}

.sphinxsidebar p {
  margin: 10px 0;
}

.sphinxsidebar ul li.toctree-l1 > a {
  font-size: 120%;
}

.sphinxsidebar ul li.toctree-l2 > a {
  font-size: 110%;
}

.sphinxsidebar input {
  border: 1px solid #ccc;
}

.sphinxsidebar hr {
  width: 50%;
  height: 1px;
  margin-left: 0;
  color: #aaa;
  text-align: left;
  background: #aaa;
  border: none;
}

hr {
  border: 1px solid #b1b4b6;
}

div.body {
  padding: 10px 10px 0;
  color: #3e4349;
  background-color: #fff;
}

div.body > .section {
  text-align: left;
}

div.relations {
  display: none;
}

/* -- body styles ----------------------------------------------------------- */

a {
  color: #66b0c1;
  text-decoration: underline;
}

a:hover {
  color: #6d4100;
  text-decoration: underline;
}

div.body h1,
div.body h2,
div.body h3,
div.body h4,
div.body h5,
div.body h6 {
  padding: 0;
  margin: 30px 0 10px;
}

div.body h1 {
  padding-top: 0;
  margin-top: 0;
  font-size: 240%;
}

div.body h2 {
  padding: 5px 0 5px 10px;
  font-size: 180%;
  background: #f8f8f8;
  border-left: 4px solid #66b0c1;
}

div.body h3 {
  font-size: 150%;
  border-bottom: 1px solid #ddd;
}

div.body h4 {
  font-size: 120%;
}

div.body h5 {
  font-size: 100%;
}

div.body h6 {
  font-size: 100%;
}

a.headerlink {
  padding: 0 4px;
  color: #ddd;
  text-decoration: none;
}

a.headerlink:hover {
  color: #444;
  background: #eaeaea;
}

div.body p,
div.body dd,
div.body li {
  line-height: 1.5em;
}

div.admonition {
  padding: 10px 30px;
  margin: 20px 0;
  background-color: #fcc;
  border: 1px solid #faa;
}

div.admonition tt.xref,
div.admonition a tt {
  border-bottom: 1px solid #fafafa;
}

dd div.admonition {
  padding-left: 60px;
  margin-left: -60px;
}

div.admonition p.admonition-title {
  padding: 0;
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: normal;
  line-height: 1;
}

div.admonition p.last {
  margin-bottom: 0;
}

div.highlight {
  background-color: white;
}

dt:target,
.highlight {
  background: #faf3e8;
}

div.note {
  background-color: #eee;
  border: 1px solid #ccc;
}

div.seealso {
  background-color: #eee;
  border: 1px solid #ccc;
}

div.topic {
  padding: 10px;
  background-color: #f8f8f8;
}

p.admonition-title {
  display: inline;
}

p.admonition-title::after {
  content: ":";
}

pre,
tt,
code {
  font-family: "Consolas", "Menlo", "Deja Vu Sans Mono",
    "Bitstream Vera Sans Mono", monospace;
  font-size: 0.9em;
}

.hll {
  display: block;
  padding: 0 12px;
  margin: 0 -12px;
  background-color: #ffc;
}

tt.descname,
tt.descclassname,
code.descname,
code.descclassname {
  font-size: 0.95em;
}

tt.descname,
code.descname {
  padding-right: 0.08em;
}

img.screenshot {
  box-shadow: 2px 2px 4px #eee;
}

table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  border: 0;
}

table.docutils {
  word-break: break-all;
}

table.docutils td {
  vertical-align: baseline;
}

tr.row-even {
  background: #eee;
}

table.docutils td,
table.docutils th {
  padding: 0.25em 0.7em;
}

table.field-list,
table.footnote {
  border: none;
  box-shadow: none;
}

table.footnote {
  width: 100%;
  margin: 15px 0;
  font-size: 0.9em;
  background: #fdfdfd;
}

table.footnote + table.footnote {
  margin-top: -15px;
  border-top: none;
}

table.field-list th {
  padding: 0 0.8em 0 0;
}

table.field-list td {
  padding: 0;
}

table.field-list p {
  margin-bottom: 0.8em;
}

table.footnote td.label {
  width: 0;
  padding: 0.3em 0 0.3em 0.5em;
}

table.footnote td {
  padding: 0.3em 0.5em;
}

dl {
  padding: 0;
  margin: 0;
}

dl dd {
  margin-left: 30px;
}

blockquote {
  padding: 0;
  margin: 0 0 0 30px;
}

ul,
ol {
  padding: 0;
  margin: 10px 0 10px 30px;
}

pre {
  padding: 7px 30px;
  margin: 15px 0;
  line-height: 1.3em;
  background: #eee;
}

dl pre,
blockquote pre,
li pre {
  padding-left: 30px;
  margin-left: 0;
}

dl dl pre {
  padding-left: 90px;
  margin-left: -90px;
}

tt,
code {
  color: #222;
  background-color: #ecf0f3;

  /* padding: 1px 2px; */
}

tt.xref,
code.xref,
a tt {
  background-color: #fbfbfb;
  border-bottom: 1px solid white;
}

a.reference {
  text-decoration: none;
}

a.footnote-reference {
  font-size: 0.7em;
  text-decoration: none;
  vertical-align: top;
  border-bottom: 1px dotted #004b6b;
}

a.footnote-reference:hover {
  border-bottom: 1px solid #6d4100;
}

a:hover tt,
a:hover code {
  background: #eee;
}

@media screen and (width <= 870px) {
  .sphinxsidebar {
    display: none;
  }

  ul {
    margin-left: 0;
  }

  div.body {
    min-height: 0;
    padding: 0;
  }

  .rtd_doc_footer {
    display: none;
  }

  .github {
    display: none;
  }
}

/* misc. */

.revsys-inline {
  display: none !important;
}

/* Make nested-list/multi-paragraph items look better in Releases changelog
 * pages. Without this, docutils' magical list fuckery causes inconsistent
 * formatting between different release sub-lists.
 */
div#changelog > div.section > ul > li > p:only-child {
  margin-bottom: 0;
}

/* Hide fugly table cell borders in ..bibliography:: directive output */
table.docutils.citation,
table.docutils.citation td,
table.docutils.citation th {
  border: none;

  /* Below needed in some edge cases; if not applied, bottom shadows appear */

  box-shadow: none;
}

.toctree-wrapper ul li a {
  display: block;
  width: 100%;
  padding: 4px 3px;
  text-decoration: none;
}

.toctree-wrapper ul li a:hover {
  background: #f8f8f8;
}

.search {
  margin: 10px;
}

input {
  padding: 5px 8px;
  margin: 0 5px 0 0;
  line-height: 25px;
  outline: 3px solid #54acd4;
}

.searchtip {
  padding: 10px;
}