/* convert-member.css — member-area additions on top of rl's panel.css (rl tokens only). */

/* Posts: media tiles, video play badge, "+N more" overlay */
.post .media .post-media-item { position: relative; display: block; border-radius: 10px; overflow: hidden; background: var(--sand); }
.post .media .post-media-item img, .post .media .post-media-item video { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.post .media .post-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(28, 25, 23, .25); }
.post .media .post-play svg { width: 34px; height: 34px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.post .media .post-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(28, 25, 23, .55); color: #fff; font-family: var(--font-display); font-size: 1.6rem; }
.post.is-hidden { opacity: .75; border-style: dashed; }
.post .foot .post-action.is-active { color: var(--gold-deep); }
.post .foot .post-count:empty { display: none; }
.post .comments .comment .cb > div p:last-child { margin-bottom: 0; }
.post .comment-form textarea { flex: 1; min-height: 42px; resize: none; }

/* Composer */
.composer-existing { display: flex; flex-wrap: wrap; gap: 12px; }
.composer-existing-item { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.composer-existing-item img, .composer-existing-item .file-chip { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line-soft); display: inline-flex; align-items: center; justify-content: center; background: var(--sand); font-size: .8rem; gap: 4px; }

/* Avatar stacks (feed rail: family circle) */
.avatar-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.avatar-stack .avatar { width: 40px; height: 40px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-soft); }

/* KPI tiles as links */
.kpi.kpi-link { color: inherit; text-decoration: none; }
.kpi.kpi-link:hover { border-color: var(--gold); box-shadow: var(--shadow); }

/* Messaging (module structure kept for messaging.js; retinted with rl tokens) */
.msg-list-item { color: var(--ink); }
.msg-list-item:hover { background: var(--ivory); }
.msg-list-item.active { background: var(--gold-soft); }
.msg.mine .msg-bubble { background: var(--forest); color: #f5efe6; border-color: var(--forest); }
.msg-bubble { background: var(--ivory); border-color: var(--line-soft); }
.msg-day { color: var(--muted); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.msg-compose textarea { border-radius: 14px; }
.msg-meta .dropdown-menu { font-size: .85rem; }

/* Profile / find */
.profile-head { display: flex; gap: 14px; align-items: center; }
.profile-head h3, .profile-head h4 { margin: 0; }

/* Gallery kebab menus (Bootstrap dropdown kept; restyled) */
.media-actions .kebab { background: rgba(255,255,255,.9); border: 1px solid var(--line-soft); border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; color: var(--ink); cursor: pointer; }
.media-actions .dropdown-item { display: flex; gap: 8px; align-items: center; width: 100%; background: none; border: 0; text-align: left; padding: 8px 10px; border-radius: 8px; color: var(--ink); cursor: pointer; font: inherit; font-size: .9rem; }
.media-actions .dropdown-item:hover { background: var(--ivory); }
.media-actions .dropdown-item.btn { justify-content: flex-start; }

/* Photo discovery */
.discovery-scanner > div { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.discovery-scanner .feature-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-deep); display: grid; place-items: center; flex: none; }
.discovery-scanner .meter { height: 6px; border-radius: 3px; background: var(--line-soft); overflow: hidden; margin-top: 8px; }
.discovery-scanner .meter-fill { display: block; height: 100%; background: var(--gold); width: 0; transition: width .3s; }

/* Visibility options in album form */
.vis-option { padding: 8px 0; }
.restricted-members.is-collapsed { display: none; }

/* Flex row helper (bridge.css turns .row into Bootstrap's grid, so member views use .mrow) */
.mrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mrow.between { justify-content: space-between; }

/* Photo grids (dashboard memories, feed rail) */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-grid.wide { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.photo-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }

/* Fact rows (event/trip hero, album facts, timeline locations): icon + text spacing */
.album-facts span, .hero-facts span, .timeline .loc, .fact-list li > svg + div { display: inline-flex; align-items: center; gap: 6px; }
.album-facts, .hero-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Utilities replacing inline styles (the app's CSP forbids style attributes) */
.m0 { margin: 0 !important; } .mt4 { margin: 4px 0 0; } .mb4 { margin-bottom: 4px; } .mb10 { margin-bottom: 10px; } .mb12 { margin-bottom: 12px; } .mb14 { margin-bottom: 14px; }
.ml8 { margin-left: 8px; } .ml-auto { margin-left: auto; } .mx-auto-mb12 { margin: 0 auto 12px; display: block; }
.gap8 { gap: 8px; } .gap6-mt4 { gap: 6px; margin-top: 4px; } .gap16-wrap { gap: 16px; flex-wrap: wrap; } .gap14-start { gap: 14px; align-items: flex-start; }
.wrap-gap8 { flex-wrap: wrap; gap: 8px; } .wrap-gap10 { flex-wrap: wrap; gap: 10px; }
.grow { flex: 1; } .minw0 { min-width: 0; } .grow-minw0 { flex: 1; min-width: 0; }
.col-center { flex-direction: column; text-align: center; align-items: center; gap: 10px; }
.col-stretch { flex-direction: column; gap: 8px; align-items: stretch; } .col-gap10 { flex-direction: column; gap: 10px; }
.ai-start { align-items: flex-start; } .ta-r { text-align: right; } .ta-c { text-align: center; } .blk { display: block; }
.txt-danger { color: var(--danger) !important; } .fw6 { font-weight: 600; } .fs11 { font-size: 1.1rem; }
.mw260 { min-width: 260px; } .mw620 { max-width: 620px; } .mw760 { max-width: 760px; }
.legend-l { font-weight: 600; margin-bottom: 6px; } .fs-plain { border: 0; padding: 0; margin: 0; min-width: 0; }
.cols.cols-1-2 { grid-template-columns: 1fr 2fr; } @media (max-width: 1100px) { .cols.cols-1-2 { grid-template-columns: 1fr; } }
.ev-compact { padding: 12px; margin-bottom: 10px; }
.ico-gold { background: var(--gold-soft) !important; color: var(--gold-deep) !important; }
.sel-inline { width: auto; padding: 8px 36px 8px 12px; }
.sq30 { width: 30px !important; height: 30px !important; }
.pre-line { white-space: pre-line; margin: 0; }
.pad30 { padding: 30px; }
.btn-xs { padding: 2px 8px !important; font-size: .72rem !important; }
.ul-tight { padding-left: 18px; margin: 0; }
.trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-bare { background: none; border: 0; cursor: pointer; padding: 0; font: inherit; }
.post .media .post-media-item video { border-radius: 10px; width: 100%; aspect-ratio: 1; object-fit: cover; }
.form-grid .field.full, .form-grid .full { grid-column: 1 / -1; }
