/* Shared components (lane C, 15 Oct): only what a component needs outside the page it was approved on. Loaded wherever includes/pages/components.php
   says a page uses one (landdu_components filter, or any feed). The components' own looks stay in their approved files (community*.css, group.css,
   listing-single.css, filters.css, jobs.css); nothing here restyles them. Map: deliverables/2026-10-15-extra-pages/components/components.md. */

/* The feed surface inside a page column (a profile tab, a panel): the approved .ld-comm surface without its full-bleed page width and grey page fill. */
.ld-comm.ld-embed{margin-left:0;margin-right:0;width:auto;max-width:100%;background:transparent;overflow-x:visible}

/* Kinds only Adrian's own posts make (a car, a business), in the chip family of community.css */
.ld-comm .ld-kind--car{background:#E7EEFF;color:#1E2FA8}
.ld-comm .ld-kind--business{background:#E6F4EC;color:#14633F}

/* ===== The post card outside a group page (moved from pages/activity.css, lane C, 15 Oct): /activity/, a single post, a member's Activity tab ===== */
/* ---- the feed ---- */
#buddypress .ld-comm .ldcp #activity-stream ul.activity-list{margin-top:10px}
/* loading: the placeholders are the card, with soft bars */
#buddypress .ld-comm .ldcp #bp-ajax-loader{display:flex;flex-direction:column;gap:8px;margin:10px 0 0;padding:0;list-style:none}
#buddypress .ld-comm .ldcp .bb-activity-placeholder{margin:0;padding:14px 16px 16px;border:0;border-top:1px solid var(--ld-line);border-bottom:1px solid var(--ld-line);border-radius:0;background:#fff;box-shadow:none}
#buddypress .ld-comm .ldcp .bb-activity-placeholder_head{display:flex;align-items:center;gap:10px;margin:0 0 16px}
#buddypress .ld-comm .ldcp .bb-activity-placeholder_avatar{width:42px;height:42px;flex:none;border-radius:50%}
#buddypress .ld-comm .ldcp .bb-activity-placeholder_details{flex:1;display:flex;flex-direction:column;gap:8px}
#buddypress .ld-comm .ldcp .bb-activity-placeholder .bb-activity-placeholder_title{height:12px;width:46%;margin:0 0 10px;border-radius:6px}
#buddypress .ld-comm .ldcp .bb-activity-placeholder .bb-activity-placeholder_description{height:10px;width:28%;margin:0;border-radius:6px}
#buddypress .ld-comm .ldcp .bb-activity-placeholder_content .bb-activity-placeholder_title{width:92%}
#buddypress .ld-comm .ldcp .bb-activity-placeholder_content .bb-activity-placeholder_title+.bb-activity-placeholder_title{width:64%}
#buddypress .ld-comm .ldcp .bb-activity-placeholder_actions{display:flex;gap:16px;margin:14px 0 0;padding:12px 0 0;border-top:1px solid var(--ld-line)}
#buddypress .ld-comm .ldcp .bb-activity-placeholder_actions .bb-activity-placeholder_description{flex:1;width:auto}
#buddypress .ld-comm .ldcp .bb-loading-bg{background:linear-gradient(90deg,#eef1f7 0%,#f6f8fc 40%,#eef1f7 80%);background-size:300% 100%;animation:ldc-shine 1.4s ease-in-out infinite}
@keyframes ldc-shine{from{background-position:100% 0}to{background-position:0 0}}
@media (prefers-reduced-motion:reduce){.ld-comm .ldcp .bb-loading-bg{animation:none}}

/* nothing to show: BuddyBoss's own sentence, set as a calm state rather than a grey box */
#buddypress .ld-comm .ldcp #activity-stream .bp-feedback.info,#buddypress .ld-comm .ldcp #activity-stream aside.bp-feedback{display:flex;flex-direction:column;align-items:center;gap:12px;margin:10px 0 0;padding:36px 24px 34px;border:0;border-top:1px solid var(--ld-line);border-bottom:1px solid var(--ld-line);border-radius:0;background:#fff;box-shadow:none;text-align:center}
#buddypress .ld-comm .ldcp #activity-stream .bp-feedback .bp-icon{display:block;width:52px;height:52px;margin:0;border-radius:50%;background:var(--ld-tint) no-repeat center/26px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b3a73' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12Z'/%3E%3C/svg%3E")}
#buddypress .ld-comm .ldcp #activity-stream .bp-feedback .bp-icon::before{content:none;display:none}
#buddypress .ld-comm .ldcp #activity-stream .bp-feedback p{max-width:30ch;margin:0;font:600 16px/1.45 var(--ld-text);color:var(--ld-ink)}

/* load more: the group feed's pill; while it loads it stays the same size */
#buddypress .ld-comm .ldcp #activity-stream li.load-more{margin:6px 0 0;padding:0;border:0;background:none}
#buddypress .ld-comm .ldcp #activity-stream li.load-more a{box-shadow:inset 0 0 0 1px var(--ld-line)}
#buddypress .ld-comm .ldcp #activity-stream li.load-more.loading a{color:var(--ld-muted);pointer-events:none}
/* ---- a group post on the main feed: the author leads, as on a group page (avatar, name, then "Group · time"); BuddyBoss's grey group logo steps back ---- */
#buddypress .ld-comm .ldcp li.lp .bp-activity-head-group .activity-group-avatar{position:relative;flex:none}
#buddypress .ld-comm .ldcp li.lp .bp-activity-head-group .group-avatar{display:none}
#buddypress .ld-comm .ldcp li.lp .bp-activity-head-group .author-avatar{position:static;margin:0}
#buddypress .ld-comm .ldcp li.lp .bp-activity-head-group .author-avatar :is(img,.ldcp-av){width:42px!important;height:42px!important;border-radius:50%;font-size:16px!important;line-height:42px;display:grid;place-items:center;color:#fff}
#buddypress .ld-comm .ldcp li.lp .activity-header--group{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:0;row-gap:1px;min-width:0}
#buddypress .ld-comm .ldcp li.lp .activity-header--group .activity-group-post-meta{display:contents}
#buddypress .ld-comm .ldcp li.lp .activity-header--group .activity-post-author{order:1;flex-basis:100%;min-width:0}
#buddypress .ld-comm .ldcp li.lp .activity-header--group .activity-post-author a{font:700 15px/1.3 var(--ld-text);color:var(--ld-ink);overflow-wrap:anywhere}
#buddypress .ld-comm .ldcp li.lp .activity-header--group .activity-group-heading{order:2;min-width:0;margin:0}
#buddypress .ld-comm .ldcp li.lp .activity-header--group .activity-group-heading a{font:500 13px/1.35 var(--ld-text);color:var(--ld-muted);overflow-wrap:anywhere}
#buddypress .ld-comm .ldcp li.lp .activity-header--group .activity-group-post-meta>a{order:3;font:500 13px/1.35 var(--ld-text);color:var(--ld-muted);white-space:nowrap}
#buddypress .ld-comm .ldcp li.lp .activity-header--group .activity-group-post-meta>a::before{content:"\00b7"!important;display:inline!important;margin:0 5px;color:var(--ld-muted)} /* !important: the feed's "a:not([class])::before{display:none!important}" (RSS icon reset) hid it, so "LandDUa day ago" (13 Nov) */
#buddypress .ld-comm .ldcp li.lp .activity-header--group .activity-group-post-meta>a .time-since{font:inherit;color:inherit}
/* a single post sits on a member page, whose profile styles paint every activity button white (members.css r9, for the View Job pill): the action bar keeps the card's ink */
body.ld-cmpnt #buddypress .ld-comm .ldcp #activity-stream li.lp .bp-generic-meta .generic-button>.button,body.ld-cmpnt #buddypress .ld-comm .ldcp #activity-stream li.lp .bp-generic-meta .generic-button>.button :is(.text,span),body.ld-cmpnt #buddypress .ld-comm .ldcp #activity-stream li.lp .bp-generic-meta .generic-button>.button::before{color:var(--ld-ink)!important}
body.ld-cmpnt #buddypress .ld-comm .ldcp #activity-stream li.lp .bp-generic-meta .generic-button>.button{width:100%!important;padding:0 8px!important}

/* the author's avatar in a group post is the full 42px circle (BuddyBoss shrinks it to a 22px badge over the group logo) */
#buddypress .ld-comm .ldcp li.lp .bp-activity-head-group .activity-group-avatar{width:42px;height:42px}
#buddypress .ld-comm .ldcp li.lp .bp-activity-head-group .author-avatar,#buddypress .ld-comm .ldcp li.lp .bp-activity-head-group .author-avatar>a{position:static!important;display:block;width:42px!important;height:42px!important;margin:0!important;border:0;overflow:visible;transform:none}

/* an event or job shared to the feed: its title and summary read as the post, never a boxed card inside the card */
#buddypress .ld-comm .ldcp li.lp .activity-inner .bb-content-wrp{margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
#buddypress .ld-comm .ldcp li.lp .activity-inner a.bb-post-title-link{display:block;margin:0 0 4px;text-decoration:none}
#buddypress .ld-comm .ldcp li.lp .activity-inner .bb-post-title{font:700 17px/1.3 var(--ld-text);color:var(--ld-ink);overflow-wrap:anywhere}
#buddypress .ld-comm .ldcp li.lp .activity-inner .bb-content-wrp p{margin:0 0 6px;color:#3a4260}
/* "View job" on a job post: the group card's ghost button */
#buddypress .ld-comm .ldcp li.lp .lp-cta a.ld-btn{display:inline-flex;align-items:center;justify-content:center;height:34px;padding:0 14px;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 1px var(--ld-line);color:var(--ld-ink);font:700 13.5px/1 var(--ld-text);text-decoration:none}
#buddypress .ld-comm .ldcp li.lp .lp-cta a.ld-btn:hover{background:var(--ld-tint)}

/* Adrian's job or event auto post: BuddyBoss adds its own "View Job" read-more under the card's button; the card's one call to action stays */
#buddypress .ld-comm .ldcp li.lp .activity-inner:has(.lp-cta) .activity-inner-meta.action{display:none}

/* The chip row's search button (landdu_composer_bar search=true): BuddyBoss's search and filters row stays hidden inside .ldcp, as on a group, and opens under the chips */
.ld-comm .ldcp .fbar:has(.ldc-search-tog){display:flex;align-items:center;gap:8px}
.ld-comm .ldcp .fbar:has(.ldc-search-tog)>.ld-frow{flex:1;min-width:0}
.ld-comm .ldcp .ld-chip.ld-chip--icon{flex:none;display:inline-grid;place-items:center;width:38px;padding:0}
.ld-comm .ldcp .ld-chip--icon svg.i{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.ld-comm .ldcp .ld-chip--icon[aria-expanded="true"]{background:var(--ld-ink);color:#fff}
#buddypress .ld-comm .ldcp.ldc-search-on .activity-head-bar{display:flex!important;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0 4px}

/* BuddyBoss's search and filters row stays hidden inside a feed until the chip row's search button opens it (members.css and activity.css set it to flex with !important) */
#buddypress .ld-comm .ldcp:not(.ldc-search-on) .activity-head-bar{display:none!important}

/* A notice with no post of its own ("are now connected", "joined the group", "changed their photo"), community-posts.php .ldc-note: one quiet row with the avatar and the sentence */
#buddypress .ld-comm .ldcp li.activity-item.ldc-note{display:flex!important;align-items:center;gap:10px;margin:0 0 8px;padding:10px 16px;border:0;border-top:1px solid var(--ld-line);border-bottom:1px solid var(--ld-line);border-radius:0;background:#fff;box-shadow:none;list-style:none}
#buddypress .ld-comm .ldcp li.ldc-note .activity-avatar{flex:none;width:32px;height:32px;margin:0;position:static}
#buddypress .ld-comm .ldcp li.ldc-note .activity-avatar :is(img,.ldcp-av){width:32px!important;height:32px!important;border-radius:50%;font-size:13px!important;line-height:32px;display:grid;place-items:center;color:#fff}
#buddypress .ld-comm .ldcp li.ldc-note .activity-content{flex:1;min-width:0;margin:0;padding:0}
#buddypress .ld-comm .ldcp li.ldc-note .activity-header,#buddypress .ld-comm .ldcp li.ldc-note .activity-header p{margin:0;font:500 14px/1.4 var(--ld-text);color:var(--ld-muted);overflow-wrap:anywhere}
#buddypress .ld-comm .ldcp li.ldc-note .activity-header a{color:var(--ld-ink);font-weight:600;text-decoration:none}
#buddypress .ld-comm .ldcp li.ldc-note .activity-header .time-since,#buddypress .ld-comm .ldcp li.ldc-note .activity-date{font-size:12.5px;color:var(--ld-muted)}
#buddypress .ld-comm .ldcp li.ldc-note :is(.activity-inner,.bp-generic-meta,.activity-meta,.activity-comments,.activity-state,.bb-activity-more-options-wrap,.activity-state-reactions,.activity-footer){display:none!important}
#buddypress .ld-comm .ldcp li.ldc-note>*:not(.bp-activity-head){display:none!important}
#buddypress .ld-comm .ldcp li.ldc-note>.bp-activity-head{display:flex!important;flex:1 1 auto;align-items:center;gap:10px;min-width:0;margin:0;padding:0}
#buddypress .ld-comm .ldcp li.ldc-note>.bp-activity-head>*{min-width:0}
#buddypress .ld-comm .ldcp li.ldc-note .activity-header{flex:1 1 auto;width:auto!important;max-width:none!important}
#buddypress .ld-comm .ldcp li.ldc-note::before,#buddypress .ld-comm .ldcp li.ldc-note::after,#buddypress .ld-comm .ldcp li.ldc-note .activity-header a::before,#buddypress .ld-comm .ldcp li.ldc-note .activity-avatar::before,#buddypress .ld-comm .ldcp li.ldc-note .activity-avatar::after{content:none!important;display:none!important}
#buddypress .ld-comm .ldcp li.ldc-note .activity-content{flex:1 1 auto!important;width:auto!important;max-width:none!important}

/* a member page boxes every post body (members.css); inside the card the body is plain, as on a group */
body.ld-members-page #buddypress .ld-comm.ld-member-feed .ldcp li.lp .activity-inner{border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important}
#buddypress .ld-comm .ldcp li.ldc-note .bp-activity-head i,#buddypress .ld-comm .ldcp li.ldc-note .activity-header i,#buddypress .ld-comm .ldcp li.ldc-note .bp-activity-head [class*="bb-icon"]:not(.activity-avatar):not(.item-avatar){display:none!important}
#buddypress .ld-comm .ldcp li.ldc-note .activity-header a{padding-left:0!important;margin-left:0!important}

/* BuddyBoss draws its small feed icon (dashicons) on the avatar link of a notice row, above the avatar: gone, so the row is the avatar and the sentence */
#buddypress .ld-comm .ldcp li.ldc-note .bp-activity-head a::before,#buddypress .ld-comm .ldcp li.ldc-note .activity-avatar a::before{content:none!important;display:none!important}
/* a member page colours every paragraph navy (members.css) and BuddyBoss puts the friend's small avatar inside the sentence: the notice stays one quiet grey line */
body #buddypress .ld-comm .ldcp li.ldc-note .activity-header p{color:var(--ld-muted)!important}
#buddypress .ld-comm .ldcp li.ldc-note .activity-header a:has(>.avatar){display:none!important}

/* ===== The shared empty state (landdu_component('empty', ...), round two, 20 Oct): flat on the page like the approved community empty states,
   a tinted round icon, ink title, one muted line, the navy pill. Token fallbacks so it reads the same outside .ld-comm. ===== */
.ld-empty-c{display:flex;flex-direction:column;align-items:center;text-align:center;padding:40px 20px 44px;max-width:420px;margin:0 auto;font-family:var(--ld-text,"Inter",-apple-system,sans-serif)}
.ld-empty-c--left{align-items:flex-start;text-align:left;margin:0;padding:18px 16px}
.ld-empty-c__ic{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:var(--ld-tint,#eef1f7);color:var(--ld-electric,#3d63ff);margin:0 0 14px}
.ld-empty-c__ic svg{width:26px;height:26px}
.ld-empty-c__t{font:700 17px/1.3 var(--ld-display,"Inter Tight",-apple-system,sans-serif)!important;color:var(--ld-ink,#0d1224)!important;margin:0 0 6px!important;letter-spacing:-.01em}
.ld-empty-c__p{font-size:14.5px!important;line-height:1.5!important;color:var(--ld-muted,#667089)!important;margin:0!important}
.ld-empty-c__a{margin-top:18px}
.ld-empty-c__btn{display:inline-flex;align-items:center;justify-content:center;height:42px;padding:0 20px;border-radius:999px;background:var(--ld-midnight,#0a0e24);color:#fff!important;font:600 14.5px var(--ld-text,"Inter",sans-serif);text-decoration:none!important;transition:transform .16s ease,background .18s ease}
.ld-empty-c__btn:hover{background:#1a2040}.ld-empty-c__btn:active{transform:scale(.97)}
