/* Modern rich content display – typography and spacing for editor output */

.rich-content {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #374151;
  max-width: 72ch;
}

.rich-content:first-child { margin-top: 0; }
.rich-content:last-child { margin-bottom: 0; }

.rich-content p {
  margin-top: 0;
  margin-bottom: 1.125rem;
}

.rich-content p:last-child {
  margin-bottom: 0;
}

.rich-content h2, .rich-content h3, .rich-content h4 {
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
  color: #111827;
}

.rich-content h2 { font-size: 1.375rem; }
.rich-content h3 { font-size: 1.2rem; }
.rich-content h4 { font-size: 1.1rem; }

.rich-content ul, .rich-content ol {
  margin-top: 0;
  margin-bottom: 1.125rem;
  padding-left: 1.5rem;
}

.rich-content li {
  margin-bottom: 0.4rem;
}

.rich-content ul { list-style-type: disc; }
.rich-content ol { list-style-type: decimal; }

.rich-content a {
  color: #2563eb;
  text-decoration: none;
  border-bottom: 1px solid rgba(37, 99, 235, 0.3);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.rich-content a:hover {
  color: #1d4ed8;
  border-bottom-color: #1d4ed8;
}

.rich-content strong { font-weight: 600; color: #111827; }
.rich-content em { font-style: italic; }

.rich-content blockquote {
  margin: 1.25rem 0;
  padding: 0.75rem 1.25rem;
  border-left: 4px solid #e5e7eb;
  background: rgba(249, 250, 251, 0.8);
  color: #4b5563;
  font-style: italic;
  border-radius: 0 6px 6px 0;
}

.rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Full-width layout for legal / long content (e.g. About page) */
.rich-content.rich-content--full {
  max-width: none;
}

.rich-content.rich-content--full p {
  margin-bottom: 1rem;
}

.rich-content.rich-content--full h2 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #e5e7eb;
}

.rich-content.rich-content--full h2:first-child {
  margin-top: 0;
}
