/* tok-a11y 1014: shared readability layer for every tok site (loaded after the site's own CSS).
   Lifts dim text, borders, tabs, footer links and buttons to WCAG AA (4.5:1 text, 3:1 large text / UI) without
   changing each site's look, and styles the centred Sponsor dialog (tok-a11y.js). Same file on every site. */

/* ---------- 1. Form fields (all sites): visible edge and readable placeholder, in the field's own text colour ---------- */
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=color]),
textarea, select {
  border-color: color-mix(in srgb, currentColor 62%, transparent) !important;
}
input::placeholder, textarea::placeholder {
  color: color-mix(in srgb, currentColor 72%, transparent) !important;
  opacity: 1 !important;
}

/* ---------- 2. Sponsor page centred on the engine sites (JesusTok, AngelTok, DivineTok, BibVid) ---------- */
.sponsor-page { margin-inline: auto !important; }
.sponsor-page .sp-chips, .sponsor-page .sp-month { justify-content: flex-start; }

/* ---------- 3. JesusTok + AngelTok (tokv15 engine): footer, tabs, counts, meta text ---------- */
body.jt footer.foot, body.jt footer.foot a, body.jt footer.foot span { color: rgba(243, 234, 219, .88) !important; }
body.jt nav.tabs a:not([aria-current]), body.jt .tabbar a:not([aria-current=page]) { color: rgba(243, 234, 219, .86) !important; }
body.jt .tok-filter small, body.jt button > small { opacity: 1 !important; color: rgba(243, 234, 219, .8) !important; }
body.jt .muted, body.jt .small.muted { color: rgba(243, 234, 219, .82) !important; }
body.jt .solo-src, body.solo-page .solo-card .solo-src { opacity: 1 !important; color: rgba(255, 250, 240, .84) !important; }
/* home page (desktop): the fixed link row at the bottom ran over the feed, the Radio bar and the network strip.
   Give it a dark band, keep it clear of the Radio bar, and leave room under the network strip. */
@media (min-width: 900px) {
  body.home:is(.jt, .at) { padding-bottom: 56px; }
  body.home.jt footer.foot { bottom: 0 !important; padding: 10px 16px 10px 196px !important; background: linear-gradient(to top, rgba(7, 8, 12, .96), rgba(7, 8, 12, .82)); }
  body.home.at footer.foot { bottom: 0 !important; padding: 10px 16px 10px 196px !important; background: linear-gradient(to top, rgba(245, 247, 252, .97), rgba(245, 247, 252, .86)); }
}

/* AngelTok is a light theme */
body.at footer.foot, body.at footer.foot a, body.at footer.foot span { color: rgba(24, 32, 58, .86) !important; }
body.at .tabbar a:not([aria-current=page]) { color: rgba(24, 32, 58, .84) !important; }
body.at .tabbar a[aria-current=page] { color: #1d4f8c !important; }
body.at .tabbar a.tb-share { color: #14213d !important; }
body.at .page-kicker, body.at .p-k, body.at .at-who, body.at span.word > b, body.at .enc-acts .btn.sm { color: #6f5310 !important; }
body.at p > a.btn.sm { color: #14213d !important; }
body.at .solo-src { opacity: 1 !important; }
body.at .at-label { color: rgba(20, 27, 51, .86) !important; }
/* AngelTok single-saying page: the card is a dark photo, so its words are light */
body.at .solo-card .solo-text, body.at .solo-card .solo-text p, body.at .solo-card blockquote p { color: #fbf8f1 !important; text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }
body.at .solo-card figcaption, body.at .solo-card .solo-src { color: rgba(255, 255, 255, .86) !important; }
body.at .solo-card figcaption b { color: #a9cbff !important; }
/* the floating Radio | Ask bar sat white-on-white on AngelTok */
body.at #tokRadio .trBar, body.at .trBar { background: #1b2440 !important; border-color: #c9a24a !important; }
body.at .twn-pill { color: #fff !important; }

/* ---------- 4. DivineTok + BibVid (React app + chat pages) ---------- */
[data-brand=divinetok], .b-divinetok { --dim: #aeaac6; --muted: #c4c0d8; }
[data-brand=bibvid], .b-bibvid { --dim: #aaa293; --muted: #c6bead; }
[data-brand] footer, [data-brand] footer span, [data-brand] footer p, [data-brand] .shareRow > span { color: var(--muted) !important; opacity: 1 !important; }
[data-brand] .dtChipRow .dtAuto { color: #1a1308 !important; }
[data-brand] .oNowB button.on { color: #fff3d6 !important; }
[data-brand] .rStoryT small, [data-brand] .fTile > span, [data-brand] .rCrumbs span { color: var(--muted) !important; }

/* ---------- 5. Article-style tok sites (CatholicTok, HellTok, JewTok, MuslimTok, ApologeticTok, BuddhistTok, MormonTok, ScientologyTok) ---------- */
/* (scope: not the engine sites above: no data-brand on <html>, no jt/at/chat-body class on <body>) */
/* weekly-email card in the dark footer: its heading took the footer's pale colour on a cream card (HellTok's card is dark: left alone) */
html:not([data-brand]) body:not(.jt):not(.at):not(.chat-body):not([data-site=helltok]) footer.foot form.card :is(h2, h3, .h2-sm) { color: #1e2230 !important; }
/* "Send a question or correction" link sits on the dark ask panel */
html:not([data-brand]) body:not(.jt):not(.at):not(.chat-body) .qs-note .linkbtn { color: #cfe0ff !important; text-decoration: underline; }
/* header tag line under the logo (light header) */
html:not([data-brand]) body:not(.jt):not(.at):not(.chat-body) header a.brand small { color: #4a4e5e !important; }
/* HellTok: dark text on the red What's new pill */
body[data-site=helltok] .twn-pill { color: #fff !important; }
/* words over hero photos: brighter gold plus a dark halo so they read on any part of the picture */
html:not([data-brand]) body:not(.jt):not(.at):not(.chat-body) section.hero :is(.eyebrow, .eyebrow-gold, .lead, h1, .hero-verse, .hero-verse span, .hero-heb, .cta .btn-ghost) {
  text-shadow: 0 1px 2px rgba(0, 0, 0, .95), 0 0 12px rgba(0, 0, 0, .75);
}
html:not([data-brand]) body:not(.jt):not(.at):not(.chat-body) section.hero :is(.eyebrow-gold, .hero-verse, .hero-heb) { color: #f8e2a2 !important; }
html:not([data-brand]) body:not(.jt):not(.at):not(.chat-body) section.hero .hero-verse span { color: #fff1e6 !important; }
html:not([data-brand]) body:not(.jt):not(.at):not(.chat-body) section.hero .cta .btn-ghost { background-color: rgba(10, 12, 20, .55) !important; }

/* ---------- 6. Sponsor dialog (tok-a11y.js) ---------- */
html.tka-lock { overflow: hidden; }
dialog.tka-modal {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 16px; border: 0; background: transparent; color: inherit;
  overflow: auto; overscroll-behavior: contain; box-sizing: border-box;
}
dialog.tka-modal[open] { display: grid; place-items: center; }
dialog.tka-modal::backdrop { background: rgba(4, 6, 12, .66); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.tka-box {
  position: relative; box-sizing: border-box; width: 100%; max-width: 600px;
  max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain;
  padding: 52px 24px 24px; border-radius: 20px;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  text-align: left;
}
@supports not (height: 100dvh) { .tka-box { max-height: calc(100vh - 32px); } }
.tka-x {
  position: sticky; top: 0; float: right; margin: -40px -12px 0 0; z-index: 2;
  width: 44px; height: 44px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border-radius: 50%; border: 1px solid color-mix(in srgb, currentColor 55%, transparent);
  background: inherit; background-color: color-mix(in srgb, currentColor 10%, transparent); color: inherit;
}
.tka-x:hover { background-color: color-mix(in srgb, currentColor 18%, transparent); }
.tka-x:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
.tka-body { clear: none; }
.tka-body .tka-content { margin: 0 !important; padding: 0 !important; max-width: none !important; width: auto !important; min-height: 0 !important; }
.tka-body .tka-content .wrap, .tka-body .tka-content .narrow { max-width: none !important; padding-inline: 0 !important; margin: 0 !important; }
.tka-body h1, .tka-body h2 { margin-top: 0; font-size: clamp(24px, 6vw, 32px); line-height: 1.15; }
.tka-body .btnrow a[href="/"] { display: none; }
.tka-load { text-align: center; }
@media (max-width: 420px) { dialog.tka-modal { padding: 10px; } .tka-box { padding: 50px 16px 18px; max-height: calc(100dvh - 20px); border-radius: 16px; } }

/* TK18_WELCOME (visual QA 10-17): first-visit welcome = one short paragraph, Skip always visible */
dialog.intro#intro > p:not(.btnrow):not(:first-of-type), .welcome-card > p:not(.btnrow):nth-of-type(n+2) { display: none; }
dialog.intro#intro, .welcome-card { max-width: min(92vw, 420px); }
dialog.intro#intro > p:first-of-type, .welcome-card > p:first-of-type { font-size: 1.05rem; line-height: 1.45; }
/* TK18_TAPS: 44 px minimum tap targets */
.tabbar a, .btnrow .btn, .btnrow button, button.linkbtn, .chip, footer li a, .foot li a, [data-intro-done], [data-welcome-skip], [data-welcome-go] { min-height: 44px; }
footer li a, .foot li a, button.linkbtn { display: inline-flex; align-items: center; }

/* TK18_NET6 (NET-6, Todd 10-17): every label is its own box with a real gap; headings on their own line; names never wrap apart */
.tk-footlinks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 12px 0; padding: 0; }
.tk-footlinks a { min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.foot .cols p:has(> .foot-more) { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.foot h4 { display: block; margin: 0 0 8px; }
.foot ul { display: flex; flex-direction: column; gap: 8px; }
footer nav.netfoot h2.netfoot-h, footer nav.netfoot h3.netfoot-gh { display: block; margin: 0 0 8px; }
footer nav.netfoot div.netfoot-g { margin: 0 0 14px; }
footer nav.netfoot ul.netfoot-l { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; padding: 0; margin: 0; }
footer nav.netfoot ul.netfoot-l li { display: block; margin: 0; }
footer nav.netfoot a, .foot li a, .drawer a { white-space: nowrap; }
.drawer a, .drawer .drawer-btn, .drawer .drawer-h { display: block; }
.tk-homelinks { justify-content: center; max-width: 1100px; margin: 24px auto 0; padding: 0 16px; }
.tk-subbed { margin: 12px 0; font-weight: 600; }
.tk-subbed a { margin-left: 4px; }
.tk-deals { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); margin: 16px 0; }
.tk-deals .card { display: flex; flex-direction: column; gap: 8px; }
.tk-deals .card .btn { align-self: flex-start; margin-top: auto; }
.tk-pagecopy { max-width: 720px; margin: 0 auto; padding: 24px 16px 40px; }
.tk-pagecopy ul { padding-left: 20px; }

/* TK18_DTTABS (NET-6 audit, divinetok 390): the section tab row scrolls sideways; fade the right edge so a cut label reads as "more this way" */
nav.dtTabs { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); padding-right: 40px; scroll-padding-right: 40px; }

/* TK181_BVMORE: "More" menu inside the swipe app (home locks page scroll, so the footer row and form below it can't be reached) */
details.tk-more { position: relative; }
details.tk-more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: inherit; }
details.tk-more > summary::-webkit-details-marker { display: none; }
details.tk-more .tk-more-menu { display: flex; flex-direction: column; gap: 4px; padding: 8px; min-width: 190px; border-radius: 14px; background: rgba(14,12,20,.97);
  box-shadow: 0 12px 32px rgba(0,0,0,.45); z-index: 2147483646; }
details.tk-more .tk-more-menu a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; color: #fff; text-decoration: none; white-space: nowrap; font-size: 15px; justify-content: flex-start; text-align: left; }
details.tk-more .tk-more-menu a:hover, details.tk-more .tk-more-menu a:focus-visible { background: rgba(255,255,255,.12); }
details.tk-more-tab { flex: 1 1 0; display: flex; justify-content: center; }
details.tk-more-tab > summary { flex-direction: column; gap: 2px; font-size: 11px; width: 100%; height: 100%; }
details.tk-more-tab .tk-more-menu { position: fixed; right: 8px; bottom: calc(132px + env(safe-area-inset-bottom)); }   /* clears the floating Radio/Bible/Ask pill */
nav.bvTabBar:has(> details.tk-more-tab) { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-flow: column; }
nav.bvTabBar > details.tk-more-tab > summary { color: inherit; opacity: .8; }
details.tk-more-hdr .tk-more-menu { position: absolute; right: 0; top: calc(100% + 8px); }
details.tk-more-chip { flex: 0 0 auto; }
details.tk-more-chip > summary { padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); gap: 6px; font-size: 14px; }
details.tk-more-chip .tk-more-menu { position: fixed; right: 12px; top: 112px; }

/* TK181_BVPAINT (human tour): ~2 s blank black first paint -> a warm skeleton while the app boots; actions clear the floating pill */
html { background: #0b0907; }
body:not(:has(main.app))::before { content: ""; position: fixed; inset: 0; z-index: 2147483000; background: radial-gradient(120% 80% at 50% 30%, #3a2a16 0%, #160f08 55%, #0b0907 100%); }
body:not(:has(main.app))::after { content: "Loading the Bible\2026"; position: fixed; z-index: 2147483001; left: 0; right: 0; top: 48%; text-align: center; color: #d6b15c; font: 600 14px/1.4 system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.bsCard .bsBody { padding-bottom: calc(var(--bvTabH, 0px) + 64px + env(safe-area-inset-bottom)) !important; }

/* TK182_NOLABEL: no picture labels (Todd 10-17) */
.jt-label, .at-label, .imglab, .art-label { display: none !important; }
/* TK182_SPACE (Todd 10-17): share icons centred on every tok; footers get real breathing room from the content above */
share-kit { display: flex; justify-content: center; flex-wrap: wrap; margin-left: auto; margin-right: auto; }
.foot > share-kit, footer > share-kit, .wrap > share-kit { flex: 1 1 100%; width: 100%; }
footer.foot, body.page-wrap .foot, .solo-foot { margin-top: 32px; }
/* TK182_GRIDC (Todd: a short last row is centred; grid-center audit 10-17): flex rows of fixed-width cards, centred */
section.sisters > .grid.grid-5, #main .grid.grid-3, #main .warns, #main .doors, .enc-grid, .fToday, .oRail { display: flex !important; flex-wrap: wrap; justify-content: center; }
section.sisters > .grid.grid-5 > * { flex: 0 1 200px; }
#main .grid.grid-3 > *, #main .warns > *, #main .doors > * { flex: 0 1 calc((100% - 48px) / 3); min-width: 260px; }
.enc-grid > * { flex: 0 1 calc((100% - 40px) / 3); min-width: 280px; }
.fToday > * { flex: 0 1 340px; }
.oRail > * { flex: 0 1 calc((100% - 48px) / 4); min-width: 160px; }

/* TK19M_PHONE (10-17): bibvid phone polish: footer text >= 14px, 44px+ tap targets */
@media (max-width:640px){
  footer p,footer .disclose,footer .tk-billfoot,footer .whatIs{font-size:14px!important;line-height:1.55}
  footer a,footer .linkish{font-size:15px}
  a.acctBtn,button.btn{min-height:44px}
  i.bsNew{font-size:12px!important}
  .kicker,details.tk-more>summary span{font-size:12.5px!important}
}
/* /TK19M_PHONE */
/* BVLAY1 (10-18): BibVid layout + readability pass (BIBVID-LAYOUT1, includes TOKS-READ1 for bibvid/divinetok).
   Look-only: no copy or claims change. Shared rhythm: content max-width 1120 (reading 760), 16-20 px gutters,
   body copy >= 16 px with line-height 1.5, captions >= 14 px, overlay text on pictures gets a scrim + shadow. */
:root{--bvl-max:1120px;--bvl-read:760px;--bvl-gut:clamp(16px,4vw,24px)}
/* readable body copy everywhere in the app (not the network footer, which the footer owner handles) */
main.app p,main.app li{line-height:1.5}
main.app p.small.muted,main.app .small.muted{font-size:16px!important;line-height:1.5}
main.app li{font-size:max(1em,16px)}
.oLead{max-width:68ch;margin-left:auto;margin-right:auto}
.fLede{max-width:62ch}
/* intro lines were set in the thin display serif at 18 px (hard to read): same size class in the clear sans,
   brighter; headings keep the serif look */
.fLede,.rLede,.mem1Lede{font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans",sans-serif!important;font-size:clamp(17px,1.6vw,19px)!important;line-height:1.55!important;font-weight:400!important;color:#ece4d3!important;letter-spacing:0!important}
.rStoryT>b{font-size:19px!important}
.c1Ref,.c1Meta,.kSub,.vtdRef,.rStoryT>small,.rTodayCol small,.rTodayCol span{font-size:14px!important}
.rChip{font-size:12.5px!important}
/* the share icons sat centred under left-aligned titles: they follow the header's alignment now */
.fHead share-kit,.rHead share-kit,.mem1Hero share-kit{width:fit-content!important;flex:0 0 auto!important;max-width:100%;justify-content:flex-start!important;margin-left:0!important;margin-right:auto!important;padding-left:0!important}
/* home feed: the verse sits on bright photos/video; a bottom scrim keeps it readable (the picture stays visible above) */
.bsCard::after{content:"";position:absolute;left:0;right:0;bottom:0;height:72%;background:linear-gradient(to top,rgba(0,0,0,.86),rgba(0,0,0,.62) 42%,rgba(0,0,0,0));pointer-events:none;z-index:1}
.bsQuote{text-shadow:0 1px 3px #000,0 2px 18px rgba(0,0,0,.75)!important}
.bsHint,.bsKick{text-shadow:0 1px 3px #000}
/* fine print (disclosures, licences): 14 px minimum, never smaller */
.rFine,.hdAi,.fFine,.mem1Refs,.oCount,.oNone,.oLabel{font-size:14.5px!important;line-height:1.5!important}
.fFine a{font-size:inherit!important}
.bsHint{font-size:15.5px!important;line-height:1.45}
/* faith cards: secondary lines 16 px */
.fCard span:not(.kicker),.fTile span{font-size:16px!important;line-height:1.45}
.fCard .kicker{font-size:12.5px}
/* story map rows: the quote is body copy (16 px), title gets the full row, chips + button sit under it */
.c1Quote{font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans",sans-serif!important;font-style:normal!important;font-size:16px!important;line-height:1.5!important;color:#e6dcc8!important}
.rStory small,.rStoryT small{font-size:14px!important}
/* the chips (Watch / Kids ...) used to sit beside the text and squeeze titles to 2-3 words a line: they go under it */
.rStoryMain{flex-wrap:wrap;row-gap:6px}
.rStoryMain .rStoryT{flex:1 1 0;min-width:0}
.rStoryMain .rChips{flex:1 1 100%;padding-left:86px;box-sizing:border-box;flex-wrap:wrap}
.rStoryList:not(.compact){gap:10px}
.rStory{padding:8px 10px 8px 8px}
@media (max-width:520px){.rStoryMain .rChips{padding-left:0}}
/* watch: tile titles 15.5 px with a stronger scrim + shadow over the picture */
.oThumbT{font-size:15.5px!important;line-height:1.25!important;padding:28px 10px 9px!important;background:linear-gradient(#0000,#000000c7 45%,#000000eb)!important;text-shadow:0 1px 3px #000}
.oThumbB{font-size:13px!important;opacity:1!important;color:#efe6d2}
.oNowT p{font-size:16px;line-height:1.5}
/* phones: the tile title goes UNDER the picture (it overlapped the "New" badge on long titles) */
@media (max-width:560px){
  .oRail .oThumb{aspect-ratio:auto!important;display:flex!important;flex-direction:column;background:#15120d!important;border:1px solid #ffffff1f!important}
  .oRail .oThumb img{aspect-ratio:16/10;height:auto!important}
  .oRail .oThumbT{position:static!important;background:none!important;padding:8px 10px 10px!important;text-shadow:none;font-size:15px!important}
}
/* faith home on phones: the three cards are full width like the tiles */
@media (max-width:640px){.fToday>*{flex:1 1 100%!important}}
.oNowB{flex-wrap:wrap;gap:8px}
/* home: the weekly email card had no side gutter and an off-brand grey button */
section.bvx-sub.card{box-sizing:border-box;max-width:820px;margin:28px auto!important;padding:20px var(--bvl-gut)!important;border-radius:16px}
section.bvx-sub.card .bvx-row{display:flex;gap:10px;flex-wrap:wrap}
section.bvx-sub.card .bvx-row input{flex:1 1 220px;min-width:0}
section.bvx-sub.card .bvx-row .btn{min-height:44px;padding:0 20px;border-radius:999px;border:0;background:linear-gradient(#f3d98f,#d6b15c);color:#1a1308;font-weight:800}
/* faith home: the three "today" cards sit on one row on desktop, then the tiles; consistent card height */
@media (min-width:900px){
  .faithView .fWrap{max-width:960px}
  .fToday>*{flex:1 1 0!important;min-width:0}
  .fTiles{grid-template-columns:repeat(3,1fr)!important}
}
.fToday{margin:6px 0 20px!important}
.fTile{min-height:76px;box-sizing:border-box}
/* memorize: tighter header (counter ring + title) */
.mem1Refs{color:#d9cfbb!important}
/* What's new pill: on phones it sat over page titles. Compact round badge there (label kept for screen readers). */
@media (max-width:640px){
  .twn-pill{font-size:0!important;width:40px;min-width:40px;height:40px;padding:0!important;justify-content:center;border-radius:999px!important;right:8px!important;top:auto!important;bottom:calc(76px + env(safe-area-inset-bottom))!important}
  .twn-pill b{font-size:14px!important;margin:0!important}
  .twn-pill::before{content:"";display:none}
}
/* Read: book grids centre a short last row (Todd's card-grid rule) instead of leaving an empty slot on the right */
.rBooks{--bvn:2;--bvg:10px;display:flex!important;flex-wrap:wrap;justify-content:center;gap:var(--bvg)!important}
.rBooks>li{box-sizing:border-box;flex:0 0 calc((100% - var(--bvg) * (var(--bvn) - 1)) / var(--bvn));min-width:0}
@media (min-width:620px){.rBooks{--bvn:3}}
@media (min-width:860px){.rBooks{--bvn:4;--bvg:12px}}
@media (min-width:1060px){.rBooks{--bvn:6}}
/* P1 (found in this pass): the TK181 boot skeleton ("Loading the Bible...") also covered the server-rendered pages that never
   mount the app (/perks, /chat, /sponsor, /billing ...), so those pages showed only "Loading the Bible" on screen.
   It now shows only where the app actually boots (#root present). */
body:not(:has(#root))::before,body:not(:has(#root))::after{content:none!important;display:none!important}
/* consistent page width + rhythm for the app's content pages */
.oWatch,.rHome,.c1Map{max-width:var(--bvl-max);margin-left:auto;margin-right:auto}
/* P1 (one-agent 10-18, also live): the page-enter animation (vtIn, fill "both") left transform + filter on .view after it ended,
   which makes .view the containing block of every position:fixed child: the reading toolbar (Bookmark / Notes / Continue),
   the Note button and toasts scrolled with the page and landed on top of text (Psalm 23 "Start a reading plan" line).
   Fill backwards only: same entrance, nothing left on .view afterwards. */
.view{animation-fill-mode:backwards!important}
/* phones: the floating reading pills stay on ONE row (Continue + one more), so they never stack over the page */
@media (max-width:480px){
  .fReadFloat{flex-wrap:nowrap!important}
  .fReadFloat>*:nth-child(n+3){display:none!important}
  .fReadFloat>*{min-height:40px!important;padding:6px 12px!important;font-size:14px!important;white-space:nowrap}
  .fReadFloat>.fContinue{max-width:56vw;overflow:hidden;text-overflow:ellipsis;display:inline-block!important;line-height:28px}
}
/* the More menu only exists while its tab is open (closed <details> already hides it; this makes it explicit on every engine) */
details.tk-more:not([open]) .tk-more-menu{display:none!important}
/* server-rendered pages (/perks, /billing ...): fine print 15 px */
body:not(:has(#root)) .small.muted,body:not(:has(#root)) p.small{font-size:15px!important;line-height:1.5!important}
/* ONE billing line per footer: the full Dude.com credit (with "How billing works") stays; the later one-line repeat goes */
footer:has(.dudeCredit) > p.tk-billfoot{display:none!important}
/* list pages: the floating pills only carry "Continue" (Bookmarks / Reading plan live in Faith and More); chapter pages keep Bookmark + Notes */
.fReadFloat:not(:has(.fRibbon))>:not(.fContinue){display:none!important}
.fReadFloat:empty,.fReadFloat:not(:has(.fRibbon)):not(:has(.fContinue)){display:none!important}
/* tablet: the three "today" cards were a narrow centred column; full width like phones until the 3-up desktop row */
@media (min-width:641px) and (max-width:899px){.fToday>*{flex:1 1 100%!important;max-width:none!important}}
/* the scrolled header is solid enough that text never shows through it */
header.topbar.solid,html.bvl-scrolled header.topbar{background:rgba(10,9,8,.96)!important;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
/* the weekly-email strip under the footer already reserves the tab bar; the app's own reserve made a ~110 px dead gap above it */
html.bvTabs body:has(> footer.bvx-strip) main.app{padding-bottom:0!important}
/* desktop watch: the player always fits above the floating Radio/Bible/Ask dock once it is scrolled under the header */
@media (min-width:900px){.oWatch .oStage{max-height:calc(100vh - 190px)}.oWatch .oStage video{max-height:calc(100vh - 190px)}}
/* ---- r2 (tester NO-GO items) ---- */
/* reading: the floating pills (Bookmark / Notes / Continue) and the Note button step aside while you scroll down through Scripture
   and come back when you scroll up or reach the end of the chapter (bvlay1.js sets html.bvl-down) */
.fReadFloat,.bvx-fab{transition:opacity .22s ease,transform .22s ease}
html.bvl-down .fReadFloat,html.bvl-down .bvx-fab{opacity:0!important;transform:translateY(16px)!important;pointer-events:none!important}
/* Memorize sits over the (hidden) Read view: the hidden view no longer takes 4,000 px of page height */
body:has(section.mem1Page) main.app>div.view{height:0!important;min-height:0!important;overflow:hidden!important}
/* ONE footer: the app footer, the weekly email and the network strip read as one band (same surface, no gaps or dividers);
   the share icons are already at the top of every page, so the footer copy of them goes; phones get balanced 2-column link rows */
main.app>footer{border-bottom:0!important}
/* SHAREMATCH2 (10-22): the footer keeps the network Share Kit (the same row as az.ai and every tok site) */
main.app>footer share-kit{margin:6px auto 4px}
main.app>footer p.whatIs a,main.app>footer p.whatIs a:visited{color:#d9c48f!important;text-underline-offset:3px}
html[data-brand=divinetok] main.app>footer p.whatIs a{color:#c7b4ff!important}
footer.bvx-strip{margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;max-width:none!important;background:transparent!important;padding:4px var(--bvl-gut) 28px!important}
footer.bvx-strip>*{max-width:820px;margin-left:auto!important;margin-right:auto!important}
main.app>footer,main.app>footer .disclose,main.app>footer .whatIs,main.app>footer .linkish,main.app>footer .pwaChip,main.app>footer .dudeCredit,main.app>footer .dudeCredit *,.tk-billfoot{font-size:max(14.5px,1em)!important;line-height:1.5}
@media (max-width:640px){
  main.app>footer{display:grid!important;grid-template-columns:1fr 1fr;column-gap:14px;row-gap:2px;align-items:center}
  main.app>footer>*{grid-column:1/-1}
  main.app>footer>.linkish,main.app>footer>.pwaChip{grid-column:auto;min-height:44px;display:flex!important;align-items:center;justify-content:flex-start!important;text-align:left!important;padding-left:0!important;margin:0!important}
  main.app>footer>p.whatIs:first-child{display:flex;flex-wrap:wrap;column-gap:14px;row-gap:4px}
  footer.bvx-strip .bvx-links{display:flex;flex-wrap:wrap;column-gap:18px}
}
/* /perks while plans are closed: no stale "opens soon" lines or an 18+ box with nothing to buy; the weekly email below is the
   "get notified" step. Everything returns by itself when billing opens (data-open="1"). */
section[data-perks][data-open="0"] [data-perks-status],section[data-perks][data-open="0"] .bvx-plans,section[data-perks][data-open="0"] [data-wallet],
section[data-perks][data-open="0"] .bvx-adult,section[data-perks][data-open="0"] [data-perks-msg],section[data-perks][data-open="0"] #checkout{display:none!important}
/* server pages (/perks /chat /deals /terms /privacy /contact /pricing /subscribe ...): the app's type, header and cards */
@font-face{font-family:Cinzel;src:url(/fonts/cinzel.woff2) format("woff2");font-weight:400 900;font-display:swap}
@font-face{font-family:"Instrument Sans";src:url(/fonts/instrument-sans.woff2) format("woff2");font-weight:400 600;font-display:swap}
body:has(>main.chat-main){--sv-gold:#e9c977;--sv-gold2:#f2dca8;--sv-line:rgba(233,201,119,.2);font-family:"Instrument Sans",system-ui,-apple-system,"Segoe UI",sans-serif!important;background:radial-gradient(1100px 520px at 50% -160px,#2b2010 0%,rgba(11,9,7,0) 70%),#0b0907!important;color:#efe7d6!important;min-height:100vh}
body.b-divinetok:has(>main.chat-main){--sv-gold:#c7b4ff;--sv-gold2:#e4dbff;--sv-line:rgba(199,180,255,.22);background:radial-gradient(1100px 520px at 50% -160px,#211a3d 0%,rgba(8,9,26,0) 70%),#08091a!important}
body:has(>main.chat-main) header.chat-top{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:12px;background:rgba(10,9,8,.9)!important;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid rgba(255,255,255,.08)!important;padding:8px max(16px,calc((100vw - 1120px)/2))!important}
body:has(>main.chat-main) header.chat-top a.chat-home:first-child{font-family:Cinzel,serif!important;font-size:19px!important;letter-spacing:.2em;text-transform:uppercase;color:var(--sv-gold)!important;text-decoration:none!important;font-weight:600}
body:has(>main.chat-main) header.chat-top a.chat-home:last-child{background:linear-gradient(#f3d98f,#d6b15c);color:#1a1308!important;border-radius:999px;padding:0 18px;font-weight:700;text-decoration:none!important;display:inline-flex;align-items:center;min-height:42px}
body.b-divinetok:has(>main.chat-main) header.chat-top a.chat-home:last-child{background:linear-gradient(#e4dbff,#b9a2ff)}
body:has(>main.chat-main) main.chat-main{max-width:820px!important;margin:0 auto!important;padding:36px var(--bvl-gut) 56px!important;box-sizing:border-box}
body:has(>main.chat-main) main.chat-main h1{font-family:Cinzel,serif!important;font-weight:500!important;letter-spacing:.04em;color:var(--sv-gold2)!important;font-size:clamp(28px,4.2vw,42px)!important;line-height:1.15!important;margin:0 0 12px!important}
body:has(>main.chat-main) main.chat-main h2{font-family:Cinzel,serif!important;font-weight:500!important;letter-spacing:.03em;color:var(--sv-gold)!important;font-size:clamp(20px,2.4vw,24px)!important;margin:30px 0 8px!important}
body:has(>main.chat-main) main.chat-main p,body:has(>main.chat-main) main.chat-main li{font-size:16.5px;line-height:1.62;color:#e6dcc8}
body:has(>main.chat-main) main.chat-main .page-lead{font-size:18px!important;color:#efe7d6!important}
body:has(>main.chat-main) main.chat-main a:not(.btn):not(.chip){color:var(--sv-gold)}
body:has(>main.chat-main) main.chat-main a.chip.on{color:#1a1308!important}
body:has(>main.chat-main) main.chat-main .card{background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02))!important;border:1px solid var(--sv-line)!important;border-radius:18px!important;box-shadow:0 12px 40px rgba(0,0,0,.35)}
body:has(>main.chat-main) main.chat-main .btn:not(.ghost){background:linear-gradient(#f3d98f,#d6b15c)!important;color:#1a1308!important;border:0!important;border-radius:999px!important;font-weight:700;min-height:44px}
body:has(>main.chat-main) footer.chat-foot{max-width:1120px;margin:0 auto;padding:22px var(--bvl-gut) 40px!important;border-top:1px solid rgba(255,255,255,.08);display:flex;flex-wrap:wrap;justify-content:center;column-gap:18px;row-gap:2px}
body:has(>main.chat-main) footer.chat-foot a{font-size:15px!important;color:#d9cfbb!important}
body:has(>main.chat-main) footer.chat-foot .tk-billfoot{flex-basis:100%;text-align:center;font-size:14.5px!important;color:#bdb3a0!important;margin-top:8px}
/* Ask box on phones: the example question fits the field */
@media (max-width:420px){textarea::placeholder,input::placeholder{font-size:14.5px}}
/* /BVLAY1 */
/* ---- r3 (tester NO-GO 10-18): desktop chapter pages have the sticky Story timeline rail on the right (300 px, inside the
   1120 px wrap). The rail now stops 64 px above the bottom of the screen, and the Note button + Bookmark / Notes pills sit in
   that space under it, in the rail column: never on the rail, never on the Scripture text. */
@media (min-width:1090px){
  body:has(.rRail) .rRail{max-height:calc(100vh - 88px - 64px)!important}
  body:has(.rRail) .fReadFloat{right:max(20px, 50vw - 560px)!important;bottom:14px!important}
  body:has(.rRail) .bvx-fab{right:calc(max(20px, 50vw - 560px) + 236px)!important;bottom:14px!important}
}
/* r4: the pills + Note button step aside while the footer / weekly-email band is on screen (bvlay1.js sets html.bvl-foot) */
html.bvl-foot .fReadFloat,html.bvl-foot .bvx-fab{opacity:0!important;transform:translateY(16px)!important;pointer-events:none!important}
/* ---- r3 (tester NO-GO 10-18): desktop chapter pages have the sticky Story timeline rail on the right (300 px, inside the
   1120 px wrap). The rail now stops 64 px above the bottom of the screen, and the Note button + Bookmark / Notes pills sit in
   that space under it, in the rail column: never on the rail, never on the Scripture text. */
@media (min-width:1090px){
  body:has(.rRail) .rRail{max-height:calc(100vh - 88px - 64px)!important}
  body:has(.rRail) .fReadFloat{right:max(20px, 50vw - 560px)!important;bottom:14px!important}
  body:has(.rRail) .bvx-fab{right:calc(max(20px, 50vw - 560px) + 236px)!important;bottom:14px!important}
}
/* r4: the pills + Note button step aside while the footer / weekly-email band is on screen (bvlay1.js sets html.bvl-foot) */
html.bvl-foot .fReadFloat,html.bvl-foot .bvx-fab{opacity:0!important;transform:translateY(16px)!important;pointer-events:none!important}
