/*
 * Cendry fire palette
 *
 * #FDF2B4 — warm cream (lightest)
 * #FDE492 — soft gold
 * #FFB526 — amber
 * #FD9212 — deep orange
 * #9E1201 — ember red (darkest)
 */

/* ---- Light mode ---- */
[data-md-color-scheme="default"] {
  --md-primary-fg-color: #9E1201;
  --md-primary-fg-color--light: #FD9212;
  --md-primary-fg-color--dark: #7A0E01;
  --md-primary-bg-color: #ffffff;
  --md-primary-bg-color--light: #FDF2B4;

  --md-accent-fg-color: #FD9212;
  --md-accent-fg-color--transparent: rgba(253, 146, 18, 0.1);
  --md-accent-bg-color: #FDF2B4;

  --md-typeset-a-color: #9E1201;
}

/* Header — ember red background, white text */
[data-md-color-scheme="default"] .md-header {
  background-color: #9E1201;
  color: #ffffff;
}

[data-md-color-scheme="default"] .md-header .md-header__title,
[data-md-color-scheme="default"] .md-header .md-header__topic,
[data-md-color-scheme="default"] .md-header a {
  color: #ffffff;
}

/* Search — icon uses CSS mask with background-color, not color */
[data-md-color-scheme="default"] .md-search__button::before {
  background-color: #ffffff !important;
}

[data-md-color-scheme="default"] .md-search__button {
  color: rgba(255, 255, 255, 0.7);
}

[data-md-color-scheme="default"] .md-search__button::after {
  color: #000000;
}

/* Tabs — darker ember */
[data-md-color-scheme="default"] .md-tabs {
  background-color: #7A0E01;
  color: #FDF2B4;
}

[data-md-color-scheme="default"] .md-tabs a {
  color: #FDF2B4;
}

[data-md-color-scheme="default"] .md-tabs a:hover {
  color: #ffffff;
}

/* ---- Dark mode ---- */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #FD9212;
  --md-primary-fg-color--light: #FFB526;
  --md-primary-fg-color--dark: #9E1201;
  --md-primary-bg-color: #1a1a1a;
  --md-primary-bg-color--light: #2a2a2a;

  --md-accent-fg-color: #FFB526;
  --md-accent-fg-color--transparent: rgba(255, 181, 38, 0.1);

  --md-typeset-a-color: #FD9212;
}

/* Header — dark with orange text */
[data-md-color-scheme="slate"] .md-header {
  background-color: #2a1a0a;
  color: #FDE492;
}

[data-md-color-scheme="slate"] .md-header .md-header__title,
[data-md-color-scheme="slate"] .md-header .md-header__topic,
[data-md-color-scheme="slate"] .md-header a {
  color: #FDE492;
}

[data-md-color-scheme="slate"] .md-search__button::before {
  background-color: #FDE492 !important;
}

[data-md-color-scheme="slate"] .md-search__button {
  color: rgba(253, 228, 146, 0.5);
}

[data-md-color-scheme="slate"] .md-tabs {
  background-color: #1a0f05;
  color: #FD9212;
}

[data-md-color-scheme="slate"] .md-tabs a {
  color: #FD9212;
}

[data-md-color-scheme="slate"] .md-tabs a:hover {
  color: #FFB526;
}
