@font-face { font-family: Heebo; src: url(../fonts/heebo-hebrew.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: Heebo; src: url(../fonts/heebo-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AC; }
/* the children's pages: Varela Round (SIL Open Font License, Google Fonts), the Hebrew letters with their vowel marks */
@font-face { font-family: Kids; src: url(../fonts/varela-hebrew.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: Frank; src: url(../fonts/frank-hebrew.woff2) format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }

:root {
  --bg: #f1f4f8; --card: #ffffff; --ink: #1c2430; --muted: #5c6777; --line: #e0e5ed;
  --navy: #16304f; --navy2: #24507f; --gold: #2d6bb4; --gold-ink: #24507f; --accent-soft: #dbe7f6; --green: #23805a; --green-bg: #e4f3ea; --red: #b3412e;
  --r: 18px; --shadow: 0 1px 2px rgba(22, 48, 79, .06), 0 6px 18px rgba(22, 48, 79, .07);
  --sans: Heebo, system-ui, "Segoe UI", Arial, sans-serif; --serif: Frank, "Frank Ruehl CLM", "David", "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) { --bg: #0f141b; --card: #182029; --ink: #ebe6dc; --muted: #a3acb7; --line: #2a3440; --navy: #a9c8ee; --navy2: #6f9fd6; --gold: #5b9be0; --gold-ink: #8cbcf0; --accent-soft: #1d3550; --green: #4fbf8c; --green-bg: #17302a; --red: #ec8a76; --shadow: none; } }
:root[data-theme=dark] { --bg: #0f141b; --card: #182029; --ink: #ebe6dc; --muted: #a3acb7; --line: #2a3440; --navy: #a9c8ee; --navy2: #6f9fd6; --gold: #5b9be0; --gold-ink: #8cbcf0; --accent-soft: #1d3550; --green: #4fbf8c; --green-bg: #17302a; --red: #ec8a76; --shadow: none; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
body.reading { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; top: -60px; right: 12px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 10px; }
main { max-width: 640px; margin: 0 auto; padding: 0 14px; outline: none; }
.muted { color: var(--muted); font-size: 14px; }
.center { text-align: center; }
.small { font-size: 12px; }
.title { font-size: 26px; margin: calc(18px + env(safe-area-inset-top)) 4px 14px; color: var(--navy); font-weight: 800; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* hero */
.hero { margin: 0 -14px 16px; padding: calc(14px + env(safe-area-inset-top)) 16px 18px; color: #fff; border-radius: 0 0 28px 28px;
  background: radial-gradient(85% 75% at 92% 0%, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 62%), linear-gradient(165deg, #3a7fcb 0%, #2560a6 50%, #1c4b87 100%); position: relative; overflow: hidden; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .hero { background: radial-gradient(85% 75% at 92% 0%, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, 0) 62%), linear-gradient(165deg, #2a609e, #1c4577 50%, #15365c); } }
:root[data-theme=dark] .hero { background: radial-gradient(85% 75% at 92% 0%, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, 0) 62%), linear-gradient(165deg, #2a609e, #1c4577 50%, #15365c); }
@media (min-width: 668px) { .hero { margin: 12px 0 16px; border-radius: 28px; } }
.daybar { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; z-index: 1; }
.daybar .date { text-align: center; display: flex; flex-direction: column; align-items: center; }
.daybar h1 { font-size: 26px; margin: 0; font-weight: 800; letter-spacing: .2px; }
.daybar small { opacity: .8; font-size: 14px; }
.nav-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); font-size: 26px; line-height: 1; color: #fff; }
.dprog { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 14px; padding: 6px 6px 6px 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .96); color: var(--navy); font: inherit; cursor: pointer; position: relative; z-index: 1; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
[dir="ltr"] .dprog { padding: 6px 12px 6px 6px; }
.dprog .segs { flex: 1; display: flex; gap: 4px; height: 12px; }
.dprog .segs i { flex: 1; border-radius: 999px; background: linear-gradient(90deg, var(--c) calc(var(--f) * 100%), color-mix(in srgb, var(--c) 16%, #fff) 0); }
[dir="rtl"] .dprog .segs i { background: linear-gradient(-90deg, var(--c) calc(var(--f) * 100%), color-mix(in srgb, var(--c) 16%, #fff) 0); }
.dprog b { flex: none; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dprog.full b { color: var(--green); }
.dprog:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.summary { display: flex; align-items: center; gap: 14px; margin-top: 14px; border-top: 1px solid rgba(255, 255, 255, .2); padding: 14px 2px 0; position: relative; z-index: 1; }
.summary > div:nth-child(2) { flex: 1; }
.summary b { display: block; font-size: 17px; }
.summary small { opacity: .85; }
.ring { --p: 0; flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; position: relative; }
.ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--gold) calc(var(--p) * 360deg), rgba(255, 255, 255, .22) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); }
.ring span { position: relative; font-weight: 800; font-size: 15px; }
.welcome { text-align: center; padding-top: calc(36px + env(safe-area-inset-top)); padding-bottom: 28px; }
.welcome img { border-radius: 18px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.welcome h1 { margin: 14px 0 6px; font-size: 26px; }
.welcome p { margin: 0; opacity: .85; }
.onb { padding-bottom: 20px; }

/* study tile */
.tile { --c: #3d6bb3; flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 80%, #fff), var(--c)); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); letter-spacing: -.2px; }

/* cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.card { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 10px 10px 12px; box-shadow: var(--shadow); transition: background .2s, border-color .2s, transform .1s; }
.card.done { background: color-mix(in srgb, var(--green) 7%, var(--card)); border-color: color-mix(in srgb, var(--green) 45%, transparent); box-shadow: 0 1px 2px rgba(35, 128, 90, .08), 0 6px 16px rgba(35, 128, 90, .10); }
.card.off { opacity: .6; box-shadow: none; padding: 12px; }
.card .open { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; background: none; border: 0; padding: 2px; text-align: start; border-radius: 12px; }
.card .open:active { transform: scale(.99); }
.info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.info .h3, .card h3 { font-size: 13px; color: var(--muted); font-weight: 600; margin: 0; }
.portion { font-size: 17px; font-weight: 700; color: var(--ink); }
.sub { font-size: 14px; color: var(--muted); }
.card.done .portion { color: var(--green); }
.meter { display: block; height: 5px; background: var(--line); border-radius: 9px; overflow: hidden; margin-top: 6px; max-width: 180px; }
.meter i { display: block; height: 100%; background: var(--gold); border-radius: 9px; }
.card.done .meter i { background: var(--green); }

.check { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); display: inline-grid; place-items: center; padding: 0; transition: transform .12s, background .15s; }
.check svg { width: 22px; height: 22px; fill: none; stroke: transparent; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.check:active { transform: scale(.9); }
.check:hover svg { stroke: var(--line); }
.check.on { background: var(--green); border-color: var(--green); }
.check.on svg { stroke: #fff; }
.check.part { border-color: var(--gold); border-style: dashed; }
.check.sm { width: 30px; height: 30px; }
.check.sm svg { width: 17px; height: 17px; }

/* backlog */
.behind { margin-top: 26px; }
.behind h2 { font-size: 20px; margin: 0 4px 2px; color: var(--navy); }
.behind > .muted { margin: 0 4px 10px; }
.bgroup { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 10px; }
.bhead { display: flex; align-items: center; gap: 10px; }
.bhead .tile { width: 34px; height: 34px; border-radius: 10px; font-size: 10px; }
.bhead b { flex: 1; }
.pill { background: var(--gold); color: #fff; border-radius: 999px; font-size: 12px; padding: 1px 9px; font-weight: 700; }
.bgroup ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.bgroup li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.blink { background: none; border: 0; padding: 6px 0; text-align: start; flex: 1; }
.blink:hover { color: var(--navy2); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 10px 16px; font-weight: 600; color: var(--navy); text-decoration: none; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .btn.primary { color: #0f141b; } }
:root[data-theme=dark] .btn.primary { color: #0f141b; }
.btn.wide { width: 100%; padding: 14px; font-size: 17px; }
.onb .btn.wide { margin-top: 14px; }
.btn.tiny { padding: 4px 12px; font-size: 13px; border-radius: 999px; }
.btn.ghost { background: transparent; }
.btn.light { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn.danger { color: var(--red); }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* pickers */
.pick { display: grid; gap: 8px; }
.pickrow { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; cursor: pointer; position: relative; }
.panel .pickrow { background: var(--bg); }
.pickrow input { position: absolute; opacity: 0; pointer-events: none; }
.ptext { flex: 1; }
.pickrow .box { flex: none; width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--line); display: grid; place-items: center; background: var(--card); }
.pickrow .box svg { width: 18px; height: 18px; fill: none; stroke: transparent; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pickrow:has(input:checked) { border-color: color-mix(in srgb, var(--navy2) 45%, var(--line)); }
.pickrow input:checked ~ .box { background: var(--navy); border-color: var(--navy); }
.pickrow input:checked ~ .box svg { stroke: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .pickrow input:checked ~ .box svg { stroke: #0f141b; } }
:root[data-theme=dark] .pickrow input:checked ~ .box svg { stroke: #0f141b; }
.pickrow:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.pickrow b { display: block; font-size: 16px; font-weight: 600; }
.pickrow small { color: var(--muted); display: block; font-size: 13px; }
.pickrow .note { color: var(--gold-ink); }

/* panels */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.panel h2 { margin: 0 0 12px; font-size: 17px; color: var(--navy); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: color-mix(in srgb, var(--ink) 7%, transparent); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 8px 6px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background .15s, color .15s; }
.seg button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.seg button.on { background: var(--card); color: var(--navy); box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 0 0 1px var(--line); }
.promo { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 12px 4px; border-top: 1px solid var(--line); }
.promo:first-of-type { border-top: 0; }
.promo img { border-radius: 12px; flex: none; }
.promo b { display: block; font-size: 16px; }
.promo small { color: var(--muted); font-size: 13px; }
.promo > span:nth-of-type(1) { flex: 1; }
.promo .go { color: var(--muted); font-size: 22px; }
.promo:hover b { color: var(--navy2); }
.legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 18px 0 6px; font-size: 14px; }
.legal a { color: var(--navy2); }

/* tracking */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 6px; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 28px; color: var(--navy); line-height: 1.2; font-weight: 800; }
.stat small { color: var(--muted); font-size: 12px; }
.grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.wd { text-align: center; color: var(--muted); font-size: 12px; }
.cell { aspect-ratio: 1; border-radius: 9px; border: 0; padding: 0; font-size: 12px; display: grid; place-items: center; background: var(--bg); color: var(--muted); }
.cell.pad { background: transparent; }
.cell.fut { background: transparent; opacity: .45; }
.mname { font-size: 15px; color: var(--navy); margin: 10px 2px 6px; }
.months2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); column-gap: 28px; }
.months2 .cell { aspect-ratio: 1.45; }
.months2 .grid { gap: 4px; }
.cell.none { background: transparent; border: 1px dashed var(--line); }
.cell.l0 { background: var(--card); border: 1px solid var(--line); }
.cell.l2 { background: var(--accent-soft); color: var(--navy); font-weight: 600; }
.cell.l3 { background: var(--gold); color: #fff; font-weight: 700; }
.cell.now { outline: 2px solid var(--gold); outline-offset: 2px; }
.legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin: 12px 0 4px; }
.legend .cell { width: 14px; height: 14px; aspect-ratio: auto; border-radius: 4px; margin-inline-start: 8px; }
.bar { display: grid; grid-template-columns: 30px 8.5em 1fr 3em; align-items: center; gap: 10px; font-size: 14px; margin: 8px 0; }
.bar .tile { width: 30px; height: 30px; border-radius: 9px; font-size: 9px; }
.bar .track { height: 8px; background: color-mix(in srgb, var(--ink) 8%, transparent); border-radius: 99px; overflow: hidden; }
.bar .track i { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.bar small { color: var(--muted); text-align: left; font-variant-numeric: tabular-nums; }

/* reader */
.reader { position: fixed; inset: 0; z-index: 20; background: var(--card); display: flex; flex-direction: column; }
.reader[hidden] { display: none; }
.rhead { display: flex; align-items: center; gap: 6px; padding: calc(8px + env(safe-area-inset-top)) 10px 8px; border-bottom: 1px solid var(--line); background: var(--card); }
.rtitle { flex: 1; min-width: 0; }
.rtitle small { color: var(--muted); font-size: 12px; }
.rtitle h2 { margin: 0; font-size: 17px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon { flex: none; min-width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-weight: 700; font-size: 15px; color: var(--navy); padding: 0 8px; }
.ropts { display: flex; gap: 18px; padding: 8px 16px; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); }
.ropts label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.ropts input { width: 18px; height: 18px; accent-color: var(--navy); }
.rbody { flex: 1; overflow-y: auto; padding: 8px 18px 30px; outline: none; -webkit-overflow-scrolling: touch; }
.rbody > * { max-width: 720px; margin-inline: auto; }
.loading { text-align: center; color: var(--muted); padding: 40px 0; }
.rpart { padding-top: 6px; }
.rpart + .rpart { border-top: 1px dashed var(--line); margin-top: 18px; }
.rpart h3 { font-size: 15px; color: var(--gold-ink); margin: 14px 0 6px; font-weight: 700; }
.text { font-family: var(--serif); font-size: var(--fs, 21px); line-height: 1.8; }
.text p { margin: 0 0 .55em; }
.text h4 { font-family: var(--sans); font-size: .75em; color: var(--navy); margin: 1.1em 0 .4em; }
.text .vn { font-family: var(--sans); font-size: .55em; color: var(--gold-ink); font-weight: 700; margin-inline-end: .35em; vertical-align: .45em; }
.text .hn { font-family: var(--sans); font-size: .6em; color: var(--gold-ink); margin-inline-end: .2em; }
.text .pm { font-family: var(--sans); font-size: .55em; color: var(--muted); margin-inline: .3em; }
.text big { font-size: 1.25em; }
.text small { font-size: .8em; color: var(--muted); }
.verse { margin-bottom: .2em; }
.rashi { font-size: .78em; line-height: 1.65; background: var(--bg); border-radius: 12px; padding: .5em .8em; margin: .2em 0 .9em; color: var(--ink); }
.rashi p { margin: 0 0 .35em; }
.rashi .rl { font-family: var(--sans); font-size: .7em; font-weight: 800; color: var(--gold-ink); display: block; }
.chumash .chap { text-align: center; }
.text .note { font-family: var(--sans); font-size: .7em; color: var(--muted); }
.err { font-family: var(--sans); color: var(--red); font-size: 15px; }
.pdone { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-weight: 600; color: var(--navy); }
.pdone.on { background: color-mix(in srgb, var(--green) 8%, var(--card)); color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.rfoot { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card); }
.rfoot .btn { max-width: 640px; margin: 0 auto; display: flex; }

/* nav */
.nav { position: fixed; inset: auto 0 0 0; z-index: 10; display: flex; justify-content: center; gap: 4px; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
.nav[hidden] { display: none; }
.tab { flex: 1; max-width: 160px; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: var(--muted); padding: 6px 4px; border-radius: 14px; }
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab.on { color: var(--navy); font-weight: 700; background: color-mix(in srgb, var(--navy2) 10%, transparent); }

.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 30; width: max-content; max-width: min(92vw, 520px); text-align: center; line-height: 1.4; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* icons and arrows: drawn for LTR, mirrored in RTL so "back" always points to where you came from */
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; display: block; }
[dir=rtl] .ic.dir { transform: scaleX(-1); }
.nav-arrow { display: grid; place-items: center; }
.icon .ic { margin: 0 auto; }
.promo .go .ic, .blink .go .ic { width: 18px; height: 18px; }
.blink { display: flex; align-items: center; gap: 4px; }
.blink .go { margin-inline-start: auto; color: var(--muted); }
.promo .go { display: grid; place-items: center; }

/* halacha marks: a light (ghost) check before each halacha */
.hal { position: relative; }
.hcheck { width: 1.25em; height: 1.25em; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--muted) 55%, transparent); background: transparent;
  display: inline-grid; place-items: center; padding: 0; margin-inline-start: .25em; vertical-align: -.2em; opacity: .55; transition: opacity .15s, background .15s; }
.hcheck svg { width: 70%; height: 70%; fill: none; stroke: var(--muted); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hcheck:hover, .hcheck:focus-visible { opacity: 1; }
.hcheck.on { opacity: 1; background: var(--green); border: 1.5px solid var(--green); }
.hcheck.on svg { stroke: #fff; }
.hal.hdone { color: color-mix(in srgb, var(--ink) 62%, transparent); }
/* Rambam: a halacha in its short paragraphs (the first one follows the number) and a section's intro */
.hal .hp + .hp { display: block; margin-top: .4em; }
.rintro { font-size: .9em; color: var(--muted); margin-bottom: .9em; }
.rintro p:first-child { color: var(--ink); text-align: center; }

/* install banner */
.install { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid color-mix(in srgb, var(--gold) 55%, var(--line)); border-radius: var(--r); padding: 12px; margin-bottom: 12px; box-shadow: var(--shadow); }
.install img { border-radius: 12px; flex: none; }
.install > div:nth-of-type(1) { flex: 1; }
.install b { display: block; }
.install small { color: var(--muted); font-size: 13px; }
.ibtns { display: flex; flex-direction: column; gap: 6px; }
.install.manual { display: grid; gap: 10px; }
.ihead { display: flex; align-items: center; gap: 12px; }
.install.manual > .btn { justify-self: end; }
.isteps { display: grid; gap: 8px; margin: 0; padding-inline-start: 22px; list-style: decimal; font-size: 15px; }
.isteps svg { width: 20px; height: 20px; vertical-align: -4px; margin-inline-start: 6px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.isteps svg circle { fill: var(--gold); stroke: none; }
.isteps small { display: block; color: var(--muted); font-size: 13px; }

/* onboarding language switch */
.onb-lang { position: relative; z-index: 1; max-width: 220px; margin: 0 auto 18px; }
.onb-lang .seg { background: rgba(255, 255, 255, .12); }
.onb-lang .seg button { color: #fff; }
.onb-lang .seg button.on { background: #fff; color: #16304f; }

/* calendar in Hebrew dates */
.months { display: block; font-size: 13px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.cell { font-size: 11px; }

.tab span { display: block; }

/* walk mode: one paragraph at a time, big text, big buttons */
.icon.on { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .icon.on { color: #0f141b; } }
:root[data-theme=dark] .icon.on { color: #0f141b; }
.reader.walk .text { font-size: calc(var(--fs, 21px) + 5px); line-height: 1.9; font-weight: 500; }
.reader.walk .text p { opacity: .28; transition: opacity .2s; border-radius: 10px; }
.reader.walk .text p.cur { opacity: 1; background: color-mix(in srgb, var(--gold) 13%, transparent); box-shadow: 0 0 0 .35em color-mix(in srgb, var(--gold) 13%, transparent); }
.reader.walk .rashi { background: transparent; }
/* room above and below the lit paragraph: spacers inside the scroll, not padding, so the text area can still shrink and the bottom bar stays on screen */
.reader.walk .rbody { cursor: pointer; }
.reader.walk .rbody::before, .reader.walk .rbody::after { content: ""; display: block; }
.reader.walk .rbody::before { height: 30vh; }
.reader.walk .rbody::after { height: 45vh; }
.walkbar { display: flex; gap: 8px; margin: 0 auto 8px; max-width: 640px; }
.walkbar[hidden] { display: none; }
.wb { flex: 1; height: 56px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); color: var(--navy); display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 17px; }
.wb .ic { width: 28px; height: 28px; }
.wb.speak { flex: 1.6; }
.wb.speak.on { background: var(--gold); border-color: var(--gold); color: #fff; }

/* personal Tehillim */
.card.setup { border-style: dashed; }
.card.setup .go { color: var(--muted); display: grid; place-items: center; }
.pname { flex: 1; min-width: 0; }
.pname b { display: block; }
.pname small { color: var(--muted); font-size: 13px; }
.pch { font-weight: 800; color: var(--navy); white-space: nowrap; }
.pform { display: grid; gap: 12px; background: var(--bg); border-radius: 14px; padding: 12px; }
.fl { display: grid; gap: 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.pform input, .pform select { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; min-height: 44px; }
.hsel { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.hsel select { flex: 1; min-width: 0; }
/* day narrow, month wide enough for its full name; the year wraps to its own line when the row is too narrow */
.hsel #pd { flex: 0 0 5.5em; }
.hsel #pm { flex: 1 1 8.5em; }
.hsel #py { flex: 1 1 9.5em; }
.civil summary { cursor: pointer; color: var(--navy2); font-size: 14px; }
.civil .hsel { margin-top: 8px; }
.pmode { margin-bottom: 8px; }
.pmode button { padding: 7px 4px; font-size: 13.5px; }
.agefl { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; font-weight: 500; color: var(--ink); }
.agefl input { width: 4.5em; text-align: center; }
.presult { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--navy); font-weight: 600; font-size: 15px; }
.presult:empty { display: none; }
.chk { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.chk input { min-height: 0; width: 18px; height: 18px; }
.ropts span { font-weight: 600; }
.comm .rl { color: var(--navy2); }

/* share */
.summary .share { flex: none; }
.icon.light { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); color: #fff; }
.btn.wa { background: #25d366; border-color: #25d366; color: #fff; }
.btn.wa .ic { width: 20px; height: 20px; }
#voice .hsel { margin-bottom: 8px; }
#voice select { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; min-height: 44px; }
#voice #vsel { flex: 1 1 100%; }
#voice #vrate { flex: 1; }
.daybar .date .btn { margin-top: 8px; }

#daystart .seg button { font-size: 14px; padding: 9px 4px; }
.locrow { margin: 10px 0 6px; }
.locrow select { flex: 1; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; min-height: 44px; }

/* new version bar */
.update { position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--bg); padding: 8px 8px 8px 16px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.25); white-space: nowrap; }
[dir=rtl] .update { padding: 8px 16px 8px 8px; }
.update .btn.primary { background: var(--gold); border-color: var(--gold); color: #1c2430; }

/* halacha: check at the end, long press to mark, flash on the next one */
.text .hal { scroll-margin-top: 14px; }
@media (pointer: coarse) { .text .hal { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; } }
.hcheck { width: 1.45em; height: 1.45em; }
@keyframes halflash { from { background: color-mix(in srgb, var(--gold) 28%, transparent); } to { background: transparent; } }
.text .hal.flash { animation: halflash 1.4s ease-out; border-radius: 8px; }

/* reading progress */
.rprog { height: 4px; background: var(--line); flex: none; }
.rprog i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .25s; }
[dir=rtl] .rprog i { margin-inline-start: 0; }
.rprog.full i { background: var(--green); }

/* reader header: five buttons, keep room for the title */
.rhead { gap: 4px; }
.rhead .icon { min-width: 38px; height: 38px; padding: 0 6px; font-size: 14px; border-radius: 11px; }
.rhead .icon .ic { width: 20px; height: 20px; }
.rtitle h2 { font-size: 16px; }

/* Google sign-in */
.btn.signin { gap: 10px; }
.gic { width: 20px; height: 20px; flex: none; }
.onb-signin { margin-top: 16px; position: relative; z-index: 1; font-size: 14px; padding: 8px 14px; }
.onb-signin .gic { background: #fff; border-radius: 50%; padding: 2px; width: 22px; height: 22px; }

:root[data-theme=light] { color-scheme: light; }
:root[data-theme=dark] { color-scheme: dark; }



/* settings */
.sec { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .02em; margin: 22px 6px 8px; }
.title + .sec { margin-top: 4px; }
.rl { margin: 0 0 12px; font-size: 17px; font-weight: 800; color: var(--navy); }
.row .rl { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.panel.rows { padding: 4px 16px; }
.panel.rows > .row, .panel.rows > .lrow { padding: 14px 0; border-top: 1px solid var(--line); }
.panel.rows > :first-child { border-top: 0; }
.row .muted { margin: 8px 0 0; font-size: 14px; }
.row .btns { margin: 0; }
.btns.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn .plus, .chip .plus { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 4px; border: 1px dashed color-mix(in srgb, var(--gold) 70%, transparent); background: transparent; color: var(--gold-ink);
  border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; }
.lrow { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 0; text-align: start; color: inherit; text-decoration: none; font: inherit; cursor: pointer; }
.lrow .lt { flex: 1; display: grid; }
.lrow .lt b { font-size: 15px; color: var(--navy); }
.lrow .lt small { font-size: 13px; color: var(--muted); }
.lrow .go { color: var(--muted); display: grid; place-items: center; }
.lrow .cnt { min-width: 26px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--navy); font-size: 13px; font-weight: 700; text-align: center; }
.lrow .go .ic { width: 18px; height: 18px; }
.lic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.lic.wa { background: #25d366; color: #fff; }
.lic .ic { width: 20px; height: 20px; }
.panel .pick { gap: 0; }
.panel .pickrow { background: none; border: 0; border-radius: 0; padding: 10px 2px; border-top: 1px solid var(--line); }
.panel .pickrow:first-child { border-top: 0; padding-top: 4px; }
.panel .pickrow:last-child { padding-bottom: 2px; }
.panel .pickrow:has(input:checked) { border-color: var(--line); }
.panel .pickrow:has(input:focus-visible) { outline-offset: -2px; border-radius: 10px; }
.panel .pickrow .tile { width: 40px; height: 40px; border-radius: 12px; font-size: 11px; }

/* dedication: one serif face, like the dedication page of a sefer */
.dedic { display: grid; justify-items: center; gap: 4px; text-align: center; margin: 30px auto 8px; padding: 18px 8px; max-width: 380px; font-family: var(--serif); color: var(--ink);
  border-top: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); }
.dedic small, .dedic .z, .dedic .orn { font-size: 17px; font-weight: 400; color: var(--muted); }
.dedic b { font-size: 26px; font-weight: 700; line-height: 1.3; color: var(--navy); }
.dedic .f { font-size: 19px; }
.dedic .orn { margin-top: 6px; }
.hero .dedic, .splash .dedic { color: rgba(255, 255, 255, .92); border-color: rgba(217, 180, 93, .5); margin: 18px auto 4px; position: relative; z-index: 1; }
.hero .dedic b, .splash .dedic b { color: #fff; }
.hero .dedic small, .hero .dedic .z, .hero .dedic .orn, .splash .dedic small, .splash .dedic .z, .splash .dedic .orn { color: rgba(255, 255, 255, .78); }
.splash .dedic { gap: 8px; padding: 26px 6px; }
.splash .dedic small, .splash .dedic .z, .splash .dedic .orn { font-size: clamp(19px, 6vw, 23px); }
.splash .dedic b { font-size: clamp(32px, 10.5vw, 44px); }
.splash .dedic .f { font-size: clamp(20px, 6.2vw, 27px); }

/* launch screen */
.splash { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 44px;
  padding: calc(24px + env(safe-area-inset-top)) 28px calc(24px + env(safe-area-inset-bottom)); color: #fff; background: radial-gradient(90% 60% at 90% 0%, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, 0) 60%), linear-gradient(170deg, #3a7fcb 0%, #2560a6 50%, #1c4b87 100%); transition: opacity .5s ease; }
.splash .sbrand { display: grid; justify-items: center; gap: 14px; }
.splash img { border-radius: 22px; }
.splash .sname { font-family: var(--serif); font-size: 34px; font-weight: 700; opacity: .95; }
.splash .dedic { width: min(100%, 460px); margin: 0; }
.splash.out { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .splash { transition: none; } }
:root[data-theme=dark] .seg button.on { background: #263240; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .seg button.on { background: #263240; } }

/* share a passage */
.text .vn, .text .hn { cursor: pointer; padding: 2px 3px; border-radius: 6px; }
.text .vn:hover, .text .hn:hover { background: color-mix(in srgb, var(--gold) 18%, transparent); }
.text .shared { background: color-mix(in srgb, var(--gold) 16%, transparent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 16%, transparent); border-radius: 6px; transition: background 2s, box-shadow 2s; }
/* a shared selection: lit for a moment when the link opens, then fades */
.text mark.shl { background: transparent; color: inherit; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background .25s; }
.text mark.shl.on { background: color-mix(in srgb, var(--gold) 30%, transparent); animation: shl 2.4s ease-out forwards; }
@keyframes shl { 0%, 55% { background: color-mix(in srgb, var(--gold) 30%, transparent); } 100% { background: transparent; } }
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(10, 18, 30, .45); display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-card { width: min(100%, 560px); background: var(--card); color: var(--ink); border-radius: 22px 22px 0 0; padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(0, 0, 0, .2); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sheet-head h2 { margin: 0; font-size: 17px; color: var(--navy); }
.sheet-head .icon { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; padding: 0; }
.sheet-head .icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.sheet blockquote { margin: 0; padding: 14px 16px; font-family: var(--serif); font-size: 19px; line-height: 1.7; background: var(--bg); border: 0; border-radius: 14px;
  max-height: 34vh; overflow: auto; }
.sheet-src { margin: 10px 2px 14px; font-size: 13px; color: var(--muted); }
.sheet-btns { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.selshare { position: fixed; z-index: 55; border: 0; border-radius: 999px; padding: 9px 18px; font-weight: 700; font-size: 15px; background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.selshare[hidden] { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .selshare { color: #0f141b; } }
:root[data-theme=dark] .selshare { color: #0f141b; }

.pmove { display: grid; gap: 2px; flex: none; }
.pmove .icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.people .pname { flex: 1; min-width: 0; }
.pdel { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--red); display: grid; place-items: center; }
.pacts { flex: none; display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.pact { width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); display: grid; place-items: center; padding: 0; cursor: pointer; }
.pact:hover:not(:disabled) { background: var(--card); color: var(--navy); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.pact:disabled { opacity: .3; cursor: default; }
.pact svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pact.pdel:hover { color: var(--red); }
.pact.pdel[data-armed] { width: auto; padding: 0 10px; color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); font-size: 13px; font-weight: 700; white-space: nowrap; }
.people li.pedit { display: block; }
.pdel:hover { background: color-mix(in srgb, var(--red) 10%, transparent); }
.pdel svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.btns.two .btn { white-space: nowrap; padding-inline: 10px; }
.pdel[data-armed] { width: auto; border-radius: 999px; padding: 0 12px; font-size: 13px; font-weight: 700; background: color-mix(in srgb, var(--red) 12%, transparent); white-space: nowrap; }

.summary { position: relative; }
.hshare { margin-inline-start: auto; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; }
.hshare svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sheet blockquote.list { white-space: pre-line; font-family: var(--sans); font-size: 16px; line-height: 1.8; }
.text .rashi .rl { cursor: pointer; display: inline-block; padding: 1px 6px; margin-inline-start: -6px; border-radius: 6px; }
.text .rashi .rl:hover { background: color-mix(in srgb, var(--gold) 18%, transparent); }
.sheet blockquote { white-space: pre-line; }
.rhead [data-r=share] svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* only the text itself is selectable in the reader */
#reader button, #reader label, .rhead, .ropts, .rfoot, .rprog, .rpart > h3, .text .vn, .text .hn, .text .rl, .text .pm, .text h4, .selshare, .sheet-head, .sheet-btns {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.sheet-btns .btn { height: 48px; padding: 0 10px; gap: 7px; white-space: nowrap; font-size: 15px; }
.sheet-btns .btn svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sheet .sheet-btns .btn .ic, .sheet .sheet-btns .btn svg { width: 19px; height: 19px; stroke-width: 1.8; margin: 0; }

/* personal Tehillim list */
.people { list-style: none; margin: 0 0 14px; padding: 0; display: grid; }
.people li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.people li:first-child { border-top: 0; padding-top: 2px; }
.pbadge { flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-content: center; text-align: center; line-height: 1.05; color: #fff;
  background: linear-gradient(160deg, #3a97b2, #22708a); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.pbadge small { font-size: 10.5px; font-weight: 600; opacity: .85; }
.pbadge b { font-family: var(--serif); font-size: 20px; font-weight: 700; }
.people .pname b { font-size: 16px; color: var(--ink); }
.people .pname small { display: block; margin-top: 1px; }
.pmove .icon { width: 28px; height: 22px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); display: grid; place-items: center; padding: 0; }
.pmove .icon:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--navy); }
.pmove .icon:disabled { opacity: .25; }

/* form fields in settings: one style for every dropdown and input */
.panel select, .panel input:not([type=checkbox]):not([type=radio]):not([type=file]) {
  -webkit-appearance: none; appearance: none; font: inherit; font-size: 15px; color: var(--ink); background-color: var(--card);
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); border-radius: 12px; min-height: 44px; padding: 9px 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.panel select { padding-inline-end: 36px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; background-position: left 14px center, left 20px center; }
[dir=ltr] .panel select { background-position: right 20px center, right 14px center; }
.panel select:hover, .panel input:hover { border-color: color-mix(in srgb, var(--ink) 28%, transparent); }
.panel select:focus-visible, .panel input:focus-visible { border-color: var(--navy2); outline: 3px solid color-mix(in srgb, var(--navy2) 25%, transparent); outline-offset: 0; }
.pform { background: color-mix(in srgb, var(--navy2) 5%, var(--card)); border: 1px solid var(--line); }
.pform .fl { font-size: 14px; font-weight: 600; color: var(--navy); }
.locrow .btn { min-height: 44px; }

/* About: the dedication inside a card */
.panel.dedic-card { padding: 22px 16px; }
.panel.dedic-card .dedic { margin: 0 auto; padding: 0; border: 0; }
/* every tab opens with the same blue header; on the inner tabs it holds just the title */
.page-hero { padding-bottom: 22px; }
.page-hero h1 { margin: 10px 4px 0; font-size: 26px; font-weight: 800; color: #fff; text-align: start; }
.page-hero + .sec { margin-top: 6px; }
.splash img { box-shadow: 0 8px 24px rgba(10, 30, 60, .25); }
.splash .dedic { border-color: rgba(255, 255, 255, .35); }

/* design pass: blue accent everywhere, quiet lines, one type scale */
.hero .ring::before { background: conic-gradient(#f3c96b calc(var(--p) * 360deg), rgba(255, 255, 255, .25) 0); }
.hero .ring.full::before { background: conic-gradient(#7ee2b8 360deg, transparent 0); }
.update .btn.primary { color: #fff; }
.dedic { border-top-color: color-mix(in srgb, var(--ink) 16%, transparent); border-bottom-color: color-mix(in srgb, var(--ink) 16%, transparent); }
.hero .dedic, .splash .dedic { border-color: rgba(255, 255, 255, .35); }
.people .pname b { font-size: 16px; font-weight: 600; }
#people .pform { margin-top: 12px; }
#people .chips { margin-top: 14px; }
.cards .card .h3 { font-weight: 700; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) { color-scheme: dark; } }
input[type=checkbox], input[type=radio] { accent-color: var(--gold); }
/* expandable rows (male voice help, civil date): our own chevron instead of the browser triangle */
details.civil > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--navy2); font-weight: 600; font-size: 14px; padding: 4px 0; }
details.civil > summary::-webkit-details-marker { display: none; }
details.civil > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
details.civil[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
#main > .panel { margin-bottom: 16px; }
.lic .waic { width: 22px; height: 22px; }

/* dedication: no rules; compact at the bottom of Today */
.dedic, .hero .dedic, .splash .dedic, .panel.dedic-card .dedic { border: 0; }
.dedic { padding: 6px 8px; }
.dedic-mini .dedic { margin: 22px auto 4px; padding: 0; gap: 1px; }
.dedic-mini .dedic small { font-size: 13px; }
.dedic-mini .dedic b { font-size: 17px; }
.dedic-mini .dedic .f { font-size: 14px; color: var(--muted); }
.pbadge b { font-size: 22px; }

/* 3.5: no-Tachanun note, Tehillim chapter picker, after-Shabbat prompt, confetti */
.daynote { position: relative; z-index: 1; margin: 10px auto 0; width: max-content; max-width: 100%; text-align: center; font-size: 13.5px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .95); }
.pickch { margin: 10px 0 14px; }
.lic.ps { background: color-mix(in srgb, #2f8a72 14%, var(--card)); color: #2f8a72; }
.lic.ps .ic { stroke-width: 2; }
.lic.tn { background: color-mix(in srgb, #8a4f92 14%, var(--card)); color: #8a4f92; }
.lic.tn .ic { stroke-width: 2; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.linkbtn .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.linkbtn .ic { width: 18px; height: 18px; stroke-width: 2; }
.linkbtn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 2px 0; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer; }
.picker { display: flex; flex-direction: column; max-height: 86vh; }
.chfind { display: flex; gap: 8px; margin: 2px 0 10px; }
.chfind input { flex: 1; min-width: 0; height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font: inherit; font-size: 17px; background: var(--bg); color: var(--ink); }
.chfind .btn { flex: none; min-width: 84px; }
.chlegend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); margin: 0 2px 6px; }
.chlegend:empty { display: none; }
.chlegend span { display: inline-flex; align-items: center; gap: 6px; }
.chlegend i { width: 12px; height: 12px; border-radius: 4px; border: 2px solid; }
.chlegend i.today, .chgrid button.today { border-color: #2f8a72; }
.chlegend i.last, .chgrid button.last { border-color: var(--gold); border-style: dashed; }
.chgrid button.today { background: color-mix(in srgb, #2f8a72 10%, var(--bg)); }
.chbooks { overflow-y: auto; min-height: 0; padding: 0 2px 4px; }
.chbook { margin: 12px 0 6px; font-size: 14px; color: var(--navy); display: flex; align-items: baseline; gap: 8px; }
.chbook:first-child { margin-top: 2px; }
.chbook small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.chgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; }
.chgrid button { height: 42px; border: 2px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-family: var(--serif); font-size: 16px; cursor: pointer; }
.chgrid button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-theme=dark] .chgrid button.on { color: #0f141b; }
.restlist { max-height: 52vh; overflow-y: auto; margin: 4px 0 14px; }
.restlist .pickrow { background: var(--bg); }
.restlist + .sheet-btns .btn { flex: 1; }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 90; }
/* שניים מקרא ואחד תרגום: the verse, the verse again, then Targum Onkelos */
.shnayim .chap { text-align: center; }
.smv { margin-bottom: .9em; padding-bottom: .5em; border-bottom: 1px solid var(--line); }
.smv .again { color: color-mix(in srgb, var(--ink) 82%, var(--bg)); }
.smv .targum { font-size: .9em; color: var(--navy2); padding-inline-start: .6em; border-inline-start: 3px solid var(--accent-soft); }

/* wide screens: side menu with the day's studies, the picked study in the middle */
.side-only { display: none; }
@media (min-width: 1100px) {
  :root { --side: 300px; }
  body.withnav { padding-bottom: 32px; padding-inline-start: var(--side); }
  body.withnav { overflow-x: clip; }
  body.withnav main { max-width: 760px; padding: 0 28px; }
  /* the blue header spans the whole area next to the menu; its content stays in the middle column */
  body.withnav .hero { margin: 0 calc(50% - (100vw - var(--side)) / 2) 18px; border-radius: 0 0 32px 32px; padding: 22px 28px 26px; }
  body.withnav .hero > * { max-width: 704px; margin-inline: auto; }
  body.withnav .hero > .daynote { margin-top: 10px; }
  .nav { inset: 0 auto 0 auto; inset-inline-start: 0; width: var(--side); flex-direction: column; justify-content: flex-start; gap: 2px; overflow-y: auto;
    background: var(--card); backdrop-filter: none; border-top: 0; border-inline-end: 1px solid var(--line); padding: 18px 14px 24px; }
  .side-only { display: block; }
  .nav .tab.side-only { display: flex; }
  .side-brand { display: flex; align-items: center; gap: 10px; padding: 2px 10px 16px; text-decoration: none; color: var(--navy); font-family: var(--serif); font-size: 23px; font-weight: 700; }
  .side-brand img { border-radius: 10px; }
  .nav .tab { flex: none; max-width: none; flex-direction: row; justify-content: flex-start; gap: 12px; font-size: 15px; padding: 9px 12px; border-radius: 12px; text-decoration: none; }
  .nav .tab span { display: inline; }
  .nav .tab svg { width: 22px; height: 22px; }
  .nav .tab:hover { background: var(--bg); color: var(--ink); }
  .nav .tab.on:hover { background: color-mix(in srgb, var(--navy2) 10%, transparent); color: var(--navy); }
  .sidelist { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
  .sidelist h2 { font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 10px 8px; }
  .sidelist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
  .sitem { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 7px 8px; border-radius: 14px; text-align: start; color: var(--ink); font: inherit; cursor: pointer; }
  .sitem:hover { background: var(--bg); }
  .sitem.on { background: color-mix(in srgb, var(--navy2) 13%, transparent); }
  .sitem .tile { width: 36px; height: 36px; border-radius: 11px; font-size: 11px; }
  .sitem .info .h3 { font-size: 12px; }
  .sitem .portion { font-size: 15px; line-height: 1.3; }
  .sitem .check.sm { pointer-events: none; }
  .sitem.free { margin-top: 6px; }
  .sitem.free .lic { width: 36px; height: 36px; flex: none; }
  body.withnav .reader { inset-inline-start: var(--side); border-inline-start: 0; }
  .rbody { padding-inline: 32px; }
  .toast { bottom: 28px; }
  /* sheets (share, chapter picker, after-Shabbat) become a dialog in the middle of the content area */
  body.withnav .sheet { align-items: center; padding: 32px; padding-inline-start: calc(var(--side) + 32px); }
  body.withnav .sheet-card { border-radius: 22px; padding-bottom: 20px; box-shadow: 0 18px 50px rgba(0, 0, 0, .28); max-height: calc(100dvh - 64px); overflow-y: auto; }
  body.withnav .sheet-card.picker { width: min(100%, 640px); height: min(760px, calc(100dvh - 64px)); overflow: hidden; }
  body.withnav .chgrid { grid-template-columns: repeat(10, 1fr); }
}
.btn.totoday { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 16px 6px 14px; font-size: 14px; font-weight: 700; background: #fff; color: #1c4b87; border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.btn.totoday .ic { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* personal Tehillim rows: a drag grip and bigger edit / remove buttons */
.people li { position: relative; background: var(--card); }
.people li.dragging { z-index: 2; border-radius: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); transition: none; }
.people li:not(.dragging) { transition: transform .15s; }
.pgrip { flex: none; width: 30px; height: 48px; margin-inline-end: -6px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); display: grid; place-items: center; padding: 0; cursor: grab; touch-action: none; }
.pgrip:hover { color: var(--navy); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.dragging .pgrip { cursor: grabbing; }
.pgrip svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.pacts { gap: 4px; padding: 4px; border-radius: 14px; }
.pact { width: 44px; height: 44px; border-radius: 11px; }
.pact svg { width: 21px; height: 21px; }
.pact.pdel[data-armed] { font-size: 14px; }

/* Help screen (help.html is the app with the guide inside <main>) */
.helpdoc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px 20px 22px; margin-bottom: 16px; }
.helpdoc h2 { color: var(--navy); font-size: 19px; margin: 26px 0 8px; scroll-margin-top: 16px; }
.helpdoc p, .helpdoc li { font-size: 16px; }
.helpdoc ul { padding-inline-start: 22px; }
.helpdoc a { color: var(--navy2); }
.helpdoc .toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 6px; }
.helpdoc .toc a { font-size: 14px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); text-decoration: none; }
.helpdoc .shot { display: inline-block; vertical-align: top; width: min(240px, calc(50% - 10px)); margin: 8px 0 14px; margin-inline-end: 8px; }
.helpdoc .shot.wide { display: block; width: 100%; margin-inline-end: 0; }
.helpdoc .shot img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); }
.helpdoc .shot.wide img { border-radius: 12px; }
.helpdoc .shot figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 6px; }
.helpdoc .hstart { display: flex; justify-content: center; margin-top: 22px; }
.helpdoc .hcontact { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 4px; }
.helpdoc .hcontact .btn { min-width: 140px; }
.helpdoc .hcontact .btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.helpdoc a.btn { color: var(--navy); }
.helpdoc a.btn.wa { color: #fff; }

/* Tehillim screen */
.wkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.wkday { display: grid; gap: 2px; padding: 10px 6px; border: 2px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink); text-align: center; }
.wkday b { font-size: 15px; color: var(--navy); }
.wkday small { font-size: 13px; color: var(--muted); font-family: var(--serif); }
.wkday.today { border-color: color-mix(in srgb, #2f8a72 55%, transparent); background: color-mix(in srgb, #2f8a72 10%, var(--bg)); }
.btn.allch { width: 100%; }
.btn.allch svg, .sheet-btns svg.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#yzform .seg { max-width: 220px; }
.yzhead { display: grid; justify-items: center; gap: 2px; text-align: center; padding: 18px 0 8px; font-family: var(--serif); color: var(--navy); }
.yzhead small { font-size: calc(var(--fs, 21px) - 3px); color: var(--muted); }
.yzhead b { font-size: calc(var(--fs, 21px) + 8px); }
.langsel { font: inherit; font-size: 15px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; min-height: 44px; min-width: 160px; }

/* Printing (Tehillim for a yahrzeit): only the open reading, as plain pages */
@media print {
  body { padding: 0 !important; background: #fff; }
  body > :not(#reader) { display: none !important; }
  .reader { position: static; display: block; background: #fff; color: #000; }
  .rhead, .ropts, .rprog, .rfoot, .pdone, .hcheck { display: none !important; }
  .rbody { overflow: visible; height: auto; padding: 0; }
  .rpart > h3 { break-after: avoid; color: #000; }
  .text { font-size: 15pt; line-height: 1.65; text-align: justify; }
  .text p.pv { display: inline; margin: 0; }
  .text p.pv::after { content: ' '; }
  .rpart { margin: 0 0 10pt; }
  .rpart > h3 { font-size: 17pt; font-weight: 800; margin: 12pt 0 4pt; letter-spacing: 0; text-transform: none; }
  .yzhead { gap: 4pt; padding-bottom: 10pt; }
  .yzhead small { font-size: 16pt; }
  .yzhead b { font-size: 30pt; }
  .yzhead { color: #000; padding-top: 0; }
}

/* share sheet of a yahrzeit Tehillim: the names as a small title page, print on its own row, then the rest */
.sheet blockquote.yzq { text-align: center; font-size: 20px; line-height: 1.6; padding: 16px; }
.sheet blockquote + .sheet-btns { margin-top: 14px; }
.sheet-btns.many { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
.sheet-btns.many .btn.primary { grid-column: 1 / -1; }
.sheet-btns.many .btn { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* printed yahrzeit Tehillim: logo and link at the end, only on paper */
.yzfoot { display: none; }

@media print {
  .yzfoot { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18pt; padding-top: 10pt; border-top: 1px solid #ccc; font-family: var(--sans); font-size: 11pt; color: #333; break-inside: avoid; }
  .yzfoot img { width: 22pt; height: 22pt; border-radius: 6pt; }
  .yzfoot a { color: #333; text-decoration: none; }
  /* walk mode, a lit paragraph and a shared highlight are screen things */
  .reader.walk .rbody { padding: 0 !important; }
  .reader.walk .rbody::before, .reader.walk .rbody::after { display: none; }
  .reader.walk .text { font-size: 15pt; line-height: 1.65; font-weight: 400; }
  .reader .text p, .reader.walk .text p, .reader.walk .text p.cur { opacity: 1 !important; background: none !important; box-shadow: none !important; }
  .text .shared, .text mark.shl { background: none !important; box-shadow: none !important; }
}

/* landscape phones: less height, so smaller bars and headings */
@media (orientation: landscape) and (max-height: 520px) {
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  main { max-width: 760px; padding-inline: max(14px, env(safe-area-inset-left), env(safe-area-inset-right)); }
  .nav { padding: 3px max(8px, env(safe-area-inset-left)) calc(3px + env(safe-area-inset-bottom)); }
  .tab { flex-direction: row; justify-content: center; gap: 6px; font-size: 13px; padding: 7px 4px; }
  .tab svg { width: 20px; height: 20px; }
  .hero { padding-top: calc(8px + env(safe-area-inset-top)); padding-bottom: 12px; }
  .summary { margin-top: 8px; padding-top: 8px; }
  .page-hero { padding-bottom: 12px; }
  .page-hero h1 { margin-top: 4px; font-size: 22px; }
  .rhead { padding: 4px max(10px, env(safe-area-inset-left)) 4px max(10px, env(safe-area-inset-right)); }
  .rbody { padding-inline: max(18px, env(safe-area-inset-left), env(safe-area-inset-right)); }
  .rfoot .btn.wide { padding: 8px; font-size: 15px; }
  .reader.walk .rbody::before { height: 18vh; }
  .reader.walk .rbody::after { height: 40vh; }
  .reader.walk .rfoot { display: flex; gap: 8px; align-items: center; padding-top: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
  .reader.walk .walkbar { flex: 2; margin: 0; max-width: none; }
  .reader.walk .wb { height: 44px; }
  .reader.walk .rfoot .btn.wide { flex: 1; width: auto; margin: 0; height: 44px; padding: 0 10px; }
  .sheet-card { max-height: calc(100dvh - 12px); overflow-y: auto; }
  .sheet blockquote { max-height: 26vh; }
  .splash { flex-direction: row; gap: 6vw; padding: 12px 24px; }
  .splash .sname { font-size: 26px; }
  .splash img { width: 72px; height: 72px; }
  .splash .dedic { padding: 10px 6px; gap: 4px; }
  .splash .dedic small, .splash .dedic .z, .splash .dedic .orn { font-size: clamp(16px, 5vh, 21px); }
  .splash .dedic b { font-size: clamp(26px, 9vh, 38px); }
  .splash .dedic .f { font-size: clamp(17px, 5.5vh, 23px); }
}

/* ---- siddur ---- */
.lic.sd { background: color-mix(in srgb, #8a6d2f 14%, var(--card)); color: #8a6d2f; }
.lic.sd .ic { stroke-width: 2; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.lrow.now .lt b { color: var(--navy); }
.nowtag { font-style: normal; font-size: 11.5px; font-weight: 700; background: var(--navy); color: #fff; border-radius: 999px; padding: 1px 8px; margin-inline-start: 6px; vertical-align: 2px; }
.sidnote { padding: 0 20px 24px; }
.text.siddur p { margin: 0 0 .75em; line-height: 1.85; text-align: justify; text-align-last: start; }
/* like a printed siddur: the opening word in bold, the Shema verse large and centered, short responses centered */
.text.siddur .ow { font-weight: 800; font-size: 1.12em; }
.text.siddur p.short, .text.siddur p.shema, .text.siddur p.bsk { text-align: center; text-align-last: center; }
.text.siddur p.shema { font-size: 1.3em; font-weight: 700; margin: .5em 0 .2em; }
.text.siddur p.shema .ow { font-size: 1em; }
.text.siddur p.bsk { font-size: .82em; }
.text.siddur p.bsk .ow { font-weight: inherit; font-size: 1em; }
.reader.sid .rpart > h3 { font-family: var(--serif); font-size: 21px; text-align: center; color: var(--gold-ink); display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; }
.reader.sid .rpart > h3::before, .reader.sid .rpart > h3::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to left, transparent, color-mix(in srgb, var(--gold) 70%, transparent)); }
.reader.sid .rpart > h3::after { transform: scaleX(-1); }
.reader.sid .rpart + .rpart { border-top: 0; }
.text small.ins, .text p.ins { font-family: system-ui, sans-serif; font-size: .68em; font-weight: 600; color: var(--muted); line-height: 1.5; }
.text p.ins { margin: 1em 0 .35em; }
.text .var { display: inline; border-radius: 6px; background: color-mix(in srgb, var(--gold) 12%, transparent); padding: 0 .15em; }
.sidopts { flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.sidopts .seg { min-width: 220px; }
.seg.sm button { padding: 5px 6px; font-size: 13px; }
.sidopts .linkbtn.on { color: var(--navy); font-weight: 700; }
.sidopts > .muted { font-weight: 500; }
.sidpick { max-height: 55vh; overflow: auto; }
.sidpick .lrow { padding: 10px 2px; border-top: 1px solid var(--line); }
.sidpick input { width: 20px; height: 20px; accent-color: var(--navy); flex: none; }
.seg.sm button { display: grid; gap: 1px; line-height: 1.2; }
.seg.sm button small { font-size: 11px; font-weight: 500; opacity: .8; }
.page-hero .muted { color: rgba(255, 255, 255, .82); margin: 6px 0 0; font-size: 14px; }

/* ---- Track: one card per month, round day marks ---- */
.tcal .mname { font-size: 17px; margin: 0 2px 12px; }
.tcal .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px 4px; max-width: 360px; margin-inline: auto; }
.tcal .wd { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); padding-bottom: 2px; }
.tcal .cell { aspect-ratio: 1; inline-size: min(100%, 42px); justify-self: center; border-radius: 50%; border: 0; font-size: 13px; font-weight: 600; background: transparent; color: var(--ink); cursor: pointer; }
.tcal .cell.pad, .tcal .cell.fut { cursor: default; }
.tcal .cell.fut { color: var(--muted); opacity: .4; }
.tcal .cell.none { color: var(--muted); opacity: .55; border: 0; cursor: default; }
.tcal .cell.l0 { background: transparent; border: 0; color: var(--muted); }
.tcal .cell.l2 { background: transparent; box-shadow: inset 0 0 0 2.5px var(--navy); color: var(--navy); }
.tcal .cell.l3 { background: var(--navy); color: #fff; }
.tcal .cell.now { outline: 2.5px solid var(--gold); outline-offset: 2px; }
.tcal .legend { justify-content: center; margin: 16px 0 0; gap: 6px; }
.tcal .legend .cell { inline-size: 14px; block-size: 14px; aspect-ratio: auto; margin-inline-start: 12px; }
.tcal .legend .cell.l0 { box-shadow: inset 0 0 0 1.5px var(--line); }
.tstudies { display: grid; gap: 16px; }
.tstudies h2 { margin-bottom: 0; }
.srow { display: flex; align-items: center; gap: 12px; }
.srow .tile { inline-size: 36px; block-size: 36px; border-radius: 11px; font-size: 10px; flex: none; }
.sbody { flex: 1; min-width: 0; display: grid; gap: 7px; }
.stop { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.stop b { font-size: 15px; font-weight: 600; }
.stop small { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.strack { block-size: 7px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 8%, transparent); overflow: hidden; }
.strack i { display: block; block-size: 100%; border-radius: 99px; }

/* ---- Today: the date and the ring open the calendar ---- */
.datebtn { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; padding: 2px 6px; }
.datebtn .cal { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.datebtn:focus-visible, button.dring:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
button.dring { border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; background: transparent; }
.backrow { display: flex; align-items: center; gap: 10px; }
.backrow .icon.back { color: #fff; background: rgba(255, 255, 255, .14); border: 0; }
.backrow h1 { margin: 0; }

/* ---- Tehillim requests on Today: one at a time ---- */
.reqstrip { display: grid; margin-bottom: 12px; }
.reqbtn { grid-area: 1 / 1; display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; font: inherit; color: inherit; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity .4s; }
.reqbtn.on { opacity: 1; visibility: visible; }
.reqbtn .lt { flex: 1; display: grid; min-width: 0; }
.reqbtn .lt b { font-size: 15px; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reqbtn .lt small { font-size: 12.5px; color: var(--muted); }
.reqok { color: var(--green); display: grid; }
.reqok svg { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) { .reqbtn { transition: none; } }

/* dedication card (Today, About): a framed page, like the dedication in a sefer */
.panel.dedic-card { position: relative; padding: 14px; }
.panel.dedic-card::before, .panel.dedic-card::after { content: ""; position: absolute; pointer-events: none; border-radius: calc(var(--r) - 5px); }
.panel.dedic-card::before { inset: 7px; border: 1px solid color-mix(in srgb, var(--navy) 26%, transparent); }
.panel.dedic-card::after { inset: 11px; border: 1px solid color-mix(in srgb, var(--navy) 12%, transparent); border-radius: calc(var(--r) - 8px); }
.panel.dedic-card .dedic { padding: 22px 12px 20px; gap: 2px; max-width: none; }
.panel.dedic-card .dedic small { font-size: 15px; letter-spacing: .06em; color: var(--muted); }
.panel.dedic-card .dedic b { font-size: 29px; line-height: 1.25; margin-top: 4px; color: var(--navy); }
.panel.dedic-card .dedic b::after { content: ""; display: block; width: 64px; height: 1px; margin: 12px auto 8px; background: color-mix(in srgb, var(--navy) 35%, transparent); }
.panel.dedic-card .dedic .f { font-size: 18px; color: color-mix(in srgb, var(--ink) 82%, transparent); }

/* Tehillim tab: a main button on top; a short last row of days or books sits in the middle; the yahrzeit form without an inner frame */
.pstoday { display: block; margin: 0 0 12px; min-height: 54px; font-size: 17px; }
.wkgrid { display: flex; flex-wrap: wrap; justify-content: center; }
.wkgrid .wkday { flex: 0 0 calc((100% - 16px) / 3); }
#yz .pform { background: none; border: 0; padding: 0; }

/* siddur: the prayer's parts in one row; tap to go there */
.sidnav { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.sidnav::-webkit-scrollbar { display: none; }
.sidnav button { flex: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; white-space: nowrap; cursor: pointer; }
.sidnav button.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Siddur page: who is praying */
.sidwho { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.sidwho .chk { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); cursor: pointer; font-size: 15px; }
.sidwho .chk input { width: 18px; height: 18px; accent-color: var(--navy); margin: 0; }
.sidwho .chk:has(input:checked) { border-color: var(--navy); background: color-mix(in srgb, var(--navy) 7%, var(--card)); }
.text h4.aliyah { font-size: .8em; color: var(--gold-ink); margin: 1.1em 0 .3em; font-weight: 700; }

/* Today: one button to the next lesson not yet learned */
.hero .btn.continue { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 14px; padding: 12px 16px; min-height: 52px; border: 0; border-radius: 14px;
  background: #fff; color: var(--navy); text-align: start; position: relative; z-index: 1; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.hero .btn.continue span { flex: none; font-size: 13px; font-weight: 600; opacity: .7; }
.hero .btn.continue b { flex: 1; min-width: 0; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero .btn.continue svg { flex: none; width: 18px; height: 18px; }
:root[data-theme="dark"] .hero .btn.continue { background: var(--card); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero .btn.continue { background: var(--card); color: var(--ink); } }
/* moving between screens: a short fade */
#main.enter { animation: enter .22s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #main.enter { animation: none; } }
/* small buttons are still easy to tap */
.btn.tiny { min-height: 36px; }
.lrow { min-height: 56px; }

/* Siddur page: who is praying, and what each choice shows */
.seg.sidrole { margin: 0 0 12px; }
.sidnote { margin: 12px 4px 0; line-height: 1.6; }

/* Siddur page: the direction of Jerusalem */
.btn.compassbtn { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0; }
.btn.compassbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.sheet-card.compass { text-align: center; }
.compass .dial { --b: 0deg; --h: 0deg; position: relative; width: 220px; height: 220px; margin: 10px auto 14px; border-radius: 50%; border: 2px solid var(--line);
  background: radial-gradient(circle, var(--card) 62%, color-mix(in srgb, var(--navy) 6%, var(--card)) 63%); transition: border-color .2s; }
.compass .dial .n { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); font-weight: 700; color: var(--muted); font-size: 14px; }
.compass .dial.live .n { transform: translateX(-50%) rotate(0); }
.compass .needle { position: absolute; inset: 0; transform: rotate(var(--b)); transition: transform .25s ease-out; }
.compass .dial.live .needle { transform: rotate(calc(var(--b) - var(--h))); }
.compass .dial.live .n { display: none; }
.compass .needle i { position: absolute; left: 50%; top: 22px; width: 0; height: 0; transform: translateX(-50%); border: 14px solid transparent; border-bottom: 80px solid var(--navy); border-top: 0; }
.compass .needle i::after { content: ""; position: absolute; left: -5px; top: 86px; width: 10px; height: 10px; border-radius: 50%; background: var(--navy); }
.compass .dial.on { border-color: var(--green); }
.compass .dial.on .needle i { border-bottom-color: var(--green); }
.compass .cmp-info { margin: 0 0 12px; color: var(--muted); }

/* Mishnayos for a yahrzeit: the letters of נשמה, and the three choices */
.text b.nl { font-size: 1.25em; color: var(--navy); }
#mn { margin-top: 14px; }
#mn h2 { margin: 4px 0 10px; }
.mnmodes { display: grid; gap: 8px; }
.mnmode { display: grid; gap: 2px; text-align: start; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); }
.mnmode small { color: var(--muted); font-size: 13px; }
.mnmode.on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: color-mix(in srgb, var(--navy) 6%, var(--card)); }

/* an announcement from the team: one short card */
.sheet-card.ann h2 { margin: 6px 0 10px; font-size: 20px; color: var(--navy); }
.sheet-card.ann .ann-body { max-height: 50vh; overflow-y: auto; margin-bottom: 16px; font-size: 16px; line-height: 1.65; }
.sheet-card.ann .ann-body p { margin: 0 0 10px; }
.sheet-card.ann .btn + .btn { margin-top: 10px; }

/* reader on iPhone (Safari): the header, the chips, the options and the bottom bar keep their height; only the text scrolls */
.reader > .rhead, .reader > .sidnav, .reader > .ropts, .reader > .rprog, .reader > .rfoot { flex: none; }
.reader > .rbody { min-height: 0; }
.mnname { align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.mnname b { color: var(--navy); }
/* Mishnayos: the four choices, styled like the row of the prayer's parts */
.mnchips { flex: none; display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.mnchips::-webkit-scrollbar { display: none; }
.mnchips button { flex: none; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; white-space: nowrap; cursor: pointer; }
.mnchips button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
/* a list card with a title on top: the title gets the card's own padding */
.panel.rows > h3.rl:first-child, .panel.rows > h2:first-child { padding-top: 14px; margin-bottom: 2px; }

/* reader header: the tools in one group; options as pill toggles */
.rhead .rtools { display: flex; align-items: center; gap: 2px; padding: 3px; margin-inline-start: auto; border-radius: 14px; background: var(--accent-soft); flex: none; }
.rhead .rtools .icon { background: transparent; border: 0; box-shadow: none; min-width: 36px; height: 36px; border-radius: 11px; color: var(--navy); }
.rhead .rtools .icon:hover { background: var(--card); }
.rhead .rtools .icon.on { background: var(--navy); color: #fff; }
.rhead .rtools .sep { width: 1px; height: 20px; background: var(--line); margin: 0 3px; }
.rhead .rtools .fsz { font-weight: 800; font-size: 15px; gap: 1px; }
.rhead .rtools .fsz small { font-size: 13px; font-weight: 700; opacity: .75; }
.rhead .rtitle small { color: var(--sc); font-weight: 700; }
.ropts { gap: 8px; flex-wrap: wrap; align-items: center; }
.ropts label { position: relative; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; font-size: 13.5px; transition: background .15s, color .15s, border-color .15s; }
.ropts label input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.ropts label:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #fff; }
.ropts label:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 2px; }
.ropts label:has(input:checked)::before { content: "✓"; font-size: 12px; margin-inline-end: 2px; }
.ropts .linkbtn { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--navy); font-weight: 600; font-size: 13.5px; text-decoration: none; }
.ropts .linkbtn:hover { border-color: var(--navy); }

/* Today: one progress line, the finished studies in a row in their colors */
.dprog { padding: 7px; }
[dir="ltr"] .dprog { padding: 7px; }
.dprog .line { flex: 1; display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: #e6ebf3; }
.dprog .line i { height: 100%; transition: width .4s ease; }
/* the reader footer: the day before and after */
.rfoot .finrow { display: flex; align-items: center; gap: 8px; max-width: 640px; margin: 0 auto; }
.rfoot .finrow .btn { flex: 1; margin: 0; }
.rfoot .dnav { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); border: 0; color: var(--navy); }
/* a finished Tehillim request: a white check on a green circle */
.reqbtn .reqok { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.reqbtn .reqok svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ---- 3.15: undo / next in the toast, Today's count and finished line, catch-up in one row ---- */
.toast.act { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 16px; }
[dir="rtl"] .toast.act { padding: 6px 16px 6px 6px; }
.toast button { border: 0; border-radius: 999px; background: var(--bg); color: var(--ink); font: inherit; font-weight: 700; padding: 6px 14px; cursor: pointer; white-space: nowrap; }
.dprog b { flex: none; padding-inline: 6px 4px; font-size: 13px; }
.card .cont { display: block; font-size: 12.5px; font-weight: 700; color: var(--gold-ink); margin-top: 2px; }
.alldone { display: flex; align-items: center; gap: 12px; background: var(--green-bg); border: 1px solid color-mix(in srgb, var(--green) 40%, transparent); color: var(--green); border-radius: var(--r); padding: 12px 14px; margin-bottom: 12px; }
.alldone b { display: block; } .alldone small { display: block; font-size: 13px; opacity: .85; }
.alldone .check { pointer-events: none; }
.bic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: color-mix(in srgb, var(--red) 12%, var(--card)); color: var(--red); }
details.behind { margin: 0 0 12px; }
details.behind > summary { list-style: none; display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; cursor: pointer; box-shadow: var(--shadow); }
details.behind > summary::-webkit-details-marker { display: none; }
details.behind > summary .lt { flex: 1; display: grid; min-width: 0; }
details.behind > summary .lt b { color: var(--navy); }
details.behind > summary .lt small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.behind > summary .go .ic { width: 18px; height: 18px; transition: transform .2s; }
details.behind[open] > summary .go .ic { transform: rotate(90deg); }
details.behind[open] > summary { margin-bottom: 10px; }
.synccard .lt { flex: 1; display: grid; }
.synccard .lt small { color: var(--muted); font-size: 13px; }
.synccard .ibtns { display: flex; flex-direction: column; gap: 6px; }
.synccard .gic { width: 16px; height: 16px; vertical-align: -3px; margin-inline-end: 6px; background: #fff; border-radius: 50%; padding: 1px; }

/* ---- reader: where you are, the display sheet, the walk buttons with words, long texts laid out as they come into view ---- */
.rwhere { flex: none; font-size: 12.5px; font-weight: 700; color: var(--gold-ink); background: var(--card); padding: 4px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.rwhere[hidden] { display: none; }
.fsrow { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; }
.fsrow .icon { flex: none; }
.fsample { flex: 1; margin: 0; text-align: center; font-family: var(--serif); line-height: 1.5; color: var(--ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wb .wl { font-size: 15px; }
.wb.next { flex: 1.3; }

/* ---- Track: the numbers on top, each day as a ring in the studies' colors, what is missing, time and siyum ---- */
.tstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.tstats .stat b { display: block; font-size: 24px; color: var(--navy); font-variant-numeric: tabular-nums; }
.tstats .stat small { color: var(--muted); font-size: 12px; }
.tcal .cell.rg { position: relative; background: transparent; box-shadow: none; color: var(--ink); }
.tcal .cell.rg::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--rg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4.5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4.5px), #000 calc(100% - 4px)); }
.tcal .cell.rg.l3 { background: color-mix(in srgb, var(--navy) 9%, transparent); color: var(--navy); font-weight: 800; }
.tcal .cell.rg.l0 { color: var(--muted); }
.tcal .legend .cell.rg::before { -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); }
.stop .miss { margin-inline-start: auto; border: 0; border-radius: 999px; padding: 2px 10px; font: inherit; font-size: 12px; font-weight: 700; background: color-mix(in srgb, var(--red) 12%, var(--card)); color: var(--red); cursor: pointer; }
.stime { color: var(--muted); font-size: 12.5px; }

/* ---- Siddur: the prayer for now, today's changes, the short prayers as chips, times of day, the Omer ---- */
.sidnow { display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; border: 0; border-radius: var(--r); background: var(--navy); color: #fff; padding: 16px 18px; margin-bottom: 12px; font: inherit; cursor: pointer; box-shadow: var(--shadow); }
.sidnow .lt { flex: 1; display: grid; gap: 2px; }
.sidnow .lt small { font-size: 12.5px; opacity: .8; }
.sidnow .lt b { font-size: 22px; }
.sidnow .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sidnow .chips i { font-style: normal; font-size: 12.5px; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); }
.sidnow .go .ic { width: 22px; height: 22px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .sidnow { background: #24507f; } }
:root[data-theme=dark] .sidnow { background: #24507f; }
.sidmore { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.sidmore .chip { border-style: solid; border-color: var(--line); color: var(--navy); background: var(--bg); cursor: pointer; }
.panel.zman h3 { margin: 0 0 10px; } .panel.zman h3 small { font-weight: 500; color: var(--muted); }
.ztiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ztile { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; background: var(--bg); text-align: center; }
.ztile .ic { width: 22px; height: 22px; color: var(--gold-ink); stroke-width: 1.8; margin-bottom: 2px; }
.ztile small { font-size: 12px; color: var(--muted); line-height: 1.2; }
.ztile b { font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.ztile.past { opacity: .45; }
.ztile.next { background: color-mix(in srgb, var(--gold) 16%, var(--card)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--gold) 55%, transparent); }
.ztile.next b, .ztile.next small { color: var(--navy); font-weight: 700; }
.lrow.omer.panel { padding: 12px 14px; background: color-mix(in srgb, #c07a2c 9%, var(--card)); border-color: color-mix(in srgb, #c07a2c 35%, var(--line)); }

/* ---- Tehillim: today's button with its chapters, saved yahrzeit names ---- */
.pstoday { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 14px 18px; position: relative; }
.pstoday b { font-size: 19px; }
.pstoday .check { position: absolute; inset-inline-end: 14px; }
.pstoday .check { pointer-events: none; }
.yzsaved { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.yzchip { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); overflow: hidden; }
.yzchip button { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--navy); padding: 6px 4px 6px 12px; cursor: pointer; }
[dir="rtl"] .yzchip button { padding: 6px 12px 6px 4px; }
.yzchip .x { padding: 6px 8px; color: var(--muted); }
.yzchip .x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; display: block; }

/* ---- Settings: backup line, order of the studies ---- */
.bkline { display: flex; align-items: center; gap: 12px; border-radius: var(--r); padding: 12px 14px; margin-bottom: 12px; text-decoration: none; color: inherit; border: 1px solid; }
.bkline .lt { flex: 1; display: grid; }
.bkline .lt small { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.bkline.ok { background: var(--green-bg); border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.bkline.ok b { color: var(--green); }
.bkline.ok .check { pointer-events: none; }
.bkline.warn { background: color-mix(in srgb, var(--red) 7%, var(--card)); border-color: color-mix(in srgb, var(--red) 35%, transparent); }
.bkline.warn b { color: var(--red); }
.ordrow { margin-top: 14px; display: grid; gap: 10px; }
.ordlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ordlist li { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 4px 10px; }
.ordlist li span:not(.tile) { flex: 1; font-weight: 600; }
.ordlist .tile { width: 32px; height: 32px; border-radius: 10px; font-size: 9px; }
.ordlist li.dragging { box-shadow: 0 8px 20px rgba(0, 0, 0, .15); position: relative; z-index: 2; }

/* ---- About and the first screen ---- */
.lic.warn { background: color-mix(in srgb, var(--red) 12%, var(--card)); color: var(--red); font-weight: 800; }
.changes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.changes li { display: flex; gap: 12px; line-height: 1.45; }
.changes small { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.linkbtn.report { display: block; margin: 12px auto 0; font-size: 14px; color: var(--muted); }
.qrcard { display: grid; justify-items: center; gap: 10px; text-align: center; }
.qrcard .sheet-head { justify-self: stretch; }
.qrcard img { width: min(70vw, 260px); height: auto; border-radius: 12px; border: 1px solid var(--line); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.presets .chip { border-style: solid; cursor: pointer; }
.onbplace { margin-top: 14px; display: grid; gap: 8px; }
.onbplace .rl { margin: 0; }
/* today in the calendar: filled, not outlined */
.tcal .cell.now, .tcal .cell.rg.now { outline: 0; background: color-mix(in srgb, var(--gold) 26%, transparent); color: var(--navy); font-weight: 800; }

/* the dedication on top of Today, the size of the request strip */
.dedstrip { display: grid; justify-items: center; gap: 1px; text-align: center; background: var(--card); border: 1px solid color-mix(in srgb, #c9962f 35%, var(--line)); border-radius: var(--r); padding: 10px 14px; margin-bottom: 12px; box-shadow: var(--shadow);
  font-family: var(--serif); font-size: 16px; line-height: 1.4; color: var(--navy); }
.dedstrip b { font-weight: 700; }
/* Shabbat / Yom Tov times on Today */
.restcard { margin-bottom: 12px; }
.ztiles.two { grid-template-columns: repeat(2, 1fr); }

/* Settings: a card per topic, with an icon by its title */
.rl.sechead { display: flex; align-items: center; gap: 10px; font-size: 17px; margin-bottom: 4px; }
.rl.sechead .lic { width: 32px; height: 32px; border-radius: 9px; }
.rl.sechead .lic svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.smrow { margin-top: 14px; }
/* the progress pill stays white in dark mode too, so its count keeps dark ink */
.dprog b { color: #16304f; } .dprog.full b { color: #23805a; }

/* Settings cards, one pattern: icon and title, a line under it, then the rows */
.rl.sechead { margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.rl.sechead + .row, .rl.sechead + .lrow, .rl.sechead + .pick { border-top: 0 !important; margin-top: 0; }
.panel > .rl.sechead + .pick { padding-top: 14px; }

/* ---- Tehillim in a group: the 150 chapters, free / taken / read, mine outlined ---- */
.grp { display: grid; gap: 14px; }
.grpgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 5px; }
.grpgrid span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--card); }
.grpgrid .s1 { background: color-mix(in srgb, var(--gold) 22%, var(--card)); color: var(--ink); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.grpgrid .s2 { background: #2f8a72; border-color: #2f8a72; color: #fff; }
.grpgrid .me { outline: 2px solid var(--navy); outline-offset: 1px; }
.timein { font: inherit; font-size: 16px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }

/* ---- the morning prayer for children: colorful cards, large text, the video on top ---- */
.kidshero { background: linear-gradient(135deg, #ff9f43 0%, #ff6b8b 55%, #a66bff 100%) !important; }
.kidsopts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.kidsopts .seg { flex: 1 1 160px; }
.kidsvideo { padding: 10px; }
.kv { position: relative; display: grid; place-items: center; align-content: center; gap: 12px; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; cursor: pointer; overflow: hidden; color: #fff; font: inherit;
  background: radial-gradient(circle at 25% 30%, #ffd166 0 18%, transparent 19%), radial-gradient(circle at 80% 70%, #7bdff2 0 22%, transparent 23%), linear-gradient(135deg, #3a86ff, #8338ec); }
.kv b { font-size: clamp(18px, 4.5vw, 26px); text-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.kvplay { width: 68px; height: 68px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.kvplay svg { width: 34px; height: 34px; fill: #ff3d68; margin-inline-start: 4px; }
.kv:hover .kvplay, .kv:focus-visible .kvplay { transform: scale(1.06); }
.kv.on { cursor: default; background: #000; }
.kv iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kcredit { margin: 8px 4px 2px; font-size: 13.5px; color: var(--muted); }
.kcredit a { color: var(--navy); font-weight: 700; }
.kidcard { --kc: #ff9f43; margin: 0 0 14px; padding: 14px 16px 6px; border-radius: 20px; border: 2px solid color-mix(in srgb, var(--kc) 45%, transparent);
  background: color-mix(in srgb, var(--kc) 10%, var(--card)); box-shadow: var(--shadow); }
.kidcard.kc1 { --kc: #ff6b8b; } .kidcard.kc2 { --kc: #a66bff; } .kidcard.kc3 { --kc: #3a86ff; } .kidcard.kc4 { --kc: #06b6a4; } .kidcard.kc5 { --kc: #f4b400; }
.khead { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.knum { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--kc); color: #fff; font-weight: 800; font-size: 17px; }
.kt { flex: 1; min-width: 0; }
.kt h2 { margin: 0; font-size: 20px; color: color-mix(in srgb, var(--kc) 70%, var(--ink)); }
.kt p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.kimg { flex: none; width: 72px; height: 72px; object-fit: contain; }
.text.kidtext { font-size: calc(var(--fs, 21px) * 1.12); }

/* the children's two on the Siddur page: big colorful buttons */
.kidbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 14px; }
.kidbtn { position: relative; overflow: hidden; min-height: 84px; padding: 14px 16px; border: 0; border-radius: 22px; cursor: pointer; color: #fff; font: inherit; text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .14); transition: transform .15s; }
.kidbtn b { position: relative; font-size: 19px; text-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.kidbtn.kb0 { background: radial-gradient(circle at 15% 25%, #ffd166 0 16%, transparent 17%), linear-gradient(135deg, #ff9f43, #ff6b8b); }
.kidbtn.kb1 { background: radial-gradient(circle at 85% 75%, #7bdff2 0 18%, transparent 19%), linear-gradient(135deg, #a66bff, #3a86ff); }
.kidbtn:hover, .kidbtn:focus-visible { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .kidbtn { transition: none; } }
.kidsopts .seg { flex: 1 1 100%; }

/* the children's pages: 12 הפסוקים in their own colors; while the video plays it stays on top and the sung paragraph is lit */
.kidshero.kh2 { background: linear-gradient(135deg, #3a86ff 0%, #a66bff 55%, #ff6b8b 100%) !important; }
/* pinned to the top while it plays, with a band of the page color around it so the text scrolling under it does not show */
.kidsvideo:has(.kv.on) { position: sticky; top: 0; z-index: 5; box-shadow: 0 0 0 14px var(--bg), 0 14px 18px -8px rgba(0, 0, 0, .18); }
.kidtext p { border-radius: 14px; transition: background .25s, box-shadow .25s; }
/* the card being sung is lit as a whole; inside a card of several paragraphs, the one being sung is tinted (no frame of its own) */
.kidcard { transition: border-color .25s, box-shadow .25s, background .25s; }
.kidcard.now { border-color: var(--kc); background: color-mix(in srgb, var(--kc) 18%, var(--card)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--kc) 35%, transparent), var(--shadow); }
.kidtext p.now { background: color-mix(in srgb, var(--kc) 22%, transparent); box-shadow: 0 0 0 .3em color-mix(in srgb, var(--kc) 22%, transparent); }
@media (prefers-reduced-motion: reduce) { .kidcard { transition: none; } }
@media (prefers-reduced-motion: reduce) { .kidtext p { transition: none; } }

/* the children's font: rounded letters on the children's pages and their two buttons */
main[data-view="kids"] .kidshero h1, .kidbtn b, .kidcard .kt h2, .kidcard .kt p, .kidcard .knum, .text.kidtext, .kv b, .kidsopts .seg button { font-family: Kids, var(--sans); }
.text.kidtext { line-height: 1.95; }
.text.kidtext .ow { font-weight: 400; color: var(--kc); }
.kidcard .kt h2 { font-weight: 400; font-size: 23px; }
.kidbtn b { font-weight: 400; font-size: 22px; }
main[data-view="kids"] .kidshero h1 { font-weight: 400; font-size: 34px; }

/* the 12 פסוקים video cover, in its page's colors */
.kv.kv2 { background: radial-gradient(circle at 80% 25%, #ffd166 0 16%, transparent 17%), radial-gradient(circle at 20% 75%, #ff9fb6 0 20%, transparent 21%), linear-gradient(135deg, #3a86ff, #a66bff); }

/* swiping a study card on Today: it follows the finger and turns green; far enough, and letting go marks it */
.card[data-id] { position: relative; touch-action: pan-y; }
.card[data-id] > * { transition: transform .2s; }
.card.swiping > * { transform: translateX(var(--sx, 0)); transition: none; }
.card.swiping { background: color-mix(in srgb, var(--green) 14%, var(--card)); }
.card.swiping.arm { background: color-mix(in srgb, var(--green) 32%, var(--card)); border-color: var(--green); }
.card.swiping::before, .card.swiping::after { content: "✓"; position: absolute; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 800; color: var(--green); opacity: .5; }
.card.swiping::before { inset-inline-start: 16px; } .card.swiping::after { inset-inline-end: 16px; }
.card.swiping.arm::before, .card.swiping.arm::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .card[data-id] > * { transition: none; } }

/* Today's header: one thin white line on the blue, filled by what is done, and the count beside it (no pill, no colors) */
.dprog, [dir="ltr"] .dprog { background: transparent; padding: 4px 0; margin-top: 12px; gap: 10px; color: #fff; }
.dprog .line { height: 6px; background: rgba(255, 255, 255, .28); }
.dprog .line i { background: #fff; }
.dprog b, .dprog.full b { color: #fff; font-size: 13.5px; font-weight: 700; padding: 0; }
.dprog:hover .line { background: rgba(255, 255, 255, .36); }

/* ---- Today (3.23): no colored block at the top: the date with a ring of the day's studies beside it, the dedication as one
   line under them, and each study's card tinted in its own color (full color once it is done) ---- */
.hero.today, :root[data-theme] .hero.today { background: none !important; color: var(--ink); padding: calc(10px + env(safe-area-inset-top)) 2px 4px; margin: 0 0 12px; border-radius: 0; overflow: visible; }
.hero.today::before, .hero.today::after { display: none; }
.hero.today .nav-arrow { border-color: var(--line); background: var(--card); color: var(--navy); }
.hero.today .date { flex-direction: row; align-items: center; gap: 12px; }
.hero.today .dtext { display: flex; flex-direction: column; align-items: flex-start; text-align: start; }
.hero.today h1 { font-size: 22px; color: var(--navy); }
.hero.today small { color: var(--muted); opacity: 1; }
.hero.today .datebtn:focus-visible, button.dring:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
button.dring { all: unset; cursor: pointer; flex: none; width: 58px; height: 58px; border-radius: 50%; }
button.dring svg { display: block; width: 100%; height: 100%; }
button.dring circle { transition: stroke-dasharray .4s ease; }
button.dring text { font: 800 13px var(--sans); fill: var(--navy); }
.dedline { margin: 8px 0 0; text-align: center; font-family: var(--serif); font-size: 13.5px; color: var(--muted); text-wrap: balance; }
@media (min-width: 900px) { body.withnav .hero.today { margin: 0 0 14px; border-radius: 0; padding: 14px 0 6px; } }
.card.tint { background: color-mix(in srgb, var(--sc) 10%, var(--card)); border-color: color-mix(in srgb, var(--sc) 26%, var(--card)); }
.card.tint .h3 { color: color-mix(in srgb, var(--sc) 72%, var(--ink)); font-weight: 700; }
.card.tint .meter { background: color-mix(in srgb, var(--sc) 18%, var(--card)); }
.card.tint .meter i { background: var(--sc); }
.card.tint .check { border-color: color-mix(in srgb, var(--sc) 40%, var(--card)); background: var(--card); }
.card.tint.done { background: color-mix(in srgb, var(--sc) 86%, #000); border-color: transparent; }
.card.tint.done .h3 { color: rgba(255, 255, 255, .82); }
.card.tint.done .portion, .card.tint.done .sub { color: #fff; }
.card.tint.done .check.on { background: #fff; border-color: #fff; }
.card.tint.done .check.on svg { stroke: var(--sc); }
.card.tint.swiping { background: color-mix(in srgb, var(--green) 14%, var(--card)); }
.card.tint.swiping.arm { background: color-mix(in srgb, var(--green) 32%, var(--card)); border-color: var(--green); }
@media (prefers-reduced-motion: reduce) { button.dring circle { transition: none; } }
.card.tint.done .meter { display: none; }
/* the date stays on one line on phones: smaller type and ring when the screen is narrow */
.hero.today h1, .hero.today h1 .datebtn { white-space: nowrap; }
.hero.today .daybar { gap: 4px; }
@media (max-width: 440px) {
  .hero.today h1 { font-size: clamp(16px, 5vw, 21px); }
  .hero.today .date { gap: 8px; }
  .hero.today .datebtn { gap: 5px; padding: 2px 3px; }
  .hero.today .datebtn .cal { width: 16px; height: 16px; }
  .hero.today small { font-size: 12.5px; }
  .hero.today .nav-arrow { width: 38px; height: 38px; }
  button.dring { width: 48px; height: 48px; }
}

/* ---- Siddur and Tehillim (3.24): a light top like Today, cards in their own color ---- */
.ptop { padding: calc(14px + env(safe-area-inset-top)) 4px 10px; }
.ptop h1 { margin: 0; font-size: 26px; font-weight: 800; color: var(--navy); }
.ptop small { color: var(--muted); font-size: 14px; }
.pcards, .pskinds { display: grid; gap: 9px; margin-bottom: 12px; }
.pcard, .pskind > summary { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 14px; border-radius: var(--r); background: color-mix(in srgb, var(--c) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--c) 26%, var(--card)); }
.pcard .lt, .pskind .lt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pcard b, .pskind summary b { font-size: 16.5px; font-weight: 700; color: var(--ink); }
.pcard small, .pskind summary small { font-size: 13px; color: color-mix(in srgb, var(--c) 70%, var(--ink)); font-weight: 600; }
.pcard .go, .pskind .go { color: color-mix(in srgb, var(--c) 70%, var(--ink)); display: grid; transition: transform .2s; }
.pcard:focus-visible, .pskind > summary:focus-visible, .sidbig:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.pcard:active { transform: scale(.99); }
.pskind > summary::-webkit-details-marker { display: none; }
.pskind[open] > summary { border-radius: var(--r) var(--r) 0 0; background: color-mix(in srgb, var(--c) 88%, #000); border-color: transparent; }
.pskind[open] > summary b, .pskind[open] > summary small, .pskind[open] > summary .go { color: #fff; }
.pskind[open] .go { transform: rotate(-90deg); }
.pskin { background: var(--card); border: 1px solid color-mix(in srgb, var(--c) 26%, var(--card)); border-top: 0; border-radius: 0 0 var(--r) var(--r); padding: 12px; display: grid; gap: 10px; }
.pskin .wkgrid { margin: 0; }
.sidbig { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 12px; padding: 16px; border-radius: 20px; color: #fff; background: linear-gradient(150deg, var(--c), color-mix(in srgb, var(--c) 72%, #000)); box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 30%, transparent); }
.sidbig .lt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sidbig .lt > small { font-size: 13px; opacity: .9; font-weight: 600; }
.sidbig b { font-size: 24px; font-weight: 800; }
.sidbig .chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.sidbig .chips i { font-style: normal; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: rgba(255, 255, 255, .2); }
.sidbig .gobtn { flex: none; background: #fff; color: color-mix(in srgb, var(--c) 80%, #000); border-radius: 999px; padding: 8px 16px; font-weight: 800; font-size: 14px; }
.sidtabs { display: flex; gap: 4px; padding: 4px; margin: 4px 0 12px; border-radius: 14px; background: color-mix(in srgb, var(--line) 70%, var(--bg)); }
.sidtabs button { flex: 1; border: 0; background: none; padding: 9px 2px; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; }
.sidtabs button.on { background: var(--card); color: var(--navy); box-shadow: 0 1px 3px rgba(22, 48, 79, .12); }
.sidrole { margin-bottom: 8px; }

/* ---- One blue (3.25): every screen in the same blues; light page tops; white cards; blue marks what is done ---- */
:root { --b9: #16304f; --b7: #2560a6; --b5: #3a7fcb; --b2: #d6e5f6; --b1: #eef4fb; --green: #2560a6; --green-bg: #e6eef8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) { --b7: #5b9be0; --b5: #7fb2ea; --b2: #22405f; --b1: #1b2c40; --green: #5b9be0; --green-bg: #1d3550; } }
:root[data-theme=dark] { --b7: #5b9be0; --b5: #7fb2ea; --b2: #22405f; --b1: #1b2c40; --green: #5b9be0; --green-bg: #1d3550; }
/* page tops: no colored block, the title in navy */
.hero.page-hero { background: none !important; color: var(--navy); margin: 0 0 6px; padding: calc(14px + env(safe-area-inset-top)) 2px 6px; border-radius: 0; box-shadow: none; }
.hero.page-hero::before, .hero.page-hero::after { display: none; }
.page-hero h1 { color: var(--navy); }
.page-hero .muted { color: var(--muted); }
.backrow .icon.back { color: var(--navy); background: var(--card); border: 1px solid var(--line); }
@media (min-width: 900px) { body.withnav .hero.page-hero { margin: 0 0 8px; border-radius: 0; padding: 14px 0 6px; } }
/* cards: white; done is blue */
.card.done { background: var(--card); border-color: color-mix(in srgb, var(--b7) 40%, var(--line)); box-shadow: var(--shadow); }
.meter i { background: var(--b5); }
.lic, .lic.ps, .lic.tn, .lic.sd, .rl.sechead .lic { background: var(--b1); color: var(--b7); }
.chevron, .lrow .go { color: var(--b5); }
/* the big solid cards: the prayer for now, today's Tehillim */
.sidbig { background: var(--b7); box-shadow: none; }
:root[data-theme=dark] .sidbig, :root:not([data-theme=light]) .sidbig { color: #fff; }
.sidbig .gobtn { color: var(--b7); }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .sidbig { background: #2560a6; } :root:not([data-theme=light]) .sidbig .gobtn { color: #2560a6; } }
:root[data-theme=dark] .sidbig { background: #2560a6; } :root[data-theme=dark] .sidbig .gobtn { color: #2560a6; }
.sidbig .lt > small { opacity: .85; }
/* lists under a small heading */
.glbl { margin: 14px 4px 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.panel.glist { padding-block: 2px; }
.glist .lrow { min-height: 50px; } .glist .lrow b { font-weight: 600; }
.glist .sidmore { padding: 10px 0; } .glist .sidrole { margin: 10px 0; }
/* Tehillim kinds: rows that open in place */
.pskind { border: 0; } .pskind + .pskind, .pslist > * + * { border-top: 1px solid var(--line); }
.pskind > summary { list-style: none; min-height: 50px; } .pskind > summary::-webkit-details-marker { display: none; }
.pskind[open] > summary .go { transform: rotate(-90deg); }
.pskind .go { transition: transform .2s; display: grid; }
.pskin { padding: 4px 0 14px; display: grid; gap: 10px; }
/* the floating + on the personal Tehillim page, and the add sheet's choice of how */
.fab { position: fixed; inset-inline-end: 18px; bottom: calc(92px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--b7); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(22, 48, 79, .28); z-index: 5; }
.fab svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
@media (min-width: 900px) { .fab { bottom: 28px; inset-inline-end: calc(50% - (100vw - var(--side, 0px)) / 2 + 28px); } }
.addhow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 12px; }
.addhow button { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 11px 6px; font-weight: 700; color: var(--ink); }
.addhow button.on { background: var(--b7); border-color: var(--b7); color: #fff; }
/* a Rambam commentary under a halacha: closed, a solid button with its name; open, the text under it */
details.rashi.comm { background: none; padding: 0; margin: .1em 0 .7em; }
details.rashi.comm:not([open]) { display: inline-block; margin-inline-end: .4em; }
details.rashi.comm > summary.cmtbtn { list-style: none; display: inline-flex; align-items: center; gap: .35em; cursor: pointer; font-family: var(--sans); font-size: .8em; font-weight: 700; color: #fff; background: var(--b7, #2560a6); border-radius: 999px; padding: .25em .9em; }
details.rashi.comm > summary.cmtbtn::-webkit-details-marker { display: none; }
details.rashi.comm > summary.cmtbtn::after { content: "+"; font-weight: 800; }
details.rashi.comm[open] > summary.cmtbtn::after { content: "−"; }
details.rashi.comm > summary.cmtbtn:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
details.rashi.comm[open] { display: block; background: var(--bg); border-radius: 12px; padding: .5em .8em; }
details.rashi.comm[open] > summary.cmtbtn { margin-bottom: .4em; }
details.rashi.comm .rl { display: none; }
.pskind > summary.lrow { padding: 14px 0; }
.pslist > .pskind, .pslist > .lrow { border-top: 1px solid var(--line); } .pslist > :first-child { border-top: 0; }
.pskind + .pskind { border-top: 1px solid var(--line); }
.pskind > summary, .pskind[open] > summary { background: none; border: 0; border-radius: 0; }
.pskind[open] > summary b { color: var(--ink); } .pskind[open] > summary .go { color: var(--b5); }
.wkday.today { border-color: var(--b7); background: var(--b1); }
.pbadge { background: var(--b7) !important; color: #fff; }
/* the shortcut picker */
.sclist { display: grid; margin: 4px 0 14px; }
.sclist .scpick { display: flex; align-items: center; gap: 10px; padding: 11px 2px; border-top: 1px solid var(--line); font-weight: 600; }
.sclist .scpick:first-child { border-top: 0; }
.sclist input { width: 20px; height: 20px; accent-color: var(--b7); }

/* ---- the reader's bottom: one light bar floating over the text ---- */
.reader .rfoot, .reader.walk .rfoot { position: absolute; inset-inline: 0; bottom: 0; display: block; border: 0; background: none; pointer-events: none; padding: 0 12px calc(12px + env(safe-area-inset-bottom)); }
.rpill { pointer-events: auto; display: flex; align-items: center; gap: 4px; max-width: 520px; margin: 0 auto; padding: 5px; border-radius: 999px; background: color-mix(in srgb, var(--card) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--b2); box-shadow: 0 8px 26px rgba(22, 48, 79, .16); }
.rpill .walkbar:not([hidden]), .rpill .finrow { display: contents; }
.rpill .wb, .reader.walk .rpill .wb { flex: none; height: 46px; min-width: 46px; padding: 0 12px; margin: 0; border: 0; border-radius: 999px; background: var(--b1); color: var(--b7); gap: 6px; font-size: 14px; }
.rpill .wb .wl { display: none; }
.rpill .wb.speak.on { background: var(--b2); color: var(--b9); }
.rpill .dnav { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--b1); color: var(--b7); }
.rpill .btn, .reader.walk .rpill .btn.wide { flex: 1; width: auto; min-width: 0; height: 46px; margin: 0; padding: 0 14px; border-radius: 999px; font-size: 15px; }
.rpill .btn.primary { background: var(--b7); border-color: var(--b7); color: #fff; }
.reader.walk .rpill .dnav { display: none; }
.reader .rbody { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ---- the reader's top (one blue): one quiet block, round light buttons, light chips, a thin progress line under it ---- */
.reader .rhead { gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 12px 6px; border-bottom: 0; background: var(--card); }
.reader .rhead > .icon[data-r=close] { width: 40px; min-width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--b1); color: var(--b7); }
.reader .rtitle small { color: var(--muted) !important; font-weight: 600; font-size: 12px; }
.reader .rtitle h2 { font-size: 18px; font-weight: 800; color: var(--b9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .reader .rtitle h2 { color: var(--navy); } }
:root[data-theme=dark] .reader .rtitle h2 { color: var(--navy); }
.reader .rhead .rtools { background: none; padding: 0; gap: 6px; }
.reader .rhead .rtools .icon { width: 40px; min-width: 40px; height: 40px; border-radius: 50%; background: var(--b1); color: var(--b7); }
.reader .rhead .rtools .icon:hover { background: var(--b2); }
.reader .rhead .rtools .icon.on { background: var(--b7); color: #fff; }
.reader .ropts { border-bottom: 0; background: var(--card); padding: 2px 12px 8px; gap: 6px; }
.reader .ropts label, .reader .ropts .linkbtn { border: 0; background: var(--b1); color: var(--b7); padding: 6px 14px; font-size: 13px; font-weight: 700; }
.reader .ropts label:has(input:checked) { background: var(--b7); color: #fff; }
.reader .ropts > span { color: var(--muted); font-size: 13px; }
.reader .rwhere { border-bottom: 0; background: var(--card); color: var(--muted); font-weight: 600; font-size: 12.5px; padding: 0 14px 6px; }
.reader .rprog { height: 3px; background: var(--b2); }
.reader .rprog i { background: var(--b7); }
.reader .rprog.full i { background: var(--b7); }

/* Today's top: "back to today" as a small light chip, and the dedication between two thin lines */
.hero.today .totoday, .hero.today .date .btn.totoday { margin: 6px 0 0; padding: 4px 12px; height: auto; min-height: 0; border: 0; box-shadow: none; border-radius: 999px; background: var(--b1); color: var(--b7); font-size: 13px; font-weight: 700; gap: 5px; }
.hero.today .totoday svg { width: 15px; height: 15px; }
.dedline { display: flex; align-items: center; justify-content: center; gap: 10px; color: color-mix(in srgb, var(--b9) 72%, var(--muted)); font-size: 13.5px; margin-top: 10px; }
.dedline::before, .dedline::after { content: ""; flex: 0 1 36px; height: 1px; background: var(--b2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .dedline { color: var(--muted); } }
:root[data-theme=dark] .dedline { color: var(--muted); }
.hero.today .totoday, .hero.today .date .btn.totoday { background: var(--card); border: 1px solid var(--b2); }
.dedline { display: block; margin: 10px auto 0; max-width: 520px; padding: 6px 14px; border-radius: 12px; background: var(--b1); font-size: 12.5px; line-height: 1.5; text-align: center; text-wrap: balance; }
.dedline::before, .dedline::after { content: none; }
.chfind .btn.primary { background: var(--b7); border-color: var(--b7); }

/* ---- personal Tehillim (one blue): light round badges, plain round actions; the add sheet as pills and one save button ---- */
.pbadge { background: var(--b1) !important; color: var(--b7); width: 46px; height: 46px; border-radius: 50%; }
.pbadge b { font-size: 19px; }
.people .pname b { color: var(--ink); font-weight: 700; }
.people .pacts { background: none; padding: 0; gap: 2px; }
.people .pact { width: 40px; height: 40px; border-radius: 50%; color: var(--muted); }
.people .pact:hover:not(:disabled) { background: var(--b1); color: var(--b7); box-shadow: none; }
.people .pact.pdel:hover { background: color-mix(in srgb, var(--red) 10%, transparent); color: var(--red); }
.pgrip { color: color-mix(in srgb, var(--muted) 60%, transparent); }
#sheet .addhow { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 14px; }
#sheet .addhow button { flex: none; border-radius: 999px; padding: 7px 15px; font-size: 14px; border: 1px solid var(--b2); background: var(--card); color: var(--b7); }
#sheet .addhow button.on { background: var(--b7); border-color: var(--b7); color: #fff; }
#sheet .pform { background: none; border: 0; padding: 0; gap: 14px; }
#sheet .pform input:not([type=checkbox]), #sheet .pform select { height: 46px; border-radius: 12px; }
#sheet .pform .btns { display: grid; margin-top: 4px; }
#sheet .pform [data-pcancel], #sheet .pform [data-chcancel] { display: none; }
#sheet .pform .btn.primary { width: 100%; height: 48px; border-radius: 14px; background: var(--b7); border-color: var(--b7); color: #fff; font-size: 16px; }
#sheet .addhow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
#sheet .addhow button { padding: 8px 2px; font-size: 13px; white-space: nowrap; }
/* the dedication on About: solid navy, white text, the name larger */
.dedstrip { background: linear-gradient(160deg, #24507f, #16304f); border: 0; color: rgba(255, 255, 255, .82); padding: 16px 18px; gap: 3px; box-shadow: 0 6px 18px rgba(22, 48, 79, .18); font-size: 14px; }
.dedstrip b { color: #fff; font-size: 18px; font-weight: 800; }
.dedline { background: linear-gradient(160deg, #24507f, #16304f); color: rgba(255, 255, 255, .9) !important; padding: 7px 14px; border-radius: 12px; }
/* the reader's round buttons: the icon exactly in the middle */
.reader .rhead .icon { display: grid; place-items: center; padding: 0; }
.reader .rhead .icon svg { display: block; margin: 0; }
/* text size: a small and a large letter, no signs */
.fsrow .fsz { width: 46px; height: 46px; min-width: 46px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; background: var(--b1); color: var(--b7); }
.fsrow .fsz:hover { background: var(--b2); }
.fsl { font-family: var(--serif); font-weight: 700; line-height: 1; }
.fsl.sm { font-size: 15px; } .fsl.lg { font-size: 25px; }
.reader .rhead .rtools .fsz { display: flex; align-items: baseline; justify-content: center; gap: 1px; padding-top: 2px; }
/* rows are text only: no small icon beside them (WhatsApp's mark and the "!" warning stay) */
.lic:not(.wa):not(.warn) { display: none; }

/* ---- no inner gray: forms sit on their sheet or card; switches on a light-blue track; one blue for main buttons; a round light-blue ✕ ---- */
.pform, #sheet .pform { background: none !important; border: 0 !important; padding: 0 !important; border-radius: 0; }
.people li.pedit .pform { padding: 6px 0 !important; }
.seg { background: var(--b1); }
.seg button.on { background: var(--card); color: var(--b7); box-shadow: 0 1px 3px rgba(22, 48, 79, .12); }
.btn.primary { background: #2560a6; border-color: #2560a6; color: #fff; }
.btn.primary:hover { background: #1f5492; border-color: #1f5492; }
.sheet-head .icon, .sheet-head [data-sh=close], #sheet .sheet-head button.icon { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--b1); color: var(--b7); }
.sheet-head .icon:hover { background: var(--b2); }
.pform input:not([type=checkbox]):not([type=radio]), .pform select { background: var(--card); }
.panel .pickrow, .restlist .pickrow { background: var(--card); }
.wkday, .chgrid button { background: var(--card); }
.sheet blockquote { background: var(--b1); }
#voice select, .locrow select, .chfind input { background: var(--card); }
.icon { background: var(--b1); border-color: transparent; color: var(--b7); }
.toast button { background: var(--b1); color: var(--b7); }
.helpdoc .toc a { background: var(--b1); border-color: transparent; color: var(--b7); }
.sidmore .chip { background: var(--b1); border-color: transparent; color: var(--b7); }
.pickrow input:checked ~ .box { background: #2560a6; border-color: #2560a6; }
.pickrow:has(input:checked) { border-color: var(--b2); }

/* משניות ליארצייט: the choices in the app's blue; the name as a full-width button, or a solid navy band once given */
.reader .mnchips { border-bottom: 0; background: var(--card); padding: 4px 12px 8px; }
.reader .mnchips button { border: 0; background: var(--b1); color: var(--b7); font-weight: 700; }
.reader .mnchips button.on { background: var(--b7); color: #fff; }
.mnwho { flex: none; padding: 0 12px 10px; background: var(--card); }
.mnadd { width: 100%; height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed color-mix(in srgb, var(--b5) 60%, transparent); border-radius: 14px; background: var(--b1); color: var(--b7); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.mnadd svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.mnded { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 14px; border-radius: 14px; background: linear-gradient(160deg, #24507f, #16304f); color: rgba(255, 255, 255, .8); font-size: 13px; }
.mnded b { flex: 1; min-width: 0; color: #fff; font-size: 16px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mnchg { flex: none; border: 1px solid rgba(255, 255, 255, .45); background: transparent; color: #fff; border-radius: 999px; padding: 5px 14px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.mnchg:hover { background: rgba(255, 255, 255, .12); }

/* Tehillim: the tiles inside an open row, soft and borderless; today's day solid blue */
.pskin .wkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.pskin .wkday { border: 0; border-radius: 14px; background: var(--b1); padding: 11px 4px; gap: 1px; }
.pskin .wkday b { color: var(--b9); font-size: 14.5px; }
.pskin .wkday small { color: var(--b7); opacity: .85; font-size: 12.5px; }
.pskin .wkday:hover { background: var(--b2); }
.pskin .wkday.today { background: #2560a6; }
.pskin .wkday.today b, .pskin .wkday.today small { color: #fff; opacity: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .pskin .wkday b { color: var(--ink); } }
:root[data-theme=dark] .pskin .wkday b { color: var(--ink); }
.pskin .chfind { display: flex; gap: 8px; }
.pskin .chfind input { height: 46px; border: 1px solid var(--b2); border-radius: 12px; }
.pskin .chfind .btn { height: 46px; padding: 0 22px; border-radius: 12px; }
.tcal button.cell.fut, .tcal button.cell.none { cursor: pointer; }
.tcal button.cell.fut:hover, .tcal button.cell.none:hover { opacity: .85; background: var(--b1); }

/* ---- Today (option 1): every study a row in one white panel; the circle fills as far as it is read ---- */
.cards { gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.cards > .card { border: 0; border-radius: 0; box-shadow: none; background: var(--card); padding: 10px 12px 10px 14px; }
.cards > .card + .card { border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.cards > .card.done { background: var(--card); }
.cards > .card .portion { font-size: 16px; }
.cards > .card .meter { display: none; }
.cards > .card .check { width: 34px; height: 34px; border: 0; background: radial-gradient(closest-side, var(--card) calc(100% - 3px), transparent calc(100% - 2.5px)), conic-gradient(#2560a6 calc(var(--f, 0) * 1turn), var(--line) 0); }
.cards > .card .check svg { width: 18px; height: 18px; }
.cards > .card .check.on { background: #2560a6; }
.cards > .card .check.on svg { stroke: #fff; }
.cards > .card.swiping { border-radius: 0; }
.cards > li.muted { padding: 16px; }
/* Today's date: larger, the civil date in words under it */
.hero.today h1 { font-size: 23px; letter-spacing: 0; }
.hero.today .dtext small { font-size: 13.5px; font-weight: 500; }
/* the dedication: the blue of the "next" card */
.dedline, .dedstrip, .mnded { background: linear-gradient(150deg, #2f6fbd, #1f4f8c) !important; }
.people .pname small .pch { color: var(--b7); font-weight: 700; }
.people .pname { flex: 1; min-width: 0; }
.people .pname small .pch { display: inline; font-size: inherit; }
#people { margin-bottom: 88px; }

/* the dedication: two lines, the name in the book font */
.dedline { display: grid; gap: 1px; justify-items: center; padding: 9px 16px 10px; border-radius: 14px; box-shadow: 0 4px 14px rgba(31, 79, 140, .22); }
.dedline small { font-family: var(--sans); font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, .78); letter-spacing: .3px; }
.dedline b { font-family: var(--serif); font-size: 16px; font-weight: 700; color: #fff; line-height: 1.35; }
/* תהילים משותף: a light-blue card with today's count, the book's progress and one button */
.commstrip { margin: 0 0 12px; }
.commbtn { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 12px; width: 100%; padding: 12px 14px; border-radius: 18px; background: var(--b1); border: 1px solid var(--b2); }
.commbtn:focus-visible { outline: 2px solid var(--b7); outline-offset: 2px; }
.cctop { display: flex; flex-direction: column; min-width: 0; }
.cctop b { font-size: 16px; font-weight: 800; color: var(--b9); }
.cctop small { font-size: 13px; color: var(--b7); font-weight: 600; }
.ccgo { grid-row: 1 / span 3; grid-column: 2; align-self: center; background: #2560a6; color: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 800; font-size: 14px; white-space: nowrap; }
.ccbar { grid-column: 1; display: block; height: 5px; border-radius: 5px; background: var(--b2); overflow: hidden; } .ccbar i { display: block; height: 100%; background: #2560a6; border-radius: 5px; }
.ccbook { grid-column: 1; font-size: 12px; color: var(--muted); }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .cctop b { color: var(--ink); } }
:root[data-theme=dark] .cctop b { color: var(--ink); }
.hero.today .dedline small { color: rgba(255, 255, 255, .8); opacity: 1; font-size: 11.5px; }
.dedline b { font-size: 14.5px; }

/* shortcuts on Today: a list, the last row adds or removes */
.sclistt { margin-top: 0; }
.sclistt .scadd b { display: inline-flex; align-items: center; gap: 6px; color: var(--b7); font-weight: 700; }
.sclistt .scadd svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
/* switches: a rounded light-blue track, the chosen one solid blue */
.seg { border-radius: 999px; padding: 4px; gap: 4px; background: var(--b1); border: 1px solid var(--b2); }
.seg button { border-radius: 999px; min-height: 38px; padding: 8px 10px; font-size: 14.5px; font-weight: 700; color: var(--b7); transition: background .15s, color .15s; }
.seg button:hover:not(.on) { background: color-mix(in srgb, var(--b2) 60%, transparent); }
.seg button.on { background: #2560a6; color: #fff; box-shadow: 0 2px 6px rgba(37, 96, 166, .28); }
/* the day complete: the ring's center solid blue with a white check that pops in */
button.dring .dfull { fill: #2560a6; transform-origin: 32px 32px; animation: dpop .45s cubic-bezier(.3, 1.6, .5, 1) both; }
button.dring .dtick { fill: none; stroke: #fff; stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: dtick .35s .25s ease-out forwards; }
@keyframes dpop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes dtick { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { button.dring .dfull { animation: none; } button.dring .dtick { animation: none; stroke-dashoffset: 0; } }
button.dring svg g[hidden] { display: none; }
button.dring .dhalo { fill: var(--b2); transform-origin: 32px 32px; animation: dpop .5s cubic-bezier(.3, 1.5, .5, 1) both; }
button.dring .dtick { stroke-width: 4.6; stroke-dasharray: 36; stroke-dashoffset: 36; }

/* WhatsApp's own mark: drawn solid, never as an outline */
.ic.waic, .ic.waic path { fill: currentColor; stroke: none; }
.sheet .sheet-btns .btn .waic { width: 20px; height: 20px; }



/* the day's times: a solid card, the next time on top, every time in order on one line */
.zsun { margin: 2px 0 10px; padding: 14px 12px 12px; border-radius: 20px; color: #fff; background: linear-gradient(160deg, #24507f, #16304f); display: grid; gap: 12px; }
.zsun.day { background: linear-gradient(160deg, #3a7fcb, #2560a6); }
.zhead { padding: 0 4px; } .zhead b { font-size: 20px; font-weight: 800; }
.zsteps { list-style: none; margin: 0; padding: 0; display: flex; position: relative; }
.zsteps li { flex: 1; display: grid; justify-items: center; gap: 1px; position: relative; z-index: 1; text-align: center; }
.zsteps small { font-size: 12px; opacity: .78; } .zsteps b { font-size: 15.5px; font-weight: 800; }
.zsteps .past small, .zsteps .past b { opacity: .55; }
.zsteps .next b { color: #ffd977; }

.zsteps li { padding: 6px 2px; border-radius: 12px; }
.zsteps .next { background: rgba(255, 255, 255, .14); }
/* the dedication: the same block on Today and About, a bit larger */
.dedline, .hero.today .dedline { padding: 11px 16px 12px; margin: 10px auto 12px; }
.dedline small, .hero.today .dedline small { font-size: 13px; color: rgba(255, 255, 255, .82); opacity: 1; }
.dedline b { font-size: 17px; }
/* About keeps an icon on every row, so its rows line up */
main[data-view="about"] .lic, main[data-view="about"] .lic:not(.wa):not(.warn) { display: grid; }
/* the dedication spans the same width as the cards under it */
.dedline, .hero.today .dedline { max-width: none; width: 100%; box-sizing: border-box; margin-inline: 0; }

/* the yahrzeit Tehillim and Mishnayos: a title block (ב״ה, the title, the name) */
.yzhead { position: relative; gap: 6px; padding: 26px 0 14px; margin-bottom: 8px; }
.yzbh { position: absolute; top: 4px; inset-inline-start: 0; font-family: var(--serif); font-size: 14px; color: var(--muted); }
.yzhead small { font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: .5px; color: var(--b7); }
.yzhead b { font-family: var(--serif); font-size: calc(var(--fs, 21px) + 10px); font-weight: 800; color: var(--b9); line-height: 1.25; text-wrap: balance; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .yzhead b { color: var(--ink); } }
:root[data-theme=dark] .yzhead b { color: var(--ink); }
@media print {
  .yzhead { padding-top: 18pt; margin-bottom: 14pt; color: #000; }
  .yzbh { top: 0; font-size: 12pt; color: #000; }
  .yzhead small { font-size: 15pt; color: #000; letter-spacing: 1pt; }
  .yzhead b { font-size: 34pt; color: #000; }
}
@media print { .mnchips, .mnwho, .rwhere, .sidnav, .selshare, .toast, #toast { display: none !important; } }
/* ב״ה only on paper */
.yzbh { display: none; }
@media print { .yzbh { display: block; } }
.sidnav button.on { background: #2560a6; border-color: #2560a6; color: #fff; }
.sclistt { margin-top: 12px; }

/* swiping a halacha, or a part, in the reader: it follows the finger, and far enough it turns blue */
#rbody .rpart, #rbody .rpart p { touch-action: pan-y; }
#rbody .rswipe { transform: translateX(var(--sx, 0)); background: var(--b1); border-radius: 10px; box-shadow: 0 0 0 6px var(--b1); }
#rbody .rswipe.arm { background: var(--b2); box-shadow: 0 0 0 6px var(--b2); }
#rbody .hal, #rbody .rpart, #rbody .rpart p { transition: transform .18s; }
#rbody .rswipe { transition: none; -webkit-user-select: none; user-select: none; }

/* the accessibility, privacy and terms pages inside the app */
.helpdoc .updated { color: var(--muted); font-size: 14px; margin: 14px 0 4px; }
.helpdoc table { border-collapse: collapse; width: 100%; font-size: 14px; }
.helpdoc th, .helpdoc td { border: 1px solid var(--line); padding: 6px 8px; text-align: start; vertical-align: top; }
.helpdoc { overflow-x: auto; }

/* plain buttons (backup, sign in, my location, open a chapter ...): light blue fill, as the rest of the app */
.btn:not(.primary):not(.wa):not(.light):not(.continue):not(.totoday):not(.ghost) { background: var(--b1); border-color: transparent; color: var(--b7); font-weight: 700; }
.btn:not(.primary):not(.wa):not(.light):not(.continue):not(.totoday):not(.ghost):hover { background: var(--b2); }
.btn.danger:not(.primary):not(.wa):not(.light):not(.continue):not(.totoday):not(.ghost) { background: color-mix(in srgb, var(--red) 10%, var(--card)); color: var(--red); }
.btn.danger:not(.primary):not(.wa):not(.light):not(.continue):not(.totoday):not(.ghost):hover { background: color-mix(in srgb, var(--red) 16%, var(--card)); }
.btn.signin { background: var(--b1); }
/* segments: each choice on one line; a long row gets smaller text instead of wrapping */
.seg button { white-space: nowrap; min-width: 0; }
.seg:has(> button:nth-child(4)) button { padding-inline: 6px; font-size: 13.5px; }
@media (max-width: 380px) { .seg:has(> button:nth-child(4)) button { font-size: 12.5px; padding-inline: 4px; } }
/* the place the day's times are for, on the Siddur's times card */
.zhead { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
#daystart .rl + .locrow, #daystart .seg + .rl { margin-top: 14px; }
.zhead .zplace { margin-inline-start: auto; font-size: 12.5px; font-weight: 600; opacity: .8; }

/* the city picker: a button in Settings, and a sheet with a search box (Israel first, then abroad) */
.locrow { display: flex; gap: 8px; align-items: center; }
.locpick { flex: 1; min-width: 0; min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--b2); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; font-weight: 600; text-align: start; cursor: pointer; }
.locpick span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.locpick svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--b7); stroke-width: 2; }
.locsheet { display: flex; flex-direction: column; max-height: min(86vh, 760px); }
.locq { font: inherit; width: 100%; min-height: 46px; padding: 0 14px; margin: 4px 0 10px; border: 1px solid var(--b2); border-radius: 12px; background: var(--b1); color: var(--ink); }
.locq:focus { outline: 2px solid var(--b5); outline-offset: 1px; background: var(--card); }
.loclist { overflow-y: auto; overscroll-behavior: contain; margin-inline: -4px; padding-inline: 4px; }
.loclist .glbl { margin: 10px 4px 6px; }
.loclist .lrow.on b { color: var(--b7); }
.loclist .lrow .go { color: var(--b7); font-weight: 800; }
.loclist [hidden] { display: none !important; }

/* the dedication in four lines: לעילוי נשמת, his name, his father's name, the family name */
.dedline span { font-family: var(--serif); font-size: 15px; color: rgba(255, 255, 255, .92); line-height: 1.35; }
.dedic b.sur { font-size: 22px; }
/* what the time of year calls for (Chanukah lights, chametz, כפרות, the Omer): a warm big button above the prayer */
.sidbig.sea { background: linear-gradient(150deg, #c98b22, #a5680f); }
.sidbig.sea .gobtn { color: #8a560a; }
.sidbig.sea .lt > small { order: 2; }
