/* PD News (/news-feed/): contêiner de 1180 px, coluna lateral de 280 px e feed de 880 px, cartões do feed, como no portal anterior (medidas ao vivo, 1440 px). */
.pd-container--feed { max-width: 1180px; margin-left: auto; margin-right: auto; }
.pd-feed { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.pd-feed__title { margin: 0 0 22px; font-size: 28px; font-weight: 700; line-height: 1.2; color: var(--pd-heading); }

/* Coluna lateral: cartões de 280 px (borda, raio 4), como a coluna de eventos do portal anterior */
.pd-feed__widget { margin: 0 0 32px; padding: 20px 20px 25px; border: 1px solid var(--pd-border); background: var(--pd-surface); border-radius: 4px; font-size: 14px; line-height: 18.9px; }
.pd-feed__widget-title { margin: 0 0 15px; font-family: var(--pd-font); font-size: 14px; font-weight: 600; line-height: 30px; letter-spacing: 0; text-transform: uppercase; color: var(--pd-heading); }
.pd-events__list { margin: 0; padding: 0; list-style: none; }
.pd-events__item { display: flex; gap: 0; margin: 0 0 16px; }
.pd-events__date { flex: 0 0 64px; text-align: center; line-height: 1; }
.pd-events__date span { display: block; margin-bottom: -4px; font-size: 11px; font-weight: 400; line-height: 16.5px; letter-spacing: 0; text-transform: uppercase; color: #5D5D5D; }
.pd-events__date strong { display: block; margin-bottom: -4px; font-size: 24px; font-weight: 700; line-height: 34px; color: #141827; }
.pd-events__body { flex: 1; min-width: 0; }
.pd-events__when { margin: 0 0 4px; color: #141827; font-size: 12px; line-height: 16.5px; }
.pd-events__time { font-size: 12px; color: #141827; }
.pd-events__ical { display: inline-block; margin-left: 8px; padding: 2px 7px; border: 1px solid #BAE6FD; border-radius: 4px; background: #F0F9FF; color: #0284C7; font-size: 11px; font-weight: 700; line-height: 15px; vertical-align: middle; text-decoration: none; }
.pd-events__ical:hover { background: #E0F2FE; }
.pd-events__heading { margin: 0; font-family: var(--pd-font); font-size: 14px; font-weight: 700; line-height: 22.7px; }
.pd-events__title { color: #141827; font-weight: 700; text-decoration: none; }
.pd-events__title:hover { color: var(--pd-accent-text); }
.pd-events__more-wrap { margin: 20px 0 0; font-size: 14px; line-height: 22.7px; }
.pd-events__more { color: #334AFF; font-size: 14px; font-weight: 400; }
.pd-feed__syncwrap { padding: 20px 20px 25px; }
.pd-feed__sync { margin-top: 15px; padding: 16px; border: 1px solid #E2E8F0; border-radius: 8px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .04); }
.pd-feed__sync-head { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 12px; }
.pd-feed__sync-emoji { font-size: 15px; line-height: 1.5; }
.pd-feed__sync-head strong { color: #1E293B; font-size: 13px; font-weight: 700; line-height: 1.4; }
.pd-feed__sync-buttons { display: flex; gap: 8px; }
.pd-feed__sync-buttons a { flex: 1; padding: 9px 8px; border: 1px solid #CBD5E1; border-radius: 6px; background: #F8FAFC; color: #1E293B; font-size: 12px; font-weight: 700; line-height: 16px; text-align: center; text-decoration: none; }
.pd-feed__sync-buttons a:hover { border-color: #94A3B8; background: #F1F5F9; }
.pd-feed__sync-ico { display: inline-block; margin-right: 2px; font-size: 30px; line-height: 1; vertical-align: middle; }

/* Feed: sem caixa de publicar (o PD News só mostra publicações automáticas) */
body.pd-news-feed #whats-new-form, body.pd-news-feed .activity-update-form, body.pd-news-feed #bb-activity-form-wrap { display: none !important; }
body.pd-news-feed .pd-feed__main #buddypress, body.pd-news-feed .pd-feed__main .buddypress-wrap { max-width: none; margin: 0; padding: 0; }
:is(body.pd-news-feed, body.groups, body.bp-user) ul.activity-list { margin: 0; padding: 0; list-style: none; }
:is(body.pd-news-feed, body.groups, body.bp-user) ul.activity-list > li.activity-item { box-sizing: border-box; width: 100%; margin: 0 0 20px; padding: 15px 15px 10px; border: 1px solid #E7E9EC; border-radius: 4px; background: var(--pd-surface); box-shadow: none; font-size: 14px; }
:is(body.pd-news-feed, body.groups, body.bp-user) .activity-item .bp-activity-head { display: flex; align-items: flex-start; gap: 15px; }
:is(body.pd-news-feed, body.groups, body.bp-user) .activity-item .activity-avatar { flex: 0 0 36px; width: 36px; }
:is(body.pd-news-feed, body.groups, body.bp-user) .activity-item .activity-avatar img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
:is(body.pd-news-feed, body.groups, body.bp-user) .activity-item .activity-header { flex: 1; min-width: 0; font-size: 14px; line-height: 1.5; color: var(--pd-text); }
:is(body.pd-news-feed, body.groups, body.bp-user) .activity-item .activity-header a { font-weight: 600; color: var(--pd-heading); text-decoration: none; }
:is(body.pd-news-feed, body.groups, body.bp-user) .activity-item .activity-header p { margin: 0; }
/* A data fica numa linha própria, abaixo do nome, como no portal anterior */
:is(body.pd-news-feed, body.groups, body.bp-user) .activity-item .activity-header a.activity-time-since { display: block; margin-top: 3px; font-weight: 400; color: var(--pd-muted-text); font-size: 13px; }
:is(body.pd-news-feed, body.groups, body.bp-user) .activity-item .time-since { font-weight: 400; color: var(--pd-muted-text); font-size: 13px; }
:is(body.pd-news-feed, body.groups, body.bp-user) .activity-item .activity-content { margin: 15px 0 0; font-size: 14px; }
:is(body.pd-news-feed, body.groups, body.bp-user) .activity-item .activity-inner { max-width: 640px; padding: 13px; border: 1px solid var(--pd-border); border-radius: 4px; background: var(--pd-surface-alt); font-size: 14px; }
:is(body.pd-news-feed, body.groups, body.bp-user) .activity-item .activity-inner a.bb-post-title-link, :is(body.pd-news-feed, body.groups, body.bp-user) .activity-item .bb-post-title { font-size: 16px; font-weight: 500; color: var(--pd-heading); text-decoration: none; }
:is(body.pd-news-feed, body.groups, body.bp-user) .activity-item .activity-inner-meta { margin: 0; padding: 0 12px 12px; }
:is(body.pd-news-feed, body.groups, body.bp-user) .activity-item a.pd-view-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 0; height: auto; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--pd-accent-text); font-size: 14px; font-weight: 500; line-height: 17px; text-decoration: none; }
:is(body.pd-news-feed, body.groups, body.bp-user) .activity-item .pd-view-btn::before { content: "\2192"; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; line-height: 1; }
:is(body.pd-news-feed, body.groups, body.bp-user) .activity-item .activity-meta { margin: 0; padding: 0; min-height: 0; }
:is(body.pd-news-feed, body.groups, body.bp-user) .activity-item .activity-meta .generic-button { margin: 0; }
:is(body.pd-news-feed, body.groups, body.bp-user) .activity-item .activity-meta a.button { height: 22px; min-height: 0; padding: 0 10px; line-height: 22px; border: 0; border-radius: 100px; background: transparent; box-shadow: none; }
:is(body.pd-news-feed, body.groups, body.bp-user) .activity-item .activity-meta a.button:hover { background: var(--pd-nav-hover); }
:is(body.pd-news-feed, body.groups, body.bp-user) .activity-item .activity-meta .generic-button a, :is(body.pd-news-feed, body.groups, body.bp-user) .activity-item .activity-meta a { font-size: 14px; font-weight: 500; color: var(--pd-accent-text); }

@media (max-width: 960px) {
	.pd-feed { grid-template-columns: minmax(0, 1fr); }
	.pd-feed__aside { order: 2; }
}

/* Data numa linha só (a do cabeçalho do BuddyBoss duplicava), sem o ponto antes */
:is(body.pd-news-feed, body.groups, body.bp-user) .activity-item .activity-header p.activity-date { display: none; }
:is(body.pd-news-feed, body.groups, body.bp-user) .activity-item .activity-header a.activity-time-since::before, :is(body.pd-news-feed, body.groups, body.bp-user) .activity-item .activity-header .time-since::before { content: none; }
/* Ícones das ações (Curtir/Comentar): traço fino cinza, sem caixa */
:is(body.pd-news-feed, body.groups, body.bp-user) .activity-item .activity-meta a i, :is(body.pd-news-feed, body.groups, body.bp-user) .activity-item .activity-meta a .bb-icon-l, :is(body.pd-news-feed, body.groups, body.bp-user) .activity-item .activity-meta a .bb-icon-f { display: inline-block; width: auto; height: auto; padding: 0; border: 0; border-radius: 0; background: transparent !important; color: var(--pd-muted-link); font-size: 18px; vertical-align: middle; }
/* Itens de grupo: a data fica só na linha de baixo */
:is(body.pd-news-feed, body.groups, body.bp-user) .activity-item .activity-header--group .activity-post-author a.activity-time-since { display: none; }
/* Ícone do Comentar/Curtir: vem de ::before do próprio botão; sem caixa colorida */
:is(body.pd-news-feed, body.groups, body.bp-user) .activity-item .activity-meta a.button::before { display: inline-block; width: auto; height: auto; margin: 0 6px 0 0; padding: 0; border: 0; border-radius: 0; background: transparent !important; color: var(--pd-muted-link); font-size: 18px; line-height: 1; vertical-align: middle; box-shadow: none; }
:is(body.pd-news-feed, body.groups, body.bp-user) .activity-item .activity-meta a.button:hover::before { color: var(--pd-accent-text); }

/* Feeds de grupo e de perfil: o item não tem o contêiner .bp-activity-head; avatar e cabeçalho lado a lado em grade */
:is(body.groups, body.bp-user) ul.activity-list > li.activity-item:not(:has(.bp-activity-head)) { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 15px; align-items: start; }
:is(body.groups, body.bp-user) ul.activity-list > li.activity-item:not(:has(.bp-activity-head)) > .activity-avatar { grid-column: 1; grid-row: 1; width: 36px; }
:is(body.groups, body.bp-user) ul.activity-list > li.activity-item:not(:has(.bp-activity-head)) > .activity-header { grid-column: 2; grid-row: 1; margin: 0; padding: 0; }
:is(body.groups, body.bp-user) ul.activity-list > li.activity-item:not(:has(.bp-activity-head)) > :not(.activity-avatar):not(.activity-header):not(.bb-activity-more-options-wrap) { grid-column: 1 / -1; }
:is(body.groups, body.bp-user) ul.activity-list > li.activity-item .bb-activity-more-options-wrap { position: absolute; top: 8px; right: 8px; }

/* Barra do feed: busca (ícone) à esquerda e filtros "Mostrar … por …" à direita, alinhados ao centro (como no antigo) */
.activity-head-bar { display: flex; align-items: center; height: 40px; margin: 20px 0; }
.activity-head-bar .bb-subnav-filters-container { margin: 0; }
.activity-head-bar > .bb-subnav-filters-container.bb-subnav-filters-search { margin: 0 auto 0 0; }
.activity-head-bar .bb-subnav-filters-container-main { display: flex; align-items: center; margin: 0 10px 0 0; }
.activity-head-bar .bb-subnav-filters-container-main:last-child { margin-right: 0; }
.activity-head-bar .bb-subnav-filters-label { margin: 0 4px 0 0; font-size: 14px; line-height: 14px; }
.activity-head-bar .bb-subnav-filters-filtering { margin: 0; }
.activity-head-bar .bb-subnav-filters-filtering .subnav-filters-opener { font-size: 15px; font-weight: 500; line-height: 19.5px; }
.activity-head-bar > .bb-subnav-filters-container.bb-subnav-filters-search { margin: 0 auto 0 0 !important; align-self: center; }
.activity-head-bar .bb-subnav-filters-container-main, .activity-head-bar .bb-subnav-filters-filtering { align-self: center; }
.activity-head-bar .bb-subnav-filters-container-main { height: 20px; }
.activity-head-bar .bb-subnav-filters-label { line-height: 20px; }
.activity-head-bar .bb-subnav-filters-filtering { display: flex; align-items: center; height: 20px; }
.activity-head-bar .bb-subnav-filters-filtering .subnav-filters-opener { align-items: center; height: 20px; line-height: 20px; }
.activity-head-bar .bb-subnav-filters-container.bb-subnav-filters-filtering { margin: 0 !important; }

/* Timeline do perfil: como no portal anterior, sem a caixa de publicar e sem o aviso de "nenhuma atividade" */
body.bp-user.activity #whats-new-form, body.bp-user.activity #bb-activity-form-wrap, body.bp-user.activity .activity-update-form { display: none !important; }
body.bp-user.activity #activity-stream .bp-feedback.info, body.bp-user.activity .screen-content > .bp-feedback.info { display: none; }

/* PD News no celular (medido a 390 px no antigo): título com 30 px acima e 32 px abaixo, caixa de busca de 350×40 com a lupa dentro, sem o contorno interno,
   e a linha "Show all updates / by new posts" 10 px abaixo */
@media (max-width: 799px) {
	body.pd-news-feed .pd-feed__title { margin: 30px 0 32px; line-height: 24px; }
	body.pd-news-feed #buddypress .subnav-search { position: relative; top: auto; right: auto; width: 100%; margin: 0 !important; }
	body.pd-news-feed #buddypress .subnav-search .dir-search { height: 34px !important; border: 0; border-radius: 0; }
	body.pd-news-feed .subnav-search input[type=search] { box-sizing: border-box; width: 100%; height: 34px; padding: 0 30px 0 35px; }
	body.pd-news-feed .subnav-search .nouveau-search-submit { position: absolute; left: 7px; top: 7px; width: 22px; height: 20px; min-height: 0; padding: 0; border: 0; background: transparent; color: #A3A5A9; }
	body.pd-news-feed .subnav-search .nouveau-search-submit .bb-icon-search { width: 20px; height: 20px; font-size: 20px; line-height: 20px; }
	body.pd-news-feed .activity-head-bar { height: auto; flex-wrap: wrap; justify-content: center; }
	body.pd-news-feed .activity-head-bar > .bb-subnav-filters-container.bb-subnav-filters-search { flex: 0 0 100%; margin: 0 !important; }
	body.pd-news-feed #buddypress .subnav-search { height: 34px !important; }
	body.pd-news-feed .activity-head-bar .bb-subnav-filters-container-main { margin-top: 10px; }
}

/* PD News em tablet (768 a 1098 px), como no portal anterior: feed à esquerda e a coluna de 280 px com os eventos à direita; a partir de 1099 px os eventos passam para a esquerda; até 767 px uma coluna */
@media (min-width: 768px) and (max-width: 1098px) {
	.pd-feed { grid-template-columns: minmax(0, 1fr) 280px; }
	.pd-feed__aside { order: 2; }
}

/* "Quick Reply" do feed: janela de 800 px, como no portal anterior. */
.pd-quick-reply { position: fixed; z-index: 100001; top: 50%; left: 50%; box-sizing: border-box; width: 800px; max-width: calc(100vw - 32px); transform: translate(-50%, -50%); border-radius: 4px; background: var(--pd-surface); box-shadow: 0 6px 24px rgba(0, 0, 0, .2); }
.pd-quick-reply[hidden] { display: none; }
.pd-quick-reply .bbp-form { position: relative; margin: 0; padding: 0; border: 0; }
.pd-quick-reply legend { box-sizing: border-box; width: 100%; padding: 18px 60px 18px 25px; border-bottom: 1px solid var(--pd-border); color: var(--pd-heading); font-size: 16px; font-weight: 600; }
.pd-quick-reply textarea { display: block; box-sizing: border-box; width: 100%; min-height: 100px; padding: 15px 25px; border: 0; resize: vertical; font: inherit; font-size: 15px; }
.pd-quick-reply .pd-qr-actions { display: flex; justify-content: flex-end; padding: 12px 25px; border-top: 1px solid var(--pd-border); }
.pd-quick-reply .pd-qr-actions .button { height: 36px; padding: 0 20px; border: 0; border-radius: 100px; background: var(--pd-accent); color: #fff; font-size: 14px; cursor: pointer; }
