/* Prayers: a compact sunset scene and readable parchment on dark leather. */
body[data-page=prayers] .phone-shell{background:linear-gradient(#170f09e8,#170f09e8),url('/assets/images/f274b2bc764d497e/embossed-leather.png') center/320px repeat}
body[data-page=prayers] :is(.app-header,.page-back-bar,#content){background:transparent}
.prayers-page{padding:0 16px 12px}
.prayers-scene{margin:0 -16px;position:relative;aspect-ratio:2;overflow:hidden}
.prayers-scene img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 53%}
.prayers-scene:after{content:"";position:absolute;inset:0;background:linear-gradient(#170f0922,transparent 20%,transparent 70%,#170f09)}
.prayers-intro{position:relative;padding:0 5px 14px;margin-top:-3px}
.prayers-intro .prayers-kicker{font:10px/1.4 system-ui,sans-serif;letter-spacing:.19em;color:#edc780;margin:0 0 2px}
.prayers-intro h1{font:400 43px/1.05 Georgia,serif;color:#fae5b7;letter-spacing:-.025em;margin:0 0 6px}
.prayers-intro>p:not(.prayers-kicker){font:17px/1.35 Georgia,serif;color:#ecd9b7;margin:0}
.prayers-new{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:10px 17px;margin-top:12px;border:1px solid #f4d38b;border-radius:12px;background:linear-gradient(115deg,#f9da94,#ba8d51);box-shadow:inset 0 1px 2px #fff8,0 3px 6px #0005;color:#241607;font:20px/1.2 Georgia,serif}
.prayers-new svg{width:23px;height:23px}
.prayer-card{display:block;position:relative;padding:7px;margin-bottom:12px;border:1px solid #b88b4b;border-radius:13px;background:url('/assets/images/f274b2bc764d497e/embossed-leather.png') center/260px;box-shadow:inset 0 0 0 2px #1c160e,0 3px 8px #0008}
.prayer-card:before{content:"";position:absolute;inset:3px;border:1px dashed #b88b4b99;border-radius:10px;pointer-events:none}
.prayer-paper{position:relative;border:1px solid #b99b68;border-radius:9px;padding:13px 13px 11px;background:url('/assets/images/ae3eecc3329110b3/waymark-surface-grain.svg'),radial-gradient(ellipse at 45% 35%,#fff0d2,#eed8b0 75%,#d2ab73);box-shadow:inset 0 0 15px #9c6c3433;color:#30200f;overflow-wrap:anywhere}
.prayer-card-heading{display:flex;gap:12px;align-items:flex-start}.prayer-card-heading>svg{width:26px;height:32px;flex:none;color:#a77a39;margin-top:3px}
.prayer-meta{display:flex;flex-wrap:wrap;align-items:center;gap:7px;font:11px/1.4 system-ui,sans-serif;color:#463721;margin-bottom:7px}
.prayer-meta>span+span{border:1px solid #b18a4e;border-radius:15px;padding:2px 6px;font-size:9px}
.prayer-paper h3{font:400 25px/1.12 Georgia,serif;letter-spacing:-.02em;margin:0;color:#2d1e0e}
.prayer-paper>p{font:17px/1.45 Georgia,serif;margin:10px 0 13px;color:#46301a}
.prayer-read{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #b7956366;padding-top:10px;font:17px/1.3 Georgia,serif}.prayer-read svg{width:23px;height:23px}
.prayers-local,.prayers-empty{border:1px solid #8b785366;border-radius:10px;padding:11px 13px;font:12px/1.45 system-ui,sans-serif;color:#c9bea8;background:#ffffff08;margin:12px 3px 0}
.prayers-page a:focus-visible{outline:3px solid #f0c87b;outline-offset:3px}
@container phone (min-width:1000px){body[data-page=prayers] :is(.phone-shell,.bottom-nav){max-width:860px;width:100%}.prayers-page{padding-inline:28px}.prayers-scene{margin-inline:-28px;aspect-ratio:2}.prayers-intro{padding:0 12px 20px}.prayers-intro .prayers-kicker{font-size:14px}.prayers-intro h1{font-size:65px}.prayers-intro>p:not(.prayers-kicker){font-size:25px}.prayers-new{font-size:27px;padding:14px 22px}.prayer-card{padding:10px}.prayer-paper{padding:23px 26px 18px}.prayer-card-heading{gap:18px}.prayer-card-heading>svg{width:36px;height:43px}.prayer-meta{font-size:16px}.prayer-meta>span+span{font-size:12px}.prayer-paper h3{font-size:36px}.prayer-paper>p{font-size:25px}.prayer-read{font-size:24px}.prayers-local{font-size:16px;padding:15px 20px}}

.current-prayers{margin:18px 0 0;padding:14px 10px 10px;border:1px solid #b88b4b;border-radius:14px;background:#21160d;box-shadow:inset 0 0 0 2px #1c160e}
.current-prayers>h2{margin:0 3px 6px;color:#fae5b7;font:400 27px/1.2 Georgia,serif}
#current-prayers-help{margin:0 3px 12px;color:#d7c3a1;font:13px/1.5 system-ui,sans-serif}
.current-prayers .prayers-list{max-height:480px;max-height:min(65svh,560px);overflow-y:auto;overflow-x:hidden;touch-action:pan-y;scrollbar-width:thin;scrollbar-color:#ba8d51 #21160d;padding:3px 4px; -webkit-overflow-scrolling:touch}
.current-prayers .prayers-list:focus-visible{outline:2px solid #f0c87b;outline-offset:1px;border-radius:9px}
.current-prayers .prayer-card:last-child{margin-bottom:0}
.prayer-prayed{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;width:100%;border:1px solid #946323;border-radius:8px;padding:9px 13px;color:#30200f;background:linear-gradient(115deg,#f7d990,#d4a14f);font:18px/1.2 Georgia,serif;box-shadow:0 2px 4px #613e2222}
.prayer-last,.prayer-history{font:12px/1.5 system-ui,sans-serif;color:#634421}
.prayer-last{margin:12px 0 5px}.prayer-last time{display:block}
.prayer-history{margin:0 0 8px}.prayer-history summary{cursor:pointer;padding:8px 0;min-height:36px}.prayer-history ol{padding-left:22px;margin:0 0 8px}.prayer-history li{padding:4px 0}
.prayer-paper>.prayer-record-status{font:12px/1.4 system-ui,sans-serif;color:#563d21;margin:6px 0 0;min-height:17px}
@container phone (min-width:1000px){.current-prayers{padding:20px 16px 14px}.current-prayers>h2{font-size:37px}#current-prayers-help{font-size:16px}.prayer-last,.prayer-history,.prayer-record-status{font-size:15px}.prayer-prayed{font-size:22px}}

/* Original prayer artwork, selected by profile and the current app theme.
   Only the artwork is shown; headings, forms, and Back remain real controls. */
:root body[data-page=prayers] #content > .page-back-bar {
  position: relative;
  z-index: 2;
  top: -22px;
  margin-bottom: -44px;
  background: transparent !important;
}
:root body[data-page=prayers] .page-back-bar > a { font-size: 19px; }
:root body[data-page=prayers] .prayers-page { display: flow-root; }
:root body[data-page=prayers] .prayers-page > .prayers-scene {
  margin-top: -22px;
  aspect-ratio: auto;
  background: transparent;
  pointer-events: none;
}
:root body[data-page=prayers] .prayers-scene > .prayers-scene-art {
  display: block;
  position: static;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  fill: none;
  stroke: none;
  opacity: 1;
  filter: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 88%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 88%, transparent);
  pointer-events: none;
}
:root body[data-page=prayers] .prayers-scene > .prayers-scene-light { display: none; }
:root[data-theme=heirloom_light] body[data-page=prayers] .prayers-scene > .prayers-scene-light { display: block; }
:root[data-theme=heirloom_light] body[data-page=prayers] .prayers-scene > .prayers-scene-dark { display: none; }
:root body[data-page=prayers] .prayers-page > .prayers-scene::after { content: none; }
:root body[data-page=prayers] .prayers-intro { margin-top: -3px; }
:root:not([data-theme=heirloom_light]) body[data-page=prayers] .page-back-bar > a {
  color: #f2d5a1;
  text-shadow: 0 2px 7px #170f09;
}
:root:not([data-theme=heirloom_light]) body[data-page=prayers] .prayers-intro h1 { color: #f7dfad; }
:root:not([data-theme=heirloom_light]) body[data-page=prayers] .prayers-kicker { color: #efd096; }
:root:not([data-theme=heirloom_light]) body[data-page=prayers] .prayers-intro > p:not(.prayers-kicker) { color: #ecd4ad; }
