/* Illustrated Bible, animated reading room, and study edition */
.sidebar{overflow-y:auto;scrollbar-width:thin;scrollbar-color:#415466 transparent}.sidebar-bottom{flex-shrink:0;padding-top:20px}
.illustrated-intro,.study-cover{position:relative;overflow:hidden;isolation:isolate;border-radius:19px;padding:30px 37px;background:linear-gradient(115deg,#182f40 0%,#294252 64%,#51665c 100%);color:#f9f1df;border:1px solid #c5ab7d33;box-shadow:0 15px 40px #122c3820}
.illustrated-intro:after,.study-cover:after{content:'';position:absolute;z-index:-1;right:-65px;top:-145px;width:440px;height:440px;border:1px solid #e4cf9b2e;border-radius:50%;box-shadow:0 0 0 45px #e4cf9b0a,0 0 0 90px #e4cf9b07}
.illustrated-intro h2,.study-cover h2{font-weight:400;margin:11px 0 8px;font-size:clamp(27px,3vw,40px);letter-spacing:-.045em}.illustrated-intro p,.study-cover p{margin:0;max-width:620px;color:#d4dacf;font-size:13px;line-height:1.75}.illustrated-intro .eyebrow,.study-cover .eyebrow{color:#e6c48d}.illustrated-symbol{position:absolute;right:95px;top:23px;font-size:90px;font-family:Georgia,serif;color:#d8b98240;transform:rotate(15deg)}
.illustrated-toolbar,.study-toolbar{margin:19px 0 18px;box-shadow:0 8px 28px #00000005}.illustrated-toolbar select,.study-toolbar select{max-width:100%}
.book-surround{position:relative;padding:clamp(14px,3.4vw,40px);border-radius:21px;background:radial-gradient(ellipse at 50% 14%,#ddd0b5,#b9ad96 70%,#a79a85);box-shadow:inset 0 3px 14px #4b402920,0 12px 34px #201e161c;perspective:1800px;overflow:hidden}
.book-surround:before{content:'';position:absolute;inset:0;opacity:.23;pointer-events:none;background-image:repeating-linear-gradient(40deg,transparent 0,transparent 3px,#fff2 4px,transparent 5px)}
.book-stage{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:1030px;margin:auto;min-height:670px;background:#fbf2df;box-shadow:0 4px 0 #f5ebd6,0 8px 0 #e5d6bb,0 12px 0 #d8c4a3,0 23px 45px #42382771,0 0 0 8px #5e5148;border:1px solid #9e876a;border-radius:4px 12px 12px 4px;transform-style:preserve-3d}
.book-stage:before,.book-stage:after{content:'';position:absolute;top:2px;bottom:2px;width:13px;z-index:4;pointer-events:none}.book-stage:before{left:0;background:linear-gradient(90deg,#5d4b35a6,#a48d6928,transparent)}.book-stage:after{right:0;background:linear-gradient(270deg,#9a876a99,transparent)}
.book-gutter{position:absolute;top:0;bottom:0;left:50%;width:23px;transform:translateX(-50%);z-index:5;pointer-events:none;background:linear-gradient(90deg,transparent,#6b594330,#241d1229,#fff8e3ad,transparent)}
.book-leaf{position:relative;min-width:0;display:flex;flex-direction:column;padding:24px clamp(19px,3vw,39px) 21px;background:linear-gradient(100deg,#f4ead7 0%,#fff9e9 50%,#fbf0d9 100%);color:#3d362c;backface-visibility:hidden;transform-style:preserve-3d;min-height:670px}
.leaf-left{border-radius:3px 0 0 3px;background:linear-gradient(90deg,#f6eddb,#fff9e8 86%,#e9dec8)}.leaf-right{border-radius:0 12px 12px 0;background:linear-gradient(90deg,#ece0c9 0%,#fff9e8 12%,#faf0dc)}
.leaf-topline{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #bdab8b;color:#897554;padding-bottom:12px;font-size:9px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.leaf-topline span:last-child{letter-spacing:.025em;text-align:right}
.leaf-art{margin:18px 0 16px;position:relative;border:6px solid #e8d8b7;box-shadow:0 0 0 1px #c5ae84,0 7px 16px #3d281b21;overflow:hidden;background:#d4c4a9}.leaf-art img{display:block;width:100%;height:215px;object-fit:cover;transition:transform 1.1s cubic-bezier(.2,.8,.2,1)}.book-leaf:hover .leaf-art img{transform:scale(1.035)}.leaf-art figcaption{position:absolute;bottom:0;left:0;right:0;padding:9px 9px 5px;background:linear-gradient(transparent,#172a31aa);color:#fff5de;font-size:8px;text-align:right;letter-spacing:.02em}
.leaf-body{flex:1;min-height:0}.leaf-title{text-align:center;margin:0 0 13px}.leaf-title>span{font-size:9px;color:#af8861;letter-spacing:.17em;font-weight:750}.leaf-title h3{font-size:24px;font-weight:400;color:#4c3c2e;margin:5px 0 0}.leaf-verses{font-family:Georgia,'Times New Roman',serif;font-size:clamp(13px,1.1vw,15.5px);line-height:1.75;color:#3b362f}.leaf-verses p{margin:0 0 10px;line-height:1.75;text-align:justify;hyphens:auto}.leaf-num{font-size:10px;vertical-align:super;color:#ad7943;font-weight:700;margin-right:5px}.leaf-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:20px;border-top:1px solid #bcac8d;padding-top:12px;font:700 11px system-ui,sans-serif;color:#99856a}.leaf-bottom button{border:0;background:none;color:#826039;display:inline-flex;align-items:center;gap:3px;padding:4px 0;font-weight:700;font-size:11px}.leaf-bottom button:hover{text-decoration:underline}
.book-stage.page-turn-next .leaf-right{z-index:8;transform-origin:left center;animation:turn-page-forward .43s cubic-bezier(.55,.03,.45,.96) both}.book-stage.page-turn-prev .leaf-left{z-index:8;transform-origin:right center;animation:turn-page-back .43s cubic-bezier(.55,.03,.45,.96) both}
@keyframes turn-page-forward{0%{transform:rotateY(0);filter:brightness(1)}50%{filter:brightness(.8)}100%{transform:rotateY(-160deg);filter:brightness(.75)}}
@keyframes turn-page-back{0%{transform:rotateY(0);filter:brightness(1)}50%{filter:brightness(.8)}100%{transform:rotateY(160deg);filter:brightness(.75)}}
.book-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:22px}.book-controls .btn{gap:8px}.book-position{display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center}.book-position strong{font:400 20px Georgia,serif;color:var(--ink)}.book-position>span:last-child{font-size:10px;color:var(--muted)}.illustrated-footer{display:flex;gap:13px;align-items:start;margin:24px auto 0;max-width:780px;color:var(--muted);font-size:12px}.illustrated-footer>span{color:var(--golddeep);font-size:24px}.illustrated-footer p{margin:0}.illustrated-footer button{border:0;background:none;padding:0;color:var(--golddeep);text-decoration:underline;font-weight:700}
.study-cover{background:linear-gradient(110deg,#f7f0e3,#e9e9d9 70%,#d6dfd0);border-color:#ded4bb;box-shadow:none;color:#203b45}.study-cover .eyebrow{color:#9d7a3c}.study-cover h2{color:#263c44;max-width:790px}.study-cover p{color:#5d6a68;max-width:810px}.study-cover:after{border-color:#a8a88135;box-shadow:0 0 0 45px #a8a8810d,0 0 0 90px #a8a8810a}
.study-layout{display:grid;grid-template-columns:minmax(0,1fr) 265px;align-items:start;gap:24px}.study-main{min-width:0}.study-chapter-heading{padding:28px 30px 23px;border-bottom:1px solid var(--border)}.study-chapter-heading h2{font-size:37px;margin:6px 0 10px;font-weight:400}.study-chapter-heading p{color:var(--muted);max-width:800px;margin-bottom:10px;font-size:13px}.study-metrics{display:flex;flex-wrap:wrap;gap:11px 24px;color:var(--golddeep);font-weight:700;font-size:11px}.study-verses{display:flex;flex-direction:column;gap:16px}.study-verse{min-width:0;background:var(--surface);border:1px solid var(--border);border-radius:17px;padding:25px 26px 20px;box-shadow:0 8px 25px #152f3607;scroll-margin-top:95px;transition:border-color .2s}.study-verse:target{border-color:var(--golddeep)}.study-verse-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:18px}.study-reference{font-size:11px;font-weight:800;letter-spacing:.03em;color:var(--golddeep)}.study-save{margin-left:auto;border:1px solid var(--border);color:var(--muted);background:transparent;width:29px;height:29px;border-radius:9px;display:grid;place-items:center}.study-save.saved{color:#ae8347;background:#f7e8cf;border-color:#d3b789}
.study-badge{display:inline-flex;align-items:center;border-radius:20px;padding:5px 9px;font-size:9px;line-height:1.3;font-weight:800;letter-spacing:.01em;white-space:normal}.study-badge.prophecy{background:#f2e5f8;color:#84469b;border:1px solid #dbc4e4}.study-badge.fulfillment{background:#ddf0e5;color:#256a4b;border:1px solid #addbc1}.study-badge.vision{background:#e6e6fa;color:#57549b;border:1px solid #c9c9ec}.study-badge.poetry{background:#e2eafb;color:#345e96;border:1px solid #bdcfec}.study-badge.promise{background:#f9edd5;color:#916929;border:1px solid #e9d6a9}.study-badge.teaching{background:#e8f0dd;color:#536e2c;border:1px solid #cfddaf}.study-badge.foundation{background:#ecede9;color:#5e6659;border:1px solid #d8dbd0}.study-badge.neutral{background:var(--surface2);color:var(--muted);border:1px solid var(--border)}
.study-scripture{font:400 clamp(18px,1.8vw,22px)/1.75 Georgia,'Times New Roman',serif;color:var(--ink);margin:0 0 20px;overflow-wrap:anywhere}.study-scripture .verse-num{display:inline-flex;font:800 11px system-ui,sans-serif;color:var(--golddeep);margin-right:13px;vertical-align:super}.study-explanation{display:flex;gap:13px;padding:17px 19px;background:var(--surface2);border-radius:12px;border-left:3px solid #cba565}.study-explanation>div:last-child{min-width:0}.study-explanation strong{font-size:12px;color:var(--ink)}.study-explanation p{margin:6px 0 0;color:var(--muted);line-height:1.7;font-size:12px}.study-icon{width:28px;height:28px;flex:0 0 28px;border-radius:9px;display:grid;place-items:center;background:#e7d2a580;color:#b18239}.study-explanation .study-question{margin-top:12px;color:var(--ink)}.study-crossrefs{margin-top:17px}.study-crossrefs>span{display:block;font-size:10px;letter-spacing:.04em;color:var(--muted);font-weight:800;margin-bottom:10px}.study-crossrefs>div{display:flex;gap:7px;flex-wrap:wrap}.study-crossrefs button{border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--golddeep);padding:7px 10px;display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:700;transition:.15s}.study-crossrefs button:hover{border-color:var(--gold);background:var(--surface2)}.study-no-cross{margin-top:14px;color:var(--muted);font-size:10px;font-style:italic}.study-side{position:sticky;top:24px;display:grid;gap:17px}.study-side .card-pad{padding:22px}.guide-steps{padding-left:19px;margin:15px 0 0;color:var(--muted);font-size:12px;line-height:1.7}.guide-steps li{margin-bottom:10px}.guide-steps strong{color:var(--ink)}.study-legend{display:grid;justify-items:start;gap:5px;margin-top:17px}.study-legend p{font-size:11px;line-height:1.5;margin:0 0 9px;color:var(--muted)}.disclaimer{border-left:2px solid var(--gold);padding:0 9px 0 15px;color:var(--muted);font-size:11px;line-height:1.7}.study-sources{padding:24px 0 0;color:var(--muted);font-size:10px;line-height:1.8}.study-sources a{color:var(--golddeep);text-decoration:underline}
@media(max-width:1260px){.study-layout{grid-template-columns:minmax(0,1fr) 220px;gap:16px}.study-side .card-pad{padding:17px}.book-leaf{padding:19px 20px}.leaf-art img{height:180px}.book-stage,.book-leaf{min-height:640px}}
@media(max-width:1080px){.study-layout{grid-template-columns:1fr}.study-side{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}.study-side .disclaimer{grid-column:1/-1}}
@media(max-width:760px){.illustrated-intro,.study-cover{padding:25px 23px}.illustrated-symbol{display:none}.illustrated-toolbar,.study-toolbar{gap:8px}.book-surround{padding:15px 12px 21px;border-radius:15px}.book-stage{grid-template-columns:1fr;min-height:620px;max-width:520px;box-shadow:0 4px 0 #f5ebd6,0 8px 0 #e5d6bb,0 17px 32px #42382775,0 0 0 5px #5e5148}.book-gutter{display:none}.book-leaf{min-height:620px;padding:19px 23px 18px;border-radius:4px 11px 11px 4px}.leaf-art{margin:14px 0}.leaf-art img{height:clamp(150px,45vw,245px)}.leaf-title h3{font-size:22px}.leaf-verses{font-size:15px}.book-stage.page-turn-next .leaf-left{z-index:8;transform-origin:left center;animation:turn-page-forward .43s cubic-bezier(.55,.03,.45,.96) both}.book-controls{gap:8px;margin-top:23px}.book-controls .btn{font-size:10px;padding:10px 9px}.book-position .eyebrow{font-size:8px}.book-position>span:last-child{display:none}.book-position strong{font-size:17px}.study-chapter-heading{padding:22px 4px}.study-chapter-heading h2{font-size:32px}.study-verse{padding:21px 16px}.study-verse-head{gap:7px}.study-scripture{font-size:19px}.study-explanation{padding:14px 13px;gap:9px}.study-side{grid-template-columns:1fr}.study-side .disclaimer{grid-column:auto}.study-cover h2{font-size:27px}}
@media(max-width:410px){.book-surround{padding:11px 9px 17px}.book-leaf{padding:15px 14px 14px}.leaf-art img{height:160px}.leaf-verses{font-size:13.5px;line-height:1.6}.leaf-verses p{margin-bottom:7px}.book-stage,.book-leaf{min-height:560px}.book-controls .btn svg{display:none}.book-position strong{font-size:14px}}
@media(prefers-reduced-motion:reduce){.book-stage.page-turn-next .leaf-right,.book-stage.page-turn-prev .leaf-left,.book-stage.page-turn-next .leaf-left{animation:none}.leaf-art img{transition:none}}
