/* ARIT Accessibility — Applied Mode Overrides (classes on <html>) */

/* Font size levels — WCAG 1.4.4 Resize Text */
html.a11y-font-1{font-size:18px!important}
html.a11y-font-1 body,html.a11y-font-1 p,html.a11y-font-1 li,html.a11y-font-1 td,html.a11y-font-1 th{font-size:1rem!important}
html.a11y-font-2{font-size:20px!important}
html.a11y-font-2 body,html.a11y-font-2 p,html.a11y-font-2 li,html.a11y-font-2 td,html.a11y-font-2 th{font-size:1rem!important}
html.a11y-font-3{font-size:23px!important}
html.a11y-font-3 body,html.a11y-font-3 p,html.a11y-font-3 li,html.a11y-font-3 td,html.a11y-font-3 th{font-size:1rem!important}

/* High Contrast — WCAG 1.4.3 */
html.a11y-high-contrast{--brand:#4CAF50!important;--brand-2:#66BB6A!important;--bg:#000!important;--bg-elevated:#111!important;--ink:#fff!important;--ink-2:#f0f0f0!important;--ink-3:#d0d0d0!important;--ink-4:#aaa!important;--line:#444!important}
html.a11y-high-contrast body{background-color:#000!important;color:#fff!important}
html.a11y-high-contrast .arit-header,html.a11y-high-contrast .arit-footer,html.a11y-high-contrast .arit-card,html.a11y-high-contrast .arit-article__card,html.a11y-high-contrast .arit-page-card{background:#111!important;border-color:#444!important;color:#fff!important}
html.a11y-high-contrast a{color:#4CAF50!important}
html.a11y-high-contrast a:hover{color:#fff!important}
html.a11y-high-contrast input,html.a11y-high-contrast select,html.a11y-high-contrast textarea{background:#222!important;color:#fff!important;border-color:#666!important}
html.a11y-high-contrast section,html.a11y-high-contrast .section,html.a11y-high-contrast .resources,html.a11y-high-contrast .arit-page-hero{background-color:#000!important}
html.a11y-high-contrast h1,html.a11y-high-contrast h2,html.a11y-high-contrast h3,html.a11y-high-contrast h4,html.a11y-high-contrast h5,html.a11y-high-contrast h6,html.a11y-high-contrast p,html.a11y-high-contrast li,html.a11y-high-contrast td,html.a11y-high-contrast th,html.a11y-high-contrast label,html.a11y-high-contrast span{color:#fff!important}

/* Dark Mode */
html.a11y-dark{--bg:#1a1a1a!important;--bg-elevated:#242424!important;--bg-soft:#2a2a2a!important;--ink:#e8e8e8!important;--ink-2:#c0c0c0!important;--ink-3:#999!important;--ink-4:#777!important;--line:#3a3a3a!important}
html.a11y-dark body{background-color:#1a1a1a!important;color:#e8e8e8!important}
html.a11y-dark .arit-header{background:#111!important}
html.a11y-dark .arit-card,html.a11y-dark .arit-article__card,html.a11y-dark .arit-page-card{background:#242424!important;border-color:#3a3a3a!important;color:#e8e8e8!important}
html.a11y-dark section,html.a11y-dark .section,html.a11y-dark .resources,html.a11y-dark .arit-page-hero,html.a11y-dark .arit-footer{background-color:#1a1a1a!important}
html.a11y-dark h1,html.a11y-dark h2,html.a11y-dark h3,html.a11y-dark h4,html.a11y-dark h5,html.a11y-dark h6{color:#f0f0f0!important}
html.a11y-dark a{color:#66BB6A!important}
html.a11y-dark a:hover{color:#9de0a1!important}
html.a11y-dark input,html.a11y-dark select,html.a11y-dark textarea{background:#2a2a2a!important;color:#e8e8e8!important;border-color:#444!important}

/* Underline Links — WCAG 1.4.1 */
html.a11y-underline-links a{text-decoration:underline!important;text-underline-offset:3px!important}
html.a11y-underline-links .arit-a11y__panel a,html.a11y-underline-links nav a{text-decoration:none!important}

/* Wide Spacing — WCAG 1.4.12 Text Spacing */
html.a11y-wide-spacing p,html.a11y-wide-spacing li,html.a11y-wide-spacing td,html.a11y-wide-spacing th,html.a11y-wide-spacing .entry-content{line-height:2!important;letter-spacing:.05em!important;word-spacing:.1em!important}

/* Reduce Motion — WCAG 2.3.3 */
html.a11y-reduce-motion *,html.a11y-reduce-motion *::before,html.a11y-reduce-motion *::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}

/* Grayscale */
html.a11y-grayscale{filter:grayscale(100%)!important}
html.a11y-grayscale .arit-a11y__panel{filter:none!important}
