/* Help layer body (tags reference and other mini-help content) */

.panel-help-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.panel-help-body__lead {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dim);
}

.panel-help-body__content {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.mini-help__sections {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-help__section {
  border-top: 1px solid var(--hairline);
  overflow: hidden;
}

.mini-help__section-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  user-select: none;
}

.mini-help__section-summary::-webkit-details-marker {
  display: none;
}

.mini-help__section-caret {
  display: inline-flex;
  transition: transform 0.15s ease;
}

.mini-help__section:not([open]) .mini-help__section-caret {
  transform: rotate(-90deg);
}

.mini-help__section-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 8px 8px;
}

.mini-help__tag-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
  border-radius: 8px;
  font-size: 12px;
}

.mini-help__tag-row:hover {
  background: color-mix(in srgb, var(--text) 5%, transparent);
}

.mini-help__tag-syntax {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-help__tag-sep {
  color: var(--text-faint);
}

.mini-help__tag-label {
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-help__tag-count {
  min-width: 1.5em;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text-faint);
  font-size: 11px;
}
