/* WCAG AA contrast overrides for Material's indigo accent.
 *
 * Material's default indigo accent (#526cfe) fails WCAG AA as text:
 *   - on white  (light scheme): 4.26:1  (needs 4.5)
 *   - on slate  (dark scheme):  3.07:1  (needs 4.5)
 * And the default body-link color in dark mode is the indigo *primary*
 * (#4051b5), which is only 1.90:1 on the slate surface.
 *
 * These overrides keep the indigo identity while clearing AA for the
 * accent everywhere it becomes text or a focus ring (links, the progress
 * "Read" span, focus outlines, the path-progress bar fill, page-meta
 * borders). Per-scheme so each is tuned to its own background.
 */

/* Light scheme: darken the accent slightly. #3d5afe = 5.17:1 on white. */
[data-md-color-scheme="default"] {
  --md-accent-fg-color: #3d5afe;
}

/* Dark scheme: lighten the accent, and lift the link color off the
 * too-dark primary. #8c9eff = 5.32:1 on the slate surface. */
[data-md-color-scheme="slate"] {
  --md-accent-fg-color: #8c9eff;
  --md-typeset-a-color: #8c9eff;
}
