/* Support for larger screens - allow content to take up space relative to the screen size */

.bd-main .bd-content .bd-article-container {
  max-width: 98%;  /* default is 60em */
}
.bd-toc {
  padding: 2em;
  min-width: 20%;
  max-width: max(30%, 16rem);
}
.bd-sidebar {
  padding: 2em;
  max-width: max(18%, 18rem);
}
.bd-page-width {
  max-width: 96%;  /* default is 88rem */
}

/* Allow navbar to cannibalize Logo space on small screens */
.bd-header .navbar-header-items__end {
  flex-shrink: 0;
  justify-content: end;
}
.bd-header .navbar-header-items__start {
  flex-shrink: 10;
  gap: .5rem;
  margin-right: auto;
}

/* Custom class to limit figures to 800px in width */
.mwpx-800 {
  max-width: 800px;
}

/* Mark function signatures with a background for easier scanning */
.sig:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) {
  background: var(--pst-color-surface);
  border-top: 3px var(--pst-color-surface);
}

/* Format text output from literalincludes */
.text-output pre {
  background: var(--pst-color-muted-highlight-text);
  border-radius: .05rem;
  padding: 0.8rem;
}

/* Format code block header text, used for filenames and output notation */
div.literal-block-wrapper div.code-block-caption {
  font-size: 0.8rem;
  font-weight: bold;
  padding-top: .2rem;
  padding-bottom: .2rem;
}

/* Make the light background on dark mode look slightly less wrong, see https://github.com/pydata/pydata-sphinx-theme/issues/918 */
html[data-theme="dark"] .bd-content img:not(.only-dark):not(.dark-light) {
    margin = 10px;
    background: rgba(255, 255, 255, 0.1);
}