/* Songs and songbooks.
   Used on a phone, outdoors, at night, while walking and singing: big lyrics, high contrast, next/previous always
   under the thumb, nothing else on screen. Reading preferences (lyrics language, text size, night mode) are set on the
   <html> element by /js/songs.js and kept between songs. Night mode follows the phone's dark setting until changed. */

/* ---------------------------------------------------------------- reading tokens (day, then night) */
:root{--lyric-scale:1}
:root[data-lyric-size="0"]{--lyric-scale:.84}:root[data-lyric-size="1"]{--lyric-scale:.92}:root[data-lyric-size="3"]{--lyric-scale:1.12}:root[data-lyric-size="4"]{--lyric-scale:1.26}:root[data-lyric-size="5"]{--lyric-scale:1.42}
.song-page,.songbook-page{
 --r-bg:#faf3ed;--r-ink:#202a24;--r-trans:#3f5848;--r-muted:#5f6a5c;--r-accent:#805520;
 --r-card:#fffcf7;--r-panel:#eee7dc;--r-panel-line:#dfded0;--r-line:#d7dacb;--r-chip:#e6ecdf;--r-chip-line:#cfd9c8;
 --r-bar:#fffcf7;--r-shadow:#324c3a14;
 background:var(--r-bg);color:var(--r-ink)}
:root[data-reading="night"] :is(.song-page,.songbook-page){
 --r-bg:#152f21;--r-ink:#faf3ed;--r-trans:#c6cdbf;--r-muted:#c3c9be;--r-accent:#e8d2b4;
 --r-card:#ffffff0a;--r-panel:#ffffff0d;--r-panel-line:#ffffff24;--r-line:#ffffff24;--r-chip:#ffffff1f;--r-chip-line:#ffffff40;
 --r-bar:#13291f;--r-shadow:#0000004d;color-scheme:dark}
@media(prefers-color-scheme:dark){:root:not([data-reading="day"]) :is(.song-page,.songbook-page){
 --r-bg:#152f21;--r-ink:#faf3ed;--r-trans:#c6cdbf;--r-muted:#c3c9be;--r-accent:#e8d2b4;
 --r-card:#ffffff0a;--r-panel:#ffffff0d;--r-panel-line:#ffffff24;--r-line:#ffffff24;--r-chip:#ffffff1f;--r-chip-line:#ffffff40;
 --r-bar:#13291f;--r-shadow:#0000004d;color-scheme:dark}}

/* Hebrew in English pages: the site's Hebrew face, right to left. */
.song-page [lang="he"],.songbook-page [lang="he"]{font-family:verla,'Josefin Sans',sans-serif}
.songbook-page [lang="he"] .eyebrow,.songbook-page .eyebrow[lang="he"]{letter-spacing:0;font-size:17px}

/* Current section in the header: the songs belong to the Musical Selichot tour. */
#nav .dropdown>summary.active{border-bottom:0;padding-block:8px;box-shadow:inset 0 -1px #e4cdb7;border-radius:5px 5px 0 0}
#nav .dropdown>div a[aria-current="true"]{background:#e7eddf;color:#294c36;font-weight:600}

/* Shared letter badge (A, B, C … or 1, 2, 3 …). */
.song-marker{display:inline-grid;place-items:center;flex-shrink:0;width:44px;height:44px;border-radius:50%;background:var(--r-chip,#e6ecdf);border:1px solid var(--r-chip-line,#cfd9c8);color:var(--r-ink,#3f5848);font-size:19px;font-weight:600;line-height:1;padding-top:3px;font-variant-numeric:tabular-nums}

/* ---------------------------------------------------------------- song page: title band */
.song-head{position:relative;isolation:isolate;overflow:hidden;background:#152f21;color:#fff7ed;padding:22px 0 34px}
.song-head-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.song-head::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#152f21e6,#152f21a6)}
.song-head-inner{width:min(1040px,calc(100% - 80px));margin:auto}
.song-back{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-size:16px;color:#f3ecdf;margin-bottom:14px;margin-inline-start:-6px;padding-inline:6px;border-radius:5px}
.song-back .line-icon{width:20px;height:20px}.song-back:hover{color:#e8d2b4}
.song-title{display:flex;align-items:flex-start;gap:20px}
.song-head .song-marker-lg{width:64px;height:64px;font-size:30px;background:#fff7ed;border:0;color:#3f5848;box-shadow:0 0 0 5px #fff7ed2e;margin-top:2px}
.song-head h1{font-size:46px;line-height:1.08;margin:6px 0 0;color:#fff7ed}
.song-translation{display:block;font-size:22px;letter-spacing:0;font-weight:500;color:#e8d2b4;margin-top:10px;line-height:1.3}
.song-credit{margin:14px 0 0;font-size:17px;line-height:1.45;color:#e9e7d9}.song-credit>span{display:block}
.song-head h1,.song-translation,.song-credit>span,.song-row-name,.sheet-song-name,.pager-title{text-wrap:balance}

/* ---------------------------------------------------------------- song page: lyrics */
.song-reader{width:min(720px,calc(100% - 40px));margin:auto;padding:30px 0 56px}
.lyrics-tools{display:flex;justify-content:center;margin-bottom:34px}
.lyrics-switch{display:inline-flex;gap:2px;padding:4px;border:1px solid var(--r-line);border-radius:999px;background:var(--r-card)}
.lyrics-switch label{position:relative;display:flex}
.lyrics-switch input,.choice input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.lyrics-switch span{display:flex;align-items:center;min-height:40px;padding:4px 16px 1px;border-radius:999px;border:1px solid transparent;font-size:16px;color:var(--r-muted);cursor:pointer;white-space:nowrap}
.lyrics-switch label:hover span{color:var(--r-ink)}
.lyrics-switch input:checked+span{background:var(--r-chip);border-color:var(--r-chip-line);color:var(--r-ink);font-weight:600}
.lyrics-switch input:focus-visible+span,.choice input:focus-visible+span{outline:3px solid #b58b59;outline-offset:2px}

.lyrics{--l:calc(23px * var(--lyric-scale));text-align:center;color:var(--r-ink);font-weight:500}
.stanza{font-size:var(--l);line-height:1.32;margin:0 0 1.55em}
.stanza:last-child{margin-bottom:0}
.lyrics .line,.lyrics .pair,.lyrics .he,.lyrics .en{display:block}
/* A lyric line that wraps stays tighter than the gap to the next line, and wraps evenly instead of leaving one word behind. */
.lyrics :is(.line,.he,.en){text-wrap:balance}
.lyrics .line+.line{margin-top:.42em}
.lyrics .pair+.pair{margin-top:.62em}
.lyrics .he{font-size:1.1em;line-height:1.36;font-weight:400;color:var(--r-ink)}
.is-bilingual .en{font-size:.84em;line-height:1.3;color:var(--r-trans);margin-top:.14em}
/* One language at a time: the remaining lines become the main text and sit closer together. */
:root[data-lyrics="he"] .is-bilingual .en,:root[data-lyrics="en"] .is-bilingual .he{display:none}
:root[data-lyrics="en"] .is-bilingual .en{font-size:1em;color:var(--r-ink);margin-top:0}
:root:is([data-lyrics="he"],[data-lyrics="en"]) .is-bilingual .pair+.pair{margin-top:.42em}
/* The part everyone sings again. */
.stanza.refrain{background:var(--r-panel);border:1px solid var(--r-panel-line);border-radius:12px;padding:.85em 1em .9em}
.stanza-label{display:block;font-size:14px;line-height:1.3;letter-spacing:1.4px;text-transform:uppercase;font-weight:600;color:var(--r-accent);margin-bottom:.75em}

/* ---------------------------------------------------------------- song page: after the lyrics */
.song-pager{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:52px 0 16px;padding-top:30px;border-top:1px solid var(--r-line)}
.pager-link{display:flex;flex-direction:column;gap:10px;min-width:0;padding:16px 18px 18px;border:1px solid var(--r-line);border-radius:9px;background:var(--r-card);color:var(--r-ink)}
.pager-link:hover{border-color:#5f7469;color:var(--r-ink);background:var(--r-chip)}
.pager-next{align-items:flex-end;text-align:end}
.pager-label{display:flex;align-items:center;gap:6px;font-size:16px;color:var(--r-muted)}
.pager-label .line-icon{width:18px;height:18px}
.pager-title{display:flex;align-items:center;gap:12px;font-size:19px;font-weight:600;line-height:1.3}
.pager-next .pager-title{flex-direction:row-reverse}
.pager-title .song-marker{width:38px;height:38px;font-size:16px}
.pager-link.is-empty{border:0;background:none;padding:0}
.song-list-link{max-width:100%;min-height:52px;font-size:17px}
.song-review{margin-top:44px;background:var(--r-panel);border:1px solid var(--r-panel-line);border-radius:9px;padding:26px}
.song-review h2,.song-review .ui-h2{font-size:27px;color:var(--r-ink);margin-bottom:12px}
.song-review p{font-size:17px;line-height:1.6;color:var(--r-muted);margin-bottom:20px}
.song-review .btn{min-height:52px;font-size:17px}

/* ---------------------------------------------------------------- song bar: next/previous, the song list, display */
.song-bar{position:sticky;top:88px;z-index:25;background:var(--r-bar);border-bottom:1px solid var(--r-line);box-shadow:0 8px 24px var(--r-shadow)}
.song-bar-inner{width:min(1040px,calc(100% - 80px));margin:auto;display:flex;align-items:center;gap:10px;padding-block:10px}
.song-bar :is(a,button){display:flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 16px;border:1px solid var(--r-line);border-radius:9px;background:transparent;color:var(--r-ink);font-size:16px;line-height:1.2}
.song-bar :is(a,button):hover{background:var(--r-chip);color:var(--r-ink)}
.song-bar .line-icon{width:22px;height:22px}
.bar-step{flex:1 1 0;min-width:0}
.song-bar .bar-prev{justify-content:flex-start}.song-bar .bar-next{justify-content:flex-end;text-align:end}
.song-bar .bar-next{background:#5f7469;border-color:#5f7469;color:#fff}
.song-bar .bar-next:hover{background:#405b49;border-color:#405b49;color:#fff}
.bar-step.is-empty{visibility:hidden}
.bar-marker{display:inline-grid;place-items:center;flex-shrink:0;width:32px;height:32px;border-radius:50%;border:1px solid currentColor;font-size:15px;font-weight:600;padding-top:2px}
.bar-text{display:grid;gap:3px;min-width:0}
.bar-label{font-size:13px;letter-spacing:.3px}
.bar-title{font-size:16px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bar-list{flex:0 0 auto}.bar-count{font-size:14px;color:var(--r-muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.bar-display{flex:0 0 52px;padding:0!important;font-size:18px!important;font-weight:600}

/* ---------------------------------------------------------------- sheets (song list, display settings) */
html.sheet-open{overflow:hidden}
.song-sheet{border:1px solid var(--r-panel-line);border-radius:14px;background:var(--r-bg);color:var(--r-ink);padding:24px 26px 26px;width:min(520px,calc(100% - 36px));max-height:calc(100dvh - 40px);overflow:auto;overscroll-behavior:contain;box-shadow:0 25px 80px #152f2140}
/* The song list keeps its heading in place and scrolls the songs beneath it. */
.song-sheet[open]:has(.sheet-songs){display:flex;flex-direction:column;overflow:hidden}.song-sheet>*{flex-shrink:0}
.song-sheet .sheet-songs{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.sheet-head h2:focus,.sheet-head .ui-h2:focus{outline:none}
.song-sheet::backdrop{background:#0f2219b8;backdrop-filter:blur(3px)}
.sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.sheet-head h2,.sheet-head .ui-h2{font-size:28px;color:var(--r-ink);margin:0}
.sheet-head .eyebrow{color:var(--r-accent);margin-bottom:8px}
.sheet-close{flex-shrink:0;display:grid;place-items:center;width:46px;height:46px;border:1px solid var(--r-line);border-radius:50%;background:transparent;color:var(--r-ink)}
.sheet-close:hover{background:var(--r-chip);color:var(--r-ink)}.sheet-close .line-icon{width:22px;height:22px}
.sheet-songs{list-style:none;margin:0 0 18px;padding:0;border-top:1px solid var(--r-line)}
.sheet-songs a{display:flex;align-items:center;gap:14px;min-height:62px;padding:8px 6px;border-bottom:1px solid var(--r-line);color:var(--r-ink)}
.sheet-songs a:hover{background:var(--r-panel);color:var(--r-ink)}
.sheet-songs a[aria-current="page"]{background:var(--r-chip);font-weight:600}
.sheet-songs a[aria-current="page"] .song-marker{background:#5f7469;border-color:#5f7469;color:#fff}
.sheet-songs .song-marker{width:38px;height:38px;font-size:16px}
.sheet-song-text{display:grid;gap:2px;min-width:0}
.sheet-song-name{font-size:18px;line-height:1.3}.sheet-song-sub{font-size:15px;color:var(--r-muted);font-weight:400}
.sheet-songbook{color:var(--r-ink);align-self:flex-start}
.sheet-group{border:0;margin:0;padding:18px 0;border-top:1px solid var(--r-line);min-width:0}
.sheet-group legend,.sheet-label{display:block;font-size:17px;font-weight:600;padding:0;margin-bottom:12px}.sheet-group legend{float:left;width:100%}
.choice-list{clear:both;display:grid;gap:8px}
.choice{position:relative;display:flex}
.choice span{flex:1;display:flex;align-items:center;gap:12px;min-height:50px;padding:4px 16px 1px;border:1px solid var(--r-line);border-radius:8px;cursor:pointer;font-size:17px}
.choice span::before{content:'';width:18px;height:18px;border-radius:50%;border:1px solid var(--r-muted);flex-shrink:0;margin-top:-3px}
.choice input:checked+span{background:var(--r-chip);border-color:#5f7469;font-weight:600}
.choice input:checked+span::before{border:6px solid #5f7469;background:#fff}
.size-control{display:flex;align-items:center;gap:10px}
.size-control button{width:58px;height:50px;border:1px solid var(--r-line);border-radius:8px;background:var(--r-card);color:var(--r-ink);font-size:19px;font-weight:600}
.size-control button span{font-size:22px}.size-control button:first-child span{font-size:16px}
.size-control button:hover{background:var(--r-chip);color:var(--r-ink)}.size-control button:disabled{opacity:.35;cursor:default;background:var(--r-card)}
.size-control output{flex:1;text-align:center;font-size:17px}
.switch-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-top:1px solid var(--r-line);cursor:pointer}
.switch-row[hidden]{display:none}
.switch-row b{display:block;font-size:17px;font-weight:600}.switch-row b+span{display:block;font-size:15px;color:var(--r-muted);margin-top:3px;line-height:1.4}
input[role="switch"]{appearance:none;flex-shrink:0;position:relative;width:54px;height:32px;border-radius:999px;background:#c9cfc3;border:1px solid #b6c3ad;margin:0;cursor:pointer;transition:background .2s}
input[role="switch"]::after{content:'';position:absolute;top:3px;inset-inline-start:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:inset-inline-start .2s}
input[role="switch"]:checked{background:#5f7469;border-color:#5f7469}input[role="switch"]:checked::after{inset-inline-start:25px}
input[role="switch"]:focus-visible{outline:3px solid #b58b59;outline-offset:3px}
.sheet-done{justify-content:center;min-height:52px;margin-top:8px;font-size:17px}

/* ---------------------------------------------------------------- songbook page */
.songbook-hero{position:relative;isolation:isolate;overflow:hidden;background:#152f21}
.songbook-hero-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 40%;z-index:-2}
.songbook-hero::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#152f21d9,#172f2152)}
.songbook-hero>.wrap{width:min(820px,calc(100% - 80px))}
.songbook-hero .eyebrow{display:flex;align-items:center;gap:8px}.songbook-hero .eyebrow .line-icon{width:18px;height:18px}
.songbook-wrap{width:min(820px,calc(100% - 80px));margin:auto;padding:34px 0 64px}
.night-toggle{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:4px 16px 1px;border:1px solid var(--r-line);border-radius:999px;background:var(--r-card);color:var(--r-ink);font-size:16px}
.night-toggle .line-icon{width:19px;height:19px;margin-top:-3px}
.night-toggle:hover{background:var(--r-chip);color:var(--r-ink)}
.night-toggle[aria-pressed="true"]{background:var(--r-chip);border-color:var(--r-chip-line);font-weight:600}
.songbook+.songbook{margin-top:56px}
.songbook{scroll-margin-top:170px}
.songbook-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:18px}.songbook-head>div{min-width:0}
.songbook-head .night-toggle{flex-shrink:0}
.songbook-head .eyebrow{color:var(--r-accent)}
.songbook-head h2,.songbook-head .ui-h2{font-size:36px;color:var(--r-ink);margin-bottom:10px}
.songbook-meta{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 18px;margin:0;font-size:17px;color:var(--r-muted)}
.songbook-meta a{color:var(--r-ink);border-bottom:1px solid var(--r-line);padding-bottom:2px;white-space:nowrap}
.song-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--r-line)}
.song-row{display:flex;align-items:center;gap:18px;min-height:80px;padding:14px 10px;border-bottom:1px solid var(--r-line);color:var(--r-ink)}
.song-row:hover{background:var(--r-panel);color:var(--r-ink)}
.song-row .song-marker{width:48px;height:48px;font-size:20px}
.song-row:hover .song-marker{background:#5f7469;border-color:#5f7469;color:#fff}
.song-row-text{display:grid;gap:4px;min-width:0;flex:1}
.song-row-name{font-size:22px;font-weight:600;line-height:1.25}
.song-row-sub{font-size:17px;line-height:1.35;color:var(--r-muted)}
.song-row-go{width:24px;height:24px;color:var(--r-muted)}
.song-row-tag{justify-self:start;font-size:14px;line-height:1;padding:7px 10px 4px;border-radius:999px;background:var(--r-chip);border:1px solid var(--r-chip-line);color:var(--r-ink);font-weight:600}
li.is-last .song-row{background:var(--r-panel)}
/* Several songbooks on one page: the shared pill tabs jump between them. */
.songbook-page .tour-subnav{background:var(--r-bg);border-color:var(--r-line)}
.songbook-page .tour-subnav>.wrap{width:min(820px,calc(100% - 80px))}
.songbook-page .tour-subnav>.wrap>a{color:var(--r-ink)}
.songbook-page .tour-subnav>.wrap>a.is-active{background:var(--r-chip);border-color:var(--r-chip-line);color:var(--r-ink)}
.songbook-count{font-size:14px;color:var(--r-muted);font-variant-numeric:tabular-nums}
[dir="rtl"] .song-row-go,[dir="rtl"] .bar-step .line-icon,[dir="rtl"] .pager-label .line-icon{transform:scaleX(-1)}
.songbook-tabs .songbook-count{margin-inline-start:8px}
.preview-notice{background:#ece1ce;border-bottom:1px solid #cfbd9e;padding:14px 0;font-size:16px;color:#3f4b40}.preview-notice>.wrap{display:flex;gap:6px 18px;flex-wrap:wrap}

/* ---------------------------------------------------------------- side by side on wide screens (both languages) */
@media(min-width:1000px){
 .song-page:has(.is-bilingual) .song-reader{width:min(1040px,calc(100% - 80px))}
 :root:not([data-lyrics="he"]):not([data-lyrics="en"]) .is-bilingual{text-align:start}
 :root:not([data-lyrics="he"]):not([data-lyrics="en"]) .is-bilingual .pair{display:grid;grid-template-columns:1fr 1fr;column-gap:64px;align-items:baseline}
 :root:not([data-lyrics="he"]):not([data-lyrics="en"]) .is-bilingual .en{grid-area:1/1;font-size:.94em;margin:0}
 :root:not([data-lyrics="he"]):not([data-lyrics="en"]) .is-bilingual .he{grid-area:1/2}
 :root:not([data-lyrics="he"]):not([data-lyrics="en"]) .is-bilingual .pair+.pair{margin-top:.3em}
 :root:not([data-lyrics="he"]):not([data-lyrics="en"]) .is-bilingual .stanza{background-image:linear-gradient(var(--r-line),var(--r-line));background-size:1px 100%;background-position:50% 0;background-repeat:no-repeat}
 :root:not([data-lyrics="he"]):not([data-lyrics="en"]) .is-bilingual .stanza.refrain{padding-inline:1.2em;background-image:linear-gradient(var(--r-panel-line),var(--r-panel-line));background-size:1px calc(100% - 1.7em);background-position:50% 1.2em}
 .song-page:has(.is-bilingual) .lyrics-tools{max-width:none}
}

/* ---------------------------------------------------------------- tablet & phone */
@media(max-width:900px){
 .song-head-inner,.song-bar-inner,.songbook-wrap,.songbook-page .tour-subnav>.wrap,.songbook-hero>.wrap{width:calc(100% - 48px)}
 /* The site header scrolls away so the lyrics get the screen; the song bar moves under the thumb. */
 .song-page header{position:relative;z-index:35}
 .song-bar{position:fixed;inset-inline:0;top:auto;bottom:0;z-index:30;border-bottom:0;border-top:1px solid var(--r-line);box-shadow:0 -8px 30px var(--r-shadow)}
 .song-bar-inner{gap:8px;padding:8px 0 calc(8px + env(safe-area-inset-bottom))}
 .song-page{padding-bottom:calc(72px + env(safe-area-inset-bottom))}
 .song-page .whatsapp{display:none}
 .bar-text{display:none}
 .bar-step{flex:0 0 auto;min-width:72px}
 .song-bar .bar-prev,.song-bar .bar-next{justify-content:center;gap:4px;padding:0 10px}
 .bar-marker{border:0;width:auto;height:auto;font-size:20px;padding-top:3px;opacity:1}
 .bar-list{flex:1 1 auto;min-width:0}
}
@media(max-width:650px){
 .song-head{padding:12px 0 26px}
 .song-head-inner,.song-bar-inner,.songbook-wrap,.songbook-page .tour-subnav>.wrap,.songbook-hero>.wrap{width:calc(100% - 36px)}
 .song-back{margin-bottom:8px;font-size:16px}
 .song-title{gap:14px}
 .song-head .song-marker-lg{width:50px;height:50px;font-size:24px;box-shadow:0 0 0 4px #fff7ed2e}
 .song-head h1{font-size:33px;letter-spacing:-.4px;margin-top:3px}
 .song-translation{font-size:19px;margin-top:7px}
 .song-credit{font-size:16px;margin-top:10px}
 .song-reader{width:calc(100% - 36px);padding:22px 0 40px}
 .lyrics-tools{margin-bottom:28px;gap:8px}
 .lyrics-switch span{padding-inline:13px}
 .lyrics{--l:calc(22px * var(--lyric-scale))}
 .stanza.refrain{margin-inline:-8px;padding:.8em .7em .85em}
 .song-bar :is(a,button){min-height:54px}
 .bar-list{gap:8px;padding:0 10px!important}
 .song-pager{gap:10px;margin-top:44px;padding-top:24px}
 .pager-link{padding:14px 14px 16px;gap:10px}
 .pager-title{font-size:17px;gap:10px;align-items:flex-start}
 .pager-title .song-marker{width:34px;height:34px;font-size:15px}
 .pager-next .pager-title{flex-direction:column-reverse;align-items:flex-end}
 .pager-prev .pager-title{flex-direction:column}
 .song-review{padding:22px 20px}
 .song-review h2,.song-review .ui-h2{font-size:25px}
 .song-sheet{margin:auto 0 0;width:100%;max-width:100%;max-height:88dvh;border-radius:18px 18px 0 0;border-bottom:0;padding:20px 18px calc(22px + env(safe-area-inset-bottom))}
 .sheet-head h2,.sheet-head .ui-h2{font-size:25px}
 .songbook-wrap{padding:24px 0 48px}
 .songbook-head h2,.songbook-head .ui-h2{font-size:30px}
 .songbook-head .night-toggle{width:46px;height:46px;padding:0;justify-content:center;border-radius:50%}
 .songbook-head .night-toggle span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
 .songbook-head .night-toggle .line-icon{width:21px;height:21px;margin:0}
 .song-row{gap:14px;min-height:76px;padding:12px 4px}
 .song-row .song-marker{width:44px;height:44px;font-size:19px}
 .song-row-name{font-size:20px}
 .song-row-sub{font-size:16px}
}
@media(max-width:374px){.lyrics-switch span{padding-inline:10px;font-size:15px}.bar-step{min-width:62px}.bar-count{display:none}}
@media(prefers-reduced-motion:reduce){input[role="switch"],input[role="switch"]::after{transition:none}}

/* ---------------------------------------------------------------- Hebrew (right to left) */
/* Arrows and list bullets point the reading way: previous to the right, next to the left. */
html[dir=rtl] :is(.song-back,.bar-list,.bar-end) .line-icon{transform:scaleX(-1)}
html[dir=rtl] .bar-count{direction:ltr;unicode-bidi:isolate}
html[dir=rtl] .lyrics{--l:calc(24px * var(--lyric-scale));font-weight:400}
html[dir=rtl] .lyrics .line{line-height:1.42}
html[dir=rtl] :is(.stanza-label,.songbook-head .eyebrow,.sheet-head .eyebrow){letter-spacing:0;font-size:16px}
html[dir=rtl] .bar-display small{font-size:.7em}
html[dir=rtl] .song-head h1{line-height:1.15}
/* The reviews box on Hebrew songs: five stars and the Google review button, as on the live page. */
.song-review-google{display:flex;flex-direction:column;align-items:center;gap:18px;text-align:center}
.review-stars{display:flex;gap:6px;color:#b58b59}.review-stars svg{width:30px;height:30px}
.song-review-google .btn{max-width:420px}
/* Under the song list on a songbook page: the tour's partner, and Gal's contact card. */
.songbook-partner{margin-top:48px;padding-top:28px;border-top:1px solid var(--r-line);display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.songbook-partner h2,.songbook-partner .ui-h2{font-size:24px;color:var(--r-ink);margin:0}
.songbook-partner img{width:min(330px,100%);height:auto;background:#fff;border-radius:8px;padding:10px 14px}
.songbook-contact{margin-top:48px;display:flex;align-items:center;gap:22px;background:var(--r-panel);border:1px solid var(--r-panel-line);border-radius:9px;padding:24px}
.songbook-contact>img{width:96px;height:96px;border-radius:50%;object-fit:cover;flex-shrink:0;border:3px solid #fffcf7}
.songbook-contact p{margin:0 0 8px;font-size:18px;color:var(--r-ink)}
.songbook-contact p a{color:var(--r-ink);border-bottom:1px solid var(--r-line)}
.songbook-socials{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.songbook-socials a{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1px solid var(--r-line);background:var(--r-card);color:var(--r-ink);font-size:18px}
.songbook-socials a:hover{background:#5f7469;border-color:#5f7469;color:#fff}
@media(max-width:650px){
 html[dir=rtl] .lyrics{--l:calc(23px * var(--lyric-scale))}
 .songbook-partner{flex-direction:column;align-items:flex-start}
 .songbook-contact{flex-direction:column;align-items:flex-start;padding:20px}
}
