/**
 * Status Badges — reusable across public pages to mark the maturity
 * of a claim (delivered / building / aspirational). Mirrors the
 * pattern established in our-plan.html's "delivered-item" structure
 * but as a small inline indicator attachable to any heading or claim.
 */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  vertical-align: middle;
  white-space: nowrap;
  margin-left: 0.5rem;
  text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.status-badge::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
}

.status-badge--delivered {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}
.status-badge--delivered::before {
  content: '✓';
  background: #047857;
  color: #fff;
}

.status-badge--building {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}
.status-badge--building::before {
  content: '◐';
  background: #b45309;
  color: #fef3c7;
}

.status-badge--aspirational {
  background: #e0e7ff;
  color: #3730a3;
  border: 1px solid #a5b4fc;
}
.status-badge--aspirational::before {
  content: '○';
  background: #4f46e5;
  color: #e0e7ff;
}

/* Legend block — renders a horizontal key of all three badge states */
.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 1rem 0 2rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #475569;
}

.status-legend-label {
  font-weight: 600;
  color: #334155;
  margin-right: 0.25rem;
}

.status-legend .status-badge {
  margin-left: 0;
}

/* Stack on narrow screens */
@media (max-width: 640px) {
  .status-badge {
    font-size: 0.68rem;
    padding: 0.15rem 0.5rem;
  }
  .status-legend {
    flex-direction: column;
    align-items: flex-start;
  }
}
