/* Shared by public wiki pages and the FCKeditor editing area. */
.wiki-content {
  /* Keep wiki body text dark in both the editor and public articles. */
  --text-color: #333333;
  font-family: var(--text-font, "DM Sans", sans-serif) !important;
  font-size: var(--body-font-size, 16px) !important;
  line-height: var(--body-line-height, 30px) !important;
  font-weight: var(--body-font-weight, 400);
  color: var(--text-color, #808287);
  overflow-wrap: anywhere;
}

/* Override font settings carried over from pasted text and legacy font tags. */
.wiki-content p,
.wiki-content div,
.wiki-content ul,
.wiki-content ol,
.wiki-content li,
.wiki-content table,
.wiki-content td,
.wiki-content th,
.wiki-content blockquote {
  /* Legacy editor HTML may nest paragraphs inside a heading. */
  font-family: var(--text-font, "DM Sans", sans-serif) !important;
  font-size: var(--body-font-size, 16px) !important;
  line-height: var(--body-line-height, 30px) !important;
  font-weight: var(--body-font-weight, 400);
  color: var(--text-color, #808287);
}

.wiki-content th {
  font-weight: 700;
}

.wiki-content span,
.wiki-content font,
.wiki-content strong,
.wiki-content b,
.wiki-content em,
.wiki-content i,
.wiki-content u,
.wiki-content s {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

/* Links can also carry font sizes copied from an external document. */
.wiki-content a:not([class]) {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.wiki-content h1,
.wiki-content h2,
.wiki-content h3,
.wiki-content h4,
.wiki-content h5,
.wiki-content h6 {
  font-family: var(--title-font, "Space Grotesk", sans-serif) !important;
  line-height: var(--line-height-heading, 1.2em) !important;
  color: var(--headings-color, #222429);
  margin-bottom: 1rem;
}

.wiki-content h1 { font-size: var(--h1-font-size, 60px) !important; }
.wiki-content h2 { font-size: var(--h2-font-size, 40px) !important; }
.wiki-content h3 { font-size: var(--h3-font-size, 30px) !important; }
.wiki-content h4 { font-size: var(--h4-font-size, 24px) !important; }
.wiki-content h5 { font-size: var(--h5-font-size, 20px) !important; }
.wiki-content h6 { font-size: var(--h6-font-size, 18px) !important; }

.wiki-content img { max-width: 100%; height: auto; }
