/* Gedeelde tekstopmaak voor de website en de visuele editor. */
:is(.markdown, .visual-editor) {
  font-family: "Minion Pro", "Sabon LT Pro", Georgia, serif;
  font-size: 17px;
  line-height: normal;
}

:is(.markdown, .visual-editor) :is(h1, h2, h3, h4, h5, h6) {
  line-height: 1.25;
  margin: 1.1em 0 0.5em;
  letter-spacing: normal;
}

:is(.markdown, .visual-editor) a:not(.btn):hover,
:is(.markdown, .visual-editor) a:not(.btn):focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

:is(.markdown, .visual-editor) .small-caps {
  font-variant-caps: small-caps;
}

:is(.markdown, .visual-editor) h1 {
  font-size: 2em;
}

:is(.markdown, .visual-editor) h4 {
  font-size: 1em;
}

:where(.markdown, .visual-editor) :is(h2, h3):first-child {
  margin-top: 0;
}

:is(.markdown, .visual-editor) p {
  line-height: 1.4;
  margin: 0.8em 0;
}

:is(.markdown, .visual-editor) img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 18px auto;
}

:is(.markdown, .visual-editor) h2 {
  font-size: 1.48rem;
  margin-top: 1.5em;
}

:is(.markdown, .visual-editor) h3 {
  font-size: 1.25rem;
}

:is(.markdown, .visual-editor) h5,
:is(.markdown, .visual-editor) .credit {
  font-size: 0.86rem;
  text-align: right;
  margin: 0.6em 0 0.2em;
}

:is(.markdown, .visual-editor) h6,
:is(.markdown, .visual-editor) .composer {
  font-size: 0.88rem;
  font-weight: 400;
  text-align: right;
  margin: 0.25em 0 1em;
}

:is(.markdown, .visual-editor) h6,
:is(.markdown, .visual-editor) h6.composer {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0.25em 0 1em auto;
  background: #e6eded;
  color: rgba(0, 0, 0, 0.87);
  border-radius: 999px;
  padding: 5px 10px;
  text-align: left;
}

:is(.markdown, .visual-editor) ul {
  padding-left: 22px;
  line-height: 1.6;
}

:is(.markdown, .visual-editor) blockquote {
  border-left: 4px solid var(--primary, #639c9c);
  margin: 1em 0;
  padding: 0.3em 1em;
  color: var(--muted);
}
