/* The redesign is scoped to home and its dialog. Existing screens keep their styles. */
.jamaat-prayer-quote{margin:0 0 16px;padding:0 0 14px;border-bottom:1px solid #e4ece4;color:#397a62;font-size:clamp(17px,2vw,20px);line-height:1.5;font-weight:600;text-align:center;overflow-wrap:break-word;text-wrap:balance}
.jamaat-home{--jh-ink:#163b37;--jh-green:#087b62;--jh-muted:#64766f;--jh-mint:#e7f4ee;--jh-peach:#fff0e6;color:var(--jh-ink);display:grid;gap:17px;max-width:1060px;margin:auto}
.jamaat-home button{color:inherit}.jamaat-home a,.jamaat-home button{touch-action:manipulation}.jamaat-home h1,.jamaat-home h2,.jamaat-home h3{letter-spacing:-.025em}.jamaat-welcome{min-height:244px;position:relative;overflow:hidden;border-radius:25px;background:#faf7f0;display:flex;align-items:center}.jamaat-welcome-copy{position:relative;z-index:1;padding:29px 32px;width:66%}.jamaat-kicker{font-size:12px;letter-spacing:.04em;color:#577368}.jamaat-welcome h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(35px,4vw,51px);font-weight:600;margin:12px 0 10px}.jamaat-welcome-copy>p{font-size:14px;color:#55746a;margin:13px 0 0;max-width:350px}.jamaat-location,.jamaat-community{display:flex;align-items:center;gap:9px;text-align:left;background:none;border:0;padding:7px 0;font-size:17px;max-width:100%;min-height:44px}.jamaat-location{font-weight:700}.jamaat-community{font-size:14px}.jamaat-community svg,.jamaat-location svg{color:var(--jh-green);flex-shrink:0}.jamaat-community span{overflow-wrap:anywhere}.jamaat-hero-picture{position:absolute;right:0;inset-block:0;width:53%;overflow:hidden}.jamaat-hero-picture:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#faf7f0 0%,#faf7f0b3 19%,transparent 60%)}.jamaat-hero-picture img{width:100%;height:100%;object-fit:cover;object-position:70% 55%}.jamaat-hero-picture>span{position:absolute;bottom:8px;right:10px;z-index:1;font-size:9px;padding:2px 6px;background:#fff9;border-radius:5px;color:#48695e}.jamaat-panel{background:#fffefa;border:1px solid #edece3;border-radius:21px;padding:22px;box-shadow:0 5px 22px #36534205;min-width:0}.jamaat-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px}.jamaat-heading h2{display:flex;align-items:center;gap:11px;margin:0;font-size:22px;line-height:1.25}.jamaat-heading h2>svg{color:var(--jh-green);flex:none}.jamaat-heading>a{color:var(--jh-green);font-size:13px;display:flex;gap:4px;align-items:center;flex:none;min-height:36px}.jamaat-caption{font-size:12px;color:var(--jh-muted);line-height:1.5;margin:0 0 15px}.jamaat-demo{padding-left:10px;border-left:2px solid #dfbf9a}.jamaat-prayer-main{display:grid;grid-template-columns:1.4fr 1fr;gap:18px;align-items:center}.jamaat-countdown{font-size:clamp(25px,3vw,37px);line-height:1.3;font-family:Georgia,serif;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.jamaat-countdown strong{color:var(--jh-green);font-variant-numeric:tabular-nums;font-size:1.16em;letter-spacing:-.04em}.jamaat-prayer-main>div>p{color:var(--jh-muted);font-size:14px;margin:5px 0 6px}.jamaat-inline{font-size:12px;color:var(--jh-green);display:inline-flex;align-items:center;gap:5px;min-height:32px}.jamaat-reflection{background:var(--jh-peach);border-radius:16px;position:relative;padding:17px 48px 17px 19px}.jamaat-reflection>span{font-size:11px;color:#9c6749}.jamaat-reflection p{font-family:Georgia,serif;font-size:16px;line-height:1.45;margin:4px 0 0}.jamaat-reflection>svg{position:absolute;right:16px;bottom:18px;color:#c78d6d}.jamaat-times{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;border-top:1px solid #eeeae2;margin-top:18px;padding-top:10px}.jamaat-times>a{display:flex;flex-direction:column;align-items:center;border-radius:13px;padding:10px 4px;color:#354c47;min-width:0}.jamaat-times>a:hover{background:#f2f7f2}.jamaat-times svg{color:#ca8761;margin-bottom:5px}.jamaat-times>a:last-child svg{color:var(--jh-green)}.jamaat-times span{font-size:12px}.jamaat-times b{font-size:18px;letter-spacing:.01em;font-variant-numeric:tabular-nums}.jamaat-times>a.is-next{background:var(--jh-mint);color:var(--jh-green)}.jamaat-times>a.is-next svg{color:var(--jh-green)}.jamaat-prayer>.jamaat-caption{margin:10px 0 0;font-size:11px}.jamaat-events{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.jamaat-event{background:#fff;border:1px solid #eee9e0;border-radius:15px;overflow:hidden;display:flex;flex-direction:column;min-width:0}.jamaat-event-photo{padding:0;border:0;position:relative;width:100%;height:150px;background:#e6eee8;display:block}.jamaat-event-photo img{width:100%;height:100%;object-fit:cover}.jamaat-event-photo>span{position:absolute;top:10px;left:10px;background:#fff9efee;color:#305547;border-radius:9px;padding:5px 9px;font-size:11px;font-weight:650}.jamaat-event-body{padding:15px;display:flex;flex-direction:column;flex:1}.jamaat-event h3{font-size:17px;line-height:1.3;margin:0 0 7px}.jamaat-event h3 button{text-align:left;background:none;border:0;padding:0;font:inherit;font-weight:700;min-height:30px}.jamaat-event-body>p{font-size:13px;color:var(--jh-muted);margin:0 0 12px;line-height:1.5;flex:1}.jamaat-event-body>small{display:flex;align-items:center;gap:5px;color:#727a71;font-size:11px;margin-bottom:13px}.jamaat-interest{display:flex;align-items:center;justify-content:center;gap:6px;background:#e3f3eb;border:1px solid transparent;border-radius:9px;min-height:42px;font-size:12px;font-weight:700;padding:7px}.jamaat-interest.is-saved{background:#087b62;color:#fff}.jamaat-family{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.jamaat-family-card{padding:15px;position:relative;border-radius:16px;display:flex;flex-direction:column;align-items:start;min-width:0;border:1px solid #00000003}.jamaat-family-card.peach{background:#fdf0e7;color:var(--jh-ink)}.jamaat-family-card.mint{background:#eaf6ef}.jamaat-family-card.sand{background:#f7f1e4}.jamaat-family-avatar{width:55px;height:55px;border-radius:50%;background:#ffffffa8;display:grid;place-items:center;margin-bottom:11px;color:#b57954}.mint .jamaat-family-avatar{color:#087b62}.jamaat-family-card b{font-size:14px;line-height:1.35;padding-right:7px}.jamaat-family-card small{font-size:12px;color:#738076;margin-top:3px}.jamaat-family-card>svg{position:absolute;right:10px;bottom:26px;color:#9d7157}.jamaat-discussions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 25px}.jamaat-discussion{display:flex;gap:12px;align-items:start;min-width:0;padding:6px 0}.jamaat-circle{width:47px;height:47px;border-radius:50%;background:var(--jh-mint);color:var(--jh-green);display:grid;place-items:center;flex:none}.jamaat-circle.peach{background:var(--jh-peach);color:#b77856}.jamaat-discussion>div{min-width:0;flex:1}.jamaat-discussion b{font-size:14px}.jamaat-discussion p{font-size:13px;color:var(--jh-muted);margin:3px 0 4px;line-height:1.45;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.jamaat-discussion small{font-size:11px;color:var(--jh-green)}.jamaat-nearby{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.jamaat-place{display:flex;align-items:center;gap:8px;border:1px solid #edece5;border-radius:12px;padding:7px;min-width:0;background:#fff}.jamaat-place img{width:51px;height:69px;object-fit:cover;border-radius:8px}.jamaat-place>div{flex:1;min-width:0}.jamaat-place b{display:block;font-size:12px;line-height:1.35;overflow-wrap:anywhere}.jamaat-place small{font-size:10px;color:#6a8277;display:flex;align-items:center;gap:3px;margin-top:5px}.jamaat-place>svg{color:var(--jh-green);width:12px;flex:none}.jamaat-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.jamaat-actions>a{display:flex;align-items:center;gap:8px;padding:15px 12px;background:#faf0e4;border-radius:12px;color:#94663e;min-width:0}.jamaat-actions b{font-size:13px;color:var(--jh-ink);flex:1}.jamaat-actions>a>svg{flex:none}.jamaat-actions>a>svg:last-child{width:12px}.jamaat-learning{display:flex;align-items:center;gap:20px;justify-content:space-between;background:#eff6ee}.jamaat-learning>div{display:flex;align-items:center;gap:16px}.jamaat-learning>div>svg{flex:none;color:var(--jh-green)}.jamaat-learning small{font-size:10px;letter-spacing:.09em;color:#627c6e}.jamaat-learning h2{font-size:19px;margin:5px 0}.jamaat-learning p{font-size:12px;color:var(--jh-muted);margin:0}.jamaat-button{border:0;border-radius:11px;min-height:44px;padding:11px 17px;background:#087b62;color:#fff!important;font-size:13px;font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:6px}.jamaat-learning>.jamaat-button{flex:none}.jamaat-tools{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}.jamaat-tools a{background:#f1f2e9;border:1px solid #e5e9de;border-radius:20px;padding:9px 15px;font-size:12px;color:#476a59;min-height:38px}.jamaat-home a:hover,.jamaat-home button:hover{filter:brightness(.98)}#jamaat-dialog{width:min(94vw,500px);overflow-wrap:anywhere}#jamaat-dialog h2{font-size:23px;margin:0}#jamaat-dialog p{font-size:14px;line-height:1.65;margin-top:16px}#jamaat-dialog label{display:grid;gap:8px;font-size:14px}#jamaat-dialog input{width:100%;padding:12px;border:1px solid #b6ccc0;border-radius:9px;font:inherit}#jamaat-dialog form{margin-top:20px}#jamaat-dialog .jamaat-caption{font-size:12px}.jamaat-dialog-photo{width:100%;height:180px;object-fit:cover;border-radius:12px;margin-top:20px}
@media(min-width:751px){.workspace:has(.jamaat-home){background:linear-gradient(120deg,#f6f8f1,#fbf8f2)}main:has(.jamaat-home){padding:22px 28px 45px}}
@media(max-width:1100px){.jamaat-nearby{grid-template-columns:repeat(2,minmax(0,1fr))}.jamaat-event-photo{height:125px}.jamaat-actions>a{flex-direction:column;align-items:start}.jamaat-actions>a>svg:last-child{display:none}.jamaat-family-card{padding:12px}.jamaat-family-card small{font-size:11px}.jamaat-learning{flex-wrap:wrap}}
@media(max-width:750px){main:has(.jamaat-home){padding:12px 12px 100px;background:linear-gradient(150deg,#f5f6ee,#fcf8f2)}.jamaat-home{gap:12px}.jamaat-welcome{min-height:205px;border-radius:20px}.jamaat-welcome-copy{padding:19px 18px;width:72%}.jamaat-welcome h1{font-size:37px}.jamaat-kicker{font-size:10px;display:block;max-width:195px}.jamaat-location{font-size:14px;gap:5px}.jamaat-community{font-size:12px;max-width:210px}.jamaat-community svg{width:19px}.jamaat-welcome-copy>p{font-size:12px;max-width:190px;margin-top:5px}.jamaat-hero-picture{width:48%}.jamaat-hero-picture:after{background:linear-gradient(90deg,#faf7f0 0%,#faf7f096 35%,transparent 85%)}.jamaat-panel{padding:16px;border-radius:18px}.jamaat-heading{gap:8px;margin-bottom:12px}.jamaat-heading h2{font-size:18px;gap:7px}.jamaat-heading h2>svg{width:21px;height:21px}.jamaat-heading>a{font-size:11px;gap:1px}.jamaat-prayer-main{gap:10px;grid-template-columns:1.2fr 1fr}.jamaat-countdown{font-size:25px;gap:2px 7px}.jamaat-countdown strong{font-size:31px}.jamaat-prayer-main>div>p{font-size:11px}.jamaat-reflection{padding:12px 11px}.jamaat-reflection>span{font-size:9px}.jamaat-reflection p{font-size:12px;margin:4px 0}.jamaat-reflection>svg{display:none}.jamaat-inline{font-size:10px}.jamaat-times{margin-top:12px;gap:3px;padding-top:8px}.jamaat-times>a{padding:8px 0}.jamaat-times span{font-size:11px}.jamaat-times b{font-size:17px}.jamaat-prayer>.jamaat-caption{font-size:10px}.jamaat-events{display:flex;overflow-x:auto;scroll-snap-type:x proximity;gap:11px;padding-bottom:7px;scrollbar-width:thin;scrollbar-color:#b8d7c7 transparent}.jamaat-event{flex:0 0 73%;scroll-snap-align:start}.jamaat-event-photo{height:135px}.jamaat-event-body{padding:12px}.jamaat-event h3{font-size:16px}.jamaat-event-body>p{font-size:12px}.jamaat-interest{font-size:12px}.jamaat-caption{font-size:11px}.jamaat-family{gap:7px}.jamaat-family-card{padding:10px 7px}.jamaat-family-avatar{width:40px;height:40px;margin-bottom:9px}.jamaat-family-avatar svg{width:23px;height:23px}.jamaat-family-card b{font-size:11px;padding:0}.jamaat-family-card small{font-size:10px;line-height:1.35}.jamaat-family-card>svg{display:none}.jamaat-discussions{grid-template-columns:1fr;gap:13px}.jamaat-discussion b{font-size:13px}.jamaat-discussion p{font-size:12px}.jamaat-nearby{gap:7px}.jamaat-place img{width:40px;height:60px}.jamaat-place b{font-size:11px}.jamaat-place small{font-size:9px;display:block}.jamaat-place>svg{display:none}.jamaat-actions{gap:7px}.jamaat-actions>a{padding:11px 7px;gap:6px}.jamaat-actions b{font-size:10px;overflow-wrap:anywhere}.jamaat-actions>a>svg{width:23px;height:23px}.jamaat-learning{padding:17px;gap:14px}.jamaat-learning h2{font-size:16px}.jamaat-learning>div{gap:10px}.jamaat-learning>.jamaat-button{width:100%}.jamaat-tools{gap:6px}.jamaat-tools a{font-size:11px;padding:9px 12px}}
@media(max-width:359px){.jamaat-heading{align-items:start}.jamaat-heading h2{font-size:16px}.jamaat-heading>a{font-size:10px}.jamaat-prayer-main{grid-template-columns:1fr}.jamaat-reflection{display:none}.jamaat-family{grid-template-columns:repeat(2,minmax(0,1fr))}.jamaat-family-card{padding:12px}.jamaat-family-card b{font-size:13px}.jamaat-family-avatar{width:44px;height:44px}.jamaat-nearby{grid-template-columns:1fr}.jamaat-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.jamaat-actions b{font-size:12px}}
.jamaat-welcome-copy > .jamaat-community,.jamaat-welcome-copy > p{display:none!important}
.jamaat-home > .jamaat-welcome{min-height:210px;margin-bottom:-4px}
.jamaat-home .jamaat-welcome-copy{padding-top:20px;padding-bottom:20px;transform:translateY(-4px)}
.jamaat-home .jamaat-hero-picture{width:46%}
@media(max-width:750px){main#app:has(.jamaat-home){padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}}
@media(max-width:750px){
 .jamaat-home > .jamaat-welcome{min-height:150px}
 .jamaat-home .jamaat-welcome-copy{padding-top:12px;padding-bottom:12px}
 .jamaat-home .jamaat-hero-picture{width:43%}
}

/* Two clear destinations in Useful nearby, on phones and larger screens. */
.jamaat-nearby.jamaat-nearby-primary{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.jamaat-place.jamaat-place-primary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0;padding:0;overflow:hidden;border:1px solid #e4ebe5;border-radius:16px;background:#fffdf8;align-items:center}
.jamaat-place.jamaat-place-primary>img{grid-column:1/-1;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;border-radius:0}
.jamaat-place.jamaat-place-primary>div{padding:12px 0 13px 12px;min-width:0}
.jamaat-place.jamaat-place-primary b{display:block;font-size:16px;line-height:1.3;color:#123c32}
.jamaat-place.jamaat-place-primary small{display:block;margin-top:4px;font-size:12px;line-height:1.4;color:#53685e}
.jamaat-place.jamaat-place-primary>svg{display:block;margin:0 10px;color:#087a60}
@media(max-width:480px){.jamaat-nearby.jamaat-nearby-primary{gap:9px}.jamaat-place.jamaat-place-primary b{font-size:14px}.jamaat-place.jamaat-place-primary small{font-size:11px}.jamaat-place.jamaat-place-primary>div{padding:10px}.jamaat-place.jamaat-place-primary>svg{display:none}}
