/* Shared typography keeps the visual editor and published article consistent. */
.news-body,.visual-news-editor .ql-editor{font-family:Archivo,Arial,sans-serif;font-size:16.56px;line-height:1.9;color:#283a2d;overflow-wrap:anywhere}
.news-body p,.visual-news-editor .ql-editor p{font-size:inherit;line-height:inherit;margin:0 0 1.25em;color:inherit;white-space:pre-wrap}
.news-body h2,.visual-news-editor .ql-editor h2{font-size:27.6px;line-height:1.3;font-weight:700;color:#24372b;margin:1.4em 0 .65em;letter-spacing:-.5px}
.news-body h3,.visual-news-editor .ql-editor h3{font-size:22.08px;line-height:1.4;font-weight:600;color:#24372b;margin:1.3em 0 .6em}
.news-body strong,.visual-news-editor .ql-editor strong{font-weight:700}.news-body em,.visual-news-editor .ql-editor em{font-style:italic}
.news-body ul,.news-body ol{padding-left:1.7em;margin:0 0 1.3em;list-style-position:outside}.news-body ul{list-style-type:disc}.news-body ol{list-style-type:decimal}.news-body li{margin:.35em 0}
.news-body blockquote,.visual-news-editor .ql-editor blockquote{border-left:4px solid #87a96e;margin:1.3em 0;padding:10px 0 10px 22px;color:#52664b;background:#f0f4eb}
.news-body a,.visual-news-editor .ql-editor a{color:#376a2d;text-decoration:underline;text-underline-offset:3px}
.news-body img,.visual-news-editor .ql-editor img{display:block;max-width:100%;height:auto;border-radius:8px;margin:1.25em auto}
.news-body .ql-align-center{text-align:center}.news-body .ql-align-right{text-align:right}.news-body .ql-align-justify{text-align:justify}
.news-body .ql-indent-1{padding-left:2em}.news-body .ql-indent-2{padding-left:4em}.news-body .ql-indent-3{padding-left:6em}
.news-body pre{overflow-x:auto;background:#e9eee3;padding:18px;border-radius:6px}.news-body code{font-family:Consolas,monospace}
.visual-news-editor{border:1px solid #d5dfce;border-radius:8px;background:#fff;overflow:hidden;margin-top:10px}
.visual-news-editor[hidden]{display:none}.visual-news-editor .ql-toolbar.ql-snow{border:0;border-bottom:1px solid #dce5d5;background:#f3f6ef;padding:10px 8px;line-height:1.5}
.visual-news-editor .ql-container.ql-snow{border:0;font:inherit}.visual-news-editor .ql-editor{padding:28px;min-height:440px;max-height:75vh;overflow-y:auto;white-space:normal}
.visual-news-editor .ql-toolbar .ql-formats{margin-right:8px;margin-bottom:3px}.visual-news-editor .ql-toolbar button{width:28px;height:28px;background:transparent;color:#395332;padding:3px 5px;border-radius:3px}
.visual-news-editor .ql-toolbar button:hover{background:#e1ead8}.visual-news-editor .ql-toolbar button.ql-active{background:#d5e5c8}
.visual-news-editor .ql-picker.ql-header{width:128px}.visual-news-editor .ql-picker.ql-header .ql-picker-label:before{content:'Texto normal'}.visual-news-editor .ql-picker.ql-header .ql-picker-label[data-value='2']:before{content:'Título'}.visual-news-editor .ql-picker.ql-header .ql-picker-label[data-value='3']:before{content:'Subtítulo'}
.visual-news-editor .ql-picker.ql-header .ql-picker-item:before{content:'Texto normal'}.visual-news-editor .ql-picker.ql-header .ql-picker-item[data-value='2']:before{content:'Título'}.visual-news-editor .ql-picker.ql-header .ql-picker-item[data-value='3']:before{content:'Subtítulo'}
.news-editor-status{display:flex;justify-content:space-between;gap:16px;padding:10px 14px;background:#f8faf5;border-top:1px solid #e3e9de;color:#718367;font-size:10.12px;line-height:1.6}
.visual-news-editor.is-expanded{position:fixed;inset:15px;z-index:5000;margin:0;display:flex;flex-direction:column;box-shadow:0 0 0 50px #19371ddd}.visual-news-editor.is-expanded .ql-container{flex:1;min-height:0}.visual-news-editor.is-expanded .ql-editor{height:100%;max-height:none;max-width:900px;margin:auto}
.news-link-dialog h2{margin-bottom:20px}.news-link-dialog label{font-size:11.96px;display:block;margin-bottom:8px}.news-link-dialog .dialog-actions button{width:auto}
@media(max-width:700px){.news-body,.visual-news-editor .ql-editor{font-size:15.64px;line-height:1.8}.news-body h2,.visual-news-editor .ql-editor h2{font-size:23.92px}.news-body h3,.visual-news-editor .ql-editor h3{font-size:20.24px}.visual-news-editor .ql-editor{padding:20px;min-height:360px}.visual-news-editor.is-expanded{inset:5px}.news-editor-status{flex-wrap:wrap}}
#body[hidden]{display:none!important}

/* Responsive YouTube players in the editor, preview and published news. */
.news-body iframe.ql-video,.visual-news-editor .ql-editor iframe.ql-video,.news-video-preview iframe{display:block;width:100%;max-width:100%;height:auto;aspect-ratio:16/9;border:0;border-radius:8px;background:#101910;margin:1.25em auto}
.news-video-dialog{width:min(720px,calc(100vw - 32px));max-height:90svh;overflow-y:auto;padding:28px;border:1px solid #c9d6bf;border-radius:10px}
.news-video-dialog::backdrop{background:#0c201bc4}
.news-video-dialog input{width:100%;font-size:15.64px}
.news-video-dialog .help,.news-video-dialog #news-video-error{font-size:12.88px;line-height:1.6}
.news-video-dialog #news-video-error{color:#9a351c}
.news-video-dialog .dialog-actions{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-top:20px}
.news-video-dialog .dialog-actions button{font-size:12.88px}
.news-video-dialog [data-insert]:disabled{opacity:.5;cursor:not-allowed}
.news-video-preview[hidden],.news-video-dialog [hidden]{display:none!important}
.news-video-preview iframe{margin:16px 0}
@media(max-width:700px){.news-video-dialog{padding:20px}.news-video-dialog h2{font-size:23px}}

/* Insert an external image with a preview, or keep the upload workflow. */
.news-image-dialog{width:min(700px,calc(100vw - 32px));max-height:90svh;overflow-y:auto}
.news-image-dialog input,.news-image-dialog label,.news-image-dialog .help,.news-image-dialog #news-image-message,.news-image-dialog .button{font-size:12.88px;line-height:1.6}
.news-image-dialog input{width:100%;margin-bottom:12px}
.news-image-preview{background:#eef3e9;border:1px solid #d5dfce;border-radius:8px;padding:12px;margin:16px 0}
.news-image-preview img{display:block;max-width:100%;max-height:280px;width:auto;height:auto;margin:auto;object-fit:contain}
.news-image-dialog .dialog-actions{flex-wrap:wrap}
.news-image-dialog [data-insert]:disabled{opacity:.5;cursor:not-allowed}
.news-image-preview[hidden]{display:none!important}
@media(max-height:800px){.news-image-preview img{max-height:170px}}

/* Match the site's softened surfaces in articles and editor previews. */
.news-body img,.visual-news-editor .ql-editor img,.news-body iframe.ql-video,.visual-news-editor .ql-editor iframe.ql-video,.news-video-preview iframe,.news-image-preview,.visual-news-editor{border-radius:var(--radius-card,16px)}
.news-video-dialog,.news-image-dialog{border-radius:var(--radius-panel,18px)}
.news-video-dialog .button,.news-image-dialog .button,.news-link-dialog input{border-radius:var(--radius-control,10px)}
