/* ===== Accessibility toolbar (self-built, replaces the a11y plugin) ===== */
.bd-skip-link{position:fixed;top:-100px;right:16px;z-index:100000;background:#0b1f3a;color:#fff;padding:12px 20px;border-radius:0 0 10px 10px;font-weight:700;transition:top .2s}
.bd-skip-link:focus{top:0;outline:3px solid #d4af37}

.bd-a11y{position:fixed;bottom:20px;right:20px;z-index:99990;font-family:'Noto Sans Hebrew',sans-serif}
.bd-a11y-toggle{width:56px;height:56px;border-radius:50%;border:none;background:#0b1f3a;color:#fff;cursor:pointer;box-shadow:0 8px 24px rgba(11,31,58,.35);display:flex;align-items:center;justify-content:center;transition:transform .2s,background .2s}
.bd-a11y-toggle:hover{transform:scale(1.06);background:#12305c}
.bd-a11y-toggle:focus-visible{outline:3px solid #d4af37;outline-offset:2px}

.bd-a11y-panel{position:absolute;bottom:70px;right:0;width:300px;max-width:calc(100vw - 40px);background:#fff;color:#0b1f3a;border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.25);padding:16px;border:1px solid #e7ebf2}
.bd-a11y-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;font-size:18px}
.bd-a11y-close{background:none;border:none;font-size:18px;cursor:pointer;color:#0b1f3a;line-height:1;padding:4px}
.bd-a11y-fontrow{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;background:#f4f6fa;border-radius:10px;padding:8px}
.bd-a11y-fontrow button{width:44px;height:40px;border:none;border-radius:8px;background:#0b1f3a;color:#fff;font-weight:700;font-size:16px;cursor:pointer}
.bd-a11y-fontlabel{font-weight:600}
.bd-a11y-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.bd-a11y-item{padding:10px 8px;border:1.5px solid #e7ebf2;border-radius:10px;background:#fff;color:#0b1f3a;font-size:13.5px;font-weight:600;cursor:pointer;transition:.15s;font-family:inherit}
.bd-a11y-item:hover{border-color:#0b1f3a}
.bd-a11y-item[aria-pressed="true"]{background:#0b1f3a;color:#fff;border-color:#0b1f3a}
.bd-a11y-item:focus-visible,.bd-a11y-fontrow button:focus-visible,.bd-a11y-reset:focus-visible{outline:3px solid #d4af37;outline-offset:2px}
.bd-a11y-reset{margin-top:12px;width:100%;padding:10px;border:none;border-radius:10px;background:#b91c1c;color:#fff;font-weight:700;cursor:pointer;font-family:inherit}
.bd-a11y-statement{display:block;text-align:center;margin-top:10px;color:#12305c;font-weight:600;font-size:13px}

/* Reading guide bar */
.bd-reading-guide{position:fixed;left:0;right:0;height:40px;background:rgba(11,31,58,.15);border-top:2px solid #0b1f3a;border-bottom:2px solid #0b1f3a;pointer-events:none;z-index:99980;top:0}

/* ===== Body-level accessibility states ===== */
html.bd-contrast body{background:#000!important;color:#fff!important}
html.bd-contrast a{color:#ffdf5d!important}
html.bd-contrast :is(p,h1,h2,h3,h4,h5,h6,span,li,td,th,label,strong,em){color:#fff!important}
html.bd-contrast :is(.bd-card,.bd-lawyer-card,header,footer,section){background:#000!important;border-color:#fff!important}

html.bd-grayscale body{filter:grayscale(100%)}
html.bd-invert body{filter:invert(100%) hue-rotate(180deg)}
html.bd-invert img,html.bd-invert video,html.bd-invert .bd-invert-safe{filter:invert(100%) hue-rotate(180deg)}

html.bd-links a{text-decoration:underline!important;text-underline-offset:2px;font-weight:700!important;outline:1px dashed currentColor;outline-offset:2px}

html.bd-readable body,html.bd-readable :is(p,li,a,span,h1,h2,h3,h4,h5,h6,button,input){font-family:Arial,"Segoe UI",sans-serif!important;letter-spacing:.3px;line-height:1.9!important}

html.bd-bigcursor,html.bd-bigcursor *{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='M4 2l16 8-7 2-2 7z' fill='black' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E") 4 4,auto!important}

html.bd-stopmotion *,html.bd-stopmotion *::before,html.bd-stopmotion *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}

@media (max-width:600px){.bd-a11y{bottom:14px;right:14px}.bd-a11y-toggle{width:50px;height:50px}}
