span.summarylabel {
    background-color: var(--color-foreground-secondary);
    color: var(--color-background-secondary);
    font-size: 70%;
    padding-left: 2px;
    padding-right: 2px;
    border-radius: 3px;
    vertical-align: 15%;
    padding-bottom: 2px;
    filter: opacity(40%);
}

@media screen {
  [data-md-color-scheme="slate"] {
    --md-default-bg-color: #1e2129;
  }
  [data-md-color-scheme="default"] {
    --md-default-bg-color: #f0f0f0;
  }
}

/* force-scroll output longer than 600px in notebooks - see also: https://github.com/spatialaudio/nbsphinx/pull/831 */
div.nboutput.container div.output_area:has(pre) {
    max-height: 600px;
    scrollbar-width: thin;
}

/* Override the nbsphinx-gallery class to have wider columns */
div.nbsphinx-gallery {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* 
sphinx-immaterial: hide integreated toc, since it is redundant with any nested items. 
this is a quick and dirty patch of the issue, but it works for now.
*/
.md-nav__item--active.md-nav__current-nested + .md-nav__item--active.md-nav__current-toc {
    display: none;
}