/* Shared full-page devotional backdrop; solid surfaces retain readable contrast. */
body{background-color:#102d45!important;background-image:linear-gradient(90deg,rgba(8,30,47,.88),rgba(8,30,47,.62)),url('/images/devotion-background.jpg')!important;background-size:cover!important;background-position:center 30%!important;background-attachment:fixed!important}
body #home-welcome,body main[data-home],body main.site-main{background:transparent!important}
body #home-welcome .hero-photo{display:none!important}
body #home-welcome{display:flex!important;justify-content:center!important;text-align:center}
body #home-welcome[hidden]{display:none!important}
body #home-welcome .welcome-copy{margin:auto}
body #home-welcome .welcome-pray,body #home-welcome .welcome-gathering{margin-left:auto;margin-right:auto}
body.guide-app main,body.guide-app #prayer{background:transparent!important}
body.guide-app #prayer .mystery-stage{background:rgba(12,38,59,.88)!important}
body.local-hymn-active #prayer{position:relative;background:linear-gradient(90deg,rgba(8,28,44,.4),rgba(8,28,44,.08)),url('/images/devotion-background.jpg') center/contain no-repeat!important;background-color:#102d45!important;padding:0!important}
body.guide-app #prayer .local-hymn-sheet{position:relative;display:flex!important;flex-direction:column;align-items:stretch;justify-content:flex-end;min-height:100%;width:100%;height:100%;overflow:auto;padding:clamp(18px,3vw,36px);box-sizing:border-box;color:#f7f3e9;gap:20px}
.local-hymn-copy{width:100%;max-width:430px;background:rgba(10,32,49,.88);border:1px solid #e7d19e55;border-radius:12px;padding:24px;box-shadow:0 12px 32px #00152444;backdrop-filter:blur(8px)}
body.guide-app #prayer .local-hymn-copy h2{font:400 clamp(27px,3vw,38px)/1.12 Georgia,serif;color:#f7f3e9;margin:7px 0 20px;text-align:left}
.local-hymn-eyebrow{font:500 11px/1.5 Arial,sans-serif;letter-spacing:1.4px;text-transform:uppercase;color:#e7d19e;margin:0}
body.guide-app #prayer .local-hymn-copy .hymn-lyrics{font:400 clamp(17px,1.8vw,22px)/1.6 Georgia,serif;white-space:pre-line;color:#f7f3e9;margin:0;text-align:left}
.local-hymn-copy #hymn-help{font:400 12px/1.5 Arial,sans-serif;color:#cbd8e0;margin:20px 0 12px}
.local-hymn-continue{min-height:44px;width:100%;background:#e7d19e;color:#102d45;border:1px solid #f0deb8;border-radius:6px;font:600 14px/1.5 Arial,sans-serif;padding:10px 14px;cursor:pointer}
body.guide-app #prayer .local-hymn-sheet .media-player{position:sticky!important;bottom:0!important;inset-inline:auto!important;display:grid!important;flex:none!important;width:100%!important;max-width:none!important;margin:0!important;padding:12px!important;border:1px solid #e7d19e55;border-radius:12px;background:rgba(10,32,49,.94)!important;color:#f7f3e9!important;z-index:5;box-sizing:border-box}
body.local-hymn-active #prayer .media-controls button{color:#f7f3e9!important}
body.local-hymn-active #prayer #play{background:#e7d19e!important;color:#102d45!important}
body.local-hymn-active #prayer #fullscreen{display:inline-flex!important}
@media(min-width:850px){body.guide-app #prayer .local-hymn-copy{margin-right:auto}body.local-hymn-active #prayer{background-position:72% center!important}body.guide-app #prayer .local-hymn-sheet{justify-content:center}}
@media(max-width:600px){body.guide-app #prayer .local-hymn-sheet{justify-content:flex-end;padding:16px;gap:12px}body.guide-app #prayer .local-hymn-copy{padding:18px;background:rgba(10,32,49,.8);margin-top:150px;max-width:none}body.local-hymn-active #prayer{background-size:cover!important;background-position:center top!important}body.guide-app #prayer .local-hymn-copy .hymn-lyrics{font-size:17px;line-height:1.5}}
/* Fill the prayer viewport with the supplied artwork. */
body.local-hymn-active #prayer{background-size:cover!important;background-position:center 30%!important}
@media(min-width:850px){body.local-hymn-active #prayer{background-position:center 30%!important}}
body.local-hymn-active #prayer .media-controls button{border-radius:50%!important}

/* The uploaded booklet artwork belongs to the two hymn pages only. */
body.local-hymn-active #prayer{background-image:linear-gradient(90deg,rgba(8,28,44,.65),rgba(8,28,44,.12)),url('/images/devotion-background.jpg')!important;background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important}
body.guide-app #prayer .local-hymn-sheet .local-hymn-copy{background:rgba(10,32,49,.94)}

/* Let the hymn page artwork continue behind its lyrics. */
body.guide-app #prayer .local-hymn-sheet .local-hymn-copy{background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
body.guide-app #prayer .local-hymn-copy h2,body.guide-app #prayer .local-hymn-copy .hymn-lyrics,.local-hymn-eyebrow,.local-hymn-copy #hymn-help{text-shadow:0 1px 3px #061728,0 2px 10px #06172899}

/* Both hymns use the text-free portrait of Our Lady of the Rule. */
body.local-hymn-active #prayer{background-position:center 30%!important}
