/* A wall of prayer: light moves over the stone, while words stay steady. */
#prayers{position:relative;isolation:isolate;min-height:85vh;background:linear-gradient(#15100b75,#100e0bd9),url('assets/heaven-light.webp') center top/cover fixed;border-radius:28px;margin-top:16px}
#prayerFeed{grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:12px;align-items:start}
#prayerFeed .prayer{min-height:215px;padding:18px;border-radius:15px;background:#231c14ed;animation:prayer-stone-light 9s ease-in-out infinite;animation-delay:var(--stone-delay);border:1px solid #a68452}
#prayerFeed .prayer:nth-child(3n+2){margin-top:22px}#prayerFeed .prayer>p{font-size:18px;line-height:1.55;color:#fff6e7;overflow-wrap:anywhere}#prayerFeed .pray-btn{margin-top:auto;font-size:14px!important}
#prayerFeed .meta{flex-wrap:wrap;font-size:14px}#prayerFeed .meta>span:last-child{font-size:12px}#prayerFeed .avatar{width:28px;height:28px}
@keyframes prayer-stone-light{0%,100%{border-color:#92703f;box-shadow:inset 0 0 25px #bd88390b,0 3px 10px #0003}48%{border-color:#f9d590;box-shadow:inset 0 0 38px #eac78124,0 0 22px #deb35b30}}
#home .quick{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}#home .quick button{border-radius:80px 80px 20px 20px;text-align:center;padding:28px 14px 20px;min-height:145px}#home .quick .sacred-icon{margin:0 auto 12px}
#home .quick button:before{top:10px}#home .quick strong{font-size:21px}
#chapel .chapel-top-action{display:none}.chapel-command{margin-left:auto;width:min(100%,350px);padding:18px 14px;border-radius:22px;background:#160f099e;border:1px solid #b48c4b55;backdrop-filter:blur(5px)}
.chapel-command .chapel-status{margin:12px 0}.chapel-command .chapel-filters{flex-wrap:wrap}.chapel-command .chapel-world-link{border-radius:14px;font-size:18px}.chapel-command .sacred-divider{margin:12px auto}
#candles{grid-template-columns:repeat(auto-fill,minmax(85px,1fr));gap:16px 8px;padding:25px 8px;align-items:start;margin-top:150px}.votive{height:265px;justify-content:flex-start;border-radius:18px}.votive .candle-label{margin-top:162px;min-height:40px;height:auto;font-size:15px;line-height:1.3;overflow-wrap:anywhere}.votive .candle-request{font:14px/1.4 Georgia,serif;color:#f7e2bb;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:4px 2px;max-width:100%}.votive .mine-label{margin-top:auto}.votive:focus-visible{outline:2px solid #ffe4a2;outline-offset:3px}
.candle-pagination{flex-wrap:wrap}.candle-pagination select{background:#21180e;color:#ffdea1;border:1px solid #c19a57;border-radius:14px;padding:10px;max-width:100%;min-height:44px}
.profile-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:22px}.profile-menu .secondary{display:grid;grid-template-columns:40px 1fr;align-items:center;gap:12px;text-align:left;min-height:100px;padding:18px;background:radial-gradient(ellipse at top right,#a47d352a,transparent),#201a13;border:1px solid #be97585e;border-radius:22px;font:600 20px/1.25 'Cormorant Garamond',Georgia,serif}.profile-menu .menu-symbol{display:grid;place-items:center;color:#f9d58a;font:30px Georgia;border:1px solid #bd975a55;width:42px;height:48px;border-radius:24px 24px 12px 12px}.profile-menu .menu-count{display:block;font:14px/1.5 system-ui;color:#ccb58d;margin-top:5px}.profile-menu .secondary:hover{border-color:#f3d092;background-color:#302416}
#today .altar-stage{position:relative;max-width:690px;margin:0 auto 22px;aspect-ratio:1/1.2;background:url('assets/saint-altar.webp') center/100% 100%;border-radius:26px;overflow:hidden;border:1px solid #ba9352}.altar-stage .altar-portrait{position:absolute;object-fit:cover;object-position:50% 20%;padding:0;background:#241b13}
#today .today-card{background:none;border:0;outline:0;box-shadow:none;margin:0}.altar-caption{max-width:690px;margin:auto;text-align:center;padding:12px 18px 22px}.altar-caption h3{font:38px 'Cormorant Garamond',Georgia,serif;margin:5px}.saint-history{white-space:pre-line;line-height:1.85;font-family:Georgia,serif;font-size:18px}.catalog-pagination{display:flex;gap:12px;justify-content:center;align-items:center;flex-wrap:wrap;margin:22px 0}.catalog-note{font:14px/1.6 system-ui;color:#c5b292}.catalog-bio{white-space:pre-line}.profile-empty{padding:24px;border:1px solid #9d7845;border-radius:20px;color:#d8c5a5}.saint-card .gothic-portrait img{object-fit:cover!important;padding:0!important;width:100%;height:100%;object-position:50% 22%}
@media(min-width:900px){#home .quick{grid-template-columns:repeat(5,minmax(0,1fr))}.chapel-command{margin-right:0}.chapel-content>h1,.chapel-content>.eyebrow,.chapel-content>p:first-of-type{text-align:right;max-width:420px;margin-left:auto}#candles{grid-template-columns:repeat(10,minmax(0,1fr));margin-top:125px}.profile-menu{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:520px){#prayerFeed{grid-template-columns:1fr 1fr;gap:8px}#prayerFeed .prayer{padding:12px;min-height:235px}#prayerFeed .prayer>p{font-size:16px}#prayerFeed .pray-btn{padding:9px 6px;font-size:13px!important}#prayerFeed .meta{font-size:13px}#prayerFeed .avatar{display:none}.profile-menu{gap:10px}.profile-menu .secondary{grid-template-columns:1fr;gap:10px;font-size:20px;padding:17px}.chapel-command{width:80%;margin-right:0}.chapel-command .chip{font-size:16px;padding:8px 10px}#candles{grid-template-columns:repeat(3,minmax(0,1fr))}.chapel-content>h1{font-size:39px}.altar-caption h3{font-size:31px}}
@media(max-width:350px){#prayerFeed{grid-template-columns:1fr}#prayerFeed .prayer:nth-child(3n+2){margin-top:0}}
@media(prefers-reduced-motion:reduce){#prayerFeed .prayer{animation:none}}
#today .altar-stage{aspect-ratio:1;width:100%}#today .altar-portrait{left:34.8485%;top:10.3668%;width:30.0638%;height:40.0319%}#personalContent{margin-top:22px}#personalContent h3{font:32px 'Cormorant Garamond',Georgia,serif}#favoriteSaint{margin:16px 0}.catalog-pagination .secondary{width:auto;min-width:100px}.image-credit a,.catalog-note a{color:#e9c686}#prayerFeed .prayer{display:flex;flex-direction:column}.chapel-content>h1,.chapel-content>.eyebrow,.chapel-content>p:first-of-type{margin-left:auto;text-align:right}#today .altar-stage img{border:0;box-shadow:none}
#chapel .chapel-backdrop{background-size:100% auto;background-repeat:no-repeat;background-position:center top;background-color:#17110d}.chapel-command{position:relative;z-index:2}.votive:hover,.votive:focus-visible{border-color:#ffe0a0;background-color:#23190ebd}#today .altar-stage .altar-portrait{object-fit:cover!important;object-position:50% 20%!important;inset:auto;left:34.8485%;top:10.3668%;width:30.0638%;height:40.0319%;min-height:0!important;max-height:none!important}
@media(max-width:520px){.chapel-command{width:64%;padding:12px 8px}.chapel-command .chapel-status{font-size:14px;padding:7px 10px}.chapel-command .chapel-world-link{font-size:16px;padding:7px}.chapel-command .chapel-filters{gap:5px}.chapel-command .sacred-divider{margin:8px auto}#chapel .chapel-backdrop{background-size:auto 1050px;background-position:center top}}
@media(max-width:520px){#today .altar-stage{aspect-ratio:4/5;background-size:160% auto;background-position:center top}#today .altar-stage .altar-portrait{left:25.7576%;top:13.2695%;width:48.1021%;height:51.2408%}}
.saint-info small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.4}.saint-info strong{overflow-wrap:anywhere}.candle-request{pointer-events:none}#detailBio,#todayHistory{overflow-wrap:anywhere}.profile-menu i{font-style:normal}

#chapel .chapel-command[hidden]{display:none}
#chapel .chapel-map-link{display:flex;align-items:center;gap:8px;width:fit-content;min-height:44px;margin:0 auto 16px 0;padding:6px 0;border:0;background:transparent;color:#ffe0a0;font:600 21px/1.3 "Cormorant Garamond",Georgia,serif;text-shadow:0 2px 6px #000;cursor:pointer}
#chapel .chapel-map-link:focus-visible{outline:2px solid #ffe0a0;outline-offset:5px;border-radius:4px}

/* Full-width mobile chapel with room for more candle rows. */
@media(max-width:899px){#chapel .chapel{width:100%;min-height:150svh}#chapel .chapel-content{width:100%;max-width:none;min-height:150svh;padding:22px 8px 40px}#chapel .chapel-backdrop{background-size:cover;background-position:center top}#chapel #candles{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 6px;padding:20px 0;margin-top:80px}#chapel .votive{height:235px}#chapel .chapel-map-link{margin-left:8px}#chapel .chapel-content>h1,#chapel .chapel-content>.eyebrow,#chapel .chapel-content>p{margin-right:8px;margin-left:8px}#chapel .chapel-content>.primary{width:calc(100% - 16px)}}
@media(max-width:379px){#chapel #candles{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Place candles and their following text/action lower, by the marble floor. */
#chapel #candles{margin-top:380px}
@media(max-width:899px){#chapel #candles{margin-top:clamp(360px,60svh,620px)}}

/* Compact chapel heading: controls on the left, title at upper right. */
#chapel .chapel-heading{display:grid;grid-template-columns:minmax(105px,.8fr) minmax(0,2fr);align-items:start;gap:12px;padding:0 8px}
#chapel .chapel-titles{text-align:right;min-width:0;text-shadow:0 2px 14px #000}
#chapel .chapel-titles .eyebrow{font-size:12px;letter-spacing:.07em}
#chapel .chapel-titles h1{font-size:clamp(28px,7vw,48px);line-height:1.12;margin:12px 0}
#chapel .chapel-titles p{font-size:17px;line-height:1.4;margin:0;color:#eee0c5}
#chapel .chapel-map-link{margin:0 0 8px;font-size:18px;text-align:left}
#chapel .chapel-music{display:flex;align-items:center;gap:7px;min-height:44px;padding:7px 9px;border:1px solid #d5b16f77;border-radius:12px;background:#18110985;color:#ffe0a0;font:600 17px/1.3 "Cormorant Garamond",Georgia,serif;text-align:left}
#chapel .chapel-music[aria-pressed="true"]{background:#e8be632b;border-color:#e8be63}
#chapel .chapel-music:focus-visible{outline:2px solid #ffe0a0;outline-offset:3px}
#chapelMusicError{color:#ffe0a0;font-size:14px}
@media(min-width:900px){#chapel .chapel-heading{grid-template-columns:1fr 2fr}#chapel .chapel-titles{max-width:470px;justify-self:end}}

#chapel .chapel-music,#chapel .chapel-music[aria-pressed="true"]{border:0;background:transparent;box-shadow:none;padding:7px 0;text-shadow:0 2px 6px #000}

#chapel .chapel-content>.chapel-note{text-align:center;max-width:560px;margin:20px auto;padding:0 12px}

/* Ten rows of ten real candle positions, below the unobstructed altar. */
#chapel .chapel-content{position:relative;padding-top:22px}
#chapel .chapel-heading{position:absolute;top:22px;left:16px;right:16px}
#chapel .chapel-backdrop{background-size:auto 1100px;background-position:center top}
#chapel #candles{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));grid-template-rows:repeat(10,minmax(0,1fr));gap:0;margin:750px auto 0;padding:0 8% 10%;height:820px;max-width:960px;align-items:stretch;background:url('assets/votive-stand.png') center/100% 100% no-repeat}
#chapel #candles .votive{height:auto;min-height:0;border:0;border-radius:4px;padding:0;background:transparent!important;backdrop-filter:none;box-shadow:none;justify-content:flex-start}
#chapel #candles .votive .candle{top:auto;bottom:5px;height:34px;width:14px;left:calc(50% - 7px)}
#chapel #candles .votive .candle:after{width:14px;height:5px}
#chapel #candles .votive .wick{left:6px;height:6px;top:-5px}
#chapel #candles .votive .flame{width:10px;height:22px;left:2px;top:-20px}
#chapel #candles .votive .candle-label,#chapel #candles .votive .candle-request,#chapel #candles .votive .mine-label{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip-path:inset(50%)}
#chapel #candles .votive.is-mine:after{top:auto;bottom:2px;left:calc(50% - 12px);width:24px;height:6px;border:2px solid #ffe4a0;box-shadow:0 0 8px #ffd875}
#chapel #candles .votive.selected,#chapel #candles .votive:focus-visible{outline:2px solid #ffe4a0;outline-offset:-2px;background:#efc56b22!important}
#chapel #candles .chapel-empty{grid-column:1/-1;grid-row:1/-1;align-self:center;background:#110d09d9;padding:20px}
#chapel .chapel-content>.chapel-note{max-width:none;text-align:center;font-size:16px;line-height:1.6}
#chapel .chapel-note>span{display:block}
@media(max-width:899px){#chapel .chapel-content{padding-left:4px;padding-right:4px}#chapel #candles{margin-top:750px;height:700px;padding:0 5% 10%}#chapel .chapel-heading{left:12px;right:12px}#chapel .chapel-content>.chapel-note{font-size:14px;padding:0 4px}}

#chapel #candles{--rack-height:820px;height:var(--rack-height);padding:calc(var(--rack-height)*.085) 9% calc(var(--rack-height)*.123)}
@media(max-width:899px){#chapel #candles{--rack-height:700px}}

/* Grow the stand one row at a time; preserve readable candle dedications. */
#chapel #candles{display:block;height:auto;max-width:100%;padding:0 0 12px;background:none;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-color:#d5ae66 #21180f;scrollbar-width:thin}
#chapel #candles .votive-row{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));min-width:1100px;gap:5px;min-height:292px;margin-bottom:16px;padding:10px 8px 14px;border:16px solid #9d7943;border-image:url('assets/votive-stand.png') 110 / 16px / 0 stretch;background:#17110dd9}
#chapel #candles .votive{height:245px;min-width:0;padding:0 4px;justify-content:flex-start}
#chapel #candles .votive .candle{top:48px;bottom:auto;height:80px;width:30px;left:calc(50% - 15px)}
#chapel #candles .votive .candle:after{width:30px;height:8px}
#chapel #candles .votive .wick{left:14px;height:9px;top:-7px}
#chapel #candles .votive .flame{width:20px;height:39px;left:5px;top:-36px}
#chapel #candles .votive .candle-label,#chapel #candles .votive .candle-request,#chapel #candles .votive .mine-label{position:static;width:auto;height:auto;clip-path:none;max-width:100%;overflow-wrap:anywhere}
#chapel #candles .votive .candle-label{display:block;margin:143px 0 4px;font:600 17px/1.25 'Cormorant Garamond',Georgia,serif;min-height:22px;color:#ffe3a0}
#chapel #candles .votive .candle-request{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;margin:0;font:14px/1.35 Georgia,serif;color:#f4e8d2;overflow:hidden}
#chapel #candles .votive .mine-label{margin-top:auto;font-size:14px}
#chapel #candles .votive.is-mine:after{top:126px;bottom:auto;left:calc(50% - 22px);width:44px;height:8px}
#chapel #candles .chapel-empty{min-height:220px;margin:0}

/* Quiet living light behind the altar; never intercept candle interactions. */
#chapel #candles .votive .candle-request,#chapel #candles .votive .mine-label{display:none}
#chapel #candles .votive .candle-label{font-size:18px;line-height:1.3;max-height:70px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}
#chapel .chapel-divine-light{position:absolute;z-index:1;top:0;left:0;right:0;height:800px;pointer-events:none;overflow:hidden;mix-blend-mode:screen;background:radial-gradient(ellipse at 50% 23%,#fff5cc55 0%,#ffd68a22 14%,transparent 48%);animation:chapel-glow 9s ease-in-out infinite alternate}
#chapel .chapel-divine-light:before{content:'';position:absolute;inset:-60px -20%;background:conic-gradient(from 147deg at 50% 0%,transparent 0deg,#fff3bd12 4deg,transparent 8deg,#ffe6a92e 15deg,transparent 21deg,#fff9d927 30deg,transparent 36deg,#ffe5a41a 47deg,transparent 57deg,#fff4d319 65deg,transparent 69deg);filter:blur(9px);transform-origin:50% 0;animation:chapel-rays 17s ease-in-out infinite alternate}
@keyframes chapel-glow{0%{opacity:.38}50%{opacity:.68}100%{opacity:.48}}
@keyframes chapel-rays{0%{transform:rotate(-4deg) scaleX(.94);opacity:.5}100%{transform:rotate(4deg) scaleX(1.06);opacity:.9}}
@media(prefers-reduced-motion:reduce){#chapel .chapel-divine-light,#chapel .chapel-divine-light:before{animation:none;opacity:.45}}

/* Photographic wax, with the live flame layered independently. */
#chapel #candles .votive .candle{width:43px;height:106px;left:calc(50% - 21.5px);top:28px;background:transparent!important;box-shadow:none;border-radius:0;overflow:visible}
#chapel #candles .votive .candle:after{display:none}
#chapel #candles .candle-wax-photo{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(2px 4px 3px #0009)}
#chapel #candles .candle[data-wax="blue"] .candle-wax-photo{filter:sepia(1) saturate(2.1) hue-rotate(165deg) brightness(.86) drop-shadow(2px 4px 3px #0009)}
#chapel #candles .candle[data-wax="red"] .candle-wax-photo{filter:sepia(1) saturate(5) hue-rotate(315deg) brightness(.72) drop-shadow(2px 4px 3px #0009)}
#chapel #candles .candle[data-wax="purple"] .candle-wax-photo{filter:sepia(1) saturate(2.5) hue-rotate(220deg) brightness(.78) drop-shadow(2px 4px 3px #0009)}
#chapel #candles .candle[data-wax="gold"] .candle-wax-photo{filter:sepia(1) saturate(2.5) brightness(.92) drop-shadow(2px 4px 3px #0009)}
#chapel #candles .candle[data-wax="green"] .candle-wax-photo{filter:sepia(1) saturate(2) hue-rotate(80deg) brightness(.78) drop-shadow(2px 4px 3px #0009)}
#chapel #candles .votive .wick{display:none}
#chapel #candles .votive .flame{width:14px;height:30px;left:calc(50% - 7px);top:-23px;border-radius:65% 35% 48% 48%;background:radial-gradient(ellipse at 50% 86%,#668af1aa 0 7%,transparent 15%),radial-gradient(ellipse at 50% 66%,#fffff0 0 18%,#fff3bb 30%,#ffd574 52%,#ff9c30bd 70%,transparent 80%);filter:drop-shadow(0 0 5px #ffd77dbb);animation:real-votive-flame 2.7s ease-in-out infinite;animation-delay:var(--delay);transform-origin:50% 100%}
#chapel #candles .votive .flame:after{inset:-18px -24px;background:radial-gradient(ellipse,#ffc45b30,transparent 68%)}
#chapel #candles .votive.is-mine:after{top:132px}
@keyframes real-votive-flame{0%,100%{transform:rotate(-2deg) scale(.97,1);opacity:.95}23%{transform:rotate(3deg) scale(.9,1.07);opacity:1}47%{transform:rotate(-1deg) scale(1.03,.96);opacity:.96}71%{transform:rotate(2deg) scale(.96,1.04);opacity:1}}

/* Support candles carry a permanent silver distinction. */
#chapel #candles .votive.is-support{border:0;background:transparent!important;box-shadow:none}
#chapel #candles .votive.is-support .candle{filter:drop-shadow(1px 0 0 #e4e8ef) drop-shadow(-1px 0 0 #b5bdca) drop-shadow(0 0 4px #dce6f377)}
#candleForm textarea[readonly]{background:#24221c;color:#f6e7c8}
