/* BibleSlide public Bible reader — uses the theme tokens (main.css / site.css) with fallbacks. */
.bsbl-hero { padding: var(--s-6, 2.5rem) 0 var(--s-5, 2rem); background: radial-gradient(800px 380px at 85% 0%, rgba(91, 140, 255, .2), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(244, 180, 0, .1), transparent 60%); }
.bsbl-hero h1 { margin: .35rem 0 .2rem; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); }
.bsbl-sub { margin: 0; opacity: .8; }
.bsbl .crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .95rem; }

.bsbl-pickers { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; margin-top: var(--s-5, 2rem); }
.bsbl-field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; flex: 1 1 200px; font-size: .85rem; font-weight: 700; letter-spacing: .02em; }
.bsbl-field[hidden] { display: none; }
.bsbl-field--ch { flex: 0 1 110px; }
.bsbl-field--ref { flex: 2 1 260px; }
.bsbl-field select, .bsbl-field input { width: 100%; min-height: 48px; padding: 0 .9rem; border: 1.5px solid transparent; border-radius: 14px; background: #fff; color: var(--c-paper-ink, #0f1a3d); font: inherit; font-size: 1rem; font-weight: 500; }
.bsbl-field select:focus-visible, .bsbl-field input:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(244, 180, 0, .6); }
.bsbl-go { display: flex; gap: .4rem; }
.bsbl-go input { flex: 1; }
.bsbl-alert { margin: var(--s-4, 1.25rem) 0 0; padding: .8rem 1rem; border-radius: 14px; background: #fff4d6; color: #5c4300; font-weight: 600; }

.bsbl-paper { padding-bottom: var(--s-7, 3rem); }
.bsbl-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; max-width: 46rem; padding-top: var(--s-5, 2rem); }
.bsbl .tool-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .9rem; border-radius: 12px; border: 1px solid var(--c-paper-line, #e1e7f3); background: #fff; color: var(--c-paper-ink, #0f1a3d) !important; font: 700 .92rem var(--f-body, system-ui, sans-serif); cursor: pointer; }
.bsbl .tool-btn:hover { border-color: var(--c-royal-2, #2552c4); color: var(--c-royal, #1e3a8a) !important; }
.bsbl-text, .bsbl-nav, .bsbl-info, .bsbl-tools { margin-left: auto; margin-right: auto; }
.bsbl-size, .bsbl-share { display: flex; flex-wrap: wrap; gap: .4rem; }

.bsbl-text { --bsbl-size: 1.2rem; max-width: 46rem; padding-top: var(--s-5, 2rem); }
.bsbl-verses { margin: 0; font-family: var(--f-serif, Georgia, "Times New Roman", serif); font-size: var(--bsbl-size); line-height: 1.85; color: var(--c-paper-ink, #0f1a3d); overflow-wrap: break-word; }
.bsbl-v { scroll-margin-top: 90px; }
.bsbl-v:target { background: #fff4c2; box-shadow: 0 0 0 .2em #fff4c2; border-radius: 3px; }
.bsbl-n { margin-left: .15em; font: 700 .62em/1 var(--f-body, system-ui, sans-serif); vertical-align: super; color: var(--c-gold-deep, #b98300) !important; text-decoration: none; }
.bsbl-n:hover { text-decoration: underline; }
.bsbl-missing { padding: var(--s-5, 2rem) 0; }

.bsbl-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; max-width: 46rem; margin-top: var(--s-6, 2.5rem); }
.bsbl-nav-link { display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1.1rem; border-radius: 16px; background: #fff; border: 1.5px solid var(--c-paper-line, #e1e7f3); color: var(--c-paper-ink, #0f1a3d) !important; text-decoration: none; font-weight: 700; }
.bsbl-nav-link small { color: var(--c-paper-muted, #5b6785); font-weight: 600; }
.bsbl-nav-link.next { grid-column: 2; text-align: right; }
.bsbl-nav-link:hover { border-color: var(--c-royal-2, #2552c4); }

.bsbl-books { padding-top: var(--s-5, 2rem); }
.bsbl-search { display: flex; gap: .5rem; max-width: 640px; }
.bsbl-search input { flex: 1; min-width: 0; min-height: 48px; padding: 0 1rem; border: 1.5px solid var(--c-paper-line, #e1e7f3); border-radius: 14px; background: #fff; color: var(--c-paper-ink, #0f1a3d); font: inherit; }
.bsbl-results { margin-top: var(--s-5, 2rem); }
.bsbl-results h2 { font-size: 1.2rem; }
.bsbl-note { color: var(--c-paper-muted, #5b6785); }
.bsbl-hits { display: grid; gap: .6rem; margin: 0; padding-left: 1.4rem; color: var(--c-paper-ink, #0f1a3d); line-height: 1.6; }
.bsbl-testament { margin: var(--s-6, 2.5rem) 0 var(--s-3, 1rem); font-size: 1.3rem; color: var(--c-paper-ink, #0f1a3d); }
.bsbl-booklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .5rem; margin: 0; padding: 0; list-style: none; }
.bsbl-booklist details { border-radius: 14px; background: #fff; border: 1.5px solid var(--c-paper-line, #e1e7f3); }
.bsbl-booklist details[open] { grid-column: 1 / -1; }
.bsbl-booklist summary { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 1rem; font-weight: 700; color: var(--c-paper-ink, #0f1a3d); cursor: pointer; list-style: none; }
.bsbl-booklist summary::-webkit-details-marker { display: none; }
.bsbl-booklist summary small { color: var(--c-paper-muted, #5b6785); font-weight: 600; }
.bsbl-chapters { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem 1rem; }
.bsbl-chapters a { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 10px; background: var(--c-paper-2, #eef2fa); color: var(--c-paper-ink, #0f1a3d) !important; font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.bsbl-chapters a:hover { background: var(--c-royal, #1e3a8a); color: #fff !important; }

.bsbl-info { max-width: 46rem; margin-top: var(--s-6, 2.5rem); color: var(--c-paper-ink, #0f1a3d); }
.bsbl-info summary { cursor: pointer; font-weight: 700; }
.bsbl-info dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; margin: .8rem 0 0; }
.bsbl-info dt { font-weight: 700; color: var(--c-paper-muted, #5b6785); }
.bsbl-info dd { margin: 0; overflow-wrap: anywhere; }
.bsbl-free { color: var(--c-paper-muted, #5b6785); }

@media (max-width: 640px) {
  .bsbl-field, .bsbl-field--ref { flex-basis: 100%; }
  .bsbl-field--ch { flex: 1 1 100px; }
  .bsbl-pickers .bsbl-field[data-pick-book] { flex: 3 1 160px; }
  .bsbl-text { --bsbl-size: 1.1rem; }
  .bsbl-nav { grid-template-columns: 1fr; }
  .bsbl-nav-link.next { grid-column: 1; }
  .bsbl-info dl { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .site-footer, .bsbl-pickers, .bsbl-tools, .bsbl-nav, .bsbl-free, .bsbl .crumbs { display: none !important; }
  .bsbl-hero { padding: 0; background: none; color: #000; }
  .bsbl-info details > *:not(summary) { display: block; }
  .bsbl-verses { color: #000; }
}

/* Study panel (tabs from add-ons: Commentary, Study Assistant) */
.bsbl-study { max-width: 46rem; margin-top: var(--s-6, 2.5rem); }
.bsbl-study-tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 2px solid var(--c-paper-line, #e1e7f3); scrollbar-width: none; }
.bsbl-study-tabs [role="tab"] { position: relative; flex: none; min-height: 46px; padding: 0 16px; border: 0; background: none; color: var(--c-paper-muted, #5b6785); font: 700 1rem var(--f-body, system-ui, sans-serif); cursor: pointer; }
.bsbl-study-tabs [role="tab"][aria-selected="true"] { color: var(--c-royal, #1e3a8a); }
.bsbl-study-tabs [role="tab"][aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -2px; height: 3px; border-radius: 3px; background: var(--c-gold, #f4b400); }
.bsbl-study-tabs [role="tab"]:focus-visible, .bsbl-study-panel:focus-visible { outline: 3px solid rgba(37, 82, 196, .45); outline-offset: 2px; border-radius: 10px; }
.bsbl-study-panel { padding-top: 18px; color: var(--c-paper-ink, #0f1a3d); }
