/* gesherlalev.com/shiurim — the sheet-driven Shiurim page (see shiurim.js) */
#sh{--shbar:0px}
.sh-bar{position:sticky;top:0;z-index:4;background:rgba(247,240,223,.96);backdrop-filter:saturate(1.2) blur(6px);-webkit-backdrop-filter:saturate(1.2) blur(6px);border-bottom:1px solid var(--line);margin-top:6px}
.sh-bar-in{max-width:1240px;padding-top:8px;padding-bottom:8px}
.sh-row1{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.sh-cats,.sh-lf{display:flex;gap:4px;flex-wrap:wrap}
.sh-cats:empty,.sh-lf:empty{display:none}
.sh-cats button,.sh-lf button{font:600 14.5px var(--sans);border:1px solid #cdbb8f;background:#fff;color:var(--deep);border-radius:999px;padding:5px 13px;min-height:34px;cursor:pointer}
.sh-cats button[aria-pressed=true]{background:var(--deep);border-color:var(--deep);color:#fff}
.sh-lf{border-inline-start:1px solid var(--line);padding-inline-start:8px}
.sh-lf button[aria-pressed=true]{background:var(--gold);border-color:var(--gold);color:#fff}
.sh-lf button[aria-pressed=false]{color:var(--muted);text-decoration:line-through;text-decoration-color:rgba(107,98,85,.5)}
.sh-q{flex:1 1 180px;display:flex;align-items:center;gap:6px;background:#fff;border:1px solid #cdbb8f;border-radius:999px;padding:0 12px;min-height:36px}
.sh-q svg{width:17px;height:17px;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round;flex:none}
.sh-q input{border:0;outline:0;background:none;font:400 15.5px var(--sans);color:var(--ink);width:100%;min-width:0;padding:6px 0}
.sh-bm{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;margin-top:6px;padding-bottom:2px;-webkit-overflow-scrolling:touch}
.sh-bm::-webkit-scrollbar{display:none}
.sh-bm a{flex:none;font:600 14px var(--sans);color:var(--deep);text-decoration:none;padding:4px 11px;border-radius:999px;border:1px solid transparent;white-space:nowrap}
.sh-bm a:hover{background:var(--goldbg)}
.sh-bm a[aria-current=true]{background:var(--goldbg);border-color:var(--gold2)}
#shBody{max-width:1040px}
.sh-cat{display:flex;align-items:center;gap:14px;margin:40px 0 0;font:700 15px var(--sans);letter-spacing:.06em;color:var(--gold);text-transform:uppercase}
.sh-cat::before,.sh-cat::after{content:"";flex:1;height:2px;background:linear-gradient(90deg,transparent,var(--gold2),transparent)}
.sh-sec{padding-top:6px;border-top:1px solid var(--line);margin-top:26px}
.sh-cat+.sh-sec{border-top:0;margin-top:4px}
.sh-sec .sec-h{margin-top:20px}
.sh-sec .sec-sub{text-align:center;color:var(--muted);margin:-4px auto 14px;max-width:620px}
.sh-slink{text-align:center;margin:14px 0 0}
.sh-none{text-align:center;color:var(--muted);margin:40px 0}
@media (min-width:640px){#sh .lecs{grid-template-columns:1fr 1fr}}
@media (min-width:980px){#sh .lecs{grid-template-columns:1fr 1fr 1fr}}
.sh-it{cursor:pointer;transition:border-color .15s,box-shadow .15s;scroll-margin-top:150px}
.sh-it:hover{border-color:#cdbb8f}
.sh-it.open{border-color:var(--gold2);box-shadow:0 10px 26px -16px rgba(61,51,36,.6)}
.sh-it.open .vt-pl{background:var(--deep)}
.sh-it.open .vt-pl .tri{display:none}
.sh-it.open .vt-pl .x{display:inline}
.sh-it .vt.sh-aud{background:linear-gradient(135deg,#f1e9d6,#e2d3b1)}
.sh-it .vt.sh-aud .vt-pl svg{fill:none;stroke:#fff;stroke-width:1.8;width:16px;height:16px}
.lec.nothumb .vt{background:linear-gradient(135deg,#f1e9d6,#e2d3b1)}
.sh-it .meta{margin-bottom:4px}
.sh-lb{display:inline-block;font:700 11px/1 var(--sans);letter-spacing:.03em;padding:3px 6px 2px;border-radius:5px;margin-inline-end:6px;vertical-align:1px;border:1px solid}
.sh-lb-he{color:#2e5a87;border-color:#b9cde3;background:#eef4fa}
.sh-lb-en{color:#7a4a12;border-color:#e3cfa9;background:#fbf3e3}
.sh-lb-yi{color:#4f6b2a;border-color:#c9d8b3;background:#f1f6ea}
.sh-ds{margin:0 0 6px;font-size:14.5px;line-height:1.45;color:var(--ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sh-acts{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.sh-chip{display:inline-flex;align-items:center;gap:5px;font:600 13.5px var(--sans);color:var(--deep);background:#fff;border:1px solid #cdbb8f;border-radius:999px;padding:3px 11px;min-height:30px;cursor:pointer;text-decoration:none}
.sh-chip:hover{background:var(--goldbg)}
.sh-chip svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
.sh-ext{color:var(--gold);border-color:transparent;padding-inline:4px}
.sh-tags{display:inline-flex;flex-wrap:wrap;gap:4px}
.sh-tag{font:600 12.5px var(--sans);color:var(--muted);background:none;border:0;padding:2px 4px;cursor:pointer}
.sh-tag:hover{color:var(--gold);text-decoration:underline}
/* the open shiur: a full-width row under the cards' row */
.sh-x{grid-column:1/-1;background:var(--paper);border:1px solid var(--gold2);border-radius:16px;padding:12px;box-shadow:0 14px 30px -20px rgba(61,51,36,.65);animation:shIn .18s ease-out}
@keyframes shIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.sh-xin{max-width:860px;margin:0 auto}
.sh-xhead{display:flex;align-items:flex-start;gap:10px;margin:0 2px 10px}
.sh-xhead b{flex:1;font:700 18px/1.3 var(--serif);color:var(--deep)}
.sh-xclose{flex:none;width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:#fff;display:grid;place-items:center;cursor:pointer}
.sh-xclose svg,.sh-mb svg{width:17px;height:17px;fill:none;stroke:var(--deep);stroke-width:2;stroke-linecap:round}
.sh-x .parts{margin:10px 0 0}
.sh-xds{margin:10px 2px 8px;font-size:15.5px;line-height:1.55;white-space:pre-line}
.sh-x .sh-acts{margin-top:10px}
.sh-audio{display:block;width:100%;height:44px}
.sh-ifr{position:relative;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:#000}
.sh-ifr iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
/* back to top */
.sh-top{position:fixed;z-index:6;bottom:18px;inset-inline-end:16px;display:flex;align-items:center;gap:6px;background:var(--deep);color:#fff;border:2px solid #fff;border-radius:999px;padding:8px 14px 8px 11px;font:700 14px var(--sans);box-shadow:0 4px 14px rgba(0,0,0,.25);cursor:pointer}
.sh-top svg{width:17px;height:17px;fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
/* file reader */
.sh-noscroll,.sh-noscroll body{overflow:hidden}
.sh-modal{position:fixed;inset:0;z-index:50;background:rgba(29,25,18,.6);display:flex;align-items:center;justify-content:center;padding:14px}
.sh-mbox{background:var(--paper);border-radius:16px;width:min(940px,100%);height:min(92vh,100%);display:flex;flex-direction:column;overflow:hidden;box-shadow:0 20px 50px rgba(0,0,0,.4)}
.sh-mhead{display:flex;align-items:center;gap:6px;padding:10px 12px;border-bottom:1px solid var(--line);background:#fff}
.sh-mt{flex:1;min-width:0;font:700 16px/1.3 var(--serif);color:var(--deep);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sh-mb{display:inline-flex;align-items:center;gap:5px;font:600 14px var(--sans);color:var(--deep);background:#fff;border:1px solid #cdbb8f;border-radius:999px;padding:5px 12px;min-height:34px;text-decoration:none;cursor:pointer}
.sh-mx{padding:0;width:36px;justify-content:center}
.sh-mbody{flex:1;overflow:auto;background:#ece5d4;padding:12px;display:flex;flex-direction:column;align-items:center;gap:10px}
.sh-pg{max-width:100%;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.18)}
.sh-mload{color:var(--muted);margin:40px 10px;text-align:center}
.sh-txt{background:#fff;max-width:760px;width:100%;padding:22px 20px;white-space:pre-wrap;font:400 17px/1.7 var(--sans);border-radius:8px}
.sh-mimg{max-width:100%;height:auto}
@media (max-width:640px){.sh-mb span{display:none}.sh-mb{padding:0;width:36px;justify-content:center}.sh-modal{padding:0}.sh-mbox{height:100%;border-radius:0}.sh-top span{display:none}.sh-top{padding:9px}}
@media print{.sh-bar,.sh-top{display:none}}

/* 2026-11-26: shiur-language and sections dropdowns; sections sidebar on wide screens */
.sh-dd{position:relative}
.sh-ddb{display:inline-flex;align-items:center;gap:7px;font:600 14.5px var(--sans);border:1px solid #cdbb8f;background:#fff;color:var(--deep);border-radius:999px;padding:5px 13px;min-height:36px;cursor:pointer;white-space:nowrap;max-width:62vw;overflow:hidden;text-overflow:ellipsis}
.sh-dd.open .sh-ddb{border-color:var(--gold);box-shadow:0 0 0 2px var(--goldbg)}
.sh-car{flex:none;width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);opacity:.65}
.sh-ddp{position:absolute;top:calc(100% + 6px);inset-inline-start:0;z-index:8;min-width:210px;max-height:70vh;overflow:auto;background:var(--paper);border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 30px -14px rgba(61,51,36,.5);padding:6px}
.sh-ck{display:flex;align-items:center;gap:9px;padding:8px 10px;border-radius:8px;cursor:pointer;font-size:15.5px}
.sh-ck:hover{background:var(--goldbg)}
.sh-ck input{width:18px;height:18px;accent-color:var(--gold)}
.sh-bm2{display:flex;flex-direction:column}
.sh-bm2 a,.sh-bm a{display:block;font:600 14.5px/1.35 var(--sans);color:var(--deep);text-decoration:none;padding:7px 11px;border-radius:8px;border:1px solid transparent}
.sh-bm2 a:hover,.sh-bm a:hover{background:var(--goldbg)}
.sh-bm2 a[aria-current=true],.sh-bm a[aria-current=true]{background:var(--goldbg);border-color:var(--gold2)}
.sh-layout{display:block}
.sh-side{display:none}
.sh-bm{display:flex;flex-direction:column;gap:2px;overflow:visible;margin:0;padding:0}
@media (min-width:1100px){
 .sh-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:26px;max-width:1300px;margin:0 auto;padding:0 18px}
 .sh-layout #shBody{padding:0;max-width:none}
 .sh-side{display:block;position:sticky;align-self:start;max-height:calc(100vh - 200px);overflow:auto;padding-top:26px}
 .sh-side-h{margin:0 11px 6px;font:700 13px var(--sans);letter-spacing:.06em;color:var(--gold);text-transform:uppercase}
 .sh-sdd{display:none}
}
@media (max-width:640px){.sh-ddb{font-size:14px;padding:5px 11px}.sh-row1{gap:6px}}
/* 2026-11-26: where you stopped; ways to play; audio tools; download help */
.sh-prog{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:2px 0 6px;font-size:13px;color:var(--gold);font-weight:600}
.sh-prog.done{color:#5b7a3a}
.sh-pbar{flex:0 0 70px;height:5px;border-radius:3px;background:#eadfc4;overflow:hidden}
.sh-pbar i{display:block;height:100%;background:var(--gold)}
.sh-restart{font:600 12.5px var(--sans);color:var(--muted);background:none;border:0;padding:2px 4px;cursor:pointer;text-decoration:underline}
.sh-modes{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.sh-mode{font:600 14px var(--sans);border:1px solid #cdbb8f;background:#fff;color:var(--deep);border-radius:999px;padding:6px 14px;min-height:36px;cursor:pointer}
.sh-mode[aria-pressed=true]{background:var(--deep);border-color:var(--deep);color:#fff}
.sh-video{display:block;width:100%;max-height:70vh;background:#000;border-radius:10px}
.sh-tools{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:8px}
.sh-tb{font:700 14px var(--sans);min-width:46px;min-height:34px;border:1px solid #cdbb8f;background:#fff;color:var(--deep);border-radius:999px;cursor:pointer}
.sh-rate{display:inline-flex;align-items:center;gap:5px;font-size:14px;color:var(--muted)}
.sh-rate select{font:600 14px var(--sans);border:1px solid #cdbb8f;border-radius:999px;padding:5px 8px;background:#fff;color:var(--deep)}
.sh-dlw{position:relative;display:inline-flex;align-items:center;gap:5px;margin-inline-start:auto}
.sh-help{width:28px;height:28px;border-radius:50%;border:1px solid #cdbb8f;background:#fff;color:var(--deep);font:700 15px var(--sans);cursor:pointer;line-height:1}
.sh-help[aria-expanded=true]{background:var(--deep);color:#fff}
.sh-tip{position:absolute;bottom:calc(100% + 10px);inset-inline-end:-6px;width:min(300px,82vw);background:var(--deep);color:#fff;font-size:14px;line-height:1.55;padding:10px 13px;border-radius:12px;box-shadow:0 10px 24px -8px rgba(0,0,0,.45);z-index:9;text-align:start}
.sh-tip::after{content:"";position:absolute;top:100%;inset-inline-end:14px;border:7px solid transparent;border-top-color:var(--deep)}
