/**
 * Shared identity surface badges — same palette as profile edit chooser / public trust header.
 * Load on county browse, activity lists, post read, etc.
 */

.pti-identity-surface-badge,
.nfb-identity-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.28rem;
  padding: 0.16rem 0.48rem 0.18rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--pti-surface-badge-text, #334155);
  background: var(--pti-surface-badge-bg, rgba(36, 51, 48, 0.055));
  border: 1px solid var(--pti-surface-badge-border, rgba(42, 110, 78, 0.14));
  border-radius: 999px;
  vertical-align: middle;
}

a.nfb-identity-badge-link {
  display: inline-flex;
  text-decoration: none;
  color: inherit;
  border-radius: 999px;
}

a.nfb-identity-badge-link:hover,
a.nfb-identity-badge-link:focus-visible {
  text-decoration: none;
  filter: brightness(0.97);
  box-shadow: 0 0 0 2px rgba(15, 76, 58, 0.12);
}

.nfb-identity-badge__name {
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  font-size: 0.72rem;
  opacity: 0.95;
}

.pti-identity-surface-badge--personal,
.nfb-identity-badge--personal {
  --pti-surface-badge-bg: #fff1f2;
  --pti-surface-badge-text: #9f1239;
  --pti-surface-badge-border: #fecdd3;
}
.pti-identity-surface-badge--professional,
.nfb-identity-badge--professional {
  --pti-surface-badge-bg: #fffbeb;
  --pti-surface-badge-text: #92400e;
  --pti-surface-badge-border: #fcd34d;
}
.pti-identity-surface-badge--business,
.nfb-identity-badge--business {
  --pti-surface-badge-bg: #ecfdf5;
  --pti-surface-badge-text: #047857;
  --pti-surface-badge-border: #a7f3d0;
}
.pti-identity-surface-badge--organizational,
.nfb-identity-badge--organizational {
  --pti-surface-badge-bg: #f5f3ff;
  --pti-surface-badge-text: #6d28d9;
  --pti-surface-badge-border: #ddd6fe;
}
.pti-identity-surface-badge--government,
.nfb-identity-badge--government {
  --pti-surface-badge-bg: #f1f5f9;
  --pti-surface-badge-text: #0f172a;
  --pti-surface-badge-border: #cbd5e1;
}
.pti-identity-surface-badge--blog,
.nfb-identity-badge--blog {
  --pti-surface-badge-bg: #e0f2fe;
  --pti-surface-badge-text: #075985;
  --pti-surface-badge-border: #7dd3fc;
}
.pti-identity-surface-badge--book,
.nfb-identity-badge--book {
  --pti-surface-badge-bg: #fffbeb;
  --pti-surface-badge-text: #b45309;
  --pti-surface-badge-border: #fcd34d;
}
.pti-identity-surface-badge--podcast,
.nfb-identity-badge--podcast {
  --pti-surface-badge-bg: #f5f3ff;
  --pti-surface-badge-text: #5b21b6;
  --pti-surface-badge-border: #c4b5fd;
}
.pti-identity-surface-badge--video,
.nfb-identity-badge--video {
  --pti-surface-badge-bg: #fff1f2;
  --pti-surface-badge-text: #be123c;
  --pti-surface-badge-border: #fda4af;
}
.pti-identity-surface-badge--association,
.nfb-identity-badge--association {
  --pti-surface-badge-bg: #f0fdfa;
  --pti-surface-badge-text: #0f766e;
  --pti-surface-badge-border: #5eead4;
}
.pti-identity-surface-badge--organization,
.nfb-identity-badge--organization {
  --pti-surface-badge-bg: #eef2ff;
  --pti-surface-badge-text: #3730a3;
  --pti-surface-badge-border: #a5b4fc;
}
.pti-identity-surface-badge--project,
.nfb-identity-badge--project {
  --pti-surface-badge-bg: #fff7ed;
  --pti-surface-badge-text: #c2410c;
  --pti-surface-badge-border: #fdba74;
}
.pti-identity-surface-badge--brand,
.nfb-identity-badge--brand {
  --pti-surface-badge-bg: #fdf2f8;
  --pti-surface-badge-text: #9d174d;
  --pti-surface-badge-border: #f9a8d4;
}

.nfb-post-attribution {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 0 0 0.4rem;
}

.nfb-post-attribution__author {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f4c3a;
  text-decoration: none;
}

.nfb-post-attribution__author:hover,
.nfb-post-attribution__author:focus-visible {
  text-decoration: underline;
}

.nfb-post-attribution__time {
  font-size: 0.78rem;
  color: #64748b;
}

.nfb-post-attribution__author--plain {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}

.nfb-county-updates__item {
  padding: 0.85rem 0;
}

.nfb-county-hub__update-item {
  padding: 0.65rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.nfb-county-hub__update-item:last-child {
  border-bottom: none;
}

.nfb-county-hub__update-link {
  display: block;
  margin-top: 0.25rem;
  text-decoration: none;
  color: inherit;
}

.nfb-county-hub__update-link:hover .nfb-county-hub__update-title {
  color: #0f4c3a;
}
