.rich-text {
  color: var(--text);
  max-width: none;
}

.rich-text :where(p, ul, ol, blockquote, pre, table) {
  margin-bottom: 1rem;
  margin-top: 0;
}

.rich-text :where(h1, h2, h3, h4, h5, h6) {
  color: var(--text);
  font-weight: 600;
  line-height: 1.25;
  margin: 1.5rem 0 0.75rem;
}

.rich-text h1 {
  font-size: 1.5rem;
}

.rich-text h2 {
  font-size: 1.25rem;
}

.rich-text h3 {
  font-size: 1.125rem;
}

.rich-text a {
  color: var(--link);
  text-decoration: underline;
}

.rich-text ul,
.rich-text ol {
  padding-left: 1.5rem;
}

.rich-text ul {
  list-style: disc;
}

.rich-text ol {
  list-style: decimal;
}

.rich-text code {
  background: var(--surface-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.875em;
  padding: 0.125rem 0.25rem;
}

.rich-text pre {
  background: var(--surface-muted);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  padding: 1rem;
}

.rich-text pre code {
  background: transparent;
  padding: 0;
}

.rich-text blockquote {
  border-left: 3px solid var(--border-strong);
  color: var(--text-muted);
  padding-left: 1rem;
}
