/* =========================================================
   Jowybean Accessibility - Reading Mask
   ========================================================= */

.accessibility-reading-mask {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}


/* =========================================================
   Reading Mask Overlays
   ========================================================= */

/*
 * Two fixed overlays dim the page above and below
 * the active reading area.
 *
 * Keep these below the accessibility widget itself:
 *   Panel: 9998
 *   Toggle: 9999
 */

.accessibility-reading-mask-overlay {
    position: fixed;
    left: 0;
    width: 100%;

    background: rgba(0, 0, 0, 0.68);

    pointer-events: none;

    z-index: 9997;

    display: none;
}


/*
 * Show the overlays only while Reading Mask is enabled.
 */

html.a11y-reading-mask
.accessibility-reading-mask-overlay {
    display: block;
}


/* =========================================================
   High Contrast Compatibility
   ========================================================= */

html.a11y-high-contrast
.accessibility-reading-mask-overlay {
    background: rgba(0, 0, 0, 0.82);
}


/* =========================================================
   Reduced Motion Compatibility
   ========================================================= */

/*
 * The masks follow the pointer directly.
 * No animation or transition is used.
 */