.richtext {
  color: #0f172a;
  line-height: 1.75;
  font-size: 1.05rem;
}

.richtext > * + * {
  margin-top: 1rem;
}

.richtext h1,
.richtext h2,
.richtext h3,
.richtext h4,
.richtext h5,
.richtext h6 {
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.richtext h1 {
  font-size: 2.25rem;
}

.richtext h2 {
  font-size: 1.875rem;
}

.richtext h3 {
  font-size: 1.5rem;
}

.richtext h4 {
  font-size: 1.25rem;
}

.richtext h5 {
  font-size: 1.125rem;
}

.richtext h6 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.richtext p {
  margin: 0.75rem 0;
}

.richtext a {
  color: #007a5e;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.richtext a:hover {
  color: #089975;
}

.richtext ul,
.richtext ol {
  margin: 1rem 0 1rem 1.5rem;
  padding-left: 1.5rem;
}

.richtext ul {
  list-style-type: disc;
}

.richtext ol {
  list-style-type: decimal;
}

.richtext li {
  margin: 0.35rem 0;
}

.richtext blockquote {
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  border-left: 4px solid #007a5e;
  background: #f8fafc;
  color: #475569;
}

.richtext code {
  background: #f1f5f9;
  padding: 0.2rem 0.35rem;
  border-radius: 0.25rem;
  font-size: 0.95em;
}

.richtext pre {
  background: #0f172a;
  color: #f8fafc;
  padding: 1rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  font-size: 0.95em;
}

.richtext table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.richtext th,
.richtext td {
  border: 1px solid #e2e8f0;
  padding: 0.65rem 0.75rem;
  text-align: left;
}

.richtext thead {
  background: #f1f5f9;
}

.richtext img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

.richtext hr {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 2rem 0;
}

.richtext figure {
  margin: 1.5rem 0;
}
