/**
 * Audience-role chips/badges for cases & insights (index cards + in-article sections).
 * Labels sit beside headings / on cards — do not rewrite H2 text to say 「学生向け」.
 */
.yce-aud-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}

.yce-aud-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  vertical-align: middle;
}

.yce-aud-chip--student {
  color: #1e3a8a;
  background: #dbeafe;
  border-color: #bfdbfe;
}

.yce-aud-chip--parent {
  color: #9a3412;
  background: #ffedd5;
  border-color: #fed7aa;
}

.yce-aud-chip--club {
  color: #065f46;
  background: #d1fae5;
  border-color: #a7f3d0;
}

.yce-aud-chip--supporter {
  color: #5b21b6;
  background: #ede9fe;
  border-color: #ddd6fe;
}

.yce-aud-chip--common {
  color: #334155;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

/* In-article: chip beside H2 (wrapper keeps border/spacing; H2 text unchanged) */
.yce-h2-aud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.yce-h2-aud > h2 {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.yce-h2-aud .yce-aud-chip {
  font-size: 0.6875rem;
  padding: 0.2rem 0.55rem;
  flex-shrink: 0;
}

/* Compact chips on index cards */
#content-hub .yce-aud-chips {
  margin-top: 0.35rem;
}
