/* Loaded only by the explicit public editorial routes. */
.public-scripture-reader {
  width: min(700px, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  max-height: 85vh;
  max-height: 85dvh;
  margin: auto;
  padding: 0;
  border: 1px solid var(--line, #d5d8d5);
  border-radius: var(--radius-md, 1rem);
  color: var(--blue-950, #162e3b);
  background: var(--paper, #fffdf8);
  box-shadow: 0 1.5rem 5rem #0006;
}
.public-scripture-reader::backdrop { background: #0b1b29ad; }
.scripture-reader-panel { display: flex; flex-direction: column; max-height: inherit; min-height: 0; padding: 1.5rem 1.75rem; }
.scripture-reader-header { display: flex; flex-wrap: wrap; align-items: start; gap: .5rem 1rem; justify-content: space-between; flex: none; position: sticky; top: 0; background: var(--paper, #fffdf8); z-index: 1; }
.scripture-reader-header h2 { flex: 1 1 12rem; min-width: 0; font: 700 clamp(1.15rem, 3vw, 1.5rem)/1.35 'Libre Baskerville', Georgia, serif; margin: 0; overflow-wrap: anywhere; }
.scripture-reader-header button { flex: none; }
.scripture-reading-area { flex: 1 1 24rem; overflow: auto; overscroll-behavior: contain; min-height: 4rem; margin-top: .8rem; padding: .25rem .4rem .5rem .1rem; scrollbar-gutter: stable; font-size: 1.125rem; line-height: 1.8; }
.scripture-reading-area h3 { font: 650 1.05rem/1.5 'Source Sans 3', sans-serif; margin: .7rem 0; }
.scripture-verse { border-left: 3px solid transparent; padding: .35rem .65rem; margin: .2rem 0; overflow-wrap: anywhere; }
.scripture-verse[data-selected="true"] { border-left-color: var(--blue-700, #315b70); background: var(--blue-050, #eaf1f3); border-radius: 0 .35rem .35rem 0; }
.scripture-verse-number { font-size: .75em; font-weight: 700; margin-right: .45em; vertical-align: super; }
.scripture-omission { margin: .8rem; text-align: center; font-size: .9rem; font-style: italic; }
.scripture-source { border-top: 1px solid var(--line, #d5d8d5); margin-top: .75rem; padding-top: .7rem; flex: 0 1 auto; min-height: 3rem; max-height: 32vh; max-height: 32dvh; overflow: auto; overscroll-behavior: contain; }
.scripture-reader-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .55rem; }
.scripture-reader-actions a { color: var(--blue-800, #234c61); font-size: .95rem; text-underline-offset: .2em; }
.public-scripture-reader button { cursor: pointer; border: 1px solid var(--line, #b9c6cd); border-radius: .4rem; padding: .45rem .7rem; color: inherit; background: var(--cream, #f7f3e9); font: inherit; line-height: 1.3; }
.public-scripture-reader :is(a, button, [tabindex]):focus-visible { outline: 3px solid var(--blue-700, #315b70); outline-offset: 3px; }
.scripture-status { margin: .3rem 0 .6rem; font-size: 1rem; }
.scripture-status:empty { display: none; }
.public-scripture-reader [hidden] { display: none !important; }
.scripture-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
html.public-scripture-open { overflow: hidden; scrollbar-gutter: stable; }
@media (max-width: 600px) {
  .public-scripture-reader { width: calc(100vw - 1rem); max-width: calc(100vw - 1rem); max-height: calc(100vh - 1rem); max-height: calc(100dvh - 1rem); }
  .scripture-reader-panel { padding: 1rem; }
}
