/* Reader controls remain reachable without covering the passage or hymn. */
body>header.unified-header{position:relative!important;top:auto!important}
body>header.unified-header .brand{margin-right:auto;min-width:0}
body>header.unified-header .site-icon-menu>summary{width:auto;min-width:44px;padding:0 10px;box-sizing:border-box}
body>header.unified-header .unified-navigation{order:4;flex-basis:100%}
.core-nav-toggle,.reader-settings-toggle,.hymn-header-toggle{min-height:44px;padding:8px 14px;font:inherit;cursor:pointer;border-radius:8px;white-space:normal}
body>header.core-nav-collapsed .unified-navigation{display:none!important}
#readerView .bible-app-toolbar{position:relative;top:auto}
#readerView.reader-settings-hidden .bible-selector-group,#readerView.reader-settings-hidden .bible-app-toolbar,#readerView.reader-settings-hidden .bible-tools-rail{display:none!important}
#readerView.reader-settings-hidden .bible-reading-workspace{grid-template-columns:minmax(0,1fr)}
#readerView .bible-app-chapter-nav{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}
#readerView .bible-app-chapter-nav button{flex:1 1 140px;min-height:48px;white-space:normal}
#readerView .bible-app-chapter-nav small{display:block}
#readerText{scroll-margin-top:16px;overflow-wrap:break-word}
#hymnsView.hymn-header-hidden>.compact-section-header,#hymnsView.hymn-header-hidden>.portal-heading,#hymnsView.hymn-header-hidden>.hymn-filters,#hymnsView.hymn-header-hidden>.mobile-hymn-languages{display:none!important}
.hymn-header-toggle{margin:8px 0}
#hymnFilters{scroll-margin-top:16px}
#addMemberSong[hidden]{display:none!important}
@media(max-width:700px){.unified-header .site-section-links{flex-wrap:nowrap;overflow-x:auto}.bible-app-chapter-nav{padding-bottom:env(safe-area-inset-bottom)}.reader-settings-toggle{font-size:14px}}
#readerView.reader-settings-hidden .app-bible-versions{display:none!important}
/* Hovering while scrolling is not verse selection. Keep deliberate and keyboard selection visible. */
body.portal-page #readerView #readerText .reader-verse:not(.study-selected):not(:focus-visible):hover{border-color:transparent!important;background:transparent!important;outline:none!important;box-shadow:none!important}
body.portal-page #readerView #readerText .reader-verse:focus-visible{outline:2px solid #ac9cff!important;outline-offset:2px}
