/* Hooks, the user page and the admin page (docs/design-system.md,
   Surfaces): a 760px column of panels; a row is the phrase over its
   explanation and badges, then its actions. A hook template opens in a
   modal with the phrase, the explanation and the document flag. */

.hooks__sections {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.hooks__placeholder {
  display: flex;
  justify-content: center;
  padding: var(--space-12);
}

.hooks__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.hooks__row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.hooks__row-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  overflow-wrap: break-word;
}

.hooks__phrase {
  font-weight: var(--weight-semibold);
}

.hooks__row-text--hidden .hooks__phrase {
  color: var(--color-text-muted);
}

.hooks__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* The document flag is a sentence; on a phone it wraps inside the row. */
.hooks__badges .badge {
  white-space: normal;
}

.hooks__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hooks__note {
  margin: 0;
  font-size: var(--text-note);
  color: var(--color-text-muted);
}
