/* Reading comfort menu + the settings it applies. Shared by every page. */
html[data-text="2"] { font-size: 112.5%; }
html[data-text="3"] { font-size: 125%; }
html[data-text="4"] { font-size: 140%; }

html.a11y-font { --serif: "Atkinson Hyperlegible", "Assistant", Arial, sans-serif; --body: "Atkinson Hyperlegible", "Assistant", Arial, sans-serif; --script: "Atkinson Hyperlegible", Arial, sans-serif; --hand: "Atkinson Hyperlegible", "Assistant", Arial, sans-serif; }
html.a11y-font[lang="he"] { --serif: "Assistant", Arial, sans-serif; --body: "Assistant", Arial, sans-serif; --hand: "Assistant", Arial, sans-serif; }
html.a11y-font body, html.a11y-font h1, html.a11y-font h2, html.a11y-font h3, html.a11y-font em, html.a11y-font .jline { font-style: normal !important; }
html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: .2em; }
html.a11y-spacing body { line-height: 1.95 !important; letter-spacing: .012em; word-spacing: .06em; }
html.a11y-spacing p, html.a11y-spacing li { line-height: 1.95 !important; }
html.a11y-contrast {
  --paper: #FFFFFF; --paper-deep: #F4F4F4; --cream: #FFFFFF;
  --ink: #000; --ink-soft: #111; --forest: #000; --forest-soft: #1A1A1A; --handle: #2B2B2B;
  --peach-deep: #7A2B16; --rule: rgba(0,0,0,.55); --focus: #0047AB;
}
html.a11y-contrast body { background: #fff; color: #000; }
html.a11y-contrast .site-head { background: #fff; border-bottom: 2px solid #000; }
html.a11y-contrast .slot { border: 2px dashed #000; background: #fff; }
html.a11y-contrast .btn-ghost, html.a11y-contrast .mini-doors a, html.a11y-contrast .chip, html.a11y-contrast .lang-opt, html.a11y-contrast .social-row a { border-color: #000; color: #000; background: #fff; }
html.a11y-contrast .btn-solid, html.a11y-contrast .chip[aria-pressed="true"] { background: #000; color: #fff; }
html.a11y-contrast .btn-peach { background: #FFD9CC; color: #000; border-color: #000; }
html.a11y-contrast .panel, html.a11y-contrast .offer, html.a11y-contrast .talk, html.a11y-contrast .workshop, html.a11y-contrast .find-group, html.a11y-contrast .book-card { background: #fff; border: 2px solid #000; }
html.a11y-contrast .ph-chip { color: #000; border-color: #000; background: #fff; }
html.a11y-contrast .hl { background-image: linear-gradient(transparent 60%, #FFE08A 60%, #FFE08A 95%, transparent 95%); }
html.a11y-contrast .cairn { color: #000; }
html.a11y-contrast .cairn-note { color: #000; }
html.a11y-contrast .close-stage, html.a11y-contrast .guide { background: #fff; }

/* the button */
.comfort-btn { position: fixed; z-index: 90; bottom: 1.1rem; inset-inline-start: 1.1rem; display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: .45rem 1rem .45rem .5rem; border-radius: 999px; border: 1.5px solid rgba(50,56,42,.28); background: rgba(255,253,249,.96); color: #32382A; font: 600 .92rem/1 "Source Sans 3", "Assistant", Arial, sans-serif; box-shadow: 0 10px 26px rgba(50,56,42,.14); cursor: pointer; }
html[dir="rtl"] .comfort-btn { padding: .45rem .5rem .45rem 1rem; }
.comfort-btn:hover { border-color: #32382A; }
.comfort-ico { width: 36px; height: 36px; border-radius: 50%; background: #9DB87F; color: #1C1A17; display: inline-flex; align-items: center; justify-content: center; font: 600 1.05rem/1 "EB Garamond", Georgia, serif; }
.comfort-btn:focus-visible, .comfort-panel button:focus-visible, .comfort-ask button:focus-visible { outline: 3px solid #1F4D2B; outline-offset: 3px; }

/* the panel */
.comfort-panel { position: fixed; z-index: 91; bottom: 4.9rem; inset-inline-start: 1.1rem; width: min(24rem, calc(100vw - 2.2rem)); max-height: calc(100vh - 6.5rem); overflow: auto; background: #FFFDF9; color: #1C1A17; border: 1px solid rgba(50,56,42,.2); border-radius: 22px; box-shadow: 0 22px 50px rgba(50,56,42,.22); padding: 1.4rem 1.3rem 1.1rem; font-family: "Source Sans 3", "Assistant", Arial, sans-serif; font-size: 1rem; line-height: 1.45; }
.comfort-panel[hidden], .comfort-ask[hidden] { display: none; }
.comfort-panel h2 { font: 500 1.6rem/1.15 "EB Garamond", "Frank Ruhl Libre", Georgia, serif; margin: 0 0 .35rem; color: #32382A; }
html[lang="he"] .comfort-panel h2 { font-family: "Frank Ruhl Libre", serif; font-weight: 600; }
.comfort-intro { color: #46423B; margin: 0 0 1rem; font-size: .95rem; }
.comfort-sizes { border: 0; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.comfort-sizes legend { font-weight: 600; margin-bottom: .45rem; padding: 0; }
.size-opt { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .55rem .2rem; border-radius: 14px; border: 1.5px solid rgba(50,56,42,.22); background: #fff; color: #32382A; cursor: pointer; font: inherit; font-size: .78rem; min-height: 64px; justify-content: center; }
.size-opt span[aria-hidden] { font-family: "EB Garamond", Georgia, serif; font-weight: 600; line-height: 1; }
.size-opt[aria-pressed="true"] { background: #32382A; color: #fff; border-color: #32382A; }
.comfort-toggles { display: grid; gap: .35rem; }
.comfort-switch { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; text-align: start; padding: .7rem .8rem; min-height: 48px; border-radius: 14px; border: 1px solid rgba(50,56,42,.14); background: #fff; color: #1C1A17; cursor: pointer; font: inherit; }
.sw-track { flex: none; width: 44px; height: 26px; border-radius: 999px; background: #D9D4CB; position: relative; transition: background .2s; }
.sw-dot { position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: inset-inline-start .2s; }
.comfort-switch[aria-checked="true"] .sw-track { background: #5E7A43; }
.comfort-switch[aria-checked="true"] .sw-dot { inset-inline-start: 21px; }
.comfort-foot { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.comfort-link { background: none; border: 0; padding: .4rem 0; color: #32382A; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; font: inherit; min-height: 40px; }
.comfort-close { background: #32382A; color: #fff; border: 0; border-radius: 999px; padding: .6rem 1.3rem; min-height: 44px; cursor: pointer; font: 600 .95rem/1 "Source Sans 3", "Assistant", Arial, sans-serif; }

/* the soft question */
.comfort-ask { position: fixed; z-index: 89; bottom: 4.9rem; inset-inline-start: 1.1rem; width: min(21rem, calc(100vw - 2.2rem)); background: #FFFDF9; border: 1px solid rgba(50,56,42,.18); border-radius: 22px; box-shadow: 0 18px 40px rgba(50,56,42,.18); padding: 1.1rem 1.2rem .8rem; font-family: "Source Sans 3", "Assistant", Arial, sans-serif; color: #1C1A17; animation: askin .6s ease both; }
.comfort-ask p { font: 500 1.25rem/1.3 "EB Garamond", "Frank Ruhl Libre", Georgia, serif; margin: 0 0 .8rem; color: #32382A; }
html[lang="he"] .comfort-ask p { font-family: "Frank Ruhl Libre", serif; }
.ask-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.ask-yes, .ask-no { min-height: 44px; padding: .55rem 1.1rem; border-radius: 999px; font: 600 .95rem/1 "Source Sans 3", "Assistant", Arial, sans-serif; cursor: pointer; }
.ask-yes { background: #9DB87F; color: #1C1A17; border: 0; }
.ask-no { background: transparent; color: #32382A; border: 1.5px solid rgba(50,56,42,.3); }
@keyframes askin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .comfort-ask { animation: none; } .sw-track, .sw-dot { transition: none; } }
html.a11y-contrast .comfort-btn, html.a11y-contrast .comfort-panel, html.a11y-contrast .comfort-ask { border: 2px solid #000; background: #fff; }
@media print { .comfort-btn, .comfort-panel, .comfort-ask { display: none !important; } }

@media (max-width: 560px) {
  .comfort-btn { padding: .3rem; min-height: 48px; min-width: 48px; bottom: .8rem; inset-inline-start: .8rem; }
  html[dir="rtl"] .comfort-btn { padding: .3rem; }
  .comfort-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .comfort-ico { width: 40px; height: 40px; }
  .comfort-panel, .comfort-ask { bottom: 4.4rem; inset-inline-start: .8rem; }
}
