/* ── Comments (activity detail) ── */

.comments-section {
  margin: 16px 16px 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.comments-heading {
  font-size: 0.9rem;
  margin: 0 0 10px;
  color: var(--text-muted);
}

.comments-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-item {
  background: var(--surface-alt);
  border-radius: 8px;
  padding: 8px 10px;
}

.comment-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}

.comment-author {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
}

.comment-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* A follower's comment submitted but not yet republished by the owner. The
   "pending" cue is not typography-only: the badge carries text + an aria-label
   (see docs/invariants/accessibility.md). The italic + muted card is the
   visual reinforcement, not the sole signal. */
.comment-pending {
  opacity: 0.7;
}

.comment-pending .comment-text {
  font-style: italic;
}

.comment-pending-badge {
  font-size: 0.7rem;
  font-style: italic;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 6px;
  line-height: 1.4;
}

.comment-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre-wrap;
  color: var(--text);
}

.comments-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}

/* Owner comment input. */

.comment-form {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-form-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.comment-input {
  display: block;
  width: 100%;
  min-height: 56px;
  font-size: 0.9rem;
  font-family: inherit;
  line-height: 1.4;
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  resize: vertical;
  box-sizing: border-box;
  background: var(--surface);
  color: var(--text);
}

.comment-input:focus {
  outline: none;
  border-color: var(--accent);
}

.comment-submit {
  align-self: flex-end;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.comment-submit:disabled {
  opacity: 0.5;
  cursor: default;
}
