/* Rich text from TinyMCE (admin WYSIWYG) */
.rich-text {
  color: var(--clr-text);
  line-height: var(--lh-loose);
}

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

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

.rich-text p + p,
.rich-text p + ul,
.rich-text p + ol,
.rich-text ul + p,
.rich-text ol + p {
  margin-top: var(--sp-4);
}

.rich-text ul,
.rich-text ol {
  padding-left: 1.25em;
}

.rich-text li + li {
  margin-top: var(--sp-2);
}

.rich-text a {
  color: var(--clr-gold-dark, var(--clr-gold));
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.rich-text a:hover {
  color: var(--clr-gold);
}

.rich-text strong,
.rich-text b {
  font-weight: var(--fw-semi);
}

.rich-text h2,
.rich-text h3,
.rich-text h4 {
  font-family: var(--font-serif);
  font-weight: var(--fw-light);
  line-height: var(--lh-snug);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
}

.rich-text h2 { font-size: var(--fs-xl); }
.rich-text h3 { font-size: var(--fs-lg); }
.rich-text h4 { font-size: var(--fs-md); }

.rich-text img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.rich-text table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--sp-4);
}

.rich-text th,
.rich-text td {
  border: 1px solid var(--clr-border);
  padding: var(--sp-2) var(--sp-3);
  text-align: left;
}
