/* ba-tools.css — Wave 1 reader-tools styles. Pairs with ba-tools.js. */

:root { --ba-font-size: 16px; --ba-line-height: 1.7; }

/* ─── reading layout knobs (apply only inside .ba-verse / .ba-original) ─── */
.ba-verse,
.ba-original {
    font-size: var(--ba-font-size);
    line-height: var(--ba-line-height);
}
body.ba-font-serif .ba-verse,
body.ba-font-serif .ba-original { font-family: 'Iowan Old Style', 'Charter', 'Georgia', 'Times New Roman', serif; }
body.ba-font-mono  .ba-verse,
body.ba-font-mono  .ba-original { font-family: ui-monospace, 'SF Mono', Consolas, monospace; }
body.ba-dyslexia   .ba-verse,
body.ba-dyslexia   .ba-original {
    font-family: 'OpenDyslexic', 'Comic Sans MS', sans-serif;
    letter-spacing: .02em;
    word-spacing: .08em;
}

/* Paragraph mode flattens the per-verse blockquote layout (when chapter/book
   list view groups verses). Until the renderer marks paragraph breaks we just
   reduce the gutter so verses flow as prose. */
body.ba-paragraph .ba-list-row { border-bottom: none; padding: 2px 0; }
body.ba-paragraph .ba-list-row + .ba-list-row { padding-top: 0; }
body.ba-paragraph .ba-list-text { display: inline; }
body.ba-paragraph .ba-list-ref  { font-size: .8em; opacity: .55; margin-right: 4px; }
body.ba-paragraph .ba-list-row  { display: inline; }

/* Red-letter off */
body.ba-no-redletter .has-redletter .red,
body.ba-no-redletter .has-redletter [class*="red"],
body.ba-no-redletter .has-redletter [data-red] { color: inherit !important; }

/* High contrast */
body.ba-hc {
    --bg: #000;
    --fg: #fff;
    background: #000 !important;
    color: #fff !important;
}
body.ba-hc * { border-color: #fff !important; }
body.ba-hc .ba-search-bar { background: #000; border-color: #fff; }
body.ba-hc a, body.ba-hc .ba-xref { color: #ffe14a; }

/* ─── inline toolbar (above #baAnalysis) ─── */
.ba-toolbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    max-width: 1100px;
    margin: 18px auto -8px;
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(0,0,0,.04);
    border: 1px solid rgba(0,0,0,.08);
    user-select: none;
    flex-wrap: wrap;
}
.ba-toolbar.is-on { display: flex; }
body.dark-mode .ba-toolbar { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
body.ba-hc      .ba-toolbar { background: #000; border-color: #fff; }

.ba-tb-left, .ba-tb-right { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

.ba-tb-btn {
    background: transparent;
    border: 1px solid transparent;
    color: inherit;
    width: 32px; height: 32px;
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: background .15s, border-color .15s, transform .15s;
}
.ba-tb-btn:hover { background: rgba(0,0,0,.07); }
body.dark-mode .ba-tb-btn:hover { background: rgba(255,255,255,.08); }
.ba-tb-btn:active { transform: scale(.95); }
.ba-tb-btn:focus-visible { outline: 2px solid var(--accent-1, #9d4edd); outline-offset: 2px; }

.ba-tb-ref {
    font: 600 13px 'Montserrat', system-ui, sans-serif;
    letter-spacing: .8px;
    padding: 0 10px;
    min-width: 6ch;
    text-align: center;
    opacity: .85;
}

@media (max-width: 540px) {
    .ba-toolbar { margin-top: 12px; padding: 4px 6px; }
    .ba-tb-btn  { width: 28px; height: 28px; font-size: 12px; }
    .ba-tb-ref  { font-size: 11px; padding: 0 4px; }
}

/* ─── popover (cite / share / qr / help) ─── */
.ba-pop {
    position: fixed;
    z-index: 30001;
    min-width: 200px;
    max-width: 340px;
    background: #fff;
    color: #000;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 16px 40px rgba(0,0,0,.18);
    font: 13px 'Montserrat', system-ui, sans-serif;
}
body.dark-mode .ba-pop { background: #1c1f25; color: #ececec; border-color: rgba(255,255,255,.14); }
.ba-pop-title { font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; opacity: .55; padding: 4px 6px 6px; }
.ba-pop-item {
    display: block; width: 100%;
    text-align: left;
    padding: 8px 10px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
    font: inherit;
}
.ba-pop-item:hover { background: rgba(0,0,0,.06); }
body.dark-mode .ba-pop-item:hover { background: rgba(255,255,255,.07); }
.ba-pop-url { font-size: 11px; opacity: .55; padding: 6px 8px; word-break: break-all; }
.ba-pop-qr .ba-qr { display: flex; justify-content: center; padding: 6px 0 10px; }
.ba-pop-help th { text-align: left; padding: 4px 12px 4px 6px; font-weight: 600; font-family: ui-monospace, monospace; opacity: .8; }
.ba-pop-help td { padding: 4px 6px; opacity: .85; }
.ba-help-tbl { border-collapse: collapse; }

/* ─── tools panel (preferences) ─── */
.ba-tools-panel {
    position: fixed;
    top: 70px; right: 20px;
    z-index: 30002;
    width: 320px;
    max-width: calc(100vw - 40px);
    background: #fff;
    color: #000;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(0,0,0,.22);
    padding: 12px;
    font: 13px 'Montserrat', system-ui, sans-serif;
}
body.dark-mode .ba-tools-panel { background: #161b22; color: #ececec; border-color: rgba(255,255,255,.14); }
.ba-tp-head {
    display: flex; align-items: center; justify-content: space-between;
    font-weight: 600;
    padding: 4px 4px 10px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    margin-bottom: 8px;
}
body.dark-mode .ba-tp-head { border-bottom-color: rgba(255,255,255,.1); }
.ba-tp-x {
    background: transparent; border: 0; font-size: 20px; cursor: pointer; color: inherit; line-height: 1; padding: 0 4px;
}
.ba-tp-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px;
    padding: 8px 4px;
    font-size: 12px;
}
.ba-tp-row > span { opacity: .7; }
.ba-tp-seg {
    display: inline-flex;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 8px;
    overflow: hidden;
}
body.dark-mode .ba-tp-seg { border-color: rgba(255,255,255,.18); }
.ba-tp-seg button {
    background: transparent;
    border: 0;
    padding: 5px 8px;
    font: 11px 'Montserrat', system-ui, sans-serif;
    cursor: pointer;
    color: inherit;
    border-right: 1px solid rgba(0,0,0,.1);
}
body.dark-mode .ba-tp-seg button { border-right-color: rgba(255,255,255,.12); }
.ba-tp-seg button:last-child { border-right: 0; }
.ba-tp-seg button.is-on {
    background: var(--accent-grad, linear-gradient(135deg, #9d4edd, #d4af37));
    color: #fff;
}
.ba-tp-num { display: inline-flex; align-items: center; gap: 8px; }
.ba-tp-num button {
    width: 28px; height: 28px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid rgba(0,0,0,.18);
    cursor: pointer;
    color: inherit;
    font-weight: 600;
}
body.dark-mode .ba-tp-num button { border-color: rgba(255,255,255,.2); }
.ba-tp-num output { min-width: 36px; text-align: center; font-variant-numeric: tabular-nums; }
.ba-tp-switch { position: relative; display: inline-block; width: 38px; height: 22px; }
.ba-tp-switch input { opacity: 0; width: 0; height: 0; }
.ba-tp-switch span {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.18);
    border-radius: 999px;
    transition: background .2s;
}
body.dark-mode .ba-tp-switch span { background: rgba(255,255,255,.18); }
.ba-tp-switch span::after {
    content: ''; position: absolute; left: 2px; top: 2px;
    width: 18px; height: 18px; border-radius: 50%;
    background: #fff; transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.ba-tp-switch input:checked + span { background: var(--accent-1, #9d4edd); }
.ba-tp-switch input:checked + span::after { transform: translateX(16px); }
.ba-tp-foot { font-size: 11px; opacity: .55; padding: 8px 4px 2px; }

/* ─── toast ─── */
.ba-toast {
    position: fixed;
    left: 50%; bottom: 24px;
    transform: translateX(-50%) translateY(20px);
    background: #111; color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font: 12px 'Montserrat', system-ui, sans-serif;
    letter-spacing: .4px;
    box-shadow: 0 8px 30px rgba(0,0,0,.3);
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 40000;
    pointer-events: none;
}
.ba-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── compare popover (translation picker) ─── */
.ba-pop-compare {
    width: 360px;
    max-height: 460px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.ba-cmp-search {
    width: 100%;
    box-sizing: border-box;
    margin: 4px 0 6px;
    padding: 6px 10px;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font: inherit;
}
body.dark-mode .ba-cmp-search { border-color: rgba(255,255,255,.16); }
.ba-cmp-list { overflow-y: auto; flex: 1; padding-right: 4px; }
.ba-cmp-lang {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    opacity: .55;
    padding: 8px 6px 4px;
    border-top: 1px solid rgba(0,0,0,.06);
}
body.dark-mode .ba-cmp-lang { border-top-color: rgba(255,255,255,.06); }
.ba-cmp-lang:first-child { border-top: 0; }
.ba-cmp-item {
    display: flex;
    gap: 8px;
    align-items: baseline;
    padding: 5px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}
.ba-cmp-item:hover { background: rgba(0,0,0,.05); }
body.dark-mode .ba-cmp-item:hover { background: rgba(255,255,255,.05); }
.ba-cmp-item.is-disabled { opacity: .35; cursor: not-allowed; }
.ba-cmp-item input { margin: 0; }
.ba-cmp-ver { font-weight: 600; min-width: 6ch; }
.ba-cmp-name { opacity: .65; font-size: 11px; }

.ba-pop-foot { padding: 8px 4px 2px; border-top: 1px solid rgba(0,0,0,.06); margin-top: 6px; }
body.dark-mode .ba-pop-foot { border-top-color: rgba(255,255,255,.06); }

/* ─── parallel comparison wrap (after #baAnalysis) ─── */
.ba-compare-wrap {
    width: 100%;
    max-width: 1100px;
    margin: 18px auto 0;
    padding: 8px 4px 0;
}
.ba-cmp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 8px;
    font-size: 10px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    opacity: .65;
}
.ba-cmp-close { background: transparent; border: 0; font-size: 18px; cursor: pointer; opacity: .6; color: inherit; }
.ba-cmp-close:hover { opacity: 1; }

.ba-cmp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}
.ba-cmp-card {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    background: rgba(0,0,0,.02);
    padding: 10px 12px;
}
body.dark-mode .ba-cmp-card { border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.02); }
.ba-cmp-card-head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    margin-bottom: 6px;
    font-size: 12px;
}
body.dark-mode .ba-cmp-card-head { border-bottom-color: rgba(255,255,255,.06); }
.ba-cmp-card-ver { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ba-cmp-card-name { opacity: .55; font-weight: 400; margin-left: 4px; }
.ba-cmp-x, .ba-cmp-diff { font-size: 12px; }
.ba-cmp-text {
    font-size: var(--ba-font-size);
    line-height: var(--ba-line-height);
    min-height: 2em;
}
.ba-cmp-text .ba-cmp-ref {
    display: inline-block;
    min-width: 1.4em;
    font-size: .7em;
    color: rgba(0,0,0,.45);
    font-variant-numeric: tabular-nums;
    margin-right: 2px;
}
body.dark-mode .ba-cmp-text .ba-cmp-ref { color: rgba(255,255,255,.5); }

/* Diff markers */
.ba-diff-add {
    background: rgba(80, 170, 90, .18);
    color: #1b6a2b;
    text-decoration: none;
    padding: 0 2px;
    border-radius: 3px;
}
.ba-diff-del {
    background: rgba(200, 80, 80, .14);
    color: #8a1f1f;
    text-decoration: line-through;
    padding: 0 2px;
    border-radius: 3px;
}
body.dark-mode .ba-diff-add { background: rgba(120,200,130,.18); color: #aef0bc; }
body.dark-mode .ba-diff-del { background: rgba(230,120,120,.18); color: #ffb0b0; }

/* ─── stats popover ─── */
.ba-pop-stats { width: 320px; max-height: 480px; overflow-y: auto; }
.ba-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 4px 4px 8px;
}
.ba-stats-grid > div {
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    background: rgba(0,0,0,.04);
}
body.dark-mode .ba-stats-grid > div { background: rgba(255,255,255,.04); }
.ba-stats-grid b { display: block; font-size: 18px; font-weight: 600; }
.ba-stats-grid span { display: block; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; opacity: .6; margin-top: 2px; }
.ba-stats-line {
    font-size: 12px;
    padding: 4px 4px;
}
.ba-stats-line span { opacity: .55; margin-right: 6px; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; }
.ba-stats-line a { color: inherit; text-decoration: underline; }
.ba-stats-sub {
    font-size: 9px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    opacity: .55;
    padding: 10px 4px 4px;
}
.ba-stats-top {
    list-style: none;
    padding: 0; margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 12px;
}
.ba-stats-top li { display: flex; justify-content: space-between; font-size: 11px; padding: 2px 4px; }
.ba-stats-top .ba-sw { font-family: ui-monospace, Consolas, monospace; }
.ba-stats-top .ba-sn { opacity: .55; }

/* ─── philosophy badge ─── */
.ba-philo-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    color: #fff;
    font-size: 9px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 600;
    vertical-align: middle;
}

/* ─── Wave 3 extras: chips (commentaries / people / places) ─── */
.ba-extras { margin-top: 10px; }
.ba-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.ba-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.14);
    background: rgba(0,0,0,.03);
    color: inherit;
    font: 11px 'Montserrat', system-ui, sans-serif;
    letter-spacing: .4px;
    cursor: default;
}
body.dark-mode .ba-chip { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.03); }
.ba-chip-com {
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 1px;
}
.ba-chip-com:hover { border-color: rgba(0,0,0,.4); }
body.dark-mode .ba-chip-com:hover { border-color: rgba(255,255,255,.4); }
.ba-chip-com.is-on {
    background: var(--accent-grad, linear-gradient(135deg, #9d4edd, #d4af37));
    color: #fff;
    border-color: transparent;
}
.ba-chip-person { background: rgba(157,78,221,.08); border-color: rgba(157,78,221,.25); }
body.dark-mode .ba-chip-person { background: rgba(157,78,221,.18); border-color: rgba(157,78,221,.4); }
.ba-chip-place  { background: rgba(212,175,55,.10); border-color: rgba(212,175,55,.32); }
body.dark-mode .ba-chip-place  { background: rgba(212,175,55,.18); border-color: rgba(212,175,55,.45); }
.ba-chip-place.has-geo::before {
    content: '📍';
    font-size: 10px;
    margin-right: 2px;
}

/* ─── Commentary expanded bodies ─── */
.ba-com-bodies { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.ba-com-card {
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 10px;
    padding: 10px 12px;
    background: rgba(0,0,0,.02);
}
body.dark-mode .ba-com-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.1); }
.ba-com-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    margin-bottom: 6px;
}
body.dark-mode .ba-com-head { border-bottom-color: rgba(255,255,255,.07); }
.ba-com-name   { font-weight: 600; }
.ba-com-author { font-size: 11px; opacity: .65; }
.ba-com-year   { font-size: 10px; opacity: .55; letter-spacing: 1px; }
.ba-com-x      { margin-left: auto; background: transparent; border: 0; font-size: 18px; cursor: pointer; line-height: 1; color: inherit; opacity: .55; }
.ba-com-x:hover{ opacity: 1; }
.ba-com-body   { font-size: var(--ba-font-size); line-height: var(--ba-line-height); }
.ba-com-body p { margin: 0 0 8px; }
.ba-com-body i, .ba-com-body em { font-style: italic; }
.ba-com-foot   { font-size: 10px; letter-spacing: 1px; opacity: .45; padding-top: 6px; text-transform: uppercase; }

/* ─── Synoptic parallel grid ─── */
.ba-synoptic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 6px;
}
@media (max-width: 480px) { .ba-synoptic { grid-template-columns: repeat(2, 1fr); } }
.ba-syn-card {
    padding: 8px;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 8px;
    background: rgba(0,0,0,.02);
    cursor: pointer;
    color: inherit;
    text-align: center;
    font: 10px 'Montserrat', system-ui, sans-serif;
    transition: transform .15s, border-color .15s, background .15s;
}
body.dark-mode .ba-syn-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.1); }
.ba-syn-card:hover {
    transform: translateY(-1px);
    border-color: rgba(0,0,0,.4);
}
body.dark-mode .ba-syn-card:hover { border-color: rgba(255,255,255,.4); }
.ba-syn-gospel { font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; opacity: .7; font-size: 9px; }
.ba-syn-range  { margin-top: 4px; font-size: 11px; }

/* ─── Lex extras (per source: BDB / LSJ / TBESG / TBESH) ─── */
.ba-lex-card {
    margin-top: 6px;
    padding: 8px 10px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 8px;
    background: rgba(0,0,0,.02);
}
body.dark-mode .ba-lex-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.08); }
.ba-lex-head { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.ba-lex-src  { background: var(--accent-1, #9d4edd); color: #fff; font-size: 9px; letter-spacing: 1.4px; padding: 2px 6px; border-radius: 4px; }
.ba-lex-name { font-size: 11px; opacity: .65; }
.ba-lex-gloss{ font-size: 11px; font-style: italic; opacity: .75; }
.ba-lex-body { margin-top: 6px; font-size: 12px; line-height: 1.55; }
.ba-lex-body w { font-weight: 600; }
.ba-lex-body def { font-style: italic; }
.ba-lex-body ref { color: var(--accent-1, #9d4edd); }

/* ─── Bookmark button state ─── */
.ba-tb-bm.is-on { color: var(--accent-2, #d4af37); }
.ba-tb-bm.is-anon { opacity: .4; }

/* ─── Notes panel ─── */
.ba-pop-notes { width: 380px; max-width: calc(100vw - 32px); max-height: 70vh; display: flex; flex-direction: column; }
.ba-notes-list { flex: 1; overflow-y: auto; max-height: 280px; padding: 4px; }
.ba-notes-empty { opacity: .5; font-size: 12px; padding: 8px; }
.ba-note-item {
    border-bottom: 1px solid rgba(0,0,0,.06);
    padding: 8px 4px;
    font-size: 12px;
}
body.dark-mode .ba-note-item { border-bottom-color: rgba(255,255,255,.07); }
.ba-note-item:last-child { border-bottom: 0; }
.ba-note-meta { display: flex; gap: 8px; align-items: center; font-size: 10px; opacity: .55; margin-bottom: 4px; }
.ba-note-vis-lbl { text-transform: uppercase; letter-spacing: 1px; font-size: 9px; padding: 1px 5px; border: 1px solid currentColor; border-radius: 999px; }
.ba-note-del   { margin-left: auto; background: transparent; border: 0; cursor: pointer; font-size: 14px; line-height: 1; opacity: .6; color: inherit; }
.ba-note-del:hover { opacity: 1; color: #c33; }
.ba-note-body  { white-space: pre-wrap; line-height: 1.5; }
.ba-note-input {
    width: 100%;
    box-sizing: border-box;
    margin-top: 6px;
    min-height: 80px;
    padding: 6px 8px;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font: 12px ui-monospace, Consolas, monospace;
    resize: vertical;
}
body.dark-mode .ba-note-input { border-color: rgba(255,255,255,.18); }
.ba-note-actions { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.ba-note-vis {
    flex: 1;
    padding: 4px 6px;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font: inherit;
}
body.dark-mode .ba-note-vis { border-color: rgba(255,255,255,.18); }
.ba-note-save {
    background: var(--accent-grad, linear-gradient(135deg, #9d4edd, #d4af37));
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 5px 14px;
    cursor: pointer;
    font: 600 12px 'Montserrat', system-ui, sans-serif;
}

/* ─── print stylesheet ─── */
@media print {
    .top-right,
    .ba-search-bar,
    .ba-hints,
    .ba-menu,
    .ba-toolbar,
    .ba-pop,
    .ba-tools-panel,
    .ba-toast,
    .ba-compare-overlay,
    .ba-compare-wrap,
    #xsOverlay,
    .row { display: none !important; }

    body { background: #fff !important; color: #000 !important; padding: 0 !important; }
    .wrap { max-width: 100% !important; margin: 0 !important; }
    .bible-analysis { border: 0 !important; padding-top: 0 !important; }
    .ba-verse, .ba-original {
        font-size: 12pt !important;
        line-height: 1.55 !important;
        color: #000 !important;
        background: transparent !important;
        border: 0 !important;
        padding: 0 !important;
    }
    .ba-ref { font-size: 16pt !important; font-weight: 700 !important; margin-bottom: 4mm; }
    .ba-section-label { font-size: 9pt !important; text-transform: uppercase; }
    a, .ba-xref { color: #000 !important; text-decoration: underline; }
    /* avoid orphaned section breaks */
    .ba-section, .ba-focus { break-inside: avoid; }
}
