:root {--news-content-width:806px}
body:not(.news-editor-preview) main.news-layout {
    width: calc(100% - 40px);
    margin: 40px auto;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
@media(max-width:700px) {
    body:not(.news-editor-preview) main.news-layout {grid-template-columns:minmax(0,1fr)}
}
body #rich-editor,
body main.news-layout .news-body {
    position: relative;
    display: flow-root;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    white-space: break-spaces;
    overflow-wrap: anywhere;
}
.news-article > time {display:block;margin-bottom:18px;color:#64748b}
.news-article > .article-image {display:block;width:100%;max-height:430px;object-fit:cover;border-radius:8px;margin-bottom:20px;box-shadow:0 12px 48px rgba(15,23,42,.32),0 4px 24px rgba(15,23,42,.20)}
body #rich-editor {
    box-sizing: content-box;
    width: var(--news-content-width);
    max-width: none;
    zoom: var(--news-editor-scale, 1);
}
body main.news-layout .news-body {
    width: 100%;
    max-width: 100%;
}
body #rich-editor img,
body main.news-layout .news-body img {
    max-width: none;
    height: auto;
    margin: 15px 0;
    box-shadow: 0 12px 48px rgba(15,23,42,.32), 0 4px 24px rgba(15,23,42,.20);
}
body #rich-editor > p:has(> img),
body main.news-layout .news-body > p:has(> img) {
    margin: 0 0 15px;
    clear: both;
    display: block;
}
body #rich-editor > p:has(> img) img,
body main.news-layout .news-body > p:has(> img) img {
    display: block;
    max-width: 100%;
    margin: 15px 0;
}
body #rich-editor img[align="center"],
body main.news-layout .news-body img[align="center"] {
    display: block;
    float: none !important;
    margin: 15px auto !important;
    max-width: 100%;
}
body #rich-editor p:has(> img + img),
body main.news-layout .news-body p:has(> img + img) {
    display: flow-root;
    clear: both;
}
body #rich-editor img[style*="position: absolute"],
body main.news-layout .news-body img[style*="position: absolute"] {
    margin: 0 !important;
}
body :is(#rich-editor,main.news-layout .news-body) img:is([align="left"],[style*="float: left"],[style*="float:left"]){margin:15px 15px 15px 0!important}
body :is(#rich-editor,main.news-layout .news-body) img:is([align="right"],[style*="float: right"],[style*="float:right"]){margin:15px 0 15px 15px!important}

/* Typed and pasted spaces have the same width in the editor and both reading views. */
body #rich-editor :is(p,div,span,font,b,strong,i,em,h1,h2,h3,h4,h5,h6,li),
body main.news-layout .news-body :is(p,div,span,font,b,strong,i,em,h1,h2,h3,h4,h5,h6,li){white-space:break-spaces!important}
