/* ── Badges ── */

/* Nominee badge (returning / new) */
.nominee-badge {
  font-size: var(--text-4xs);
  font-weight: var(--weight-medium);
  padding: 1px 8px;
  border-radius: var(--radius-full);
  margin-left: 6px;
  vertical-align: middle;
}
.nominee-badge.is-returning {
  background: rgba(79, 109, 122, 0.12);
  color: var(--color-accent);
}
.nominee-badge.is-new {
  background: rgba(138, 154, 108, 0.15);
  color: var(--color-sage-dark);
}

/* Nominee badge count (votes + comments) */
.nominee-badge-count {
  font-size: var(--text-4xs);
  font-weight: var(--weight-medium);
  color: var(--color-text-tertiary);
  background: var(--color-surface);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
}

/* Role badge */
.role-badge {
  font-size: var(--text-4xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.5px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}
.role-badge.host {
  background: rgba(79, 109, 122, 0.12);
  color: var(--color-accent);
}
.role-badge.alumni {
  background: var(--color-surface);
  color: var(--color-text-tertiary);
}
.role-badge.steward {
  background: rgba(138, 154, 108, 0.15);
  color: var(--color-sage-dark);
}
.role-badge.hosting {
  background: #e8f0e3;
  color: #5a7a4a;
}

/* Dossier badges */
.dossier-badges {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.dossier-badge {
  font-size: var(--text-3xs);
  font-weight: var(--weight-medium);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text-secondary);
}
.dossier-badge.returning {
  background: rgba(79, 109, 122, 0.12);
  color: var(--color-accent);
}
.dossier-badge.new {
  background: rgba(138, 154, 108, 0.15);
  color: var(--color-sage-dark);
}
.dossier-badge.selected {
  background: rgba(138, 154, 108, 0.2);
  color: #5a6d45;
}
.dossier-badge.ruled-out {
  background: rgba(204, 68, 68, 0.1);
  color: var(--color-danger-dark);
}

/* Page header badge */
.page-header-badge {
  font-size: var(--text-3xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.3px;
  color: var(--color-text-tertiary);
  background: var(--color-surface);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-left: 10px;
  vertical-align: middle;
}

/* Cohort complete badge */
.cohort-complete-badge {
  font-size: var(--text-3xs);
  font-weight: var(--weight-medium);
  color: var(--color-sage-dark);
  background: rgba(138, 154, 108, 0.15);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* Early preview badge */
.early-preview-badge {
  display: inline-block;
  font-size: var(--text-3xs);
  font-weight: var(--weight-semibold);
  color: var(--color-success-dark);
  background: #f0f7ec;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: var(--space-2);
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Chip badge (under avatar) */
.chip-badge {
  font-size: var(--text-4xs);
  font-weight: var(--weight-bold);
  color: var(--color-white);
  background: var(--color-accent);
  padding: 1px 8px;
  border-radius: var(--radius-full);
  margin-top: -6px;
  position: relative;
  z-index: 1;
  white-space: nowrap;
  text-align: center;
}
.chip-badge-dossier {
  margin-top: -8px;
  position: relative;
  z-index: 1;
}

/* Chip stepper (+/− quantity control) */
.chip-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(79, 109, 122, 0.25);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: rgba(79, 109, 122, 0.05);
}
.chip-stepper-btn {
  width: 26px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  font-family: inherit;
  color: var(--color-accent);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.12s;
  line-height: 1;
}
.chip-stepper-btn:hover {
  background: rgba(79, 109, 122, 0.15);
}
.chip-stepper-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip-stepper-label {
  font-size: var(--text-3xs);
  font-weight: var(--weight-medium);
  color: var(--color-text-tertiary);
}
.chip-stepper-count {
  font-size: var(--text-2xs);
  font-weight: var(--weight-bold);
  color: var(--color-accent);
  min-width: 20px;
  text-align: center;
  line-height: 24px;
}

/* Chip place button */
.chip-place-btn {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  font-family: inherit;
  color: var(--color-white);
  background: var(--color-accent);
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-fast);
}
.chip-place-btn:hover {
  background: var(--color-accent-hover);
}
.chip-place-btn.btn--sm {
  padding: 5px 14px;
  font-size: var(--text-2xs);
}

/* Chip breakdown */
.chip-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip-breakdown-pip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.chip-breakdown-count {
  font-size: var(--text-3xs);
  font-weight: var(--weight-bold);
  color: var(--color-accent);
}
.chip-breakdown-bottom {
  background: rgba(79, 109, 122, 0.06);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-top: 10px;
  align-items: center;
}
.chip-breakdown-label {
  font-size: var(--text-3xs);
  color: var(--color-text-tertiary);
  font-weight: var(--weight-medium);
  margin-right: 2px;
}
.section-title-count {
  font-weight: var(--weight-normal);
  color: var(--color-text-tertiary);
  font-size: var(--text-4xs);
  letter-spacing: 0.5px;
  margin-left: var(--space-1);
}

/* Chip budget */
.chip-budget-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 var(--space-2);
  max-width: calc(100% - 440px);
}
.chip-budget-instruction {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}
.chip-budget-badge {
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  color: var(--color-accent);
  white-space: nowrap;
}
.chip-budget {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}
.chip-budget-dots {
  display: flex;
  gap: 3px;
  align-items: center;
}
.chip-budget-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-circle);
  background: var(--color-surface-hover);
  transition: background var(--transition-normal);
}
.chip-budget-dot.is-placed {
  background: var(--color-accent);
}
.chip-budget-text {
  font-size: var(--text-2xs);
  color: var(--color-text-secondary);
  font-weight: var(--weight-medium);
  white-space: nowrap;
}

/* Phase chips */
.phase-chips {
  display: flex;
  gap: var(--space-1);
}
.phase-chip {
  padding: 6px var(--space-4);
  font-size: var(--text-2xs);
  font-family: inherit;
  border: none;
  background: var(--color-surface);
  color: var(--color-text-tertiary);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.phase-chip:hover { background: var(--color-surface-hover); }
.phase-chip.active { background: var(--color-accent); color: var(--color-white); }
.phase-chip input[type="radio"] { display: none; }
