*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;height:100dvh;overflow:hidden}body{background:#eef4ec;color:#243c35;font-family:system-ui,-apple-system,"Arial",sans-serif}.reader{width:min(100%,640px);height:100dvh;margin:auto;padding:max(12px,env(safe-area-inset-top)) 18px max(12px,env(safe-area-inset-bottom));display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto 112px auto;gap:12px;overflow:hidden}.reader-top{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px}.reader-top a{color:inherit;text-decoration:none;border:1px solid #bdcebc;border-radius:12px;padding:9px 12px;min-height:42px}.level{font-size:13px;border-radius:30px;background:#dde7d8;padding:7px 11px}.heading p{margin:0}.eyebrow{letter-spacing:.08em;font-size:12px;font-weight:700}.eyebrow span{letter-spacing:0}#today{font-size:13px;color:#586b63;margin-top:8px}#topic{font-size:13px;color:#586b63;margin-top:6px}h1{font-family:Georgia,serif;font-weight:500;font-size:30px;line-height:1.13;margin:6px 0 0}.hint{font-size:14px;margin:0}.paper{min-height:0;border:1px solid #dce4d8;background:#fffdf7;border-radius:20px;padding:14px;display:flex;align-items:center;box-shadow:0 5px 18px #314a3610}#paragraph{margin:0;width:100%;font-family:Georgia,serif;font-size:24px;line-height:1.65}.word{font:inherit;line-height:inherit;display:inline;border:0;border-radius:5px;background:none;padding:3px 2px;margin:0;color:#253c36;cursor:pointer;touch-action:manipulation;text-decoration:underline;text-decoration-style:dotted;text-decoration-color:#afc2ae;text-underline-offset:5px}.word:hover,.word[aria-pressed=true]{background:#dfedb9;text-decoration:none}.word:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #486d54;outline-offset:2px}.sentence-nav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px}.sentence-nav button{min-height:44px;background:#fffdf7;border:1px solid #c5d1bf;border-radius:12px;color:#294638;font-size:14px;padding:8px 5px}.sentence-nav button:disabled{opacity:.42}#pageLabel{font-size:13px;white-space:nowrap}.translation{position:relative;min-height:0;background:#dfe9da;border:1px solid #c0d0b8;border-radius:16px;padding:12px 46px 12px 14px;display:flex;align-items:center}.translation p{margin:0}.translation .selected-spanish{font-size:20px;font-weight:650;line-height:1.25;overflow-wrap:anywhere}.translation .selected-hebrew{font-size:23px;line-height:1.35;margin-top:5px}.translation-placeholder{font-size:17px;line-height:1.6;color:#4a6250}.translation-placeholder span{font-size:16px}#translationText{width:100%}#dismiss{position:absolute;top:8px;right:5px;border:0;border-radius:12px;background:#f8fbf4;font-size:27px;line-height:1;width:36px;height:40px;color:#294638}footer{display:grid;gap:3px;text-align:center;font-size:11px;line-height:1.4;color:#586b63}footer b{font-weight:400}@media(max-height:700px){.reader{gap:8px;padding:10px 14px;grid-template-rows:auto auto auto minmax(0,1fr) auto 100px auto}h1{font-size:25px}.heading #today{margin-top:3px}.heading #topic{margin-top:4px}#paragraph{font-size:23px;line-height:1.6}.paper{padding:12px}.reader-top a{padding:6px 10px}.reader-top{font-size:12px}.hint{font-size:13px}}@media(max-height:590px){.reader{gap:7px;padding:8px 12px;grid-template-rows:auto auto auto minmax(0,1fr) auto 94px auto}h1{font-size:24px}#paragraph{font-size:22px;line-height:1.5}.eyebrow{font-size:11px}.paper{padding:10px}.translation{padding-top:8px;padding-bottom:8px}.translation .selected-spanish{font-size:18px}.translation .selected-hebrew{font-size:21px}footer{font-size:10px}}

/* Reserved explicit-play row; never steals room from a long contextual gloss. */
.reader{grid-template-rows:auto auto auto minmax(0,1fr) auto 156px auto}
.translation{display:grid;grid-template-rows:minmax(0,1fr) 38px;gap:5px;padding-top:8px;padding-bottom:8px}
.audio-controls{display:flex;align-items:center;gap:6px;min-width:0;grid-column:1/-1}
#listen{min-height:36px;border:1px solid #92ad88;border-radius:10px;background:#f8fbf4;color:#294638;font-size:14px;padding:6px 9px;white-space:nowrap}
#audioStatus{font-size:11px;line-height:1.2;min-width:0}
footer a{color:inherit}
@media(max-height:700px){.reader{grid-template-rows:auto auto auto minmax(0,1fr) auto 142px auto}.translation .selected-spanish{font-size:18px}.translation .selected-hebrew{font-size:21px}}
@media(max-height:590px){.reader{gap:6px;grid-template-rows:auto auto auto minmax(0,1fr) auto 138px auto}.translation{padding-left:10px;padding-right:40px}.translation .selected-spanish{font-size:17px}.translation .selected-hebrew{font-size:19px}#listen{font-size:13px;padding:6px}#audioStatus{font-size:10px}footer{font-size:9px}}
