/* =========================================================
   Jowybean Accessibility - Grayscale
   ========================================================= */

/*
 * Grayscale the entire rendered document.
 *
 * Applying the filter to <html> rather than <body> ensures
 * page backgrounds are included and avoids interfering with
 * fixed-position accessibility overlays inside <body>.
 */
html.a11y-grayscale {
    filter: grayscale(100%);
}


/*
 * High Contrast takes priority over Grayscale.
 *
 * Keep the grayscale preference/class intact so when
 * High Contrast is disabled, Grayscale automatically
 * becomes active again.
 */
html.a11y-grayscale.a11y-high-contrast {
    filter: none;
}