/* Tefillah Thread — its own visual system (nothing shared with Eternal Nation's styles).
   Warm charcoal, ivory text, matte old gold for actions, a fine light gold for threads, Jerusalem limestone for second-level surfaces.
   Bright gold (--live) is kept for one thing only: the moment a prayer is confirmed.
   Layout uses logical properties throughout (inline-start / inline-end), so a right-to-left interface needs no second stylesheet. */
:root {
  --bg: #14110E; --surface: #1C1814; --inner: #272119; --ink: #EFE6D4; --dim: rgba(239,230,212,.74); --faint: rgba(239,230,212,.56);
  --line: rgba(239,230,212,.13); --line2: rgba(239,230,212,.32); --gold: #B8935A; --on-gold: #17120B; --gold-text: #D6B67E; --thread: #E9D29A; --live: #FFD35A;
  --stone: #CFC2A8; --stone-ink: #2A2318; --glass: rgba(22,19,15,.9); --urgent: #E8765A; --ok: #B5CDA4; --sky: #0F0D0B; --shadow: 0 24px 70px rgba(0,0,0,.55);
  --c0: #D6B67E; --c1: #EFE6D4; --c2: #CFC2A8; --c3: #B8935A; --c4: #E9D29A;
  --serif: "Frank Ruhl Libre", "Times New Roman", serif; --sans: Assistant, "Helvetica Neue", Arial, sans-serif; --vvh: 100vh;
}
:root[data-theme="day"] {
  --bg: #EDE4D2; --surface: #F8F2E5; --inner: #EBE1CC; --ink: #2A2318; --dim: rgba(42,35,24,.8); --faint: rgba(42,35,24,.62);
  --line: rgba(42,35,24,.14); --line2: rgba(42,35,24,.38); --gold: #A98344; --on-gold: #17120B; --gold-text: #6B4F1C; --thread: #8F6A22; --live: #C98A12;
  --stone: #D9CCB0; --glass: rgba(248,242,229,.94); --urgent: #A93E26; --ok: #47663A; --sky: linear-gradient(180deg, #E6DBC2 0%, #F2EADA 55%, #E2D5BA 100%); --shadow: 0 20px 60px rgba(70,52,20,.2);
  --c0: #8A6A2E; --c1: #4A3D28; --c2: #8C7B5C; --c3: #6B4F1C; --c4: #A98344;
}
:root { color-scheme: dark; } :root[data-theme="day"] { color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; overscroll-behavior: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, blockquote { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
[hidden] { display: none !important; }

/* ---------- the map ---------- */
#map { position: fixed; inset: 0; background: var(--sky); z-index: 1; cursor: grab; touch-action: none; overflow: hidden; }
#map.held { cursor: grabbing; }
#map canvas { display: block; }
.siglayer { position: absolute; inset: 0; pointer-events: none; }
.sigwrap { position: absolute; left: 0; top: 0; width: 38px; height: 38px; pointer-events: auto; will-change: transform; }
.clu { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; pointer-events: auto; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--line2); color: var(--ink); font-size: 13px; font-weight: 700; box-shadow: 0 3px 12px rgba(0,0,0,.35); will-change: transform; text-align: center; }
.clu.big { width: 48px; height: 48px; font-size: 14px; }
.clu.urgent { border-color: var(--urgent); }
.clu.urgent::before { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--urgent); opacity: 0; animation: breathe 1.4s ease-out infinite; }
.clu i { position: absolute; inset-inline-end: -4px; top: -4px; width: 13px; height: 13px; border-radius: 50%; background: var(--urgent); border: 2px solid var(--surface); }
/* A signal: a small given figure in a ring. An ordinary request barely glows; waves are for an urgent one alone. */
.sig { position: relative; width: 38px; height: 38px; }
.sig .dot { position: absolute; inset: 6px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--c); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.35); transition: scale .2s, background-color .2s; animation: shimmer 6s ease-in-out infinite; animation-delay: var(--d, 0s); }
.sig .dot svg { width: 13px; height: 13px; fill: var(--c); }
.sigwrap:hover .dot, .sig.on .dot { scale: 1.22; }
.sig.on .dot { background: var(--c); } .sig.on .dot svg { fill: var(--surface); color: var(--surface) !important; }
.sig .n { position: absolute; inset-inline-end: -4px; top: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center; }
.sig .n:empty { display: none; }
.sig.mine .dot { border-width: 2.5px; inset: 3px; border-color: var(--gold-text); }
.sig.urgent { --c: var(--urgent) !important; scale: 1.22; }
.sig.urgent .dot { background: var(--urgent); border-color: var(--urgent); animation: none; } .sig.urgent .dot svg { fill: #fff; color: #fff !important; }
.sig.urgent::before, .sig.urgent::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; border: 1.5px solid var(--urgent); opacity: 0; animation: breathe 1.5s ease-out infinite; }
.sig.urgent::after { animation-delay: .75s; }
/* the living moment: someone has just prayed — the only place the bright gold is used */
.sig.flash .dot { animation: glint 2.4s ease-out; border-color: var(--live); }
.sig.flash .n { background: var(--live); color: #17120B; }
@keyframes breathe { 0% { transform: scale(.7); opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes shimmer { 0%, 100% { box-shadow: 0 2px 8px rgba(0,0,0,.35), 0 0 0 0 transparent; } 50% { box-shadow: 0 2px 8px rgba(0,0,0,.35), 0 0 7px 0 color-mix(in srgb, var(--c) 38%, transparent); } }
@keyframes glint { 0% { scale: 1.45; box-shadow: 0 0 0 0 var(--live), 0 0 22px 6px color-mix(in srgb, var(--live) 70%, transparent); } 60% { box-shadow: 0 0 0 16px transparent, 0 0 14px 2px color-mix(in srgb, var(--live) 40%, transparent); } 100% { scale: 1; box-shadow: 0 0 0 16px transparent; } }

/* ---------- top bar ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 30; height: 56px; display: flex; align-items: center; gap: 10px; padding-inline: max(14px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-right)); background: linear-gradient(var(--glass), transparent); pointer-events: none; }
.top > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font: 500 19px/1 var(--serif); letter-spacing: .01em; white-space: nowrap; }
.brand svg { width: 26px; height: 26px; color: var(--thread); flex: none; }
.top .sp { flex: 1; }
#lang { display: flex; align-items: center; gap: 2px; font-size: 13px; letter-spacing: .1em; color: var(--faint); }
#lang a, #lang b { display: inline-grid; place-items: center; min-width: 36px; height: 44px; text-decoration: none; font-weight: 600; }
#lang b { color: var(--ink); } #lang i { font-style: normal; opacity: .5; }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); flex: none; }
.iconbtn:hover { background: color-mix(in srgb, var(--ink) 9%, transparent); }
.iconbtn svg { width: 21px; height: 21px; }
#themebtn .sun, :root[data-theme="day"] #themebtn .moon { display: none; } :root[data-theme="day"] #themebtn .sun { display: block; }
/* the sections, always in sight under the name: one row, the current one marked; on a phone it scrolls sideways if it must */
.mainnav { position: fixed; z-index: 30; inset: 56px 0 auto 0; height: 44px; display: flex; align-items: center; gap: 2px; padding-inline: max(8px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-right)); overflow-x: auto; scrollbar-width: none; background: var(--glass); border-block: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav button { flex: none; height: 36px; padding: 0 12px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--dim); white-space: nowrap; text-align: center; }
.mainnav button:hover { color: var(--ink); }
.mainnav button[aria-current] { background: var(--ink); color: var(--bg); }
.mainnav .comm { margin-inline-start: auto; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; height: 38px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 12px; font-size: 13px; line-height: 1.1; color: var(--ink); }
.mainnav .comm small { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); font-weight: 700; }
.mainnav .comm[aria-current] small { color: inherit; }
#demochip { position: fixed; z-index: 29; inset-inline-start: max(12px, env(safe-area-inset-left)); top: 106px; max-width: calc(100vw - 232px); min-height: 36px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: var(--dim); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
#demochip span { color: var(--gold-text); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
.mapctl { position: fixed; z-index: 26; inset-inline-end: max(10px, env(safe-area-inset-right)); top: 106px; display: flex; gap: 6px; }
.mapctl > div { display: flex; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.mapctl button { min-width: 40px; height: 36px; padding: 0 9px; font-size: 12.5px; font-weight: 700; color: var(--dim); text-align: center; }
.mapctl button + button { border-inline-start: 1px solid var(--line); }
.mapctl .zoom button { font-size: 20px; line-height: 1; }
.mapctl button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.credit { position: fixed; z-index: 2; inset-inline-end: 12px; bottom: 6px; font-size: 10px; color: var(--faint); pointer-events: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 14px; font-weight: 700; font-size: 16px; text-align: center; text-decoration: none; transition: transform .15s, background-color .2s, border-color .2s; }
.btn:active { transform: scale(.985); }
.btn.gold { background: var(--gold); color: var(--on-gold); }
.btn.gold:hover { background: color-mix(in srgb, var(--gold), #fff 9%); }
.btn.line { border: 1px solid var(--line2); color: var(--ink); }
.btn.line:hover { border-color: var(--ink); }
.btn.wide { width: 100%; margin-top: 12px; }
.btn.small { min-height: 42px; padding: 0 16px; font-size: 14.5px; border-radius: 12px; }
.btn.danger { color: var(--urgent); border-color: color-mix(in srgb, var(--urgent) 50%, transparent); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.gold[disabled] { background: color-mix(in srgb, var(--gold) 35%, var(--inner)); color: var(--ink); opacity: 1; }
.linkbtn { color: var(--gold-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.linkbtn.demo { display: block; margin: 4px 0 6px; }

/* ---------- the first screen ---------- */
#home { position: fixed; z-index: 20; inset-inline: 0; bottom: 0; padding: 18px 18px calc(16px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--glass); border-top: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
#home h1 { margin-top: 4px; font: 500 34px/1.05 var(--serif); letter-spacing: -.005em; }
#home .lead { margin-top: 8px; color: var(--dim); font-size: 15.5px; line-height: 1.45; max-width: 46ch; }
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.cta .btn { min-height: 54px; padding: 0 10px; }
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.doors button { display: flex; flex-direction: column; align-items: center; gap: 5px; min-height: 62px; padding: 9px 4px 8px; border-radius: 12px; background: color-mix(in srgb, var(--stone) 13%, transparent); color: var(--ink); font-size: 12.5px; font-weight: 600; line-height: 1.15; text-align: center; }
.doors button:hover { background: color-mix(in srgb, var(--stone) 22%, transparent); }
.doors svg { width: 20px; height: 20px; color: var(--gold-text); }
.stats { margin-top: 10px; font-size: 12.5px; color: var(--faint); }
.stats b { color: var(--ink); font-weight: 700; }
body.has-sheet #home { display: none; }

/* ---------- the sheet: from below on a phone, at the side on a desk ---------- */
.sheet { position: fixed; z-index: 28; inset-inline: 0; bottom: 0; display: none; flex-direction: column; max-height: min(74vh, calc(var(--vvh) - 108px)); border-radius: 22px 22px 0 0; background: var(--surface); border-top: 1px solid var(--line2); box-shadow: var(--shadow); transition: transform .32s cubic-bezier(.2,.8,.2,1); }
.sheet.on { display: flex; }
body.peek .sheet { transform: translateY(calc(100% - 60px)); }
.sheet.reader { max-height: calc(var(--vvh) - 104px); }   /* reading wants the whole screen */
.sheet-head { flex: none; display: flex; align-items: center; gap: 4px; min-height: 58px; padding: 6px 8px 4px 8px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { flex: 1; font: 500 19px/1.2 var(--serif); padding-inline: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#sheet-peek svg { transition: rotate .25s; } body.peek #sheet-peek svg { rotate: 180deg; }
#sheet-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 16px 18px calc(22px + env(safe-area-inset-bottom)); }
#sheet-body > h2 { font: 500 24px/1.15 var(--serif); margin: 6px 0 12px; }
#sheet-body h3 { margin: 22px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); }
#sheet-body h4 { margin: 14px 0 6px; font-size: 14px; font-weight: 700; color: var(--dim); }
.lede { color: var(--dim); font-size: 15.5px; margin-bottom: 12px; }
.note { margin-top: 10px; font-size: 13.5px; line-height: 1.45; color: var(--faint); }
.fine { margin-top: 16px; font-size: 12.5px; line-height: 1.45; color: var(--faint); }
.honest { padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--stone) 14%, transparent); color: var(--dim); font-size: 14px; line-height: 1.45; margin: 12px 0; }
.demonote { margin-top: 16px; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line2); font-size: 13.5px; line-height: 1.45; color: var(--dim); }
.demonote > b, .demobar, .adminbar { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); margin-inline-end: 6px; }
.demobar, .adminbar { display: block; padding: 8px 12px; border-radius: 10px; border: 1px dashed var(--gold-text); margin: 0 0 14px; text-align: center; letter-spacing: .08em; }
.err { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--urgent) 14%, transparent); color: var(--urgent); font-size: 14px; font-weight: 600; }
.okline { margin-top: 10px; color: var(--ok); font-size: 14px; font-weight: 600; }
.empty { padding: 26px 16px; border-radius: 14px; border: 1px dashed var(--line2); text-align: center; color: var(--dim); }
.empty small { display: block; margin-top: 6px; font-size: 13.5px; color: var(--faint); }
.box { margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--inner); }
.box h3:first-child { margin-top: 0; }
.box p { color: var(--dim); font-size: 14.5px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--inner); }
.row b small { margin-inline-start: 8px; font-size: 13px; font-weight: 400; color: var(--faint); }
.alt { margin-top: 18px; text-align: center; }
.steps { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.steps i { flex: 1; height: 3px; border-radius: 3px; background: var(--line2); } .steps i.on { background: var(--gold); }
.steps span { font-size: 12px; color: var(--faint); margin-inline-start: 6px; }
.stepback { color: var(--dim); font-size: 14px; font-weight: 600; min-height: 36px; margin: -6px 0 2px; }
.big2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.big2.one { grid-template-columns: 1fr; }
.choice { display: block; min-height: 96px; padding: 16px 14px; border-radius: 16px; border: 1px solid var(--line2); background: var(--inner); }
.big2.one .choice { min-height: 72px; }
.choice b { display: block; font: 500 19px/1.2 var(--serif); }
.choice small { display: block; margin-top: 5px; font-size: 13.5px; color: var(--faint); line-height: 1.35; }
.choice:hover, .choice[aria-pressed="true"] { border-color: var(--gold-text); }
.choice.gold { background: var(--gold); border-color: var(--gold); color: var(--on-gold); } .choice.gold small { color: rgba(23,18,11,.78); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { display: block; min-height: 92px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--inner); }
.tile b { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.2; }
.tile em { display: block; margin-top: 2px; font: italic 400 13.5px var(--serif); color: var(--gold-text); }
.tile small { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.3; color: var(--faint); }
.tile:hover { border-color: var(--line2); } .tile[aria-pressed="true"] { border-color: var(--gold-text); background: color-mix(in srgb, var(--gold) 16%, var(--inner)); }
.tiles.small { margin-top: 8px; } .tiles.small .tile { min-height: 70px; }
.morebtn { display: block; width: 100%; margin-top: 10px; min-height: 44px; border-radius: 12px; border: 1px dashed var(--line2); text-align: center; font-weight: 600; color: var(--dim); }
.seg { display: grid; gap: 6px; margin-top: 8px; grid-template-columns: repeat(3, 1fr); }
.seg.n2 { grid-template-columns: 1fr 1fr; }
.seg button { min-height: 46px; padding: 6px 8px; border-radius: 12px; border: 1px solid var(--line2); font-size: 14px; font-weight: 600; text-align: center; line-height: 1.2; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.checks, .quick, .amounts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.checks button, .quick button, .amounts button { min-height: 40px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line2); font-size: 14px; font-weight: 600; text-align: start; }
.checks button[aria-pressed="true"], .amounts button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.quick button { color: var(--dim); border-color: var(--line); font-weight: 500; } .quick button:hover { border-color: var(--ink); color: var(--ink); } .quick button[disabled] { opacity: .5; }
.amounts button { min-width: 62px; justify-content: center; text-align: center; font-size: 16px; }
.switch { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; width: 100%; margin-top: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line2); }
.switch i { width: 46px; height: 27px; border-radius: 999px; background: var(--line2); position: relative; transition: background-color .2s; }
.switch i::after { content: ''; position: absolute; inset-inline-start: 3px; top: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; transition: inset-inline-start .2s; }
.switch b { display: block; font-size: 15.5px; } .switch small { display: block; margin-top: 2px; font-size: 13px; color: var(--faint); line-height: 1.35; }
.switch[aria-pressed="true"] i { background: var(--gold); } .switch[aria-pressed="true"] i::after { inset-inline-start: 22px; }
.switch.urg[aria-pressed="true"] { border-color: var(--urgent); } .switch.urg[aria-pressed="true"] i { background: var(--urgent); }
.field { position: relative; margin-top: 10px; }
.field label { display: block; margin-bottom: 5px; font-size: 13.5px; font-weight: 600; color: var(--dim); }
.field label i { font-style: normal; font-weight: 400; color: var(--faint); }
.field label i.priv, dt.priv { color: var(--gold-text); }
.field input, .field textarea, .field select, .hours select { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--inner); color: var(--ink); font-size: 16px; resize: none; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold-text); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); opacity: .8; }
.field small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--faint); }
.field .left { position: absolute; inset-inline-end: 12px; bottom: 9px; font-size: 12px; color: var(--faint); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sug { display: grid; gap: 2px; margin-top: 6px; } .sug:empty { display: none; }
.sug button { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; min-height: 44px; padding: 9px 12px; border-radius: 10px; }
.sug button small { color: var(--faint); font-size: 13px; white-space: nowrap; } .sug button:hover { background: var(--inner); } .sug p { padding: 8px 12px; font-size: 14px; color: var(--faint); }
.crisislink { display: block; width: 100%; margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--urgent) 55%, transparent); color: var(--ink); font-size: 14.5px; font-weight: 600; }
.help { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: var(--stone); color: var(--stone-ink); font-size: 14.5px; }
.help > b { display: block; font: 500 19px/1.25 var(--serif); margin-bottom: 6px; }
.help p + p { margin-top: 8px; }
.help .line { margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: rgba(42,35,24,.1); }
.help .line span, .help .line small { display: block; font-size: 13px; opacity: .85; }
.help .line a { display: block; font: 700 31px/1.15 var(--sans); text-decoration: none; }
.help a { font-weight: 700; }
.seen, .unseen { margin-top: 10px; font-size: 13.5px; color: var(--faint); }
.seen small { display: block; } .seen b { font: 500 19px var(--serif); color: var(--ink); }
.unseen b { color: var(--dim); }

/* ---------- the public card ---------- */
.card.pub { padding: 16px; border-radius: 16px; background: var(--inner); border: 1px solid var(--line); }
.card.pub.urgent { border-color: color-mix(in srgb, var(--urgent) 60%, transparent); }
.who { display: flex; align-items: center; gap: 12px; }
.who b { display: block; font: 500 19px/1.2 var(--serif); } .who small { font-size: 13px; color: var(--faint); }
.ava { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--c); display: grid; place-items: center; flex: none; }
.ava svg { width: 17px; height: 17px; fill: var(--c); }
.ava.mini { width: 20px; height: 20px; border-width: 1px; } .ava.mini svg { width: 10px; height: 10px; }
.urgtag { display: inline-block; margin-top: 12px; padding: 4px 11px; border-radius: 999px; background: var(--urgent); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
:root[data-theme="night"] .urgtag { color: #17120B; }
.topic { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 12px; }
.topic span { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line2); font-size: 14px; font-weight: 600; }
.topic em { font: italic 400 14.5px var(--serif); color: var(--gold-text); }
.pname { margin-top: 12px; } .pname small { display: block; font-size: 12.5px; color: var(--faint); } .pname b { font: 500 22px/1.25 var(--serif); }
.words { margin-top: 10px; font-size: 16px; line-height: 1.5; }
.place { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--faint); } .place svg { width: 15px; height: 15px; flex: none; }
.count { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.count b { font: 500 44px/1 var(--serif); color: var(--gold-text); min-width: 1ch; } .count span { color: var(--dim); font-size: 15px; line-height: 1.35; }
.count.zero b { color: var(--faint); }
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.acts:has(> :only-child) { grid-template-columns: 1fr; }
.acts .btn { padding: 0 10px; }
.update { margin-top: 12px; padding: 12px 14px; border-radius: 12px; border-inline-start: 2px solid var(--gold-text); background: var(--inner); } .update small { display: block; font-size: 12.5px; color: var(--faint); } .update b { font: 500 18px var(--serif); }
.sent { margin-top: 8px; font-size: 14px; color: var(--ok); min-height: 1px; } .heldnote:empty, .sent:empty { display: none; }
.from { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; } .from span { padding: 4px 10px; border-radius: 999px; background: var(--inner); font-size: 13px; color: var(--dim); }
.feed { display: grid; margin-top: 10px; } .feed p { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 4px 0; font-size: 13.5px; color: var(--dim); border-bottom: 1px solid var(--line); }
.feed p span:not(.ava) { flex: 1; } .feed p small { flex: none; font-size: 12px; color: var(--faint); }
.liveh { display: flex; align-items: center; gap: 8px; }
.wordsin p { padding: 10px 12px; border-radius: 10px; background: var(--inner); font-size: 14.5px; margin-top: 6px; } .wordsin small { margin-inline-start: 8px; color: var(--faint); font-size: 12.5px; }
.list { display: grid; gap: 2px; margin-top: 10px; }
.need { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; width: 100%; min-height: 60px; padding: 8px; border-radius: 12px; }
.need:hover { background: var(--inner); }
.need b { display: block; font-size: 15.5px; font-weight: 700; } .need small { display: block; font-size: 13px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.need > span { min-width: 0; }
.need em { font-style: normal; font-size: 14px; font-weight: 700; color: var(--gold-text); white-space: nowrap; } .need em.zero { font-size: 12px; font-weight: 600; color: var(--faint); }
.urgdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--urgent); margin-inline-start: 7px; vertical-align: middle; }
.rowlink { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); margin-top: 8px; font-size: 14.5px; font-weight: 600; }
.rowlink svg { width: 20px; height: 20px; color: var(--gold-text); flex: none; } .rowlink span { flex: 1; } .rowlink small { display: block; font-size: 13px; font-weight: 400; color: var(--faint); } .rowlink i { font-style: normal; color: var(--faint); font-size: 20px; }
.rowlink:hover { border-color: var(--line2); }
:root[dir="rtl"] .rowlink i, :root[dir="rtl"] .need em:last-child { scale: -1 1; }

/* ---------- Tehillim reader ---------- */
.chpick { padding: 12px; border-radius: 14px; background: var(--inner); } .chpick > span { font-size: 12.5px; font-weight: 600; color: var(--dim); } .chpick small { display: block; margin-top: 8px; font-size: 12.5px; color: var(--faint); }
.chpick div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.chpick button { min-width: 46px; height: 42px; border-radius: 10px; border: 1px solid var(--line2); font-weight: 700; text-align: center; } .chpick button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.chnum input { width: 84px; height: 42px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line2); background: var(--surface); font-size: 16px; }
.readbar { display: flex; align-items: center; gap: 10px; margin-top: 12px; } .readbar .seg { flex: 1; margin-top: 0; } .readbar .seg button { min-height: 40px; }
.az { display: flex; gap: 4px; } .az button { width: 42px; height: 40px; border-radius: 10px; border: 1px solid var(--line2); text-align: center; font-weight: 700; font-size: 14px; }
.psalm { margin-top: 16px; --fs: 1; }
.psalm h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font: 500 26px var(--serif); } .psalm h2 em { font: italic 400 16px var(--serif); color: var(--faint); }
.verse { padding: 12px 0; border-bottom: 1px solid var(--line); }
.verse .he { font: 500 calc(23px * var(--fs))/1.75 var(--serif); text-align: right; }
.verse .tr { margin-top: 6px; font: 400 calc(16.5px * var(--fs))/1.55 var(--serif); color: var(--dim); text-align: left; } .verse .tr sup { font: 600 11px var(--sans); color: var(--gold-text); }
.psalm.v-he .tr, .psalm.v-tr .he { display: none; } .psalm.v-tr .tr { color: var(--ink); margin-top: 0; }
.edition { margin-top: 12px; font-size: 12px; color: var(--faint); line-height: 1.45; }
.chnav { display: flex; justify-content: space-between; margin-top: 14px; }
.own { margin-top: 16px; font: italic 400 16px var(--serif); color: var(--dim); text-align: center; }
.stick { position: sticky; bottom: -22px; margin: 18px -18px -22px; padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--surface) 26%); text-align: center; }
.stick .btn { margin-top: 0; } .stick small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--faint); }
.hours { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin-top: 8px; } .hours select:last-child { grid-column: 1 / -1; }

/* ---------- rabbis ---------- */
.caption { font-size: 12px; letter-spacing: .04em; color: var(--faint); padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); display: inline-block; }
.rgrid { display: grid; gap: 10px; margin-top: 12px; }
.rcard { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: 16px; background: var(--inner); border: 1px solid var(--line); width: 100%; }
.rcard:hover { border-color: var(--line2); }
.rphoto { display: grid; place-items: center; width: 84px; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--stone); color: var(--stone-ink); font: 500 26px var(--serif); flex: none; }
.rphoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rphoto.big { width: 112px; }
.rmeta b { display: block; font: 500 18px/1.2 var(--serif); } .rmeta small { display: block; font-size: 13px; color: var(--faint); } .rmeta small.comm { color: var(--dim); }
.rmeta em { display: inline-block; margin-top: 5px; font-style: normal; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.verified { display: inline-flex; align-items: center; gap: 4px; margin: 3px 0; font-size: 12.5px; font-weight: 700; color: var(--gold-text); } .verified svg { width: 16px; height: 16px; } .verified.mini { font-size: 11.5px; }
.unver { font-size: 12.5px; color: var(--faint); }
.rhead { display: flex; gap: 16px; align-items: center; } .rhead h2 { font: 500 24px/1.15 var(--serif); } .rhead p { font-size: 14px; color: var(--dim); } .rhead .langs { color: var(--faint); font-size: 13px; }
.demotag { margin-top: 12px; font-size: 11.5px; letter-spacing: .06em; color: var(--faint); border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; display: inline-block; }
.intro { margin-top: 12px; font: 400 17px/1.5 var(--serif); }
details.what { margin-top: 12px; border-radius: 12px; border: 1px solid var(--line); padding: 0 14px; } details.what summary { min-height: 46px; display: flex; align-items: center; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--dim); } details.what p { padding-bottom: 14px; font-size: 14px; color: var(--dim); }
.event { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--stone) 14%, transparent); border-inline-start: 2px solid var(--gold); } .event h3 { margin: 4px 0 2px !important; font: 500 19px var(--serif) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--ink) !important; } .event p:last-child { font-size: 14px; color: var(--dim); }
.namecard, .notecard, .appcard, .tripcard { margin-top: 10px; padding: 14px; border-radius: 14px; background: var(--inner); border: 1px solid var(--line); }
.tl { list-style: none; margin-top: 10px; display: grid; gap: 0; }
.tl li { position: relative; padding: 0 0 14px 26px; padding-inline: 26px 0; } .tl li:last-child { padding-bottom: 0; }
.tl li::before { content: ''; position: absolute; inset-inline-start: 3px; top: 4px; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--line2); background: var(--surface); }
.tl li::after { content: ''; position: absolute; inset-inline-start: 8.5px; top: 18px; bottom: 0; width: 1px; background: var(--line2); } .tl li:last-child::after { display: none; }
.tl li.done::before { background: var(--gold); border-color: var(--gold); } .tl li b { display: block; font-size: 14.5px; } .tl li.todo b { color: var(--faint); font-weight: 600; } .tl li small { display: block; font-size: 12.5px; color: var(--faint); }
.tl.big li b { font: 500 18px var(--serif); } .tl.big li.now::before { box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 28%, transparent); }
.desk { margin-top: 18px; padding: 14px; border-radius: 16px; border: 1px dashed var(--gold-text); }
.status { padding: 16px; border-radius: 16px; background: var(--inner); border-inline-start: 3px solid var(--gold); } .status h2 { font: 500 22px/1.2 var(--serif); margin: 4px 0 6px; } .status p { font-size: 14.5px; color: var(--dim); }
.status.s-approved { border-color: var(--ok); } .status.s-clarify { border-color: var(--urgent); } .status.s-declined { border-color: var(--faint); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin-top: 12px; font-size: 14px; } .kv dt { color: var(--faint); } .kv dd { color: var(--ink); overflow-wrap: anywhere; }
blockquote.q { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--inner); border-inline-start: 2px solid var(--line2); font: italic 400 17px/1.45 var(--serif); } blockquote.q small { display: block; font: 600 12px var(--sans); color: var(--faint); margin-bottom: 3px; } blockquote.q.gold { border-color: var(--gold-text); }
.photoin { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .photoin img, .photoin .rphoto { width: 60px; aspect-ratio: 4/5; border-radius: 10px; object-fit: cover; font-size: 18px; } .photoin input { flex: 1; min-width: 0; padding: 8px; font-size: 13px; }
.appcard .st { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); font-weight: 700; } .appcard h4 { margin: 4px 0 2px !important; font: 500 20px var(--serif) !important; color: var(--ink) !important; } .appcard > p { font-size: 14px; color: var(--dim); }
.appcard .acts { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.heldrow { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; } .heldrow small { display: block; color: var(--faint); font-size: 12.5px; }
/* support */
.recipient { display: grid; gap: 2px; margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: var(--inner); border: 1px solid var(--line2); } .recipient small { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-top: 6px; } .recipient small:first-child { margin-top: 0; } .recipient b { font: 500 21px/1.2 var(--serif); } .recipient span { font-size: 14px; color: var(--dim); }
.total { font: 500 46px/1.1 var(--serif); color: var(--gold-text); margin: 6px 0; }
.payst { padding: 22px 16px; border-radius: 16px; background: var(--inner); text-align: center; } .payst h2 { font: 500 22px/1.25 var(--serif); } .payst p { margin-top: 8px; color: var(--dim); font-size: 14.5px; } .payst .recipient { text-align: start; }
.payst.s-succeeded { border: 1px solid var(--gold-text); } .payst.s-failed { border: 1px solid var(--urgent); } .payst .ref { font-size: 12.5px; color: var(--faint); }
.spin { display: inline-block; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--gold-text); animation: spin 1s linear infinite; margin-bottom: 10px; } @keyframes spin { to { rotate: 360deg; } }
.demoout h4 { margin-top: 0 !important; }

/* ---------- Kotel: stone and paper, where they help the story ---------- */
.stonebg { position: relative; padding: 22px 18px; margin: -16px -18px 16px; color: #2A2318;
  background:
    linear-gradient(rgba(60,45,20,.16) 1px, transparent 1px) 0 0 / 100% 46px,
    linear-gradient(90deg, rgba(60,45,20,.13) 1px, transparent 1px) 0 0 / 118px 46px,
    linear-gradient(90deg, transparent 59px, rgba(60,45,20,.11) 59px, rgba(60,45,20,.11) 60px, transparent 60px) 0 46px / 118px 92px,
    radial-gradient(120% 90% at 20% 10%, #E9DEC6 0%, #D8CBAE 55%, #C5B694 100%); }
.stonebg .eyebrow { color: #6B4F1C; } .stonebg h2 { font: 500 28px/1.12 var(--serif); margin: 4px 0 6px; } .stonebg p:last-child { font-size: 15px; color: rgba(42,35,24,.82); max-width: 40ch; }
.paper, .paper-note { background: #F6EFDF; color: #2A2318; }
.need .paper { width: 30px; height: 38px; border-radius: 3px; box-shadow: 0 2px 6px rgba(0,0,0,.3); background: linear-gradient(#F6EFDF 0 50%, #E9DEC6 50%); margin-inline-start: 5px; }
.paper-note { margin-top: 8px; padding: 18px 16px; border-radius: 4px; font: 400 18px/1.6 var(--serif); box-shadow: 0 6px 18px rgba(0,0,0,.28); background-image: linear-gradient(rgba(60,45,20,.07) 1px, transparent 1px); background-size: 100% 28.8px; background-position: 0 14px; overflow-wrap: anywhere; }
.paperfield textarea { background: #F6EFDF !important; color: #2A2318 !important; font: 400 18px/1.6 var(--serif) !important; border-radius: 6px !important; min-height: 190px; }
.paperfield textarea::placeholder { color: rgba(42,35,24,.55) !important; } .paperfield .left { color: rgba(42,35,24,.6) !important; }
.disclose { margin-top: 12px; padding: 14px; border-radius: 12px; border: 1px solid var(--gold-text); } .disclose b { display: block; font: 500 18px/1.25 var(--serif); } .disclose p { margin-top: 5px; font-size: 14.5px; color: var(--dim); }
.tripcard { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .tripcard b { font: 500 18px var(--serif); } .tripcard small { display: block; font-size: 13px; color: var(--faint); } .tripcard em { display: block; margin-top: 3px; font-style: normal; font-size: 13.5px; font-weight: 700; color: var(--gold-text); }
.tripcard.full { opacity: .72; } .tripcard.full em { color: var(--faint); } .fulltag { font-size: 12.5px; color: var(--faint); white-space: nowrap; }
.notecard .st { font-size: 13px; font-weight: 600; color: var(--dim); } .notecard.done { border-color: var(--gold-text); } .confirmq { margin-top: 14px; font-size: 13.5px; color: var(--dim); font-weight: 600; }
.thanksin { margin-top: 8px; font: italic 400 16px var(--serif); color: var(--gold-text); }
.threadnote { margin-top: 12px; font-size: 14.5px; color: var(--gold-text); }
.story ol, .routelist { margin: 8px 0 0; padding-inline-start: 20px; display: grid; gap: 4px; font-size: 14.5px; } .story li, .routelist li { padding-block: 5px; } .story .linkbtn, .routelist .linkbtn { display: inline; text-align: start; min-height: 0; }

/* ---------- circles ---------- */
.ccard { display: block; width: 100%; padding: 14px; border-radius: 14px; background: var(--inner); border: 1px solid var(--line); margin-top: 8px; } .ccard b { display: block; font: 500 18px/1.25 var(--serif); } .ccard small { display: block; font-size: 13px; color: var(--faint); margin-top: 2px; } .ccard em { display: block; font-style: normal; font-size: 13.5px; color: var(--dim); margin-top: 6px; } .ccard.finished { border-color: var(--gold-text); } .ccard.finished em { color: var(--gold-text); font-weight: 700; }
.bar { display: block; height: 5px; border-radius: 5px; background: var(--line2); overflow: hidden; margin-top: 10px; } .bar i { display: block; height: 100%; background: var(--gold); border-radius: 5px; }
.chead h2 { font: 500 24px/1.2 var(--serif); margin: 4px 0; } .chead p:last-child { font-size: 14px; color: var(--faint); }
.prog { margin-top: 16px; font-size: 15px; color: var(--dim); } .prog b { font: 500 34px/1 var(--serif); color: var(--gold-text); margin-inline-end: 4px; }
.mych { margin-top: 16px; padding: 16px; border-radius: 16px; border: 1px solid var(--gold-text); } .mych h3 { margin: 4px 0 0 !important; font: 500 26px var(--serif) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--ink) !important; }
.grid150 { display: grid; grid-template-columns: repeat(15, 1fr); gap: 3px; margin-top: 18px; }
.grid150 i { aspect-ratio: 1; display: grid; place-items: center; border-radius: 4px; font: 600 8.5px var(--sans); font-style: normal; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--faint); }
.grid150 i.done { background: color-mix(in srgb, var(--gold) 62%, var(--inner)); color: var(--on-gold); } .grid150 i.taken { background: color-mix(in srgb, var(--stone) 36%, var(--inner)); color: var(--ink); } .grid150 i.me { outline: 1.5px solid var(--ink); }
.legend { display: flex; gap: 14px; margin-top: 8px; font-size: 12.5px; color: var(--faint); } .legend span { display: inline-flex; align-items: center; gap: 5px; } .legend i { width: 11px; height: 11px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 7%, transparent); } .legend i.done { background: color-mix(in srgb, var(--gold) 62%, var(--inner)); } .legend i.taken { background: color-mix(in srgb, var(--stone) 36%, var(--inner)); }
.complete { margin-top: 16px; padding: 24px 18px; border-radius: 18px; text-align: center; border: 1px solid var(--live); background: radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--live) 16%, var(--inner)), var(--inner) 70%); }
.complete h2 { font: 500 26px/1.15 var(--serif); margin: 10px 0 6px; } .complete p { color: var(--dim); font-size: 15px; margin-bottom: 14px; }
.goldline { height: 1px; margin: 0 auto; width: 60%; background: linear-gradient(90deg, transparent, var(--live), transparent); }
.roles { display: grid; gap: 6px; } .roles button { padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line2); } .roles button b { display: block; font-size: 15px; } .roles button small { font-size: 13px; color: var(--faint); } .roles button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); } .roles button[aria-pressed="true"] small { color: inherit; opacity: .75; }

/* ---------- toasts ---------- */
#toasts { position: fixed; z-index: 40; inset-inline: 0; top: 150px; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { max-width: 100%; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: rise .35s ease-out; text-align: center; }
.toast.gold { background: var(--live); color: #17120B; }
@keyframes rise { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- the desk ---------- */
@media (min-width: 900px) {
  .top { height: 64px; padding-inline: 24px 16px; } .brand { font-size: 22px; }
  .mainnav { inset: 12px auto auto 50%; translate: -50% 0; height: 42px; max-width: calc(100vw - 520px); padding: 0 4px; border: 1px solid var(--line); border-radius: 999px; gap: 2px; } :root[dir="rtl"] .mainnav { translate: 50% 0; inset: 12px 50% auto auto; }
  .mainnav .comm { margin-inline-start: 8px; height: 34px; border-radius: 999px; flex-direction: row; align-items: center; gap: 6px; } .mainnav .comm small { font-size: 10px; }
  #demochip { top: auto; bottom: 16px; inset-inline-start: 16px; max-width: 380px; }
  #home { inset-inline: 16px auto; top: 76px; bottom: auto; width: 380px; padding: 26px 24px 22px; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); }
  #home h1 { font-size: 44px; } #home .lead { font-size: 16.5px; } .cta { grid-template-columns: 1fr; } .doors { margin-top: 14px; }
  body.has-sheet #home { display: block; }
  .mapctl { top: auto; bottom: 30px; inset-inline-end: 16px; display: grid; gap: 8px; } body.has-sheet .mapctl { inset-inline-end: 488px; }
  .mapctl > div { display: grid; } .mapctl button { min-width: 44px; height: 40px; } .mapctl button + button { border-inline-start: 0; border-top: 1px solid var(--line); }
  .sheet { inset-inline: auto 16px; top: 76px; bottom: 16px; width: 440px; max-height: none; border-radius: 20px; border: 1px solid var(--line2); }
  body.peek .sheet { transform: none; } #sheet-peek { display: none; }
  #toasts { top: 84px; }
  .stonebg { margin: -16px -18px 16px; border-radius: 0; }
}
@media (max-width: 899px) {
  body.has-sheet .mapctl .zoom, body.has-sheet .credit { display: none; }
  .credit { display: none; }
}
@media (max-width: 899px) and (max-height: 640px) { #home .lead, .stats { display: none; } #home h1 { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) {
  .sig .dot, .sig.urgent::before, .sig.urgent::after, .clu.urgent::before, .sig.flash .dot, .toast, .spin { animation: none !important; }
  .sheet, .btn, .switch i::after { transition: none !important; }
  .sig.urgent::before { opacity: .55; transform: scale(1.35); }
}
/* the same, forced by ?calm=1 */
.calm .sig .dot, .calm .sig.urgent::before, .calm .sig.urgent::after, .calm .clu.urgent::before, .calm .sig.flash .dot, .calm .toast, .calm .spin { animation: none !important; }
.calm .sheet, .calm .btn, .calm .switch i::after { transition: none !important; }
.calm .sig.urgent::before { opacity: .55; transform: scale(1.35); }

/* ---------- a printed slip for one Kotel note: nothing else of the page is printed ---------- */
#print { display: none; }
@media print {
  body.printing { overflow: visible; background: #fff; }
  body.printing > *:not(#print) { display: none !important; }
  body.printing #print { display: block; color: #000; font-family: "Frank Ruhl Libre", "Times New Roman", serif; padding: 12mm; }
  .slip { width: 90mm; min-height: 120mm; border: 1px dashed #777; padding: 0 8mm; display: grid; grid-template-rows: 1fr auto 1fr; }
  .sliptext { font-size: 13pt; line-height: 1.6; padding: 6mm 0; overflow-wrap: anywhere; }
  .fold { font: 7pt Arial, sans-serif; color: #999; letter-spacing: .2em; text-transform: uppercase; text-align: center; align-self: end; border-bottom: 1px dotted #aaa; padding-bottom: 1mm; } .fold.bottom { align-self: start; border-bottom: 0; border-top: 1px dotted #aaa; padding-top: 1mm; }
  .slipfoot { margin-top: 5mm; font: 8pt Arial, sans-serif; color: #666; }
  @page { margin: 10mm; }
}

/* ---------- my community ---------- */
.commlist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.commlist button { min-height: 60px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line2); background: var(--inner); }
.commlist button b { display: block; font-size: 15px; line-height: 1.2; } .commlist button small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.3; color: var(--faint); }
.commlist button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); } .commlist button[aria-pressed="true"] small { color: inherit; opacity: .75; }
.toolcard { display: block; width: 100%; margin-top: 8px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--inner); border-inline-start: 2px solid var(--gold); }
.toolcard:hover { border-color: var(--line2); border-inline-start-color: var(--gold-text); }
.toolcard small, .whose { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.toolcard b { display: block; margin-top: 3px; font: 500 19px/1.2 var(--serif); } .toolcard span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.4; color: var(--dim); }
.whose { margin-bottom: 10px; }
.ctools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; } .ctools small { width: 100%; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.ctools button { min-height: 38px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line2); font-size: 13.5px; font-weight: 600; }
.ctools button:hover { border-color: var(--ink); }
.tenlist { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; counter-reset: ten; }
.tenlist li { counter-increment: ten; } .tenlist button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 46px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--inner); }
.tenlist button::before { content: counter(ten); font-size: 11px; color: var(--faint); min-width: 14px; } .tenlist b { flex: 1; font-size: 14.5px; } .tenlist span { font: 500 16px var(--serif); color: var(--gold-text); }
.psalm h2 + .verse { padding-top: 12px; } .psalm .verse + h2 { margin-top: 22px; }
@media (max-width: 899px) {
  .mainnav button { padding: 0 8px; font-size: 14px; }
  .mainnav .comm { padding: 0 9px; max-width: 104px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block; line-height: 1.15; padding-top: 4px; }
  .mainnav .comm small { display: block; }
}
