/* Accessibility for getboomerangloop.com (EN and /he/): menu, back-to-top, skip link, focus, contrast fixes.
   Loaded after each page's own <style>, so equal-specificity rules here win. Used by site/a11y.js. */

/* ---------- contrast fixes (WCAG 1.4.3, measured with axe) ---------- */
:root { --muted: #5c5c58; --yolk-t: #7a5700; --a11y-green: #1d7a43; --a11y-hot: #a63f18; --a11y-soft: #64635e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --muted: #a3a39e; --yolk-t: #ffc527; --a11y-green: #5fd08a; } }
:root[data-theme="dark"] { --muted: #a3a39e; --yolk-t: #ffc527; --a11y-green: #5fd08a; }
.lc em, .scr small, .sig, .dhead small, .stages span { color: var(--a11y-soft); }
.hot, .srow .cpl { color: var(--a11y-hot); }
.mtxt .live { color: var(--a11y-green); border-color: var(--a11y-green); }
.pubrow.done .st { color: var(--a11y-green); }
.hub .sat text.s { fill: var(--a11y-green); }
#cookie-notice a { text-decoration: underline; }
.sum .btn { color: var(--yolk); }

/* ---------- keyboard focus (2.4.7) ---------- */
:focus-visible { outline: 3px solid #121212 !important; outline-offset: 2px !important; box-shadow: 0 0 0 6px #ffc527 !important; border-radius: 2px; }
.skip-link { position: fixed; top: 8px; inset-inline-start: 8px; z-index: 10001; transform: translateY(-150%); background: #121212; color: #fff; padding: 12px 18px; border-radius: 8px; font: 600 16px/1.2 "Inter Tight", "Heebo", Arial, sans-serif; text-decoration: none; }
.skip-link:focus { transform: none; }
main:focus { outline: none; }

/* ---------- the two floating buttons ---------- */
.a11y-fab, .a11y-top { position: fixed; z-index: 9990; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; border: 2px solid #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25); padding: 0; }
.a11y-fab { right: 16px; top: 50%; transform: translateY(-50%); background: #0b4fd8; color: #fff; }
.a11y-top { right: 16px; bottom: 76px; background: #121212; color: #fff; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.a11y-top.on { opacity: 1; visibility: visible; }
.a11y-fab svg, .a11y-top svg { width: 26px; height: 26px; }
@media (max-width: 960px) { .a11y-top { bottom: 84px; } .a11y-fab { top: auto; bottom: 140px; transform: none; } }

/* ---------- the menu ---------- */
.a11y-panel { position: fixed; z-index: 9995; top: 50%; right: 76px; transform: translateY(-50%); width: min(340px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  background: #fff; color: #121212; border: 2px solid #121212; border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.3); padding: 16px; font: 400 15px/1.4 "Inter Tight", "Heebo", Arial, sans-serif; text-align: start; }
.a11y-panel[hidden] { display: none; }
@media (max-width: 960px) { .a11y-panel { right: 16px; left: 16px; width: auto; top: auto; bottom: 16px; transform: none; max-height: calc(100vh - 32px); } }
.a11y-panel h2 { font-size: 19px; font-weight: 700; line-height: 1.2; font-family: inherit; text-wrap: initial; letter-spacing: 0; margin: 0 0 12px; display: flex; justify-content: space-between; align-items: center; }
.a11y-panel .x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #121212; background: #fff; color: #121212; font-size: 20px; line-height: 1; cursor: pointer; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-grid button, .a11y-size button, .a11y-foot button { font-size: 14px; font-weight: 600; line-height: 1.25; font-family: inherit; color: #121212; background: #f2f2ef; border: 2px solid #d6d6d1; border-radius: 10px; padding: 10px 8px; cursor: pointer; min-height: 48px; text-align: center; }
.a11y-grid button[aria-pressed="true"], .a11y-size button[aria-pressed="true"] { background: #ffc527; border-color: #121212; }
.a11y-size { display: grid; grid-template-columns: auto 1fr 1fr 1fr; gap: 8px; align-items: center; margin-bottom: 8px; }
.a11y-size span { font-weight: 600; }
.a11y-foot { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-top: 12px; flex-wrap: wrap; }
.a11y-foot a { color: #0b4fd8; text-decoration: underline; font-weight: 600; }

/* ---------- the options ---------- */
html.a11y-t1 body { zoom: 1.15; }
html.a11y-t2 body { zoom: 1.3; }
html.a11y-contrast { --muted: var(--text); --line-dim: var(--line); --a11y-soft: #121212; --yolk-t: var(--text); }
html.a11y-contrast body { background: var(--bp); }
html.a11y-contrast body::before { display: none; }
html.a11y-contrast a, html.a11y-contrast button { text-decoration-thickness: 2px; }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; outline: 2px dashed currentColor; outline-offset: 2px; }
html.a11y-font body, html.a11y-font body *:not(svg):not(svg *) { font-family: Arial, "Helvetica Neue", sans-serif !important; letter-spacing: normal !important; }
html.a11y-space p, html.a11y-space li, html.a11y-space dd { line-height: 1.9 !important; letter-spacing: .02em; word-spacing: .1em; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-still .draw .st { stroke-dashoffset: 0; }
html.a11y-still .draw text, html.a11y-still .draw .route, html.a11y-still .draw .token, html.a11y-still .rv, html.a11y-still .bom tr, html.a11y-still .note, html.a11y-still .ad, html.a11y-still .alert { opacity: 1 !important; transform: none !important; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='48' viewBox='0 0 20 24'%3E%3Cpath d='M1 1l0 19 5-5 4 8 3-1.5-4-8 7 0z' fill='%23000' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") 2 2, auto !important; }
@media (prefers-reduced-motion: reduce) { .a11y-top { transition: none; } }
@media print { .a11y-fab, .a11y-top, .a11y-panel, .skip-link { display: none !important; } }
