/* Shared presentation for sanitized news HTML in the editor and public article. */
.news-content,
.news-editor-canvas {
  color: inherit;
  font-size: 20px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.news-content p,
.news-editor-canvas p { margin: 0 0 1.15em; }
.news-content h2,
.news-editor-canvas h2 { margin: 1.65em 0 .65em; font-size: 1.55em; line-height: 1.25; }
.news-content h3,
.news-editor-canvas h3 { margin: 1.4em 0 .55em; font-size: 1.25em; line-height: 1.3; }
.news-content ul,
.news-content ol,
.news-editor-canvas ul,
.news-editor-canvas ol { padding-left: 1.45em; margin: 0 0 1.15em; }
.news-content blockquote,
.news-editor-canvas blockquote { margin: 1.25em 0; padding: .2em 1em; border-left: 3px solid #9c7bff; color: #d6cbed; }
.news-content a,
.news-editor-canvas a { color: #b7a0ff; text-decoration: underline; text-underline-offset: .15em; }
.news-image { box-sizing: border-box; max-width: 100%; margin: 1.1em auto; }
.news-image img { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; }
.news-image.image-align-left { float: left; clear: left; margin: .25em 1.1em .8em 0; }
.news-image.image-align-right { float: right; clear: right; margin: .25em 0 .8em 1.1em; }
.news-image.image-align-center,
.news-image.image-align-none { margin-left: auto; margin-right: auto; }
.news-image.image-shadow-soft img { box-shadow: 0 8px 24px rgba(0, 0, 0, .28); }
.news-image.image-shadow-strong img { box-shadow: 0 14px 34px rgba(0, 0, 0, .46); }
.news-image.image-border-thin img { border: 1px solid rgba(213, 201, 245, .5); }
.news-image.image-border-thick img { border: 4px solid #7654c7; }
.news-image.image-radius-0 img { border-radius: 0; }
.news-image.image-radius-4 img { border-radius: 4px; }
.news-image.image-radius-8 img { border-radius: 8px; }
.news-image.image-radius-16 img { border-radius: 16px; }
.news-image[data-width="20"] { width: 20%; }
.news-image[data-width="25"] { width: 25%; }
.news-image[data-width="30"] { width: 30%; }
.news-image[data-width="35"] { width: 35%; }
.news-image[data-width="40"] { width: 40%; }
.news-image[data-width="45"] { width: 45%; }
.news-image[data-width="50"] { width: 50%; }
.news-image[data-width="55"] { width: 55%; }
.news-image[data-width="60"] { width: 60%; }
.news-image[data-width="65"] { width: 65%; }
.news-image[data-width="70"] { width: 70%; }
.news-image[data-width="75"] { width: 75%; }
.news-image[data-width="80"] { width: 80%; }
.news-image[data-width="85"] { width: 85%; }
.news-image[data-width="90"] { width: 90%; }
.news-image[data-width="95"] { width: 95%; }
.news-image[data-width="100"] { width: 100%; }
@media (max-width: 700px) {
  .news-content,
  .news-editor-canvas { font-size: 18px; }
  .news-image.image-align-left,
  .news-image.image-align-right { float: none; clear: both; width: 100%; margin: 1em auto; }
}

.news-content::after { content: ""; display: table; clear: both; }

.news-content :is(h1,h4,h5,h6) { color: #f4efff; line-height: 1.2; margin: 1.3em 0 .6em; overflow-wrap: anywhere; }
.news-content h1 { font-size: 2em; }
.news-content :is(h4,h5,h6) { font-size: 1.1em; }
.news-content code { padding: .15em .35em; border: 1px solid #493b64; border-radius: 4px; background: #211b2d; color: #d9c8ff; font: .87em/1.6 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.news-content pre { max-width: 100%; overflow-x: auto; padding: 1rem; border: 1px solid #493b64; border-radius: 8px; background: #17131f; }
.news-content pre code { padding: 0; border: 0; background: transparent; overflow-wrap: normal; }
.news-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.3em 0; }
.news-content :is(th,td) { padding: .6em .85em; border: 1px solid #493b64; text-align: left; }
.news-content th { background: #211b2d; color: #f4efff; }

.news-content img { max-width: 100%; height: auto; }
