/* Accessibility settings (public/js/a11y.mjs puts data-a11y-* attributes on <html>; people choose them in Profile or on /accessibility). */
html[data-a11y-size='lg'] { font-size: 112.5%; } html[data-a11y-size='lg'] body { font-size: 1.125rem; }
html[data-a11y-size='xl'] { font-size: 125%; } html[data-a11y-size='xl'] body { font-size: 1.25rem; }
html[data-a11y-contrast='high'] { --ink: #000; --slate: #1f2937; --line: #4b5563; --card: #fff; --bg: #fff; --t-indigo: #e0e0ff; --accent: #2b21b8; --ink-rose: #8f1111; --ink-green: #0b5a34; --ink-amber: #6b4a00; --ink-peach: #8a3f00; }
html[data-a11y-contrast='high'] .card, html[data-a11y-contrast='high'] .bcard, html[data-a11y-contrast='high'] .task, html[data-a11y-contrast='high'] .col, html[data-a11y-contrast='high'] .fx-btn, html[data-a11y-contrast='high'] input, html[data-a11y-contrast='high'] textarea, html[data-a11y-contrast='high'] .search { border: 2px solid #1f2937 !important; }
html[data-a11y-contrast='high'] :focus-visible { outline: 4px solid #000 !important; outline-offset: 3px !important; }
html[data-a11y-motion='reduce'] *, html[data-a11y-motion='reduce'] *::before, html[data-a11y-motion='reduce'] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-a11y-links='underline'] a { text-decoration: underline !important; text-underline-offset: 3px; }
html[data-a11y-space='wide'] body { line-height: 1.85; letter-spacing: .03em; word-spacing: .1em; } html[data-a11y-space='wide'] p, html[data-a11y-space='wide'] li { margin-bottom: .6em; }

/* the settings block itself */
.a11y-opts { display: grid; gap: 14px; }
.a11y-opt { border: 0; padding: 0; margin: 0; display: grid; gap: 4px; } .a11y-opt legend { font-weight: 600; padding: 0; }
.a11y-hint { margin: 0; color: var(--slate); font-size: .86rem; }
.a11y-seg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.a11y-seg button { min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 500; cursor: pointer; }
.a11y-seg button[aria-checked='true'] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.a11y-actions { margin-top: 4px; }
