/* The prayer route is an illuminated devotional folio, distinct from the community home. */
body.guide-app{background:#e7d3a3}
body.guide-app>header{background:#f8edcf;color:#153f67;border-bottom:1px solid #b28b43;min-height:62px}
body.guide-app>header .brand{color:#153f67;font-size:19px}
body.guide-app>header .brand small{color:#735722}
body.guide-app #site-menu-toggle{color:#153f67;border-color:#b79550}
body.guide-app main{padding:10px 14px;max-width:1450px}
body.guide-app #prayer .mystery-stage{border:3px double #9e772e;outline:1px solid #cfaf67;outline-offset:-9px;padding:19px 25px 0;background:radial-gradient(ellipse at 48% 30%,#fff9e9aa,#f2dfb380),repeating-linear-gradient(97deg,#fbf0d800 0 2px,#b9954310 3px,#fbf0d800 4px),#fbefd3}
body.guide-app #prayer .mystery-stage:before,body.guide-app #prayer .mystery-stage:after{width:96px;height:96px;top:1px}
.folio-bottom-corners{position:absolute;inset:auto 1px 1px;height:78px;pointer-events:none;z-index:3}
.folio-bottom-corners:before,.folio-bottom-corners:after{content:'';position:absolute;width:78px;height:78px;bottom:0;left:0;background:url('folio-corner.svg') center/contain no-repeat;transform:scaleY(-1)}
.folio-bottom-corners:after{left:auto;right:0;transform:scale(-1)}
body.guide-app #prayer .prayer-heading{border-bottom:3px double #b99750;padding-bottom:12px}
body.guide-app #prayer .prayer-stream{padding-top:24px}
body.guide-app #prayer .mystery-visual{border:3px double #aa8134;outline:1px solid #d5b665;outline-offset:4px;box-shadow:0 0 0 7px #fcf1d6,0 0 0 8px #bd9b55;margin-left:8px;margin-bottom:35px}
body.guide-app #prayer .mystery-visual:after{content:'';position:absolute;bottom:-23px;left:-25px;right:-25px;height:92px;background:url('folio-lilies.svg') left bottom/116px auto no-repeat,url('folio-lilies.svg') right bottom/116px auto no-repeat;pointer-events:none}
body.guide-app #prayer .line{border-bottom:0;margin-bottom:20px}
.line p{line-height:1.8}
body.guide-app #prayer .daily-devotion>.role{display:none}
body.guide-app #prayer .daily-devotion{padding-top:8px}
.daily-devotion p::first-letter{font:inherit;float:none;color:inherit;background:none;border:0;margin:0;padding:0;text-shadow:none}
.daily-devotion .prayer-cue:first-child::first-letter{float:left;font-size:3.15em;line-height:1.05;color:#e4c574;background:#153f67;border:3px double #c6a14f;margin:0 9px 0 0;padding:0 .13em;text-shadow:0 1px #5b401a}
body.guide-app #prayer .invocation-panel,body.guide-app #prayer .blessing-panel{border:3px double #b28c42;outline-offset:4px;position:relative;background:linear-gradient(105deg,#dce7efb0,#f9faf4bd,#dce7efb0);margin-top:26px;margin-bottom:28px}
body.guide-app #prayer .blessing-panel{padding:24px clamp(25px,10vw,125px)}
.blessing-panel:before,.blessing-panel:after{content:'';position:absolute;bottom:4px;left:0;width:100px;height:85px;background:url('folio-lilies.svg') center/contain no-repeat;pointer-events:none}
.blessing-panel:after{left:auto;right:0;transform:scaleX(-1)}
body.guide-app #prayer .petition-panel{padding-top:10px}
.petition-panel h3:before,.petition-panel h3:after{content:'';display:inline-block;width:70px;height:25px;margin:0 14px;background:url('folio-flourish.svg') center/contain no-repeat}
.petition-panel h3:after{transform:scaleX(-1)}
.stage-credit{font-family:Georgia,serif;font-size:13px;padding-left:60px;padding-right:60px;z-index:4}
/* Pure-white word highlight with crisp dark text; retain the bouncing tracking dot. */
.prayer-cue{display:inline-block;position:relative}
.cue-active{z-index:1;color:#103f61;background:#fff;border-radius:.15em;text-decoration:none;text-shadow:none;box-shadow:none}
.cue-active:before{content:'';position:absolute;left:50%;bottom:calc(100% - .12em);height:12px;width:12px;border-radius:50%;background:#19efff;border:2px solid #fff;outline:1px solid #176071;box-shadow:0 0 8px #19c8df;pointer-events:none;transform:translateX(-50%);animation:spoken-word-bounce var(--word-cue-duration,.35s) ease-in-out var(--word-cue-elapsed,0s) 1 both}
@keyframes spoken-word-bounce{0%,100%{transform:translate(-50%,0)}50%{transform:translate(-50%,-.3em)}}
@keyframes spoken-word-bloom{from{box-shadow:0 0 0 #36dbe000}to{box-shadow:0 0 12px #36dbe048}}
body.playback-paused .cue-active,body.playback-paused .cue-active:before{animation-play-state:paused}
.novena-welcome,.entry-day-heading{display:none}
/* A first-visit Novena cover; Begin invokes the existing player in the same gesture. */
body.novena-entry .novena-welcome,body.novena-entry .entry-day-heading{display:block}
body.novena-entry .novena-opening .prayer-heading>h2,body.novena-entry .novena-opening .line,body.novena-entry #prayer .novena-opening .media-player{display:none}
body.novena-entry #prayer .novena-opening .prayer-stream{padding-bottom:28px}
.entry-day-heading{color:#153f67;font-weight:700}
.novena-welcome{padding:18px 0 0;text-align:center}
.welcome-kicker{font:11px/1.6 Arial,sans-serif;letter-spacing:1.8px;color:#80602d}
.novena-welcome h3{font:700 clamp(27px,3vw,38px)/1.25 Georgia,serif;color:#153f67;margin:15px 0}
.novena-welcome p{font:21px/1.65 Georgia,serif;margin:14px 0}
.entry-day-label{display:flex;align-items:center;justify-content:center;gap:10px;font:15px/1.5 Arial,sans-serif;margin:22px 0;color:#69532f}
#entry-day{max-width:100%;min-height:44px;border:1px solid #b48c43;border-radius:3px;color:#153f67;background:#fff9e9;padding:8px;font:16px/1.3 Georgia,serif}
#begin-novena{display:none;grid-row:3;justify-self:center;margin:8px auto 0;align-items:center;justify-content:center;gap:13px;width:min(390px,100%);min-height:64px;padding:14px 20px;font:700 24px/1.3 Georgia,serif;background:#153f67;color:#fff6da;border:3px double #d9bb70;border-radius:4px;box-shadow:0 4px 14px #59451f24}
body.novena-entry #begin-novena{display:flex}
#begin-novena:hover{background:#0c304e}
.novena-welcome .welcome-help{font:17px/1.6 Georgia,serif;color:#695637;max-width:430px;margin:18px auto 24px}
.welcome-invocation{clear:both;color:#153f67;font:italic 700 25px/1.5 Georgia,serif;border:3px double #af8a42;padding:16px 24px;background:linear-gradient(105deg,#dce7ef,#f3f5ee,#dce7ef)}
body.novena-entry .folio-context{margin-top:9px}
@media(max-width:700px){
 body.guide-app>header{min-height:58px;padding:7px 12px}
 body.guide-app main{padding:6px}
 body.guide-app #prayer .mystery-stage{padding:14px 13px 0}
 body.guide-app #prayer .mystery-stage:before,body.guide-app #prayer .mystery-stage:after{width:52px;height:52px}
 body.guide-app #prayer .prayer-stream{padding:18px 10px 25vh}
 body.guide-app #prayer .mystery-visual{margin:7px auto 35px;width:min(245px,86%)}
 .folio-bottom-corners,.folio-bottom-corners:before,.folio-bottom-corners:after{height:45px}.folio-bottom-corners:before,.folio-bottom-corners:after{width:45px}
 .stage-credit{padding-left:32px;padding-right:32px;font-size:12px}
 .line p{line-height:1.85}
 body.guide-app #prayer .blessing-panel{padding:18px 20px 78px}
 .blessing-panel:before,.blessing-panel:after{height:70px;width:85px}
 .petition-panel h3:before,.petition-panel h3:after{width:40px;margin:0 7px}
 .novena-welcome{padding:0}
 .novena-welcome h3{font-size:27px}
 .novena-welcome p{font-size:20px}
 .entry-day-label{flex-direction:column;gap:6px}
 #entry-day{width:100%}
 .welcome-invocation{font-size:23px;padding:16px 12px}
 body.novena-entry #prayer .novena-opening .mystery-visual{height:240px;width:170px;margin-bottom:26px}
}
@media(prefers-reduced-motion:reduce){.cue-active,.cue-active:before{animation:none!important}}

/* Let the day's devotion lead; keep the opening action on the sacred image. */
.folio-day{font-size:clamp(22px,2.2vw,29px);letter-spacing:1.5px;line-height:1.2}
.folio-day-subtitle{font-size:clamp(31px,3.3vw,46px);line-height:1.15;margin-top:9px;text-wrap:balance}
#begin-novena{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:4;grid-row:auto;margin:0;width:76px;min-height:76px;height:76px;padding:21px;border-radius:50%;border:2px solid #f3db9c;background:#103451df;color:#fff6df;box-shadow:0 3px 20px #0005;pointer-events:auto}
#begin-novena svg{width:32px;height:32px;fill:currentColor;display:block;transform:translateX(2px)}
#begin-novena:hover{background:#153f67;box-shadow:0 0 0 5px #fff4d535,0 3px 20px #0005}
#begin-novena:focus-visible{outline:3px solid #fff;outline-offset:5px}
@media(max-width:700px){.folio-day{font-size:22px}.folio-day-subtitle{font-size:31px;margin-top:7px}#begin-novena{width:66px;height:66px;min-height:66px;padding:17px}}
@media(max-height:550px){.folio-day{font-size:19px}.folio-day-subtitle{font-size:26px}}
/* The illustration is an inset: text flows beside it, then naturally beneath it. */
body.guide-app #prayer .mystery-stage .prayer-stream .mystery-visual{float:left;width:46%;max-width:520px;height:auto;aspect-ratio:2/3;margin:8px 30px 30px 8px;position:relative}
body.guide-app #prayer .mystery-stage .mystery-visual .sacred-art{position:absolute;inset:8px;width:auto;height:auto;margin:0}
body.guide-app #prayer .mystery-stage .prayer-stream .line{clear:none}
body.guide-app #prayer .mystery-stage .prayer-stream .invocation-panel,body.guide-app #prayer .mystery-stage .prayer-stream .petition-panel,body.guide-app #prayer .mystery-stage .prayer-stream .blessing-panel{clear:both}
@media(max-width:700px){
 body.guide-app #prayer .mystery-stage .prayer-stream{padding-left:7px;padding-right:7px}
 body.guide-app #prayer .mystery-stage .prayer-stream .mystery-visual{float:left;width:46%;max-width:none;height:auto;margin:6px 18px 24px 4px;aspect-ratio:2/3}
 body.guide-app #prayer .mystery-stage .mystery-visual .sacred-art{inset:5px}
 body.guide-app #prayer .mystery-stage .mystery-visual:after{left:-12px;right:-12px;height:68px;bottom:-18px;background-size:80px auto}
 body.guide-app #prayer .mystery-stage .prayer-stream .line p{font-size:20px;line-height:1.85;overflow-wrap:break-word}
 body.guide-app #prayer .novena-welcome h3{font-size:24px}
 body.guide-app #prayer .novena-welcome .welcome-kicker{letter-spacing:.6px;font-size:10px}
}
/* Center the devotional copy in the space beside, and beneath, the inset. */
body.guide-app #prayer .mystery-stage .prayer-stream,body.guide-app #prayer .mystery-stage .prayer-stream .line,body.guide-app #prayer .mystery-stage .prayer-stream .line p,body.guide-app #prayer .mystery-stage .prayer-stream .line .role{text-align:center}
body.guide-app #prayer .prayer-heading,.novena-welcome{text-align:center}

/* Fit the illustration frame to the landscape artwork without letterboxing. */
body.guide-app #prayer .mystery-stage .prayer-stream .mystery-visual{width:50%;max-width:620px;aspect-ratio:3/2}
body.guide-app #prayer .mystery-stage .mystery-visual .sacred-art{inset:0}
body.guide-app #prayer .mystery-stage .mystery-visual .sacred-art img{object-fit:cover}

/* Fruit typography follows the chapter label and mystery title. */
body.guide-app #prayer .mystery-stage .mystery-fruit>span{font:600 10px/1.5 Arial,sans-serif;letter-spacing:2px;text-transform:uppercase}
body.guide-app #prayer .mystery-stage .mystery-fruit>strong{font:700 clamp(27px,3vw,42px)/1.15 Georgia,serif;text-wrap:balance}
@media(max-width:700px){body.guide-app #prayer .mystery-stage .mystery-fruit>span{font-size:9px;letter-spacing:.8px}body.guide-app #prayer .mystery-stage .mystery-fruit>strong{font-size:26px}}
@media(max-height:550px){body.guide-app #prayer .mystery-stage .mystery-fruit>strong{font-size:24px}}

.scripture-citation.cue-active{position:relative}
