/* =====================================================
   WD Accessibility - Body-level feature styles
   These must live in the document (not shadow DOM)
   because they affect the page content.
   ===================================================== */

/* Skip link */
.wda-skip-link {
    position: absolute;
    top: -999px;
    left: -999px;
    z-index: 99999;
    padding: 10px 20px;
    background: #0057b8;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 6px 0;
    transition: top 0s;
}
.wda-skip-link:focus {
    top: 0;
    left: 0;
}

/* ---- Reading Guide ---- */
#wda-reading-guide {
    position: fixed;
    left: 0;
    width: 100%;
    height: 36px;
    background: rgba(255,255,0,0.35);
    border-top: 2px solid #e6b800;
    border-bottom: 2px solid #e6b800;
    pointer-events: none;
    z-index: 999996;
    display: none;
}

/* ---- Big Cursor ---- */
body.wda-big-cursor,
body.wda-big-cursor * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M8 4 L8 34 L16 26 L22 38 L26 36 L20 24 L32 24 Z' fill='white' stroke='black' stroke-width='2'/%3E%3C/svg%3E") 8 4, auto !important;
}

/* ---- Contrast modes ---- */
body.wda-high-contrast::before,
body.wda-negative-contrast::before,
body.wda-grayscale::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999990;
}
body.wda-high-contrast::before {
    -webkit-backdrop-filter: contrast(1.6) brightness(1.05);
    backdrop-filter: contrast(1.6) brightness(1.05);
}
body.wda-negative-contrast::before {
    -webkit-backdrop-filter: invert(1) hue-rotate(180deg);
    backdrop-filter: invert(1) hue-rotate(180deg);
}
body.wda-grayscale::before {
    -webkit-backdrop-filter: grayscale(1);
    backdrop-filter: grayscale(1);
}
body.wda-light-bg {
    background: #fff !important;
    color: #000 !important;
}
body.wda-light-bg * {
    background-color: #fff !important;
    color: #000 !important;
}

/* ---- Highlight links ---- */
body.wda-highlight-links a {
    background: #ff0 !important;
    color: #000 !important;
    text-decoration: underline !important;
    outline: 2px solid #000 !important;
    border-radius: 2px;
}

/* ---- Readable fonts ---- */
body.wda-readable-fonts,
body.wda-readable-fonts * {
    font-family: Arial, Helvetica, sans-serif !important;
}

/* ---- Text spacing ---- */
body.wda-text-spacing * {
    line-height: 1.8 !important;
    letter-spacing: 0.06em !important;
    word-spacing: 0.12em !important;
}

/* ---- Stop animations ---- */
body.wda-stop-animations *,
body.wda-stop-animations *::before,
body.wda-stop-animations *::after {
    animation: none !important;
    transition: none !important;
}

/* ---- Keyboard focus ---- */
body.wda-keyboard-nav *:focus {
    outline: 3px solid var(--wda-color, #0057b8) !important;
    outline-offset: 2px !important;
}
