/* A single layout contract for every narrated prayer. Repeated #prayer deliberately
   outranks legacy presentation overrides without depending on their load order. */
body.guide-app #prayer#prayer .natural-prayer-stage.consistent-prayer-layout{
 display:grid!important;grid-template-columns:minmax(0,1fr) clamp(60px,10vw,130px)!important;
 grid-template-rows:auto minmax(0,1fr) 58px auto!important;gap:0 12px!important;
 padding:8px 12px 0!important;min-height:0!important;overflow:hidden!important;
}
body.guide-app #prayer#prayer .natural-prayer-stage:not(.has-natural-rosary){grid-template-columns:minmax(0,1fr)!important;}
body.guide-app #prayer#prayer .natural-prayer-stage>.prayer-heading{grid-area:1/1/2/-1!important;padding:6px 0 10px!important;}
body.guide-app #prayer#prayer .natural-prayer-stage>.natural-reading{
 grid-area:2/1!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr)!important;
 grid-template-rows:minmax(0,1fr)!important;gap:20px!important;align-items:stretch!important;
 width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;padding:0!important;overflow:hidden!important;
}
body.guide-app #prayer#prayer .natural-prayer-stage .natural-reading>.mystery-visual{
 grid-area:1/1!important;position:relative!important;inset:auto!important;display:flex!important;
 flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:12px!important;
 width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;max-width:none!important;padding:0!important;
}
body.guide-app #prayer#prayer .natural-prayer-stage .natural-reading .sacred-art{
 position:relative!important;inset:auto!important;transform:none!important;display:flex!important;
 flex:1 1 0!important;width:100%!important;height:auto!important;min-height:0!important;max-height:100%!important;
 margin:0!important;aspect-ratio:auto!important;overflow:hidden!important;
}
body.guide-app #prayer#prayer .natural-prayer-stage .natural-reading .sacred-art img,
body.guide-app #prayer#prayer .natural-prayer-stage .natural-reading .sacred-art>svg{
 width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;
 border-width:clamp(10px,1.5vw,20px)!important;
}
body.guide-app #prayer#prayer .natural-prayer-stage .mystery-visual>.mystery-fruit{
 position:static!important;inset:auto!important;transform:none!important;flex:0 0 auto!important;
 width:100%!important;margin:0!important;padding:0 0 8px!important;text-align:center!important;
}
body.guide-app #prayer#prayer .natural-prayer-stage .natural-reading>.prayer-stream{
 grid-area:1/2!important;position:relative!important;inset:auto!important;display:block!important;
 height:100%!important;min-height:0!important;padding:12px 6px 20px!important;overflow-y:auto!important;
 overflow-x:hidden!important;align-content:start!important;mask-image:none!important;
}
body.guide-app #prayer#prayer .natural-prayer-stage .prayer-stream>.speaker-cue{
 position:static!important;inset:auto!important;transform:none!important;display:flex!important;
 height:auto!important;min-height:32px!important;margin:0 0 16px!important;
}
body.guide-app #prayer#prayer .natural-prayer-stage>.rosary-sidebar{grid-area:2/2!important;min-height:0!important;padding:4px 0 0 8px!important;}
body.guide-app #prayer#prayer .natural-prayer-stage>.media-player{grid-area:3/1/4/-1!important;width:100%!important;height:58px!important;min-height:58px!important;max-height:58px!important;}
body.guide-app #prayer#prayer .natural-prayer-stage>.stage-credit{grid-area:4/1/5/-1!important;}
/* Portrait devices use one reading column, never three squeezed columns.
   The artwork, fruit, speaker and full prayer remain in normal document flow. */
@media(max-width:900px) and (orientation:portrait), (max-width:480px){
 body.guide-app #prayer#prayer .natural-prayer-stage.consistent-prayer-layout{grid-template-columns:minmax(0,1fr) 48px!important;gap:0 8px!important;padding:6px 8px 0!important;}
 body.guide-app #prayer#prayer .natural-prayer-stage:not(.has-natural-rosary){grid-template-columns:minmax(0,1fr)!important;}
 body.guide-app #prayer#prayer .natural-prayer-stage>.natural-reading{
  display:flex!important;flex-direction:column!important;gap:16px!important;overflow-y:auto!important;overflow-x:hidden!important;
  align-items:stretch!important;scrollbar-width:thin;overscroll-behavior:contain;
 }
 body.guide-app #prayer#prayer .natural-prayer-stage .natural-reading>.mystery-visual{
  flex:0 0 auto!important;height:auto!important;max-height:none!important;gap:8px!important;
 }
 body.guide-app #prayer#prayer .natural-prayer-stage .natural-reading .sacred-art{
  flex:none!important;height:clamp(140px,26dvh,240px)!important;max-height:none!important;width:100%!important;
 }
 body.guide-app #prayer#prayer .natural-prayer-stage .natural-reading>.prayer-stream{
  flex:0 0 auto!important;height:auto!important;overflow:visible!important;padding:0 4px 20px!important;
 }
 body.guide-app #prayer#prayer .natural-prayer-stage .natural-reading .line p{font-size:21px!important;line-height:1.55!important;overflow-wrap:break-word!important;}
 body.guide-app #prayer#prayer .natural-prayer-stage .mystery-fruit strong{font-size:22px!important;}
 body.guide-app #prayer#prayer .natural-prayer-stage .prayer-heading h2{font-size:24px!important;}
 body.guide-app #prayer#prayer .natural-prayer-stage .natural-current{font-size:13px!important;}
}
@media(max-height:550px) and (orientation:landscape){
 body.guide-app #prayer#prayer .natural-prayer-stage>.natural-reading{gap:12px!important;}
 body.guide-app #prayer#prayer .natural-prayer-stage .prayer-heading h2{font-size:22px!important;}
 body.guide-app #prayer#prayer .natural-prayer-stage .natural-reading .line p{font-size:20px!important;line-height:1.5!important;}
 body.guide-app #prayer#prayer .natural-prayer-stage .mystery-fruit strong{font-size:18px!important;}
 body.guide-app #prayer#prayer .natural-prayer-stage .mystery-visual{gap:4px!important;}
}

/* All Rosary decades retain artwork + fruit | prayer | beads, even in portrait.
   Scope to decades only: other prayers and typography retain the v265 layout. */
body.guide-app #prayer#prayer .natural-prayer-stage.rosary-mystery .natural-reading>.mystery-visual{
 min-width:0!important;overflow-y:auto!important;overflow-x:hidden!important;
}
body.guide-app #prayer#prayer .natural-prayer-stage.rosary-mystery .natural-reading .sacred-art{
 flex:0 0 auto!important;aspect-ratio:3/2!important;height:auto!important;max-height:none!important;
}
body.guide-app #prayer#prayer .natural-prayer-stage.rosary-mystery .mystery-visual>.mystery-fruit{
 overflow-wrap:anywhere!important;
}
@media(max-width:900px) and (orientation:portrait), (max-width:480px){
 body.guide-app #prayer#prayer .natural-prayer-stage.rosary-mystery>.natural-reading{
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr)!important;
  grid-template-rows:minmax(0,1fr)!important;gap:8px!important;overflow:hidden!important;
 }
 body.guide-app #prayer#prayer .natural-prayer-stage.rosary-mystery .natural-reading>.mystery-visual{
  height:100%!important;justify-content:flex-start!important;gap:8px!important;
 }
 body.guide-app #prayer#prayer .natural-prayer-stage.rosary-mystery .natural-reading>.prayer-stream{
  min-width:0!important;height:100%!important;overflow-y:auto!important;overflow-x:hidden!important;
 }
}

/* Opening Prayer alone: match the Creed illustration's displayed height,
   preserving this square photo without cropping or changing other artwork. */
body.guide-app #prayer#prayer .natural-prayer-stage.opening-prayer-art{
 --creed-art-width:calc((100vw - 24px - clamp(60px,10vw,130px) - 12px - 20px) / 2.35);
 --art-border:clamp(10px,1.5vw,20px);
}
body.guide-app #prayer#prayer .natural-prayer-stage.opening-prayer-art .sacred-art img{
 max-height:min(100%,calc((var(--creed-art-width) - var(--art-border) * 2) * 2 / 3 + var(--art-border) * 2))!important;
}
@media(max-width:900px) and (orientation:portrait), (max-width:480px){
 body.guide-app #prayer#prayer .natural-prayer-stage.opening-prayer-art .sacred-art img{
  max-height:min(clamp(140px,26dvh,240px),calc((100vw - 16px - 48px - 8px - var(--art-border) * 2) * 2 / 3 + var(--art-border) * 2))!important;
 }
}
@media(max-height:550px) and (orientation:landscape){
 body.guide-app #prayer#prayer .natural-prayer-stage.opening-prayer-art{--creed-art-width:calc((100vw - 24px - clamp(60px,10vw,130px) - 12px - 12px) / 2.35);}
}
/* Keep the day marker, below rather than inside the standard-sized title. */
body.guide-app #prayer#prayer .prayer-heading>#section-note.day-six-label{
 display:block;position:static;margin:3px 0 0;font:15px/1.2 Georgia,serif;
 letter-spacing:1px;text-transform:uppercase;color:#dfcb96;text-align:center;
}
