.rich-content {
  color: #d7dde0;
  font-size: 1.06rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

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

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

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

.rich-content h2,
.rich-content h3 {
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.rich-content h2 {
  margin: 2rem 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.rich-content h3 {
  margin: 1.5rem 0 0.625rem;
  font-size: clamp(1.3rem, 2.4vw, 1.55rem);
}

.rich-content a {
  color: #00ff66;
  text-decoration: underline;
  text-decoration-color: rgba(0, 255, 102, 0.4);
  text-underline-offset: 0.2em;
}

.rich-content a:hover {
  color: #6cffb2;
  text-decoration-color: currentColor;
}

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

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

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

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

.rich-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid #00ff66;
  border-radius: 0 12px 12px 0;
  background: rgba(0, 255, 102, 0.055);
  color: #fff;
}

.rich-content blockquote > :first-child {
  margin-top: 0;
}

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

.rich-content figure {
  margin: 1.75rem 0;
}

.rich-content img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  border: 1px solid rgba(0, 255, 102, 0.2);
  border-radius: 16px;
}

.rich-content figcaption {
  margin-top: 0.625rem;
  color: #aab3ba;
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
}

.rich-content figure.table {
  max-width: 100%;
  margin: 1.5rem 0;
  overflow-x: auto;
}

.rich-content table {
  display: table;
  width: max-content;
  min-width: 420px;
  margin: 0;
  border: 1px solid rgba(0, 255, 102, 0.18);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
}

.rich-content th,
.rich-content td {
  min-width: 140px;
  padding: 0.75rem 0.875rem;
  border: 0;
  border-right: 1px solid #253036;
  border-bottom: 1px solid #253036;
  background: rgba(255, 255, 255, 0.015);
  text-align: left;
  vertical-align: top;
}

.rich-content tr:last-child > * {
  border-bottom: 0;
}

.rich-content tr > *:last-child {
  border-right: 0;
}

.rich-content th {
  background: rgba(0, 255, 102, 0.08);
  color: #fff;
}

@media (max-width: 480px) {
  .rich-content {
    font-size: 1rem;
    line-height: 1.7;
  }

  .rich-content blockquote {
    padding: 0.875rem 1rem;
  }
}
