/* The Interlinear Siddur app. Layout: one reading column; a sticky bar (Menu · the section · Aa) on top; a settings sheet
   from the bottom. The prayers flow right to left, each word a small box: the Hebrew above, its English below. */
@font-face{font-family:"Taamey Frank";font-weight:normal;src:url(fonts/taamey-frank-clm-medium.ttf) format("truetype");font-display:swap}
@font-face{font-family:"Taamey Frank";font-weight:bold;src:url(fonts/taamey-frank-clm-bold.ttf) format("truetype");font-display:swap}
:root{--bg:#fbf8f1;--page:#fffdf8;--ink:#1b1a17;--en:#4b4436;--muted:#7a7262;--gold:#9a7428;--line:#e6dcc6;--bar:#f6f1e4;--chip:#efe6d2;
  --he-size:32px;--en-size:15px;--sans:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;--he:"Taamey Frank","Frank Ruhl Libre","Times New Roman",serif;color-scheme:light}
:root[data-theme="sepia"]{--bg:#efe3c8;--page:#f4e9d0;--ink:#2e2516;--en:#55452a;--muted:#7d6b4c;--gold:#8a6420;--line:#dccaa3;--bar:#e8dab9;--chip:#e2d1ab}
:root[data-theme="dark"]{--bg:#121110;--page:#181715;--ink:#ece6d8;--en:#c9bfa8;--muted:#9a917d;--gold:#d2a755;--line:#2e2b26;--bar:#1c1a17;--chip:#29261f;color-scheme:dark}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);-webkit-text-size-adjust:100%}
button{font:inherit;color:inherit}
[hidden]{display:none!important}

/* the bar */
.top{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:8px;background:var(--bar);border-bottom:1px solid var(--line);
  padding:calc(env(safe-area-inset-top,0px) + 6px) max(10px,env(safe-area-inset-right,0px)) 6px max(10px,env(safe-area-inset-left,0px))}
.tb{border:0;background:transparent;min-width:48px;height:44px;border-radius:10px;display:flex;align-items:center;gap:6px;padding:0 10px;cursor:pointer}
.tb:active{background:var(--chip)}
.tb .ic{font-size:22px;line-height:1}
.tb .aa{font-family:Georgia,serif;font-weight:bold;font-size:20px}
.tb .tl{font-size:15px;font-weight:600}
.title{flex:1;min-width:0;text-align:center;line-height:1.15;overflow:hidden}
.title .the{display:block;font-family:var(--he);font-weight:bold;font-size:21px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.title .ten{display:block;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:.02em}

main{max-width:900px;margin:0 auto;padding:10px max(14px,env(safe-area-inset-right,0px)) calc(40px + env(safe-area-inset-bottom,0px)) max(14px,env(safe-area-inset-left,0px))}

/* the prayers */
.il{direction:rtl;text-align:right;margin:0 0 .3em;line-height:1}
.c{display:inline-block;vertical-align:top;width:min-content;text-align:center;margin:0 .14em .5em}
.c .h{display:block;font-family:var(--he);font-size:var(--he-size);line-height:1.38;white-space:nowrap;color:var(--ink)}
.c.big .h{font-size:calc(var(--he-size) * 1.4);font-weight:bold;line-height:1.1}
.c.sm .h{font-size:calc(var(--he-size) * .8);color:var(--en)}
.c .g{display:block;direction:ltr;font-size:var(--en-size);line-height:1.15;color:var(--en);min-width:4.4em;margin:.08em auto 0}
.c .mk{color:var(--gold);margin-right:.15em}
body.no-en .c .g{display:none}
body.no-en .c{margin-bottom:.15em}
body.no-mk .c .mk{display:none}
.note{font-size:calc(var(--en-size) * .92);font-weight:700;text-transform:uppercase;letter-spacing:.02em;text-align:center;color:var(--gold);margin:.5em 4% .9em;line-height:1.35}
.note.long{font-weight:400;text-transform:none;text-align:left;color:var(--en);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:.55em .2em;margin:.6em 0 1em}
body.no-en .note.long{display:none}

.sec-head{text-align:center;margin:12px 0 18px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.sec-head .k{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--gold);margin:6px 0}
.sec-head h1{font-family:var(--he);font-size:calc(var(--he-size) * 1.15);margin:0;line-height:1.25}
.sec-head .en{color:var(--muted);margin:4px 0 0;font-size:15px}
.pager{display:flex;gap:10px;margin:28px 0 8px}
.pager a{flex:1;display:block;text-decoration:none;color:inherit;background:var(--page);border:1px solid var(--line);border-radius:12px;padding:12px 14px;min-height:56px}
.pager a.next{text-align:right}
.pager .d{display:block;font-size:12px;color:var(--muted);letter-spacing:.05em}
.pager .n{display:block;font-family:var(--he);font-size:20px;font-weight:bold;direction:rtl}
.pager a.prev .n{text-align:left}
.pager .ne{display:block;font-size:13px;color:var(--muted)}

/* the menu */
.ded{text-align:center;margin:10px 0 18px;padding:14px 10px;border:1px solid var(--line);border-radius:14px;background:var(--page)}
.ded p{margin:0;font-family:var(--he);direction:rtl;font-size:18px;line-height:1.45}
.ded p.nm{font-size:23px;font-weight:bold}
.ded .de{font-family:Georgia,serif;font-style:italic;direction:ltr;font-size:12.5px;color:var(--muted);margin-top:6px}
.resume{display:block;text-decoration:none;color:inherit;background:var(--chip);border-radius:12px;padding:12px 14px;margin:0 0 16px}
.resume .d{font-size:12px;color:var(--muted)}
.resume .n{font-family:var(--he);font-size:20px;font-weight:bold;direction:rtl;display:block;text-align:right}
.part{margin:18px 0 6px;display:flex;justify-content:space-between;align-items:baseline;border-bottom:2px solid var(--gold);padding-bottom:4px}
.part .pe{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--gold)}
.part .ph{font-family:var(--he);font-size:20px;font-weight:bold}
.menu a.it{display:flex;justify-content:space-between;align-items:center;gap:12px;text-decoration:none;color:inherit;padding:11px 4px;border-bottom:1px solid var(--line);min-height:52px}
.menu a.it:active{background:var(--chip)}
.menu .ie{font-size:14.5px;color:var(--en)}
.menu .ih{font-family:var(--he);font-size:22px;direction:rtl;text-align:right}
.about{margin:26px 0 0;font-size:14px;line-height:1.55;color:var(--en)}
.about h2{font-size:15px;margin:18px 0 6px;color:var(--ink)}
.install{display:block;width:100%;margin:6px 0 14px;padding:12px;border-radius:12px;border:1px solid var(--gold);background:transparent;color:var(--gold);font-weight:600;cursor:pointer}
.hint{font-size:13.5px;color:var(--muted);background:var(--page);border:1px dashed var(--line);border-radius:12px;padding:10px 12px;margin:0 0 14px}

/* the settings sheet */
.sheet{position:fixed;inset:0;z-index:10;background:rgba(0,0,0,.35);display:flex;align-items:flex-end;justify-content:center}
.sheet-in{width:100%;max-width:560px;background:var(--page);color:var(--ink);border-radius:18px 18px 0 0;padding:14px 18px calc(18px + env(safe-area-inset-bottom,0px));box-shadow:0 -6px 30px rgba(0,0,0,.25);max-height:88vh;overflow:auto}
.sh-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.x{border:0;background:var(--chip);border-radius:50%;width:36px;height:36px;font-size:16px;cursor:pointer}
.row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;font-size:15px}
.row.sw{border-top:1px solid var(--line)}
.row input[type=checkbox]{width:24px;height:24px;accent-color:var(--gold)}
.sz{display:flex;align-items:center;gap:8px}
.sz button,.seg button{border:1px solid var(--line);background:var(--bg);border-radius:10px;min-width:44px;height:40px;padding:0 10px;cursor:pointer;font-weight:600}
.sz output{min-width:42px;text-align:center;font-variant-numeric:tabular-nums;color:var(--muted)}
.seg{display:flex;gap:6px}
.seg button[aria-pressed="true"]{background:var(--ink);color:var(--page);border-color:var(--ink)}
input[type=range]{width:100%;accent-color:var(--gold);margin:0 0 6px}
.sample{margin:12px 0 0;padding:10px;border-radius:12px;background:var(--bg);border:1px solid var(--line)}
:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
@media (prefers-reduced-motion: reduce){*{scroll-behavior:auto!important}}

/* the install banner */
.banner{position:fixed;left:max(10px,env(safe-area-inset-left,0px));right:max(10px,env(safe-area-inset-right,0px));bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:8;
  display:flex;align-items:center;gap:10px;background:var(--page);color:var(--ink);border:1px solid var(--gold);border-radius:16px;padding:10px 10px 10px 12px;box-shadow:0 8px 28px rgba(0,0,0,.22);max-width:600px;margin:0 auto}
.banner img{border-radius:10px;flex:none}
.banner .bt{flex:1;margin:0;font-size:14px;line-height:1.4}
.banner .shr{display:inline-block;border:1px solid var(--line);border-radius:6px;padding:0 4px;font-size:12px}
.banner .bn{flex:none;border:0;background:var(--gold);color:#fff;font-weight:700;border-radius:10px;height:40px;padding:0 16px;cursor:pointer}
.banner .x{flex:none}
.about .honor{font-family:var(--he);font-size:17px;text-align:center;color:var(--ink);margin:16px 0}
