/* Divi keeps its editable hierarchy; wrappers do not alter the approved layout. */
body.rm-body:not(.et-fb) .rm-divi-shell,
body.rm-body:not(.et-fb) .rm-divi-module,
body.rm-body:not(.et-fb) .et_builder_inner_content,
body.rm-body:not(.et-fb) .et-l,
body.rm-body:not(.et-fb) .et-l--post,
.rm-divi-render { display: contents !important; }
body.rm-body .rm-divi-shell::before,body.rm-body .rm-divi-shell::after { display:none !important; }
.rm-body .rm-header-part,.rm-body .rm-footer-part { margin:0;padding:0; }
.rm-content { display:flow-root; }
.rm-footer__brand > .rm-logo:first-child { margin-top:0; }
/* Editor-only space for Divi controls. Public geometry is unchanged. */
body.et-fb .rm-divi-shell { width:100%;max-width:none;padding:0 !important;margin:0 !important; }
body.et-fb .rm-divi-module { margin:0 !important; }
body.et-fb .rm-divi-shell.et_pb_row { display:flow-root; }
body.et-fb .rm-divi-shell.et_pb_column { float:none; }
body.et-fb .rm-divi-render :where(h1,h2,h3,h4,p,figure) { padding:0; color:inherit; }
body.et-fb .rm-divi-render * { animation:none !important; transition:none !important; }
body.et-fb .rm-divi-render .rm-obj__f { opacity:1 !important; }
body.et-fb .rm-divi-render .rm-rv { opacity:1 !important; transform:none !important; clip-path:none !important; }
/* A shared header must occupy its module box while it is being edited. */
body.et-fb .rm-divi-render .rm-header { position:relative; top:0; transform:none; z-index:auto; pointer-events:none; }
body.et-fb .rm-divi-render .rm-header a { text-decoration:none; }
