/* The header's background is the browser's colour (Material reads it for the theme-color): the aydam theme-color values, cream in
   daylight (#FFFEE6) and dark green at night (#215242), as the site's pages set them (signin/index.html). */
/* aydam.ai look for the public docs (ADR 0052). The colours are the site's tokens (assets/css/tokens.css):
   daylight is the default; night is the dark theme. Keep these in step with tokens.css when the tokens change. */

:root,
[data-md-color-scheme="default"] {
  --md-default-bg-color: #FFFEF2;
  --md-default-bg-color--light: #FBF9E6;
  --md-default-bg-color--lighter: #F6F3DE;
  --md-default-fg-color: #2F6B4F;
  --md-default-fg-color--light: #475569;
  --md-default-fg-color--lighter: #5F6B78;
  --md-primary-fg-color: #FFFEE6;
  --md-primary-fg-color--light: #FFFEE6;
  --md-primary-fg-color--dark: #F6F3DE;
  --md-primary-bg-color: #2F6B4F;
  --md-accent-fg-color: #2F6B4F;
  --md-typeset-a-color: #2F6B4F;
  --md-typeset-color: #2F6B4F;
  --md-code-bg-color: #FBF9E6;
  --md-code-fg-color: #064E3B;
  --md-default-fg-color--lightest: rgba(47, 107, 79, 0.12);
  --md-typeset-mark-color: rgba(47, 107, 79, 0.22);
  --md-accent-fg-color--transparent: rgba(47, 107, 79, 0.12);
}

[data-md-color-scheme="slate"] {
  --md-default-bg-color: #4A5D52;
  --md-default-bg-color--light: #56695E;
  --md-default-bg-color--lighter: #63766B;
  --md-default-fg-color: #FFFEF2;
  --md-default-fg-color--light: #F1ECCF;
  --md-default-fg-color--lighter: #E8E4C4;
  --md-primary-fg-color: #215242;
  --md-primary-fg-color--light: #2E6A56;
  --md-primary-fg-color--dark: #183D31;
  --md-primary-bg-color: #FFFEF2;
  --md-accent-fg-color: #FFFEF2;
  --md-typeset-a-color: #FFFEF2;
  --md-typeset-color: #FFFEF2;
  --md-code-bg-color: #56695E;
  --md-code-fg-color: #FFFEF2;
  --md-default-fg-color--lightest: rgba(255, 254, 242, 0.14);
  --md-typeset-mark-color: rgba(255, 254, 242, 0.24);
  --md-accent-fg-color--transparent: rgba(255, 254, 242, 0.14);
}

/* Text: the system sans for the body; the display serif for headings, as on the site (site.css). */
body,
.md-typeset {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-header__title,
.md-logo {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.md-typeset a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Admonitions (the notes in the guides) use the site's tints. */
.md-typeset .admonition.note,
.md-typeset details.note {
  border-color: #475569;
}
.md-typeset .admonition.note > .admonition-title,
.md-typeset details.note > summary {
  background-color: #E8F1F3;
  color: #064E3B;
}

/* Side menu, as in the aydam dashboard (assets/css/dashboard.css): groups are small uppercase labels with a separator above
   them; the items under a group are indented one level; the current page has a bar on its left and a tint. */
.md-nav--primary > .md-nav__list > .md-nav__item {
  margin-top: 0.25rem;
}
.md-nav--primary > .md-nav__list > .md-nav__item + .md-nav__item {
  border-top: 1px solid var(--md-default-fg-color--lighter);
  padding-top: 0.25rem;
}
.md-nav--primary > .md-nav__list > .md-nav__item > .md-nav__link,
.md-nav--primary > .md-nav__list > .md-nav__item > label.md-nav__link {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--md-default-fg-color--light);
  min-height: 36px;
  display: flex;
  align-items: center;
}
/* Items under a group: indented, 40 px rows, the same weight as the app's items. */
.md-nav--primary .md-nav__list .md-nav__list {
  padding-inline-start: 1.25rem;
}
.md-nav--primary .md-nav__list .md-nav__link {
  min-height: 40px;
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0;
}
.md-nav--primary .md-nav__link:hover {
  background-color: var(--md-default-bg-color--lighter);
}
/* The current page: a bar on the left and the strong tint, as the app marks its current item. */
.md-nav--primary .md-nav__link--active {
  color: #2F6B4F;
  font-weight: 600;
  background-color: #F1ECCF;
  border-inline-start: 3px solid #2F6B4F;
  padding-inline-start: 0.75rem;
}
[data-md-color-scheme="slate"] .md-nav--primary .md-nav__link--active {
  color: #FFFEF2;
  background-color: #56695E;
  border-inline-start-color: #FFFEF2;
}
/* Activity sits at the bottom of the menu, apart from the groups, as in the app. */
.md-nav--primary > .md-nav__list > .md-nav__item:last-child {
  margin-top: 0.75rem;
  border-top: 1px solid var(--md-default-fg-color--lighter);
  padding-top: 0.5rem;
}
