/* Community page, Posts panel (lane D builder B). Restyles what BuddyBoss renders (the activity feed, comments, menus) into the step2c post card, and styles the plugin composer.
   Builds on community.css (the mock-up's scoped base: .lp, .cm, .cx, .ld-kind, .ld-fs, .lp-safe ...). Only the bridge from BuddyBoss markup to those looks lives here. */

/* ---- theme button reset: the theme paints every button; these are our own looks ---- */
.ld-comm .ldcp button.cp{background:#fff;color:var(--ld-ink);box-shadow:var(--ld-shadow-row);border:0;border-radius:var(--ld-r-card);padding:12px 14px;height:auto;min-height:0;text-transform:none;letter-spacing:0}
.ld-comm .ldcp button.cp:hover{background:#fff;color:var(--ld-ink)}
.ld-comm .ldcp button.cp .in{background:var(--ld-page);color:var(--ld-faint)}
.ld-comm .ldcp .fbar button.ld-chip{background:#fff;color:var(--ld-midnight);box-shadow:inset 0 0 0 1px var(--ld-line);border:0;text-transform:none;letter-spacing:0;line-height:1;min-height:0}
.ld-comm .ldcp .fbar button.ld-chip:hover{background:#fff;box-shadow:inset 0 0 0 1.5px var(--ld-electric)}
.ld-comm .ldcp .fbar button.ld-chip[aria-pressed=true]{background:var(--ld-midnight);color:#fff;box-shadow:none}
.ld-comm .ldcp li.lp a:empty,.ld-comm .ldcp li.lp .acomment-meta>a:empty{display:none}
.ld-comm .ldcp li.lp a:not(.acomment-reply)::before,.ld-comm .ldcp li.lp a::after{content:none;background-image:none}
.ld-comm .ldcp li.lp .activity-time-since::before,.ld-comm .ldcp li.lp .time-since::before,.ld-comm .ldcp li.lp .acomment-meta::after{content:none}

/* ---- the feed list ---- */
.ld-comm .ldcp .feed{margin-top:14px}
.ld-comm .ldcp .bp-screen-title,.ld-comm .ldcp .activity-head-bar,.ld-comm .ldcp #whats-new-form,.ld-comm .ldcp .activity-update-form,.ld-comm .ldcp .bb-activity-sorting,.ld-comm .ldcp .bp-feedback.info:empty{display:none}
.ld-comm .ldcp #activity-stream{margin:0;padding:0}
.ld-comm .ldcp #activity-stream ul.activity-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:14px;border:0;background:none}
.ld-comm .ldcp #activity-stream ul.activity-list>li.activity-item{position:relative;margin:0;border-width:0;list-style:none}
.ld-comm .ldcp #activity-stream .load-more{list-style:none;text-align:center}
.ld-comm .ldcp #activity-stream .load-more a{display:inline-flex;align-items:center;height:44px;padding:0 22px;border-radius:999px;background:#fff;box-shadow:var(--ld-shadow-row);font:600 14px var(--ld-text);color:var(--ld-midnight)}
.ld-comm .ldcp #activity-stream .activity-popup{display:none}
.ld-comm .ldcp .bp-feedback{margin:14px 0;border-radius:16px;background:#fff;box-shadow:var(--ld-shadow-row);padding:18px 20px;font:500 15px var(--ld-text);color:var(--ld-muted)}

/* ---- the card ---- */
.ld-comm .ldcp li.lp{position:relative;overflow:visible;padding:16px 20px 4px;border-radius:var(--ld-r-card);background:#fff;box-shadow:var(--ld-shadow-row);color:var(--ld-ink)}
.ld-comm .ldcp li.lp.bb-pinned,.ld-comm .ldcp li.lp.ldcp-pinned{box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--c-mid) 35%,#fff),0 12px 28px -22px rgba(20,26,102,.4)}
.ld-comm .ldcp li.lp .activity-feature-image,.ld-comm .ldcp li.lp .activity-sync-loader,.ld-comm .ldcp li.lp .bb-pin-action,.ld-comm .ldcp li.lp .activity-date{display:none}
.ld-comm .ldcp li.lp.bb-pinned .bb-pin-action{display:none}
.ld-comm .ldcp li.lp .bp-activity-head{display:flex;align-items:flex-start;gap:11px;padding:0 120px 0 0;margin:0}
.ld-comm .ldcp li.lp .activity-avatar{flex:none;width:42px;height:42px;margin:0}
.ld-comm .ldcp li.lp .activity-avatar img{display:block;width:42px;height:42px;border-radius:50%;object-fit:cover}
.ld-comm .ldcp li.lp .activity-header{flex:1;min-width:0;margin:0}
.ld-comm .ldcp li.lp .activity-header p{margin:0;font:500 14px/1.35 var(--ld-text);color:var(--ld-muted)}
.ld-comm .ldcp li.lp .activity-header a{font-weight:650;color:var(--ld-ink)}
.ld-comm .ldcp li.lp .activity-header a[href*="/groups/"]{font-weight:600;color:var(--c-mid)}
.ld-comm .ldcp li.lp .activity-header img.avatar{display:none}
.ld-comm .ldcp li.lp .activity-header .activity-time-since,.ld-comm .ldcp li.lp .activity-header .time-since{font:500 12.5px var(--ld-text);color:var(--ld-faint)}
.ld-comm .ldcp li.lp .activity-header .activity-time-since{display:block;margin-top:2px}
.ld-comm .ldcp li.lp .activity-header .activity-time-since a,.ld-comm .ldcp li.lp .activity-header a.activity-time-since{font-weight:500;color:var(--ld-faint)}
/* the rewritten header (JS): name, then group and time on a small line */
/* BuddyBoss's "#buddypress .activity-list.bp-list .activity-item" (radius 10px) beats a class-only rule, so the card shape is set with the stream's id: radius and shadow as in the mock-up */
#buddypress .activity-list.bp-list li.lp.activity-item{border-radius:var(--ld-r-card);box-shadow:var(--ld-shadow-row);border:0;background:#fff}
.ld-comm .ldcp li.lp .ldcp-who{flex:1;min-width:0}
.ld-comm .ldcp li.lp .ldcp-who b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* the sub line is the group (shrinks with an ellipsis) then the time (always whole), one line */
.ld-comm .ldcp li.lp .ldcp-who small{display:flex;align-items:baseline;min-width:0;white-space:nowrap}
.ld-comm .ldcp li.lp .ldcp-who small a{min-width:0;overflow:hidden;text-overflow:ellipsis}
.ld-comm .ldcp li.lp .ldcp-who small .s{flex:none;margin:0 .4em}
.ld-comm .ldcp li.lp .ldcp-who small .t{flex:none}
.ld-comm .ldcp li.lp .ldcp-who b{font-weight:650;color:var(--ld-ink)}
.ld-comm .ldcp li.lp .ldcp-who small{display:block;margin-top:2px;font-size:12.5px;color:var(--ld-faint)}
.ld-comm .ldcp li.lp .ldcp-who small a{font-weight:600;color:var(--c-mid)}
/* kind badge, top right beside the ellipsis */
.ld-comm .ldcp li.lp>.ld-kind{position:absolute;top:18px;right:58px}
.ld-comm .ldcp li.lp>.bb-activity-more-options-wrap{position:absolute;top:14px;right:12px;margin:0;z-index:3}
.ld-comm .ldcp li.lp .bb-activity-more-options-action{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;color:var(--ld-faint);cursor:pointer}
.ld-comm .ldcp li.lp .bb-activity-more-options-action:hover{background:var(--ld-page);color:var(--ld-ink)}
/* text */
.ld-comm .ldcp li.lp .activity-content{margin:0;padding:0}
.ld-comm .ldcp li.lp .activity-inner{margin:12px 0 0;padding:0;font-size:15.5px;line-height:1.55;color:var(--ld-ink);word-break:break-word}
.ld-comm .ldcp li.lp .activity-inner p{margin:0 0 8px;font-size:inherit;line-height:inherit;color:inherit}
.ld-comm .ldcp li.lp .activity-inner p:last-child{margin-bottom:0}
.ld-comm .ldcp li.lp .activity-inner a{color:var(--ld-electric);font-weight:600}
.ld-comm .ldcp li.lp .ld-fs{margin:12px 0 0}
.ld-comm .ldcp li.lp .lp-safe{margin-top:12px}
.ld-comm .ldcp li.lp .lp-cta{margin-top:12px}
.ld-comm .ldcp li.lp .lp-cta .ld-btn--ghost{background:#fff;color:var(--ld-midnight);box-shadow:inset 0 0 0 1.5px var(--ld-line)}
.ld-comm .ldcp li.lp .lp-cta .ld-btn--ghost:hover{box-shadow:inset 0 0 0 1.5px var(--ld-electric)}
/* media BuddyBoss renders: single image edge to edge, galleries as a grid */
.ld-comm .ldcp li.lp .activity-inner .bb-activity-media-wrap,.ld-comm .ldcp li.lp .activity-inner .activity-media-description{margin-left:-20px;margin-right:-20px}
.ld-comm .ldcp li.lp .activity-inner img{max-width:100%;height:auto}
/* link preview */
.ld-comm .ldcp li.lp .activity-link-preview-container{margin-top:12px;border-radius:14px;overflow:hidden;box-shadow:inset 0 0 0 1px var(--ld-line);background:var(--ld-pearl)}
/* poll */
.ld-comm .ldcp li.lp .bb-activity-poll_block,.ld-comm .ldcp li.lp .bb-poll-view{margin-top:12px}
.ld-comm .ldcp li.lp .bb-poll-view .bb-poll-option{border-radius:12px;box-shadow:inset 0 0 0 1px var(--ld-line)}
.ld-comm .ldcp li.lp .bb-poll-view .bb-poll-option-progress,.ld-comm .ldcp li.lp .bb-poll-view .bb-poll-progress{background:var(--c-light)}
/* likes and comment count row */
.ld-comm .ldcp li.lp .activity-state{display:flex;justify-content:space-between;align-items:center;min-height:20px;margin:14px 0 0;padding:0 0 10px;font:500 13.5px var(--ld-text);color:var(--ld-faint)}
.ld-comm .ldcp li.lp .activity-state:not(.has-likes):not(.has-comments){display:none}
.ld-comm .ldcp li.lp .activity-state .activity-state-reactions,.ld-comm .ldcp li.lp .activity-state .activity-state-comments{display:inline-flex;align-items:center;gap:7px;color:var(--ld-faint);font-weight:500}
.ld-comm .ldcp li.lp .activity-state .activity-state-comments{margin-left:auto;cursor:pointer}
.ld-comm .ldcp li.lp .activity-state .activity-state-comments:hover{color:var(--ld-ink)}
.ld-comm .ldcp li.lp .activity-state .comments-count{font:500 13.5px var(--ld-text)}
.ld-comm .ldcp li.lp .activity-state-popup{font-family:var(--ld-text)}
/* the action bar */
.ld-comm .ldcp li.lp>.bp-generic-meta{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px;margin:0;padding:4px 0;border-top:1px solid var(--ld-line);background:none}
.ld-comm .ldcp li.lp>.bp-generic-meta .generic-button{margin:0;padding:0;display:flex}
.ld-comm .ldcp li.lp>.bp-generic-meta .generic-button>a,.ld-comm .ldcp li.lp>.bp-generic-meta .generic-button>button{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;height:44px;margin:0;padding:0 6px;border:0;border-radius:12px;background:none;box-shadow:none;font:600 14px var(--ld-text);color:var(--ld-muted);cursor:pointer;text-decoration:none;white-space:nowrap}
.ld-comm .ldcp li.lp>.bp-generic-meta .generic-button>a:hover,.ld-comm .ldcp li.lp>.bp-generic-meta .generic-button>button:hover{background:var(--ld-pearl);color:var(--ld-ink)}
.ld-comm .ldcp li.lp>.bp-generic-meta .bp-screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.ld-comm .ldcp li.lp>.bp-generic-meta .fav.has-reaction,.ld-comm .ldcp li.lp>.bp-generic-meta .unfav,.ld-comm .ldcp li.lp>.bp-generic-meta .ld-act.on{color:var(--ld-electric)}
.ld-comm .ldcp li.lp>.bp-generic-meta .ld-act.on .i{fill:currentColor}
.ld-comm .ldcp li.lp>.bp-generic-meta .i{width:20px;height:20px}
.ld-comm .ldcp li.lp>.bp-generic-meta .bb-icon-thumbs-up,.ld-comm .ldcp li.lp>.bp-generic-meta [class^=bb-icon]{font-size:20px}
.ld-comm .ldcp li.lp>.bp-generic-meta .acomment-reply::before{content:"";width:20px;height:20px;flex:none;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.5 7.2L4 20l1-4.5A8 8 0 1 1 21 12Z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.5 7.2L4 20l1-4.5A8 8 0 1 1 21 12Z'/%3E%3C/svg%3E") center/contain no-repeat}
/* signed out: the same three buttons, each leads to sign in (JS) */
.ld-comm .ldcp li.lp>.ldcp-bar-out{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px;padding:4px 0;border-top:1px solid var(--ld-line)}
.ld-comm .ldcp li.lp>.ldcp-bar-out a{display:flex;align-items:center;justify-content:center;gap:7px;height:44px;border-radius:12px;font:600 14px var(--ld-text);color:var(--ld-muted)}
.ld-comm .ldcp li.lp>.ldcp-bar-out a:hover{background:var(--ld-pearl);color:var(--ld-ink)}

/* ---- menus (BuddyBoss's own dropdown, our look) ---- */
.ld-comm .ldcp .bb-activity-more-options.bb_more_dropdown{width:260px;padding:6px;border:0;border-radius:16px;background:#fff;box-shadow:0 0 0 1px var(--ld-line),0 22px 44px -18px rgba(20,26,102,.4)}
.ld-comm .ldcp .bb_more_dropdown .generic-button{margin:0;padding:0}
.ld-comm .ldcp .bb_more_dropdown .generic-button>a,.ld-comm .ldcp .bb_more_dropdown .generic-button>button,.ld-comm .ldcp .bb_more_dropdown .ld-menu-item{display:flex;align-items:center;gap:11px;width:100%;min-height:44px;padding:0 12px;border:0;border-radius:10px;background:none;box-shadow:none;font:500 14.5px var(--ld-text);color:var(--ld-ink);text-align:left;cursor:pointer;text-decoration:none}
.ld-comm .ldcp .bb_more_dropdown .generic-button>a:hover,.ld-comm .ldcp .bb_more_dropdown .ld-menu-item:hover{background:var(--ld-pearl)}
.ld-comm .ldcp .bb_more_dropdown .ld-menu-item .i{width:20px;height:20px;color:var(--ld-muted)}
.ld-comm .ldcp .bb_more_dropdown .ld-menu-item.on .i{fill:currentColor}
.ld-comm .ldcp .bb_more_dropdown .delete-activity,.ld-comm .ldcp .bb_more_dropdown .acomment-delete{color:#B42318}
.ld-comm .ldcp .ldcp-share-menu{position:fixed;z-index:95;width:260px;padding:6px;border-radius:16px;background:#fff;box-shadow:0 0 0 1px var(--ld-line),0 22px 44px -18px rgba(20,26,102,.4)}
.ld-comm .ldcp .ldcp-share-menu a,.ld-comm .ldcp .ldcp-share-menu button{display:flex;align-items:center;gap:11px;width:100%;min-height:44px;padding:0 12px;border:0;border-radius:10px;background:none;font:500 14.5px var(--ld-text);color:var(--ld-ink);text-align:left;cursor:pointer}
.ld-comm .ldcp .ldcp-share-menu a:hover,.ld-comm .ldcp .ldcp-share-menu button:hover{background:var(--ld-pearl)}
.ld-comm .ldcp .ldcp-share-menu .i{width:20px;height:20px;color:var(--ld-muted)}

/* ---- comments ---- */
.ld-comm .ldcp li.lp .activity-comments{margin:0;padding:6px 0 14px;border-top:1px solid var(--ld-line);background:none}
.ld-comm .ldcp li.lp .activity-comments:not(:has(li.comment-item)):not(.ldcp-has-form){padding:0;border-top:0}
.ld-comm .ldcp li.lp .activity-comments ul{margin:0;padding:0;list-style:none}
.ld-comm .ldcp li.lp .activity-comments ul ul{margin:0 0 0 42px}
.ld-comm .ldcp li.lp .activity-comments .view-more-comments,.ld-comm .ldcp li.lp .activity-comments .acomments-view-more{display:inline-block;padding:8px 0 0;font:600 14px var(--ld-text);color:var(--ld-muted);cursor:pointer;background:none;border:0}
.ld-comm .ldcp li.lp .activity-comments .view-more-comments:hover,.ld-comm .ldcp li.lp .activity-comments .acomments-view-more:hover{color:var(--ld-ink)}
.ld-comm .ldcp li.lp .acomments-view-more--hide{display:none}
.ld-comm .ldcp li.lp li.comment-item{margin:12px 0 0;padding:0;border:0;list-style:none}
.ld-comm .ldcp li.lp .acomment-display{position:relative}
.ld-comm .ldcp li.lp .acomment_inner{display:flex;gap:10px;align-items:flex-start}
.ld-comm .ldcp li.lp .acomment-avatar{flex:none;margin:0;width:32px}
.ld-comm .ldcp li.lp .acomment-avatar img{display:block;width:32px;height:32px;border-radius:50%;object-fit:cover}
.ld-comm .ldcp li.lp ul ul .acomment-avatar,.ld-comm .ldcp li.lp ul ul .acomment-avatar img{width:26px;height:26px}
.ld-comm .ldcp li.lp .acomment-content_wrap{flex:1;min-width:0}
.ld-comm .ldcp li.lp .acomment-content_block{display:inline-block;max-width:100%;padding:8px 14px 10px;border-radius:18px;background:var(--ld-pearl);box-sizing:border-box}
.ld-comm .ldcp li.lp .acomment-meta{margin:0;font:650 13.5px var(--ld-text)}
.ld-comm .ldcp li.lp .acomment-meta a,.ld-comm .ldcp li.lp .acomment-meta .author-name{color:var(--ld-ink);font-weight:650}
.ld-comm .ldcp li.lp .acomment-content{margin:2px 0 0;font-size:14.5px;line-height:1.5;color:var(--ld-ink)}
.ld-comm .ldcp li.lp .acomment-content p{margin:0;font-size:inherit;color:inherit}
.ld-comm .ldcp li.lp .acomment-foot-actions{display:flex;align-items:center;flex-wrap:wrap;gap:4px 14px;margin:5px 0 0 12px;font:600 12.5px var(--ld-text);color:var(--ld-faint)}
.ld-comm .ldcp li.lp .acomment-foot-actions .bp-generic-meta{display:flex;gap:14px;margin:0;padding:0;border:0}
.ld-comm .ldcp li.lp .acomment-foot-actions .generic-button{margin:0;padding:0}
.ld-comm .ldcp li.lp .acomment-foot-actions a{color:var(--ld-muted);font:600 12.5px var(--ld-text);cursor:pointer}
.ld-comm .ldcp li.lp .acomment-foot-actions a:hover{color:var(--ld-ink)}
.ld-comm .ldcp li.lp .acomment-foot-actions .activity-time-since,.ld-comm .ldcp li.lp .acomment-foot-actions .time-since{color:var(--ld-faint);font-weight:500}
.ld-comm .ldcp li.lp .acomment_inner .bb-activity-more-options-wrap{position:absolute;right:0;top:0;margin:0}
.ld-comm .ldcp li.lp .acomment_inner .bb-activity-more-options-action{width:32px;height:32px}
/* BuddyBoss shows a comment's options button only on hover, which a phone never has: keep it visible and tappable */
.ld-comm .ldcp li.lp .activity-comments .bb-activity-more-options-wrap .bb-activity-more-options-action{visibility:visible;pointer-events:auto}
.ld-comm .ldcp li.lp .comment-reactions:empty,.ld-comm .ldcp li.lp .acomment-edit-form:empty{display:none}
/* best answer: green bubble and a badge above the author */
.ld-comm .ldcp li.lp li.ld-best-answer>.acomment-display .acomment-content_block{background:#EEF7F1;box-shadow:inset 0 0 0 1px #CDE8D7}
.ld-comm .ldcp li.lp li.ld-best-answer>.acomment-display .acomment-meta::before{content:"Best answer";display:inline-flex;align-items:center;height:22px;margin:0 8px 0 0;padding:0 9px;border-radius:999px;background:#1F7D57;color:#fff;font:650 11.5px var(--ld-text);vertical-align:1px}
/* the reply box */
.ld-comm .ldcp li.lp .ac-form{margin:14px 0 0;padding:0}
.ld-comm .ldcp li.lp .ac-form .bp-ac-form-container{display:flex;align-items:flex-start;gap:10px}
.ld-comm .ldcp li.lp .ac-form .ac-reply-avatar img{display:block;width:32px;height:32px;border-radius:50%;object-fit:cover}
.ld-comm .ldcp li.lp .ac-form .ac-reply-content{flex:1;min-width:0}
.ld-comm .ldcp li.lp .ac-form .ac-textarea{min-height:44px;border-radius:22px;background:var(--ld-pearl);box-shadow:inset 0 0 0 1px var(--ld-line);padding:10px 16px}
.ld-comm .ldcp li.lp .ac-form .ac-textarea:focus-within{background:#fff;box-shadow:inset 0 0 0 1.5px var(--ld-electric)}
.ld-comm .ldcp li.lp .ac-form .ac-input{min-height:22px;font:400 15px/1.45 var(--ld-text);color:var(--ld-ink);outline:0}
.ld-comm .ldcp li.lp .ac-form .ac-reply-toolbar{margin-top:6px}
.ld-comm .ldcp li.lp .ac-form .ac-form-buttons,.ld-comm .ldcp li.lp .ac-form .ac-reply-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:8px}
.ld-comm .ldcp li.lp .ac-form .ac-reply-cancel{display:none}
/* editing a comment needs a visible Cancel (BuddyBoss hides it with visibility:hidden;width:0) */
.ld-comm .ldcp li.lp .ac-form.acomment-edit .ac-reply-content{position:relative;border:0!important;box-shadow:none!important;background:none!important;padding:0!important}
.ld-comm .ldcp li.lp .ac-form.acomment-edit .ac-textarea{border-radius:20px}
.ld-comm .ldcp li.lp .ac-form.acomment-edit .ac-reply-content .ac-reply-cancel{position:absolute;right:48px;bottom:-12px;display:inline-flex!important;align-items:center;visibility:visible!important;opacity:1!important;width:auto!important;height:32px!important;padding:0 14px!important;margin:0!important;border:0!important;border-radius:999px;background:#fff!important;box-shadow:inset 0 0 0 1px var(--ld-line);color:var(--ld-ink)!important;font:600 13px var(--ld-text)!important;cursor:pointer;float:none;z-index:2}
.ld-comm .ldcp li.lp .ac-form button[type=submit],.ld-comm .ldcp li.lp .ac-form .ac-submit{height:40px;padding:0 18px;border:0;border-radius:999px;background:var(--ld-electric);color:#fff;font:700 14px var(--ld-text);cursor:pointer}
.ld-comm .ldcp li.lp .ac-form .ac-submit[disabled],.ld-comm .ldcp li.lp .ac-form button[type=submit][disabled]{background:var(--ld-line);color:var(--ld-faint)}

/* ---- filter chips: JS hides the other kinds ---- */
.ld-comm .ldcp.is-filtering li.lp:not(.is-match){display:none}
.ld-comm .ldcp .ldcp-empty{margin:14px 0 0;padding:26px 20px;border-radius:var(--ld-r-card);background:#fff;box-shadow:var(--ld-shadow-row);text-align:center;font:500 15px var(--ld-text);color:var(--ld-muted)}
.ld-comm .ldcp .ldcp-empty b{display:block;margin-bottom:4px;font:800 18px var(--ld-display);color:var(--ld-ink)}
/* skeleton while BuddyBoss loads the feed (it injects its own loader first) */
.ld-comm .ldcp #activity-stream .activity-loading-skeleton,.ld-comm .ldcp #activity-stream>.bp-loading{display:none}
.ld-comm .ldcp #activity-stream:empty::before,.ld-comm .ldcp #activity-stream.loading::before{content:"";display:block;height:230px;border-radius:var(--ld-r-card);background:linear-gradient(90deg,#fff 25%,#F6F7FB 50%,#fff 75%);background-size:200% 100%;animation:sh 1.3s linear infinite;box-shadow:var(--ld-shadow-row)}
@keyframes sh{to{background-position:-200% 0}}

/* ---- composer (plugin) ---- */
.ld-comm .ldcp-ov{display:none}
.ld-comm .ldcp-ov.is-open{display:flex}
.ld-comm .ldcp-ov[hidden]{display:none}
.ld-comm .ldcp-ov .cx-in{position:relative}
.ld-comm .ldcp-ov .av-wrap img,.ld-comm .ldcp-ov .av-img{display:block;width:42px;height:42px;border-radius:50%;object-fit:cover}
.ld-comm .ldcp-ov .gp{display:inline-flex;margin-top:3px}
.ld-comm .ldcp-ov .gp .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.ld-comm .ldcp-ov .gp select{height:30px;padding:0 28px 0 12px;border:0;border-radius:999px;background:var(--ld-page) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230B0D1A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center/12px no-repeat;-webkit-appearance:none;appearance:none;font:600 13px var(--ld-text);color:var(--ld-ink);cursor:pointer;max-width:260px}
.ld-comm .ldcp-ov .cx-ty button{flex:none;display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 14px 0 11px;border:0;border-radius:999px;background:none;box-shadow:inset 0 0 0 1px var(--ld-line);font:600 13.5px var(--ld-text);color:var(--ld-muted);cursor:pointer;transition:background .18s var(--ld-ease),color .18s var(--ld-ease)}
.ld-comm .ldcp-ov .cx-ty button:hover{box-shadow:inset 0 0 0 1.5px var(--ld-electric)}
.ld-comm .ldcp-ov .cx-ty button[aria-checked=true]{background:var(--ld-midnight);color:#fff;box-shadow:none}
.ld-comm .ldcp-ov .cx[data-kind=post] .cx-f-native,.ld-comm .ldcp-ov .cx[data-kind=poll] .cx-f-native,.ld-comm .ldcp-ov .cx[data-kind=question] .cx-f-question,.ld-comm .ldcp-ov .cx[data-kind=room] .cx-f-room,.ld-comm .ldcp-ov .cx[data-kind=sale] .cx-f-sale,.ld-comm .ldcp-ov .cx[data-kind=event] .cx-f-event,.ld-comm .ldcp-ov .cx[data-kind=job] .cx-f-job{display:block}
.ld-comm .ldcp-ov .cx[data-kind=job] .cx-ft .cx-post,.ld-comm .ldcp-ov .cx[data-kind=post] .cx-ft .cx-post,.ld-comm .ldcp-ov .cx[data-kind=poll] .cx-ft .cx-post{display:none}
.ld-comm .ldcp-ov .cx-ta{padding:0}
.ld-comm .ldcp-ov .fl select,.ld-comm .ldcp-ov .fl input{box-sizing:border-box}
.ld-comm .ldcp-ov .cx-err{margin:12px 0 0;padding:10px 12px;border-radius:12px;background:#FDECEA;color:#B42318;font:500 13.5px/1.45 var(--ld-text)}
.ld-comm .ldcp-ov .cx-err[hidden]{display:none}
.ld-comm .ldcp-ov .cx-note{flex:1;min-width:0;font:500 12.5px/1.35 var(--ld-text);color:var(--ld-faint)}
.ld-comm .ldcp-ov .cx-ft{justify-content:space-between}
.ld-comm .ldcp-ov .cx-post.is-busy{background:var(--ld-deep);pointer-events:none}
.ld-comm .ldcp-ov .cx-job .ld-btn{text-decoration:none}
.ld-comm .ldcp-ov .seg2 input{position:absolute;opacity:0;pointer-events:none}
.ld-comm .ldcp-ov .x{border:0;cursor:pointer}
body.ldcp-lock{overflow:hidden}
/* toast */
.ld-comm .ldcp-toast{position:fixed;left:50%;bottom:28px;z-index:120;transform:translate(-50%,16px);max-width:calc(100vw - 32px);padding:12px 18px;border-radius:999px;background:var(--ld-ink);color:#fff;font:600 14px var(--ld-text);opacity:0;pointer-events:none;transition:opacity .2s var(--ld-ease),transform .2s var(--ld-ease)}
.ld-comm .ldcp-toast.is-on{opacity:1;transform:translate(-50%,0)}
.ld-comm .ldcp-toast[hidden]{display:block;visibility:hidden}
.ld-comm .ldcp-toast.is-on[hidden]{visibility:visible}
/* the prompt row is a real button */
.ld-comm .ldcp .cp{width:100%;border:0;text-align:left;font:inherit}
.ld-comm .ldcp .cp .av-img{display:block;width:44px;height:44px;border-radius:50%;object-fit:cover}
.ld-comm .ldcp .cp .av{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--ld-page);color:var(--ld-faint);font:700 15px var(--ld-text);font-style:normal}
.ld-comm .ldcp .fbar .ld-chip{font-family:var(--ld-text)}
.ld-comm .ld-fab{border:0;font-family:var(--ld-text);cursor:pointer}

/* ---- phone ---- */
@media (max-width:900px){
 .ld-comm .ldcp li.lp{padding:16px 20px 4px}
 .ld-comm .ldcp li.lp .bp-activity-head{padding-right:104px}
 .ld-comm .ldcp li.lp>.ld-kind{top:16px;right:52px}
 .ld-comm .ldcp li.lp>.bb-activity-more-options-wrap{top:10px;right:6px}
 .ld-comm .ldcp li.lp .activity-inner .bb-activity-media-wrap,.ld-comm .ldcp li.lp .activity-inner .activity-media-description{margin-left:-20px;margin-right:-20px}
 .ld-comm .ldcp li.lp>.bp-generic-meta .generic-button>a,.ld-comm .ldcp li.lp>.bp-generic-meta .generic-button>button{gap:5px;font-size:13.5px}
 .ld-comm .ldcp li.lp>.bp-generic-meta .i{width:19px;height:19px}
 .ld-comm .ldcp li.lp .acomment-foot-actions a{display:inline-flex;align-items:center;min-height:32px}
 .ld-comm .ldcp .bb-activity-more-options.bb_more_dropdown{width:auto}
 .ld-comm .ldcp-ov{padding:0;align-items:flex-end}
 .ld-comm .ldcp-ov .cx{max-width:none;height:94vh;max-height:94vh;border-radius:24px 24px 0 0}
 .ld-comm .ldcp-ov .cx-ty button{height:44px}
 .ld-comm .ldcp-ov .gp select{height:36px}
 .ld-comm .ldcp-toast{bottom:84px}
}
@media (prefers-reduced-motion:reduce){.ld-comm .ldcp #activity-stream:empty::before,.ld-comm .ldcp-toast{animation:none;transition:none}}

/* ---- overrides where the theme or BuddyBoss wins on specificity ---- */
.ld-comm .ldcp li.lp>.bp-generic-meta{display:flex;flex-wrap:nowrap;gap:4px;margin:0;padding:4px 0}
.ld-comm .ldcp li.lp>.bp-generic-meta .generic-button{flex:1 1 0;min-width:0}
.ld-comm .ldcp li.lp>.bp-generic-meta .generic-button.ldcp-out-like>a{display:flex!important;align-items:center;justify-content:center;flex:1;height:44px;padding:0 6px!important;border-radius:12px;background:none!important;color:var(--ld-muted)!important;font:600 14px var(--ld-text)!important;box-shadow:none!important}
.ld-comm .ldcp li.lp>.bp-generic-meta .generic-button.ldcp-out-like>a:hover{background:var(--ld-pearl)!important;color:var(--ld-ink)!important}
.ld-comm .ldcp li.lp .acomment-display{display:block}
.ld-comm .ldcp li.lp .acomment_inner{width:100%;box-sizing:border-box}
.ld-comm .ldcp li.lp>.bp-generic-meta .generic-button.ldcp-out-like>a{border:0!important}
.ld-comm .ldcp li.lp .ac-form:not(:has(.ac-input)),.ld-comm .ldcp li.lp .ac-form:not(:has(.ac-input)) *{display:none}
.ld-comm .ldcp li.lp .activity-comments{min-height:0;height:auto}

/* ---- poll: BuddyBoss's own poll, dressed as the sheet's poll (rows with a fill bar, percentage on the right) ---- */
.ld-comm .ldcp .bb-poll-view{margin:12px 0 0}
.ld-comm .ldcp .bb-activity-poll_header h3{margin:0 0 8px;font:700 16px/1.3 var(--ld-display);color:var(--ld-ink)}
.ld-comm .ldcp .bb-activity-poll-options{display:flex;flex-direction:column;gap:8px}
.ld-comm .ldcp .bb-activity-poll-option{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:46px;padding:0 14px;border-radius:12px;box-shadow:inset 0 0 0 1px var(--ld-line);background:#fff;overflow:hidden;font:600 14.5px var(--ld-text);color:var(--ld-ink)}
.ld-comm .ldcp .bb-poll-option-fill{position:absolute;inset:0 auto 0 0;background:var(--c-light,#E6F6F8);z-index:0;border-radius:12px 0 0 12px;transition:width .4s cubic-bezier(.2,.8,.2,1)}
.ld-comm .ldcp .bb-activity-poll-option>*:not(.bb-poll-option-fill){position:relative;z-index:1}
.ld-comm .ldcp .bb-activity-poll-option label{margin:0;font:inherit;color:inherit;cursor:pointer}
.ld-comm .ldcp .bb-poll-right{display:flex;align-items:center;gap:4px}
.ld-comm .ldcp .bb-poll-option-state{font:700 13px var(--ld-text);color:var(--ld-muted)}
.ld-comm .ldcp .bb-poll-right a{display:none}
.ld-comm .ldcp .bb-activity-poll-option.is-checked,.ld-comm .ldcp .bb-activity-poll-option:has(input:checked){box-shadow:inset 0 0 0 1.5px var(--c-mid,#0E5566)}
.ld-comm .ldcp .bb-poll-error:empty,.ld-comm .ldcp .bb-poll-error{display:none}
.ld-comm .ldcp .bb-activity-poll-new-option-hide,.ld-comm .ldcp .bb-activity-poll-option-hide{display:none}
.ld-comm .ldcp .bb-activity-poll_footer,.ld-comm .ldcp .bb-poll-meta{margin:6px 0 0;font:500 13px var(--ld-text);color:var(--ld-faint)}

/* ---- photos: 1, 2, 3, then 2x2 with +N on the last tile, edge to edge ---- */
.ld-comm .ldcp .bb-activity-media-wrap{display:grid;gap:3px;width:calc(100% + 30px)!important;max-width:none!important;margin:12px 0 0 -15px!important;background:#fff}
.ld-comm .ldcp .bb-activity-media-wrap .bb-activity-media-elem{position:relative;display:block;width:auto!important;height:auto!important;max-width:none!important;margin:0!important;padding:0!important;overflow:hidden;background:var(--ld-pearl);float:none!important}
.ld-comm .ldcp .bb-activity-media-wrap .bb-activity-media-elem a.entry-img{display:block;width:100%;height:100%;padding:0;margin:0}
.ld-comm .ldcp .bb-activity-media-wrap .bb-activity-media-elem img{display:block;width:100%!important;height:100%!important;object-fit:cover;border-radius:0}
.ld-comm .ldcp .bb-activity-media-wrap .bb-activity-media-elem a.entry-img{position:absolute;inset:0}
.ld-comm .ldcp .bb-activity-media-wrap .bb-activity-media-elem img{position:absolute;inset:0}
.ld-comm .ldcp .bb-media-length-1 .bb-activity-media-elem{aspect-ratio:16/10}
.ld-comm .ldcp .bb-media-length-2{grid-template-columns:1fr 1fr}
.ld-comm .ldcp .bb-media-length-2 .bb-activity-media-elem{aspect-ratio:1}
.ld-comm .ldcp .bb-media-length-3{grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr;aspect-ratio:4/3}
.ld-comm .ldcp .bb-media-length-3 .bb-activity-media-elem{height:100%!important;min-height:0}
.ld-comm .ldcp .bb-media-length-3 .bb-activity-media-elem:nth-of-type(2){grid-row:1/3}
.ld-comm .ldcp .bb-media-length-4,.ld-comm .ldcp .bb-media-length-5{grid-template-columns:1fr 1fr}
.ld-comm .ldcp .bb-media-length-4 .bb-activity-media-elem,.ld-comm .ldcp .bb-media-length-5 .bb-activity-media-elem{aspect-ratio:16/11}
.ld-comm .ldcp .bb-media-length-5 .bb-activity-media-elem:nth-of-type(n+6){display:none}
/* 19 Nov (biz-welcome): four or more portrait photos. BuddyBoss marks the set bb-vertical-layout and pins tiles 2 to 4 absolutely beside a tall
   first one; inside this grid that shrank them to nothing, so only the first photo showed. Keep every tile in the grid, and give a portrait set
   portrait tiles (4:5, a phone photo's shape) so a photo or poster is not cut down to a strip. */
.ld-comm .ldcp .bb-activity-media-wrap .bb-activity-media-elem{position:relative!important;top:auto!important;right:auto!important;left:auto!important;flex:none!important}
.ld-comm .ldcp .bb-media-length-4 .bb-activity-media-elem.bb-vertical-layout,.ld-comm .ldcp .bb-media-length-4 .bb-vertical-layout~.bb-activity-media-elem,
.ld-comm .ldcp .bb-media-length-5 .bb-activity-media-elem.bb-vertical-layout,.ld-comm .ldcp .bb-media-length-5 .bb-vertical-layout~.bb-activity-media-elem{aspect-ratio:4/5}
/* 19 Nov (member-welcome): six or more photos. BuddyBoss marks the set bb-media-length-more (bb-media-length-N), which had no rule here, so every
   tile collapsed to 0px and the post showed no photos at all. Show the first four in a 2 by 2 grid like a four-photo set, "+N" on the fourth
   (community-posts.js), the rest open in the photo viewer. */
.ld-comm .ldcp .bb-media-length-more{grid-template-columns:1fr 1fr}
.ld-comm .ldcp .bb-media-length-more .bb-activity-media-elem{aspect-ratio:16/11}
.ld-comm .ldcp .bb-media-length-more .bb-activity-media-elem.bb-vertical-layout,.ld-comm .ldcp .bb-media-length-more .bb-vertical-layout~.bb-activity-media-elem{aspect-ratio:4/5}
.ld-comm .ldcp .bb-media-length-more .bb-activity-media-elem:nth-of-type(n+6),.ld-comm .ldcp .bb-media-length-more .bb-photos-length{display:none!important}
.ld-comm .ldcp .ldcp-more{position:absolute;inset:0;display:grid;place-items:center;background:rgba(11,13,26,.52);color:#fff;font:800 34px var(--ld-display);pointer-events:none}
.ld-comm .ldcp .bb-activity-media-wrap .media-action-wrap{display:none}


/* ---- the ... menu: every row alike (theme button styling off) ---- */
.ld-comm .ldcp .bb-activity-more-options .ld-menu-item{display:flex!important;align-items:center;gap:10px;width:100%;height:auto!important;min-height:44px;padding:0 14px!important;margin:0;border:0!important;border-radius:10px;background:none!important;box-shadow:none!important;color:var(--ld-ink)!important;font:400 13px var(--ld-text)!important;text-align:left;text-transform:none;letter-spacing:0;cursor:pointer}
.ld-comm .ldcp .bb-activity-more-options .ld-menu-item:hover{background:var(--ld-pearl)!important}
.ld-comm .ldcp .bb-activity-more-options .ld-menu-item .i{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;flex:none}
.ld-comm .ldcp .bb-activity-more-options .generic-button>a{min-height:44px;display:flex;align-items:center;gap:10px}
/* quick fixes (28 Oct): BuddyBoss's own rows (Report, Delete, Pin, Turn off notifications) line up with ours: same padding, a 16px icon slot, no label indent */
.ld-comm .ldcp .bb-activity-more-options .generic-button>a{display:flex!important;align-items:center;gap:10px;height:auto!important;min-height:44px!important;line-height:1.3!important;padding:0 14px!important;margin:0!important;border:0!important;border-radius:10px;background:none!important;box-shadow:none!important;color:var(--ld-ink)!important;font:400 13px var(--ld-text)!important;text-align:left}
.ld-comm .ldcp .bb-activity-more-options .generic-button>a:hover{background:var(--ld-pearl)!important}
.ld-comm .ldcp .bb-activity-more-options .generic-button>a::before{position:static!important;flex:none;width:16px;margin:0!important;font-size:16px!important;line-height:1;text-align:center;color:var(--ld-ink)!important}
.ld-comm .ldcp .bb-activity-more-options .generic-button>a>span:not(.bp-screen-reader-text){padding:0!important;margin:0!important;font:inherit!important;color:inherit!important}

/* ---- editing: BuddyBoss's own edit window (post and comment) opens in its modal; the hide rules above are for the inline form only ---- */
body.activity-modal-open .ld-comm .ldcp #whats-new-form,body.activity-modal-open .ld-comm .ldcp .activity-update-form.modal-popup{display:block!important}
body.activity-modal-open .activity-update-form a:not([class*="bb-icon"])::before,body.activity-modal-open .activity-update-form .bb-model-header a::before{content:none!important}
body.activity-modal-open .activity-update-form #aw-whats-new-submit,body.activity-modal-open .activity-update-form .bb-model-footer .button.submit{height:44px;padding:0 22px;border:0;border-radius:999px;background:var(--ld-midnight)!important;color:#fff!important;font:650 15px var(--ld-text)!important;box-shadow:none}
/* The sticky + Post sits bottom-right, above the safe area, and stays out of the way at rest: it fades in once you scroll past the filter row and pinned post */
.ld-comm .pg .ld-fab{bottom:calc(20px + env(safe-area-inset-bottom,0px))!important;opacity:0;transform:translateY(12px);pointer-events:none;transition:opacity .2s,transform .2s}
.ld-comm .pg .ld-fab.ldcp-fab-on{opacity:1;transform:none;pointer-events:auto}
@media (prefers-reduced-motion:reduce){.ld-comm .pg .ld-fab{transition:none}}
/* comment footer: Like, Reply and time on one quiet row; no theme glyphs */
.ld-comm .ldcp .acomment-foot-actions{display:flex!important;align-items:center;gap:14px;flex-wrap:wrap;margin:4px 0 0 4px;padding:0}
.ld-comm .ldcp .acomment-foot-actions .bp-generic-meta{display:flex!important;align-items:center;gap:14px;margin:0;padding:0}
.ld-comm .ldcp .acomment-foot-actions .generic-button{margin:0;padding:0;display:block}
.ld-comm .ldcp .acomment-foot-actions .generic-button a,.ld-comm .ldcp .acomment-foot-actions .generic-button a.button{display:inline-flex!important;align-items:center;min-height:32px;padding:0 2px!important;border:0!important;background:none!important;box-shadow:none!important;font:650 12.5px var(--ld-text)!important;color:var(--ld-ink-soft,#4a4f63)!important}
.ld-comm .ldcp .acomment-foot-actions .generic-button a::before,.ld-comm .ldcp .acomment-foot-actions .generic-button a::after{content:none!important;display:none!important}
.ld-comm .ldcp .acomment-foot-actions .bp-screen-reader-text{display:none!important}
.ld-comm .ldcp .acomment-foot-actions .activity-time-since{margin:0;font:400 12.5px var(--ld-text);color:var(--ld-muted,#7a7f92)}
.ld-comm .ldcp .acomment-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.ld-comm .ldcp .acomment-foot-actions .bp-generic-meta{flex-wrap:nowrap!important;flex:0 0 auto}
.ld-comm .ldcp .acomment-foot-actions .bp-generic-meta .generic-button{margin:0!important}
.ld-comm .ldcp .acomment-foot-actions .activity-time-since{margin:0 0 0 auto!important;flex:0 0 auto}
/* action bar icons are inline svgs; drop the old mask and font glyphs */
.ld-comm .ldcp li.lp>.bp-generic-meta .acomment-reply::before{content:none!important;display:none!important}
.ld-comm .ldcp li.lp>.bp-generic-meta .generic-button .i{flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ld-comm .ldcp li.lp>.bp-generic-meta .fav.has-reaction .i,.ld-comm .ldcp li.lp>.bp-generic-meta .unfav .i{fill:currentColor}
/* sit above BuddyBoss's fixed phone bar (Search, Create Group, My Account), never on it */
.ld-comm .pg .ld-fab{bottom:calc(var(--ldcp-bar,0px) + 16px + env(safe-area-inset-bottom,0px))!important}
.ldcp-toast{bottom:calc(var(--ldcp-bar,0px) + 16px)!important}
/* coloured initials for members without a photo */
.ldcp-av{display:inline-grid!important;place-items:center;flex:none;border-radius:50%;color:#fff;font-family:var(--ld-text);font-weight:700;font-style:normal;letter-spacing:.01em;line-height:1;overflow:hidden}
.ld-comm .ldcp li.lp .activity-avatar .ldcp-av{width:42px!important;height:42px!important;font-size:15px!important}
.ld-comm .ldcp li.lp .acomment-avatar .ldcp-av{width:32px!important;height:32px!important;font-size:12px!important}
.ld-comm .ldcp li.lp ul ul .acomment-avatar .ldcp-av{width:26px!important;height:26px!important;font-size:10.5px!important}
.ld-comm .ldcp a.cp{display:flex;align-items:center;gap:10px;background:#fff;color:var(--ld-ink);box-shadow:var(--ld-shadow-row);border-radius:var(--ld-r-card);padding:12px 14px;text-decoration:none}
.ld-comm .ldcp a.cp:hover{background:#fff;color:var(--ld-ink)}
.ld-comm .ldcp a.cp .in{flex:1;background:var(--ld-page);color:var(--ld-faint)}
.ld-comm .ldcp .cp .ldcp-mark{width:42px;height:42px;flex:none;border-radius:50%;object-fit:contain;background:#fff}
.ld-comm .ldcp .cp .ldcp-av{width:44px!important;height:44px!important;font-size:16px!important}
.ld-comm .ldcp .ac-reply-avatar .ldcp-av{width:32px!important;height:32px!important;font-size:12px!important}
.ld-comm .ldcp .cx-who .ldcp-av,.ld-comm .ldcp-ov .cx-who .ldcp-av{width:44px!important;height:44px!important;font-size:16px!important}
.ld-comm .ld-kind--roomwanted{background:#fff;color:var(--c-base,var(--ld-deep));box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--c-mid,var(--ld-electric)) 45%,#fff)}

.ld-comm .ldcp .ldcp-title{display:block;font:700 17px/1.3 var(--ld-text);color:var(--ld-ink);letter-spacing:-.01em;margin:0 0 4px}
/* Phone: four even columns, icon over label, centred */
@media (max-width: 480px) {
  .ld-comm .ldcp li.lp>.bp-generic-meta{grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
  .ld-comm .ldcp li.lp>.bp-generic-meta .generic-button>a,.ld-comm .ldcp li.lp>.bp-generic-meta .generic-button>button{flex-direction:column;gap:2px;height:52px;padding:0;font-size:12px!important;justify-content:center;align-items:center;text-align:center}
  .ld-comm .ldcp .bp-generic-meta svg{width:20px!important;height:20px!important;margin:0!important}
}
/* Comment photos: a 4:3 frame at most 420px tall, photo covers it */
.ld-comm .ldcp .bb-media-length-1 .bb-activity-media-elem{aspect-ratio:auto!important;width:100%!important;height:min(420px,75vw)!important;overflow:hidden}
.ld-comm .ldcp .bb-media-length-1 .bb-activity-media-elem img{width:100%!important;height:100%!important;object-fit:cover}
/* A post's one photo (LD-FEED-WHOLE, 20 Nov): the whole picture at its own shape, full card width, anything from wide to 4:5 tall; taller
   than 4:5 is cropped to 4:5 from the centre (125cqw = 5/4 of the card's width). feed-media-size.php prints each lone picture's stored
   shape so the box is the right height before it loads; without one (old uploads) the picture sizes itself when it arrives. */
.ld-comm .ldcp li.ldcp-post>.activity-content>.activity-inner>.bb-media-length-1{container-type:inline-size}
.ld-comm .ldcp li.ldcp-post>.activity-content>.activity-inner>.bb-media-length-1 .bb-activity-media-elem{aspect-ratio:auto!important;width:100%!important;height:auto!important;max-height:125cqw;overflow:hidden}
.ld-comm .ldcp li.ldcp-post>.activity-content>.activity-inner>.bb-media-length-1 .bb-activity-media-elem a.entry-img{position:static!important;display:block;height:auto!important}
.ld-comm .ldcp li.ldcp-post>.activity-content>.activity-inner>.bb-media-length-1 .bb-activity-media-elem img{position:static!important;width:100%!important;height:auto!important;max-height:125cqw;object-fit:cover}

/* ---- lane 1 (28 Oct): event cover in the post card (ldcp_event_cover). Photo, group cover or the designed cover, with the date tile and
   price on it, as on /events/. Not scoped to .ldcp so the home feed and the composer's own card get it too. ---- */
.lp-evc{position:relative;display:block;margin:12px 0 0;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:#eef1f8;text-decoration:none;color:#fff;-webkit-tap-highlight-color:transparent}
.lp-evc:active{transform:scale(.99)}
.lp-evc__img{position:absolute!important;inset:0;width:100%!important;height:100%!important;max-height:none!important;object-fit:cover;margin:0!important;border-radius:0!important;max-width:none!important}
.lp-evc__band{position:absolute;inset:0;overflow:hidden;color:rgba(255,255,255,.92)}
.lp-evc__band--blue{background:radial-gradient(120% 90% at 0% 0%,#9fbcff 0%,#3d63ff 55%,#2741c9 100%)}
.lp-evc__band--night{background:radial-gradient(120% 90% at 0% 0%,#1e2fa8 0%,#141a66 45%,#0a0e24 100%)}
.lp-evc__band--gold{background:radial-gradient(120% 90% at 0% 0%,#f8e2a6 0%,#e9b949 60%,#d39a26 100%);color:#0a0e24}
.lp-evc__big{position:absolute;right:-8%;bottom:-22%;width:58%;opacity:.16;line-height:0}
.lp-evc__big svg{width:100%!important;height:auto!important;stroke-width:1.2}
.lp-evc__mark{position:absolute;left:50%;top:50%;transform:translate(-50%,-62%);line-height:0;filter:drop-shadow(0 10px 24px rgba(0,0,0,.3))}
.lp-evc__mark img,.lp-evc__mark svg{width:64px!important;height:64px!important}
.lp-evc__mark--ic{display:grid;place-items:center;width:56px;height:56px;border-radius:16px;background:rgba(255,255,255,.16);filter:none}
.lp-evc__mark--ic svg{width:30px!important;height:30px!important}
.lp-evc__cat{position:absolute;left:0;right:0;top:calc(50% + 24px);text-align:center;font:700 11.5px/1.2 var(--ld-text,Inter,sans-serif);letter-spacing:.08em;text-transform:uppercase;opacity:.92}
.lp-evc__tile{position:absolute;top:12px;left:12px;display:grid;justify-items:center;min-width:46px;padding:6px 7px;border-radius:10px;background:rgba(255,255,255,.96);box-shadow:0 8px 20px -10px rgba(10,14,36,.55);color:#0a0e24}
.lp-evc__tile small{font:700 10.5px/1.1 var(--ld-text,Inter,sans-serif);letter-spacing:.08em;text-transform:uppercase;color:var(--ld-electric,#3d63ff)}
.lp-evc__tile b{font:800 22px/1 var(--ld-heading,'Inter Tight',sans-serif);margin-top:1px}
.lp-evc__price{position:absolute;top:12px;right:12px;display:inline-flex;align-items:center;height:28px;padding:0 11px;border-radius:999px;background:rgba(10,14,36,.72);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#fff;font:700 13px/1 var(--ld-text,Inter,sans-serif)}
.lp-evc__price.is-free{background:rgba(255,255,255,.95);color:#127a4a}
/* quick fixes (28 Oct): a listing post's cover photo, when the post carries none of its own */
.lp-lph{display:block;margin:12px 0 4px;border-radius:14px;overflow:hidden;aspect-ratio:4/3;max-height:420px;background:var(--ld-pearl,#F3F5FA)}
.lp-lph img{display:block;width:100%;height:100%;object-fit:cover;outline:1px solid rgba(0,0,0,.06);outline-offset:-1px}
/* a shared job's photo at its own shape, as the original job post shows it (a wide logo stays a strip) */
.lp-lph--job{aspect-ratio:auto}
.lp-lph--job img{height:auto;max-height:420px;object-fit:contain}
/* quick fixes (28 Oct, Kyle: "this event post looks really bad"): a typed post (event, room, sale, car, job, business) is its own card, so
   BuddyBoss's link preview of the same page (a second, cropped cover) is not shown under it. An event post with its own photos shows one
   photo, filled edge to edge with breathing room, then its When and Where tiles. */
.ldcp li.lp:is(.ldcp-k-event,.ldcp-k-room,.ldcp-k-sale,.ldcp-k-car,.ldcp-k-job,.ldcp-k-business) .activity-link-preview-container{display:none!important}
.ldcp li.ldcp-k-event .bb-activity-media-wrap{margin:12px 0!important}
.ldcp li.ldcp-k-event .bb-activity-media-wrap .bb-activity-media-elem:nth-of-type(n+2){display:none!important}
.ldcp li.ldcp-k-event .bb-activity-media-wrap .bb-activity-media-elem:first-of-type{width:100%!important;max-width:none!important;flex:1 1 100%!important;aspect-ratio:16/10;border-radius:14px;overflow:hidden}
.ldcp li.ldcp-k-event .bb-activity-media-wrap .bb-activity-media-elem:first-of-type img{width:100%!important;height:100%!important;object-fit:cover!important;background:none!important}
.ldcp li.ldcp-k-event .bb-activity-media-wrap .ldcp-more{display:none}
.ldcp li.ldcp-k-event .ld-fs{margin-top:12px}
/* quick fixes (28 Oct, Kyle: "tight spacing on the margins and it still says view all comments. The like and send button old colours"):
   BuddyBoss's post pop-up (#activity-modal) in the LandDU look: room at the sides, the heading in Inter Tight ink, no "View all" link once
   every comment is open, and the comment box and send button in Electric blue instead of the theme's gold. */
#activity-modal .bb-modal-activity-header{padding:16px 20px!important}
#activity-modal .bb-modal-activity-header h2{font:700 18px/1.25 var(--ld-heading,'Inter Tight',sans-serif)!important;color:var(--ld-ink,#0B0D1A)!important;letter-spacing:-.01em}
#activity-modal .bb-modal-activity-body{padding-left:20px!important;padding-right:20px!important}
#activity-modal .bb-modal-activity-body .activity-item{padding-left:0!important;padding-right:0!important}
#activity-modal .bb-modal-activity-footer{padding:12px 20px calc(12px + env(safe-area-inset-bottom,0px))!important}
#activity-modal :is(.view-more-comments,.acomments-view-more--root){display:none!important}
#activity-modal .ac-textarea,#activity-modal .ac-reply-content .ac-textarea{border:0!important;border-radius:22px!important;background:var(--ld-pearl,#F3F5FA)!important;box-shadow:inset 0 0 0 1px var(--ld-line,#E3E7F1)!important}
#activity-modal .ac-textarea:focus-within{background:#fff!important;box-shadow:inset 0 0 0 2px var(--ld-electric,#3D6BFF)!important}
#activity-modal .ac-submit-wrap :is(input[type=submit],button),#activity-modal .ac-reply-content .ac-submit-wrap .button{background:var(--ld-electric,#3D6BFF)!important;border-color:var(--ld-electric,#3D6BFF)!important;color:#fff!important}
#activity-modal .ac-submit-wrap [class*="bb-icon"],#activity-modal .ac-submit-wrap :is(input,button)::before{color:#fff!important}
#activity-modal .bp-generic-meta .button.fav,#activity-modal .bp-generic-meta .button.unfav{color:var(--ld-ink-soft,#4a4f63)!important}
#activity-modal .bp-generic-meta .button.unfav,#activity-modal .bp-generic-meta .button.unfav .like-count{color:var(--ld-electric,#3D6BFF)!important}

/* round 2 (review: Save post and Copy link sat 3px left of Report, Delete, Pin, with paler icons): our two rows take the same 20px icon slot,
   10px gap and ink colour as BuddyBoss's font icons above them */
.ld-comm .ldcp .bb-activity-more-options .ld-menu-item{gap:10px}
.ld-comm .ldcp .bb-activity-more-options .ld-menu-item .i{width:18px;height:18px;margin:0 1px;color:inherit}
/* round 2 (review: at 1440 the listing photo stopped short of the facts row): max-height was handed back to the width through aspect-ratio
   (560px); a set width keeps the photo the full width of the post and only crops its height */
.lp-lph{width:100%}

/* round 2, comments pop-up (Kyle: "tight spacing on the margins ... The like and send button old colours"; the review saw an amber box with
   a peach send button): the reply box is the feed's own pearl pill, blue ring on focus, and a solid LandDU blue send button. The kind pill
   sits on the name row as it does in the feed (the pop-up's post has no top padding, so it fell onto the time) */
#activity-modal .ac-reply-content{border:0!important;border-radius:22px!important;background:var(--ld-pearl,#F3F5FA)!important;box-shadow:inset 0 0 0 1px var(--ld-line,#E3E7F1)!important;padding:6px 8px 6px 14px!important}
#activity-modal .ac-reply-content:focus-within{background:#fff!important;box-shadow:inset 0 0 0 1.5px var(--ld-electric,#3D6BFF)!important}
#activity-modal .ac-reply-content .ac-textarea,#activity-modal .ac-reply-content .ac-input{border:0!important;outline:0!important;box-shadow:none!important;background:none!important;padding-left:0!important}
#activity-modal .ac-submit-wrap{background:var(--ld-electric,#3D6BFF)!important;opacity:1!important;border-radius:50%!important}
#activity-modal .ac-submit-wrap :is(input,button,.button){background:transparent!important;border-color:transparent!important}
#activity-modal li.lp>.ld-kind{top:2px}
#activity-modal .bb-modal-activity-body{padding-top:16px!important}
#activity-modal .bb-modal-activity-header h2{text-transform:none!important}
#activity-modal .ac-submit-wrap,#activity-modal .ac-submit-wrap *,#activity-modal .ac-submit-wrap *::before,#activity-modal .ac-submit-wrap::before{color:#fff!important;fill:currentColor}

/* finish (31 Oct, audit): an event with no photo gets a short 120px band, not a 16:9 fake cover. Date tile on the left, then the community badge
   (or the category icon) and the category, price on the right. When and Where follow as the post's icon rows. */
.lp-evc.lp-evc--band{aspect-ratio:auto;height:120px}
.lp-evc--band .lp-evc__tile{top:50%;left:14px;transform:translateY(-50%)}
.lp-evc--band .lp-evc__mark{left:76px;top:50%;transform:translateY(-50%);filter:none}
.lp-evc--band .lp-evc__mark img,.lp-evc--band .lp-evc__mark svg{width:48px!important;height:48px!important}
.lp-evc--band .lp-evc__mark--ic{width:48px;height:48px;border-radius:14px}
.lp-evc--band .lp-evc__mark--ic svg{width:26px!important;height:26px!important}
.lp-evc--band .lp-evc__cat{left:138px;right:96px;top:50%;transform:translateY(-50%);text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lp-evc--band .lp-evc__price{top:50%;transform:translateY(-50%)}
.lp-evc--band .lp-evc__big{width:34%;bottom:-40%}

/* Nikita 1 Nov (item 2): the plugin's own composer (.ldcp-ov, opened when BuddyBoss's post box is not on the page yet) sat at z-index 80, under the
   tab bar (999) and the header (120), so its Post and Close were covered. It is a sheet, so it follows rule 1 in bottom-bar.css: above the chrome,
   sized to the visible screen (dvh, so Safari's toolbars never push the foot off), the foot padded for the safe area. */
.ld-comm .cx-ov,.ld-comm .ldcp-ov{z-index:var(--ld-z-sheet,100001)}
.ld-comm .ldcp-ov .cx-ft{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
@media (max-width:900px){.ld-comm .ldcp-ov .cx,.ld-comm .cx-ov .cx{height:94vh;height:94dvh;max-height:94vh;max-height:94dvh;margin:0!important}}
@media (min-width:901px){.ld-comm .ldcp-ov .cx{max-height:calc(100vh - 64px);max-height:calc(100dvh - 64px)}}

/* Nikita 1 Nov (item 2 leftover): the backup composer matches the main one (composer.css, 1b609a3). Post sits in the header, Topic is a select, the type
   row is underline tabs, short choices are one segmented control, and nothing sits under the tab bar. */
.ld-comm .ldcp-ov .cx-h .x{right:auto;left:10px}
.ld-comm .ldcp-ov .cx-h .cx-post{position:absolute;right:12px;top:calc(50% + 3px);transform:translateY(-50%);min-width:0;height:36px;padding:0 18px;font-size:14px}
.ld-comm .ldcp-ov .cx[data-kind=job] .cx-h .cx-post,.ld-comm .ldcp-ov .cx[data-kind=post] .cx-h .cx-post,.ld-comm .ldcp-ov .cx[data-kind=poll] .cx-h .cx-post{display:none}
.ld-comm .ldcp-ov .cx-ty{gap:2px;margin:12px -20px 14px;padding:0 20px;box-shadow:inset 0 -1px 0 var(--ld-line)}
.ld-comm .ldcp-ov .cx-ty button{height:44px;padding:0 10px;border-radius:0;background:none;box-shadow:inset 0 -2px 0 transparent}
.ld-comm .ldcp-ov .cx-ty button:hover{background:none;color:var(--ld-ink);box-shadow:inset 0 -2px 0 transparent}
.ld-comm .ldcp-ov .cx-ty button[aria-checked=true]{background:none;color:var(--ld-ink);box-shadow:inset 0 -2px 0 var(--ld-ink)}
.ld-comm .ldcp-ov .fl select{height:48px;padding:0 36px 0 14px;border:0;border-radius:12px;background:var(--ld-page) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230B0D1A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center/16px no-repeat;-webkit-appearance:none;appearance:none;font:500 16px var(--ld-text);color:var(--ld-ink);cursor:pointer;width:100%}
.ld-comm .ldcp-ov .seg2{flex-wrap:nowrap;gap:2px;width:100%;padding:3px;border-radius:12px;background:var(--ld-page);box-sizing:border-box}
.ld-comm .ldcp-ov .seg2 label{flex:1 1 0;justify-content:center;min-width:0;height:38px;padding:0 6px;border-radius:9px;box-shadow:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ld-comm .ldcp-ov .seg2 input:checked+label{background:#fff;color:var(--ld-ink);box-shadow:0 1px 2px rgba(10,14,36,.12),0 0 0 1px rgba(10,14,36,.04)}
.ld-comm .ldcp-ov .seg2 input:focus-visible+label{box-shadow:inset 0 0 0 2px var(--ld-electric)}
.ld-comm .ldcp-ov .cx-note{display:block;margin:14px 0 0;padding-bottom:env(safe-area-inset-bottom,0px)}
.ld-comm .ldcp-ov .fl>span{font:600 14px var(--ld-text);letter-spacing:0;text-transform:none;color:var(--ld-ink)}
.ld-comm .ldcp-ov .cx-h .cx-post{background:var(--ld-electric);color:#fff;border:0;box-shadow:none}
.ld-comm .ldcp-ov .cx-h .x{width:40px;height:40px;padding:0;border-radius:50%;background:none;color:var(--ld-ink);box-shadow:none;display:grid;place-items:center;top:calc(50% + 3px);transform:translateY(-50%)}
.ld-comm .ldcp-ov .cx-h .x:hover{background:var(--ld-page)}
.ld-comm .ldcp-ov .cx-h .x .i{width:20px;height:20px}
.ld-comm .ldcp-ov .cx-ta{border:0;box-shadow:none;outline:0;background:none}

/* Signed out (Nikita, 2 Nov s-1): the composer bar is a sign-in prompt, not a look-alike post box. Plain line, one blue button. */
.ld-comm .ldcp a.cp.cp--out{display:flex;align-items:center;gap:12px;text-decoration:none}
.ld-comm .ldcp a.cp.cp--out .in{flex:1;min-width:0;background:transparent!important;padding:0 4px!important;color:var(--ld-ink,#141a33)!important;font-weight:600}
.ld-comm .ldcp a.cp.cp--out .cp-signin{flex:none;display:inline-flex;align-items:center;height:40px;padding:0 18px;border-radius:999px;background:#3D6BFF;color:#fff;font:600 14.5px/1 var(--ld-text,Inter,sans-serif);white-space:nowrap}
.ld-comm .ldcp a.cp.cp--out:hover .cp-signin{background:#2f5ae6}
/* the name in a post header is a link to the profile (7 Nov, so the official tick can sit beside it) */
.ldcp-who b a{color:inherit!important;text-decoration:none!important;font:inherit}.ldcp-who b a:hover{text-decoration:underline!important}
