/* ==========================================================================
   GWiZ™ Inclusion & Accessibility Suite
   AODA / WCAG 2.2 AA Compliance Controls
   ========================================================================== */

/* --- 1. Base Inclusion Styles --- */
:root {
    --inclusion-scale: 1;
    --ruler-top: 0px;
}

/* --- 2. Text Scaling (Clean Rem-based) --- */
html.a11y-scale-115 { font-size: 115% !important; }
html.a11y-scale-130 { font-size: 130% !important; }

/* --- 3. Readable Font & Spacing --- */
html.a11y-readable-font body,
html.a11y-readable-font p,
html.a11y-readable-font li,
html.a11y-readable-font blockquote {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    line-height: 1.75 !important;
    letter-spacing: 0.04em !important;
    word-spacing: 0.08em !important;
}

/* --- 4. Seizure Safe (Motion Reduction) --- */
html.a11y-seizure-safe *,
html.a11y-seizure-safe *::before,
html.a11y-seizure-safe *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
}

/* --- 5. High Contrast Mode (WCAG AAA Focus) --- */
html.a11y-contrast-high body,
html.a11y-contrast-high main,
html.a11y-contrast-high section,
html.a11y-contrast-high header,
html.a11y-contrast-high footer {
    background-color: #000000 !important;
    color: #FFFFFF !important;
}

html.a11y-contrast-high a {
    color: #FFFF00 !important;
    text-decoration: underline !important;
}

html.a11y-contrast-high button {
    background-color: #FFFFFF !important;
    color: #000000 !important;
    border: 2px solid #FFFF00 !important;
}

/* --- 6. Warm Paper Mode (Eye Strain Reduction) --- */
html.a11y-contrast-warm body,
html.a11y-contrast-warm main,
html.a11y-contrast-warm section,
html.a11y-contrast-warm header,
html.a11y-contrast-warm footer {
    background-color: #F4ECD8 !important;
    color: #3C3C3C !important;
}

html.a11y-contrast-warm .glass,
html.a11y-contrast-warm .glass-varnish {
    background: rgba(244, 236, 216, 0.95) !important;
    border-color: rgba(60, 60, 60, 0.2) !important;
}

/* --- 7. Reading Guide (Focus Ruler) --- */
#a11y-ruler {
    position: fixed;
    left: 0;
    width: 100%;
    height: 4px;
    background: #D4AF37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    pointer-events: none;
    z-index: 1000000;
    display: none;
    top: var(--ruler-top);
}

html.a11y-ruler-active #a11y-ruler {
    display: block;
}

/* --- 8. Keyboard Focus Ring --- */
html.a11y-focus-visible *:focus-visible {
    outline: 4px solid #38bdf8 !important;
    outline-offset: 4px !important;
    box-shadow: 0 0 0 8px rgba(56, 189, 248, 0.2) !important;
}

/* --- 9. Drawer Styling --- */
.inclusion-drawer {
    font-family: 'Inter', sans-serif;
}

.inclusion-toggle {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.inclusion-toggle.active {
    background-color: #D4AF37 !important;
    color: #000 !important;
    border-color: #D4AF37 !important;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.animate-slide-in {
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
