/* Rich text content styling */

.rich-text {
  color: var(--rt-body, #1f2937);
  line-height: 1.75;
  font-size: 1rem;
}

.dark .rich-text {
  --rt-body: #e5e7eb;
}

.rich-text > * + * {
  margin-top: 1.25em;
}

.rich-text h1,
.rich-text h2,
.rich-text h3,
.rich-text h4 {
  font-weight: 700;
  color: var(--rt-head, #111827);
  line-height: 1.3;
  margin-top: 2em;
  margin-bottom: 0.75em;
}

.dark .rich-text h1,
.dark .rich-text h2,
.dark .rich-text h3,
.dark .rich-text h4 {
  --rt-head: #f3f4f6;
}

.rich-text h1 {
  font-size: 2rem;
}

.rich-text h2 {
  font-size: 1.5rem;
}

.rich-text h3 {
  font-size: 1.25rem;
}

.rich-text h4 {
  font-size: 1.125rem;
}

.rich-text p {
  margin: 0;
}

.rich-text ul,
.rich-text ol {
  padding-left: 1.5rem;
  margin: 0;
}

.rich-text li + li {
  margin-top: 0.25em;
}

.rich-text strong {
  font-weight: 600;
}

.rich-text a {
  color: #2563eb;
  text-decoration: underline;
}

.dark .rich-text a {
  color: #60a5fa;
}

.rich-text blockquote {
  border-left: 4px solid #d1d5db;
  padding-left: 1rem;
  font-style: italic;
  color: #4b5563;
}

.dark .rich-text blockquote {
  border-color: #374151;
  color: #9ca3af;
}

.rich-text table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5em;
}

.rich-text th,
.rich-text td {
  border: 1px solid #d1d5db;
  padding: 0.75em;
}

.dark .rich-text th,
.dark .rich-text td {
  border-color: #374151;
}

.rich-text code {
  background-color: rgba(15, 23, 42, 0.08);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.95em;
}

.dark .rich-text code {
  background-color: rgba(148, 163, 184, 0.2);
}

.rich-text pre {
  background-color: rgba(15, 23, 42, 0.08);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
}

.dark .rich-text pre {
  background-color: rgba(148, 163, 184, 0.15);
}

