/* mibz2's palette: a teal on the light scheme, an amber on the dark one. */
:root > * {
  --md-primary-fg-color: #0f6e74;
  --md-primary-fg-color--light: #1a8a91;
  --md-primary-fg-color--dark: #0a5459;
  --md-accent-fg-color: #0f6e74;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #f2b544;
  --md-primary-fg-color--light: #f6c76c;
  --md-primary-fg-color--dark: #d99a26;
  --md-accent-fg-color: #f6c76c;
}

/* Copying a pycon block copies the code only: the prompts (.gp) and the output (.go)
   are hidden while the copy button reads the text. */
[data-md-copying] .gp,
[data-md-copying] .go {
  display: none;
}

/* The home page's hero: the illustration (docs/scripts/hero.py), then the name and the
   tagline, centred. */
.md-typeset .home-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  margin: 1.2rem 0 2rem;
}
.md-typeset .home-hero-image {
  width: 13rem;
  height: auto;
  flex: none;
}
.md-typeset .home-hero h1 {
  margin: 0;
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--md-default-fg-color);
}
/* the heading's permalink would pull the centred name off centre */
.md-typeset .home-hero h1 .headerlink {
  display: none;
}
.md-typeset .home-hero-tagline {
  margin: 0.3rem 0 0;
  max-width: 22rem;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--md-default-fg-color--light);
}
@media screen and (max-width: 44.9375em) {
  .md-typeset .home-hero {
    clear: both;
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
  .md-typeset .home-hero-tagline {
    margin: 0.3rem auto 0;
  }
  .md-typeset .home-hero-image {
    width: 10rem;
  }
}

/* Tables of what is kept and what is refused: full width, first column unbroken */
.md-typeset table:not([class]) {
  display: table;
  width: 100%;
}
.md-typeset table:not([class]) td:first-child {
  white-space: nowrap;
}
