/* Keep the full illustration beside its narrated text, including Rosary pages. */
body.guide-app #prayer .mystery-stage.natural-prayer-stage.consistent-prayer-layout>.natural-reading,
body.guide-app #prayer .mystery-stage.natural-prayer-stage.consistent-prayer-layout.has-natural-rosary>.natural-reading{
 display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;
 width:min(100%,1320px);gap:clamp(16px,3vw,42px);padding:12px clamp(12px,3vw,40px) 24px;
}
body.guide-app #prayer .mystery-stage.natural-prayer-stage.consistent-prayer-layout .natural-reading>.mystery-visual{
 grid-area:1/1!important;justify-content:center;padding:0;height:100%;min-height:0;
}
body.guide-app #prayer .mystery-stage.natural-prayer-stage.consistent-prayer-layout .natural-reading>.prayer-stream{
 grid-area:1/2!important;align-self:stretch;height:100%;padding:24px 12px;min-height:0;
}
body.guide-app #prayer .mystery-stage.natural-prayer-stage.consistent-prayer-layout .natural-reading .sacred-art{
 width:100%;height:100%;max-width:none;max-height:none;border-radius:4px;border:0;
}
body.guide-app #prayer .mystery-stage.natural-prayer-stage.consistent-prayer-layout .natural-reading .sacred-art img{
 width:100%;height:100%;max-height:100%;object-fit:contain;object-position:center;
}
body.guide-app #prayer .local-hymn-sheet{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;}
body.guide-app #prayer .local-hymn-sheet .hymn-devotional-portrait{grid-area:1/1!important;}
body.guide-app #prayer .local-hymn-sheet .local-hymn-copy{grid-area:1/2!important;}
/* Emphasis shares the exact same audio-clock cue as the bouncing ball.
   Paint-only changes keep the surrounding words from jumping or reflowing. */
body.guide-app #prayer .prayer-cue.cue-active{
 color:#fff4c7!important;background:#e7c87d38!important;border-radius:.14em;
 text-decoration:underline!important;text-decoration-color:#f4d27d!important;
 text-decoration-thickness:2px;text-underline-offset:.18em;
 text-shadow:0 0 1px currentColor,0 0 8px #f4d27d80!important;
 box-shadow:0 0 0 2px #e7c87d38!important;
}
body.guide-app #prayer .prayer-cue.cue-active:before{
 content:'';position:absolute;left:50%;bottom:calc(100% + 3px);
 width:8px;height:8px;border-radius:50%;background:#ffe8a9;
 animation:spoken-word-bounce var(--word-cue-duration,.35s) ease-in-out var(--word-cue-elapsed,0s) 1 both;
}
body.playback-paused #prayer .prayer-cue.cue-active:before{animation-play-state:paused;}
@media(max-width:700px){
 body.guide-app #prayer .mystery-stage.natural-prayer-stage.consistent-prayer-layout>.natural-reading,
 body.guide-app #prayer .mystery-stage.natural-prayer-stage.consistent-prayer-layout.has-natural-rosary>.natural-reading{
  grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)!important;gap:10px;padding:8px 10px 20px;
 }
 body.guide-app #prayer .mystery-stage.natural-prayer-stage.consistent-prayer-layout .natural-reading>.prayer-stream{padding:20px 4px;}
 body.guide-app #prayer .mystery-stage.natural-prayer-stage.consistent-prayer-layout .natural-reading .prayer-stream .line p{
  font-size:clamp(17px,3.2vw,23px);line-height:1.6;overflow-wrap:break-word;
 }
 body.guide-app #prayer .local-hymn-sheet{gap:10px;padding-inline:12px!important;}
 body.guide-app #prayer .local-hymn-sheet .media-player{grid-column:1/-1;grid-row:2;}
 body.guide-app #prayer .local-hymn-sheet .local-hymn-copy{margin-top:0;}
 body.guide-app #prayer .local-hymn-sheet .local-hymn-copy h2{font-size:23px;}
 body.guide-app #prayer .local-hymn-sheet .local-hymn-copy .hymn-lyrics{font-size:17px;line-height:1.6;}
}
@media(prefers-reduced-motion:reduce){body.guide-app #prayer .prayer-cue.cue-active:before{animation:none!important;}}

/* Alternate by section; advancing words within one section keeps its image still. */
body.guide-app.reading-image-right #prayer .mystery-stage.natural-prayer-stage.consistent-prayer-layout .natural-reading>.mystery-visual{grid-area:1/2!important;}
body.guide-app.reading-image-right #prayer .mystery-stage.natural-prayer-stage.consistent-prayer-layout .natural-reading>.prayer-stream{grid-area:1/1!important;}
body.guide-app.reading-image-right #prayer .local-hymn-sheet .hymn-devotional-portrait{grid-area:1/2!important;}
body.guide-app.reading-image-right #prayer .local-hymn-sheet .local-hymn-copy{grid-area:1/1!important;}

/* Quiet word tracking: soft paint transitions with no pulsing or bouncing. */
body.guide-app #prayer .prayer-cue{
 transition:background-color 160ms ease,color 160ms ease,box-shadow 160ms ease,text-decoration-color 160ms ease;
}
body.guide-app #prayer .prayer-cue.cue-active{
 animation:none!important;text-shadow:none!important;
 background:#e7c87d29!important;box-shadow:0 0 0 2px #e7c87d29!important;
 text-decoration-color:#f4d27d88!important;
}
body.guide-app #prayer .prayer-cue.cue-active:before{
 animation:none!important;transform:translateX(-50%)!important;
 width:4px!important;height:4px!important;opacity:.45;
 border:0!important;outline:0!important;box-shadow:none!important;
}
@media(prefers-reduced-motion:reduce){body.guide-app #prayer .prayer-cue{transition:none!important;}}

/* Balanced artwork and inline speaker labels. The beads belong to the artwork. */
body.guide-app #prayer .mystery-stage.natural-prayer-stage.consistent-prayer-layout>.natural-reading,
body.guide-app #prayer .mystery-stage.natural-prayer-stage.consistent-prayer-layout.has-natural-rosary>.natural-reading{
 grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)!important;gap:clamp(22px,4vw,56px);
 align-items:center;padding-inline:clamp(24px,4vw,58px);
}
body.guide-app.reading-image-right #prayer .mystery-stage.natural-prayer-stage.consistent-prayer-layout>.natural-reading{
 grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr)!important;
}
body.guide-app #prayer .mystery-stage.natural-prayer-stage.consistent-prayer-layout .natural-reading>.mystery-visual{
 align-self:center;justify-self:center;width:100%;max-width:340px;height:min(100%,430px);max-height:48dvh;
}
body.guide-app #prayer .mystery-stage.natural-prayer-stage.consistent-prayer-layout .natural-reading .sacred-art img{
 border:0!important;padding:0!important;border-radius:6px;box-shadow:0 8px 26px #0003;
}
body.guide-app #prayer .mystery-stage.natural-prayer-stage.consistent-prayer-layout .speaker-cue{display:none!important;}
body.guide-app #prayer .mystery-stage.natural-prayer-stage.consistent-prayer-layout .natural-reading .line>.role{
 display:inline-flex;align-items:center;vertical-align:baseline;gap:.35em;margin:0 .35em 0 0;
 font:bold 18px/1.6 Georgia,serif;letter-spacing:0;text-transform:none;color:#f3dfb2;
}
body.guide-app #prayer .mystery-stage.natural-prayer-stage.consistent-prayer-layout .natural-reading .line>.role svg{
 width:1em;height:1em;fill:none;stroke:currentColor;stroke-width:1.8;flex:none;
}
body.guide-app #prayer .mystery-stage.natural-prayer-stage.consistent-prayer-layout .natural-reading .line>.role strong{font:inherit;font-weight:700;}
body.guide-app #prayer .mystery-stage.natural-prayer-stage.consistent-prayer-layout .natural-reading .line>p:first-of-type{display:inline;}
body.guide-app #prayer .mystery-stage.natural-prayer-stage.consistent-prayer-layout .natural-reading>.prayer-stream{text-align:left;padding-top:28px;padding-bottom:28px;}
body.guide-app #prayer .mystery-stage.natural-prayer-stage.consistent-prayer-layout .natural-reading .line,
body.guide-app #prayer .mystery-stage.natural-prayer-stage.consistent-prayer-layout .natural-reading .line p{text-align:left;}
body.guide-app #prayer .mystery-visual>.natural-rosary{
 display:block;position:absolute;inset:-12px -12px -20px;width:auto;height:auto;min-height:0;
 padding:0;margin:0;pointer-events:none;z-index:2;overflow:visible;background:none;border:0;
}
body.guide-app #prayer .mystery-visual>.natural-rosary[hidden]{display:none!important;}
body.guide-app #prayer .mystery-visual>.natural-rosary canvas{
 position:absolute;inset:0;width:100%;height:100%;filter:drop-shadow(1px 2px 2px #0004);
}
body.guide-app #prayer .local-hymn-sheet .hymn-devotional-portrait{
 align-self:center;justify-self:center;width:min(100%,340px);height:min(100%,430px);max-height:48dvh;
 border:0;box-shadow:none;background:none;
}
@media(max-width:700px){
 body.guide-app #prayer .mystery-stage.natural-prayer-stage.consistent-prayer-layout>.natural-reading,
 body.guide-app #prayer .mystery-stage.natural-prayer-stage.consistent-prayer-layout.has-natural-rosary>.natural-reading{
  padding-inline:12px;gap:18px;
 }
 body.guide-app #prayer .mystery-stage.natural-prayer-stage.consistent-prayer-layout .natural-reading .line>.role{font-size:17px;}
 body.guide-app #prayer .mystery-stage.natural-prayer-stage.consistent-prayer-layout .natural-reading>.mystery-visual{max-height:40dvh;}
}
/* Short prayers sit beside the center of the artwork; long prayers remain scrollable. */
body.guide-app #prayer .mystery-stage.natural-prayer-stage.consistent-prayer-layout .natural-reading>.prayer-stream{align-content:safe center;}

/* Solid white speaker silhouettes, without outline or circular badges. */
body.guide-app #prayer .mystery-stage.natural-prayer-stage.consistent-prayer-layout .natural-reading .line>.role svg{
 fill:#fff;stroke:none;color:#fff;border:0;outline:0;border-radius:0;background:none;padding:0;box-shadow:none;
}

/* Retain the gold circular outline around the solid white speaker icons. */
body.guide-app #prayer .mystery-stage.natural-prayer-stage.consistent-prayer-layout .natural-reading .line>.role svg{
 box-sizing:border-box;border:1.5px solid #e7c87d;border-radius:50%;padding:2px;
 fill:#fff;stroke:none;background:transparent;
}
