/* Site colours: one accent for every template, readable in light and dark. */
:root,
[data-md-color-scheme="default"] {
  --md-primary-fg-color: #2f3b45;
  --md-primary-fg-color--light: #46545f;
  --md-primary-fg-color--dark: #1f282f;
  --md-primary-bg-color: #ffffff;
  --md-accent-fg-color: #c0582b;
  --md-accent-fg-color--transparent: rgba(192, 88, 43, 0.1);
  /* Links default to the primary colour, too close to the text: a darker accent, 5.7:1 on white. */
  --md-typeset-a-color: #a84a22;
  --td-hero-bg: linear-gradient(135deg, #2f3b45 0%, #46545f 60%, #6b4a3a 100%);
  --td-hero-fg: #f4f1ec;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #1f282f;
  --md-primary-fg-color--light: #2f3b45;
  --md-primary-fg-color--dark: #151b20;
  --md-accent-fg-color: #e0804f;
  --md-accent-fg-color--transparent: rgba(224, 128, 79, 0.12);
  /* Links default to the primary colour, near black here (1.3:1 on the dark page): the accent, 6.8:1. */
  --md-typeset-a-color: #e0804f;
  --td-hero-bg: linear-gradient(135deg, #151b20 0%, #2f3b45 60%, #4d3428 100%);
  --td-hero-fg: #f4f1ec;
}

/* Home page banner */
.td-hero {
  background: var(--td-hero-bg);
  color: var(--td-hero-fg);
  border-radius: 0.6rem;
  padding: 2.2rem 2rem 1.6rem;
  margin: 0 0 2rem;
}
.td-hero h1 {
  color: var(--td-hero-fg);
  font-weight: 700;
  margin: 0 0 0.6rem;
}
.td-hero p {
  font-size: 0.95rem;
  max-width: 40rem;
  margin: 0;
}

/* Cards: a little more air, and the accent on hover */
.md-typeset .grid.cards > ul > li {
  border-radius: 0.5rem;
}
.md-typeset .grid.cards > ul > li:hover {
  border-color: var(--md-accent-fg-color);
}

/* Tables: keep long property names on one line where possible */
.md-typeset table:not([class]) code {
  white-space: nowrap;
}

/* Screenshots */
.md-typeset img.td-shot {
  border-radius: 0.4rem;
  box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.25);
}

@media screen and (max-width: 44.9375em) {
  .td-hero {
    padding: 1.4rem 1rem 1.2rem;
  }
  .md-typeset table:not([class]) code {
    white-space: normal;
  }
}

/* Definition lists (the glossary): the term in bold, so it reads as a heading of its entry. */
.md-typeset dl dt {
  font-weight: 700;
}
