/* Shared by every product. Sizes match zynk.com, whose body text is 14px (Tailwind text-sm). */

/* Material grows the root font on wide screens (137.5% at 100em, 150% at 125em); keep it fixed like the website */
html {
  font-size: 125%;
}

/* Material's slate greys are tinted blue (hsla(var(--md-hue), 15%, ...)). Same lightness and
   opacity with no tint, so they match zynk.com's neutral greys. */
[data-md-color-scheme="slate"] {
  --md-default-fg-color--light: hsla(0, 0%, 90%, 0.56);
  --md-default-fg-color--lighter: hsla(0, 0%, 90%, 0.32);
  --md-default-fg-color--lightest: hsla(0, 0%, 90%, 0.12);
  --md-default-bg-color--light: rgba(23, 23, 23, 0.54);
  --md-default-bg-color--lighter: rgba(23, 23, 23, 0.26);
  --md-default-bg-color--lightest: rgba(23, 23, 23, 0.07);
  --md-code-fg-color: hsla(0, 0%, 86%, 0.82);
  --md-code-bg-color: #262626;
  --md-code-bg-color--light: rgba(38, 38, 38, 0.9);
  --md-code-bg-color--lighter: rgba(38, 38, 38, 0.54);
  --md-typeset-kbd-color: hsla(0, 0%, 90%, 0.12);
  --md-typeset-kbd-accent-color: hsla(0, 0%, 90%, 0.2);
  --md-typeset-kbd-border-color: #171717;
  --md-typeset-table-color: hsla(0, 0%, 95%, 0.12);
  --md-typeset-table-color--light: hsla(0, 0%, 95%, 0.035);
  /* hovered / selected search results and other highlights (was indigo): zynk.com hover grey */
  --md-accent-fg-color--transparent: #404040;
  /* footer matches the page instead of Material's blue-black */
  --md-footer-bg-color: #171717;
  --md-footer-bg-color--dark: #171717;
}

.md-footer-meta {
  border-top: 1px solid #404040;
}

/* Menu panel header: white logo on the page colour, not a block of orange, and no divider under it */
.md-nav--primary .md-nav__title[for="__drawer"] {
  background-color: #171717;
  color: #ffffff;
}

/* 0.7rem of a 20px root = 14px */
.md-typeset {
  font-size: 0.7rem;
}

.md-nav__link {
  line-height: 160% !important;
}

/* Wider left sidebar */
@media screen and (min-width: 1220px) {
  .md-sidebar--primary {
    width: 260px;
  }
}

/* Preserve readable content width */
.md-grid {
  max-width: 1440px;
}

/* More breathing room around the header search */
.md-header__inner {
  padding-top: 8px;
  padding-bottom: 8px;
}

.md-nav--primary .md-nav__title ~ .md-nav__list {
  box-shadow: none;
}

/* Desktop sidebar: the sticky title's background-coloured shadow faded the top of the first item.
   Without it, the top-level list needs 0.3rem more so every row is the same distance apart. */
@media screen and (min-width: 76.25em) {
  .md-nav--primary .md-nav__title,
  .md-nav--lifted > .md-nav__list > .md-nav__item--active > .md-nav__link {
    box-shadow: none;
  }

  .md-nav--primary:not(.md-nav--lifted) > .md-nav__title + .md-nav__list {
    padding-top: 0.3rem;
  }
}

.md-nav__container > .md-nav__link {
  background: transparent !important;
  box-shadow: none !important;
}
