.cms-text {
  --cms-text-color: #6B7280;
  width: 100%;
  box-sizing: border-box;
  color: var(--cms-text-color);
}

.cms-text.seo-component {
  width: 100%;
}

@media (min-width: 640px) {

  .cms-text.seo-component {
    max-width: 640px;
  }
}

@media (min-width: 768px) {

  .cms-text.seo-component {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {

  .cms-text.seo-component {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {

  .cms-text.seo-component {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {

  .cms-text.seo-component {
    max-width: 1536px;
  }
}

.cms-text.seo-component {
  margin-left: auto;
  margin-right: auto;
}

.cms-text #inhoudsopgave {
  border-radius: 0.75rem;
  background-color: #F5F8FA;
  padding: 1.5rem;
  margin: 2.5rem 0 0;
}

.cms-text #inhoudsopgave ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  color: var(--cms-text-color);
  font-size: 1rem;
}

.cms-text #inhoudsopgave li {
  margin: 0;
  list-style: none;
}

/*
 * The generated table of contents is a navigation block rather than prose, so its entries keep the
 * body colour and only turn blue on hover. The link rules further down style links that sit inside
 * text; the id here outranks them, which is what holds this block to its own look.
 */
.cms-text #inhoudsopgave ul li a {
  text-decoration-line: none !important;
  color: var(--cms-text-color);
}

.cms-text #inhoudsopgave ul li a:hover {
  color: #1644D0;
}

.cms-text #inhoudsopgave h5 {
  color: #111827;
  margin: 0 0 1rem;
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 600;
  scroll-margin-top: 7rem;
}

.cms-text article {
  width: 100%;
}

@media (min-width: 640px) {

  .cms-text article {
    max-width: 640px;
  }
}

@media (min-width: 768px) {

  .cms-text article {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {

  .cms-text article {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {

  .cms-text article {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {

  .cms-text article {
    max-width: 1536px;
  }
}

.cms-text article {
  margin-left: auto;
  margin-right: auto;
}

.cms-text h1,
.cms-text h2,
.cms-text h3,
.cms-text h4,
.cms-text h5 {
  margin-bottom: 1rem;
}

/* A heading that opens the content starts flush, so it lines up with what sits beside it. */
.cms-text h1:not(:first-child),
.cms-text h2:not(:first-child),
.cms-text h3:not(:first-child),
.cms-text h4:not(:first-child),
.cms-text h5:not(:first-child) {
  margin-top: 2rem;
}
@media (min-width: 1024px) {

  .cms-text h1:not(:first-child),
.cms-text h2:not(:first-child),
.cms-text h3:not(:first-child),
.cms-text h4:not(:first-child),
.cms-text h5:not(:first-child) {
    margin-top: 4rem;
  }
}

.cms-text h1 {
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.cms-text h2 {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.cms-text h3 {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.cms-text h4 {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.cms-text h5 {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

/*
 * Editor content puts links in list items as well as paragraphs, and Tailwind preflight leaves a
 * bare link the colour of the text around it, so both containers are styled here.
 */
.cms-text p a,
.cms-text li a {
  --tw-text-opacity: 1;
  color: rgb(22 68 208 / var(--tw-text-opacity, 1));
  text-decoration-line: none !important;
}

.cms-text p a:hover,
.cms-text li a:hover {
  text-decoration-line: underline !important;
}

.cms-text p a:active,
.cms-text li a:active {
  --tw-text-opacity: 1;
  color: rgb(27 54 141 / var(--tw-text-opacity, 1));
  text-decoration-line: underline !important;
}

/*
 * The look of a download link. The terms of service page renders one with this class; an editor
 * can give any link the same look from the Link dialog > Advanced > Stylesheet Classes.
 * Declared after the link rules above so it wins.
 */
.cms-text a.download-button,
.cms-text a.download-button:hover,
.cms-text a.download-button:active {
  display: inline-block;
  width: fit-content;
  min-width: 120px;
  border-radius: 0.5rem;
  --tw-bg-opacity: 1;
  background-color: rgb(234 239 244 / var(--tw-bg-opacity, 1));
  padding: 1rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  --tw-text-opacity: 1 !important;
  color: rgb(45 63 77 / var(--tw-text-opacity, 1)) !important;
  text-decoration-line: none !important;
  transition-property: all;
  transition-duration: 200ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  animation-duration: 200ms;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.cms-text a.download-button:hover,
.cms-text a.download-button:hover:hover,
.cms-text a.download-button:active:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(209 222 230 / var(--tw-bg-opacity, 1));
}
.cms-text a.download-button:focus,
.cms-text a.download-button:hover:focus,
.cms-text a.download-button:active:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(144 195 255 / var(--tw-ring-opacity, 1));
}
.cms-text a.download-button:active,
.cms-text a.download-button:hover:active,
.cms-text a.download-button:active:active {
  --tw-bg-opacity: 1;
  background-color: rgb(185 205 218 / var(--tw-bg-opacity, 1));
}

.cms-text ol,
.cms-text ul {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  list-style-position: inside;
}

.cms-text ol {
  list-style-type: decimal;
}

.cms-text ul {
  list-style-type: disc;
}

.cms-text li p {
  display: inline;
}

.cms-text img {
  margin-top: 2rem;
  margin-bottom: 2rem;
  height: 24rem;
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
}

@media (min-width: 1024px) {

  .cms-text img {
    margin-top: 4rem;
    margin-bottom: 4rem;
  }
}

.cms-text blockquote {
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-left-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(22 68 208 / var(--tw-border-opacity, 1));
  padding-top: 1rem;
  padding-bottom: 1rem;
  padding-left: 1.5rem;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 400;
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

@media (min-width: 1024px) {

  .cms-text blockquote {
    margin-top: 4rem;
    margin-bottom: 4rem;
  }
}

