/* Display settings panel + the site-wide effect of each setting. Shared by every page. */
/* Floating button only where the page has empty side margins; on smaller screens the same panel opens from the
   phone menu and the footer, so the button never covers content (WCAG 2.4.11). */
@media (max-width:1199px){.a11y-fab{display:none!important}}
.a11y-fab{position:fixed;left:12px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:31;display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;padding:0;border-radius:50%;border:2px solid #f6efe2;background:#151313;color:#f6efe2;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.45)}
.a11y-fab:hover{background:#2b2626}
.a11y-fab-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
html.intro .a11y-fab,body.playing .a11y-fab,body.nav-open .a11y-fab{opacity:0;pointer-events:none}
.link-button{background:none;border:0;padding:0;font:inherit;color:inherit;text-decoration:underline;cursor:pointer}
.a11y-dialog,.a11y-dialog *{box-sizing:border-box}
.a11y-dialog{width:min(460px,calc(100% - 24px));max-width:none;max-height:calc(100dvh - 24px);padding:22px 22px 18px;border:3px solid #111;border-radius:18px;background:#f6efe2;color:#111;box-shadow:10px 10px 0 #e1011e;font:16px/1.5 Archivo,system-ui,-apple-system,Arial,sans-serif}
.a11y-dialog::backdrop{background:rgba(0,0,0,.72)}
.a11y-dialog h2{font:400 28px/1 'Archivo Black',Impact,Arial,sans-serif;text-transform:uppercase;margin:4px 52px 8px 0}
.a11y-dialog :focus-visible{outline:3px solid #111;outline-offset:3px;border-radius:4px}
.a11y-close{position:absolute;top:12px;right:12px;width:44px;height:44px;border-radius:50%;border:2px solid #111;background:#fff;color:#111;font-size:18px;cursor:pointer}
.a11y-intro,.a11y-more{margin:0 0 12px;font-size:14px;color:#3b352f}
.a11y-more a{color:#111}
.a11y-dialog fieldset{border:0;margin:0;padding:0}
.a11y-legend{font-weight:700;padding:0;margin-bottom:4px}
.a11y-row{display:flex;gap:12px;align-items:flex-start;padding:10px 0;border-bottom:1px solid #d9cfbf}
.a11y-row input{width:24px;height:24px;margin:2px 0 0;flex:none;accent-color:#b0001a}
.a11y-row label{cursor:pointer;display:grid;gap:2px}
.a11y-label{font-weight:700}
.a11y-hint{font-size:13.5px;color:#4b443d}
.a11y-actions{display:flex;gap:10px;margin-top:14px}
.a11y-reset{min-height:44px;padding:10px 16px;border-radius:999px;border:2px solid #111;background:#fff;color:#111;font:700 14px/1 Archivo,system-ui,sans-serif;cursor:pointer}
.a11y-status{margin:8px 0 0;font-weight:600;font-size:14px}
.a11y-status:empty{display:none}

/* Larger text: small text grows to 18px; anything already bigger stays as it is. */
html.a11y-text :where(p,li,dd,dt,label,legend,small,a,button,input,select,textarea,kbd,output,strong,b,figcaption,span:not(.cart-count):not(.dot):not(.pill):not(.a11y-fab-text)){font-size:max(18px,1em)!important}

/* Underline links (buttons that look like buttons are left alone). */
html.a11y-links a:not(.btn):not(.logo):not(.skip){text-decoration:underline!important;text-underline-offset:3px}

/* Wider text spacing (WCAG 1.4.12 values). */
html.a11y-spacing body *:not(canvas):not(svg):not(svg *){letter-spacing:.12em!important;word-spacing:.16em!important;line-height:1.5!important}
html.a11y-spacing p{margin-bottom:2em}

/* Reduce motion: no animations, transitions or smooth scrolling. */
html.a11y-motion{scroll-behavior:auto!important}
html.a11y-motion *,html.a11y-motion *::before,html.a11y-motion *::after{animation:none!important;transition:none!important}

/* High contrast: black backgrounds, white text, visible borders and focus. */
html.a11y-contrast body{background:#000!important;color:#fff}
html.a11y-contrast main p,html.a11y-contrast main li,html.a11y-contrast main dd{color:#fff}
html.a11y-contrast a:not(.btn){color:#fff;text-decoration:underline}
html.a11y-contrast :focus-visible{outline:4px solid #ffcd53!important;outline-offset:3px}
html.a11y-contrast .a11y-fab{background:#000;border-color:#fff}
html.a11y-contrast dialog{background:#fff!important;color:#000!important}
html.a11y-contrast dialog :focus-visible{outline-color:#000!important}
html.a11y-contrast dialog p,html.a11y-contrast dialog li,html.a11y-contrast dialog span,html.a11y-contrast dialog label,html.a11y-contrast dialog a{color:#000!important}
@media (forced-colors:active){.a11y-fab,.a11y-close,.a11y-reset{border:2px solid ButtonText}}

/* Long words (emails, links) wrap instead of pushing the page sideways when text is enlarged or spaced out. */
html.a11y-text body,html.a11y-spacing body{overflow-wrap:anywhere}
