@font-face{font-family:CommunityDevanagari;src:url('/fonts/NotoSansDevanagari.ttf') format('truetype');font-display:swap}
.community-page, .community-page *, .community-page *::before, .community-page *::after { box-sizing: border-box; }
body.community-page { margin: 0; min-width: 320px; }
:root{--community-ink:#20352c;--community-muted:#65756b;--community-green:#315c46;--community-gold:#b88227;--community-paper:#fbfaf6;--community-line:#e7e9df;--community-white:#fff}
.home-community{max-width:1220px;margin:30px auto 0;padding:40px 28px 32px;border-top:1px solid var(--community-line);color:var(--community-ink)}
.home-community-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:22px}.home-community-heading h2{margin:0;font-size:clamp(1.45rem,2.4vw,2rem);font-weight:650}.home-community-heading p:not(.eyebrow){max-width:620px;margin:8px 0 0;color:var(--community-muted);line-height:1.6}.eyebrow{margin:0 0 7px;color:var(--community-gold);font-size:.7rem;font-weight:750;letter-spacing:.1em}.community-cta,.home-community-join a{color:var(--community-green);font-weight:650;text-decoration:none}.home-community-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.community-loading{color:var(--community-muted)}.samiti-card{display:block;min-width:0;padding:19px;background:var(--community-white);border:1px solid var(--community-line);border-radius:8px;color:inherit;text-decoration:none;transition:border-color .16s,transform .16s}.samiti-card:hover{border-color:#a8b8a8;transform:translateY(-2px)}.samiti-card h3{margin:0 0 7px;font-size:1.08rem;line-height:1.35}.samiti-card p{margin:0;color:var(--community-muted);font-size:.91rem;line-height:1.55}.samiti-card .card-location{margin-bottom:9px;color:var(--community-green);font-size:.82rem}.home-events{margin-top:26px;padding-top:20px;border-top:1px solid var(--community-line)}.home-events h3{margin:0 0 12px;font-size:1rem}.event-preview{display:flex;justify-content:space-between;gap:18px;padding:11px 0;border-bottom:1px solid var(--community-line);color:inherit;text-decoration:none}.event-preview strong{display:block}.event-preview small{color:var(--community-muted)}.event-preview time{white-space:nowrap;color:var(--community-green);font-size:.84rem}.home-community-join{margin:22px 0 0;font-size:.92rem}
body.community-page{min-height:100vh;background:var(--community-paper);color:var(--community-ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.community-header{min-height:66px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px max(22px,calc((100vw - 1180px)/2));background:#fff;border-bottom:1px solid var(--community-line)}.community-brand{display:inline-flex;align-items:center;gap:10px;color:var(--community-ink);font-size:.98rem;font-weight:700;text-decoration:none}.community-brand img{width:40px;height:40px;object-fit:contain}.community-header nav{display:flex;gap:20px}.community-header nav a,.back-link{color:var(--community-green);font-size:.9rem;font-weight:600;text-decoration:none}.community-shell{width:min(100% - 32px,980px);margin:30px auto 64px}.directory-shell{width:min(100% - 32px,1120px)}.community-intro{margin-bottom:24px}.community-intro h1,.profile-hero h1{margin:0;font-family:CommunityDevanagari,serif;font-size:clamp(1.7rem,4vw,2.7rem);font-weight:650;line-height:1.35}.community-intro>p:not(.eyebrow),.profile-description{max-width:720px;color:var(--community-muted);line-height:1.75}.directory-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:22px 0}.directory-toolbar input,.form-field input,.form-field textarea,.form-field select{width:100%;min-height:46px;padding:11px 13px;border:1px solid #d9ded4;border-radius:6px;background:white;color:var(--community-ink);font:inherit}.directory-toolbar input{max-width:430px}.community-button{display:inline-flex;min-height:44px;align-items:center;justify-content:center;gap:8px;padding:0 17px;border:0;border-radius:6px;background:var(--community-green);color:white;font:inherit;font-weight:650;text-decoration:none;cursor:pointer}.community-button.secondary{background:#e9eee8;color:var(--community-green)}.directory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.directory-card{display:flex;min-height:176px;flex-direction:column;justify-content:space-between;padding:20px;background:#fff;border:1px solid var(--community-line);border-radius:8px;color:inherit;text-decoration:none}.directory-card:hover{border-color:#a8b8a8}.directory-card h2{margin:0 0 8px;font-size:1.15rem}.directory-card p{margin:0;color:var(--community-muted);line-height:1.6}.directory-card .card-location{margin-bottom:11px;color:var(--community-green);font-size:.86rem}.card-link{margin-top:17px;color:var(--community-green);font-size:.9rem;font-weight:650}.empty-state,.form-status{padding:18px 0;color:var(--community-muted)}.event-list{display:grid;gap:10px}.directory-event{padding:16px 18px;background:#fff;border:1px solid var(--community-line);border-radius:7px}.directory-event h3{margin:3px 0 5px;font-size:1rem}.directory-event p{margin:4px 0;color:var(--community-muted);font-size:.92rem}.directory-event time{color:var(--community-green);font-size:.82rem;font-weight:650}.community-section-heading{margin:34px 0 14px;font-size:1.22rem}
.profile-shell{max-width:850px}.profile-shell>.back-link{display:inline-block;margin-bottom:15px}.profile-hero{padding:30px 0 22px;border-bottom:1px solid var(--community-line)}.profile-cover{display:block;width:100%;max-height:350px;object-fit:cover;margin:0 0 24px;border-radius:8px}.profile-location{margin:10px 0;color:var(--community-green)}.profile-description{white-space:normal;font-size:1.03rem}.profile-section{padding:21px 0;border-bottom:1px solid var(--community-line)}.profile-section h2{margin:0 0 13px;font-size:1.2rem}.profile-section ul{padding-left:22px;line-height:1.8}.profile-section p{line-height:1.75}.event-row{padding:10px 0;border-bottom:1px solid var(--community-line)}.event-row:last-child{border:0}.event-row h3,.event-row p{margin:5px 0}.event-row time{color:var(--community-green);font-size:.84rem}.people-list{list-style:none;padding:0!important}.people-list li{padding:8px 0;border-bottom:1px solid var(--community-line)}.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.photo-grid img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:6px;background:#e9eee8}.donation-section{padding:20px;background:#f1f3ec;border:0;border-radius:8px;margin-top:18px}.donation-qr{display:block;width:min(220px,70%);max-height:260px;object-fit:contain;margin:16px auto}.donation-section dl{margin:12px 0 0}.donation-section dl div{display:grid;grid-template-columns:130px 1fr;gap:12px;padding:8px 0;border-top:1px solid #dce2d8}.donation-section dt{color:var(--community-muted)}.donation-section dd{margin:0;overflow-wrap:anywhere}.community-footer{display:flex;justify-content:space-between;gap:16px;padding:25px 0}.community-footer a{color:var(--community-green);font-weight:600;text-decoration:none}
.form-shell{max-width:720px}.form-panel{padding:24px;background:white;border:1px solid var(--community-line);border-radius:8px}.form-panel h2{margin:0 0 8px;font-size:1.22rem}.form-help{margin:0 0 18px;color:var(--community-muted);font-size:.91rem;line-height:1.6}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-field{display:block;min-width:0;margin:0 0 15px}.form-field>span{display:block;margin:0 0 6px;font-size:.88rem;font-weight:650}.form-field textarea{min-height:105px;resize:vertical}.form-field small{display:block;margin-top:5px;color:var(--community-muted);font-size:.78rem;line-height:1.5}.form-actions{display:flex;align-items:center;gap:12px;margin-top:17px}.form-status[role=status]{min-height:1.5em;margin:10px 0 0}.otp-code{max-width:220px;letter-spacing:.18em;font-size:1.2rem!important}.form-divider{height:1px;margin:25px 0;background:var(--community-line)}.editor-section{margin:30px 0}.editor-section h2{font-size:1.22rem}.editor-section>p{color:var(--community-muted);font-size:.9rem;line-height:1.55}.checkbox-row{display:flex;align-items:flex-start;gap:10px;margin:14px 0}.checkbox-row input{margin-top:5px}.danger-link{border:0;background:none;color:#8a3d31;font:inherit;cursor:pointer}.hidden{display:none!important}
@media(max-width:760px){.home-community{margin-top:16px;padding:30px 18px}.home-community-heading{align-items:flex-start;flex-direction:column;gap:12px}.home-community-grid,.directory-grid{grid-template-columns:1fr}.samiti-card,.directory-card{min-height:0}.community-shell{width:min(100% - 24px,980px);margin-top:20px}.community-header{padding:8px 14px}.community-brand{font-size:.84rem}.community-brand img{width:34px;height:34px}.community-header nav{gap:12px}.community-header nav a{font-size:.82rem}.directory-toolbar{align-items:stretch;flex-direction:column}.directory-toolbar input{max-width:none}.form-panel{padding:18px}.form-grid{grid-template-columns:1fr;gap:0}.profile-hero{padding-top:20px}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.community-footer{flex-direction:column;gap:10px}.event-preview{gap:8px}.event-preview time{font-size:.76rem}.donation-section dl div{grid-template-columns:105px 1fr}}
@media(prefers-reduced-motion:reduce){.samiti-card{transition:none}}
.approval-banner{margin:12px 0;padding:12px 14px;border-left:3px solid var(--community-gold);background:#f8f1df;color:#59471f;font-size:.9rem;line-height:1.55}.approval-banner.rejected{border-left-color:#a34c3b;background:#f8eae6;color:#77372b}
.community-header-right{display:flex;align-items:center;gap:18px}.language-toggle{display:inline-flex;align-items:center;padding:3px;border:1px solid var(--community-line);border-radius:6px;background:#fff}.language-toggle button{min-height:32px;padding:0 9px;border:0;border-radius:4px;background:transparent;color:var(--community-muted);font:inherit;font-size:.8rem;font-weight:650;cursor:pointer}.language-toggle button.selected{background:#e9eee8;color:var(--community-green)}.bilingual-ne{display:block;margin-top:3px;color:var(--community-muted);font-family:CommunityDevanagari,serif}.bilingual-en:empty,.bilingual-ne:empty{display:none}
html:lang(ne) body.community-page,:lang(ne){font-family:CommunityDevanagari,Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}input:lang(ne),textarea:lang(ne){font-family:CommunityDevanagari,Inter,sans-serif}
@media(max-width:760px){.community-header{align-items:flex-start}.community-header-right{align-items:flex-end;flex-direction:column-reverse;gap:8px}.community-header nav{gap:10px}.language-toggle button{min-height:30px}}
.language-toggle { flex-shrink: 0; }
.language-toggle button { min-width: 40px; min-height: 40px; white-space: nowrap; }
.home-community-heading > div, .community-brand { min-width: 0; }
.community-brand { overflow-wrap: anywhere; }
.home-community-heading h2 { font-size: 1.75rem; line-height: 1.45; }
.community-cta { flex-shrink: 0; }
.samiti-card, .event-preview { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .home-community-heading h2 { font-size: 1.45rem; }
  .event-preview { flex-wrap: wrap; }
}
