/* Access + verification badges in equipment catalog and unit indexes */

.rm-status {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  white-space: nowrap;
}

.rm-pair {
  display: inline-flex;
  gap: 0.15rem;
  align-items: center;
}

.rm-swatch {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 2px;
  flex-shrink: 0;
}

.rm-sym {
  font-weight: 700;
  font-size: 0.82em;
  line-height: 1;
}

/* Access level colors */
.rm-a-green,
.rm-a-green-text {
  color: #2e7d32;
}

.rm-swatch.rm-a-green {
  background: #2e7d32;
}

.rm-a-yellow,
.rm-a-yellow-text {
  color: #f57f17;
}

.rm-swatch.rm-a-yellow {
  background: #f9a825;
}

.rm-a-red,
.rm-a-red-text {
  color: #c62828;
}

.rm-swatch.rm-a-red {
  background: #c62828;
}

.rm-a-unknown,
.rm-a-unknown-text {
  color: #757575;
}

.rm-swatch.rm-a-unknown {
  background: #9e9e9e;
}

.rm-a-letter {
  min-width: 0.55rem;
  text-align: center;
}

/* Verification */
.rm-swatch.rm-v-swatch.rm-v-confirmed {
  background: #2e7d32;
}

.rm-v-confirmed {
  color: #2e7d32;
}

.rm-swatch.rm-v-swatch.rm-v-likely {
  background: #1565c0;
}

.rm-v-likely {
  color: #1565c0;
}

.rm-swatch.rm-v-swatch.rm-v-needs_review {
  background: #ef6c00;
}

.rm-v-needs_review {
  color: #ef6c00;
}

.rm-swatch.rm-v-swatch.rm-v-archived {
  background: #757575;
}

.rm-v-archived {
  color: #757575;
}

.rm-legend {
  font-size: 0.9em;
  margin: 0.75rem 0 1rem;
  padding: 0.65rem 0.85rem;
  border-left: 3px solid var(--md-primary-fg-color, #3f51b5);
  background: var(--md-code-bg-color, rgba(0, 0, 0, 0.04));
}

[data-md-color-scheme="slate"] .rm-legend {
  background: rgba(255, 255, 255, 0.05);
}

/* Collapsible catalog index sections (equipment, people, curriculum) */
.md-typeset details.rm-catalog-details,
.md-typeset details {
  border: 1px solid var(--md-default-fg-color--lightest, rgba(0, 0, 0, 0.08));
  border-radius: 4px;
  padding: 0.25rem 0.75rem 0.75rem;
  margin: 0.75rem 0;
  background: var(--md-code-bg-color, rgba(0, 0, 0, 0.02));
}

.md-typeset details > summary {
  font-weight: 600;
  cursor: pointer;
  padding: 0.35rem 0;
}

.md-typeset details details {
  margin: 0.5rem 0 0.25rem 0.75rem;
  background: transparent;
}

[data-md-color-scheme="slate"] .md-typeset details {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
}
