/**
 * Typography for admin-authored rich content (blog body, guide steps,
 * service overview, CMS pages). The project has no Tailwind Typography
 * plugin installed, so `.prose` is otherwise a bare, unstyled class —
 * this file is what actually renders headings/lists/tables/etc. It is
 * loaded once, sitewide, and every rich-content wrapper reuses it so a
 * heading looks the same in a blog post as it does in a guide step.
 */
.prose { color: #10213F; }
.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }

.prose p { margin: 0 0 1.1em; }

.prose h1, .prose h2, .prose h3, .prose h4 {
  color: #092B66;
  font-weight: 800;
  line-height: 1.25;
  margin: 1.6em 0 0.6em;
}
.prose h1 { font-size: 1.9em; }
.prose h2 { font-size: 1.55em; }
.prose h3 { font-size: 1.3em; }
.prose h4 { font-size: 1.1em; }

.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 0.35em 0; }
.prose li > p { margin: 0.3em 0; }

/* TinyMCE's checklist output: <ul class="tox-checklist"><li>...</li></ul>,
   with a `data-mce-checked`-driven checked state. We only need it to read
   correctly on the (non-interactive) public page. */
.prose ul.tox-checklist { list-style: none; padding-left: 0.1em; }
.prose ul.tox-checklist > li {
  position: relative;
  padding-left: 1.7em;
}
.prose ul.tox-checklist > li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.2em;
  width: 1.05em; height: 1.05em;
  border: 1.5px solid #B8860B;
  border-radius: 4px;
  background: #fff;
}
.prose ul.tox-checklist > li[data-mce-checked="1"]::before,
.prose ul.tox-checklist > li.tox-checklist--checked::before {
  background: #B8860B;
}
.prose ul.tox-checklist > li[data-mce-checked="1"]::after,
.prose ul.tox-checklist > li.tox-checklist--checked::after {
  content: '';
  position: absolute;
  left: 0.32em; top: 0.42em;
  width: 0.4em; height: 0.65em;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(40deg);
}

.prose blockquote {
  margin: 1.2em 0;
  padding: 0.2em 1.2em;
  border-left: 3px solid #B8860B;
  color: #60708A;
  font-style: italic;
}

.prose a { color: #092B66; text-decoration: underline; text-decoration-color: #B8860B; text-underline-offset: 2px; }
.prose a:hover { color: #B8860B; }

.prose hr { border: none; border-top: 1px solid #DCE4EF; margin: 2em 0; }

.prose code {
  background: #F3F7FD;
  border: 1px solid #DCE4EF;
  border-radius: 4px;
  padding: 0.15em 0.4em;
  font-size: 0.9em;
}
.prose pre {
  background: #10213F;
  color: #F3F7FD;
  border-radius: 10px;
  padding: 1em 1.2em;
  overflow-x: auto;
}
.prose pre code { background: none; border: none; padding: 0; color: inherit; }

.prose sup, .prose sub { font-size: 0.75em; }

.prose mark, .prose span[style*="background-color"] { border-radius: 2px; padding: 0 0.1em; }

/* Images: TinyMCE's image_class_list writes one of these instead of an
   inline float, so alignment is controlled centrally here. */
.prose img { max-width: 100%; height: auto; border-radius: 10px; }
.prose img.img-align-left { float: left; margin: 0.3em 1.4em 1em 0; max-width: 50%; }
.prose img.img-align-right { float: right; margin: 0.3em 0 1em 1.4em; max-width: 50%; }
.prose img.img-align-center { display: block; margin: 1.2em auto; }
.prose figure { margin: 1.4em 0; }
.prose figure.img-align-left { float: left; margin: 0.3em 1.4em 1em 0; max-width: 50%; }
.prose figure.img-align-right { float: right; margin: 0.3em 0 1em 1.4em; max-width: 50%; }
.prose figure.img-align-center { text-align: center; }
.prose figcaption { font-size: 0.85em; color: #60708A; margin-top: 0.5em; text-align: center; }

/* Responsive video embeds (YouTube/Vimeo, inserted by the media plugin) */
.prose iframe { max-width: 100%; border-radius: 10px; border: 0; }
.prose .mce-preview-object,
.prose [data-ephox-embed-iri],
.prose .rich-embed-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  margin: 1.4em 0;
}
.prose .rich-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 0.95em;
}
.prose th, .prose td {
  border: 1px solid #DCE4EF;
  padding: 0.55em 0.75em;
  text-align: left;
  vertical-align: top;
}
.prose th { background: #F3F7FD; font-weight: 700; color: #092B66; }
.prose tr:nth-child(even) td { background: #FAFBFD; }
