/*
** General
*/

.wp-editor.wp-autoresize {
  font-size: calc(var(--font-size) * 1px);
  padding: 1em !important;
}

.wp-editor,
.editor-contents {
  text-align: justify;
}


/*
** Anchor
*/

.wp-editor a,
.editor-contents a {
  display: inline-block;
  color: var(--black);
  text-decoration: underline;
  transition: var(--transition);
}

@media (hover: hover) and (pointer: fine) {
  .editor-contents a:hover {
    opacity: 0.6;
  }
}


/*
** Title
*/

.wp-editor h1, .wp-editor h2, .wp-editor h3, .wp-editor h4, .wp-editor h5, .wp-editor h6,
.editor-contents h1, .editor-contents h2, .editor-contents h3, .editor-contents h4, .editor-contents h5, .editor-contents h6 {
  font-family: var(--noto-sans);
  font-weight: 500;
  line-height: 1.25;
}

.wp-editor h1:not(:last-child), .wp-editor h2:not(:last-child), .wp-editor h3:not(:last-child), .wp-editor h4:not(:last-child), .wp-editor h5:not(:last-child), .wp-editor h6:not(:last-child),
.editor-contents h1:not(:last-child), .editor-contents h2:not(:last-child), .editor-contents h3:not(:last-child), .editor-contents h4:not(:last-child), .editor-contents h5:not(:last-child), .editor-contents h6:not(:last-child) {
  margin-bottom: 1em;
}

.wp-editor h1,
.editor-contents h1 {
  font-size: 2em;
  color: var(--red);
}

.wp-editor h2,
.editor-contents h2 {
  font-size: 1.5em;
  color: var(--red);
}

.wp-editor h3,
.wp-editor h4,
.editor-contents h3,
.editor-contents h4 {
  font-size: 1.25em;
}

.wp-editor h5,
.wp-editor h6,
.editor-contents h5,
.editor-contents h6 {
  font-size: 1.15em;
}


/*
** Table
*/

.wp-editor table th,
.wp-editor table td,
.editor-contents table th,
.editor-contents table td {
  vertical-align: middle;
}

.wp-editor table:not(:last-child),
.editor-contents table:not(:last-child) {
  margin-bottom: 1em;
}


/*
** List
*/

.wp-editor ol,
.wp-editor ul,
.editor-contents ol,
.editor-contents ul {
  list-style-position: inside;
}

.wp-editor ol:not(:last-child),
.wp-editor ul:not(:last-child),
.editor-contents ol:not(:last-child),
.editor-contents ul:not(:last-child) {
  margin-bottom: 1em;
}

.wp-editor ol,
.editor-contents ol {
  list-style-type: decimal;
}

.wp-editor ul,
.editor-contents ul {
  list-style-type: initial;
}


/*
** Image
*/

.wp-editor img,
.editor-contents img {
  width: auto;
  max-width: 100%;
  vertical-align: bottom;
}


/*
** Text
*/

.wp-editor strong,
.editor-contents strong {
  font-weight: bold;
}

.wp-editor em,
.editor-contents em {
  font-style: italic;
}

.wp-editor p:not(:last-child),
.editor-contents p:not(:last-child) {
  margin-bottom: 1em;
}