/* hepa Bible — peaceful reading in Royal Purple, Gold and Ivory. */
.bible { --bb-bg: #FFFDF7; --bb-ink: #211735; --bb-mute: #6B6280; --bb-num: #9A7A2E; --bb-line: #EDE5D3; }
.bible[data-theme="sepia"] { --bb-bg: #F6ECD6; --bb-ink: #3B2C17; --bb-mute: #7A6647; --bb-num: #9A6A1E; --bb-line: #E4D3B0; }
.bible[data-theme="dark"] { --bb-bg: #17102A; --bb-ink: #EDE6FA; --bb-mute: #B0A4CC; --bb-num: #F2C14E; --bb-line: #2E2350; }
.bb-bar { position: sticky; top: 64px; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; margin-bottom: 14px;
  background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(124,84,255,.16); border-radius: 20px; box-shadow: 0 12px 30px -22px rgba(91,47,201,.6); }
.bb-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: #F6F1FF; border: 1.5px solid rgba(124,84,255,.22); color: #3A1680; text-decoration: none; cursor: pointer; list-style: none; font-size: .98rem; }
.bb-pill::-webkit-details-marker { display: none; }
.bb-pill:hover { border-color: #7C54FF; }
.bb-icon { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 14px; border: 1.5px solid rgba(124,84,255,.18); background: #fff; color: #4B2785; font-weight: 800; cursor: pointer; text-decoration: none; }
.bb-icon:hover { border-color: #7C54FF; background: #F6F1FF; }
.bb-spacer { flex: 1; }
.bb-drop { position: relative; }
.bb-drop[open] > .bb-sheet { animation: f-rise .25s both; }
.bb-sheet { position: absolute; left: 0; top: calc(100% + 8px); z-index: 20; width: min(720px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; padding: 16px;
  background: #fff; border-radius: 20px; border: 1px solid rgba(124,84,255,.18); box-shadow: 0 30px 60px -20px rgba(46,20,96,.45); }
.bb-group + .bb-group { margin-top: 14px; }
.bb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; margin-top: 8px; }
.bb-grid a, .bb-nums a { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 6px 8px; border-radius: 12px; background: #FAF7FF; border: 1px solid #EEE7FB; color: #2A1650; text-decoration: none; font-weight: 600; text-align: center; font-size: .93rem; }
.bb-grid a:hover, .bb-nums a:hover { background: #F0E9FF; border-color: #7C54FF; }
.bb-grid a.on, .bb-nums a.on { background: linear-gradient(120deg, #7C54FF, #4B2785); color: #fff; border-color: transparent; }
.bb-nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; }

.bb-text { background: var(--bb-bg) !important; color: var(--bb-ink); padding: clamp(20px, 4vw, 48px) !important; max-width: 820px; margin: 0 auto;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif; font-size: var(--bb-size, 18px); line-height: 1.85; border-color: var(--bb-line) !important; transition: background .3s, color .3s; }
.bb-text::before { opacity: .25 !important; }
.bb-title { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: 2em !important; margin: 0 0 .6em; text-align: center; background: none !important; color: var(--bb-ink) !important; letter-spacing: -.02em; }
.bb-title::after { content: ""; display: block; width: 56px; height: 3px; margin: 12px auto 0; border-radius: 3px; background: linear-gradient(90deg, #7C54FF, #F2C14E); }
.bb-h { font-family: "Figtree", system-ui, sans-serif; font-size: .82em; text-transform: uppercase; letter-spacing: .08em; color: var(--bb-num); margin: 1.6em 0 .5em; }
.bb-p { margin: 0 0 .9em; }
.bb-sub { display: block; color: var(--bb-mute); }
.bb-v { cursor: pointer; border-radius: 6px; padding: 1px 2px; transition: background .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.bb-v sup { font-family: "Figtree", sans-serif; font-size: .58em; font-weight: 800; color: var(--bb-num); margin-right: 3px; vertical-align: .55em; }
.bb-v:hover { background: rgba(124,84,255,.07); }
.bb-v:focus-visible { outline: 2px solid #2FD3FF; }
.bb-v.sel { box-shadow: 0 2px 0 0 #7C54FF; background: rgba(124,84,255,.1); }
.bb-v.bb-bm sup::before { content: "★"; color: #D99A1F; margin-right: 2px; }
.bb-v.bb-has-note sup::after { content: "✎"; color: #7C54FF; margin-left: 2px; }
.bb-j { color: #A52A2A; }
.bible[data-theme="dark"] .bb-j { color: #FF9C8A; }
.bb-poem { display: inline-block; padding-left: 1.2em; }
.bb-fn { font-size: .6em; vertical-align: super; color: var(--bb-mute); text-decoration: none; }
.bb-flash { animation: bb-flash 2.4s ease 1; }
@keyframes bb-flash { 0%, 40% { background: rgba(242,193,78,.55); } 100% { background: transparent; } }
.hl-yellow { background: rgba(255,214,79,.55) !important; } .hl-green { background: rgba(122,214,149,.5) !important; } .hl-blue { background: rgba(110,190,255,.45) !important; }
.hl-pink { background: rgba(255,150,190,.5) !important; } .hl-purple { background: rgba(180,150,255,.5) !important; }
.bible[data-theme="dark"] [class*="hl-"].bb-v { color: #17102A; }
.bb-notes { margin-top: 1.5em; font-family: "Figtree", sans-serif; }
.bb-nav { display: flex; justify-content: space-between; gap: 10px; max-width: 820px; margin: 16px auto; flex-wrap: wrap; }
.bb-attr { max-width: 820px; margin: 0 auto 40px; text-align: center; }

.bb-actions { position: fixed; z-index: 70; left: 0; right: 0; margin: 0 auto; bottom: calc(16px + env(safe-area-inset-bottom)); width: min(560px, calc(100vw - 24px)); box-sizing: border-box;
  background: rgba(255,255,255,.97); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-radius: 24px; padding: 16px; border: 1px solid rgba(124,84,255,.2);
  box-shadow: 0 30px 70px -20px rgba(46,20,96,.55); animation: f-rise .25s both; max-height: 80vh; overflow: auto; }
.app-body .bb-actions { bottom: calc(80px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .app-body .bb-actions { bottom: 20px; } }
.bb-act-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bb-act-text { font-family: Georgia, serif; font-size: 1.02rem; color: #2A1650; margin: 8px 0 12px; max-height: 6.5em; overflow: auto; }
.bb-colors { display: flex; gap: 10px; margin-bottom: 12px; }
.bb-colors button { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px #DCD1EE; cursor: pointer; }
.bb-colors button:hover { transform: scale(1.08); box-shadow: 0 0 0 2px #7C54FF; }
.bb-colors .hl-none { background: #fff !important; color: #6B6280; font-weight: 800; }
.bb-act-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.bb-note-box { display: grid; gap: 8px; margin-top: 12px; } .bb-compare { margin-top: 12px; display: grid; gap: 6px; }
.bb-compare p { margin: 0; padding: 10px; border-radius: 12px; background: #FAF7FF; font-family: Georgia, serif; }

.bb-present { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4vh; padding: 6vw;
  background: radial-gradient(120% 120% at 0% 0%, #3A1680, #160C30 60%, #0B0620); color: #FFF8E7; text-align: center; cursor: pointer; }
.bb-present[hidden] { display: none; }
.bb-present .bb-icon { position: absolute; top: 18px; right: 18px; background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.bb-present-ref { font-family: "Bricolage Grotesque", sans-serif; font-size: clamp(1.4rem, 3.4vw, 3rem); color: #F2C14E; letter-spacing: .02em; }
.bb-present-text { font-family: Georgia, serif; font-size: clamp(1.8rem, 5vw, 4.6rem); line-height: 1.35; max-width: 66ch; text-wrap: balance; animation: f-rise .4s both; }
.bb-present-hint { position: absolute; bottom: 20px; font-size: .9rem; opacity: .55; }

.bb-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.bb-tlist { display: grid; gap: 10px; margin-top: 12px; }
.bb-trow { display: flex; align-items: center; gap: 14px; padding: 14px 16px !important; }
.bb-trow.on { box-shadow: 0 0 0 2px #7C54FF, var(--f-glow) !important; }
.bb-tbadge { flex: 0 0 auto; min-width: 58px; height: 58px; padding: 0 6px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #fff; background: linear-gradient(135deg, #7C54FF, #3A1680); }
.bb-hit { display: grid; gap: 4px; } .bb-hit span { font-family: Georgia, serif; color: #2A1650; }
.bb-refhit { font-size: 1.1rem; }
.bb-quote { font-family: Georgia, serif; font-size: 1.05rem; color: #2A1650; margin: 8px 0; padding-left: 12px; border-left: 3px solid #F2C14E; }
.hl-yellow-edge { border-left: 6px solid #FFD64F !important; } .hl-green-edge { border-left: 6px solid #7AD695 !important; } .hl-blue-edge { border-left: 6px solid #6EBEFF !important; }
.hl-pink-edge { border-left: 6px solid #FF96BE !important; } .hl-purple-edge { border-left: 6px solid #B496FF !important; }

/* verse of the day (dashboards) */
.bb-daily { position: relative; overflow: hidden; border-radius: 26px; padding: clamp(18px, 3vw, 28px); color: #FFF8E7; margin-bottom: 14px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(242,193,78,.35), transparent 55%), radial-gradient(120% 140% at 0% 100%, rgba(47,211,255,.18), transparent 55%), linear-gradient(135deg, #5B2FC9 0%, #3A1680 50%, #1C0C42 100%);
  box-shadow: 0 24px 60px -24px rgba(46,20,96,.8); }
.bb-daily::after { content: "✝"; position: absolute; right: 18px; bottom: -30px; font-size: 160px; line-height: 1; opacity: .07; pointer-events: none; }
.bb-daily-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bb-daily .sb-kicker { color: #F2C14E; }
.bb-daily-text { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.15rem, 2.2vw, 1.55rem); line-height: 1.5; margin: 14px 0; color: #fff; border: 0; padding: 0; }
.bb-daily-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bb-daily-foot strong { color: #F2C14E; font-size: 1.05rem; }
.bb-daily .btn-light { background: rgba(255,255,255,.12) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.3) !important; }
.bb-daily .btn-light:hover { background: rgba(255,255,255,.22) !important; }

@media (max-width: 640px) {
  .bb-bar { top: 56px; padding: 8px; gap: 6px; border-radius: 16px; }
  .bb-pill { min-height: 42px; padding: 0 12px; font-size: .92rem; }
  .bb-icon { min-width: 40px; height: 40px; }
  .bb-sheet { position: fixed; left: 12px; right: 12px; top: 120px; width: auto; max-height: 65vh; }
  .bb-text { padding: 20px 16px !important; border-radius: 20px; }
  .bb-nav .btn { flex: 1; }
  .bb-trow { flex-wrap: wrap; }
}
@media print { .bb-bar, .bb-nav, .bb-actions, .bb-present { display: none !important; } .bb-text { box-shadow: none !important; } }
.bible-page .chip.on { color: #3A1680 !important; }
@media (min-width: 900px) { .app-body .bb-actions { left: 284px; } }
