/* The colors of the site: ink and neutral grays. The red stays in the logo,
   and on a link under the pointer. */
:root > * {
  --md-primary-fg-color: #ffffff;
  --md-primary-fg-color--light: #f3f2f0;
  --md-primary-fg-color--dark: #e6e5e2;
  --md-primary-bg-color: #1c1a1b;
  --md-primary-bg-color--light: #5f5b5a;
  --md-accent-fg-color: #a80f2a;
  --md-accent-fg-color--transparent: rgba(28, 26, 27, 0.08);
  --md-accent-bg-color: #ffffff;
  --md-typeset-a-color: #1c1a1b;
}
[data-md-color-scheme="slate"] {
  --md-default-bg-color: #1b1b1d;
  --md-default-bg-color--light: #1b1b1dbf;
  --md-code-bg-color: #26262a;
  --md-primary-fg-color: #1f2125;
  --md-primary-fg-color--light: #2a2c30;
  --md-primary-fg-color--dark: #17181b;
  --md-primary-bg-color: #f2f0ec;
  --md-primary-bg-color--light: #a9a7a3;
  --md-accent-fg-color: #f0657b;
  --md-accent-fg-color--transparent: rgba(242, 240, 236, 0.1);
  --md-accent-bg-color: #1c1a1b;
  --md-typeset-a-color: #e8e6e1;
}
.md-header {
  box-shadow: 0 1px 0 var(--md-default-fg-color--lightest);
}
.md-tabs {
  box-shadow: 0 1px 0 var(--md-default-fg-color--lightest);
}
.md-search__form,
.md-search__form:hover {
  background-color: var(--md-primary-fg-color--light);
}
.md-search__input::placeholder,
.md-search__icon {
  color: var(--md-primary-bg-color--light);
}
.md-header__button.md-logo img {
  height: 1.6rem;
}
/* Links in ink stand out by a line under them. */
.md-typeset a:not(.headerlink) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--md-default-fg-color--lighter);
  text-underline-offset: 0.15em;
}

/* The logo heading the home page, centered. */
.md-typeset h1.logo {
  text-align: center;
}

/* The cards of the home page, one per row, colored as the parts of the
   feature map above them, in the order of the cards. */
.md-typeset .grid.cards {
  grid-template-columns: 1fr;
}
.md-typeset .grid.cards > ul > li {
  border-top-width: 4px;
}
.md-typeset .grid.cards > ul > li:nth-child(1) { border-top-color: #3b82f6; }
.md-typeset .grid.cards > ul > li:nth-child(2) { border-top-color: #ea580c; }
.md-typeset .grid.cards > ul > li:nth-child(3) { border-top-color: #16a34a; }
.md-typeset .grid.cards > ul > li:nth-child(4) { border-top-color: #9333ea; }
.md-typeset .grid.cards > ul > li:nth-child(5) { border-top-color: #0d9488; border-top-style: dashed; }
.md-typeset .grid.cards > ul > li:nth-child(6) { border-top-color: #db2777; }
.md-typeset .grid.cards > ul > li:nth-child(7) { border-top-color: #d97706; border-top-style: dashed; }
.md-typeset .grid.cards > ul > li:nth-child(8) { border-top-color: #64748b; }
.md-typeset .grid.cards .lg {
  font-size: 1.6em;
}
