/* Keep the documentation column comfortably readable. */
.bd-main .bd-content .bd-article-container { max-width: 58rem; }
.sig { overflow-wrap: anywhere; }
.sphx-glr-thumbcontainer { min-height: 210px; }

/* Documentation figures are rendered on a transparent canvas with a
   light/dark-safe foreground, so do not put them on a white card or dim them. */
html[data-theme="dark"] .bd-content img.sphx-glr-single-img,
html[data-theme="dark"] .bd-content img.sphx-glr-multi-img,
html[data-theme="dark"] .bd-content figure img {
  background-color: transparent;
  filter: none;
}

/* A cell with several gallery figures reads better vertically at page width. */
ul.sphx-glr-horizontal li { display: block; }
.bd-content img.sphx-glr-multi-img {
  display: block;
  margin: 0 auto 1rem;
  max-width: 100%;
}

/* TL;DR blocks on explanation pages. */
.admonition.tldr {
  border-color: var(--pst-color-primary);
}
.admonition.tldr > .admonition-title {
  background-color: var(--pst-color-primary-bg);
}
.admonition.tldr > .admonition-title::after {
  color: var(--pst-color-primary);
}
.admonition.tldr ul { margin-bottom: 0; }
