/* V50 — last walkthrough refinements. No backend changes. */
/* Expanded Prayer Wall: the card itself grows to show the entire prayer. No nested clamp or clipping. */
.wall-page .wall-grid { scroll-behavior:auto!important; scroll-snap-type:none!important; align-items:start; }
.wall-page .wall-card { height:auto!important; min-height:190px; overflow:visible!important; display:flex; flex-direction:column; align-self:start; scroll-snap-align:none!important; }
.wall-page .wall-card .prayer-text { display:block!important; -webkit-line-clamp:unset!important; -webkit-box-orient:initial!important; line-clamp:unset!important; max-height:none!important; min-height:0!important; overflow:visible!important; flex:0 0 auto!important; white-space:pre-wrap; line-height:1.46; }
.wall-page .wall-card .author { margin-top:auto; }
.wall-page .wall-card .card-foot { margin-top:5px; }
.wall-page .wall-card:hover { transform:translateY(-2px); }
@media (min-width:700px) and (min-height:480px) {
 .wall-page .wall-grid { grid-auto-rows:max-content!important; align-content:start!important; overflow-y:auto!important; min-height:0!important; }
 .wall-page .wall-card { min-height:185px!important; }
}
/* Five discover options: final open invitation takes the entire last row. */
#discover .quiz-options.many-choices:not(.v46-exploring-options)>.quiz-option:last-child:nth-child(odd){grid-column:1 / -1!important;min-height:80px!important;}
#discover .quiz-options.many-choices:not(.v46-exploring-options)>.quiz-option:last-child:nth-child(odd) .quiz-symbol{width:45px;height:45px;flex-basis:45px;}
@media(max-width:740px){#discover .quiz-options.many-choices:not(.v46-exploring-options)>.quiz-option:last-child:nth-child(odd){grid-column:1/-1!important}}
/* Shop: title and filtering live together, instead of floating with empty vertical space. */
#explore .v50-shop-heading { display:flex;align-items:end;justify-content:space-between;gap:10px 18px;flex-wrap:wrap;flex:0 0 auto; }
#explore .v50-shop-heading h1 {margin:0 0 3px;font-size:clamp(26px,3.3vh,38px)}
#explore .v50-shop-heading .sub {margin:0;color:#d4cbb9;font-size:clamp(11px,1.25vw,13px);line-height:1.4}
#explore .v50-shop-instruction {margin:0 0 2px;color:#bdb8a9;font:12px/1.3 system-ui,sans-serif;}
#explore .v48-shop-filters {justify-content:flex-start!important;align-self:stretch!important;max-width:none!important;margin:9px 0 10px!important;padding:0!important;gap:8px 10px!important;}
#explore .v48-shop-filters button {padding:9px 15px;min-height:41px;font-size:12px;}
#explore .productgrid {margin-top:0!important;}
/* Our Testimony: three separate genuine SRO photos, never the repeated prayer illustration. */
#our-story.v46-story {height:100%!important;max-height:100%!important;overflow:hidden!important;display:none;}
#our-story.v46-story.active {display:flex!important;align-items:center;justify-content:center;}
#our-story .v46-story-inner {width:min(1200px,100%);max-width:1200px;min-height:0;max-height:100%;padding:clamp(7px,1.1vh,15px) clamp(12px,2vw,24px);margin:auto;display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:clamp(5px,1vh,11px);}
#our-story .garden-kicker{font-size:10px;letter-spacing:.2em}
#our-story .v46-story-inner h1{font-size:clamp(31px,4.3vh,49px);margin:0;line-height:1.05}
#our-story .v46-story-lead{font-size:clamp(15px,1.85vh,19px);margin:0;line-height:1.35}
#our-story .v49-story-intro{font:clamp(12px,1.5vh,14px)/1.4 Georgia,serif;max-width:900px;margin:0 auto;color:#e0d7c2}
#our-story .v49-testimony-grid{width:100%;gap:clamp(8px,1.1vw,16px);min-height:0;}
#our-story .v49-testimony-grid article{padding:0!important;min-height:0!important;overflow:hidden;border-radius:14px;display:flex;flex-direction:column;}
#our-story .v49-testimony-grid article:before{display:none!important;content:none!important}
#our-story .v50-chapter-image{width:100%;height:clamp(100px,17vh,174px);flex:0 0 auto;overflow:hidden;background:linear-gradient(140deg,#526d4c,#15261b);position:relative;}
#our-story .v50-chapter-image:after{content:'';position:absolute;inset:0;border-bottom:1px solid #ae925f;box-shadow:inset 0 -22px 35px #101b1455;pointer-events:none;}
#our-story .v50-chapter-image img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 43%;filter:saturate(.68) sepia(.18) contrast(1.02);}
#our-story .v49-testimony-grid article:nth-child(1) img{object-position:center 49%;}
#our-story .v49-testimony-grid article:nth-child(3) img{object-position:center 26%;}
#our-story .v50-chapter-content{padding:clamp(11px,1.5vh,18px) clamp(12px,1.7vw,22px) clamp(12px,1.5vh,18px);flex:1;}
#our-story .v49-chapter{margin:0;color:#e4c991;font-size:10px}
#our-story .v49-testimony-grid h2{font-size:clamp(18px,2vw,26px);margin:7px 0;line-height:1.13}
#our-story .v49-testimony-grid p{font:clamp(11px,1.22vw,14px)/1.45 system-ui,sans-serif;margin:0;color:#ddd9c9}
#our-story .v49-story-footnote{font-size:clamp(11px,1.3vh,13px);line-height:1.2;margin:0}
#our-story .v46-story-actions{margin:0;gap:8px;}
#our-story .v46-story-actions button{min-height:39px;padding:9px 16px;font-size:12px}
@media (max-height:650px) and (min-width:700px){
 #our-story .v46-story-inner{gap:5px;padding-top:5px;padding-bottom:5px}
 #our-story .v50-chapter-image{height:clamp(76px,14vh,108px)}
 #our-story .v50-chapter-content{padding:8px 12px}
 #our-story .v49-testimony-grid h2{font-size:19px;margin:4px 0}
 #our-story .v49-testimony-grid p{font-size:11px;line-height:1.3}
 #our-story .v46-story-actions button{min-height:34px;padding:6px 13px}
}
@media(max-width:699px){
 #our-story.v46-story.active{display:block!important;overflow-y:auto!important;overscroll-behavior:contain;}
 #our-story .v46-story-inner{max-height:none;justify-content:flex-start;padding:18px 14px 26px;}
 #our-story .v49-testimony-grid{grid-template-columns:1fr;}
 #our-story .v50-chapter-image{height:145px;}
 #our-story .v49-testimony-grid h2{font-size:22px}
 #explore .v50-shop-instruction{width:100%}
}
@media(prefers-reduced-motion:reduce){.wall-page .wall-card:hover{transform:none!important}}
