/* Michaelov.Art accessibility menu, 22.10.2026. Uses the site tokens (--paper, --ink,
   --line, --muted), so it follows the light and dark appearance. The floating button sits at
   the bottom right in every language, on the site margin, clear of the decorative seals on Home
   and About, which sit at the bottom left. */

.a11y-root{position:fixed;right:var(--gutter,24px);left:auto;bottom:max(24px,env(safe-area-inset-bottom,0px));z-index:2147482000;color:var(--ink,#232b38);font-size:15px;line-height:1.4;text-align:start}
.a11y-root *,.a11y-root *::before,.a11y-root *::after{box-sizing:border-box}
.a11y-root svg{display:block;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.a11y-root svg .a11y-fill{fill:currentColor;stroke:none}
.a11y-root button{font:inherit;color:inherit;margin:0}

/* Keep clear of the phone bottom bar, and step aside while full-screen layers are open. */
body:has(.work-dock.is-visible) .a11y-root{bottom:calc(84px + env(safe-area-inset-bottom,0px))}
/* Hebrew archive: the floating filter sits at the bottom right, so the button waits above it. */
html[dir=rtl] body:has(#archive-floating:not([hidden])) .a11y-root,body:has(.faq-floating:not([hidden])) .a11y-root{bottom:calc(max(24px,env(safe-area-inset-bottom,0px)) + 66px)}
body.is-entry-open .a11y-root,body:has(.mobile-menu:not([hidden])) .a11y-root{display:none}

.a11y-fab{display:grid;place-items:center;width:48px;height:48px;padding:0;border-radius:50%;border:1px solid var(--line,rgba(35,43,56,.17));background:color-mix(in srgb,var(--paper,#f3f3f6) 84%,transparent);color:var(--ink,#232b38);box-shadow:0 10px 28px rgba(14,19,28,.16);-webkit-backdrop-filter:blur(14px) saturate(.9);backdrop-filter:blur(14px) saturate(.9);cursor:pointer;touch-action:manipulation}
.a11y-fab svg{width:27px;height:27px;stroke-width:1.5}
.a11y-fab:hover{border-color:color-mix(in srgb,var(--ink,#232b38) 40%,transparent)}
.a11y-root :focus-visible{outline:2px solid var(--ink,#232b38);outline-offset:3px}
.a11y-root .a11y-title:focus{outline:none}
.a11y-root .a11y-title:focus-visible{outline:2px solid var(--ink,#232b38);outline-offset:4px;border-radius:6px}

.a11y-panel{position:absolute;right:0;left:auto;bottom:calc(100% + 12px);width:min(344px,calc(100vw - 32px));max-height:min(80vh,calc(100dvh - 112px));overflow:auto;overscroll-behavior:contain;padding:18px;border-radius:22px;border:1px solid var(--line,rgba(35,43,56,.17));background:color-mix(in srgb,var(--paper,#f3f3f6) 95%,transparent);-webkit-backdrop-filter:blur(22px) saturate(.9);backdrop-filter:blur(22px) saturate(.9);box-shadow:0 26px 70px rgba(10,14,22,.24);color:var(--ink,#232b38);transform-origin:bottom right;animation:a11y-in .22s cubic-bezier(.23,1,.32,1)}
.a11y-panel[hidden]{display:none}
@keyframes a11y-in{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}

.a11y-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
.a11y-title{margin:0;font-size:21px;font-weight:700;line-height:1.2}
.a11y-close{display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:50%;border:1px solid var(--line,rgba(35,43,56,.17));background:transparent;cursor:pointer}
.a11y-close svg{width:18px;height:18px}

.a11y-size{display:grid;grid-template-columns:1fr auto auto auto;align-items:center;gap:6px;padding:8px 8px 8px 14px;border:1px solid var(--line,rgba(35,43,56,.17));border-radius:16px;margin:0 0 8px}
.a11y-root[dir=rtl] .a11y-size{padding:8px 14px 8px 8px}
.a11y-size-label{font-size:15px}
.a11y-step{display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:50%;border:1px solid var(--line,rgba(35,43,56,.17));background:transparent;cursor:pointer}
.a11y-step svg{width:18px;height:18px}
.a11y-step[aria-disabled=true]{opacity:.38;cursor:default}
.a11y-size-value{min-width:3.4em;text-align:center;font-variant-numeric:tabular-nums;font-size:15px}

.a11y-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.a11y-option{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:10px;min-height:86px;padding:12px;border-radius:16px;border:1px solid var(--line,rgba(35,43,56,.17));background:transparent;text-align:start;font-size:14px;line-height:1.3;cursor:pointer}
.a11y-option-icon{display:flex;align-items:center;justify-content:space-between;width:100%}
.a11y-option-icon svg{width:22px;height:22px}
.a11y-option .a11y-check{width:18px;height:18px;stroke-width:2;opacity:0}
.a11y-option:hover{border-color:color-mix(in srgb,var(--ink,#232b38) 40%,transparent)}
.a11y-option[aria-pressed=true]{background:var(--ink,#232b38);color:var(--paper,#f3f3f6);border-color:var(--ink,#232b38)}
.a11y-option[aria-pressed=true] .a11y-check{opacity:1}
.a11y-option[aria-pressed=true]:focus-visible{outline-color:var(--ink,#232b38)}

.a11y-reset{display:block;width:100%;min-height:44px;margin:10px 0 0;padding:8px 16px;border-radius:999px;border:1px solid var(--line,rgba(35,43,56,.17));background:transparent;font-size:14px;cursor:pointer}
.a11y-reset:disabled{opacity:.45;cursor:default}
.a11y-note{margin:10px 2px 0;font-size:13px;line-height:1.5;color:var(--muted,#505a67)}
.a11y-links{display:flex;flex-wrap:wrap;gap:0 16px;margin:4px 2px 0;font-size:13.5px}
.a11y-links a{display:inline-flex;align-items:center;min-height:36px;color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.a11y-live{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}

@media (max-width:580px){
  .a11y-root{bottom:max(18px,env(safe-area-inset-bottom,0px))}
  .a11y-fab{width:44px;height:44px}
  .a11y-fab svg{width:25px;height:25px}
  .a11y-panel{padding:16px}
}
@media (prefers-reduced-motion:reduce){.a11y-panel{animation:none}}
@media (forced-colors:active){.a11y-fab,.a11y-panel,.a11y-option,.a11y-step,.a11y-close,.a11y-reset{border:2px solid ButtonText}.a11y-option[aria-pressed=true]{outline:3px solid Highlight}}
@media print{.a11y-root{display:none!important}}

/* ---------- adjustments (classes on <html>) ---------- */

/* High contrast: the site palette at full strength, in either appearance. */
html.a11y-contrast body{--paper:#fff;--ink:#000;--muted:#000;--line:rgba(0,0,0,.72);--legal-muted:#000;--glass-ink:#000;background-color:#fff}
html.a11y-contrast body[data-theme=dark]{--paper:#000;--ink:#fff;--muted:#fff;--line:rgba(255,255,255,.78);--legal-muted:#fff;--glass-ink:#fff;background-color:#000}
html.a11y-contrast body :is(p,li,dt,dd,h1,h2,h3,h4,h5,h6,a,label,legend,figcaption,caption,blockquote,q,cite,small,strong,em,b,i,u,s,mark,del,ins,sub,sup,abbr,dfn,time,data,code,kbd,samp,var,td,th,summary,button,span,bdi,output):not(.a11y-root *){color:var(--ink)!important;-webkit-text-fill-color:currentColor;text-shadow:none!important}
html.a11y-contrast body :is(input,textarea,select):not(.a11y-root *){color:var(--ink)!important;background-color:var(--paper)!important;border-color:var(--ink)!important}
html.a11y-contrast body :is(.edge-glass,.edge-blur,.edge-water){display:none!important}
/* Surfaces that paint their own ink-like background keep paper-coloured text, and light surfaces
   inside them go back to ink (the script marks them with data-a11y-bg). */
html.a11y-contrast body [data-a11y-bg=inv]:not(.a11y-root *),html.a11y-contrast body [data-a11y-bg=inv]:not(.a11y-root *) :is(p,li,dt,dd,h1,h2,h3,h4,h5,h6,a,label,legend,figcaption,caption,blockquote,q,cite,small,strong,em,b,i,u,s,mark,del,ins,sub,sup,abbr,dfn,time,data,code,kbd,samp,var,td,th,summary,button,span,bdi,output){color:var(--paper)!important;-webkit-text-fill-color:currentColor}
html.a11y-contrast body [data-a11y-bg=inv]:not(.a11y-root *) [data-a11y-bg=norm],html.a11y-contrast body [data-a11y-bg=inv]:not(.a11y-root *) [data-a11y-bg=norm] :is(p,li,dt,dd,h1,h2,h3,h4,h5,h6,a,label,legend,figcaption,caption,blockquote,q,cite,small,strong,em,b,i,u,s,mark,del,ins,sub,sup,abbr,dfn,time,data,code,kbd,samp,var,td,th,summary,button,span,bdi,output){color:var(--ink)!important}
html.a11y-contrast body [data-a11y-bg=inv]:not(.a11y-root *):is(:hover,:focus-visible,:active){background-color:var(--ink)!important;color:var(--paper)!important}
/* Known dark components, also while their background only shows on focus or hover. */
html.a11y-contrast body :is(.lead-submit,.archive-skip,.invite-action):not(.a11y-root *),html.a11y-contrast body :is(.lead-submit,.archive-skip,.invite-action):not(.a11y-root *) *{background-color:var(--ink)!important;color:var(--paper)!important;-webkit-text-fill-color:currentColor}
/* The moving pigment background is decoration: a plain page reads better in high contrast. */
html.a11y-contrast :is(.live-atmosphere,.transition-atmosphere-frame){display:none!important}

/* Highlighted links */
html.a11y-links body a:not(.a11y-root *){text-decoration-line:underline!important;text-decoration-thickness:2px!important;text-underline-offset:.22em!important;text-decoration-color:currentColor!important}
html.a11y-links body a:not(.a11y-root *):is(:hover,:focus-visible){background-color:color-mix(in srgb,var(--gold,#efbf04) 38%,transparent)}

/* Readable font */
html.a11y-font body,html.a11y-font body *:not(svg):not(svg *){font-family:Arial,"Helvetica Neue","Segoe UI",system-ui,sans-serif!important;font-feature-settings:normal!important;font-variation-settings:normal!important}

/* Text spacing */
html.a11y-spacing body :is(p,li,dt,dd,blockquote,figcaption,label,td,th,summary):not(.a11y-root *){line-height:1.9!important;letter-spacing:.05em!important;word-spacing:.14em!important}

/* Stop animations: CSS motion ends at once; the script also pauses video and the site's loops. */
html.a11y-motion *,html.a11y-motion *::before,html.a11y-motion *::after{animation-duration:.01ms!important;animation-delay:0s!important;animation-iteration-count:1!important;transition-duration:.01ms!important;transition-delay:0s!important;scroll-behavior:auto!important}

/* Strong focus outline */
html.a11y-focus :focus-visible{outline:3px solid #ffbf00!important;outline-offset:3px!important;box-shadow:0 0 0 7px #111!important}

/* Entry screen (04.11.2026): the menu lives inside the open entry dialog until a choice is made. */
.a11y-root[hidden]{display:none!important}
body.is-entry-open .a11y-root.a11y-in-entry{display:block;z-index:2147482000}
