:root {
    --pst-font-family-base: 'Source Sans Pro', var(--pst-font-family-base-system);
    --pst-font-family-heading: var(--pst-font-family-base);
    --pst-font-family-monospace: 'Source Code Pro', var(--pst-font-family-monospace-system);
}

a[class^="sphx-glr-backref-module-mne_hfo"] {
  /* make all MNE-BIDS backrefs bold */
  font-weight: 800;
}

span.option {
  /* avoid breaking lines in our command-line parameters */
  white-space: nowrap;
}

html[data-theme="light"] {
    /* sphinx-gallery overrides */
    --sg-download-a-background-color: var(--pst-color-primary);
    --sg-download-a-background-image: unset;
    --sg-download-a-border-color: var(--pst-color-border);
    --sg-download-a-color: #fff;
    --sg-download-a-hover-background-color: var(--pst-color-primary-highlight);
    --sg-download-a-hover-box-shadow-1: none;
    --sg-download-a-hover-box-shadow-2: none;
}
html[data-theme="dark"] {
    /* sphinx-gallery overrides */
    --sg-download-a-background-color: var(--pst-color-primary);
    --sg-download-a-background-image: unset;
    --sg-download-a-border-color: var(--pst-color-border);
    --sg-download-a-color: #000;
    --sg-download-a-hover-background-color: var(--pst-color-primary-highlight);
    --sg-download-a-hover-box-shadow-1: none;
    --sg-download-a-hover-box-shadow-2: none;
}

/* script/notebook download buttons */
div.sphx-glr-download a {
    border-radius: 0.5rem;
    /* ↓↓↓↓↓↓↓ these two rules copied from sphinx-design */
    box-shadow: 0 .125rem .25rem var(--sd-color-shadow) !important;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

div.sphx-glr-download a code {
    color: var(--sg-download-a-color);
}
