/* R49 · the two floating buttons (17.11.2026). Rafael: the accessibility button moves to the left, and a WhatsApp
   button floats on the right, on every page. Second pass (17.11.2026, 15:46): both are dark on the light screen and
   light on the dark screen, and each opens into its word under the mouse ("נגישות", "נדבר ב־WhatsApp"), with room
   around the words.
   The accessibility button keeps everything it had (its panel, its hiding under the menu and the entrance); only its
   side and its dress change. Each button waits above whatever already sits in its corner: the bar of a project on a
   phone, the floating filter of the archive (right in Hebrew, left in English and Russian), the floating search of
   the questions. r49-float.js writes the word of the accessibility button, in the language of the page. */
:root{--r49-base:max(24px,env(safe-area-inset-bottom,0px))}
@media(max-width:580px){:root{--r49-base:max(18px,env(safe-area-inset-bottom,0px))}}
body{--r49-left:var(--r49-base);--r49-right:var(--r49-base)}
html:not([dir=rtl]) body:has(#archive-floating:not([hidden])){--r49-left:calc(var(--r49-base) + 66px)}
html[dir=rtl] body:has(#archive-floating:not([hidden])){--r49-right:calc(var(--r49-base) + 66px)}
body:has(.faq-floating:not([hidden])){--r49-right:calc(var(--r49-base) + 66px)}
body:has(.work-dock.is-visible){--r49-left:calc(84px + env(safe-area-inset-bottom,0px));--r49-right:calc(84px + env(safe-area-inset-bottom,0px))}
html body .a11y-root{right:auto!important;left:var(--gutter,24px)!important;bottom:var(--r49-left)!important}
html body .a11y-root .a11y-panel{right:auto;left:0}

/* one dress for the two: a round button in the colour of the ink (dark on the light screen, light on the dark one),
   that opens into a pill with its word. The sign keeps its place at the outer end, the word comes out toward the
   middle of the screen, with 24px of room after it. */
html body .a11y-root .a11y-fab,.r49-wa{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:flex-start;width:auto;min-width:48px;height:48px;padding:0;border-radius:999px;border:1px solid var(--ink,#232b38);background:var(--ink,#232b38);color:var(--paper,#f3f3f6);box-shadow:0 10px 28px rgba(14,19,28,.2);-webkit-backdrop-filter:none;backdrop-filter:none;font:400 15px/1 "M Sefira",Arial,sans-serif;letter-spacing:.03em;text-decoration:none;white-space:nowrap;overflow:hidden;cursor:pointer;transition:background-color .35s ease,border-color .35s ease,translate .45s cubic-bezier(.16,1,.3,1);-webkit-tap-highlight-color:transparent;touch-action:manipulation}
/* the site dresses every button in glass; these two are solid, so the glass is taken off the accessibility button */
html body .a11y-root .a11y-fab.a11y-fab{background:var(--ink,#232b38)!important;color:var(--paper,#f3f3f6)!important;border:1px solid var(--ink,#232b38)!important;box-shadow:0 10px 28px rgba(14,19,28,.2)!important}
html body .a11y-root .a11y-fab>.glass-optics,html body .a11y-root .a11y-fab>.glass-glow{display:none!important}
html body .a11y-root .a11y-fab>svg{flex:none;width:27px;height:27px;margin:0 9.5px}
html body .a11y-root[dir=rtl] .a11y-fab{flex-direction:row-reverse}
.r49-wa{position:fixed;right:var(--gutter,24px);bottom:var(--r49-right);z-index:2147481990}
html:not([dir=rtl]) .r49-wa{flex-direction:row-reverse}
.r49-wa-icon{flex:none;display:grid;place-items:center;width:46px;height:46px}
.r49-wa-icon svg{display:block;width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round}
.r49-wa-icon svg circle{fill:currentColor;stroke:none}
/* when the official mark of WhatsApp is given as a file, it is shown through a mask, in the colour of the button's sign */
.r49-wa-icon--mark{background:currentColor;-webkit-mask:var(--r49-wa-mark) center/27px 27px no-repeat;mask:var(--r49-wa-mark) center/27px 27px no-repeat}
.r49-wa-icon--mark svg{display:none}
.r49-wa-say,.r49-a11y-say{display:block;max-width:0;opacity:0;overflow:hidden;padding:0;transition:max-width .5s cubic-bezier(.16,1,.3,1),opacity .3s ease,padding .5s cubic-bezier(.16,1,.3,1)}
html body .a11y-root .a11y-fab:focus-visible,.r49-wa:focus-visible{outline:2px solid var(--ink,#232b38);outline-offset:4px}
.r49-wa:focus-visible .r49-wa-say{max-width:240px;opacity:1;padding-left:24px;padding-right:4px}
html body .a11y-root .a11y-fab:focus-visible .r49-a11y-say{max-width:240px;opacity:1;padding-right:24px;padding-left:4px}
@media(hover:hover) and (pointer:fine){
  html body .a11y-root .a11y-fab.a11y-fab:hover,.r49-wa:hover{background:color-mix(in srgb,var(--ink,#232b38) 86%,var(--paper,#f3f3f6))!important;border-color:color-mix(in srgb,var(--ink,#232b38) 86%,var(--paper,#f3f3f6))!important;translate:0 -2px}
  .r49-wa:hover .r49-wa-say{max-width:240px;opacity:1;padding-left:24px;padding-right:4px}
  html body .a11y-root .a11y-fab:hover .r49-a11y-say{max-width:240px;opacity:1;padding-right:24px;padding-left:4px}
}
html body .a11y-root .a11y-fab:active,.r49-wa:active{translate:0 0}
/* the entrance is always dark, whatever the appearance of the site: there the accessibility button is light */
html body.is-entry-open .a11y-root .a11y-fab.a11y-fab,html body .entry-stage .a11y-fab.a11y-fab{background:var(--gate-ink,#f2f3f5)!important;border-color:var(--gate-ink,#f2f3f5)!important;color:var(--gate-bg,#151a22)!important}
body.is-entry-open .r49-wa,body:has(.mobile-menu:not([hidden])) .r49-wa{display:none}
@media(max-width:580px){
  html body .a11y-root .a11y-fab,.r49-wa{height:44px;min-width:44px}
  html body .a11y-root .a11y-fab>svg{width:25px;height:25px;margin:0 8.5px}
  .r49-wa-icon{width:42px;height:42px}.r49-wa-icon svg{width:23px;height:23px}
}
@media(prefers-reduced-motion:reduce){html body .a11y-root .a11y-fab,.r49-wa,.r49-wa-say,.r49-a11y-say{transition:none}html body .a11y-root .a11y-fab:hover,.r49-wa:hover{translate:none}}
@media(forced-colors:active){html body .a11y-root .a11y-fab.a11y-fab,.r49-wa{border:2px solid ButtonText!important;background:ButtonFace!important;color:ButtonText!important}}
@media print{.r49-wa{display:none!important}}

/* R50 (18.11.2026), Rafael: the WhatsApp button in WhatsApp's colour. It wears WhatsApp's green in both
   appearances. The sign and the words on it are near-black, which reads clearly on that green (about 9 to 1;
   white on it would be 2 to 1). The official mark still comes from WhatsApp's own file (see patch_r50.py). */
@media not (forced-colors:active){
  html body .r49-wa.r49-wa{background:#25d366!important;border-color:#25d366!important;color:#111b21!important;box-shadow:0 10px 28px rgba(16,120,62,.3)}
  html body .r49-wa.r49-wa:focus-visible{outline-color:var(--ink,#232b38)}
}
@media not (forced-colors:active){@media(hover:hover) and (pointer:fine){html body .r49-wa.r49-wa:hover{background:#1fc45c!important;border-color:#1fc45c!important}}}
/* The sign on it is WhatsApp's own white glyph, shown as the file itself (src/brand/README.md): not a mask, not recoloured. */
.r49-wa-icon.r49-wa-icon--mark{background:var(--r49-wa-mark) center/31px 31px no-repeat;-webkit-mask:none;mask:none}
@media(max-width:580px){.r49-wa-icon.r49-wa-icon--mark{background-size:29px 29px}}
@media(forced-colors:active){.r49-wa-icon.r49-wa-icon--mark{background:none}.r49-wa-icon.r49-wa-icon--mark svg{display:block}}
