/* ── Shared rich text (js/components/richtext.js) ──────────────────────────
   Editor toolbar + rendered body. Used by the News editor and profile About. */

.rt-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}
.rt-fmt-btn {
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--text);
  border-radius: 7px;
  padding: 4px 9px;
  font-size: 0.82rem;
  line-height: 1.2;
  cursor: pointer;
  min-width: 30px;
}
.rt-fmt-btn:hover { background: var(--accent-soft); }
.rt-toolbar-sep {
  width: 1px;
  align-self: stretch;
  margin: 2px 4px;
  background: var(--line);
}

/* ── Rendered output ─────────────────────────────────────────────────────── */
.rt-p { margin: 0 0 8px; }
.rt-heading {
  margin: 14px 0 6px;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
}
.rt-heading:first-child { margin-top: 0; }
.rt-hr {
  margin: 12px 0;
  border: none;
  border-top: 1px solid var(--line);
}
.rt-list { margin: 0 0 8px; padding-left: 20px; list-style: disc; }
.rt-li { margin: 0 0 4px; }
.rt-li.is-sub {
  list-style: circle;
  margin-left: 20px;
}
.rt-li.is-sub2 {
  list-style: square;
  margin-left: 40px;
}
