/* roomy.css — roomy layout merged ON TOP OF the release build (declutter + pop-ups + toggles).
   Loaded last on learn.html, after declutter.css and hide-en.css. It changes spacing, type and scrolling only:
   the side rail, the slide-out material panel, the stop pop-ups and the En / Hide English / nikud toggles all stay. */

/* ---------- type that breathes (every width) ---------- */
:root{--t-en:18px;--t-heb:32px;--t-title:36px;--t-ui:15px}
.stagetext,[data-p],[role=tabpanel]{font-size:18px;line-height:1.7}
.stagetext p,[data-p] p{margin:0 0 .95em}
.stepcard{padding:28px 0 30px!important;margin-bottom:0}
.stagetext .stepcard .heb,.stepcard p.heb,.stepcard .heb{font-size:34px!important;line-height:1.7!important;margin:14px 0 12px}
.stagetext .his-en,.his-en{font-size:19px!important;line-height:1.7!important;max-width:40em}
.sc-head{font-size:13px;letter-spacing:.08em}
.pnote{font-size:15px;line-height:1.6}
.now h1{line-height:1.25}
/* word sheet: taller rows, bigger English and Hebrew */
.sheetbody .step{margin:0 0 36px!important;padding:0!important;border:0!important}
.sheetbody .sth{font-size:14px;margin-bottom:12px;gap:12px}
.sheetbody .hw{font-size:24px}
.sheetbody .ts{white-space:nowrap}
.sheetbody table.w td{padding:16px 12px!important;vertical-align:middle}
.sheetbody table.w tr:hover td{background:rgba(255,255,255,.03)}
.sheetbody td.n{font-size:14px;width:36px}
.sheetbody td.en,table.w td.en{font-size:19px;line-height:1.45}
.sheetbody td.he,table.w td.he{font-size:31px;line-height:1.3}
.sheetbody .punct{font-size:17px;line-height:1.6;margin-top:16px;padding-left:16px}
.mw-hint{font-size:14px;margin:0 0 20px}
/* the read/translate stop card: roomier */
.stopcard{padding:22px 24px!important;border-radius:14px}
.stopcard .stopen{font-size:19px;line-height:1.6;padding:14px 16px}
/* top bar: a little taller, toggles easier to hit */
body.dc .mtop{min-height:62px;gap:10px;background:var(--bg,#161615)}
body.dc .hen-btn{min-height:42px}

/* ---------- desktop (1100+): one natural page scroll; the panel and rail stay in view ---------- */
@media (min-width:1100px){
 .dc{--rail:86px}
 html,body{height:auto}
 body.dc.optB.app{height:auto;min-height:100vh;min-height:100dvh;overflow:visible}
 body.dc .main{height:auto;min-height:100vh;min-height:100dvh;grid-template-rows:auto 1fr;align-items:start}
 body.dc .mtop{position:sticky;top:0;z-index:25;padding:6px 32px;align-self:stretch}
 body.dc .stage{display:flex;flex-direction:column;overflow:visible;min-height:0;padding:44px 48px 96px!important;align-self:start}
 body.dc .stage>*{max-width:1040px}
 body.dc .screen{min-height:280px;padding:40px 56px;margin-bottom:22px;border-radius:14px}
 body.dc .stageheb{font-size:40px;line-height:1.5}
 body.dc .stageen{font-size:20px;line-height:1.55}
 /* save offline · stop at his questions: one quiet row */
 body.dc .dc-opts{margin-top:18px;gap:0 28px;font-size:13px;opacity:.85}
 body.dc .now{margin-top:48px!important;padding-top:40px!important;border-top:1px solid var(--line2);align-items:flex-start}
 body.dc .now small{font-size:12px;letter-spacing:.12em;text-transform:uppercase}
 body.dc .now h1,body.dc .nowt{font-size:38px!important;line-height:1.22!important;margin:10px 0 12px!important;letter-spacing:-.01em}
 body.dc .now p,body.dc .nows{display:block;font-size:15px;line-height:1.5}
 body.dc .stagetext{display:block;flex:none;overflow:visible;min-height:0;margin-top:44px!important;padding:0 0 32px!important;border-top:0;font-size:18px!important}
 /* the material panel: sticks under the top bar, scrolls inside itself, generous padding */
 body.dc .lower{position:sticky;top:62px;align-self:start;height:calc(100vh - 62px);height:calc(100dvh - 62px);flex-direction:column;padding:0 36px 0 40px}
 body.dc .lower .panels{flex:1 1 auto;min-height:0;overflow:auto;padding-right:6px}
 body.dc [role=tabpanel]{padding:28px 0 48px!important}
 body.dc .dc-head{min-height:60px}
 body.dc .dc-title{font-size:14px}
 /* the rail: sticks under the top bar, bigger buttons and labels */
 body.dc .dc-rail{position:sticky;top:62px;align-self:start;height:calc(100vh - 62px);height:calc(100dvh - 62px);gap:6px;padding:14px 8px}
 body.dc .dc-rail button{min-height:68px;font-size:12.5px;gap:7px}
 body.dc .dc-rail svg{width:23px;height:23px}
}

/* ---------- phone / tablet (<1100): one natural page scroll instead of a text box under the player ---------- */
@media (max-width:1099px){
 html,body{height:auto}
 body.dc.optB.app{height:auto;min-height:100vh;min-height:100dvh;overflow:visible}
 body.dc .main{height:auto;min-height:100vh;min-height:100dvh}
 body.dc .mtop{position:sticky;top:0;z-index:25}
 body.dc .stage{flex:1 0 auto;overflow:visible;min-height:0}
 body.dc .stagetext{flex:none;overflow:visible;min-height:0;margin-top:28px;padding:6px 0 40px;border-top:1px solid var(--line2)}
 body.dc .stopcard{overflow:visible}
 /* the rail stays pinned to the bottom of the screen while the page scrolls */
 body.dc .dc-rail{position:sticky;bottom:0;z-index:24;background:var(--panel)}
 body.dc .dc-rail button{min-height:58px;font-size:11.5px;white-space:nowrap;letter-spacing:-.01em}
 body.dc [role=tabpanel]{padding:20px 4px 40px!important}
}
@media (max-width:900px){
 :root{--pad:20px;--t-en:18px;--t-heb:29px;--t-title:25px}
 body.dc .stage{padding:20px var(--pad) 8px!important}
 body.dc .screen{min-height:150px!important;height:auto;padding:22px 20px!important;margin-bottom:14px!important;border-radius:12px}
 body.dc .stageheb{font-size:28px!important;line-height:1.5}
 body.dc .stageen{font-size:18px}
 body.dc .dc-opts{margin-top:12px;font-size:13px}
 body.dc .now{margin-top:24px!important;padding-top:22px!important;flex-direction:column;align-items:stretch!important;gap:14px}
 body.dc .now h1,body.dc .nowt{font-size:26px!important;line-height:1.3!important;margin:6px 0 8px!important}
 body.dc .now p,body.dc .nows{display:block!important;font-size:14px}
 body.dc .now .btn-done{align-self:flex-start;min-height:44px;padding:0 18px;font-size:15px}
 [role=tabpanel]{font-size:18px}
 .sheetbody table.w td{padding:14px 6px!important}
 .sheetbody td.en,table.w td.en{font-size:18px}
 .sheetbody td.he,table.w td.he{font-size:28px}
 .stagetext .stepcard .heb,.stepcard p.heb,[role=tabpanel] .stepcard .heb{font-size:29px!important}
 .his-en,.stagetext .his-en{font-size:18px!important}
 .stopcard{padding:18px 16px!important}
}
