@import url("haiku.css");

body {
  max-width: 95vw;
}

div.relbar1 {
  float: right;
  padding-top: 15px;
  font-size: 0.8em;
  position: relative;
  z-index: 1;
}

div.header h2 {
  text-transform: none;
  color: #444;
}

/* Try to wrap bounding boxes around floats */
div.section * {
  overflow: hidden;
}

/* Code blocks */
div.highlight pre {
  display: inline-block;
  min-width: 50%;
  margin-inline-start: 5pt;
}

/* Override pygments' default */
.highlight {
  background: transparent !important;
}

/*
 * For marked inactive nodes that are not the first child or section headings,
 * set the text transparent and render a grey background, making it look like a
 * redaction
 */
.html-toggle:not(:active) :not(:first-child, section, .toc-backref, .headerlink) {
  background: grey;
  color: transparent;
}

/*
 * A "more specific" selector than :not is required, apparently, to prevent
 * links from showing through
 */
.html-toggle:not(:active) a :not(.toc-backref, .headerlink) {
  background: grey;
  color: transparent;
}
