h1:where(.site-block-heading).has-background,h2:where(.site-block-heading).has-background,h3:where(.site-block-heading).has-background,h4:where(.site-block-heading).has-background,h5:where(.site-block-heading).has-background,h6:where(.site-block-heading).has-background{padding:1.25em 2.375em}h1.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h1.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h2.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h2.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h3.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h3.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h4.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h4.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h5.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h5.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]),h6.has-text-align-left[style*=writing-mode]:where([style*=vertical-lr]),h6.has-text-align-right[style*=writing-mode]:where([style*=vertical-rl]){rotate:180deg}
/* Mobile: rows with text left + image right show the image first */
@media (max-width:980px){.et_pb_row.et_pb_row_img_first{display:flex!important;flex-direction:column-reverse!important}.et_pb_row.et_pb_row_img_first>.et_pb_column{margin-bottom:30px!important}.et_pb_row.et_pb_row_img_first>.et_pb_column:first-child{margin-bottom:0!important}}

/* Footer readability: Divi sets 0.9em line height on the legal-links and quick-links modules, so wrapped lines overlap */
.et-l--footer .et_pb_text_0_tb_footer,.et-l--footer .et_pb_text_2_tb_footer{line-height:1.5em!important}
.et-l--footer .et_pb_text_2_tb_footer p{padding-bottom:6px}
/* Keep footer email addresses on one line */
.et-l--footer a[href^="mailto:"]{white-space:nowrap;font-size:14px}

/* === Responsive polish (mobile + tablet) === */
/* Readable body copy: Divi drops modules to 14px on small screens */
@media (max-width:980px){
#main-content p,#main-content li,#main-content .et_pb_blurb_description{font-size:16px!important;line-height:1.7em!important}
/* 16px inputs stop iOS zooming the page on focus */
.et_pb_contact_form .input,.et_pb_contact_form input,.et_pb_contact_form textarea{font-size:16px!important}
}
/* Header logo: Divi sizes it at 27% of the bar, about 70px on a phone */
@media (max-width:767px){
.et_pb_menu_0_tb_header .et_pb_menu_inner_container>.et_pb_menu__logo-wrap,.et_pb_menu_0_tb_header .et_pb_menu__logo-slot{width:62%!important;max-width:240px}
.et_pb_menu__logo a{display:block;min-height:44px;display:flex;align-items:center}
/* Children page call-out heading */
.et_pb_heading_0 .et_pb_heading_container .et_pb_module_heading{font-size:28px!important;line-height:1.25em!important}
}
/* Small laptops / landscape iPad: 72px titles break words in half-width columns */
@media (min-width:981px) and (max-width:1199px){
#main-content .et_pb_text h1{font-size:52px!important;line-height:1.15em!important}
}
/* Legal pages: readable copy and real bullets */
.contact-heading+section{font-size:16px}
.contact-heading+section ul{list-style:disc!important;padding-left:1.2em!important}
.contact-heading+section ul li{padding-left:.2em}
/* iPad landscape also zooms on focus under 16px */
@media (max-width:1199px){.et_pb_contact_form .input,.et_pb_contact_form input,.et_pb_contact_form textarea{font-size:16px!important}}
/* Long email addresses in content: break at the <wbr> after "@", never mid-word */
#main-content a[href^="mailto:"]{overflow-wrap:normal;word-break:normal}
/* Footer: one left edge on mobile/tablet (Divi mixes left, centre and right per column) */
@media (max-width:980px){.et-l--footer .et_pb_text,.et-l--footer .et_pb_text *{text-align:left!important}.et-l--footer .et_pb_image{text-align:left!important;margin-left:0!important}.et-l--footer .et_pb_column{margin-bottom:32px}}
/* Mobile menu: submenus collapsed until their parent is tapped (js/mobile-submenu.js) */
.et_pb_menu .et_mobile_menu li.menu-item-has-children:not(.mobile-submenu-open)>ul,#main-header .et_mobile_menu li.menu-item-has-children:not(.mobile-submenu-open)>ul{display:none!important}
.et_mobile_menu li.menu-item-has-children>a{position:relative;padding-right:44px!important;cursor:pointer}
.et_mobile_menu li.menu-item-has-children>a:after{content:"";position:absolute;right:18px;top:50%;width:8px;height:8px;margin-top:-6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .2s ease}
.et_mobile_menu li.mobile-submenu-open>a:after{transform:rotate(-135deg);margin-top:-2px}
/* Content headings: Divi sets some h3s to 2.5em line height, which leaves big gaps once they wrap on mobile/tablet */
@media (max-width:980px){#main-content .et_pb_text h2,#main-content .et_pb_text h3,#main-content .et_pb_text h4{line-height:1.3em!important;padding-top:.4em;padding-bottom:.5em}}
/* reCAPTCHA v3: badge hidden, Google's required disclosure shown above the Send button instead */
.grecaptcha-badge{visibility:hidden!important}
.et_pb_contact_form .recaptcha-notice{clear:both;width:100%;font-size:13px!important;line-height:1.5em!important;color:#000!important;padding:0 0 12px 3%;margin:0}
.et_pb_contact_form .recaptcha-notice a{color:#000!important;text-decoration:underline}
