/* TinyMCE content styles scoped for frontend rendering.
 * The editor preview runs in an isolated iframe. Frontend pages do not, so this file first
 * reverts site/theme CSS inside .tinymce-content and then reapplies TinyMCE's default content rules.
 */
.tinymce-content,
.tinymce-content * {
  all: revert;
}

.tinymce-content {
  display: block;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.4;
  color: initial;
}

.tinymce-content * {
  box-sizing: content-box;
}

.tinymce-content a {
  color: LinkText;
  text-decoration: underline;
}

.tinymce-content table {
  border-collapse: collapse;
}

.tinymce-content table:not([cellpadding]) td,
.tinymce-content table:not([cellpadding]) th {
  padding: .4rem;
}

.tinymce-content table[border]:not([border="0"]):not([style*="border-width"]) td,
.tinymce-content table[border]:not([border="0"]):not([style*="border-width"]) th {
  border-width: 1px;
}

.tinymce-content table[border]:not([border="0"]):not([style*="border-style"]) td,
.tinymce-content table[border]:not([border="0"]):not([style*="border-style"]) th {
  border-style: solid;
}

.tinymce-content table[border]:not([border="0"]):not([style*="border-color"]) td,
.tinymce-content table[border]:not([border="0"]):not([style*="border-color"]) th {
  border-color: #ccc;
}

.tinymce-content figure {
  display: table;
  margin: 1rem auto;
}

.tinymce-content figure figcaption {
  color: #999;
  display: block;
  margin-top: .25rem;
  text-align: center;
}

.tinymce-content hr {
  border-color: #ccc;
  border-style: solid;
  border-width: 1px 0 0 0;
}

.tinymce-content code {
  background-color: #e8e8e8;
  border-radius: 3px;
  padding: .1rem .2rem;
}

.tinymce-content:not([dir="rtl"]) blockquote,
.tinymce-content :not([dir="rtl"]) blockquote {
  border-left: 2px solid #ccc;
  margin-left: 1.5rem;
  padding-left: 1rem;
}

.tinymce-content[dir="rtl"] blockquote,
.tinymce-content [dir="rtl"] blockquote {
  border-right: 2px solid #ccc;
  margin-right: 1.5rem;
  padding-right: 1rem;
}

.tinymce-content img,
.tinymce-content video,
.tinymce-content iframe {
  max-width: 100%;
}