.afra-rich-content {
  display: flow-root;
  gap: 16px;
  color: #111827;
  font-size: 14px;
  line-height: 2;
}

.afra-rich-content > * {
  margin: 0;
}

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

.afra-rich-content h1,
.afra-rich-content h2,
.afra-rich-content h3,
.afra-rich-content h4,
.afra-rich-content h5,
.afra-rich-content h6 {
  color: #111827;
  line-height: 1.6;
  font-weight: 800;
}

.afra-rich-content h1 {
  font-size: clamp(26px, 2.1vw, 34px);
}

.afra-rich-content h2 {
  font-size: clamp(22px, 1.9vw, 29px);
}

.afra-rich-content h3 {
  font-size: clamp(19px, 1.6vw, 24px);
}

.afra-rich-content h4 {
  font-size: 18px;
}

.afra-rich-content h5,
.afra-rich-content h6 {
  font-size: 15px;
}

.afra-rich-content p,
.afra-rich-content li,
.afra-rich-content blockquote,
.afra-rich-content td,
.afra-rich-content th,
.afra-rich-content figcaption {
  color: #4b5563;
}

.afra-rich-content ul,
.afra-rich-content ol {
  margin: 0;
  padding-inline-start: 22px;
  display: grid;
  gap: 10px;
}

.afra-rich-content a {
  color: #8c5a12;
  font-weight: 700;
  text-decoration: none;
}

.afra-rich-content blockquote {
  padding: 14px 16px;
  border-inline-start: 4px solid rgba(180, 124, 18, 0.36);
  border-radius: 0 18px 18px 0;
  background: rgba(255, 247, 228, 0.9);
}

.afra-rich-content figure {
  display: grid;
  gap: 10px;
}

.afra-rich-content figure.image,
.afra-rich-content figure.afra-media-block {
  margin: 1.5rem auto;
  max-width: 100%;
}

.afra-rich-content figure.image.image-style-side {
  float: inline-end;
  width: min(46%, 360px);
  margin-block: 0.2rem 1rem;
  margin-inline: 1.25rem 0;
}

.afra-rich-content figure.image.image-style-align-left {
  float: left;
  width: min(46%, 360px);
  margin: 0.2rem 1.25rem 1rem 0;
}

.afra-rich-content figure.image.image-style-align-right {
  float: right;
  width: min(46%, 360px);
  margin: 0.2rem 0 1rem 1.25rem;
}

.afra-rich-content figure.image.image-style-align-center {
  margin-inline: auto;
}

.afra-rich-content .afra-media-block {
  display: grid;
  gap: 10px;
  margin-inline: auto;
}

.afra-rich-content img,
.afra-rich-content video,
.afra-rich-content audio,
.afra-rich-content iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: rgba(248, 250, 252, 0.98);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.afra-rich-content img,
.afra-rich-content video {
  max-height: 620px;
  object-fit: contain;
}

.afra-rich-content audio {
  width: min(100%, 460px);
  padding: 10px 12px;
}

.afra-rich-content figure.table {
  display: block;
  overflow-x: auto;
}

.afra-rich-content figure.table table {
  min-width: 100%;
}

.afra-rich-content .afra-embed-frame {
  overflow: hidden;
  border-radius: 24px;
  background: #0f172a;
}

.afra-rich-content .afra-embed-frame iframe {
  border: 0;
  aspect-ratio: 16 / 9;
  min-height: 240px;
}

.afra-rich-content .afra-color-default {
  color: #111827;
}

.afra-rich-content .afra-color-gold {
  color: #8c5a12;
}

.afra-rich-content .afra-color-teal {
  color: #0f766e;
}

.afra-rich-content .afra-color-navy {
  color: #1d4ed8;
}

.afra-rich-content .afra-color-berry {
  color: #b42318;
}

.afra-rich-content .afra-color-muted {
  color: #4b5563;
}

.afra-rich-content .afra-bg-cream {
  background: #fff5dc;
}

.afra-rich-content .afra-bg-lavender {
  background: #ede9fe;
}

.afra-rich-content .afra-bg-mint {
  background: #dcfce7;
}

.afra-rich-content .afra-bg-sky {
  background: #dbeafe;
}

.afra-rich-content .afra-bg-rose {
  background: #fee2e2;
}

.afra-rich-content .afra-bg-smoke {
  background: #f3f4f6;
}

.afra-rich-content .afra-font-default {
  font-family: "Dana", sans-serif;
}

.afra-rich-content .afra-font-serif {
  font-family: Georgia, "Times New Roman", serif;
}

.afra-rich-content .afra-font-sans {
  font-family: Arial, Helvetica, sans-serif;
}

.afra-rich-content .afra-font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
