html[data-theme=dark] {
  --pst-color-primary: #04B46D;
  --pst-color-link: var(--pst-color-primary);
}

html[data-theme=light] {
  --pst-color-primary: #03A062;
  --pst-color-link: var(--pst-color-primary);
}

body .bd-article-container {
  max-width: 100em !important;
}

.col {
  flex: 0 0 50%;
  max-width: 50%;
}

.img-sponsor {
  height: 50px;
  padding: 5px;
}

.img-sponsor-large {
  height: 10vh;
  padding: 5px;
}

.things-in-a-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.contributors-table table {
  width: 100%;
}

.contributors-table td{
  padding: 2px;
  min-width: 90px;
  vertical-align: top;
  text-align: center;
}

/* Disable decoration for all but movement backrefs */
a[class^="sphx-glr-backref-module-"],
a[class^="sphx-glr-backref-type-"] {
  text-decoration: none;
}

a[class^="sphx-glr-backref-module-movement"] {
  text-decoration: underline;
}

/* Container for colour swatches */
.colour-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;   /* or flex-start if you prefer left-aligned */
    margin: 1.5rem 0;
    background: transparent;
}

/* Individual swatch card */
.colour-card {
    text-align: center;
    background: transparent;
}

/* Make sure the SVGs don't get weird inline spacing */
.colour-card svg {
    display: block;
    margin: 0 auto 0.5rem;
}
