/* Meet the Choir (kmakiamunyi.org/choir/) - extends style.css, same tokens. */

.choir-hero { background: linear-gradient(135deg, var(--indigo), var(--navy)); color: #fff; padding: 64px 0 40px; text-align: center; }
.choir-hero h1 { color: #fff; }
.choir-hero .sub { color: rgba(255,255,255,.82); max-width: 620px; margin: 0 auto; }

.milestones { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 28px auto 0; max-width: 900px; }
.milestone { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 14px; padding: 14px 22px; min-width: 150px; }
.milestone strong { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--gold); }
.milestone span { font-size: .8rem; opacity: .85; }

.voice-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 26px 0 8px; }
.voice-filter button { padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: .85rem; font-weight: 600; color: var(--navy); cursor: pointer; }
.voice-filter button.active, .voice-filter button:hover { background: var(--indigo); border-color: var(--indigo); color: #fff; }

.qr-block { display: flex; align-items: center; gap: 14px; justify-content: center; margin: 18px 0 6px; flex-wrap: wrap; }
.qr-block img { width: 92px; height: 92px; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 6px; }
.qr-block .qr-text { font-size: .82rem; color: var(--muted); max-width: 260px; }
.qr-block a.chip { display: inline-block; margin-top: 4px; }

.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-top: 28px; }
.member-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; cursor: pointer; border: 1px solid var(--line); transition: transform .15s; }
.member-card:hover { transform: translateY(-3px); }
.member-photo { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: linear-gradient(135deg,#eee,#ddd); display: block; }
.member-body { padding: 12px 14px 14px; }
.member-body h4 { margin: 0 0 2px; font-size: 1.05rem; }
.member-voice { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--magenta); font-weight: 700; }
.member-badge { display: inline-block; margin-top: 6px; font-size: .72rem; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--navy); }

.no-members { text-align: center; padding: 40px 0; color: var(--muted); }

/* Profile detail overlay */
.profile-overlay { position: fixed; inset: 0; background: rgba(15,18,64,.6); z-index: 200; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 30px 16px; }
.profile-overlay[hidden] { display: none; }
.profile-panel { background: #fff; border-radius: 20px; max-width: 760px; width: 100%; padding: 30px; position: relative; }
.profile-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 18px; cursor: pointer; }
.profile-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.profile-photo-wrap { position: relative; flex: 0 0 auto; }
.profile-photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 4px solid var(--cream); box-shadow: var(--shadow); }
.dl-btn { position: absolute; bottom: 2px; right: 2px; background: var(--indigo); color: #fff; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; text-decoration: none !important; font-size: 15px; border: 2px solid #fff; }
.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.profile-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 20px; }
.gphoto { position: relative; border-radius: 10px; overflow: hidden; }
.gphoto img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.gphoto .gactions { position: absolute; bottom: 6px; right: 6px; display: flex; gap: 6px; }
.gphoto .gactions a, .gphoto .gactions button { background: rgba(15,18,64,.75); color: #fff; border: none; border-radius: 999px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; text-decoration: none !important; }
.gphoto .gactions button.faved { background: var(--magenta); }
.ai-note { font-size: .78rem; color: var(--muted); margin-top: 6px; }

/* Favourites carousel (homepage) */
.fav-carousel { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 14px; scroll-snap-type: x mandatory; }
.fav-carousel .fc-item { flex: 0 0 auto; width: 160px; scroll-snap-align: start; text-align: center; }
.fav-carousel img { width: 160px; height: 160px; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); }
.fav-carousel .fc-name { font-size: .8rem; margin-top: 6px; color: var(--navy); font-weight: 600; }
.fav-empty { color: var(--muted); font-size: .9rem; }

/* Per-profile rotating gallery carousel */
.profile-carousel { margin-top: 12px; }
.pc-main { position: relative; border-radius: 14px; overflow: hidden; background: #111; aspect-ratio: 4/3; }
.pc-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-nav { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.pc-nav button { pointer-events: auto; background: rgba(15,18,64,.55); color: #fff; border: none; width: 38px; height: 38px; border-radius: 50%; font-size: 20px; cursor: pointer; margin: 0 8px; }
.pc-actions { position: absolute; bottom: 10px; right: 10px; display: flex; gap: 8px; }
.pc-actions a, .pc-actions button { background: rgba(15,18,64,.75); color: #fff; border: none; border-radius: 999px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-size: 15px; cursor: pointer; text-decoration: none !important; }
.pc-actions button.faved { background: var(--magenta); }
.pc-count { position: absolute; top: 10px; right: 12px; background: rgba(15,18,64,.6); color: #fff; font-size: .72rem; padding: 3px 9px; border-radius: 999px; }
.pc-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.pc-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: .55; border: 2px solid transparent; flex: 0 0 auto; }
.pc-thumb.active { opacity: 1; border-color: var(--magenta); }

/* Quick Help (client-side, NOT AI - keyword matched, purely local) */
.qh-launcher { position: fixed; right: 24px; bottom: 92px; z-index: 60; background: var(--indigo); color: #fff; border: none; border-radius: 999px; padding: 12px 18px; font-weight: 700; font-size: .85rem; box-shadow: var(--shadow); cursor: pointer; display: flex; align-items: center; gap: 8px; }
.qh-panel { position: fixed; right: 24px; bottom: 148px; z-index: 60; width: min(320px, 88vw); max-height: 60vh; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(15,18,64,.35); display: flex; flex-direction: column; overflow: hidden; }
.qh-panel[hidden] { display: none; }
.qh-head { background: var(--indigo); color: #fff; padding: 12px 16px; font-weight: 700; font-size: .85rem; display: flex; justify-content: space-between; align-items: center; }
.qh-head button { background: none; border: none; color: #fff; font-size: 16px; cursor: pointer; }
.qh-body { flex: 1; overflow-y: auto; padding: 12px; font-size: .85rem; }
.qh-msg { margin-bottom: 10px; max-width: 90%; padding: 8px 12px; border-radius: 12px; line-height: 1.4; }
.qh-msg.bot { background: var(--cream); color: var(--ink); }
.qh-msg.user { background: var(--indigo); color: #fff; margin-left: auto; }
.qh-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; }
.qh-quick button { font-size: .72rem; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.qh-input { display: flex; border-top: 1px solid var(--line); }
.qh-input input { flex: 1; border: none; padding: 10px 12px; font-size: .85rem; }
.qh-input button { border: none; background: var(--magenta); color: #fff; padding: 0 16px; cursor: pointer; font-weight: 700; }
.qh-disclaimer { font-size: .66rem; color: var(--muted); padding: 4px 12px 8px; }

.meet-block { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 24px 0; text-align: center; }
.meet-block .btn[disabled], .meet-block .btn.disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 640px) {
  .profile-head { flex-direction: column; text-align: center; }
}
