/* Divi child: undo Divi's base styles on the designed pages only (body.campbell-design).
   Loaded after Divi's stylesheet and before the design styles. Every selector has the same
   specificity as the Divi rule it undoes, so it wins over Divi, and the design's own rules,
   which load later, still win over it. "revert" restores the browser default. Sections added in the Divi Builder
   (anything outside the .cc-sec sections) keep Divi's normal styles. */

/* Divi's reset and typography */
:not(cc-x):where(.campbell-design) :is(a,abbr,acronym,address,applet,b,big,blockquote,center,cite,code,dd,del,dfn,div,dl,dt,em,fieldset,font,form,h1,h2,h3,h4,h5,h6,i,iframe,img,ins,kbd,label,legend,li,object,ol,p,pre,q,s,samp,small,span,strike,strong,sub,sup,tt,u,ul,var,table,caption,tbody,tfoot,thead,tr,th,td):not(:where(.et_pb_section:not(.cc-sec) *)){margin:revert;padding:revert;border:revert;outline:revert;font-size:revert;vertical-align:revert;background:revert}
:not(cc-x):where(.campbell-design) :is(ol,ul):not(:where(.et_pb_section:not(.cc-sec) *)){list-style:revert;line-height:inherit}
:not(cc-x):where(.campbell-design) :is(blockquote,q):not(:where(.et_pb_section:not(.cc-sec) *)){quotes:revert}
:not(cc-x):where(.campbell-design) *:not(:where(.et_pb_section:not(.cc-sec) *)):focus{outline:revert}
:not(cc-x):where(.campbell-design) table:not(:where(.et_pb_section:not(.cc-sec) *)){border-collapse:revert;border-spacing:revert}
:not(cc-x):where(.campbell-design) a:not(:where(.et_pb_section:not(.cc-sec) *)){text-decoration:revert}
:not(cc-x):where(.campbell-design) p:not(:where(.et_pb_section:not(.cc-sec) *)){padding-bottom:0}
:not(cc-x):where(.campbell-design) p:not(:where(.et_pb_section:not(.cc-sec) *)):not(.has-background):last-of-type{padding-bottom:0}
:not(cc-x):where(.campbell-design) :is(h1,h2,h3,h4,h5,h6):not(:where(.et_pb_section:not(.cc-sec) *)){padding-bottom:0;font-weight:bold;line-height:normal;color:inherit;font-size:revert}
:not(cc-x):where(.campbell-design) input:not(:where(.et_pb_section:not(.cc-sec) *)){-webkit-appearance:revert;appearance:revert}
:not(cc-x):where(.campbell-design) :is(input.text,input.title,input[type=email],input[type=password],input[type=tel],input[type=text],select,textarea):not(:where(.et_pb_section:not(.cc-sec) *)){background-color:revert;border:revert;padding:revert;color:revert;margin:revert}
:not(cc-x):where(.campbell-design) :is(input.text,input.title,input[type=email],input[type=password],input[type=tel],input[type=text],select,textarea):not(:where(.et_pb_section:not(.cc-sec) *)):focus{border-color:revert;color:revert}
:not(cc-x):where(.campbell-design) textarea:not(:where(.et_pb_section:not(.cc-sec) *)){padding:revert}
:not(cc-x):where(.campbell-design) .container:not(:where(.et_pb_section:not(.cc-sec) *)){position:revert;width:revert;max-width:revert;margin:revert;text-align:revert}

/* Divi Builder wrappers around each section of the design */
:not(cc-x).campbell-design #main .et_pb_section.cc-sec,:not(cc-x).campbell-design #main .et_pb_fullwidth_section.cc-sec{padding:0;margin:0;background:none;overflow:visible;position:static}
:not(cc-x).campbell-design #main .cc-sec .et_pb_module,:not(cc-x).campbell-design #main .cc-sec .et_pb_code_inner{margin:0;padding:0;overflow:visible;position:static;animation:none}
:not(cc-x).campbell-design #main :is(.et-l,.et_builder_inner_content){position:static;z-index:auto;overflow:visible}
:not(cc-x).campbell-design #main .et-boc{overflow:visible}


/* Divi's own header and footer never show on the designed pages, which have the Campbell ones */
:not(cc-x).campbell-design :is(#top-header,#main-header,#main-footer,.et-l--header,.et-l--footer,#et_mobile_nav_menu){display:none}
:not(cc-x).campbell-design #page-container{padding-top:0;margin-top:0}

/* Campbell modules: Divi's module wrapper adds nothing to the design */
:not(cc-x).campbell-design #main .cc-sec .et_pb_module_inner{margin:0;padding:0}

/* If wpautop runs over the layout, it leaves empty paragraphs between sections. */
body:not(cc-x).campbell-design #main > p:empty,body:not(cc-x).campbell-design #main > br{display:none}
