.church-community{margin:0 0 1rem}
.church-community h2{font-size:1.3rem;margin:0 0 .55rem}
.church-community-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}
.church-community-grid a{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.6rem;padding:.8rem;border:1px solid #d7e2d9;border-radius:15px;background:#f0f6ee;color:#134735;text-decoration:none}
.church-community-grid a:nth-child(2){background:#f7f4e9;border-color:#e1d8bf}
.church-community-grid strong,.church-community-grid small{display:block;overflow-wrap:anywhere}
.church-community-grid small{font-weight:400;color:#4e6559;margin-top:.2rem}
.church-chat-shell{max-width:780px;margin:0 auto}
.church-chat-head{margin:1rem 0;padding:clamp(1rem,4vw,1.75rem);background:linear-gradient(130deg,#104c38,#26664b);color:#fff;border-radius:20px;display:flex;gap:1rem;justify-content:space-between;align-items:center;flex-wrap:wrap}
.church-chat-head h2{font-size:clamp(1.45rem,5vw,2rem);color:inherit;margin:.3rem 0}
.church-chat-head p{margin:0;color:#e9f6ef}
.church-chat-head .eyebrow{color:#f6e0a1}
.church-chat-entry{max-width:32rem;display:grid;gap:.8rem}
.church-chat-entry label{display:grid;gap:.3rem}
.church-chat-entry input,.church-chat-panel input,.church-chat-compose textarea{font:inherit;border:1px solid #adc2b4;border-radius:10px;padding:.65rem;min-width:0;color:#173d30;background:white}
.church-chat-tools{display:flex;flex-wrap:wrap;gap:.45rem;margin:0 0 .6rem}
.church-chat-tools button,.church-chat-menu button{min-height:40px}
.church-chat-feed{padding:.7rem;border:1px solid #d6e3d7;border-radius:16px;background:#f0f5ef;overflow:auto;overscroll-behavior:contain;height:clamp(225px,48dvh,610px)}
.church-chat-message{display:flex;align-items:flex-start;gap:.25rem;margin:.65rem 0}
.church-chat-message.mine{justify-content:flex-end}
.church-chat-bubble{min-width:0;max-width:min(83%,36rem);padding:.6rem .8rem;background:white;border:1px solid #d8e5da;border-radius:0 14px 14px}
.church-chat-message.mine .church-chat-bubble{background:#daf2df;border-radius:14px 0 14px 14px}
.church-chat-bubble header{display:flex;flex-wrap:wrap;gap:.15rem .75rem;justify-content:space-between;color:#174735;position:static;background:none;padding:0;border:0;box-shadow:none}
.church-chat-bubble p,.church-chat-panel p,.church-chat-bubble blockquote{white-space:pre-wrap;overflow-wrap:anywhere;margin:.35rem 0}
.church-chat-bubble blockquote{border-left:3px solid #498361;padding-left:.5rem;color:#496453;font-size:.9rem}
.church-chat-reactions{display:block;margin-top:.45rem}
.church-chat-menu{position:relative;flex:0 0 auto}
.church-chat-menu summary{display:grid;place-items:center;list-style:none;border-radius:8px;cursor:pointer;min-width:38px;min-height:40px}
.church-chat-menu summary::-webkit-details-marker{display:none}
.church-chat-menu[open] div{position:absolute;z-index:2;top:0;left:0;max-width:min(240px,70vw);min-width:9rem;padding:.3rem;border:1px solid #b6ccbd;border-radius:10px;background:#fff;box-shadow:0 4px 20px #173d3025}
.church-chat-message.mine .church-chat-menu[open] div{right:0;left:auto}
.church-chat-menu button{display:block;width:100%;text-align:left;background:white;color:#134735;border:0;border-radius:5px;padding:.35rem .55rem;cursor:pointer}
.church-chat-menu button:focus-visible,.church-chat-menu button:hover,.church-chat-menu button[aria-pressed=true]{background:#dff2e4}
.church-chat-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:.5rem;margin-top:.6rem}
.church-chat-compose textarea{width:100%;resize:vertical;font-size:16px}
.church-chat-compose button{min-height:44px}
#church-chat-reply{grid-column:1/-1;display:flex;align-items:center;gap:.5rem}
#church-chat-reply:empty{display:none}
.church-chat-status{min-height:1.3em;color:#345a47}
.church-chat-empty{text-align:center;color:#496453}
.church-chat-panel{padding:.7rem 1rem;margin:0 0 .6rem;border:1px solid #d6e3d7;border-radius:12px;background:#faf9f2;max-height:14rem;overflow:auto}
.church-chat-panel h3{margin:0 0 .3rem}
.church-chat-person{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;padding:.45rem 0;border-top:1px solid #e1e7db}
.church-chat-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:480px){.church-community-grid{grid-template-columns:1fr}.church-chat-feed{height:clamp(225px,43dvh,520px)}}
