/* aimx palette — applied to ALL built-in mdBook theme classes so the theme
   picker effectively chooses between "light" (aimx light) and "coal" (aimx dark).
   The three remaining slots (rust / navy / ayu) are mapped to sensible siblings
   rather than left as jarring defaults. Values from docs/branding.md §2.1. */

html.light,
html.rust,
html.ayu {
  color-scheme: light;
  --bg: #F4EEE3;
  --fg: #151310;

  --sidebar-bg: #EBE3D4;
  --sidebar-fg: #2B2620;
  --sidebar-non-existant: #8C8270;
  --sidebar-active: #B9531C;
  --sidebar-spacer: #D8CFBE;

  --scrollbar: #D8CFBE;

  --icons: #5C5549;
  --icons-hover: #B9531C;

  --links: #B9531C;

  --inline-code-color: #151310;

  --theme-popup-bg: #F4EEE3;
  --theme-popup-border: #D8CFBE;
  --theme-hover: #EBE3D4;

  --quote-bg: #EBE3D4;
  --quote-border: #B9531C;

  --warning-border: #B9531C;

  --table-border-color: #D8CFBE;
  --table-header-bg: transparent;
  --table-alternate-bg: transparent;

  --searchbar-border-color: #D8CFBE;
  --searchbar-bg: #F4EEE3;
  --searchbar-fg: #151310;
  --searchbar-shadow-color: rgba(21, 19, 16, 0.06);
  --searchresults-header-fg: #5C5549;
  --searchresults-border-color: #D8CFBE;
  --searchresults-li-bg: #EBE3D4;
  --search-mark-bg: #B9531C;

  --aimx-paper: #F4EEE3;
  --aimx-paper-2: #EBE3D4;
  --aimx-ink: #151310;
  --aimx-ink-soft: #2B2620;
  --aimx-ink-faded: #5C5549;
  --aimx-accent: #B9531C;
  --aimx-accent-dark: #8E3E14;
  --aimx-rule: #D8CFBE;
}

html.coal,
html.navy {
  color-scheme: dark;
  --bg: #0D1117;
  --fg: #E6EDF3;

  --sidebar-bg: #161B22;
  --sidebar-fg: #C9D1D9;
  --sidebar-non-existant: #6E7681;
  --sidebar-active: #58A6FF;
  --sidebar-spacer: #21262D;

  --scrollbar: #21262D;

  --icons: #8B949E;
  --icons-hover: #58A6FF;

  --links: #58A6FF;

  --inline-code-color: #E6EDF3;

  --theme-popup-bg: #161B22;
  --theme-popup-border: #21262D;
  --theme-hover: #21262D;

  --quote-bg: #161B22;
  --quote-border: #58A6FF;

  --warning-border: #58A6FF;

  --table-border-color: #21262D;
  --table-header-bg: transparent;
  --table-alternate-bg: transparent;

  --searchbar-border-color: #21262D;
  --searchbar-bg: #161B22;
  --searchbar-fg: #E6EDF3;
  --searchbar-shadow-color: rgba(0, 0, 0, 0.4);
  --searchresults-header-fg: #8B949E;
  --searchresults-border-color: #21262D;
  --searchresults-li-bg: #21262D;
  --search-mark-bg: #58A6FF;

  --aimx-paper: #0D1117;
  --aimx-paper-2: #161B22;
  --aimx-ink: #E6EDF3;
  --aimx-ink-soft: #C9D1D9;
  --aimx-ink-faded: #8B949E;
  --aimx-accent: #58A6FF;
  --aimx-accent-dark: #79C0FF;
  --aimx-rule: #21262D;
}
