:root {
  --nav-side-width: 300px;  /* default is 300px */
  /* for 100% width */
  /*--nav-content-width: 100%;*/
  /*--local-toc-width: 300px;*/
  /*--nav-content-width-wide: calc(100% - var(--local-toc-width)); /* 100% here is fullscreen */
  /*--local-toc-left: calc(100% - var(--local-toc-width)); /* 100% here is w/o sidebar */

  /* for fixed widths */
  --nav-content-width: 800px;  /* default is 800px */
  --nav-content-width-wide: var(--nav-content-width);
  --local-toc-width: calc(100% - var(--nav-content-width-wide));
  --local-toc-left: calc(var(--nav-content-width-wide) + var(--nav-side-width));
}


/* main content width */
.wy-nav-content {
  max-width: var(--nav-content-width);
}

/* Sidebar width */
.wy-nav-side {
  width: var(--nav-side-width);
}

.wy-side-nav-search {
  background: rgb(243,244,247);
}

.wy-side-nav-search > a {
  color: black;
}

.wy-side-nav-search> a img.logo {
  width: 50%;
}


.wy-side-nav-search > div.version {
  color: black;
}

.wy-nav-content-wrap {
  background: inherit;
}

.wy-side-nav-search input[type="text"] {
  border: none;
  box-shadow: none;
  background: white;
  border-radius: 0;
  font-size: 100%;
}

.wy-menu-vertical li.current a,
.wy-menu-vertical li.toctree-l1.current > a {
  border: none;
}

.ethical-rtd > div.ethical-sidebar,
.ethical-rtd > div.ethical-footer {
  display: none !important;
}

h1 {
  text-transform: uppercase;
  font-family: inherit;
  font-weight: 200;
}

h2,
.rst-content .toctree-wrapper p.caption {
  font-family: inherit;
  font-weight: 200;
}

.rst-content a:visited {
  color: #3091d1;
}

/* Begin code */
.rst-content pre.literal-block,
.rst-content div[class^="highlight"] {
  border: none;
}

.rst-content pre.literal-block,
.rst-content div[class^="highlight"] pre,
.rst-content .linenodiv pre {
  font-size: 80%;
}

.highlight {
  background: #f6f8fa;
  border-radius: 6px;
}

.highlight .kn,
.highlight .k {
  color: #d73a49;
}

.highlight .nn {
  color: inherit;
  font-weight: inherit;
}

.highlight .nc {
  color: #e36209;
  font-weight: inherit;
}

.highlight .fm,
.highlight .nd,
.highlight .nf,
.highlight .nb {
  color: #6f42c1;
}

.highlight .bp,
.highlight .n {
  color: inherit;
}

.highlight .kc,
.highlight .s1,
.highlight .s2,
.highlight .mi,
.highlight .mf,
.highlight .bp,
.highlight .bn,
.highlight .ow {
  color: #005cc5;
  font-weight: inherit;
}

.highlight .c1 {
  color: #6a737d;
}

.rst-content code.xref {
  padding: .2em .4em;
  background: rgba(27,31,35,.05);
  border-radius: 6px;
  border: none;
}
/* End code */

.rst-content dl:not(.docutils) dt,
.rst-content dl:not(.docutils) dl dt {
  background: rgb(243,244,247);
}

.rst-content dl:not(.docutils) dt.field-odd,
.rst-content dl:not(.docutils) dt.field-odd {
  text-transform: uppercase;
  background: inherit;
  border: none;
  padding: 6px 0;
}

.rst-content dl:not(.docutils) .property {
  text-transform: uppercase;
  font-style: normal;
  padding-right: 12px;
}

em.sig-param span.n:first-child, em.sig-param span.n:nth-child(2) {
  color: black;
  font-style: normal;
}

em.sig-param span.n:nth-child(3),
em.sig-param span.n:nth-child(3) a {
  color: inherit;
  font-weight: normal;
  font-style: normal;
}

em.sig-param span.default_value {
  font-family: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;
  font-style: normal;
  font-size: 90%;
}

.sig-paren {
  padding: 0 4px;
}

.wy-table-responsive table td,
.wy-table-responsive table th {
  white-space: normal;
}

.wy-table-bordered-all,
.rst-content table.docutils {
  border: none;
}

.wy-table-bordered-all td,
.rst-content table.docutils td {
  border: none;
}

.wy-table-odd td,
.wy-table-striped tr:nth-child(2n-1) td,
.rst-content table.docutils:not(.field-list) tr:nth-child(2n-1) td {
  background: rgb(243,244,247);
}

.wy-table td,
.rst-content table.docutils td,
.rst-content table.field-list td,
.wy-table th,
.rst-content table.docutils th,
.rst-content table.field-list th {
  padding: 16px;
}


/* Create local table of contents
   ------------------------------
  inspired by https://github.com/readthedocs/sphinx_rtd_theme/pull/919
  and https://github.com/readthedocs/sphinx_rtd_theme/issues/764
  see also _templates/layout.html
 */

#local-table-of-contents {
  padding-bottom: 20px;
  /* display: none; */
}

/* Mask entry of main header (chapter) */
#local-table-of-contents a[href="#"]{
  /*display: none;*/
}

/* indent subsections */
#local-table-of-contents ul > ul {
  padding-left: 0px;
  margin-left: 20px;
  padding-right: 0;
  padding-bottom: 5px;
}


#local-table-of-contents-title {
  margin-bottom: 10px;
}

/* Show in Sidebar if window width is larger than nav-side + nav-content + toc-width */
@media screen and (min-width: 1200px) {
  .wy-nav-content {
    max-width: var(--nav-content-width-wide);
  }

  #local-table-of-contents {
    display: block;
    position: fixed;
    margin-left: 15px;
    overflow-y: auto;
    height: 95%;
    top: 45px;
    left: var(--local-toc-left);
    width: var(--local-toc-width);
  }

  #local-table-of-contents-title {
    display: block;
    font-size: 16px;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 5px;
  }
}

/* Custom styles for bibliography */
.citation {
    display: block!important;
}

.citation .label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5em;
}

.citation p {
    margin: 0;
    padding-left: 1em;
}

.citation cite {
    display: block;
}
