/* Reading controls remain in document flow; popovers are explicit, dismissible controls. */
body.ujn-torah-page #ilan-chumash.ich-app.uj-study-compact{width:calc(100% - 32px)!important;max-width:1800px!important;margin:12px auto!important;padding:0!important}body.ujn-torah-page main:has(>#ilan-chumash.ich-app.uj-study-compact){max-width:none!important;width:100%!important;padding:0!important}#ilan-chumash.ich-app.uj-study-compact .ich-heading{padding:4px 0 10px!important;margin:0!important;min-height:0!important}#ilan-chumash.ich-app.uj-study-compact .ich-heading h1{font:500 28px/1.2 Georgia,serif!important;margin:0 0 4px!important;color:#163f48!important}#ilan-chumash.ich-app.uj-study-compact .ich-heading p{font-size:14px!important;margin:0!important;line-height:1.4!important}#ilan-chumash.ich-app.uj-study-compact .ich-eyebrow,#ilan-chumash.ich-app.uj-study-compact .ich-seal{display:none!important}#ilan-chumash.ich-app.uj-study-compact .ich-location{padding:8px 12px!important;margin:0 0 6px!important;position:static!important;min-height:0!important}#ilan-chumash.ich-app.uj-study-compact .ich-navigation-fields{gap:12px!important;align-items:center!important}#ilan-chumash.ich-app.uj-study-compact .ich-navigation-fields label{font-size:12px!important;display:flex!important;align-items:center;gap:6px}#ilan-chumash.ich-app.uj-study-compact select{min-height:34px!important;padding:5px 9px!important;font-size:14px!important}#ilan-chumash.ich-app.uj-study-compact .ich-tools{position:relative!important;inset:auto!important;padding:8px 0!important;margin:0!important;display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:10px!important;min-height:0!important;overflow:visible!important}#ilan-chumash.ich-app.uj-study-compact .ich-tools fieldset{margin:0!important;padding:0!important;border:0!important;flex:1 1 auto!important}#ilan-chumash.ich-app.uj-study-compact .ich-tools legend{font-size:11px!important;margin:0 0 3px!important}#ilan-chumash.ich-app.uj-study-compact button{min-height:32px;padding:6px 10px;font-size:13px;line-height:1.3}#ilan-chumash.ich-app.uj-study-compact .ich-font{gap:6px!important}#ilan-chumash.ich-app.uj-study-compact #ich-author-details{position:relative!important;flex:0 0 auto!important;width:auto!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;z-index:30}#ilan-chumash.ich-app.uj-study-compact #ich-author-details>summary{background:#edf2e9!important;border:1px solid #b8c8b8!important;border-radius:7px;padding:10px 14px!important;font-size:14px!important;color:#163f48!important;cursor:pointer;list-style:disclosure-closed}#ilan-chumash.ich-app.uj-study-compact #ich-author-details[open]>summary{list-style:disclosure-open}#ilan-chumash.ich-app.uj-study-compact .ujn-author-popover{position:absolute;right:0;top:calc(100% + 8px);width:min(540px,calc(100vw - 40px));max-height:min(650px,70vh);overflow:auto;box-sizing:border-box;background:#fffefa;border:1px solid #bdcabd;border-radius:12px;padding:20px;box-shadow:0 16px 48px #163f4830;color:#163f48}#ilan-chumash.ich-app.uj-study-compact .ich-author-actions{display:flex;gap:8px;margin:0 0 16px!important}#ilan-chumash.ich-app.uj-study-compact .ich-search-label{display:block;font-size:13px;margin-bottom:5px}#ilan-chumash.ich-app.uj-study-compact #ich-author-search{width:100%!important;box-sizing:border-box;height:42px!important;border:1px solid #b8c8b8!important;border-radius:6px;font-size:15px;padding:8px 12px!important}#ilan-chumash.ich-app.uj-study-compact #ich-authors{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin-top:16px;max-height:none!important;overflow:visible!important;padding:0!important}#ilan-chumash.ich-app.uj-study-compact .ich-author-group{grid-column:1/-1;font:600 12px/1.4 sans-serif!important;text-transform:uppercase;letter-spacing:.04em;color:#647963!important;margin:14px 0 2px!important}#ilan-chumash.ich-app.uj-study-compact label.ich-author{display:grid!important;grid-template-columns:20px minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;border:1px solid #dbe2d6!important;border-radius:7px!important;padding:10px!important;background:#fff!important;min-height:54px!important;margin:0!important;box-sizing:border-box;color:#163f48!important}#ilan-chumash.ich-app.uj-study-compact label.ich-author[hidden]{display:none!important}#ilan-chumash.ich-app.uj-study-compact .ich-author input{appearance:auto!important;width:17px!important;height:17px!important;margin:0!important;accent-color:#245b54}#ilan-chumash.ich-app.uj-study-compact .ich-author b{font:600 14px/1.3 sans-serif!important;display:block}#ilan-chumash.ich-app.uj-study-compact .ich-author small{display:block;font-size:13px!important;line-height:1.3;color:#62776c!important}#ilan-chumash.ich-app.uj-study-compact .ich-author em{font:12px sans-serif;color:#62776c!important}#ilan-chumash.ich-app.uj-study-compact .ich-layout{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:16px!important;margin:0!important}#ilan-chumash.ich-app.uj-study-compact .ich-reading,#ilan-chumash.ich-app.uj-study-compact .ich-perushim{position:relative!important;top:auto!important;height:var(--ujn-panel-height,65vh)!important;max-height:none!important;min-height:360px!important;overflow:auto!important;padding:14px 18px!important;box-sizing:border-box;border:1px solid #d6dfd2!important;border-radius:9px!important;background:#fffefa!important;scrollbar-width:thin;scrollbar-color:#b3c1ae transparent}#ilan-chumash.ich-app.uj-study-compact .ich-section-heading,#ilan-chumash.ich-app.uj-study-compact .ich-comment-toolbar{padding:0 0 10px!important;margin:0 0 8px!important;position:static!important}#ilan-chumash.ich-app.uj-study-compact .ich-section-heading h2,#ilan-chumash.ich-app.uj-study-compact .ich-comment-toolbar h2{font:500 22px/1.3 Georgia,serif!important;margin:0!important}#ilan-chumash.ich-app.uj-study-compact .ich-verse{padding:10px 0!important;margin:0!important;border-bottom:1px solid #e1e6dc!important}#ilan-chumash.ich-app.uj-study-compact .ich-verse p,#ilan-chumash.ich-app.uj-study-compact .ich-comment p{margin:6px 0!important;line-height:1.65!important}#ilan-chumash.ich-app.uj-study-compact .ich-he{font-size:calc(var(--ich-text,18px)*1.3)!important}#ilan-chumash.ich-app.uj-study-compact .ich-pt{font-size:var(--ich-text,18px)!important}#ilan-chumash.ich-app.uj-study-compact .ich-translit{font-size:calc(var(--ich-text,18px)*.9)!important;color:#64776b!important}#ilan-chumash.ich-app.uj-study-compact .ich-comment{padding:12px!important;margin:10px 0!important}#ilan-chumash.ich-app.uj-study-compact .ich-current{padding:7px 0!important;margin:0!important}#ilan-chumash.ich-app.uj-study-compact .uj-study-comment-languages{padding:4px 0!important;margin:0!important;border:0!important}#ilan-chumash.ich-app.uj-study-compact .ich-small,#ilan-chumash.ich-app.uj-study-compact #ich-status{font-size:12px!important;margin:6px 0!important}.ujn-reading-tabs{display:none}
@media(max-width:800px){body.ujn-torah-page #ilan-chumash.ich-app.uj-study-compact{width:calc(100% - 24px)!important}#ilan-chumash.ich-app.uj-study-compact .ich-heading h1{font-size:25px!important}#ilan-chumash.ich-app.uj-study-compact .ich-location{padding:8px!important}#ilan-chumash.ich-app.uj-study-compact .ich-navigation-fields{display:flex!important;flex-wrap:wrap!important;gap:8px!important}#ilan-chumash.ich-app.uj-study-compact .ich-navigation-fields label{display:block!important;flex:1;min-width:80px}#ilan-chumash.ich-app.uj-study-compact .ich-navigation-fields select{width:100%!important;max-width:100%!important}#ilan-chumash.ich-app.uj-study-compact .ich-tools{gap:8px!important}#ilan-chumash.ich-app.uj-study-compact .ich-tools fieldset{width:100%!important}#ilan-chumash.ich-app.uj-study-compact .ich-layout{display:block!important}#ilan-chumash.ich-app.uj-study-compact .ich-reading,#ilan-chumash.ich-app.uj-study-compact .ich-perushim{height:auto!important;min-height:0!important;overflow:visible!important;padding:16px!important}#ilan-chumash.ich-app.uj-study-compact[data-ujn-pane=text] .ich-perushim,#ilan-chumash.ich-app.uj-study-compact[data-ujn-pane=comments] .ich-reading{display:none!important}#ilan-chumash.ich-app.uj-study-compact .ujn-reading-tabs{display:flex;gap:0;margin:10px 0;border:1px solid #c7d3c4;border-radius:7px;overflow:hidden}#ilan-chumash.ich-app.uj-study-compact .ujn-reading-tabs button{flex:1;min-height:42px;border:0;border-radius:0;background:#f5f6ef;color:#163f48}#ilan-chumash.ich-app.uj-study-compact .ujn-reading-tabs button[aria-selected=true]{background:#163f48;color:#fff}#ilan-chumash.ich-app.uj-study-compact .ujn-author-popover{position:fixed;top:12vh;left:12px;right:12px;width:auto;max-height:76vh;padding:16px;box-shadow:0 0 0 100vmax #132f3b55,0 16px 40px #163f4830}#ilan-chumash.ich-app.uj-study-compact #ich-authors{gap:5px!important}#ilan-chumash.ich-app.uj-study-compact label.ich-author{padding:8px!important;grid-template-columns:18px minmax(0,1fr)!important}#ilan-chumash.ich-app.uj-study-compact .ich-author em{display:none}#ilan-chumash.ich-app.uj-study-compact .ich-author b{font-size:13px!important}}

body.ujn-torah-page .site-header .header-row{min-height:66px!important;padding-top:6px!important;padding-bottom:6px!important}body.ujn-torah-page .site-header .uj-logo-vector{width:150px!important;height:52px!important}body.ujn-torah-page .site-header .brand{min-width:150px!important}body.ujn-torah-page .site-header .brand>span{display:none!important}
#ilan-chumash.ich-app.uj-study-compact .ich-heading{padding:2px 0 8px!important;border:0!important}#ilan-chumash.ich-app.uj-study-compact .ich-heading h1{font-size:26px!important}#ilan-chumash.ich-app.uj-study-compact .ich-heading p{display:none!important}
#ilan-chumash.ich-app.uj-study-compact .ich-tools{padding:5px 0!important}#ilan-chumash.ich-app.uj-study-compact .ich-tools fieldset{display:flex!important;align-items:center!important;gap:5px!important;flex:1!important}#ilan-chumash.ich-app.uj-study-compact .ich-tools legend{float:left;margin:0 8px 0 0!important;line-height:30px!important}#ilan-chumash.ich-app.uj-study-compact .ujn-author-popover{position:fixed;top:24px;right:24px;max-height:calc(100dvh - 48px);z-index:1000}#ilan-chumash.ich-app.uj-study-compact .ujn-author-close{display:block;width:100%;margin:0 0 12px!important;background:#163f48!important;color:white!important;position:sticky;top:0;z-index:2}
#ilan-chumash.ich-app.uj-study-compact .ich-current{font-size:12px!important}#ilan-chumash.ich-app.uj-study-compact .ich-verse-head{margin:0 0 4px!important;padding:0!important;min-height:30px!important}#ilan-chumash.ich-app.uj-study-compact .ich-comment-verse>h3{font-size:18px!important;margin:12px 0 8px!important}
@media(max-width:800px){#ilan-chumash.ich-app.uj-study-compact .ich-tools fieldset{flex-basis:100%!important;flex-wrap:wrap!important}#ilan-chumash.ich-app.uj-study-compact .ich-tools legend{display:none!important}#ilan-chumash.ich-app.uj-study-compact .ujn-author-popover{top:12px;left:12px;right:12px;max-height:calc(100dvh - 24px)}#ilan-chumash.ich-app.uj-study-compact .ich-location .uj-study-chapters,#ilan-chumash.ich-app.uj-study-compact .ich-location .uj-study-verses,#ilan-chumash.ich-app.uj-study-compact .uj-study-start{display:none!important}}

#ilan-chumash.ich-app.uj-study-compact dialog.ujn-author-popover{margin:0!important;inset:24px 24px auto auto!important;max-width:calc(100vw - 48px)!important;color:#163f48!important}#ilan-chumash.ich-app.uj-study-compact dialog.ujn-author-popover:not([open]){display:none!important}#ilan-chumash.ich-app.uj-study-compact dialog.ujn-author-popover::backdrop{background:rgba(14,39,43,.22)}#ilan-chumash.ich-app.uj-study-compact .ich-navigation-fields label{flex-direction:row!important}#ilan-chumash.ich-app.uj-study-compact .uj-study-comment-languages{display:flex!important;gap:5px!important;align-items:center!important;flex-wrap:wrap!important}#ilan-chumash.ich-app.uj-study-compact .uj-study-comment-languages legend{float:left;font-size:11px!important;line-height:30px;margin-right:6px!important}#ilan-chumash.ich-app.uj-study-compact .ich-current{min-height:0!important;gap:8px!important}#ilan-chumash.ich-app.uj-study-compact .ich-section-heading,#ilan-chumash.ich-app.uj-study-compact .ich-comment-toolbar{min-height:0!important}#ilan-chumash.ich-app.uj-study-compact .ich-comment-toolbar>div{margin:0!important}
@media(max-width:800px){#ilan-chumash.ich-app.uj-study-compact dialog.ujn-author-popover{inset:12px!important;width:auto!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;box-shadow:0 12px 32px #163f4830!important}#ilan-chumash.ich-app.uj-study-compact .ich-navigation-fields label{flex-direction:column!important}#ilan-chumash.ich-app.uj-study-compact .uj-study-comment-languages legend{display:none!important}}
