/* Community posts: one clean, professional rhythm.
   Every part of a post (header, text, poll, cards, reactions, comments) shares the same 20px inner margin. */
.feed-posts { gap: 18px; }
.fpost { border-radius: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.25), 0 8px 24px rgba(0,0,0,.18); }
.fpost:hover { transform: none; }

.fpost-header { padding: 16px 20px 10px; gap: 12px; align-items: center; }
.fpost-av { width: 42px; height: 42px; font-size: .9rem; }
.fpost-name { font-size: .96rem; font-weight: 700; letter-spacing: -.005em; }
.fpost-time { font-size: .76rem; margin-top: 1px; }

/* text: the line breaks are already <br>, so no doubled gaps */
.fpost-caption { padding: 2px 20px 10px; font-size: .96rem; line-height: 1.55; white-space: normal; color: var(--text-1); }
.fpost-subject-inline { font-size: 1.08rem; font-weight: 700; line-height: 1.3; margin-bottom: 6px; letter-spacing: -.01em; }
.fpost-see-more { padding: 0 20px 12px; font-size: .86rem; }
.fpost-bgcard { margin: 4px 20px 10px; min-height: 200px; padding: 32px 28px; border-radius: 14px; }
.fpost-bgcard .fpost-caption { font-size: 1.3rem; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; color: #fff; }

/* media runs edge to edge with a hairline, like a magazine */
.fpost-image, .cpx-gallery { margin-top: 4px; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); }
.fpost-image { max-height: 560px; }

/* poll: clean option rows, same margin as the text */
.fpost-poll { padding: 4px 20px 12px; gap: 8px; }
.fpost-poll-opt { border-radius: 12px; min-height: 46px; }
.fpost-poll-opt-btn { border: 1px solid var(--border); background: rgba(255,255,255,.03); padding: 11px 16px; font-weight: 500; }
.fpost-poll-opt-btn:hover { background: rgba(200,16,46,.08); border-color: rgba(200,16,46,.45); }
.fpost-poll-dot { width: 16px; height: 16px; border-width: 1.5px; }
.fpost-poll-opt-result { border: 1px solid var(--border); }
.fpost-poll-opt-inner { padding: 11px 16px; }
.fpost-poll-bar-fill { background: rgba(255,255,255,.07); border-radius: 0; }
.fpost-poll-opt-voted .fpost-poll-bar-fill { background: rgba(200,16,46,.22); }
.fpost-poll-opt-text { font-size: .9rem; }
.fpost-poll-pct { font-size: .82rem; color: var(--text-2); }
.fpost-poll-meta { font-size: .74rem; padding: 2px 2px 0; }

/* attachment cards line up with the text */
.cpx-meet, .cpx-link, .cpx-shout, .fpost-event-chip { margin-left: 20px; margin-right: 20px; }
.cpx-shout { max-width: calc(100% - 40px); }
.fpost-event-chip { margin-top: 2px; }

/* reactions and comments */
.fpost-react-bar { padding: 10px 20px 8px; gap: 8px; }
.fpost-like-mini-av { width: 22px; height: 22px; }
.fpost-react-sum-item { font-size: .82rem; }
.fpost-actions { margin: 0; padding: 4px 12px; }
.fpost-btn { padding: 10px 4px; font-size: .86rem; border-radius: 10px; }
.fpost-cmt-preview { padding: 10px 20px 14px; gap: 8px; border-top: 1px solid var(--border); }
.fpost-cmt-prev-av { width: 26px; height: 26px; }
.fpost-cmt-prev-bubble { background: rgba(255,255,255,.05); border-radius: 14px; padding: 6px 12px; font-size: .82rem; }
.fpost-cmt-view-all { padding-left: 34px; }

.fpost-pinned-badge { padding: 8px 20px; font-size: .72rem; letter-spacing: .06em; }
.fpost-pinned { border-width: 1px; }

@media (max-width: 600px) {
  .fpost-header, .fpost-caption, .fpost-poll, .fpost-react-bar, .fpost-cmt-preview, .fpost-pinned-badge { padding-left: 16px; padding-right: 16px; }
  .fpost-bgcard, .cpx-meet, .cpx-link, .cpx-shout, .fpost-event-chip { margin-left: 16px; margin-right: 16px; }
  .fpost-bgcard .fpost-caption { font-size: 1.15rem; }
}

/* reaction row: four equal columns */
.fpost-actions .fpost-react-wrap { flex: 1; display: flex; }
.fpost-actions .fpost-react-wrap > .fpost-btn { width: 100%; }

/* Voting rooms: the winner stands out, everything else stays calm */
.vt-bar-top > span { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.vt-bar.win .vt-bar-top > span > span { font-weight: 700; color: var(--text-1); }
.vt-bar-top em { margin-left: 4px; padding: 2px 9px; border-radius: 99px; background: rgba(244,176,0,.14); border: 1px solid rgba(244,176,0,.35); font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; }
.vt-bar.win .vt-bar-top b { color: var(--text-1); }
.vt-bar > i { height: 10px; }
.vt-bar.win > i { background: linear-gradient(90deg, #8f0b22, var(--red)); box-shadow: 0 0 12px rgba(200,16,46,.35); }
.vt-bar:not(.win) > i { background: rgba(255,255,255,.22); }
.vt-res { padding: 4px 0 8px; }
.vt-res-head b { font-family: var(--font-display); font-size: 1.02rem; }

/* Header profile avatar: big enough to recognise the face */
.desktop-avatar-btn .user-pill-avatar, .mobile-avatar-btn .user-pill-avatar { width: 54px; height: 54px; font-size: 1.25rem; box-shadow: 0 0 0 2px rgba(200,16,46,.6), 0 4px 14px rgba(0,0,0,.35); }
.user-pill-avatar img, .desktop-avatar-btn .user-pill-avatar img, .mobile-avatar-btn .user-pill-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
@media (max-width: 600px) { .mobile-avatar-btn .user-pill-avatar { width: 44px; height: 44px; font-size: 1.05rem; } }
@media (max-width: 420px) { .mobile-avatar-btn .user-pill-avatar { width: 40px; height: 40px; } }

/* People you may know cards: larger profile photos */
#pplSection .ppl-rail .ppl-card .ppl-cover { height: 54px; }
#pplSection .ppl-rail .ppl-card .ppl-avbtn { margin-top: -42px; }
#pplSection .ppl-rail .ppl-card .ppl-av { width: 84px; height: 84px; font-size: 1.6rem; border-width: 3px; }
#pplSection .ppl-rail .ppl-card .ppl-name { margin-top: 8px; font-size: .95rem; }
@media (max-width: 600px) {
  #pplSection .ppl-rail .ppl-card .ppl-av { width: 72px; height: 72px; font-size: 1.4rem; }
  #pplSection .ppl-rail .ppl-card .ppl-avbtn { margin-top: -36px; }
}

/* People you may know: calmer covers, headline line, your own card (people-suggest.js) */
#pplSection .ppl-rail .ppl-card .ppl-cover { background: linear-gradient(135deg, var(--pc), rgba(0,0,0,.55)); background: linear-gradient(135deg, color-mix(in srgb, var(--pc) 70%, transparent), rgba(0,0,0,.35)); }
#pplSection .ppl-av-ph { box-shadow: 0 0 0 3px rgba(255,255,255,.9); border-color: transparent; letter-spacing: .02em; }
[data-theme="light"] #pplSection .ppl-av-ph { box-shadow: 0 0 0 3px #fff; }
#pplSection .ppl-role { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; min-height: 2.7em; color: var(--muted); }
#pplSection .ppl-self { border: 1px dashed var(--red-border-s); background: var(--red-dim); }
#pplSection .ppl-self .ppl-name { font-size: .82rem; }
#pplSection .ppl-self .ppl-avbtn { position: relative; }
#pplSection .ppl-self-cam { position: absolute; right: 2px; bottom: 2px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 0 0 2px var(--card); }
#pplSection .ppl-self .ppl-name { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; }

/* People page: quick filters (eventme-africa.js plistSetFocus) */
.plist-search-bar { flex-direction: row !important; flex-wrap: wrap; align-items: center; }
@media (max-width: 479px) { .plist-search-bar .plist-search-wrap, .plist-search-bar .plist-country-select { flex: 1 1 100%; width: 100%; } }
.plist-focus { flex: 1 1 100%; width: 100%; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.plist-focus::-webkit-scrollbar { display: none; }
.plist-focus button { flex: none; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text-1); font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.plist-focus button:hover { border-color: var(--red-border-s); }
.plist-focus button.on { background: var(--red); border-color: var(--red); color: #fff; }
.plist-focus-empty { padding: 30px 16px; text-align: center; color: var(--muted); font-size: .88rem; }
#plistFocus { align-items: center; }
#plistFocus button { display: inline-flex; align-items: center; height: 34px; min-height: 0; width: auto; max-width: none; padding: 0 13px; line-height: 1; white-space: nowrap; }
.pp-role.pp-role-soft { color: var(--muted); font-weight: 600; }

/* ══ Member cards: clean glass (home row and People page) ══
   frosted surface, hairline light border, soft depth; the colour band stays as the only accent */
#pplSection .ppl-rail .ppl-card:not(.ppl-more),
.pp-card {
  background: linear-gradient(160deg, rgba(255,255,255,.075), rgba(255,255,255,.025)) , rgba(24,24,28,.55);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 10px 30px rgba(0,0,0,.28);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-radius: 18px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
#pplSection .ppl-rail .ppl-card:not(.ppl-more):hover,
.pp-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 1px 0 rgba(255,255,255,.10) inset, 0 16px 40px rgba(0,0,0,.35);
}
#pplSection .ppl-rail .ppl-card .ppl-cover,
.pp-card .pp-cover {
  background: linear-gradient(180deg, color-mix(in srgb, var(--pc, #4a5a6a) 55%, transparent), transparent) !important;
  opacity: .9;
}
#pplSection .ppl-name, .pp-card .pp-name { letter-spacing: -.01em; }
#pplSection .ppl-rail .ppl-card .plist-btn-link, .pp-card .plist-btn-link {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,58,92,.55); color: #ff6b86; border-radius: 12px;
  transition: background .15s, color .15s, border-color .15s;
}
#pplSection .ppl-rail .ppl-card .plist-btn-link:hover, .pp-card .plist-btn-link:hover { background: var(--red); border-color: var(--red); color: #fff; }
#pplSection .ppl-x, .pp-card .pp-x { background: rgba(0,0,0,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
#pplSection .ppl-more { background: linear-gradient(160deg, rgba(200,16,46,.22), rgba(200,16,46,.06)); border: 1px solid rgba(255,58,92,.25); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 18px; }

[data-theme="light"] #pplSection .ppl-rail .ppl-card:not(.ppl-more),
[data-theme="light"] .pp-card {
  background: linear-gradient(160deg, rgba(255,255,255,.92), rgba(255,255,255,.70));
  border: 1px solid rgba(20,20,30,.08);
  box-shadow: 0 1px 0 #fff inset, 0 10px 28px rgba(60,20,30,.10);
}
[data-theme="light"] #pplSection .ppl-rail .ppl-card:not(.ppl-more):hover,
[data-theme="light"] .pp-card:hover { box-shadow: 0 1px 0 #fff inset, 0 16px 36px rgba(60,20,30,.16); border-color: rgba(200,16,46,.22); }
[data-theme="light"] #pplSection .ppl-rail .ppl-card .plist-btn-link, [data-theme="light"] .pp-card .plist-btn-link { background: #fff; color: var(--red); border-color: rgba(200,16,46,.45); }
@media (prefers-reduced-motion: reduce) { #pplSection .ppl-rail .ppl-card, .pp-card { transition: none; } }
