/*---------------------------------------------------------------------------------

 Theme Name:   Simon Conn Divi
 Theme URI:    
 Description:  
 Author:       
 Author URI:   
 Template:     Divi
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html

------------------------------ ADDITIONAL CSS HERE ------------------------------*/


/* CLS fix (Aug 2026): Divi fixed-nav JS measures the header after first paint
   and sets #page-container padding-top to 226px inline; the initial estimate
   is ~49px smaller, so all content jumped down on every page. Reserve the
   final geometry up front. The top bar is also locked so the webfont swap
   cannot change its height. Desktop only (Divi switches headers below 981px;
   mobile CLS is already good). Re-measure if the logo or menu changes size. */
@media only screen and (min-width: 981px) {
  body.et_fixed_nav.et_show_nav #page-container { padding-top: 226px !important; }
  body.et_fixed_nav.et_show_nav #top-header { height: 39.5px; }
}

/* Part 2 of the CLS fix: Divi's critical CSS positions #main-header at
   top:30px (its estimate of the top bar) until JS measures the real 39.5px.
   Pin it for anonymous desktop visitors; logged-in users keep Divi's own
   admin-bar offset. */
@media only screen and (min-width: 981px) {
  body.et_fixed_nav.et_show_nav:not(.admin-bar) #main-header { top: 39.5px !important; }
}

