/* Approved editorial direction, November 2026. Native reader actions stay intact. */
body.bible-prototype{--bx-paper:#f8f6ef;--bx-card:#fffcf6;--bx-ink:#152f3d;--bx-accent:#215d61;--bx-soft:#dcecea;--bx-line:#dedbd2;--bx-sand:#f1eadd}
body.bible-prototype .bx-welcome{grid-template-columns:minmax(0,1.25fr) minmax(230px,.8fr);gap:20px;padding:32px 0 42px;margin-bottom:32px}
body.bible-prototype .bx-welcome h1{font-size:clamp(46px,4.5vw,72px);line-height:1.08;letter-spacing:-.045em;max-width:16ch}
body.bible-prototype .bx-welcome p{font-size:17px;line-height:1.7}
body.bible-prototype .bx-welcome .bx-eyebrow{font-size:12px;letter-spacing:.16em}
body.bible-prototype .bx-welcome-mark{position:relative;max-width:360px;isolation:isolate}
body.bible-prototype .bx-welcome-mark img{width:100%;height:auto;max-width:360px;aspect-ratio:1;object-fit:contain}
body.bible-prototype .bx-welcome-mark .bx-masi{margin-bottom:0}
body.bible-prototype .bx-welcome-mark>span:not(.bx-masi),body.bible-prototype .bx-welcome-mark>small{display:none}
body.bible-prototype .bx-masi{width:110px;height:10px;opacity:.55}
body.bible-prototype #resumeReading{padding:26px;border:1px solid var(--bx-line);border-radius:12px;background:var(--bx-card)}
body.bible-prototype #resumeReading strong{font-size:32px}
body.bible-prototype #resumeReading span:last-child{font-size:13px}
body.bible-prototype .bx-brand strong{font-size:26px;line-height:1.1}
body.bible-prototype .bx-nav button{gap:18px}
body.bible-prototype .bx-nav-label small{font-size:12px}
body.bible-prototype .card,body.bible-prototype .landing-feature,body.bible-prototype .landing-disclosure{border-radius:12px}
body.bible-prototype .landing-feature strong{font-size:16px}
body.bible-prototype .landing-feature span{font-size:14px}
body.bible-prototype .landing-feature{padding:22px;min-height:184px}
body.bible-prototype .landing-day-label,body.bible-prototype #view-home #dailyMeta{font-size:12px}
body.bible-prototype #view-home #dailyText{font-size:25px;line-height:1.7}
body.bible-prototype #readerCard{padding:28px 32px;border-radius:12px}
body.bible-prototype #readerTitle{font-size:clamp(34px,3.4vw,48px)}
body.bible-prototype .bx-reader-layout:has(#readerCard:not(.hide)){grid-template-columns:minmax(0,1fr)}
body.bible-prototype[data-library-open=false] .bx-reader-layout:has(#readerCard:not(.hide)) #bookPicker{display:none!important}
body.bible-prototype #readerBody .v{padding:8px 10px;line-height:1.8}
body.bible-prototype #readerBody .coltitle{color:var(--bx-accent);margin-bottom:18px}
body.bible-prototype .br-native-layout{display:none!important}
body.bible-prototype .br-preferences{display:flex;align-items:stretch;gap:20px;padding:16px 18px;margin-bottom:28px;border:1px solid var(--bx-line);border-radius:10px;background:var(--bx-paper)}
body.bible-prototype .br-preferences>label{display:flex;align-items:center;gap:12px;flex:1;min-width:0;font-size:13px;font-weight:700}
body.bible-prototype .br-preferences select{flex:1;min-width:0;font-size:14px!important}
body.bible-prototype .br-preferences .br-toggle{justify-content:space-between;gap:16px}
body.bible-prototype .br-toggle input{appearance:none;position:relative;width:46px;min-width:46px;height:26px;min-height:26px;background:#8a9490;border:0;border-radius:20px;cursor:pointer;margin:0}
body.bible-prototype .br-toggle input:checked{background:var(--bx-accent)}
body.bible-prototype .br-toggle input::after{content:'';position:absolute;width:20px;height:20px;top:3px;left:3px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .15s}
body.bible-prototype .br-toggle input:checked::after{transform:translateX(20px)}
body.bible-prototype .br-disabled{opacity:.55}
body.bible-prototype .br-explanation{padding:26px 28px;margin:32px 0;background:#f2eadc;border:1px solid #dbd0be;border-radius:12px;scroll-margin-top:96px}
body.bible-prototype .br-explanation[hidden]{display:none!important}
body.bible-prototype .br-explanation-heading{margin-bottom:0}
body.bible-prototype #brExplanationToggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:left;padding:0;border:0!important;background:transparent!important}
body.bible-prototype #brExplanationToggle::after{content:'⌄';font:400 22px/1 Arial,sans-serif;color:var(--bx-accent)}
body.bible-prototype #brExplanationToggle[aria-expanded=true]::after{content:'⌃'}
body.bible-prototype .br-explanation-heading h3{font:700 26px/1.2 Manrope,system-ui,sans-serif;margin:0}
body.bible-prototype #brExplanationToggle>span{flex:none;font-size:12px;background:#dcecea;border:1px solid #bdd4d0;color:var(--bx-accent);padding:5px 10px;border-radius:20px}
body.bible-prototype .br-explanation-content{font:400 16px/1.75 Manrope,system-ui,sans-serif;max-width:75ch}
body.bible-prototype .br-explanation-content h4{font-size:16px;margin:16px 0 8px}
body.bible-prototype .br-explanation p{margin:8px 0 16px}
body.bible-prototype .br-explanation details{border-top:1px solid #d9cfbf;margin-top:16px;font-size:14px}
body.bible-prototype .br-explanation summary{padding:12px 0;min-height:44px;cursor:pointer;font-weight:600}
body.bible-prototype .br-context-links{display:grid;gap:8px;padding:0 0 16px}
body.bible-prototype .br-context-links button{text-align:left;padding:12px}
body.bible-prototype .br-study-link{padding:10px 14px;margin-top:10px}
body.bible-prototype #brExplanationContents[hidden]{display:none!important}
body.bible-prototype .br-home-books{margin:30px 0 36px}
body.bible-prototype .br-home-books h2{font:700 30px/1.25 Manrope,system-ui,sans-serif;margin:0 0 20px;letter-spacing:-.025em}
body.bible-prototype .br-home-book-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
body.bible-prototype .br-home-book-grid button{display:flex;align-items:center;gap:16px;padding:20px;text-align:left;min-width:0}
body.bible-prototype .br-home-book-grid button>span:first-of-type{flex:1;min-width:0}
body.bible-prototype .br-home-book-grid strong{display:block;font:700 26px/1.25 Manrope,system-ui,sans-serif;overflow-wrap:anywhere}
body.bible-prototype .br-home-book-grid small{display:block;font-size:12px;font-weight:400;color:var(--bx-muted);margin-top:6px}
body.bible-prototype .br-home-book-grid svg{width:28px;height:28px;fill:none;stroke:#ac844f;stroke-width:1.5;flex:none}
body.bible-prototype .br-home-book-grid button>span:last-child{font-size:22px;color:var(--bx-accent)}
body.bible-prototype main.wrap:has(#resumeReading:not([hidden])) .bx-welcome{padding:28px 0 36px;gap:24px;margin-bottom:24px}
body.bible-prototype main.wrap:has(#resumeReading:not([hidden])) .bx-welcome p{font-size:17px;line-height:1.7;margin-bottom:24px}
body.bible-prototype main.wrap:has(#resumeReading:not([hidden])) .bx-welcome-mark img{width:100%;height:auto}
@layer dimau-kit-light{
  :root:not(#dk) body.bible-prototype .bx-welcome h1,:root:not(#dk) body.bible-prototype main.wrap:has(#resumeReading:not([hidden])) .bx-welcome h1{font-size:clamp(46px,4.5vw,72px)!important;line-height:1.08!important}
  :root:not(#dk) body.bible-prototype main.wrap:has(#resumeReading:not([hidden])) .bx-welcome :is(.bx-primary,.bx-secondary){padding:15px 22px!important;border:1px solid var(--bx-line)!important;border-radius:7px!important;min-height:52px!important;text-decoration:none!important;font-size:16px!important}
  :root:not(#dk) body.bible-prototype main.wrap:has(#resumeReading:not([hidden])) .bx-welcome .bx-primary{background:var(--bx-accent)!important;color:white!important}
  :root:not(#dk) body.bible-prototype .bx-nav button{font-size:16px!important;padding:15px!important;border-radius:10px!important}
  :root:not(#dk) body.bible-prototype .bx-welcome :is(.bx-primary,.bx-secondary){padding:15px 22px!important;font-size:16px!important;border-radius:7px!important;min-height:52px}
  :root:not(#dk) body.bible-prototype .br-preferences select{font-size:14px!important;border-radius:7px!important}
  :root:not(#dk) body.bible-prototype .br-explanation summary{background:transparent!important;border:0!important;border-radius:0!important;font-size:14px!important;padding:12px 0!important}
  :root:not(#dk) body.bible-prototype .br-explanation-heading h3{font:700 26px/1.2 Manrope,system-ui,sans-serif!important}
  :root:not(#dk) body.bible-prototype #brExplanationToggle{padding:0!important;border:0!important;background:transparent!important;flex-wrap:wrap!important}
  :root:not(#dk) body.bible-prototype .br-home-book-grid button{padding:20px!important;border-radius:10px!important}
  :root:not(#dk) body.bible-prototype .br-home-books h2{font:700 30px/1.25 Manrope,system-ui,sans-serif!important}
  :root:not(#dk) body.bible-prototype .br-home-book-grid strong{font:700 26px/1.25 Manrope,system-ui,sans-serif!important}
}
@media(min-width:1200px){
 body.bible-prototype .br-reading-desk.br-with-explanation{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:start}
 body.bible-prototype .br-with-explanation .br-explanation{position:sticky;top:96px;margin:0;padding:18px}
 body.bible-prototype #readerBody .parallel{gap:20px}
 body.bible-prototype #readerBody .parallel>div+div{padding-left:20px}
}
@media(max-width:1100px){body.bible-prototype .br-preferences{gap:12px;flex-wrap:wrap}body.bible-prototype .br-preferences>label{flex-basis:calc(50% - 12px)}body.bible-prototype .br-preferences>label:last-child{flex-basis:100%}body.bible-prototype .landing-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  body.bible-prototype .bx-welcome{display:block;padding:24px 0 30px}
  body.bible-prototype .bx-welcome h1{font-size:clamp(38px,10.2vw,52px);max-width:16ch}
  body.bible-prototype .bx-welcome p{font-size:16px}
  body.bible-prototype .bx-welcome .bx-eyebrow{font-size:12px}
  body.bible-prototype .bx-welcome-mark{display:none}
  body.bible-prototype .bx-welcome .bx-welcome-actions{display:grid;grid-template-columns:1fr;gap:12px}
  body.bible-prototype #readerCard{padding:20px 16px}
  body.bible-prototype .br-preferences{padding:12px;gap:10px;margin-bottom:24px}
  body.bible-prototype .br-preferences>label{flex-basis:100%;min-height:44px}
  body.bible-prototype .br-preferences label:not(.br-toggle){display:grid;grid-template-columns:96px minmax(0,1fr)}
  body.bible-prototype .br-explanation{padding:20px 16px;margin:24px 0}
  body.bible-prototype .br-explanation-heading{flex-wrap:wrap;gap:10px}
  body.bible-prototype .br-explanation-heading h3{font-size:24px}
  body.bible-prototype .br-explanation-content{font-size:16px}
  body.bible-prototype .br-reading-desk{display:flex;flex-direction:column}
  body.bible-prototype .br-reading-desk>.br-explanation{order:-1;width:100%;margin:0 0 24px}
  body.bible-prototype .bx-nav{padding-bottom:env(safe-area-inset-bottom)}
  body.bible-prototype .bx-nav button{gap:5px}
  body.bible-prototype .landing-feature-grid{grid-template-columns:1fr}
  body.bible-prototype #resumeReading{padding:20px;flex-wrap:wrap}
  body.bible-prototype .br-home-book-grid{grid-template-columns:1fr;gap:12px}
  @layer dimau-kit-light{:root:not(#dk) body.bible-prototype .bx-nav button{font-size:12px!important;padding:9px 3px!important;min-height:60px!important}:root:not(#dk) body.bible-prototype .bx-welcome h1,:root:not(#dk) body.bible-prototype main.wrap:has(#resumeReading:not([hidden])) .bx-welcome h1{font-size:clamp(38px,10.2vw,52px)!important}}
}
@media(prefers-reduced-motion:reduce){body.bible-prototype .br-toggle input::after{transition:none}}
@media(forced-colors:active){body.bible-prototype .br-toggle input{appearance:auto}body.bible-prototype .br-toggle input::after{display:none}}
/* Public book/chapter, popular-verse and daily pages share the reading palette. */
body.bible-editorial-static{--sky:#f8f6ef;--sky-deep:#215d61;--ink:#152f3d;--ink-soft:#58676c;--line:#dedbd2;--btn:#215d61;--panel:#fffcf6;--accent:#215d61;background:#f8f6ef!important;color:#152f3d;font-family:Manrope,system-ui,sans-serif}
body.bible-editorial-static .card{background:#fffcf6!important;border:1px solid #dedbd2!important;border-radius:12px;box-shadow:none!important}
body.bible-editorial-static .v{font:400 20px/1.8 Georgia,'Times New Roman',serif}
@media(max-width:760px){body.bible-editorial-static .dk-search span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}body.bible-editorial-static .dk-search{min-width:44px;min-height:44px}}
@layer dimau-kit-light{
 :root:not(#dk) body.bible-editorial-static :is(h1,h2.dk-h2){font-family:Manrope,system-ui,sans-serif!important;font-weight:400!important;color:#152f3d!important}
 :root:not(#dk) body.bible-editorial-static :is(button.go,a.btn:not(.ghost)){background:#215d61!important;color:#fff!important;border-color:#215d61!important}
 :root:not(#dk) body.bible-editorial-static .dk-header{background:#f8f6ef!important;border-color:#dedbd2!important;box-shadow:none!important}
 :root:not(#dk) body.bible-editorial-static :is(.card,.chip,.chips a,.dk-nav a,.dk-tools button,.dk-account,.dk-brand,.dk-logo){background:#fffcf6!important;border-color:#dedbd2!important;color:#152f3d!important;box-shadow:none!important;text-shadow:none!important;border-radius:8px!important;backdrop-filter:none!important}
 :root:not(#dk) body.bible-editorial-static :is(.chip,.chips a){font-size:15px!important;line-height:1.5!important;overflow-wrap:anywhere}
}

/* Loading stability: keep room for the verse of the day while it is fetched, so the card and
   everything below it do not jump when it arrives. Once the verse is in, its own height applies. */
body.bible-prototype #view-home #dailyText:empty{min-height:5.1em;min-height:3lh}
@media(max-width:760px){body.bible-prototype #view-home #dailyText:empty{min-height:6.8em;min-height:4lh}}
/* The hero picture wrapper must not add a box of its own; the image keeps its existing layout. */
body.bible-prototype .bx-welcome-mark picture{display:contents}
/* The saved-chapter name fills in once the book list arrives; hold its one line meanwhile. */
#resumeReference:empty::before{content:'\a0'}
