/* Rabbit Hole v0.4.1: independent, dependency-free preference panel. */
.a11y-launcher{position:fixed;bottom:20px;left:20px;z-index:80;width:54px;height:54px;border:2px solid #fffdf7;border-radius:50%;display:grid;place-items:center;background:#2d4d3f;color:#fff;box-shadow:0 4px 18px #1a2a2035;cursor:pointer;transition:transform .18s ease}
.a11y-launcher:hover{transform:translateY(-2px)}
.a11y-dialog{border:0;border-radius:17px;padding:0;color:#242e27;background:#fffdf8;box-shadow:0 22px 80px #18241d48;width:min(445px,calc(100vw - 20px));max-height:min(88dvh,820px);overflow:hidden;position:fixed;inset:auto 16px 16px auto;margin:0;direction:rtl}
.a11y-dialog::backdrop{background:rgba(18,24,19,.45)}
.a11y-panel{max-height:min(88dvh,820px);display:flex;flex-direction:column;overflow:hidden;font:400 1rem/1.55 Arial,'Noto Sans Hebrew',sans-serif}
.a11y-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;background:#e9e6da;padding:21px 24px 15px;border-bottom:1px solid #d7d1bf}
.a11y-kicker{font-size:.75rem;letter-spacing:.015em;color:#5f685e;margin:0 0 4px}
.a11y-head h2{font-size:1.4rem;font-family:Arial,'Noto Sans Hebrew',sans-serif;margin:0;font-weight:700;color:#263b2f;letter-spacing:0}
.a11y-close{border:1px solid #859185;background:#fffdf8;color:#213e30;border-radius:9px;width:38px;height:38px;font-size:1.65rem;line-height:1;flex:none}
.a11y-intro{font-size:.86rem;color:#535f54;margin:0;padding:11px 24px 3px}
.a11y-body{overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:0;padding:0 24px 12px;scrollbar-color:#8ca596 #faf8f0}
.a11y-setting{padding:15px 0;border-bottom:1px solid #e8e5dc}
.a11y-setting h3{font:700 .97rem/1.5 Arial,'Noto Sans Hebrew',sans-serif;color:#24372d;margin:0 0 10px}
.a11y-label-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.a11y-label-row output{font-weight:750;font-size:1rem;color:#2c5b44}
.a11y-stepper{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#f3f2ec;padding:7px 9px;border-radius:10px}
.a11y-stepper button{width:41px;height:41px;flex:none;border:1px solid #b4c4b8;border-radius:9px;background:#fff;color:#234532;font-size:1.45rem;line-height:1}
.a11y-stepper button:disabled{opacity:.35;cursor:not-allowed}
.a11y-stepper span{color:#647268;font-size:.77rem}
.a11y-choices{display:flex;gap:7px}
.a11y-choices button{flex:1;min-width:0;border:1px solid #b9c4b8;color:#294435;background:#fff;border-radius:8px;padding:9px 6px;font-size:.83rem;font-weight:600}
.a11y-choices button[aria-pressed=true],.a11y-toggle-grid button[aria-pressed=true]{background:#2d4e3e;border-color:#2d4e3e;color:white}
.a11y-toggle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.a11y-toggle-grid button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:71px;padding:9px 5px;font-size:.81rem;line-height:1.35;background:#f4f2ea;color:#294435;border:1px solid #d9ded4;border-radius:9px;text-align:center}
.a11y-toggle-symbol{font-family:Arial,sans-serif;font-size:1.25rem;font-weight:750;line-height:1.15}
.a11y-status{min-height:1em;color:#3b5c43;font-size:.77rem;margin:10px 0 0}
.a11y-bottom{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px;padding:14px 24px 18px;border-top:1px solid #e5e1d8;background:#fffdf8}
.a11y-reset{border:1px solid #bec5ba;border-radius:9px;background:#f4f2ea;color:#334b3b;font-size:.81rem;padding:9px 13px}
.a11y-bottom a{color:#234e39;font-size:.81rem;text-decoration:underline;text-underline-offset:3px;font-weight:600}
.a11y-dialog :where(button,a):focus-visible{outline:3px solid #c15e2c!important;outline-offset:2px!important}
@media(max-width:620px){.a11y-launcher{width:50px;height:50px;bottom:12px;left:12px}.a11y-dialog{inset:0!important;margin:0;width:100vw;max-width:none;height:100dvh;max-height:100dvh;border-radius:0}.a11y-panel{max-height:100dvh;height:100dvh}.a11y-head{padding:19px 18px 13px}.a11y-intro{padding:12px 18px 0}.a11y-body{padding-inline:18px}.a11y-bottom{padding:12px 18px 18px}}

/* Reader preferences: unlike widget-only overlays, these affect the site itself. */
html[data-a11y-lines="true"] :where(.page p,.page li,.page blockquote,.page .feed-post-body,.page .feed-comment,.page .topic-card p,.page .meditation-steps){line-height:2.35!important}
html[data-a11y-spacing="true"] .page{letter-spacing:.045em;word-spacing:.19em}
html[data-a11y-spacing="true"] :where(input,textarea){letter-spacing:.035em;word-spacing:.17em}
html[data-a11y-font="true"] :where(.page,.brand,.page h1,.page h2,.page h3,.work-cover,.editorial-words,.feed-joke){font-family:system-ui,Arial,'Noto Sans Hebrew',sans-serif!important}
html[data-a11y-links="true"] :where(.page a,.footer a){text-decoration:underline!important;text-decoration-thickness:2px!important;text-underline-offset:.22em!important}
html[data-a11y-links="true"] .page a{outline:1px dotted currentColor;outline-offset:3px}
html[data-a11y-focus="true"] :where(a,button,input,textarea,select):focus-visible{outline:4px solid #bd5b27!important;outline-offset:4px!important;box-shadow:0 0 0 3px #fff!important}
html[data-a11y-motion="true"] *,html[data-a11y-motion="true"] *:before,html[data-a11y-motion="true"] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important;transform:none!important}
html[data-a11y-align="center"] :where(.page p,.page li,.page .lead,.page .feed-post-body,.page .feed-comment p){text-align:center!important}
html[data-a11y-align="left"] :where(.page p,.page li,.page .lead,.page .feed-post-body,.page .feed-comment p){text-align:left!important}
html[data-a11y-align="right"] :where(.page p,.page li,.page .lead,.page .feed-post-body,.page .feed-comment p){text-align:right!important}

html[data-a11y-contrast="high"]{--bg:#fff;--paper:#fff;--ink:#080808;--soft:#151515;--muted:#242424;--green:#063d23;--green-dark:#002515;--sage:#eff8ed;--sand:#fff;--line:#444;--shadow:none}
html[data-a11y-contrast="high"] .page :where(.editorial-art,.feature,.observe,.quote,.feed-joke,.feed-comment,.cloud-box,.safety-note,.pill,.side-note,.feed-filter,.practice-timer){background:#fff!important;color:#080808!important;border:1px solid #333!important}
html[data-a11y-contrast="high"] .page :where(p,.tag,.eyebrow,.muted,.subtle,.arrow,.text-link,.editorial-words,.editorial-words span,.editorial-foot,.sidenote,.side-note-label,.work-info p){color:#090909!important}
html[data-a11y-contrast="high"] .page :where(.btn.primary,.node.central,.feed-filter.active){background:#073a24!important;color:#fff!important;border-color:#073a24!important}
html[data-a11y-contrast="dark"]{color-scheme:dark;--bg:#101715;--paper:#192420;--ink:#f7faf6;--soft:#e5efe8;--muted:#c5d4c9;--green:#dcf5dd;--green-dark:#d0f2d1;--sage:#24382d;--sand:#21302a;--line:#7a9482;--shadow:none}
html[data-a11y-contrast="dark"] :where(body,header,.site-header){background:#101715!important;color:#f7faf6!important}
html[data-a11y-contrast="dark"] .page :where(.art,.editorial-art,.feature,.observe,.quote,.feed-joke,.feed-comment,.cloud-box,.safety-note,.pill,.side-note,.side-note-dark,.feed-filter,.practice-timer,.feed-compose,.feed-profile,.feed-join,.work-cover,.map-board,.response,.empty,.topic-card,.work-card,.path-card,.notepad,.saved-item,.aside-card){background:#192420!important;color:#f7faf6!important;border-color:#849f89!important;box-shadow:none!important}
html[data-a11y-contrast="dark"] .page :where(p,.tag,.eyebrow,.muted,.subtle,.arrow,.text-link,.editorial-words,.editorial-words span,.editorial-foot,.sidenote,.side-note-label,.work-info p,.feed-post-body,.feed-comment p,.page-title,.lead,.map-hint,.work-cover-top){color:#f4f9f4!important}
html[data-a11y-contrast="dark"] :where(.page a,.footer a,.nav button,.brand,.footer,.brand small){color:#eef8ef!important}
html[data-a11y-contrast="dark"] .page :where(input,select,textarea,.searchbar,.text-area){background:#14231a!important;color:white!important;border:1px solid #b6cbb7!important}
html[data-a11y-contrast="dark"] .page :where(.btn,.chip,.node,.feed-filter){background:#1b3525!important;color:#fff!important;border:1px solid #b6cbb7!important}
html[data-a11y-contrast="dark"] .page :where(.btn.primary,.node.central,.feed-filter.active){background:#d6f2d5!important;color:#13291a!important;border-color:#d6f2d5!important}
html[data-a11y-contrast="dark"] .page :where(.feed-byline span,.feed-actions button,.feed-actions a,.feed-status,.feed-banner,.feed-kind){color:#e2ebe2!important}
html[data-a11y-contrast="dark"] .page :where(.editorial-index,.editorial-foot){border-color:#a6b4a5!important}
html[data-a11y-contrast="dark"] .page .nav{color:#fff}
html[data-a11y-contrast="dark"] .footer{border-color:#78917e}
/* The accessibility panel intentionally retains its own legible palette in all themes. */
