/* Accessibility tools: the launcher, the panel, and what each setting does. Loaded on every page. */
.a11y-root{position:fixed;left:0;bottom:0;z-index:2147483000;font-family:var(--font);font-size:16px;line-height:1.4;letter-spacing:0;word-spacing:0;color:var(--ink)}
.a11y-btn{position:fixed;left:max(16px,env(safe-area-inset-left));bottom:max(16px,env(safe-area-inset-bottom));width:52px;height:52px;border-radius:50%;border:2px solid var(--paper);background:var(--ink);color:var(--on-ink);display:grid;place-items:center;cursor:pointer;box-shadow:var(--sh-2);padding:0}
.a11y-btn svg{width:28px;height:28px}
.a11y-btn.is-on::after{content:"";position:absolute;top:2px;right:2px;width:12px;height:12px;border-radius:50%;background:#1a9b55;border:2px solid var(--paper)}
.a11y-btn:focus-visible,.a11y-panel :focus-visible{outline:3px solid var(--ink);outline-offset:3px;border-radius:12px}
.a11y-btn:focus-visible{border-radius:50%}
.a11y-panel{position:fixed;left:max(16px,env(safe-area-inset-left));bottom:calc(max(16px,env(safe-area-inset-bottom)) + 64px);width:min(380px,calc(100vw - 32px));max-height:calc(100vh - 112px);max-height:calc(100dvh - 112px);overflow-y:auto;overscroll-behavior:contain;background:var(--surface);color:var(--text);border:1px solid var(--line-2);border-radius:20px;box-shadow:var(--sh-2);padding:16px}
.a11y-panel[hidden]{display:none}
.a11y-head{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.a11y-head h2{font-size:18px;line-height:1.2;margin:0 auto 0 0;letter-spacing:-.01em;color:var(--ink)}
.a11y-reset{font:inherit;font-size:14px;font-weight:600;min-height:44px;padding:0 14px;border-radius:999px;border:1px solid var(--line-2);background:var(--surface);color:var(--ink);cursor:pointer}
.a11y-reset:disabled{opacity:.45;cursor:default}
.a11y-x{width:44px;height:44px;border:0;border-radius:50%;background:var(--soft);color:var(--ink);display:grid;place-items:center;cursor:pointer;padding:0;flex:none}
.a11y-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.a11y-tool{position:relative;font:inherit;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;min-height:96px;padding:12px 4px 10px;border:1px solid var(--line-2);border-radius:14px;background:var(--surface);color:var(--ink);cursor:pointer;text-align:center}
.a11y-tool:hover{background:var(--soft)}
.a11y-tool.is-on{border-color:var(--ink);box-shadow:inset 0 0 0 2px var(--ink);background:var(--soft)}
.a11y-tool__name{font-size:13.5px;font-weight:600;line-height:1.2;overflow-wrap:anywhere}
.a11y-tool__val{font-size:12px;color:var(--muted);line-height:1.2}
.a11y-tool.is-on .a11y-tool__val{color:var(--ink);font-weight:600}
.a11y-dots{display:flex;gap:4px;margin-top:auto}
.a11y-dots i{width:6px;height:6px;border-radius:50%;background:var(--line-2)}
.a11y-dots i.on{background:var(--ink)}
.a11y-live{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0}
.a11y-foot{font-size:13px;color:var(--muted);margin:12px 0 0}
.a11y-foot a{color:var(--ink)}
@media (max-width:359px){.a11y-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:600px){.a11y-btn{left:20px;bottom:20px}.a11y-panel{left:20px;bottom:84px}}
@media print{.a11y-root{display:none!important}}
@media (forced-colors:active){.a11y-btn,.a11y-tool.is-on{border:2px solid ButtonText}}

/* reading guide and reading window */
.a11y-guide,.a11y-mask{display:none;position:fixed;left:0;right:0;pointer-events:none}
.a11y-guide{top:-4px;height:8px;background:#ffd400;border-top:2px solid #000;border-bottom:2px solid #000;will-change:transform}
.a11y-mask{background:rgba(0,0,0,.6)}
.a11y-mask--top{top:0;height:0}.a11y-mask--bot{bottom:0;top:100%}
.a11y-guide-1 .a11y-guide{display:block}
.a11y-mask-1 .a11y-mask{display:block}

/* ---- settings (classes on <html>) ---- */
/* text size: the whole page scales, the tools keep their size */
.a11y-text-1 body>:not(.a11y-root){zoom:1.1}
.a11y-text-2 body>:not(.a11y-root){zoom:1.2}
.a11y-text-3 body>:not(.a11y-root){zoom:1.35}
/* contrast */
.a11y-contrast-1:root{--ink:#000;--ink-2:#000;--text:#000;--muted:#1a1a1a;--faint:#333;--line:#000;--line-2:#000;--paper:#fff;--surface:#fff;--soft:#fff;--soft-2:#f2f2f2;--on-ink:#fff;--band:#000;--band-2:#000;--hdr-bg:#fff;--thead:#fff;--line-soft:#000;--ftr-faint:#e6e6e6;--ok:#005a2b;--warn:#6b3f00;--err:#8f1409;color-scheme:light}
.a11y-contrast-2:root{--ink:#fff;--ink-2:#fff;--text:#fff;--muted:#f0f0f0;--faint:#dcdcdc;--line:#fff;--line-2:#fff;--paper:#000;--surface:#000;--soft:#000;--soft-2:#141414;--on-ink:#000;--band:#000;--band-2:#000;--hdr-bg:#000;--thead:#000;--line-soft:#fff;--ftr-faint:#e6e6e6;--ok:#7dffb2;--warn:#ffd27a;--err:#ff9d94;--ok-bg:#000;--warn-bg:#000;--ok-line:#fff;--warn-line:#fff;--ok-chip:#000;--warn-chip:#000;--pick:#000;color-scheme:dark}
.a11y-contrast-1 a:not(.btn),.a11y-contrast-2 a:not(.btn){text-decoration:underline}
.a11y-contrast-2 .ftr,.a11y-contrast-2 .ctaband,.a11y-contrast-1 .card,.a11y-contrast-2 .card{outline:1px solid var(--line)}
.a11y-contrast-3 body>:not(.a11y-root){filter:grayscale(1)}
/* text spacing (WCAG 1.4.12 values) */
.a11y-spacing-1 body>:not(.a11y-root) :where(p,li,dd,dt,td,th,blockquote,label,figcaption,summary,span,a,h1,h2,h3,h4,button,input,textarea){line-height:1.8!important;letter-spacing:.12em!important;word-spacing:.16em!important}
.a11y-spacing-1 body>:not(.a11y-root) p{margin-bottom:2em!important}
.a11y-spacing-1 body>:not(.a11y-root) :where(h1,h2){letter-spacing:.03em!important;line-height:1.35!important}
/* readable font */
.a11y-font-1 body>:not(.a11y-root),.a11y-font-1 body>:not(.a11y-root) *{font-family:Verdana,Tahoma,"Segoe UI",Arial,sans-serif!important;font-feature-settings:normal!important;letter-spacing:0}
/* links */
.a11y-links-1 body>:not(.a11y-root) a{text-decoration:underline!important;text-decoration-thickness:2px!important;text-underline-offset:3px;}
.a11y-links-1 body>:not(.a11y-root) a:not(.btn):not(.brand):not([class*=logo]){outline:2px solid currentColor;outline-offset:2px;border-radius:4px}
/* focus */
.a11y-focus-1 :focus,.a11y-focus-1 :focus-visible{outline:4px solid #ffd400!important;outline-offset:3px!important;box-shadow:0 0 0 7px #000!important;border-radius:4px}
/* large cursor */
.a11y-cursor-1,.a11y-cursor-1 *{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M5 2.500l14 10-6.2 1.3 3.6 7-2.6 1.3-3.6-7L5 20z' fill='%23000' stroke='%23fff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 8 4,auto!important}
.a11y-cursor-1 :is(a,button,summary,label,select,[role=button]),.a11y-cursor-1 :is(a,button,summary,label,[role=button]) *{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M9 11V4.500a1.5 1.5 0 0 1 3 0V10l5.5 1.200A2 2 0 0 1 19 13.200V16a6 6 0 0 1-6 6h-1.500a5 5 0 0 1-4.2-2.300L4.5 15a1.5 1.5 0 0 1 2.4-1.800L9 15z' fill='%23000' stroke='%23fff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 18 4,pointer!important}
/* stop animations */
.a11y-motion-1,.a11y-motion-1 *,.a11y-motion-1 *::before,.a11y-motion-1 *::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
/* hide images (space is kept so the layout does not jump) */
.a11y-images-1 body>:not(.a11y-root) :is(img,picture,video,svg:not(.icon):not([aria-hidden=true])){visibility:hidden!important}
.a11y-images-1 body>:not(.a11y-root) :is(figure,.media,[class*="__img"],[class*="photo"]){background-image:none!important}
.a11y-contrast-2 .brand__img--light{display:none!important}.a11y-contrast-2 .brand__img--dark{display:block!important}.a11y-contrast-1 .brand__img--dark{display:none!important}.a11y-contrast-1 .brand__img--light{display:block!important}
/* profiles, read aloud, and the extra tools */
.a11y-lbl{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:14px 0 8px}
.a11y-head + .a11y-lbl{margin-top:0}
.a11y-profs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.a11y-prof{font:inherit;text-align:left;display:flex;flex-direction:column;gap:2px;min-height:64px;padding:10px 12px;border:1px solid var(--line-2);border-radius:14px;background:var(--surface);color:var(--ink);cursor:pointer}
.a11y-prof b{font-size:14px;line-height:1.2}
.a11y-prof span{font-size:12px;line-height:1.3;color:var(--muted)}
.a11y-prof:hover,.a11y-speak:hover{background:var(--soft)}
.a11y-prof.is-on{border-color:var(--ink);box-shadow:inset 0 0 0 2px var(--ink);background:var(--soft)}
.a11y-prof.is-on span{color:var(--ink)}
.a11y-speak{font:inherit;font-size:14px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px;margin-top:8px;padding:0 14px;border:1px solid var(--line-2);border-radius:14px;background:var(--surface);color:var(--ink);cursor:pointer}
.a11y-speak[aria-pressed=true]{background:var(--ink);color:var(--on-ink);border-color:var(--ink)}
@media (max-width:359px){.a11y-profs{grid-template-columns:minmax(0,1fr)}}
.a11y-calm-1 .leaves{display:none!important}
.a11y-calm-1 body>:not(.a11y-root) :is(video[autoplay],marquee,[class*=marquee],[class*=ticker],[class*=confetti]){display:none!important}
.a11y-calm-1 body>:not(.a11y-root) *{animation:none!important}
.a11y-saturation-1 body>:not(.a11y-root){filter:saturate(.45)}
.a11y-saturation-2 body>:not(.a11y-root){filter:saturate(1.9)}
.a11y-contrast-3.a11y-saturation-1 body>:not(.a11y-root),.a11y-contrast-3.a11y-saturation-2 body>:not(.a11y-root){filter:grayscale(1)}
.a11y-align-1 body>:not(.a11y-root) :where(p,li,h1,h2,h3,h4,dd,dt,blockquote,figcaption,td,th){text-align:left!important}
.a11y-headings-1 body>:not(.a11y-root) :is(h1,h2,h3,h4){outline:2px solid var(--ink);outline-offset:4px;border-radius:4px;background:color-mix(in srgb,#ffd400 22%,transparent)}
