/*
 * Brand the documentation with the .NET accent color (#512BD4) instead of the
 * mkdocs-material default.
 *
 * mkdocs-material derives both the link color and the accent from the chosen
 * palette. We have to match the theme's own selector specificity, otherwise the
 * built-in rules win regardless of load order:
 *
 *   - The link color on the dark "slate" scheme is set by a two-attribute
 *     selector that auto-lightens the "black" primary to #5e8bde, so a
 *     single-attribute override never takes effect. We override it with the same
 *     two-attribute selector.
 *   - The accent is set on the body element, so a :root override is shadowed by
 *     the closer element. We set the palette's accent to "custom" (see
 *     mkdocs.yml), for which the theme ships no rule, and define it here.
 *
 * On the dark scheme the pure brand violet is too low-contrast for body text, so
 * links use a lightened variant while interactive accents (hover, active
 * navigation) keep the fuller, more saturated tone.
 */

[data-md-color-scheme="slate"][data-md-color-primary="black"] {
  --md-typeset-a-color: #9d7bff;
}

[data-md-color-accent="custom"] {
  --md-accent-fg-color: #8b6dff;
  --md-accent-fg-color--transparent: #512bd41a;
}
