/* Dioad brand theme for mkdocs-material, light mode only.
   Source: https://assets.dioadconsulting.com/index.html (Dioad Consulting style guide)
   Core palette: charcoal #232323, light-grey #cccccc, amber #ffac00, white #ffffff.
   Header band is matched to https://connect.dioad.dev/'s own header (charcoal bg,
   white text, amber accents) rather than the raw brand-guide amber-on-header combo.
   Kept out of doc/ so content stays renderer-agnostic; delete this file and its
   mkdocs.yml reference if no overrides are needed. */

[data-md-color-scheme="dioad"] {
  /* Primary: header/nav surface. Charcoal, matching connect.dioad.dev's <header>
     background (#232323) and its 1px #2e2e2e bottom border, rather than amber —
     avoids the contrast problem of white/dark text on a saturated amber band. */
  --md-primary-fg-color: #232323;
  --md-primary-fg-color--light: #2e2e2e;
  --md-primary-fg-color--dark: #1a1a1a;
  --md-primary-bg-color: #ffffff;
  --md-primary-bg-color--light: #ffffffb3;

  /* Accent: buttons, focus rings, selected nav/tab indicators. Uses the darkest
     documented amber gradient step for slightly better contrast than the raw
     primary amber. */
  --md-accent-fg-color: #ff9100;
  --md-accent-fg-color--transparent: #ff91001a;
  --md-accent-bg-color: #232323;
  --md-accent-bg-color--light: #232323b3;

  /* Body text: charcoal, matching the brand guide's "body-text-on-light" role.
     Same alpha steps as mkdocs-material's own default scheme, just re-based on
     charcoal instead of black, to preserve the built-in text-hierarchy contrast. */
  --md-default-fg-color: #232323de;
  --md-default-fg-color--light: #2323238a;
  --md-default-fg-color--lighter: #23232352;
  --md-default-fg-color--lightest: #23232312;

  /* mkdocs-material defaults inline-text links to var(--md-primary-fg-color); now
     that primary is charcoal this is close to redundant, but left in place since
     it still pins body-text links to the brand-guide's charcoal body-text role. */
  --md-typeset-a-color: #232323;
}

/* On desktop widths mkdocs-material colors the collapsed header search field's
   icon/placeholder from --md-default-fg-color--light (our charcoal body-text
   alpha) — legible on the old amber header, invisible on the new charcoal one.
   Scoped to the search field rather than changing the shared --md-default-fg-color--*
   alphas, which also drive table borders and code backgrounds in the (still light)
   content body. Rest/hover backgrounds keep the theme's own darken/lighten pattern,
   just re-based on our charcoal --md-primary-fg-color--light instead of black-alpha. */
[data-md-color-scheme="dioad"] .md-search__form {
  background-color: var(--md-primary-fg-color--light);
}

[data-md-color-scheme="dioad"] .md-search__form:hover {
  background-color: #ffffff26;
}

[data-md-color-scheme="dioad"] .md-search__icon {
  color: #ffffffb3;
}

[data-md-color-scheme="dioad"] .md-search__input::placeholder {
  color: #ffffff8a;
}
