/*
 * Maintained HTML editor paragraph-format styles.
 *
 * These styles replace the legacy TinyMCE format classes with the
 * format_XXX classes generated by the JSForm paragraph-format picker.
 * Format padding and margins are reduced by 20 percent from the legacy
 * presentation while colours, typography, borders, and icon sizes remain.
 */

div.JSFormHtmlEditorSurface p.format_code,
div.JSFormHtmlEditorSurface p.format_formula {
  box-sizing: border-box;
  max-width: 950px;
  width: 100%;
  margin-top: 16px;
  margin-bottom: 0;
}

div.JSFormHtmlEditorSurface p[class^='format_'] + p[class^='format_'],
div.JSFormHtmlEditorSurface p[class^='format_'] + p[class*=' format_'],
div.JSFormHtmlEditorSurface p[class*=' format_'] + p[class^='format_'],
div.JSFormHtmlEditorSurface p[class*=' format_'] + p[class*=' format_'] {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

div.JSFormHtmlEditorSurface p.format_code {
  padding: 16px;
  background-color: #f4f4f4;
  color: #000;
  font-family: Consolas, 'Andale Mono', 'Lucida Console',
    'Lucida Sans Typewriter', Monaco, 'Courier New', monospace;
  font-size: 1em;
  line-height: 1.55em;
  white-space: pre-wrap;
}

div.JSFormHtmlEditorSurface p.format_code + *:not(.format_code) {
  margin-top: 16px;
}

div.JSFormHtmlEditorSurface p.format_formula {
  padding: 4px 8px 4px 12.8px;
  background-color: #f8f8f8;
  color: #666;
  font-family: Baskerville, 'Palatino Linotype', Palatino,
    'Century Schoolbook L', 'Times New Roman', serif;
  font-size: 1.25em;
  font-style: italic;
  line-height: 1.8em;
}

div.JSFormHtmlEditorSurface p.format_formula + *:not(.format_formula) {
  margin-top: 16px;
}

div.JSFormHtmlEditorSurface p.format_button a {
  display: inline-block;
  margin: 6.4px 0;
  padding: 8px;
  border-radius: 3px;
  background-color: var(--lor-color);
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}

div.JSFormHtmlEditorSurface p.format_button a + a {
  margin-left: 4px;
}

div.JSFormHtmlEditorSurface p.format_button a:hover,
div.JSFormHtmlEditorSurface p.format_button a:focus {
  background-color: var(--lor-color-dark);
  color: #fff;
  text-decoration: none;
}

div.JSFormHtmlEditorSurface p.format_image_caption {
  clear: both;
  margin-top: 16px;
  margin-bottom: 0;
  margin-left: 12px;
  font-style: italic;
}

div.JSFormHtmlEditorSurface p.format_warning,
div.JSFormHtmlEditorSurface p.format_warning strong {
  position: relative;
  padding: 16px 16px 16px 56px;
  background-color: red;
  color: #fff;
}

div.JSFormHtmlEditorSurface p.format_warning strong {
  padding: 0;
}

div.JSFormHtmlEditorSurface p.format_warning::before {
  position: absolute;
  top: 7.2px;
  left: 7.2px;
  width: 45px;
  height: 45px;
  background: url('/gr_elemente/icons/svg/triangle-exclamation-solid-full.svg')
    no-repeat center;
  background-size: contain;
  color: #fff;
  content: '';
  mask: url('/gr_elemente/icons/svg/triangle-exclamation-solid-full.svg')
    no-repeat center;
  mask-size: contain;
  -webkit-mask: url('/gr_elemente/icons/svg/triangle-exclamation-solid-full.svg')
    no-repeat center;
  -webkit-mask-size: contain;
}

div.JSFormHtmlEditorSurface p.format_emphasise {
  display: table;
  width: auto;
  margin: 6.4px 0;
  padding: 8px;
  border-radius: 3px;
  background-color: #f4f4f4;
  color: var(--lor-color);
  font-size: 1.1em;
}

div.JSFormHtmlEditorSurface p.format_emphasise strong {
  color: #000;
}

div.JSFormHtmlEditorSurface p.format_numbered {
  position: relative;
  box-sizing: border-box;
  max-width: 950px;
  margin: 16px 0 20px;
  padding: 20px 24px 12px 76px;
  border: 3px solid var(--lor-color);
}

div.JSFormHtmlEditorSurface p.format_numbered::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 72px;
  background-color: var(--lor-color);
  color: #fff;
  content: '#';
  font-size: 30px;
  line-height: 67px;
  text-align: center;
}

div.JSFormHtmlEditorSurface p.format_card {
  box-sizing: border-box;
  margin: 16px 0;
  padding: 12px 12px 0;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
  text-align: center;
}

div.JSFormHtmlEditorSurface p.format_card:hover {
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: rgba(0, 0, 0, 0.15) 3.95px 3.95px 2.6px;
}