/* Keep the editor chrome independent of the portal's marketing button styles. */
body.portal-theme .tm-editor-source{max-width:100%;width:100%;min-height:260px;font:15px/1.7 monospace}
body.portal-theme .tm-rich-editor{max-width:100%;border:1px solid #bdc3c7;border-radius:4px;color:#333;font:14px/1.4 Arial,sans-serif;box-shadow:0 1px 3px #00000008;margin:10px 0 20px}
body.portal-theme .tm-rich-editor button,body.portal-theme .jodit-popup button,body.portal-theme .jodit-dialog button{font:14px/1.3 Arial,sans-serif;border-radius:3px;letter-spacing:normal;text-transform:none}
body.portal-theme .tm-rich-editor .jodit-toolbar-button__button,body.portal-theme .tm-rich-editor .jodit-toolbar-button__trigger{background:transparent;color:#333;padding:4px;border:0;min-height:30px}
body.portal-theme .tm-rich-editor .jodit-toolbar-button__button:hover,body.portal-theme .tm-rich-editor .jodit-toolbar-button__trigger:hover{background:#dbe5ef}
body.portal-theme .tm-rich-editor .jodit-toolbar__box{background:#f0f1f2;border-bottom:1px solid #c8cbd0}
body.portal-theme .tm-rich-editor .jodit-wysiwyg{font:16px/1.7 Arial,sans-serif;color:#3e3a37;padding:20px;overflow-wrap:anywhere;background:#fff}
body.portal-theme .tm-rich-editor .jodit-wysiwyg h1{font:42px/1.2 Arial,sans-serif;letter-spacing:normal}
body.portal-theme .tm-rich-editor .jodit-wysiwyg h2{font:34px/1.25 Arial,sans-serif;letter-spacing:normal}
body.portal-theme .tm-rich-editor .jodit-wysiwyg h3{font:28px/1.3 Georgia,serif;letter-spacing:normal}
body.portal-theme .tm-rich-editor .jodit-wysiwyg p{margin:0 0 1em}
body.portal-theme .tm-rich-editor .jodit-wysiwyg img{max-width:100%;height:auto}
body.portal-theme .tm-rich-editor .jodit-status-bar{background:#f0f1f2;color:#52606b;font:12px/1.5 Arial,sans-serif}
body.portal-theme .tm-rich-editor textarea.jodit-source__mirror{width:100%!important;max-width:none!important;border:0;outline-offset:-3px}
.tm-editor-menubar{display:flex;flex-wrap:wrap;gap:2px;background:#f0f1f2;border-bottom:1px solid #c8cbd0;padding:3px 6px}
.tm-editor-menu{position:relative}
body.portal-theme .tm-editor-menubar button{background:transparent;color:#222;border:0;font:14px/1.4 Arial,sans-serif;padding:7px 10px;min-height:32px;font-weight:400;text-align:left}
body.portal-theme .tm-editor-menubar button:hover,body.portal-theme .tm-editor-menubar button[aria-expanded=true]{background:#dbe5ef}
.tm-editor-menu-list{position:absolute;left:0;top:100%;z-index:1002;min-width:210px;background:white;border:1px solid #b9c1c8;box-shadow:0 5px 16px #0002;padding:5px}
.tm-editor-menu-list[hidden]{display:none}
body.portal-theme .tm-editor-menu-list button{display:block;width:100%;white-space:nowrap}
.tm-editor-help{max-width:580px;padding:28px;border:1px solid #aeb9c1;border-radius:6px;color:#303b40;background:white;box-shadow:0 16px 50px #0004}
.tm-editor-help::backdrop{background:#0007}
.tm-media-dialog{width:min(980px,94vw);max-height:90vh;overflow:auto;padding:24px;border:1px solid #aeb9c1;border-radius:8px;color:#303b40;background:white;box-sizing:border-box}
.tm-media-dialog::backdrop{background:#0008}
.tm-media-heading,.tm-media-library-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}
body.portal-theme .tm-media-dialog h2{font:28px/1.3 Arial,sans-serif;margin:0}
body.portal-theme .tm-media-dialog h3{font:700 19px/1.3 Arial,sans-serif;margin:8px 0}
body.portal-theme .tm-media-dialog p{font:14px/1.6 Arial,sans-serif}
.tm-media-upload{padding:16px;background:#f5f3ed;border:1px solid #d7d0c4;margin:18px 0}
.tm-media-upload[hidden]{display:none}
.tm-media-upload label{font-size:14px}
body.portal-theme .tm-media-rights{display:flex;gap:10px;align-items:center}
.tm-media-upload p{margin-bottom:0;color:#5f686d}
.tm-media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:12px;margin:16px 0}
body.portal-theme .tm-media-grid button{background:white;color:#303b40;border:2px solid #d4d8d9;padding:6px;text-align:left;overflow:hidden}
body.portal-theme .tm-media-grid button[aria-pressed=true]{border-color:#9b512c;background:#fcf2e8;box-shadow:0 0 0 2px #9b512c33}
.tm-media-grid button[hidden]{display:none}
.tm-media-grid img{width:100%;height:115px;object-fit:contain;background:repeating-conic-gradient(#eee 0% 25%,white 0% 50%) 50%/16px 16px;display:block}
.tm-media-grid span{display:block;font:13px/1.4 Arial,sans-serif;padding:8px 2px;overflow-wrap:anywhere}
.tm-media-footer{border-top:1px solid #d4d8d9;padding-top:12px;margin-top:18px}
.tm-media-footer>div{display:flex;justify-content:flex-end;gap:12px}
.tm-media-dialog [data-error]{background:#fff0ef;color:#8d2323;padding:12px}
.tm-media-dialog button:disabled{opacity:.5;cursor:default}
.tm-media-dialog [data-status]{color:#43564c}
@media(max-width:600px){.tm-media-dialog{padding:16px}.tm-media-library-heading{display:block}.tm-media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
body.portal-theme .tm-editor-help h2{font:26px/1.3 Arial,sans-serif}
.business-rich-content img,.business-site article img,.article img{max-width:100%;height:auto}
.business-rich-content table,.business-site article table,.article table{border-collapse:collapse;max-width:100%;display:block;overflow-x:auto;margin:1.25em 0}
.business-rich-content td,.business-rich-content th,.business-site article td,.business-site article th,.article td,.article th{border:1px solid #b9b7b0;padding:10px;min-width:65px}
.business-rich-content iframe,.business-rich-content video,.business-site article iframe,.business-site article video,.article iframe,.article video{max-width:100%;border:0;aspect-ratio:16/9}
@media(max-width:600px){.tm-editor-menubar{padding:2px}.tm-editor-menu-list{min-width:175px}body.portal-theme .tm-editor-menubar button{font-size:12px;padding:6px}.tm-editor-menu:nth-child(n+4) .tm-editor-menu-list{left:auto;right:0}body.portal-theme .tm-rich-editor .jodit-wysiwyg{padding:14px}}

.tm-media-manage{margin:16px 0;padding:16px;border:1px solid #c9c4b7;background:#faf8f3}.tm-media-manage[hidden]{display:none}.tm-media-manage legend{font-weight:700}.tm-media-manage [data-usage-status]{font-weight:600}.tm-media-manage ul{font-size:14px;padding-left:24px}.tm-media-manage [data-delete]{background:#923b32!important}.tm-media-manage input[data-name]{max-width:100%}.tm-media-manage button{margin:4px 8px 4px 0}

.tm-media-dialog [hidden]{display:none!important}
