html[data-theme="light"] {
  --psi-color-background: #d6d6d6;
  --pst-color-primary: #506EC3;
  --pst-color-inline-code: #506EC3;
  --pst-color-secondary: #506EC3;
  --pst-color-inline-code-links: #506EC3;
  --pst-font-size-h3: 1.5rem;
  --pst-font-size-h4: 1.25rem;
  --pst-font-size-h5: 1rem;
  --pst-font-size-h6: 0.75rem;
}

html[data-theme="dark"] {
  --pst-color-primary: #4A85BE;
  --pst-color-inline-code: #4A85BE;
  --pst-color-secondary: #4A85BE;
  --pst-color-inline-code-links: #4A85BE;
  --pst-font-size-h3: 1.5rem;
  --pst-font-size-h4: 1.25rem;
  --pst-font-size-h5: 1rem;
  --pst-font-size-h6: 0.75rem;

}



.footer-item {
  text-align: center;
}

.bd-sidebar-secondary {
  width: 14rem;
}


.custom-header {
  background-color: var(--pst-color-surface);
  margin-bottom: 0.1rem;
  margin-top: 0.2rem;
  font-weight: bold;
  word-break: break-word;
  padding-left: 0.5em;
  padding-right: 5px;
  box-sizing: border-box;
  display: block;
}

.toctree-wrapper p.caption {
    font-size: 2.0em;
    margin-bottom: 0.1em;
}


/* Put sphinx gallery links in footer */

.sphx-glr-download-link-note, /* Download link note in header */
.sphx-glr-download-jupyter,   /* Download Jupyter notebook link in footer */
.sphx-glr-download-python,    /* Download Python script link in footer */
.sphx-glr-download-zip        /* Download zipped link in footer */
{
  display: none;
}

/* Fix math alignment in sphinx-gallery*/
span.math {
    display: inline-flex;
    align-items: baseline;
}
