/* ============================================================
   PBC Swiss — Shared community primitives
   Used by both buddypress.css and bbpress.css. Scoped to the
   .pbc-bp-wrap and .pbc-bbp-wrap classes that the overridden
   templates apply on their outermost div, so these primitives
   never leak into museum-pattern content templates added later.
   ============================================================ */

/* ------------------------------------------------------------
   Wrap reset
   BP+bbPress emit `class="screen-content"` and `id="bbpress-forums"`
   with their own opinionated spacing. Reset to the design system's
   spacing baseline so child rules build from zero.
   ------------------------------------------------------------ */
.pbc-bp-wrap,
.pbc-bbp-wrap {
  padding: var(--s-7) 0 var(--s-9);
  font-size: var(--t-body);
  line-height: 1.5;
  color: var(--ink);
}

.pbc-bp-wrap a,
.pbc-bbp-wrap a {
  color: #5cb3cc;
}
.pbc-bp-wrap a:hover,
.pbc-bbp-wrap a:hover {
  color: var(--link-hover);
}

/* ------------------------------------------------------------
   Card — used by member tiles, forum rows, topic rows
   ------------------------------------------------------------ */
.pbc-card {
  background: #fff;
  border: 1px solid var(--hair);
  padding: var(--s-5);
  transition: border-color .15s;
}
.pbc-card:hover {
  border-color: var(--ink);
}
.pbc-card__head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}
.pbc-card__title {
  font-size: var(--t-deck);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.pbc-card__meta {
  font-size: var(--t-meta);
  color: var(--muted);
}

/* ------------------------------------------------------------
   List-row — used by single-forum topic lists, single-topic reply
   stream, member directory list mode. Tight horizontal layout
   with hairline separator.
   ------------------------------------------------------------ */
.pbc-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--hair);
}
.pbc-row:last-child { border-bottom: none; }
.pbc-row__avatar { flex: 0 0 auto; }
.pbc-row__body { min-width: 0; }
.pbc-row__title {
  font-size: var(--t-body);
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.3;
  margin-bottom: 2px;
}
.pbc-row__meta {
  font-size: var(--t-meta);
  color: var(--muted);
}
.pbc-row__counts {
  text-align: right;
  font-size: var(--t-meta);
  color: var(--muted);
  font-feature-settings: "tnum", "lnum";
}
.pbc-row__counts strong {
  display: block;
  font-size: var(--t-h4);
  color: var(--ink);
  font-weight: 600;
}

/* ------------------------------------------------------------
   Avatar — circle with hairline border. Sizes via modifier.
   ------------------------------------------------------------ */
.pbc-avatar,
.pbc-bp-wrap img.avatar,
.pbc-bbp-wrap img.avatar {
  display: inline-block;
  border-radius: 50%;
  border: 1px solid var(--hair);
  background: var(--hair);
  vertical-align: middle;
  width: 40px;
  height: 40px;
  object-fit: cover;
}
.pbc-avatar--lg { width: 96px; height: 96px; }
.pbc-avatar--sm { width: 24px; height: 24px; }

/* ------------------------------------------------------------
   Badge — small uppercase pill. Categorical tint via modifier
   draws from the design-system's accent palette.
   ------------------------------------------------------------ */
.pbc-badge {
  display: inline-block;
  padding: 2px var(--s-2);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: #fff;
  line-height: 1.4;
}
.pbc-badge--sw { background: var(--sw); border-color: var(--sw); }
.pbc-badge--hw { background: var(--hw); border-color: var(--hw); }
.pbc-badge--co { background: var(--co); border-color: var(--co); }
.pbc-badge--pu { background: var(--pu); border-color: var(--pu); }
.pbc-badge--ev { background: var(--ev); border-color: var(--ev); color: #fff; }
.pbc-badge--cm { background: var(--cm); border-color: var(--cm); }
.pbc-badge--sv { background: var(--sv); border-color: var(--sv); }
.pbc-badge--muted {
  color: var(--muted);
  border-color: var(--hair);
  background: transparent;
}

/* ------------------------------------------------------------
   Tabset — used by single-member nav (Activity / Profile / etc.)
   and single-forum sub-nav. Mirrors the museum's tab strip on
   the artifact/organization/person CPT single templates.
   ------------------------------------------------------------ */
.pbc-tabs {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--ink);
  margin-bottom: var(--s-6);
}
.pbc-tabs a,
.pbc-tabs li > a,
.pbc-tabs > li {
  list-style: none;
  font-size: var(--t-meta);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: var(--s-3) var(--s-4);
  color: var(--ink);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: border-color .15s, color .15s;
}
.pbc-tabs a:hover {
  color: var(--link-hover);
  border-bottom-color: var(--link-hover);
}
.pbc-tabs .current a,
.pbc-tabs .selected a,
.pbc-tabs li.current_page_item > a,
.pbc-tabs li.current-menu-item > a {
  border-bottom-color: var(--ink);
}

/* ------------------------------------------------------------
   Pager — used by paginated topic / reply / member lists.
   Tabular figures for aligned page numbers.
   ------------------------------------------------------------ */
.pbc-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  margin-top: var(--s-6);
  border-top: 1px solid var(--hair);
  font-size: var(--t-meta);
  font-feature-settings: "tnum", "lnum";
}
.pbc-pager .page-numbers,
.pbc-pager a {
  display: inline-block;
  padding: var(--s-2) var(--s-3);
  min-width: 32px;
  text-align: center;
  border: 1px solid var(--hair);
  color: var(--ink);
}
.pbc-pager .page-numbers.current,
.pbc-pager span.current {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.pbc-pager a:hover {
  border-color: var(--ink);
  color: var(--link-hover);
}

/* ------------------------------------------------------------
   Notice — info / success / warn. Used by login-required notices,
   form-submitted feedback, "no results" placeholders.
   ------------------------------------------------------------ */
.pbc-notice {
  padding: var(--s-4) var(--s-5);
  border-left: 3px solid var(--muted);
  background: #f7f7f7;
  font-size: var(--t-meta);
  color: var(--ink-2);
  margin: var(--s-4) 0;
}
.pbc-notice--info  { border-left-color: var(--sv); }
.pbc-notice--ok    { border-left-color: var(--hw); }
.pbc-notice--warn  { border-left-color: var(--cm); }

/* ------------------------------------------------------------
   Headline — page intro band shared by directory pages.
   Title + count + brief deck. Mirrors a stripped-down hero.
   ------------------------------------------------------------ */
.pbc-headline {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--col-gap);
  padding-bottom: var(--s-5);
  margin-bottom: var(--s-6);
  border-bottom: 1px solid var(--ink);
}
.pbc-headline h1,
.pbc-headline .title {
  font-size: var(--t-h3);
  font-weight: 300;
  letter-spacing: var(--tracking-tight);
  line-height: 1;
}
.pbc-headline .title b { font-weight: 700; }
.pbc-headline .count {
  font-size: var(--t-meta);
  color: var(--muted);
  text-align: right;
  font-feature-settings: "tnum", "lnum";
}
.pbc-headline .count strong {
  display: block;
  font-size: var(--t-h4);
  color: var(--ink);
}

/* ------------------------------------------------------------
   Search + filter bar
   BP's `.subnav-filters` and bbPress's `form-search.php` get
   the same horizontal strip treatment.
   ------------------------------------------------------------ */
.pbc-bp-wrap .subnav-filters,
.pbc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  margin-bottom: var(--s-5);
  border-bottom: 1px solid var(--hair);
  font-size: var(--t-meta);
}
.pbc-bp-wrap .subnav-filters .bp-search input,
.pbc-bp-wrap .subnav-filters input[type="text"],
.pbc-bp-wrap .subnav-filters input[type="search"],
.pbc-toolbar input[type="text"],
.pbc-toolbar input[type="search"] {
  border: 1px solid var(--hair);
  background: #fff;
  padding: var(--s-2) var(--s-3);
  font-family: inherit;
  font-size: var(--t-meta);
  color: var(--ink);
  flex: 1 1 200px;
  max-width: 280px;
}
.pbc-bp-wrap .subnav-filters select,
.pbc-toolbar select {
  border: 1px solid var(--hair);
  background: #fff;
  padding: var(--s-2) var(--s-3);
  font-family: inherit;
  font-size: var(--t-meta);
  color: var(--ink);
}
.pbc-bp-wrap .subnav-filters button,
.pbc-toolbar button,
.pbc-toolbar input[type="submit"] {
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  padding: var(--s-2) var(--s-4);
  font-family: inherit;
  font-size: var(--t-meta);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.pbc-bp-wrap .subnav-filters button:hover,
.pbc-toolbar button:hover,
.pbc-toolbar input[type="submit"]:hover {
  background: var(--link-hover);
}
