/* WP Accessibility Suite - accessibility.css - v1.0.1 */

/* ── Screen Reader Only ───────────────────────────────────────────────────────── */
.wpas-sr-only,
.screen-reader-text {
    border: 0 !important;
    clip: rect(1px,1px,1px,1px) !important;
    -webkit-clip-path: inset(50%) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
    white-space: nowrap !important;
}

/* ── Skip Links ───────────────────────────────────────────────────────────────── */
.wpas-skip-links {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999999;
}
.wpas-skip-link {
    background: #005fcc;
    color: #fff !important;
    font-size: 1rem;
    font-weight: 700;
    padding: 10px 18px;
    position: absolute;
    top: -100px;
    left: 10px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    transition: top .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.wpas-skip-link:focus {
    top: 0 !important;
    outline: 3px solid #fff !important;
    outline-offset: 2px !important;
}

/* ── Focus Outline ────────────────────────────────────────────────────────────── */
body.wpas-focus-enabled *:focus {
    outline: var(--wpas-focus-width, 3px) var(--wpas-focus-style, solid) var(--wpas-focus-color, #005fcc) !important;
    outline-offset: 2px !important;
}

/* ── Toolbar Wrapper ──────────────────────────────────────────────────────────── */
#wpas-toolbar {
    position: fixed !important;
    z-index: 2147483647 !important; /* max z-index */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
}
#wpas-toolbar * { box-sizing: border-box !important; }

#wpas-toolbar.wpas-pos-bottom-right { bottom: 24px !important; right: 24px !important; }
#wpas-toolbar.wpas-pos-bottom-left  { bottom: 24px !important; left:  24px !important; }
#wpas-toolbar.wpas-pos-top-right    { top: 24px !important;    right: 24px !important; }
#wpas-toolbar.wpas-pos-top-left     { top: 24px !important;    left:  24px !important; }

/* ── Toggle Button ────────────────────────────────────────────────────────────── */
#wpas-toolbar-toggle {
    background: var(--wpas-toolbar-color, #1a73e8) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50% !important;
    width: 54px !important;
    height: 54px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 18px rgba(0,0,0,.35) !important;
    transition: background .2s, transform .2s, box-shadow .2s !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    position: relative !important;
    z-index: 2147483647 !important;
}
#wpas-toolbar-toggle:hover {
    background: #1457b3 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 22px rgba(0,0,0,.4) !important;
}
#wpas-toolbar-toggle:focus-visible {
    outline: 3px solid #fff !important;
    outline-offset: 3px !important;
}
#wpas-toolbar-toggle.wpas-btn-active {
    background: #0d47a1 !important;
    transform: scale(0.96) !important;
}
#wpas-toolbar-toggle svg {
    display: block !important;
    flex-shrink: 0 !important;
}

/* ── Panel ────────────────────────────────────────────────────────────────────── */
.wpas-toolbar-panel {
    display: none; /* JS controls visibility */
    background: #ffffff !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,.22) !important;
    width: 270px !important;
    max-height: 82vh !important;
    overflow-y: auto !important;
    position: absolute !important;
    z-index: 2147483646 !important;
    color: #222 !important;
}

/* Position panel relative to button */
#wpas-toolbar.wpas-pos-bottom-right .wpas-toolbar-panel,
#wpas-toolbar.wpas-pos-bottom-left  .wpas-toolbar-panel {
    bottom: 62px !important;
}
#wpas-toolbar.wpas-pos-top-right    .wpas-toolbar-panel,
#wpas-toolbar.wpas-pos-top-left     .wpas-toolbar-panel {
    top: 62px !important;
}
#wpas-toolbar.wpas-pos-bottom-right .wpas-toolbar-panel,
#wpas-toolbar.wpas-pos-top-right    .wpas-toolbar-panel { right: 0 !important; }
#wpas-toolbar.wpas-pos-bottom-left  .wpas-toolbar-panel,
#wpas-toolbar.wpas-pos-top-left     .wpas-toolbar-panel { left: 0 !important; }

/* ── Panel Header ─────────────────────────────────────────────────────────────── */
.wpas-toolbar-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: var(--wpas-toolbar-color, #1a73e8) !important;
    color: #fff !important;
    padding: 14px 16px !important;
    border-radius: 12px 12px 0 0 !important;
}
.wpas-toolbar-title {
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #fff !important;
    line-height: 1.2 !important;
}
.wpas-toolbar-close {
    background: rgba(255,255,255,.15) !important;
    border: 1px solid rgba(255,255,255,.4) !important;
    color: #fff !important;
    font-size: 16px !important;
    cursor: pointer !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    line-height: 1 !important;
    transition: background .15s !important;
}
.wpas-toolbar-close:hover { background: rgba(255,255,255,.3) !important; }
.wpas-toolbar-close:focus { outline: 2px solid #fff !important; outline-offset: 1px !important; }

/* ── Panel Body ───────────────────────────────────────────────────────────────── */
.wpas-toolbar-body { padding: 14px !important; }

.wpas-tool-group {
    margin-bottom: 14px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid #ececec !important;
}
.wpas-tool-group:last-child { border-bottom: none !important; margin-bottom: 0 !important; padding-bottom: 0 !important; }

.wpas-tool-label {
    display: block !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .07em !important;
    color: #888 !important;
    margin-bottom: 8px !important;
}

.wpas-tool-controls {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

/* ── Toolbar Buttons ──────────────────────────────────────────────────────────── */
#wpas-toolbar .wpas-tool-controls button,
#wpas-toolbar .wpas-toggle-btn {
    background: #f4f4f4 !important;
    border: 1.5px solid #d8d8d8 !important;
    border-radius: 8px !important;
    padding: 7px 12px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #333 !important;
    flex: 1 !important;
    min-width: 58px !important;
    text-align: center !important;
    transition: background .15s, border-color .15s, color .15s !important;
    font-family: inherit !important;
    line-height: 1.3 !important;
}
#wpas-toolbar .wpas-tool-controls button:hover,
#wpas-toolbar .wpas-toggle-btn:hover {
    background: #e3eeff !important;
    border-color: #1a73e8 !important;
    color: #1a73e8 !important;
}
#wpas-toolbar .wpas-tool-controls button:focus,
#wpas-toolbar .wpas-toggle-btn:focus {
    outline: 2px solid #1a73e8 !important;
    outline-offset: 1px !important;
}
#wpas-toolbar .wpas-toggle-btn.wpas-active,
#wpas-toolbar .wpas-toggle-btn[aria-pressed="true"] {
    background: var(--wpas-toolbar-color, #1a73e8) !important;
    border-color: var(--wpas-toolbar-color, #1a73e8) !important;
    color: #fff !important;
}

/* ── Font buttons special sizing ─────────────────────────────────────────────── */
#wpas-font-decrease { font-size: 12px !important; }
#wpas-font-reset    { font-size: 14px !important; }
#wpas-font-increase { font-size: 16px !important; }

/* ── Reset button ─────────────────────────────────────────────────────────────── */
.wpas-reset-btn {
    background: #fff !important;
    border: 2px solid #d32f2f !important;
    color: #d32f2f !important;
    width: 100% !important;
    padding: 9px 12px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    transition: background .15s !important;
    flex: unset !important;
    min-width: unset !important;
}
.wpas-reset-btn:hover { background: #fff0f0 !important; }
.wpas-reset-btn:focus { outline: 2px solid #d32f2f !important; outline-offset: 1px !important; }

/* ── Contrast / Color Modes ───────────────────────────────────────────────────── */
body.wpas-high-contrast { filter: contrast(1.65) !important; }
body.wpas-dark-mode     { filter: invert(1) hue-rotate(180deg) !important; }
body.wpas-dark-mode img,
body.wpas-dark-mode video,
body.wpas-dark-mode iframe { filter: invert(1) hue-rotate(180deg) !important; }
body.wpas-grayscale     { filter: grayscale(1) !important; }
body.wpas-invert        { filter: invert(1) !important; }

/* ── Links ────────────────────────────────────────────────────────────────────── */
body.wpas-underline-links a { text-decoration: underline !important; }
body.wpas-highlight-links a {
    background: #ffff00 !important;
    color: #000 !important;
    text-decoration: underline !important;
    padding: 0 2px !important;
    border-radius: 2px !important;
}
a.wpas-ext-link::after {
    content: "\00a0\2197";
    font-size: .75em;
    vertical-align: super;
    speak: none;
}

/* ── Big Cursor ───────────────────────────────────────────────────────────────── */
body.wpas-big-cursor,
body.wpas-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%3Cpolygon points='0,0 0,30 8,22 14,38 18,36 12,20 24,20' fill='black' stroke='white' stroke-width='2'/%3E%3C/svg%3E") 0 0, auto !important;
}

/* ── Dyslexia Font ────────────────────────────────────────────────────────────── */
body.wpas-dyslexia-font,
body.wpas-dyslexia-font * {
    font-family: 'Arial', 'Verdana', sans-serif !important;
    letter-spacing: .1em !important;
    word-spacing: .14em !important;
    line-height: 1.75 !important;
}

/* ── Reduce Motion ────────────────────────────────────────────────────────────── */
body.wpas-reduce-motion *,
body.wpas-reduce-motion *::before,
body.wpas-reduce-motion *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
}

/* ── Reading Guide ────────────────────────────────────────────────────────────── */
#wpas-reading-guide-bar {
    display: none;
    position: fixed !important;
    left: 0 !important;
    width: 100% !important;
    height: 38px !important;
    background: rgba(255, 220, 0, .3) !important;
    border-top: 2px solid rgba(180,150,0,.5) !important;
    border-bottom: 2px solid rgba(180,150,0,.5) !important;
    pointer-events: none !important;
    z-index: 2147483645 !important;
    top: 0;
}

/* ── External link notice ─────────────────────────────────────────────────────── */
#wpas-new-tab-notice {
    border: 0 !important;
    clip: rect(1px,1px,1px,1px) !important;
    height: 1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
}

/* ── PRO Locked Styles (Free Version) ────────────────────────────────────────── */
.wpas-pro-group { opacity: 0.72; }
.wpas-pro-locked {
    background: #f8f4ff !important;
    border: 1.5px dashed #a78bfa !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #7c3aed !important;
    flex: 1 !important;
    min-width: 44px !important;
    text-align: center !important;
    transition: all .15s !important;
    font-family: inherit !important;
}
.wpas-pro-locked:hover { background: #ede9fe !important; border-color: #7c3aed !important; }
.wpas-pro-badge {
    display: inline-block;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 8px;
    vertical-align: middle;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ── Upgrade Banner ──────────────────────────────────────────────────────────── */
.wpas-upgrade-banner {
    margin: 10px 14px 6px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    color: #fff !important;
    border: 1px solid #4f46e5;
}
.wpas-upgrade-banner strong { display: block; font-size: 13px; margin-bottom: 5px; color: #ffd700 !important; }
.wpas-upgrade-banner p { margin: 0 0 10px; font-size: 11px; color: #ccc !important; line-height: 1.5; }
.wpas-upgrade-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #f59e0b);
    color: #000 !important;
    font-weight: 700;
    font-size: 12px;
    padding: 7px 16px;
    border-radius: 20px;
    text-decoration: none !important;
    transition: transform .15s;
}
.wpas-upgrade-btn:hover { transform: scale(1.05); }
