/* An illuminated invitation to explore the passage. */
:root{--study-launcher-size:68px;--study-launcher-width:156px;--study-launcher-edge:24px;--study-panel-top:104px;--study-launcher-clearance:calc(var(--study-launcher-size) + var(--study-launcher-edge) + 16px + env(safe-area-inset-bottom,0px))}
.study-launcher{position:fixed;right:calc(var(--study-launcher-edge) + env(safe-area-inset-right,0px));bottom:calc(var(--study-launcher-edge) + env(safe-area-inset-bottom,0px));z-index:40;width:var(--study-launcher-width);height:var(--study-launcher-size);min-height:0;padding:0 16px;display:flex;align-items:center;justify-content:center;gap:10px;border:5px solid #242a26;border-radius:36px;background:linear-gradient(145deg,#40483f,#303536 72%);color:#e4ead7;box-shadow:inset 0 0 0 1px #929f7855,0 8px 28px #25282630,0 2px 6px #25282620;isolation:isolate;touch-action:manipulation;transition:box-shadow .3s,transform .3s,background .3s}
.study-launcher:hover,.study-launcher[aria-pressed=true]{background:linear-gradient(145deg,#485341,#303536 72%);color:#f0f4e9;box-shadow:inset 0 0 0 1px #bed49c99,0 8px 30px #25282638,0 0 22px #a7c77d38}
.study-launcher:hover{transform:translateY(-2px)}
.study-launcher:focus-visible{outline:2px solid #d6e9b8;outline-offset:3px}
.study-book{width:42px;height:46px;position:relative;flex:0 0 42px;display:block;pointer-events:none}
.study-book::before{content:'';position:absolute;left:6px;right:6px;top:1px;height:38px;background:radial-gradient(ellipse at 50% 90%,#d5e8b38c,transparent 70%);filter:blur(4px);opacity:.4;transform-origin:50% 90%;animation:study-book-glow 6.5s ease-in-out infinite}
.study-book svg{position:relative;display:block;width:100%;height:100%;filter:drop-shadow(0 0 3px #b8d59022)}
.study-page-light{animation:study-page-light 8s ease-in-out infinite;opacity:0}
.study-launcher-word{font:500 16px/1 Georgia,serif;letter-spacing:.3px;pointer-events:none}
.study-launcher-label{position:absolute;right:0;bottom:calc(100% + 14px);padding:8px 12px;border:1px solid #626e59;border-radius:7px;background:#303536;color:#eef1e5;white-space:nowrap;font:13px/1.4 Arial,sans-serif;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s}
.study-launcher:hover .study-launcher-label,.study-launcher:focus-visible .study-launcher-label{opacity:1;visibility:visible}
@keyframes study-book-glow{0%,100%{opacity:.25;transform:scale(.9)}50%{opacity:.65;transform:scale(1.1)}}
@keyframes study-page-light{0%,15%{transform:translateX(0);opacity:0}28%{opacity:.6}65%{transform:translateX(76px);opacity:.35}72%,100%{transform:translateX(76px);opacity:0}}
.paused .study-book::before,.paused .study-page-light,.study-open .study-book::before,.study-open .study-page-light{animation-play-state:paused}
/* Keep the launcher and the panel separate, including on compact screens. */
.study-panel{position:fixed;z-index:30;top:auto;right:calc(var(--study-launcher-edge) + env(safe-area-inset-right,0px));bottom:var(--study-launcher-clearance);width:min(410px,calc(100vw - 2 * var(--study-launcher-edge) - env(safe-area-inset-right,0px) - env(safe-area-inset-left,0px)));max-height:calc(100dvh - var(--study-panel-top) - var(--study-launcher-clearance));border-radius:14px;box-shadow:0 12px 42px #25282630}
.study-scroll{max-height:none}
.study-open .workspace{gap:36px}
.study-open .reading-page{padding-left:clamp(12px,3vw,44px);padding-right:clamp(12px,3vw,44px)}
body:has(.study-panel:not([hidden])) .reading-page{max-width:760px}
body.study-open main{padding:0 clamp(20px,4vw,64px) 22px}
.motion-row{padding-right:calc(var(--study-launcher-width) + var(--study-launcher-edge));min-height:44px}
main{padding-bottom:var(--study-launcher-clearance)}
body.study-open main{padding-bottom:var(--study-launcher-clearance)}
@media(min-width:901px) and (max-width:1250px){.study-open .app{grid-template-columns:300px minmax(0,1fr)}.study-open .sidebar{display:flex}.study-open.focus-mode .app,.study-open.nav-hidden .app{grid-template-columns:1fr}.study-open.focus-mode .sidebar,.study-open.nav-hidden .sidebar{display:none}}
@media(min-width:901px) and (max-width:1150px){.study-open .app{grid-template-columns:290px minmax(0,1fr)}.study-open .reading-page{padding-left:12px;padding-right:12px}}
@media(max-width:900px){.study-open .reading-page{padding:25px 14px}body.study-open main{padding-left:20px;padding-right:20px}}
@media(max-width:600px){:root{--study-launcher-size:64px;--study-launcher-width:144px;--study-launcher-edge:18px;--study-panel-top:146px}.study-launcher{padding:0 13px;gap:8px}.study-book{width:38px;height:42px;flex-basis:38px}body.study-open main{padding-left:16px;padding-right:16px}.motion-row{padding-right:calc(var(--study-launcher-width) + 12px)}}
@media(max-height:520px){:root{--study-launcher-size:56px;--study-launcher-width:138px;--study-launcher-edge:12px;--study-panel-top:96px}.study-book{width:34px;height:38px;flex-basis:34px}.study-top{padding:8px 16px 0}.study-top .eyebrow{display:none}.study-panel .panel-header{align-items:center}.study-panel .panel-header h2{font-size:20px;margin:0}#study-reference{margin:2px 0 4px;font-size:12px}.study-tabs button{min-height:36px;padding:6px 3px}.study-scroll{padding:12px 16px 18px}}
@media(prefers-reduced-motion:reduce){.study-launcher,.study-launcher-label{transition:none}.study-launcher:hover{transform:none}.study-book::before,.study-page-light{animation:none}.study-book::before{opacity:.3}.study-page-light{opacity:0}}
