/* Condition Standards Styles */

.condition-standards-description {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

/* Every type stacks on one page now, so the header is a section label
   rather than a page-sized heading. */
.condition-type-header {
  margin: 1.25rem 0 0.15rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: 1rem;
}

.condition-type-header:first-of-type {
  margin-top: 0.25rem;
}

.condition-unit-header {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-700);
}

.condition-unit-header:first-child {
  margin-top: 0;
}

.condition-standards-table {
  width: 100%;
  margin-bottom: 1.5rem;
}

.condition-standards-table thead th {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 2px solid var(--gray-200);
}

.condition-standards-table thead th:last-child {
  text-align: right;
}

.condition-standards-table tbody tr {
  border-bottom: 1px solid var(--gray-100);
}

.condition-standards-table tbody td {
  padding: 0.75rem;
}

.condition-standards-table tbody td:last-child {
  text-align: right;
}

.no-standards-message {
  color: var(--gray-500);
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* Tabs styles moved to tabs.css (generic Components::Tabs, used across the app
   and the public demo, so it must load in every layout). */

/* One unit's standards on a single line: the unit name, then a chip per
   men/women pair with its own remove control. */
.standard-unit {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: 0.4rem 0;
  border-top: 1px solid var(--border);
}

.standard-unit-name {
  flex: 0 0 7rem;
  font-weight: 600;
}

.standard-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.standard-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--surface-muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.standard-chip-remove {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
}

.standard-chip-remove:hover {
  color: var(--danger-color);
}

.standard-legend {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
