/* Zama-inspired palette: brand yellow #FFD208, near-black #111314,
   warm cream #FFF7EC (values read from zama.org's own stylesheet). */

/* ---------- Light scheme ---------- */
[data-md-color-scheme="default"] {
  /* Yellow header with black text — the signature Zama combination. */
  --md-primary-fg-color: #ffd208;
  --md-primary-fg-color--light: #ffdf47;
  --md-primary-fg-color--dark: #d4ae00;
  --md-primary-bg-color: #111314;
  --md-primary-bg-color--light: rgba(17, 19, 20, 0.72);

  /* Yellow is unreadable as link color on white, so links use the
     dark-olive tone from Zama's palette; hover warms it up. */
  --md-typeset-a-color: #876e00;
  --md-accent-fg-color: #b39200;
  --md-accent-fg-color--transparent: rgba(179, 146, 0, 0.1);

  --md-default-bg-color: #fffefb;
  --md-code-bg-color: #fff7ec;

  --md-footer-bg-color: #111314;
  --md-footer-bg-color--dark: #000000;
}

/* ---------- Dark scheme ---------- */
[data-md-color-scheme="slate"] {
  /* Near-black surfaces with yellow type in the header. */
  --md-primary-fg-color: #111314;
  --md-primary-fg-color--light: #2e2e2e;
  --md-primary-fg-color--dark: #000000;
  --md-primary-bg-color: #ffd208;
  --md-primary-bg-color--light: rgba(255, 210, 8, 0.72);

  --md-typeset-a-color: #ffd208;
  --md-accent-fg-color: #ffe15c;
  --md-accent-fg-color--transparent: rgba(255, 210, 8, 0.1);

  --md-default-bg-color: #111314;
  --md-code-bg-color: #1a1c1e;

  --md-footer-bg-color: #000000;
  --md-footer-bg-color--dark: #000000;

  /* Keep the yellow brand line under the dark header. */
  --md-typeset-mark-color: rgba(255, 210, 8, 0.3);
}

[data-md-color-scheme="slate"] .md-header {
  border-bottom: 2px solid #ffd208;
}

[data-md-color-scheme="slate"] .md-tabs {
  border-bottom: 1px solid rgba(255, 210, 8, 0.35);
}

/* Version selector chip: keep it readable on both header colors. */
.md-header .md-version__current {
  font-weight: 700;
}
