/* Current sphinx_rtd_theme uses buttons instead of the old span controls.
   Match its icon and button reset while retaining the JCM navigation colours. */
.wy-menu-vertical li button.toctree-expand {
  display: block;
  float: left;
  margin-left: -1.2em;
  font-size: inherit;
  line-height: 18px;
  color: inherit;
  border: none;
  background: none;
  padding: 0;
}

.wy-menu-vertical li button.toctree-expand::before {
  content: "\f196";
  font-family: "FontAwesome";
  display: inline-block;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  text-decoration: inherit;
  -webkit-font-smoothing: antialiased;
}

.wy-menu-vertical li.on a button.toctree-expand::before,
.wy-menu-vertical li.current > a button.toctree-expand::before {
  content: "\f147";
}

/* Restore the compact, bulleted document toctree used with Sphinx 3. */
.rst-content .toctree-wrapper ul {
  line-height: 1.25;
  list-style: disc outside;
  margin-bottom: 12px;
}

.rst-content .toctree-wrapper ul ul {
  margin-bottom: 0;
}

.rst-content .toctree-wrapper li {
  display: list-item;
  list-style: disc outside;
  margin-left: 24px;
}

.rst-content .toctree-wrapper li li {
  list-style-type: circle;
}

.rst-content .toctree-wrapper li li li {
  list-style-type: square;
}

.rst-content .toctree-wrapper li > p {
  margin-bottom: 0;
}

/* Sphinx 4+ uses <section> instead of <div class="section">. */
.rst-content section ul {
  line-height: 1.25;
  list-style: disc outside;
  margin-bottom: 12px;
}

.rst-content section ul li {
  display: list-item;
  list-style: disc outside;
  margin-left: 24px;
}

.rst-content section ul li li {
  list-style-type: circle;
}

.rst-content section ul li li li {
  list-style-type: square;
}

.rst-content section ul li > p {
  margin-bottom: 4px;
}

.rst-content section ul li > p:last-child {
  margin-bottom: 8px;
}
