:root{--paper:#f8f6f0;--paper-2:#efebe2;--ink:#132018;--muted:#5d675f;--green:#1e5b3a;--green-2:#dfeade;--gold:#b88736;--white:#fff;--line:rgba(19,32,24,.14);--radius:24px;--shadow:0 24px 70px rgba(20,38,26,.10)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5;-webkit-font-smoothing:antialiased}a{color:inherit}button,input{font:inherit}.shell{width:min(1180px,calc(100% - 40px));margin:0 auto}.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}.skip-link{position:fixed;left:16px;top:-60px;z-index:100;background:var(--ink);color:#fff;padding:10px 14px;border-radius:8px}.skip-link:focus{top:16px}
.site-header{position:sticky;top:0;z-index:30;border-bottom:1px solid rgba(19,32,24,.08);background:rgba(248,246,240,.88);backdrop-filter:blur(18px)}.nav-wrap{min-height:74px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:inline-flex;align-items:center;gap:10px;font-weight:780;text-decoration:none;letter-spacing:-.03em;font-size:1.2rem}.brand-mark{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--ink);color:var(--paper);font-size:.72rem;letter-spacing:.03em}.site-nav{display:flex;align-items:center;gap:28px}.site-nav a{text-decoration:none;font-size:.95rem;color:#314037}.site-nav a:hover,.site-nav a:focus-visible{color:var(--green)}.menu-toggle{display:none;border:1px solid var(--line);background:transparent;padding:8px 12px;border-radius:10px}
.hero{min-height:670px;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(360px,.72fr);gap:72px;align-items:center;padding-top:80px;padding-bottom:90px}.eyebrow{margin:0 0 14px;font-size:.75rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--green)}h1,h2,h3{margin-top:0;text-wrap:balance}h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(3.45rem,7vw,6.7rem);line-height:.92;letter-spacing:-.065em;max-width:760px;margin-bottom:28px;font-weight:600}h2{font-family:Georgia,"Times New Roman",serif;font-size:clamp(2.35rem,4.5vw,4.4rem);line-height:1.02;letter-spacing:-.045em;margin-bottom:20px;font-weight:600}h3{font-size:1.3rem;letter-spacing:-.02em}.hero-lead{max-width:720px;font-size:clamp(1.08rem,2vw,1.35rem);color:var(--muted);margin:0 0 32px}.hero-search{display:flex;align-items:center;gap:10px;padding:8px;max-width:750px;border:1px solid rgba(30,91,58,.28);border-radius:18px;background:var(--white);box-shadow:0 16px 50px rgba(30,91,58,.08)}.hero-search input{flex:1;min-width:0;border:0;outline:0;padding:14px;color:var(--ink);background:transparent}.hero-search button,.button{border:0;border-radius:12px;background:var(--green);color:white;padding:14px 20px;font-weight:750;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.hero-search button:hover,.button:hover{background:#17492f}.trust-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.trust-row span{border:1px solid var(--line);padding:7px 10px;border-radius:999px;font-size:.78rem;color:#4a554d;background:rgba(255,255,255,.42)}
.study-card{border-radius:30px;background:#14231a;color:white;padding:24px;box-shadow:var(--shadow);transform:rotate(1deg)}.study-card-head{display:flex;align-items:center;gap:10px;font-size:.84rem;color:#d9e7dd;border-bottom:1px solid rgba(255,255,255,.11);padding-bottom:18px}.dot{width:9px;height:9px;background:#d2a553;border-radius:50%;box-shadow:0 0 0 5px rgba(210,165,83,.13)}.status{margin-left:auto;background:rgba(255,255,255,.09);border-radius:999px;padding:5px 8px;font-size:.7rem}.study-flow{list-style:none;padding:8px 0 0;margin:0}.study-flow li{display:grid;grid-template-columns:44px 1fr;gap:8px;padding:18px 0;border-bottom:1px solid rgba(255,255,255,.08)}.study-flow li:last-child{border-bottom:0}.study-flow li>span{color:#d2a553;font-size:.78rem;padding-top:4px}.study-flow strong{display:block;margin-bottom:5px;font-size:1rem}.study-flow small{display:block;color:#aebdb2;line-height:1.45}
.section{padding-top:110px;padding-bottom:110px}.section-heading{max-width:820px;margin-bottom:52px}.section-heading.narrow{max-width:900px}.section-heading>p:last-child{color:var(--muted);font-size:1.08rem;max-width:700px}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.feature-card{min-height:310px;background:rgba(255,255,255,.58);border:1px solid var(--line);border-radius:var(--radius);padding:28px;display:flex;flex-direction:column}.feature-card.featured{background:var(--green-2);border-color:rgba(30,91,58,.17)}.icon-box{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:var(--ink);color:white;margin-bottom:42px;font-weight:800}.feature-card p{color:var(--muted)}.feature-card a{margin-top:auto;text-decoration:none;font-weight:750;color:var(--green)}
.dark-band{background:#102017;color:white;padding:110px 0}.dark-band h2{color:white}.light{color:#d2a553}.muted-light{color:#b9c7bd;max-width:620px;font-size:1.05rem}.light-link{color:white}.split{display:grid;grid-template-columns:.9fr 1.1fr;gap:100px;align-items:start}.principle-list{border-top:1px solid rgba(255,255,255,.15)}.principle-list>div{display:grid;grid-template-columns:54px 1fr;gap:12px;padding:22px 0;border-bottom:1px solid rgba(255,255,255,.15)}.principle-list span{color:#d2a553;font-size:.75rem}.principle-list p{margin:0;color:#bcc9bf}.principle-list strong{color:white}.text-link{display:inline-block;margin-top:22px;text-decoration:none;font-weight:750}
.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.metric-grid div{padding:32px 22px;border-right:1px solid var(--line)}.metric-grid div:last-child{border-right:0}.metric-grid strong{display:block;font-family:Georgia,serif;font-size:2.6rem;color:var(--green);margin-bottom:6px}.metric-grid span{color:var(--muted);font-size:.9rem}
.cta-section{margin-top:24px;margin-bottom:110px;padding:58px;background:#e8e1d3;border-radius:32px;display:flex;justify-content:space-between;align-items:end;gap:40px}.cta-section h2{margin-bottom:8px}.cta-section p:not(.eyebrow){margin-bottom:0;color:var(--muted);max-width:700px}
.site-footer{border-top:1px solid var(--line);padding:48px 0 60px}.footer-grid{display:grid;grid-template-columns:1fr auto;gap:24px;align-items:end}.footer-brand{margin-bottom:12px}.footer-grid p{color:var(--muted);margin-bottom:0}.footer-links{display:flex;gap:22px}.footer-links a{text-decoration:none;color:var(--muted)}.copyright{grid-column:1/-1;font-size:.8rem;margin-top:20px}
.page-hero{padding-top:100px;padding-bottom:70px;max-width:980px}.page-hero h1{font-size:clamp(3.1rem,6vw,5.9rem)}.page-hero p{max-width:760px;color:var(--muted);font-size:1.16rem}.content-panel{background:rgba(255,255,255,.58);border:1px solid var(--line);border-radius:26px;padding:32px;margin-bottom:24px}.content-panel h2{font-size:clamp(1.8rem,3vw,2.7rem)}.step-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.step{border:1px solid var(--line);border-radius:20px;padding:24px;background:rgba(255,255,255,.45)}.step .step-no{color:var(--gold);font-weight:800;font-size:.78rem;letter-spacing:.1em}.step p{color:var(--muted);margin-bottom:0}.notice{background:#eee8d9;border-left:4px solid var(--gold);padding:18px 20px;border-radius:0 14px 14px 0;color:#554d3d}.book-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.book-grid span{border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.4);padding:12px;font-size:.9rem}
@media(max-width:900px){.hero{grid-template-columns:1fr;min-height:auto;gap:50px;padding-top:64px}.study-card{transform:none}.feature-grid,.split{grid-template-columns:1fr}.split{gap:50px}.metric-grid{grid-template-columns:repeat(2,1fr)}.metric-grid div:nth-child(2){border-right:0}.metric-grid div:nth-child(-n+2){border-bottom:1px solid var(--line)}.cta-section{align-items:flex-start;flex-direction:column}.book-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:680px){.shell{width:min(100% - 26px,1180px)}.nav-wrap{min-height:66px}.menu-toggle{display:block}.site-nav{display:none;position:absolute;top:66px;left:13px;right:13px;background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:12px;flex-direction:column;align-items:stretch;gap:0}.site-nav.open{display:flex}.site-nav a{padding:12px;border-radius:10px}.site-nav a:hover{background:var(--paper-2)}.hero{padding-top:54px;padding-bottom:68px}h1{font-size:clamp(3rem,17vw,4.5rem)}h2{font-size:clamp(2.1rem,11vw,3.2rem)}.hero-search{flex-direction:column;align-items:stretch}.hero-search button{width:100%}.section,.dark-band{padding-top:78px;padding-bottom:78px}.feature-grid,.step-grid{grid-template-columns:1fr}.metric-grid{grid-template-columns:1fr}.metric-grid div{border-right:0;border-bottom:1px solid var(--line)}.metric-grid div:last-child{border-bottom:0}.cta-section{padding:34px 26px;margin-bottom:70px}.footer-grid{grid-template-columns:1fr;align-items:start}.footer-links{flex-wrap:wrap}.book-grid{grid-template-columns:repeat(2,1fr)}}

/* Premium BibleReach reader */
.reader-body {
  --reader-bg: #e8dcc2;
  --reader-surface: #fbf7ec;
  --reader-surface-2: #f5eddd;
  --reader-ink: #25231d;
  --reader-muted: #6a6559;
  --reader-line: rgba(90, 72, 43, 0.18);
  --reader-highlight: rgba(177, 133, 55, 0.14);
  --reader-control: rgba(255,255,255,.62);
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.52), transparent 36%), linear-gradient(180deg, #eee4cf 0%, var(--reader-bg) 100%);
  transition: background .2s ease, color .2s ease;
}
.reader-body[data-reader-theme="night"] {
  --reader-bg: #111812;
  --reader-surface: #1b211b;
  --reader-surface-2: #20281f;
  --reader-ink: #ede9dc;
  --reader-muted: #b4b6aa;
  --reader-line: rgba(232, 224, 203, 0.14);
  --reader-highlight: rgba(194, 155, 82, 0.16);
  --reader-control: rgba(33,40,32,.88);
  background: linear-gradient(180deg, #0f1611 0%, #151d16 100%);
  color: var(--reader-ink);
}
.reader-body[data-reader-theme="night"] .reader-site-header { background: rgba(15,22,17,.88); border-bottom-color: rgba(255,255,255,.08); }
.reader-body[data-reader-theme="night"] .brand,
.reader-body[data-reader-theme="night"] .site-nav a,
.reader-body[data-reader-theme="night"] .reader-intro h1,
.reader-body[data-reader-theme="night"] .reader-intro p,
.reader-body[data-reader-theme="night"] .reader-commandbar,
.reader-body[data-reader-theme="night"] .reader-page,
.reader-body[data-reader-theme="night"] .reader-page h2,
.reader-body[data-reader-theme="night"] .reader-page h3,
.reader-body[data-reader-theme="night"] .reader-verse,
.reader-body[data-reader-theme="night"] .reader-section-label,
.reader-body[data-reader-theme="night"] .reader-page-topline,
.reader-body[data-reader-theme="night"] .study-kicker,
.reader-body[data-reader-theme="night"] .language-line small,
.reader-body[data-reader-theme="night"] .reader-page-footer,
.reader-body[data-reader-theme="night"] .note-status { color: var(--reader-ink); }
.reader-body[data-reader-theme="night"] .reader-commandbar,
.reader-body[data-reader-theme="night"] .reader-page,
.reader-body[data-reader-theme="night"] .reader-icon-button,
.reader-body[data-reader-theme="night"] .reader-mode-button,
.reader-body[data-reader-theme="night"] .reader-location-button,
.reader-body[data-reader-theme="night"] .reader-quiet-button,
.reader-body[data-reader-theme="night"] .reader-bottom-bar,
.reader-body[data-reader-theme="night"] .reader-principle-grid article,
.reader-body[data-reader-theme="night"] .study-callout,
.reader-body[data-reader-theme="night"] .study-stack article,
.reader-body[data-reader-theme="night"] .language-line,
.reader-body[data-reader-theme="night"] .connection-item,
.reader-body[data-reader-theme="night"] .reader-note { background: var(--reader-control); border-color: var(--reader-line); }
.reader-body[data-reader-theme="night"] .reader-gutter { background: linear-gradient(90deg, rgba(0,0,0,.42), rgba(255,255,255,.04), rgba(0,0,0,.48)); }

.reader-stage { padding-top: 52px; padding-bottom: 96px; }
.reader-intro { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,.72fr); gap: 54px; align-items: end; margin-bottom: 30px; }
.reader-intro h1 { max-width: 760px; font-size: clamp(2.7rem, 5.1vw, 5rem); margin-bottom: 0; }
.reader-intro > p { color: var(--muted); margin-bottom: 4px; font-size: 1rem; }
.reader-commandbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 10px 12px; border: 1px solid var(--reader-line); border-radius: 18px; background: rgba(255,255,255,.58); box-shadow: 0 12px 30px rgba(56,42,20,.08); margin-bottom: 16px; }
.reader-location, .reader-control-group { display: flex; align-items: center; gap: 8px; }
.reader-location-button, .reader-icon-button, .reader-mode-button, .reader-quiet-button, .chapter-nav-button { border: 1px solid var(--reader-line); color: var(--reader-ink); background: var(--reader-control); border-radius: 11px; }
.reader-location-button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 11px; font-weight: 750; cursor: default; }
.reader-icon-button, .reader-mode-button, .reader-quiet-button, .chapter-nav-button { cursor: pointer; }
.reader-book { font-family: Georgia, serif; font-size: 1.02rem; }
.reader-chapter { min-width: 28px; height: 28px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 8px; font-size: .8rem; }
.reader-translation { color: var(--reader-muted); font-size: .78rem; }
.reader-icon-button, .reader-mode-button { min-height: 38px; padding: 8px 10px; font-weight: 700; }
.reader-mode-button.is-active { background: var(--green); color: white; border-color: var(--green); }
.reader-icon-button:hover, .reader-quiet-button:hover { border-color: rgba(29,86,61,.35); }

.premium-reader { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 24px minmax(0,1fr); border: 1px solid rgba(84,65,35,.2); border-radius: 34px; overflow: hidden; background: var(--reader-surface); box-shadow: 0 34px 78px rgba(58,42,17,.19), 0 6px 16px rgba(58,42,17,.08); min-height: 760px; isolation: isolate; }
.premium-reader::before { content:""; position:absolute; inset:0; pointer-events:none; z-index:3; border-radius:inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), inset 0 -24px 40px rgba(96,72,37,.055); }
.reader-ribbon { position:absolute; z-index:5; top:0; left:38px; width:19px; height:108px; background: linear-gradient(180deg,#b98d46,#876127); clip-path: polygon(0 0,100% 0,100% 84%,50% 100%,0 84%); box-shadow:0 12px 20px rgba(89,61,25,.24); }
.reader-page { position:relative; min-width:0; padding:28px clamp(24px,3vw,42px) 26px; color:var(--reader-ink); background: linear-gradient(180deg,rgba(255,255,255,.34),transparent 150px),var(--reader-surface); }
.scripture-page { box-shadow: inset -18px 0 36px rgba(84,65,35,.045); }
.study-page { box-shadow: inset 18px 0 36px rgba(84,65,35,.045); }
.reader-gutter { position:relative; z-index:2; background:linear-gradient(90deg,rgba(73,52,25,.16),rgba(255,255,255,.5) 48%,rgba(73,52,25,.18)); box-shadow:inset 0 0 16px rgba(55,39,18,.2); }
.reader-page-topline { display:flex; justify-content:space-between; gap:18px; padding-bottom:13px; border-bottom:1px solid var(--reader-line); color:var(--reader-muted); font-size:.72rem; letter-spacing:.08em; }
.reader-chapter-heading,.study-pane-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; padding:24px 0 20px; }
.reader-chapter-heading h2,.study-pane-heading h2 { font-size:clamp(2rem,3vw,3rem); margin-bottom:0; }
.reader-section-label,.study-kicker { display:inline-block; color:var(--reader-muted); font-size:.7rem; letter-spacing:.1em; text-transform:uppercase; font-weight:800; margin-bottom:6px; }
.reader-quiet-button { padding:8px 10px; color:var(--reader-muted); font-size:.76rem; }
.reader-quiet-button.is-bookmarked { background:rgba(177,133,55,.16); color:var(--gold); border-color:rgba(177,133,55,.3); }

.reader-scripture { --reader-scale:1; max-width:690px; margin:0 auto; }
.reader-verse { display:grid; grid-template-columns:34px 1fr; gap:8px; margin:0 -12px 8px; padding:14px 14px 14px 8px; border-radius:16px; color:var(--reader-ink); font-family:Georgia,"Times New Roman",serif; font-size:calc(1.19rem * var(--reader-scale)); line-height:1.9; cursor:pointer; outline:none; transition:background .15s ease,box-shadow .15s ease; }
.reader-verse:hover,.reader-verse:focus-visible { background:rgba(177,133,55,.07); }
.reader-verse.is-selected { background:var(--reader-highlight); box-shadow:inset 3px 0 0 var(--gold); }
.verse-number { color:var(--gold); font-family:Inter,sans-serif; font-size:.72rem; font-weight:800; padding-top:.42rem; text-align:right; }
.reader-page-footer { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:14px; margin-top:24px; padding-top:18px; border-top:1px solid var(--reader-line); color:var(--reader-muted); font-size:.76rem; }
.reader-page-footer .chapter-nav-button:last-child { justify-self:end; }
.chapter-nav-button { padding:7px 9px; font-size:.72rem; opacity:.56; }

.study-confidence { color:var(--green); border:1px solid rgba(29,86,61,.2); background:rgba(221,235,226,.58); padding:7px 9px; border-radius:999px; font-size:.7rem; font-weight:800; }
.study-tabs { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; padding:5px; background:rgba(118,96,60,.07); border:1px solid var(--reader-line); border-radius:14px; margin-bottom:20px; }
.study-tabs button { border:0; border-radius:10px; padding:9px 8px; background:transparent; color:var(--reader-muted); font-weight:700; font-size:.78rem; cursor:pointer; }
.study-tabs button[aria-selected="true"] { background:var(--reader-control); color:var(--green); box-shadow:0 3px 10px rgba(57,43,20,.08); }
.study-tab-panel { animation:readerFade .16s ease; }
@keyframes readerFade { from { opacity:.45; transform:translateY(2px); } to { opacity:1; transform:none; } }
.study-callout,.study-stack article,.language-line,.connection-item { border:1px solid var(--reader-line); background:rgba(255,255,255,.38); border-radius:16px; }
.study-callout { padding:16px 17px; margin-bottom:12px; }
.study-callout p { margin-bottom:0; color:var(--reader-muted); }
.study-stack { display:grid; gap:10px; }
.study-stack article { padding:15px 16px; }
.study-stack h3 { margin-bottom:6px; font-size:1rem; }
.study-stack p { margin-bottom:0; color:var(--reader-muted); font-size:.91rem; }
.language-intro p { color:var(--reader-muted); font-size:.9rem; }
.language-lines { display:grid; gap:9px; }
.language-line { display:grid; gap:4px; padding:12px 14px; }
.language-line strong { font-size:.88rem; }
.greek-text { font-family:Georgia,"Times New Roman",serif; font-size:1.18rem; color:var(--green); }
.language-line small { color:var(--reader-muted); line-height:1.45; }
.study-source-note { color:var(--reader-muted); font-size:.72rem; margin:12px 2px 0; }
.connection-list { display:grid; gap:9px; }
.connection-item { display:grid; gap:3px; padding:14px 15px; }
.connection-item span { color:var(--gold); font-size:.72rem; font-weight:800; }
.connection-item strong { font-size:.9rem; }
.note-label { display:block; margin-bottom:9px; font-size:.82rem; font-weight:800; }
.reader-note { width:100%; resize:vertical; border:1px solid var(--reader-line); border-radius:16px; background:rgba(255,255,255,.46); color:var(--reader-ink); padding:14px; outline:0; line-height:1.55; }
.reader-note:focus { border-color:rgba(29,86,61,.38); box-shadow:0 0 0 3px rgba(29,86,61,.08); }
.note-status { margin-top:8px; color:var(--reader-muted); font-size:.72rem; }

.premium-reader.is-focus-mode { grid-template-columns:1fr; }
.premium-reader.is-focus-mode .reader-gutter,.premium-reader.is-focus-mode .study-page { display:none; }
.premium-reader.is-focus-mode .scripture-page { box-shadow:none; padding-left:clamp(28px,8vw,130px); padding-right:clamp(28px,8vw,130px); }
.premium-reader.is-focus-mode .reader-scripture { max-width:760px; }

.reader-bottom-bar { display:none; grid-template-columns:repeat(5,1fr); gap:6px; position:sticky; bottom:10px; z-index:16; margin:10px 8px 0; padding:7px; border:1px solid var(--reader-line); border-radius:16px; background:rgba(248,242,229,.92); backdrop-filter:blur(14px); box-shadow:0 12px 28px rgba(58,42,17,.14); }
.reader-bottom-bar button { border:0; border-radius:10px; padding:10px 6px; background:transparent; color:var(--reader-muted); font-size:.72rem; font-weight:750; }
.reader-principles { padding-top:82px; }
.reader-principle-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.reader-principle-grid article { padding:20px; border:1px solid rgba(34,31,22,.12); border-radius:18px; background:rgba(255,255,255,.42); }
.reader-principle-grid span { color:var(--gold); font-size:.72rem; font-weight:800; letter-spacing:.12em; }
.reader-principle-grid h3 { margin:10px 0 7px; font-size:1.04rem; }
.reader-principle-grid p { margin-bottom:0; color:var(--reader-muted); font-size:.88rem; }

@media (max-width:980px) {
  .reader-intro { grid-template-columns:1fr; gap:14px; }
  .premium-reader { grid-template-columns:1fr; min-height:auto; }
  .reader-gutter { display:none; }
  .scripture-page { box-shadow:inset 0 -18px 30px rgba(84,65,35,.045); }
  .study-page { box-shadow:none; border-top:1px solid var(--reader-line); }
  .reader-ribbon { left:auto; right:34px; }
  .premium-reader.is-focus-mode .scripture-page { padding-left:clamp(24px,7vw,70px); padding-right:clamp(24px,7vw,70px); }
  .reader-principle-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:720px) {
  .reader-stage { padding-top:34px; padding-bottom:72px; }
  .reader-intro h1 { font-size:clamp(2.45rem,12vw,3.7rem); }
  .reader-commandbar { align-items:stretch; gap:10px; flex-direction:column; }
  .reader-location { justify-content:space-between; }
  .reader-control-group { display:grid; grid-template-columns:repeat(3,1fr); }
  .reader-mode-button[data-reader-mode="focus"], .reader-mode-button[data-reader-mode="study"] { display:none; }
  .premium-reader { border-radius:22px; }
  .reader-page { padding:22px 18px 24px; }
  .reader-ribbon { right:24px; width:16px; height:84px; }
  .reader-chapter-heading h2,.study-pane-heading h2 { font-size:2rem; }
  .reader-verse { grid-template-columns:28px 1fr; margin-left:-7px; margin-right:-7px; padding-left:5px; font-size:calc(1.08rem * var(--reader-scale)); line-height:1.8; }
  .reader-page-footer { grid-template-columns:1fr; text-align:center; }
  .reader-page-footer .chapter-nav-button { display:none; }
  .study-tabs { grid-template-columns:repeat(2,1fr); }
  .reader-bottom-bar { display:grid; }
  .reader-principle-grid { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto !important; animation-duration:.001ms !important; transition-duration:.001ms !important; }
}


/* Live reader QA correction: keep the bookmark ribbon in the gutter, away from page headings. */
@media (min-width: 981px) {
  .premium-reader .reader-ribbon {
    left: calc(50% - 10px);
    right: auto;
  }
}


/* Reader V2 live refinement: bring Scripture into the first viewport. */
.reader-stage {
  padding-top: 30px;
}
.reader-intro {
  grid-template-columns: minmax(0, 1fr) minmax(300px, .64fr);
  gap: 38px;
  margin-bottom: 20px;
}
.reader-intro h1 {
  font-size: clamp(2.65rem, 4.15vw, 4.25rem);
  line-height: .96;
  max-width: 700px;
}
.reader-intro > p {
  max-width: 520px;
  line-height: 1.55;
}
.reader-commandbar {
  min-height: 68px;
  margin-bottom: 14px;
}
@media (max-width: 980px) {
  .reader-stage { padding-top: 28px; }
  .reader-intro { gap: 12px; margin-bottom: 18px; }
}
@media (max-width: 720px) {
  .reader-stage { padding-top: 24px; }
  .reader-intro h1 { font-size: clamp(2.25rem, 11vw, 3.2rem); }
  .reader-intro > p { font-size: .96rem; }
}


/* Real book and chapter navigation */
.reader-location-button { cursor: pointer; }
.reader-location-caret {
  color: var(--reader-muted);
  font-size: .82rem;
  margin-left: 2px;
  transform: translateY(-1px);
}
.chapter-nav-button:not(:disabled) { opacity: 1; }
.chapter-nav-button:disabled { cursor: not-allowed; opacity: .38; }

.navigator-open { overflow: hidden; }
.passage-navigator[hidden] { display: none; }
.passage-navigator {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}
.passage-navigator-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(20, 24, 18, .52);
  backdrop-filter: blur(8px);
  cursor: default;
}
.passage-navigator-dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--ink);
  background: #f8f2e6;
  border: 1px solid rgba(74, 57, 30, .18);
  border-radius: 28px;
  box-shadow: 0 34px 90px rgba(25, 21, 14, .28);
}
.passage-navigator-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 26px 28px 16px;
}
.passage-navigator-header h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
}
.navigator-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(34,31,22,.14);
  border-radius: 50%;
  background: rgba(255,255,255,.6);
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
}
.passage-search-wrap { padding: 0 28px 18px; }
.passage-search-wrap input {
  width: 100%;
  border: 1px solid rgba(34,31,22,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  color: var(--ink);
  padding: 14px 15px;
  outline: none;
}
.passage-search-wrap input:focus {
  border-color: rgba(29,86,61,.45);
  box-shadow: 0 0 0 3px rgba(29,86,61,.08);
}
.passage-navigator-grid {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(360px, 1fr);
  border-top: 1px solid rgba(34,31,22,.1);
  border-bottom: 1px solid rgba(34,31,22,.1);
}
.book-picker-panel,
.chapter-picker-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px;
}
.book-picker-panel { border-right: 1px solid rgba(34,31,22,.1); }
.navigator-subhead {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 0 4px 12px;
  color: #665e50;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.book-picker-list {
  overflow: auto;
  padding-right: 6px;
}
.book-group-label {
  padding: 13px 10px 6px;
  color: var(--green);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.book-picker-button {
  width: 100%;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #34352f;
  padding: 10px 11px;
  text-align: left;
  font-weight: 650;
  cursor: pointer;
}
.book-picker-button:hover { background: rgba(255,255,255,.6); }
.book-picker-button.is-active {
  background: rgba(29,86,61,.1);
  color: var(--green);
}
.chapter-picker-grid {
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(8, minmax(42px, 1fr));
  gap: 8px;
  align-content: start;
  padding: 2px;
}
.chapter-picker-button {
  aspect-ratio: 1;
  min-height: 42px;
  border: 1px solid rgba(34,31,22,.12);
  border-radius: 11px;
  background: rgba(255,255,255,.6);
  color: #373930;
  font-weight: 750;
  cursor: pointer;
}
.chapter-picker-button:hover {
  border-color: rgba(29,86,61,.32);
  color: var(--green);
}
.chapter-picker-button.is-current {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.navigator-loading {
  padding: 18px 10px;
  color: #766d5e;
  font-size: .9rem;
}
.passage-navigator-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 28px 16px;
  color: #776f61;
  font-size: .72rem;
}
.reader-loading-state,
.reader-error-state {
  margin: 24px 0;
  padding: 18px;
  border: 1px solid var(--reader-line);
  border-radius: 14px;
  background: rgba(255,255,255,.42);
  color: var(--reader-muted);
  font-family: Inter, sans-serif;
  font-size: .9rem;
  line-height: 1.5;
}
.reader-error-state {
  border-left: 4px solid #a06246;
}

.reader-body[data-reader-theme="night"] .passage-navigator-dialog {
  background: #1a211a;
  color: var(--reader-ink);
  border-color: rgba(255,255,255,.1);
}
.reader-body[data-reader-theme="night"] .passage-navigator-grid,
.reader-body[data-reader-theme="night"] .book-picker-panel,
.reader-body[data-reader-theme="night"] .passage-navigator-footer {
  border-color: rgba(255,255,255,.08);
}
.reader-body[data-reader-theme="night"] .book-picker-button,
.reader-body[data-reader-theme="night"] .chapter-picker-button,
.reader-body[data-reader-theme="night"] .navigator-close,
.reader-body[data-reader-theme="night"] .passage-search-wrap input {
  color: var(--reader-ink);
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.1);
}
.reader-body[data-reader-theme="night"] .navigator-subhead,
.reader-body[data-reader-theme="night"] .passage-navigator-footer,
.reader-body[data-reader-theme="night"] .navigator-loading {
  color: var(--reader-muted);
}
.reader-body[data-reader-theme="night"] .book-picker-button.is-active,
.reader-body[data-reader-theme="night"] .book-picker-button:hover {
  background: rgba(108,172,133,.12);
}
.reader-body[data-reader-theme="night"] .chapter-picker-button.is-current {
  background: var(--green);
  color: white;
}

@media (max-width: 760px) {
  .passage-navigator { padding: 10px; place-items: end center; }
  .passage-navigator-dialog {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 24px 24px 16px 16px;
  }
  .passage-navigator-header { padding: 22px 20px 14px; }
  .passage-search-wrap { padding: 0 20px 14px; }
  .passage-navigator-grid { grid-template-columns: 1fr; overflow: auto; }
  .book-picker-panel { border-right: 0; border-bottom: 1px solid rgba(34,31,22,.1); max-height: 280px; }
  .chapter-picker-panel { min-height: 240px; }
  .chapter-picker-grid { grid-template-columns: repeat(6, minmax(40px, 1fr)); overflow: visible; }
  .passage-navigator-footer { padding: 12px 20px 14px; flex-direction: column; gap: 3px; }
}


/* Direct passage search and Testament filters */
.passage-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.passage-search-go {
  border: 0;
  border-radius: 13px;
  background: var(--green);
  color: white;
  min-width: 74px;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
}
.passage-search-go:hover { background: var(--green-deep); }
.passage-search-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}
.testament-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.testament-filter {
  border: 1px solid rgba(34,31,22,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  color: #5d5a50;
  padding: 7px 10px;
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
}
.testament-filter.is-active {
  color: white;
  background: var(--green);
  border-color: var(--green);
}
.passage-search-feedback {
  color: #756d5f;
  font-size: .72rem;
  text-align: right;
}
.passage-search-feedback[data-tone="error"] { color: #9a5139; }
.passage-search-feedback[data-tone="success"] { color: var(--green); }

.reader-body[data-reader-theme="night"] .passage-search-go {
  background: var(--green);
  color: white;
}
.reader-body[data-reader-theme="night"] .testament-filter {
  background: rgba(255,255,255,.055);
  color: var(--reader-muted);
  border-color: rgba(255,255,255,.1);
}
.reader-body[data-reader-theme="night"] .testament-filter.is-active {
  color: white;
  background: var(--green);
}
.reader-body[data-reader-theme="night"] .passage-search-feedback {
  color: var(--reader-muted);
}
.reader-body[data-reader-theme="night"] .passage-search-feedback[data-tone="success"] { color: #83c59c; }
.reader-body[data-reader-theme="night"] .passage-search-feedback[data-tone="error"] { color: #d58c77; }

@media (max-width: 760px) {
  .passage-search-form { grid-template-columns: 1fr; }
  .passage-search-go { min-height: 44px; }
  .passage-search-meta { align-items: flex-start; flex-direction: column; }
  .passage-search-feedback { text-align: left; }
}


/* Verse picker inside the Bible navigator */
.passage-navigator-grid {
  grid-template-columns: minmax(250px, .72fr) minmax(320px, .92fr) minmax(300px, .86fr);
}
.verse-picker-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px;
  border-left: 1px solid rgba(34,31,22,.1);
}
.open-chapter-button {
  width: 100%;
  border: 1px solid rgba(29,86,61,.18);
  border-radius: 12px;
  background: rgba(29,86,61,.08);
  color: var(--green);
  padding: 10px 12px;
  margin-bottom: 12px;
  font-weight: 800;
  cursor: pointer;
}
.open-chapter-button:hover {
  background: rgba(29,86,61,.14);
}
.verse-picker-grid {
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(40px, 1fr));
  gap: 8px;
  align-content: start;
  padding: 2px;
}
.verse-picker-button {
  aspect-ratio: 1;
  min-height: 40px;
  border: 1px solid rgba(34,31,22,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.6);
  color: #373930;
  font-weight: 750;
  cursor: pointer;
}
.verse-picker-button:hover {
  border-color: rgba(29,86,61,.32);
  color: var(--green);
}
.verse-picker-button.is-current {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.reader-body[data-reader-theme="night"] .verse-picker-panel {
  border-color: rgba(255,255,255,.08);
}
.reader-body[data-reader-theme="night"] .verse-picker-button,
.reader-body[data-reader-theme="night"] .open-chapter-button {
  background: rgba(255,255,255,.055);
  color: var(--reader-ink);
  border-color: rgba(255,255,255,.1);
}
.reader-body[data-reader-theme="night"] .verse-picker-button.is-current {
  background: var(--green);
  color: white;
}
.reader-body[data-reader-theme="night"] .open-chapter-button {
  color: #8ec7a1;
}

@media (max-width: 1050px) {
  .passage-navigator-grid {
    grid-template-columns: minmax(240px, .68fr) minmax(300px, 1fr);
  }
  .verse-picker-panel {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid rgba(34,31,22,.1);
    max-height: 270px;
  }
  .verse-picker-grid {
    grid-template-columns: repeat(10, minmax(38px, 1fr));
  }
}
@media (max-width: 760px) {
  .passage-navigator-grid { grid-template-columns: 1fr; }
  .verse-picker-panel {
    grid-column: auto;
    max-height: none;
  }
  .verse-picker-grid {
    grid-template-columns: repeat(6, minmax(40px, 1fr));
    overflow: visible;
  }
}


/* Navigator live QA: prevent horizontal scrolling in chapter and verse panels. */
.chapter-picker-panel,
.verse-picker-panel {
  overflow: hidden;
}
.chapter-picker-grid,
.verse-picker-grid {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
}
.chapter-picker-button,
.verse-picker-button {
  width: 100%;
  min-width: 0;
}
@media (max-width: 1050px) {
  .chapter-picker-grid,
  .verse-picker-grid {
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  }
}
@media (max-width: 760px) {
  .chapter-picker-grid,
  .verse-picker-grid {
    grid-template-columns: repeat(auto-fit, minmax(46px, 1fr));
  }
}


/* Navigator tile refinement after live QA */
.chapter-picker-grid,
.verse-picker-grid {
  grid-auto-rows: 58px;
  gap: 10px;
}
.chapter-picker-button,
.verse-picker-button {
  aspect-ratio: auto;
  height: 58px;
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
  border-radius: 14px;
}
@media (max-width: 760px) {
  .chapter-picker-grid,
  .verse-picker-grid {
    grid-auto-rows: 52px;
    gap: 8px;
  }
  .chapter-picker-button,
  .verse-picker-button {
    height: 52px;
    min-height: 52px;
    border-radius: 12px;
  }
}


/* Keep the study companion visible while the selected verse is brought into view. */
@media (min-width: 981px) {
  .premium-reader {
    overflow: clip;
    align-items: start;
  }

  .study-page {
    position: sticky;
    top: 92px;
    align-self: start;
    height: clamp(620px, calc(100vh - 125px), 760px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(91,72,42,.35) transparent;
    z-index: 2;
  }

  .study-page::-webkit-scrollbar {
    width: 8px;
  }

  .study-page::-webkit-scrollbar-track {
    background: transparent;
  }

  .study-page::-webkit-scrollbar-thumb {
    background: rgba(91,72,42,.28);
    border-radius: 999px;
  }
}


/* Traceable study intelligence */
.study-tabs {
  grid-template-columns: repeat(3, 1fr);
}
.study-trace-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.study-trace-item {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--reader-line);
  border-radius: 14px;
  background: rgba(255,255,255,.28);
}
.study-trace-item span {
  color: var(--gold);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .08em;
}
.study-trace-item p {
  margin: 0;
  color: var(--reader-muted);
  font-size: .88rem;
}
.language-note {
  margin: 4px 0 0;
  color: var(--reader-muted);
  font-size: .82rem;
  line-height: 1.5;
}
.connection-item p {
  margin: 6px 0 0;
  color: var(--reader-muted);
  font-size: .86rem;
  line-height: 1.5;
}
.study-source-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--reader-line);
}
.study-source-link {
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--reader-line);
  border-radius: 13px;
  background: rgba(255,255,255,.34);
  text-decoration: none;
}
.study-source-link:hover {
  border-color: rgba(29,86,61,.28);
}
.study-source-link span {
  color: var(--gold);
  font-size: .68rem;
  font-weight: 800;
}
.study-source-link strong {
  color: var(--reader-ink);
  font-size: .84rem;
}
@media (max-width: 720px) {
  .study-tabs { grid-template-columns: repeat(2, 1fr); }
  .study-trace-item,
  .study-source-link { grid-template-columns: 1fr; gap: 4px; }
}


/* Keep study identity and controls visible inside the scrolling companion. */
.study-sticky-header {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: -28px clamp(-42px, -3vw, -24px) 18px;
  padding: 28px clamp(24px, 3vw, 42px) 16px;
  background: var(--reader-surface);
  border-bottom: 1px solid var(--reader-line);
  box-shadow: 0 12px 22px rgba(72, 52, 24, .06);
  isolation: isolate;
}
.study-sticky-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -16px;
  height: 16px;
  background: var(--reader-surface);
  border-bottom: 1px solid var(--reader-line);
  pointer-events: none;
}
.study-sticky-header .study-tabs {
  margin-bottom: 0;
  background: var(--reader-surface-2);
}
.reader-body[data-reader-theme="night"] .study-sticky-header {
  background: var(--reader-surface);
  box-shadow: 0 12px 22px rgba(0,0,0,.18);
}
.reader-body[data-reader-theme="night"] .study-sticky-header::after {
  background: var(--reader-surface);
}
@media (max-width: 980px) {
  .study-sticky-header {
    position: static;
    margin: -22px -18px 18px;
    padding: 22px 18px 16px;
    box-shadow: none;
  }
  .study-sticky-header::after { display: none; }
}


/* Final sticky study-header alignment: remove the scroll gap above the controls. */
@media (min-width: 981px) {
  .study-page {
    padding-top: 0;
  }

  .study-sticky-header {
    margin-top: 0;
    margin-bottom: 18px;
    padding-top: 28px;
  }
}


/* Progressive-depth study controls */
.study-summary-card {
  margin-bottom: 12px;
}
.study-plain-context {
  margin-bottom: 12px;
  padding: 2px 2px 0;
}
.study-plain-context p {
  margin: 0;
  color: var(--reader-muted);
  line-height: 1.55;
}
.study-disclosure {
  border: 1px solid var(--reader-line);
  border-radius: 15px;
  background: rgba(255,255,255,.28);
  overflow: hidden;
  margin-top: 10px;
}
.study-disclosure summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  font-weight: 800;
  color: var(--reader-ink);
}
.study-disclosure summary::-webkit-details-marker { display: none; }
.study-disclosure summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.05rem;
}
.study-disclosure[open] summary::after { content: "−"; }
.study-disclosure summary small {
  grid-column: 1;
  color: var(--reader-muted);
  font-size: .72rem;
  font-weight: 600;
}
.study-disclosure[open] summary {
  border-bottom: 1px solid var(--reader-line);
  background: rgba(255,255,255,.26);
}
.study-disclosure-body {
  padding: 12px;
}
.phrase-meaning-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}
.phrase-meaning-item {
  padding: 11px 12px;
  border: 1px solid var(--reader-line);
  border-radius: 12px;
  background: rgba(255,255,255,.34);
}
.phrase-meaning-item strong {
  display: block;
  margin-bottom: 5px;
  font-size: .88rem;
}
.phrase-meaning-item p {
  margin: 0;
  color: var(--reader-muted);
  font-size: .86rem;
  line-height: 1.5;
}
.reader-body[data-reader-theme="night"] .study-disclosure,
.reader-body[data-reader-theme="night"] .phrase-meaning-item,
.reader-body[data-reader-theme="night"] .study-disclosure[open] summary {
  background: rgba(255,255,255,.04);
}


/* Final study-panel precision pass */
@media (min-width: 981px) {
  .study-tabs {
    grid-template-columns: .9fr .72fr 1.18fr 1.04fr 1.08fr .62fr .66fr;
    gap: 4px;
  }

  .study-tabs button {
    min-width: 0;
    padding: 9px 5px;
    font-size: .66rem;
    white-space: nowrap;
  }
}

.study-pane-heading {
  align-items: center;
}

.study-source-status {
  position: relative;
  flex: 0 0 auto;
}

.study-source-status > summary {
  list-style: none;
  cursor: pointer;
}

.study-source-status > summary::-webkit-details-marker {
  display: none;
}

.study-source-status[open] .study-confidence {
  border-color: rgba(29,86,61,.28);
}

.study-source-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: min(320px, 72vw);
  padding: 8px;
  border: 1px solid var(--reader-line);
  border-radius: 14px;
  background: var(--reader-surface);
  box-shadow: 0 16px 38px rgba(63, 45, 20, .16);
}

.study-source-popover a {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 10px;
  text-decoration: none;
}

.study-source-popover a:hover {
  background: var(--reader-surface-2);
}

.study-source-popover span {
  color: var(--gold);
  font-size: .66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.study-source-popover strong {
  color: var(--reader-ink);
  font-size: .79rem;
  line-height: 1.35;
}

.phrase-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.phrase-disclosure summary span {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.phrase-disclosure summary small {
  grid-column: auto;
  display: inline;
  color: var(--reader-muted);
  font-size: .7rem;
  font-weight: 650;
}

.study-plain-context p,
.study-callout p,
.study-trace-item p,
.connection-item p,
.study-stack article p,
.language-note,
.phrase-meaning-item p {
  color: color-mix(in srgb, var(--reader-ink) 72%, var(--reader-muted));
}

@supports not (color: color-mix(in srgb, black 50%, white)) {
  .study-plain-context p,
  .study-callout p,
  .study-trace-item p,
  .connection-item p,
  .study-stack article p,
  .language-note,
  .phrase-meaning-item p {
    color: var(--reader-muted);
  }
}

@media (max-width: 980px) {
  .study-source-popover {
    right: 0;
  }
}


/* BibleReach AI study layer */
.ai-study-intro {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:14px;
}
.ai-study-intro h3 {
  margin:0 0 5px;
  font-size:1.05rem;
}
.ai-study-intro p {
  margin:0;
  color:var(--reader-muted);
  font-size:.88rem;
  line-height:1.5;
}
.ai-grounding-badge {
  flex:0 0 auto;
  border:1px solid var(--reader-line);
  border-radius:999px;
  padding:6px 9px;
  color:var(--reader-muted);
  font-size:.66rem;
  font-weight:800;
  white-space:nowrap;
}
.ai-grounding-badge.is-verified {
  color:var(--green);
  border-color:rgba(29,86,61,.22);
  background:rgba(221,235,226,.5);
}
.ai-study-form {
  display:grid;
  gap:10px;
}
.ai-study-form textarea {
  width:100%;
  resize:vertical;
  min-height:88px;
  border:1px solid var(--reader-line);
  border-radius:16px;
  background:rgba(255,255,255,.46);
  color:var(--reader-ink);
  padding:13px 14px;
  outline:0;
  font:inherit;
  line-height:1.5;
}
.ai-study-form textarea:focus {
  border-color:rgba(29,86,61,.38);
  box-shadow:0 0 0 3px rgba(29,86,61,.08);
}
.ai-prompt-chips {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.ai-prompt-chips button {
  border:1px solid var(--reader-line);
  border-radius:999px;
  padding:7px 9px;
  background:transparent;
  color:var(--reader-muted);
  font-size:.69rem;
  font-weight:700;
  cursor:pointer;
}
.ai-prompt-chips button:hover,
.ai-prompt-chips button:focus-visible {
  color:var(--green);
  border-color:rgba(29,86,61,.25);
}
.ai-ask-button {
  justify-self:start;
  border:0;
  border-radius:12px;
  padding:10px 14px;
  background:var(--green);
  color:#fff;
  font-weight:800;
  cursor:pointer;
}
.ai-ask-button:disabled {
  opacity:.58;
  cursor:wait;
}
.ai-answer {
  margin-top:14px;
  border:1px solid var(--reader-line);
  border-radius:16px;
  background:rgba(255,255,255,.34);
  overflow:hidden;
}
.ai-answer-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:11px 13px;
  border-bottom:1px solid var(--reader-line);
}
.ai-answer-status {
  color:var(--green);
  font-size:.67rem;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.ai-answer-head strong {
  font-size:.78rem;
}
.ai-answer-section {
  padding:12px 14px;
  border-bottom:1px solid var(--reader-line);
}
.ai-answer-section:last-of-type {
  border-bottom:0;
}
.ai-answer-section p,
.ai-answer-section ul {
  margin:0;
  color:color-mix(in srgb, var(--reader-ink) 76%, var(--reader-muted));
  font-size:.86rem;
  line-height:1.55;
}
.ai-answer-section ul {
  padding-left:18px;
}
.ai-answer-section li + li {
  margin-top:5px;
}
.ai-answer-note {
  padding:10px 14px;
  color:var(--reader-muted);
  font-size:.72rem;
  line-height:1.45;
  background:rgba(118,96,60,.04);
}
.ai-answer-sources {
  display:grid;
  gap:6px;
  padding:12px 14px;
  border-top:1px solid var(--reader-line);
}
.ai-answer-sources a {
  display:grid;
  gap:2px;
  text-decoration:none;
  padding:8px 9px;
  border:1px solid var(--reader-line);
  border-radius:10px;
}
.ai-answer-sources small {
  color:var(--gold);
  font-size:.64rem;
  font-weight:800;
  text-transform:uppercase;
}
.ai-answer-sources strong {
  color:var(--reader-ink);
  font-size:.78rem;
  line-height:1.35;
}
.ai-loading-state,
.ai-error-state {
  padding:14px;
  color:var(--reader-muted);
  font-size:.84rem;
}
.ai-error-state strong {
  display:block;
  color:var(--reader-ink);
  margin-bottom:4px;
}
.ai-error-state p {
  margin:0;
}
.ai-boundary-note {
  margin-top:12px;
  border-top:1px solid var(--reader-line);
  padding-top:10px;
  color:var(--reader-muted);
  font-size:.74rem;
}
.ai-boundary-note summary {
  cursor:pointer;
  font-weight:800;
  color:var(--reader-ink);
}
.ai-boundary-note p {
  margin:8px 0 0;
  line-height:1.5;
}
.reader-body[data-reader-theme="night"] .ai-study-form textarea,
.reader-body[data-reader-theme="night"] .ai-answer {
  background:rgba(255,255,255,.04);
}
@media (max-width:720px) {
  .ai-study-intro {
    display:grid;
  }
  .ai-grounding-badge {
    justify-self:start;
  }
}


/* Reader study density correction */
.study-tab-panel {
  scroll-margin-top: 12px;
}

.ai-study-intro {
  margin-top: 2px;
}

@media (min-width: 981px) {
  .study-sticky-header {
    padding-bottom: 12px;
  }

  .study-tabs {
    margin-bottom: 12px;
  }
}

@media (max-width: 1180px) and (min-width: 981px) {
  .study-tabs button {
    font-size: .62rem;
    padding-left: 3px;
    padding-right: 3px;
  }
}


/* Bible Strategies answer layers */
.ai-reasoning {
  border-bottom:1px solid var(--reader-line);
  padding:11px 14px;
}
.ai-reasoning summary {
  cursor:pointer;
  color:var(--reader-ink);
  font-size:.78rem;
  font-weight:800;
}
.ai-reasoning p {
  margin:8px 0 0;
  color:var(--reader-muted);
  font-size:.82rem;
  line-height:1.52;
}
.ai-strategy-grid {
  display:grid;
  gap:8px;
  margin-top:2px;
}
.ai-strategy-item {
  border:1px solid var(--reader-line);
  border-radius:10px;
  padding:9px 10px;
}
.ai-strategy-item strong {
  display:block;
  color:var(--green);
  font-size:.68rem;
  text-transform:uppercase;
  letter-spacing:.05em;
  margin-bottom:4px;
}
.ai-strategy-item p {
  margin:0;
}
.ai-activation {
  background:rgba(29,86,61,.035);
}


/* Reader design law legibility */
.reader-body[data-reader-theme="night"] .reader-principles .section-heading > p:last-child {
  color: var(--reader-muted);
}
.reader-body[data-reader-theme="night"] .reader-principle-grid p {
  color: color-mix(in srgb, var(--reader-ink) 18%, var(--reader-muted));
}
@supports not (color: color-mix(in srgb, black 50%, white)) {
  .reader-body[data-reader-theme="night"] .reader-principle-grid p {
    color: var(--reader-muted);
  }
}


/* Verification progress */
.verification-progress {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-top:24px;
}
.verification-progress > div {
  padding:18px 20px;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,255,255,.5);
}
.verification-progress strong {
  display:block;
  margin-bottom:4px;
  color:var(--green);
  font-size:1.6rem;
  line-height:1;
}
.verification-progress span {
  color:var(--muted);
  font-size:.82rem;
}
@media (max-width:820px) {
  .verification-progress {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:520px) {
  .verification-progress {
    grid-template-columns:1fr;
  }
}
