.accessible-skip-link {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 120;
    padding: 0.85rem 1.5rem;
    border-radius: 1rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    transform: translateY(-140%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-xl);
}

.accessible-skip-link:focus {
    transform: translateY(0);
    outline: none;
}

.accessible-toolbar {
    position: fixed !important;
    right: 1.5rem !important;
    bottom: 1.5rem !important;
    z-index: 110 !important;
    pointer-events: auto;
}

.accessible-toolbar__trigger {
    width: 3.5rem !important;
    height: 3.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 9999px !important;
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25) !important;
}

.accessible-toolbar__panel {
    position: absolute !important;
    right: 0 !important;
    bottom: 4rem !important;
    width: min(20rem, calc(100vw - 3rem)) !important;
    max-height: none;
    overflow: visible;
    overscroll-behavior: contain;
    background: #fff !important;
    border: 1px solid var(--border) !important;
    border-radius: 1.5rem !important;
    padding: 1.5rem !important;
    text-align: right !important;
    direction: rtl;
}

.accessible-toolbar__reset {
    border: 1px solid #fecaca !important;
    color: #dc2626 !important;
    background: transparent !important;
}

.accessible-toolbar__reset:hover,
.accessible-toolbar__reset:focus-visible {
    background: #fef2f2 !important;
}

.high-contrast {
    --background: #000 !important;
    --foreground: #fff !important;
    --text: #fff !important;
    --dark: #fff !important;
    --border: #fff !important;
    --primary: #ffff00 !important;
    --secondary: #00ffff !important;
    --primary-foreground: #000 !important;
}

.large-text {
    font-size: 1.25rem !important;
}

.extra-large-text {
    font-size: 1.5rem !important;
}

.dyslexia-font {
    font-family: "OpenDyslexic", "Comic Sans MS", sans-serif !important;
}

.highlight-links a {
    padding-inline: 4px;
    color: #000 !important;
    background-color: yellow !important;
    font-weight: bold !important;
    text-decoration: underline !important;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.no-animations *,
.no-animations *::before,
.no-animations *::after {
    transition: none !important;
    animation: none !important;
}

.dir-rtl {
    direction: rtl;
}

.shadow-3xl {
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25), 0 12px 24px -12px rgb(0 0 0 / 0.18);
}

@media (max-width: 640px) {
    .accessible-toolbar {
        right: 1rem !important;
        bottom: 1rem !important;
    }
}
