/* Applies only after the existing Chumash has loaded a readable chapter. */
#ilan-chumash.uj-study-compact{--ich-paper:#faf8f3;--ich-ink:#163f48;--ich-muted:#5d7274;--ich-line:#d9dfd8;--ich-gold:#a7803c;padding:18px 24px 30px;border-radius:8px;max-width:1600px;background:var(--ich-paper)}
#ilan-chumash.uj-study-compact .ich-heading{gap:16px;margin-bottom:14px}#ilan-chumash.uj-study-compact .ich-heading h1{font-size:30px;line-height:1.2;margin:3px 0 7px}#ilan-chumash.uj-study-compact .ich-heading p{font-size:14px;max-width:850px;line-height:1.5}#ilan-chumash.uj-study-compact .ich-seal{width:42px;height:42px;font-size:26px}#ilan-chumash.uj-study-compact .ich-eyebrow{font-size:10px;letter-spacing:.12em;color:#627578}
#ilan-chumash.uj-study-compact .ich-location{padding:10px 0;border-bottom:0}#ilan-chumash.uj-study-compact .ich-navigation-fields{gap:10px;align-items:end;flex-wrap:wrap}#ilan-chumash.uj-study-compact .ich-navigation-fields>label{gap:3px;font-size:11px}#ilan-chumash.uj-study-compact .ich-navigation-fields select{font-size:13px;padding:8px 10px;height:39px;min-width:70px}#ilan-chumash.uj-study-compact .ich-navigation-fields #ich-verse-picker{max-width:150px}#ilan-chumash.uj-study-compact .ich-parasha{font-size:12px;margin-left:auto}#ilan-chumash.uj-study-compact .ich-navigation-fields #ich-edition{font-size:11px;padding:9px 5px}
#ilan-chumash.uj-study-compact .ich-tools{position:relative;top:auto!important;z-index:6;padding:10px 0;gap:16px;align-items:end;background:var(--ich-paper);box-shadow:none;border-bottom:1px solid var(--ich-line)}#ilan-chumash.uj-study-compact .ich-tools .ich-font{margin-left:auto;gap:5px;align-items:center}#ilan-chumash.uj-study-compact .ich-font button{min-height:39px;font-size:12px;padding:7px 10px}#ilan-chumash.uj-study-compact .uj-study-languages{display:flex;gap:6px;flex-wrap:wrap;padding:0;margin:0;border:0;max-width:100%}#ilan-chumash.uj-study-compact .uj-study-languages legend{font-size:10px;letter-spacing:.08em;padding:0;margin-bottom:5px}#ilan-chumash.uj-study-compact .uj-study-native-language{display:none!important}#ilan-chumash.uj-study-compact .uj-study-language{padding:8px 12px;border:1px solid #bfcfc8;min-height:39px;border-radius:5px;background:white;font-size:12px;color:var(--ich-ink)}#ilan-chumash.uj-study-compact .uj-study-language[aria-pressed=true]{background:#163f48;border-color:#163f48;color:white}#ilan-chumash.uj-study-compact .uj-study-language:hover{border-color:#167d9a}#ilan-chumash.uj-study-compact .uj-study-comment-languages{padding:10px 0 14px;border-bottom:1px solid var(--ich-line);margin-bottom:10px}
#ilan-chumash.uj-study-compact .uj-study-picker{position:relative;flex:none;width:auto;min-width:0;margin:0;padding:0;border:1px solid #bfcfc8;border-radius:5px;background:white;color:var(--ich-ink);align-self:end;z-index:8}#ilan-chumash.uj-study-compact .uj-study-picker>summary{min-height:39px;padding:8px 12px;font:600 12px/22px system-ui,sans-serif;cursor:pointer;list-style-position:inside;white-space:nowrap}#ilan-chumash.uj-study-compact .uj-study-picker>summary::marker{font-size:10px}#ilan-chumash.uj-study-compact .uj-study-picker[open]{z-index:15}#ilan-chumash.uj-study-compact .uj-study-picker[open]>.ich-chapter-grid,#ilan-chumash.uj-study-compact .uj-study-picker[open]>#ich-verse-grid{position:absolute;top:calc(100% + 7px);left:0;width:440px;max-width:calc(100vw - 56px);padding:16px;margin:0;background:#faf8f3;border:1px solid #bdcfc8;border-radius:7px;box-shadow:0 12px 36px #163f4825;max-height:65dvh;overflow:auto;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}#ilan-chumash.uj-study-compact .ich-chapter-grid button,#ilan-chumash.uj-study-compact #ich-verse-grid button{min-height:39px;font-size:13px;padding:6px 2px;text-decoration:none;border-radius:4px}#ilan-chumash.uj-study-compact .ich-chapter-grid button[aria-current=page],#ilan-chumash.uj-study-compact #ich-verse-grid button[aria-current=true]{background:var(--ich-ink);color:#fff;border-color:var(--ich-ink)}
#ilan-chumash.uj-study-compact .uj-study-authors{margin-left:0;max-width:100%;padding:0}#ilan-chumash.uj-study-compact .uj-study-authors[open]{width:100%;flex-basis:100%;padding:12px 15px;background:#fff}#ilan-chumash.uj-study-compact .uj-study-authors[open]>summary{padding:0 0 10px;border-bottom:1px solid var(--ich-line)}#ilan-chumash.uj-study-compact .uj-study-authors #ich-authors{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:0 18px;max-height:320px;overflow:auto}#ilan-chumash.uj-study-compact .uj-study-authors .ich-author{min-height:48px}#ilan-chumash.uj-study-compact #ich-author-search{max-width:360px;font-size:14px}#ilan-chumash.uj-study-compact .ich-author-actions{margin:10px 0}#ilan-chumash.uj-study-compact .ich-author-actions button{min-height:36px;font-size:12px}#ilan-chumash.uj-study-compact .uj-study-more[open]{width:100%;flex-basis:100%}#ilan-chumash.uj-study-compact .uj-study-more .ich-sidebar{position:static;max-height:none;border:0;padding:15px;overflow:visible;display:block}#ilan-chumash.uj-study-compact .uj-study-start{font-size:12px;text-decoration:none;white-space:nowrap;padding:8px 0;min-height:39px;align-self:end}
#ilan-chumash.uj-study-compact .ich-layout,#ilan-chumash.uj-study-compact.is-focus .ich-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;align-items:start;margin-top:16px}#ilan-chumash.uj-study-compact.ich-no-bible .ich-layout,#ilan-chumash.uj-study-compact.ich-no-comments .ich-layout{grid-template-columns:minmax(0,1fr)}#ilan-chumash.uj-study-compact .ich-reading,#ilan-chumash.uj-study-compact .ich-perushim{grid-column:auto;grid-row:auto;position:sticky;top:var(--uj-study-top,12px);height:var(--uj-study-panel-height,calc(100dvh - 36px));max-height:none;min-height:320px;padding:0 20px 20px;scroll-padding-top:95px;border-radius:6px;border-color:var(--ich-line);background:#fff}#ilan-chumash.uj-study-compact .ich-section-heading,#ilan-chumash.uj-study-compact .ich-comment-toolbar{padding:12px 2px;margin-bottom:8px;background:#fff;box-shadow:none}#ilan-chumash.uj-study-compact .ich-section-heading h2,#ilan-chumash.uj-study-compact .ich-comment-toolbar h2{font-size:26px;margin-top:2px}#ilan-chumash.uj-study-compact .ich-section-heading button,#ilan-chumash.uj-study-compact .ich-current button{min-height:33px}#ilan-chumash.uj-study-compact .ich-current{padding:5px 0 9px}#ilan-chumash.uj-study-compact #ich-status{margin-bottom:10px;font-size:11px}#ilan-chumash.uj-study-compact .ich-verse{padding:16px 6px 18px;scroll-margin-top:85px}#ilan-chumash.uj-study-compact .ich-verse-head{margin-bottom:5px;gap:6px;flex-wrap:wrap}#ilan-chumash.uj-study-compact .ich-verse-head button{min-height:30px;font-size:10px}#ilan-chumash.uj-study-compact .ich-verse .ich-he,#ilan-chumash.uj-study-compact .ich-verse .ich-translit,#ilan-chumash.uj-study-compact .ich-verse .ich-pt{margin:8px 0}#ilan-chumash.uj-study-compact .ich-comment{padding:16px;border-radius:6px;background:#fff}#ilan-chumash.uj-study-compact .ich-comment-verse>h3{margin:18px 0 12px;padding-top:12px;font-size:20px}
@media(max-width:1000px){#ilan-chumash.uj-study-compact{padding:16px}#ilan-chumash.uj-study-compact .ich-layout{gap:16px}#ilan-chumash.uj-study-compact .ich-reading,#ilan-chumash.uj-study-compact .ich-perushim{padding-inline:14px}#ilan-chumash.uj-study-compact .ich-parasha{display:none}}
@media(max-width:760px){#ilan-chumash.uj-study-compact .ich-layout,#ilan-chumash.uj-study-compact.is-focus .ich-layout{display:block}#ilan-chumash.uj-study-compact .ich-reading,#ilan-chumash.uj-study-compact .ich-perushim{position:relative;top:auto;height:auto;max-height:none;min-height:0;overflow:visible;scrollbar-gutter:auto;overscroll-behavior:auto;padding:0 14px 18px}#ilan-chumash.uj-study-compact .ich-perushim{margin-top:24px}#ilan-chumash.uj-study-compact .ich-section-heading,#ilan-chumash.uj-study-compact .ich-comment-toolbar{position:relative;top:auto}#ilan-chumash.uj-study-compact .ich-tools{gap:10px;align-items:end}#ilan-chumash.uj-study-compact .ich-tools fieldset:first-child{width:auto}#ilan-chumash.uj-study-compact .ich-tools .ich-font{margin-left:0}#ilan-chumash.uj-study-compact .ich-heading h1{font-size:26px}#ilan-chumash.uj-study-compact .ich-heading p{font-size:13px}#ilan-chumash.uj-study-compact .ich-seal{display:none}#ilan-chumash.uj-study-compact .ich-navigation-fields{gap:8px}#ilan-chumash.uj-study-compact .ich-navigation-fields>label:first-child{flex:0 1 auto}#ilan-chumash.uj-study-compact .uj-study-language{min-height:42px;padding:8px 10px}#ilan-chumash.uj-study-compact .uj-study-picker>summary{min-height:42px;padding:9px 11px}#ilan-chumash.uj-study-compact .uj-study-picker[open]>.ich-chapter-grid,#ilan-chumash.uj-study-compact .uj-study-picker[open]>#ich-verse-grid{position:static;width:100%;max-width:100%;border:0;border-top:1px solid var(--ich-line);box-shadow:none;border-radius:0;padding:12px;grid-template-columns:repeat(7,minmax(0,1fr))}#ilan-chumash.uj-study-compact .uj-study-picker[open]{width:100%;flex-basis:100%}#ilan-chumash.uj-study-compact .ich-chapter-grid button,#ilan-chumash.uj-study-compact #ich-verse-grid button{min-height:42px}#ilan-chumash.uj-study-compact .uj-study-authors #ich-authors{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}#ilan-chumash.uj-study-compact .ich-author span{min-width:0}#ilan-chumash.uj-study-compact .ich-author b{overflow-wrap:anywhere}#ilan-chumash.uj-study-compact .ich-author em{font-size:9px}}
@media(max-width:380px){#ilan-chumash.uj-study-compact{padding:12px 10px}#ilan-chumash.uj-study-compact .ich-navigation-fields>label{max-width:100%}#ilan-chumash.uj-study-compact .ich-navigation-fields select{max-width:140px}#ilan-chumash.uj-study-compact .uj-study-languages{gap:5px}#ilan-chumash.uj-study-compact .uj-study-language{font-size:11px;padding:8px 8px}#ilan-chumash.uj-study-compact .ich-reading,#ilan-chumash.uj-study-compact .ich-perushim{padding-inline:10px}#ilan-chumash.uj-study-compact .uj-study-authors #ich-authors{grid-template-columns:1fr}}
@media print{#ilan-chumash.uj-study-compact .ich-tools,#ilan-chumash.uj-study-compact .ich-location,#ilan-chumash.uj-study-compact .uj-study-comment-languages{display:none!important}#ilan-chumash.uj-study-compact .ich-layout{display:block}#ilan-chumash.uj-study-compact .ich-reading,#ilan-chumash.uj-study-compact .ich-perushim{position:static;height:auto;max-height:none;overflow:visible;border:0}}

/* Restore language controls above the reader when the comments are hidden. */
#ilan-chumash.uj-study-compact .ich-tools>.uj-study-comment-languages{padding:0;margin:0;border:0}
