.viewcode-block {
  white-space: pre-wrap;
}

.sidebar-logo {
  float: left;
  max-height: 6rem;
}

/* Tables in notebook output (pandas DataFrames and Stylers). Something in
   the notebook stack stripes every other row white, which in dark mode
   leaves light text on white and dark text on dark. Color them from the
   theme instead, so both modes read. */
.cell_output table {
  color: var(--color-foreground-primary);
  background: transparent;
  border: 0;
  border-collapse: collapse;
  font-size: 0.85em;
  margin: 0.5rem 0;
}
.cell_output table thead th {
  color: var(--color-foreground-primary);
  background: var(--color-table-header-background);
  font-weight: 600;
  border-bottom: 1px solid var(--color-table-border);
}
.cell_output table th,
.cell_output table td {
  padding: 0.3rem 0.6rem;
  border: 0;
  border-bottom: 1px solid var(--color-background-border);
  color: var(--color-foreground-primary);
}
.cell_output table tbody tr { background: transparent !important; }
.cell_output table tbody tr:nth-child(odd) { background: var(--color-background-secondary) !important; }
.cell_output table tbody tr:hover { background: var(--color-background-hover) !important; }

/* A table wider than the page scrolls inside its own box. */
.cell_output .output.text_html { overflow-x: auto; }
