/* The theme's colours, from the logo's palette (docs/_static/LOGO-USAGE.md): the darker
   shades in light mode and the lighter ones in dark mode, so that links stay readable */
html[data-theme="light"] {
  --pst-color-primary: #C2410C;
  --pst-color-secondary: #E8590C;
  --pst-color-link-hover: #E8590C;
}
html[data-theme="dark"] {
  --pst-color-primary: #FF922B;
  --pst-color-secondary: #FFA94D;
  --pst-color-link-hover: #FFA94D;
}

/* Colour swatches and colourmap bars on the plot colours page (docs/plot_colours.md) */
.pytes-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1.25rem;
}
.pytes-swatch {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 6.5rem;
  font-size: 0.8rem;
}
.pytes-swatch span:first-child {
  height: 2.25rem;
  border-radius: 0.3rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.pytes-swatch code {
  font-size: 0.8rem;
}
.pytes-swatches.on-dark {
  padding: 0.75rem;
  border-radius: 0.4rem;
  background: #14181e;
  color: #e6e6e6;
}
.pytes-colourmap {
  height: 2rem;
  margin: 0.5rem 0 0.25rem;
  border-radius: 0.3rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.pytes-colourmap-ends {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
}

/* A square of the colour before inline hex colours (docs/_static/colour-chips.js) */
.pytes-colour-chip {
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-right: 0.3em;
  vertical-align: -0.05em;
  border-radius: 0.15em;
  box-shadow: 0 0 0 1px var(--pst-color-border, rgba(0, 0, 0, 0.25));
}

/* Model diagrams (docs/models/diagrams) on a light card in both themes, undimmed in dark
   mode (the dark-light class opts them out of the theme's filter) */
.bd-content img.pytes-diagram {
  background-color: #ffffff;
  padding: 0.75rem;
  border-radius: 0.4rem;
  box-shadow: 0 0 0 1px var(--pst-color-border, rgba(0, 0, 0, 0.12));
}
