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

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content h5,
.rich-content h6 {
  color: #0f172a;
  font-weight: 700;
  line-height: 1.25;
  margin: 1.75rem 0 0.75rem;
}

.rich-content h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.rich-content h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.rich-content h3 {
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
}

.rich-content h4,
.rich-content h5,
.rich-content h6 {
  font-size: 1.15rem;
}

.rich-content p,
.rich-content ul,
.rich-content ol,
.rich-content blockquote,
.rich-content table,
.rich-content figure,
.rich-content pre {
  margin-bottom: 1.25rem;
}

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

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

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

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

.rich-content a {
  color: #0369a1;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.rich-content blockquote {
  border-left: 4px solid #0284c7;
  color: #475569;
  font-style: italic;
  margin-left: 0;
  margin-right: 0;
  padding-left: 1.25rem;
}

.rich-content img,
.rich-content video,
.rich-content iframe {
  height: auto;
  max-width: 100%;
}

.rich-content img {
  border-radius: 0.75rem;
  display: inline-block;
}

.rich-content figure {
  margin-left: 0;
  margin-right: 0;
}

.rich-content figure img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.rich-content figcaption {
  color: #64748b;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  text-align: center;
}

.rich-content table {
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  width: 100%;
}

.rich-content th,
.rich-content td {
  border: 1px solid #cbd5e1;
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.rich-content th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
}

.rich-content .rich-lead {
  color: #475569;
  font-size: 1.2rem;
  line-height: 1.8;
}

.rich-content .rich-button {
  background: #0f172a;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 700;
  padding: 0.7rem 1rem;
  text-decoration: none;
}

.rich-content .rich-button:hover {
  background: #334155;
}

.rich-content .rich-image-rounded {
  border-radius: 1rem;
}

.rich-content .rich-image-shadow {
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.rich-content .alignleft,
.rich-content img.alignleft {
  float: left;
  margin: 0.4rem 1.25rem 1rem 0;
}

.rich-content .alignright,
.rich-content img.alignright {
  float: right;
  margin: 0.4rem 0 1rem 1.25rem;
}

.rich-content .aligncenter,
.rich-content img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.rich-content::after {
  clear: both;
  content: "";
  display: block;
}

@media (max-width: 640px) {
  .rich-content {
    font-size: 1rem;
  }

  .rich-content .alignleft,
  .rich-content .alignright,
  .rich-content img.alignleft,
  .rich-content img.alignright {
    display: block;
    float: none;
    margin-left: auto;
    margin-right: auto;
  }
}
