/* תא-שמע · source sheet viewer */
html.shv-on, html.shv-on body{overflow:hidden}
.shv{position:fixed;inset:0;z-index:90;display:none;background:rgba(24,20,48,.55);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
.shv.open{display:flex;align-items:center;justify-content:center}
.shv-box{position:relative;display:flex;flex-direction:column;width:min(980px,96vw);height:min(96vh,100%);background:#f2f1ee;border-radius:18px;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.35)}
.shv-bar{display:flex;align-items:center;gap:.5em;padding:.45em .6em .45em .7em;background:#fff;border-bottom:1px solid #e6e2d6;direction:rtl;flex:0 0 auto}
.shv-t{font-size:.95em;white-space:nowrap;color:#3a2e8f}
.shv-tabs{display:flex;gap:.25em;flex:1;min-width:0;justify-content:flex-start}
.shv-tab{border:1px solid #e3ddca;background:#fbf9f2;border-radius:99px;padding:.22em .8em;font:inherit;font-size:.8em;font-weight:600;color:#5b5440;cursor:pointer;white-space:nowrap}
.shv-tab.on{background:#3a2e8f;border-color:#3a2e8f;color:#fff}
.shv-zoom{display:flex;align-items:center;gap:.15em;direction:ltr}
.shv-b{min-width:34px;height:32px;border:1px solid #e3ddca;background:#fff;border-radius:10px;font:inherit;font-size:.95em;font-weight:700;color:#3a2e8f;cursor:pointer}
.shv-zv{font-size:.72em;min-width:46px;color:#6b6450}
.shv-x{width:36px;height:36px;border:0;border-radius:12px;background:#f1eefc;color:#3a2e8f;font-size:1.05em;font-weight:700;cursor:pointer;flex:0 0 auto}
.shv-x:focus-visible,.shv-b:focus-visible,.shv-tab:focus-visible{outline:3px solid #8f7cf0;outline-offset:2px}
.shv-chip{position:absolute;top:3.5em;right:50%;transform:translateX(50%);z-index:3;display:flex;align-items:center;gap:.4em;max-width:92%;background:#fff6c7;color:#5a4300;border:1px solid #f0d36a;border-radius:99px;padding:.25em .4em .25em .8em;font-size:.8em;font-weight:700;box-shadow:0 4px 14px rgba(90,67,0,.18);direction:rtl}
.shv-chip[hidden]{display:none}
.shv-ct{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shv-cx{border:0;background:none;color:#8a6d00;font-size:.9em;cursor:pointer;padding:0 .2em}
.shv-sc{position:relative;flex:1;overflow:auto;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;overscroll-behavior:contain;padding:12px 0 28px}
.shv-col{margin:0 auto}
.shv-pg{position:relative;width:100%;background:#fff;margin:0 0 14px;box-shadow:0 1px 3px rgba(0,0,0,.12),0 6px 18px rgba(0,0,0,.06)}
.shv-pg img{display:block;width:100%;height:100%;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.shv-pn{position:absolute;bottom:6px;left:8px;font:600 11px/1.4 system-ui,sans-serif;color:#9b9584;background:rgba(255,255,255,.85);border-radius:6px;padding:0 5px}
.shv-hl{position:absolute;border-radius:6px;background:rgba(255,213,0,.30);box-shadow:0 0 0 3px rgba(240,180,0,.85);animation:shvPulse 1.1s ease-in-out 2;transition:background 1.4s,box-shadow 1.4s;pointer-events:none;mix-blend-mode:multiply}
.shv-hl.fade{background:rgba(255,213,0,.10);box-shadow:0 0 0 2px rgba(240,180,0,.25)}
@keyframes shvPulse{50%{background:rgba(255,213,0,.48)}}
.shv-hint{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);font-size:.7em;color:#6b6450;background:rgba(255,255,255,.9);border-radius:99px;padding:.15em .7em;pointer-events:none;direction:rtl;opacity:.9;transition:opacity .4s}
.shv.zoomed .shv-hint{opacity:0}
.shv.loading .shv-col{opacity:.4}
.shv-err{padding:2em;text-align:center;direction:rtl}
@media (hover:hover){.shv-hint{display:none}}
@media (max-width:700px){
  .shv{background:#f2f1ee}
  .shv-box{width:100vw;height:100%;border-radius:0;box-shadow:none}
  .shv-bar{padding:.35em .45em;padding-top:max(.35em,env(safe-area-inset-top))}
  .shv-t span{display:none}
  .shv-zoom{display:none}
  .shv-tab{padding:.25em .7em}
}
/* standalone /sheet/ page */
.shv.shv-page{position:static;display:flex;background:none;backdrop-filter:none;height:100%}
.shv.shv-page .shv-box{width:100%;height:100%;border-radius:0;box-shadow:none}
@media (prefers-reduced-motion:reduce){.shv-hl{animation:none;transition:none}}
/* the buttons inside the module */
.srcgo{font:inherit;cursor:pointer;white-space:nowrap}
.src{position:relative}
.src .srcgo{position:absolute;top:-.78em;left:.7em;z-index:1;border:1px solid #e8d9a8;background:#fffaf0;color:#7a5a00;border-radius:99px;padding:.05em .6em;font-size:.68em;font-weight:700;line-height:1.45;box-shadow:0 1px 4px rgba(80,70,30,.08)}
.src .srcgo:hover{background:#fff1c9}
.prog .srcgo.pg{border:1px solid #e8d9a8;background:#fffaf0;color:#7a5a00;border-radius:99px;padding:0 .6em;font-size:.72em;font-weight:700;line-height:1.5;flex:0 0 auto}
.srcgo:focus-visible{outline:3px solid #8f7cf0;outline-offset:2px}
#srcBtn{display:none;border-color:#e8d9a8;background:#fffaf0}
body.has-sheet:not([data-scene=reg]) #srcBtn{display:inline-flex}

.shv-cp{text-align:center;font:12px/1.4 Rubik,Arial,sans-serif;color:#6b6450;padding:10px 8px 18px}

/* print: every page of the open sheet, one per sheet of paper (round 5) */
@media print{
  html.shv-on,html.shv-on body,html,body{overflow:visible!important;height:auto!important}
  .shv.open,.shv.shv-page{position:static!important;display:block!important;background:none!important;backdrop-filter:none!important;inset:auto}
  .shv-box{width:auto!important;height:auto!important;display:block!important;box-shadow:none!important;border-radius:0!important;background:none!important;overflow:visible!important}
  .shv-bar,.shv-chip,.shv-hint,.shv-pn,.shv-hl,.sbk,.sft,#top,#nav,#stage,#scrim,#toast{display:none!important}
  .shv-sc{overflow:visible!important;padding:0!important;height:auto!important}
  .shv-col{width:100%!important;transform:none!important}
  .shv-pg{box-shadow:none!important;margin:0!important;break-after:page;page-break-after:always;width:100%!important}
  .shv-pg:last-child{break-after:auto;page-break-after:auto}
  .shv-pg img{width:100%!important;height:auto!important}
  .shv-cp{padding:4px 0 0}
  @page{size:A4;margin:8mm}
}
