/* Scoped to Bible Reader; follows the original site's sss-mode-day/night setting. */
.sssf-bible-reader{--sb-bg:#182226;--sb-card:#222e32;--sb-fg:#f3ede2;--sb-muted:#bbc8c7;--sb-stroke:#526366;--sb-accent:#e9b96a;font-family:Georgia,serif;color:var(--sb-fg);font-size:17px;line-height:1.65}
html.sss-mode-day .sssf-bible-reader,body.sss-mode-day .sssf-bible-reader,.sssf-bible-reader.sssf-bible-day{--sb-bg:#f3eee3;--sb-card:#fffdf9;--sb-fg:#23303a;--sb-muted:#46545a;--sb-stroke:#afbbb9;--sb-accent:#8f4e14}
.sssf-bible-overlay[hidden]{display:none!important}.sssf-bible-overlay{position:fixed;inset:0;z-index:999999;background:rgba(4,9,11,.78);padding:clamp(8px,3vw,36px);overflow:auto;display:flex;justify-content:center;align-items:flex-start}
.sssf-bible-box{box-sizing:border-box;background:var(--sb-bg);color:var(--sb-fg);border:1px solid var(--sb-stroke);border-radius:14px;width:min(100%,900px);padding:clamp(16px,3vw,32px);box-shadow:0 14px 60px rgba(0,0,0,.25);margin:auto}
.sssf-bible-inline .sssf-bible-box{margin:25px auto}.sssf-bible-open{overflow:hidden}
.sssf-bible-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;border-bottom:1px solid var(--sb-stroke);padding-bottom:12px}.sssf-bible-head h2{font-size:clamp(25px,3.2vw,38px);line-height:1.25;margin:8px 0;color:var(--sb-fg)!important}.sssf-bible-kicker{font:700 11px system-ui,sans-serif;letter-spacing:1.8px;color:var(--sb-accent)}
.sssf-bible-reader button,.sssf-bible-reader input,.sssf-bible-reader select{font:inherit;color:var(--sb-fg);background:var(--sb-card);border:1px solid var(--sb-stroke);border-radius:6px;padding:9px 12px;max-width:100%}.sssf-bible-reader button{cursor:pointer}.sssf-bible-reader button:hover{border-color:var(--sb-accent)}.sssf-bible-reader button:focus-visible,.sssf-bible-reader input:focus-visible,.sssf-bible-reader select:focus-visible{outline:3px solid var(--sb-accent);outline-offset:2px}
.sssf-bible-controls{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:18px 0}.sssf-bible-controls label{display:grid;gap:5px;font-size:.88em}.sssf-bible-controls select{min-width:165px}.sssf-bible-reference{margin:18px 0}.sssf-bible-reference label{display:block;font-size:.85em;margin-bottom:5px}.sssf-bible-reference>div{display:flex;gap:8px}.sssf-bible-reference input{flex:1;min-width:0}.sssf-bible-status{font:.88em system-ui,sans-serif;color:var(--sb-muted)!important;min-height:1.5em;margin:12px 0}
.sssf-bible-verses{max-height:min(58vh,620px);overflow:auto;overscroll-behavior:contain;padding:4px 8px 15px;border-top:1px solid var(--sb-stroke)}.sssf-bible-verses h3{color:var(--sb-fg)!important;font-size:1.35em;margin:16px 0}.sssf-bible-verse{margin:0 0 12px;color:var(--sb-fg)!important}.sssf-bible-verse sup{color:var(--sb-accent);font:bold .75em system-ui,sans-serif;vertical-align:super}.sssf-bible-highlight{background:var(--sb-card);border-left:3px solid var(--sb-accent);padding:8px 10px;border-radius:2px}
@media(max-width:650px){.sssf-bible-controls label{flex:1;min-width:130px}.sssf-bible-controls select{min-width:0;width:100%}.sssf-bible-overlay{padding:8px}.sssf-bible-box{padding:14px}.sssf-bible-verses{max-height:60vh}}
@media print{.sssf-bible-overlay{display:none!important}.sssf-bible-inline .sssf-bible-controls,.sssf-bible-inline .sssf-bible-reference{display:none!important}.sssf-bible-inline .sssf-bible-verses{overflow:visible;max-height:none}}

.sssf-bible-result{padding:2px 6px!important;margin-right:6px;font:700 .83em system-ui,sans-serif!important;color:var(--sb-accent)!important}

/* The Bible page is an immersive reader, not a WordPress card inside a white board. */
body:has(.sssf-bible-inline) .entry-hero,
body:has(.sssf-bible-inline) .page-header,
body:has(.sssf-bible-inline) .entry-header:not(.sssf-bible-head){display:none!important}
body:has(.sssf-bible-inline) .site-main,
body:has(.sssf-bible-inline) .content-area,
body:has(.sssf-bible-inline) .content-bg,
body:has(.sssf-bible-inline) .entry-content-wrap,
body:has(.sssf-bible-inline) article.page,
body:has(.sssf-bible-inline) .site-container:has(.sssf-bible-inline){background:transparent!important;box-shadow:none!important;border:0!important}
body:has(.sssf-bible-inline) .entry-content-wrap{padding:0!important}
body:has(.sssf-bible-inline) .sssf-bible-inline{max-width:980px;margin:0 auto}
body:has(.sssf-bible-inline) .sssf-bible-inline .sssf-bible-box{box-shadow:none;border-radius:12px;margin:16px auto}

/* v0.4.3 — Match Core's html.sss-mode-day/night setting. Avoid the Kadence white card on Bible pages. */
html.sss-mode-night .sssf-bible-reader{--sb-bg:#182226;--sb-card:#222e32;--sb-fg:#f3ede2;--sb-muted:#bbc8c7;--sb-stroke:#526366;--sb-accent:#e9b96a}
html.sss-mode-day .sssf-bible-reader{--sb-bg:#f3eee3;--sb-card:#fffdf9;--sb-fg:#23303a;--sb-muted:#46545a;--sb-stroke:#afbbb9;--sb-accent:#8f4e14}
/* Only target a page containing the inline Bible, never other pages, posts, video players, or modal shells. */
body:has(.sssf-bible-inline) #primary,
body:has(.sssf-bible-inline) #main,
body:has(.sssf-bible-inline) .content-bg,
body:has(.sssf-bible-inline) .site-main,
body:has(.sssf-bible-inline) .content-area,
body:has(.sssf-bible-inline) .entry,
body:has(.sssf-bible-inline) .entry-content,
body:has(.sssf-bible-inline) .entry-content-wrap,
body:has(.sssf-bible-inline) .site-container,
body:has(.sssf-bible-inline) .site-container .content-bg,
body:has(.sssf-bible-inline) article.page,
body:has(.sssf-bible-inline) .post-thumbnail,
body:has(.sssf-bible-inline) .wp-site-blocks main{
 background:transparent!important;background-color:transparent!important;box-shadow:none!important;border-color:transparent!important;
}
body:has(.sssf-bible-inline) .entry-content-wrap,
body:has(.sssf-bible-inline) article.page{padding:0!important;margin:0 auto!important;max-width:none!important}
body:has(.sssf-bible-inline) .sssf-bible-inline{max-width:1100px;width:100%;margin:0 auto;padding:18px 0;background:transparent!important}
body:has(.sssf-bible-inline) .sssf-bible-inline .sssf-bible-box{
 width:100%;max-width:1000px;background:var(--sb-bg)!important;color:var(--sb-fg)!important;
 box-shadow:none!important;margin:0 auto!important;border:1px solid var(--sb-stroke)!important
}
.sssf-bible-reader .sssf-bible-box input:not([type=checkbox]),
.sssf-bible-reader .sssf-bible-box select,
.sssf-bible-reader .sssf-bible-box button{
 background:var(--sb-card)!important;color:var(--sb-fg)!important;border-color:var(--sb-stroke)!important;
}
.sssf-bible-reader .sssf-bible-box input::placeholder{color:var(--sb-muted)!important;opacity:1}
@media(max-width:700px){body:has(.sssf-bible-inline) .sssf-bible-inline{padding:8px 10px}}

/* v0.4.4 — explicit class on reader beats external theme defaults, even when
   Core's state is represented only by its existing header toggle. */
.sssf-bible-reader.sssf-bible-day{--sb-bg:#f3eee3;--sb-card:#fffdf9;--sb-fg:#23303a;--sb-muted:#46545a;--sb-stroke:#afbbb9;--sb-accent:#8f4e14}
.sssf-bible-reader.sssf-bible-night{--sb-bg:#182226;--sb-card:#222e32;--sb-fg:#f3ede2;--sb-muted:#bbc8c7;--sb-stroke:#526366;--sb-accent:#e9b96a}
/* Kadence wrappers, scoped ONLY to the published Read the Bible page. */
body.page:has(.sssf-bible-inline) .entry-hero-container-inner,
body.page:has(.sssf-bible-inline) .entry-hero,
body.page:has(.sssf-bible-inline) .entry-header,
body.page:has(.sssf-bible-inline) .page-header,
body.page:has(.sssf-bible-inline) .page-title,
body.page:has(.sssf-bible-inline) .entry-title,
body.page:has(.sssf-bible-inline) .hero-section{display:none!important}
body:has(.sssf-bible-inline) .site-main > article,
body:has(.sssf-bible-inline) article.entry,
body:has(.sssf-bible-inline) .entry-content-wrap,
body:has(.sssf-bible-inline) #inner-wrap,
body:has(.sssf-bible-inline) #primary,
body:has(.sssf-bible-inline) .content-container,
body:has(.sssf-bible-inline) .content-bg{background:transparent!important;background-image:none!important;box-shadow:none!important;border:0!important}
body:has(.sssf-bible-inline) #inner-wrap{padding-top:0!important}
body:has(.sssf-bible-inline) .sssf-bible-inline{padding:0!important;max-width:1200px!important}
body:has(.sssf-bible-inline) .sssf-bible-box{border:0!important;box-shadow:none!important;max-width:1050px!important}
body:has(.sssf-bible-inline).sssf-bible-site-night .site-main,
body:has(.sssf-bible-inline).sssf-bible-site-night #inner-wrap{background:#141b1e!important}
body:has(.sssf-bible-inline).sssf-bible-site-day .site-main,
body:has(.sssf-bible-inline).sssf-bible-site-day #inner-wrap{background:#e9dcc7!important}

/* v0.4.5 — Reading size controls are scoped to the local KJV verses/results. */
.sssf-bible-reader{--sssf-bible-text-scale:1}
.sssf-bible-reader .sssf-bible-header-actions{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}
.sssf-bible-reader .sssf-bible-header-actions button{min-width:40px;padding:5px 9px!important;line-height:1.5;font:600 15px/1.5 system-ui,sans-serif!important;white-space:nowrap}
.sssf-bible-reader .sssf-bible-header-actions button:disabled{opacity:.4;cursor:not-allowed}
.sssf-bible-reader .sssf-bible-verses .sssf-bible-verse{font-size:calc(1em * var(--sssf-bible-text-scale));line-height:1.8}
.sssf-bible-reader .sssf-bible-verses h3{font-size:calc(1.35em * var(--sssf-bible-text-scale))}
.sssf-bible-reader .sssf-bible-result{font-size:.82em!important}
/* Let the scoped reader background blend smoothly with the site's day/night shell. */
body:has(.sssf-bible-inline).sssf-bible-site-day #inner-wrap,
body:has(.sssf-bible-inline).sssf-bible-site-day .site-main,
body:has(.sssf-bible-inline).sssf-bible-site-day #primary{background:#e9dcc7!important}
body:has(.sssf-bible-inline).sssf-bible-site-night #inner-wrap,
body:has(.sssf-bible-inline).sssf-bible-site-night .site-main,
body:has(.sssf-bible-inline).sssf-bible-site-night #primary{background:#141b1e!important}
@media(max-width:560px){.sssf-bible-reader .sssf-bible-head{gap:8px}.sssf-bible-reader .sssf-bible-header-actions button{min-width:34px;padding:4px 7px!important}.sssf-bible-reader .sssf-bible-head h2{font-size:25px}}

/* v0.4.6: update the entire Bible page shell immediately with Core's switch.
   These selectors only apply where the inline Bible reader is actually present. */
body.sssf-bible-site-day:has(.sssf-bible-inline),
body.sssf-bible-site-day:has(.sssf-bible-inline) #wrapper,
body.sssf-bible-site-day:has(.sssf-bible-inline) #page,
body.sssf-bible-site-day:has(.sssf-bible-inline) #content,
body.sssf-bible-site-day:has(.sssf-bible-inline) #inner-wrap,
body.sssf-bible-site-day:has(.sssf-bible-inline) #primary,
body.sssf-bible-site-day:has(.sssf-bible-inline) .site,
body.sssf-bible-site-day:has(.sssf-bible-inline) .site-content,
body.sssf-bible-site-day:has(.sssf-bible-inline) .site-main,
body.sssf-bible-site-day:has(.sssf-bible-inline) .content-area,
body.sssf-bible-site-day:has(.sssf-bible-inline) main {background-color:#e9dcc7!important;}
body.sssf-bible-site-night:has(.sssf-bible-inline),
body.sssf-bible-site-night:has(.sssf-bible-inline) #wrapper,
body.sssf-bible-site-night:has(.sssf-bible-inline) #page,
body.sssf-bible-site-night:has(.sssf-bible-inline) #content,
body.sssf-bible-site-night:has(.sssf-bible-inline) #inner-wrap,
body.sssf-bible-site-night:has(.sssf-bible-inline) #primary,
body.sssf-bible-site-night:has(.sssf-bible-inline) .site,
body.sssf-bible-site-night:has(.sssf-bible-inline) .site-content,
body.sssf-bible-site-night:has(.sssf-bible-inline) .site-main,
body.sssf-bible-site-night:has(.sssf-bible-inline) .content-area,
body.sssf-bible-site-night:has(.sssf-bible-inline) main {background-color:#141b1e!important;}

/* Bible reading tools & account-private notes, scoped to Bible UI only. */
.sssf-bible-reader .sssf-bible-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:18px 0 8px}
.sssf-bible-reader .sssf-bible-tools button{padding:6px 12px!important;font-size:14px!important}
.sssf-bible-reader .sssf-bible-tools span{font-size:13px;color:var(--sb-muted)}
.sssf-bible-reader .sssf-bible-notes{margin:12px 0 20px;padding:12px 14px;border:1px solid var(--sb-stroke);border-radius:8px;color:var(--sb-fg)}
.sssf-bible-reader .sssf-bible-notes summary{cursor:pointer;font-weight:700}
.sssf-bible-reader .sssf-bible-notes p,.sssf-bible-reader .sssf-bible-note-login{font-size:14px;color:var(--sb-muted)}
.sssf-bible-reader .sssf-bible-notes label{display:block;margin:12px 0}
.sssf-bible-reader .sssf-bible-notes textarea{display:block;box-sizing:border-box;width:100%;min-height:110px;padding:12px;color:var(--sb-fg);background:var(--sb-card);border:1px solid var(--sb-stroke);border-radius:6px;font:inherit}
.sssf-bible-reader .sssf-bible-notes button{margin-right:12px}
.sssf-bible-reader [data-sssf-bible-note-status]{font-size:13px;color:var(--sb-muted)}
.sssf-bible-reader .sssf-bible-note-login a{color:var(--sb-accent)}
@media print{.sssf-bible-tools,.sssf-bible-notes,.sssf-bible-note-login{display:none!important}}

/* Bible private notes: visually distinct, theme-aware and accessible. */
.sssf-bible-reader .sssf-bible-notes{border:2px solid var(--sb-accent)!important;background:var(--sb-card)!important;padding:0!important;margin:20px 0 24px!important;box-shadow:0 3px 14px rgba(0,0,0,.08)}
.sssf-bible-reader .sssf-bible-notes>summary{display:flex;align-items:center;gap:12px;list-style:none;padding:15px 16px;cursor:pointer;color:var(--sb-fg)!important}
.sssf-bible-reader .sssf-bible-notes>summary::-webkit-details-marker{display:none}
.sssf-bible-reader .sssf-bible-notes>summary:focus-visible{outline:3px solid var(--sb-accent);outline-offset:2px}
.sssf-bible-reader .sssf-bible-notes-icon{flex:none;display:grid;place-items:center;background:var(--sb-accent);color:var(--sb-bg);width:42px;height:42px;border-radius:10px;font:bold 27px Georgia,serif}
.sssf-bible-reader .sssf-bible-notes>summary strong{display:block;color:var(--sb-fg);font:700 1.08em system-ui,sans-serif}
.sssf-bible-reader .sssf-bible-notes>summary small{display:block;color:var(--sb-muted);font:400 .8em system-ui,sans-serif;margin-top:4px}
.sssf-bible-reader .sssf-bible-notes-chevron{margin-left:auto;color:var(--sb-accent);font-size:24px;transition:transform .2s}
.sssf-bible-reader .sssf-bible-notes[open] .sssf-bible-notes-chevron{transform:rotate(180deg)}
.sssf-bible-reader .sssf-bible-notes>p,.sssf-bible-reader .sssf-bible-notes>label{margin-left:16px;margin-right:16px}
.sssf-bible-reader .sssf-bible-notes-save{margin:0 8px 16px 16px!important;background:var(--sb-accent)!important;color:var(--sb-bg)!important;font-weight:700!important;border-color:var(--sb-accent)!important}
.sssf-bible-reader .sssf-bible-note-login{padding:16px;border:2px solid var(--sb-accent);border-radius:8px;background:var(--sb-card);color:var(--sb-fg)!important}
.sssf-bible-reader .sssf-bible-note-login strong{color:var(--sb-fg)}
.sssf-bible-reader .sssf-bible-note-login a{font-weight:700;text-decoration:underline}
@media(max-width:500px){.sssf-bible-reader .sssf-bible-notes>summary{padding:12px;gap:8px}.sssf-bible-reader .sssf-bible-notes-icon{width:36px;height:36px}}

/* v0.4.9: passage-first layout shared by full reader and Scripture dialog. */
.sssf-bible-reader .sssf-bible-passage-heading{display:block;margin:18px 0 8px;padding:0 0 9px;border-bottom:1px solid var(--sb-stroke);font:700 1.28em Georgia,serif;color:var(--sb-fg)!important}
.sssf-bible-reader .sssf-bible-passage-heading[hidden]{display:none!important}
.sssf-bible-reader .sssf-bible-status:empty{display:none!important}
.sssf-bible-reader .sssf-bible-passage-heading + .sssf-bible-tools{margin:8px 0 10px}
.sssf-bible-reader .sssf-bible-tools + .sssf-bible-notes{margin-top:10px!important;margin-bottom:14px!important}
.sssf-bible-reader .sssf-bible-tools + .sssf-bible-note-login{margin:10px 0 14px}
.sssf-bible-reader .sssf-bible-verses{margin-top:8px}
@media print{.sssf-bible-reader .sssf-bible-passage-heading{margin-top:12px;break-after:avoid}}

/* Administrator-only audio controls, rendered only for authorized users. */
.sssf-bible-reader .sssf-reader-admin-repair{margin:18px 0;padding:14px;border:1px solid var(--sssf-border, currentColor);border-radius:10px;background:var(--sssf-surface,transparent);color:inherit}
.sssf-reader-admin-repair summary{font-weight:700;cursor:pointer}
.sssf-reader-admin-desc{font-size:.92rem;line-height:1.5}
.sssf-admin-audio-card{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin:12px 0;padding:12px;border:1px solid currentColor;border-radius:8px;opacity:.95}
.sssf-admin-audio-card audio{width:100%;min-width:0}
.sssf-admin-audio-card small{opacity:.8}
.sssf-admin-audio-card button{justify-self:start;padding:9px 15px;cursor:pointer;border-radius:6px}
.sssf-admin-audio-card button:disabled{opacity:.6;cursor:wait}

/* Spoken verse tracking: never change layout/typography of the active line. */
.sssf-bible-reader .sssf-bible-verses .sssf-bible-verse {position:relative;}
.sssf-bible-reader .sssf-bible-verses .sssf-bible-word-current {font:inherit!important;color:inherit!important;text-decoration:none!important;background:none!important;}

/* v0.6.173: gentle KJV chapter-sheet turn; respects reduced-motion settings. */
@keyframes sssf-kjv-chapter-turn {0%{opacity:.4;transform:perspective(950px) rotateY(-12deg) translateX(9px)}60%{opacity:.92;transform:perspective(950px) rotateY(2deg)}100%{opacity:1;transform:perspective(950px) rotateY(0)}}
.sssf-bible-reader .sssf-bible-verses.sssf-kjv-page-turn {transform-origin:left center;animation:sssf-kjv-chapter-turn .55s cubic-bezier(.2,.7,.25,1) both;}
@media(prefers-reduced-motion:reduce){.sssf-bible-reader .sssf-bible-verses.sssf-kjv-page-turn{animation:none!important}}

/* Gold bracket only. The active marker has NO box-model/paint properties on
   the verse: no padding, border, background, font, transform, transition or
   scroll command. Thus the words stay perfectly stationary as it moves. */
.sssf-bible-reader .sssf-bible-verses .sssf-bible-verse.sssf-bible-reading-marker::before {
  content:"";
  position:absolute;
  top:0.12em;
  bottom:0.12em;
  left:-18px;
  width:11px;
  box-sizing:border-box;
  border-left:4px solid var(--sb-accent,#d59655);
  border-top:3px solid var(--sb-accent,#d59655);
  border-bottom:3px solid var(--sb-accent,#d59655);
  border-radius:9px 0 0 9px;
  pointer-events:none;
}
