/* PoBing V61.10.980 — shared community right-column card system.
   Reference: person-detail.html “最近动态” .panel-head (16px, 18px 20px,
   full-width divider). Scoped only to page asides marked pb-sidebar-uniform.
   No JS, business rules, content or view-state are altered. */

/* Match the personal-profile card silhouette and body inset. */
.pb-community .pb-sidebar-uniform > .pb-community-panel {
  min-width:0;
  padding:18px 20px;
  border:1px solid #dfe8f2;
  border-radius:16px;
  background:#fff;
  box-shadow:0 3px 13px rgba(27,57,86,.035);
}
/* Recommendations use an ID rule in their old CSS; explicitly supersede it. */
.pb-community .pb-sidebar-uniform > #pbContentRecommendations {
  padding:18px 20px;
}
/* Circle announcement used to carry its own gap, even inside a flex/grid aside. */
.pb-community .pb-sidebar-uniform > .pb-circle-announcement {
  margin:0;
}

/* Make every card heading the same full-width header strip. Existing markup
   varies: standalone h2, heading+link row, injected recommendation heading. */
.pb-community .pb-sidebar-uniform > .pb-community-panel > :is(
  h2:first-child,
  .pb-community-reco-head,
  .pb-community-overview-head,
  .pb-community-author-other-head,
  .pb-content-reco-title,
  .pb-circle-announcement-head,
  .pb-circle-hot-topics-heading
) {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  min-height:59px;
  margin:-18px -20px 16px;
  padding:18px 20px;
  border:0;
  border-bottom:1px solid #edf2f6;
  background:transparent;
}
/* Uniform title; do not affect the content list, member names or subheadings. */
.pb-community .pb-sidebar-uniform > .pb-community-panel > :is(
  h2:first-child,
  .pb-community-reco-head,
  .pb-community-overview-head,
  .pb-community-author-other-head,
  .pb-content-reco-title,
  .pb-circle-announcement-head,
  .pb-circle-hot-topics-heading
) h2,
.pb-community .pb-sidebar-uniform > .pb-community-panel > h2:first-child {
  margin:0;
  padding:0;
  border:0;
  color:#193c62;
  font-size:16px;
  font-weight:700;
  line-height:1.45;
  letter-spacing:0;
  min-width:0;
}
.pb-community .pb-sidebar-uniform > .pb-community-panel > h2:first-child {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  /* Preserve the full-width divider from the shared header strip. */
  margin:-18px -20px 16px;
  padding:18px 20px;
  border-bottom:1px solid #edf2f6;
}
/* Secondary text and actions on the same header row. */
.pb-community .pb-sidebar-uniform > .pb-community-panel > :is(
  .pb-community-reco-head,
  .pb-community-overview-head,
  .pb-community-author-other-head,
  .pb-circle-hot-topics-heading,
  .pb-circle-announcement-head
) > :is(a,span,small,button),
.pb-community .pb-sidebar-uniform > .pb-circle-side-box > h2:first-child > small {
  flex-shrink:0;
  font-size:12px;
  font-weight:400;
  line-height:1.5;
}
/* Remove the old private blue announcement header look; keep its controls. */
.pb-community .pb-sidebar-uniform > .pb-circle-announcement > .pb-circle-announcement-head h2 {
  font-size:16px;
  color:#193c62;
}
/* The announcement header contains a 34px edit action: reduce only its
   vertical inset so the total strip remains as tall as its siblings. */
.pb-community .pb-sidebar-uniform > .pb-community-panel.pb-circle-announcement > .pb-circle-announcement-head {
  padding-top:12px;
  padding-bottom:12px;
}
/* Scoped second-level heading inside a detail info card (not a separate card). */
.pb-community .pb-sidebar-uniform > #circleThreadSideInfo > h2:not(:first-child) {
  margin:17px 0 10px;
  padding-top:13px;
  border-top:1px solid #edf2f6;
  font-size:14px;
  color:#193c62;
}
/* Some existing lists place their top margin after an old card heading. */
.pb-community .pb-sidebar-uniform > .pb-community-panel > :is(.pb-dynamics-trending,.pb-dynamics-hot-posts) {
  margin-top:0;
}
/* Same spacing rhythm on mobile without changing sidebar stacking rules. */
@media(max-width:600px) {
  .pb-community .pb-sidebar-uniform > .pb-community-panel,
  .pb-community .pb-sidebar-uniform > #pbContentRecommendations {padding:16px;}
  .pb-community .pb-sidebar-uniform > .pb-community-panel > :is(
    h2:first-child,.pb-community-reco-head,.pb-community-overview-head,
    .pb-community-author-other-head,.pb-content-reco-title,
    .pb-circle-announcement-head,.pb-circle-hot-topics-heading
  ) {margin:-16px -16px 14px;padding:16px;min-height:55px;}
  .pb-community .pb-sidebar-uniform > .pb-community-panel > h2:first-child {
    margin:-16px -16px 14px;padding:16px;
  }
  .pb-community .pb-sidebar-uniform > .pb-community-panel.pb-circle-announcement > .pb-circle-announcement-head {
    padding:10px 16px;
  }
}
