/* DAV 1.4 — narrowly scoped repairs for themes with extra navigations and narrow home wrappers. */
body.davhp-hide-theme-secondary-nav:not(.davhp-sitewide-header-active) #secondary-navigation,
body.davhp-hide-theme-secondary-nav:not(.davhp-sitewide-header-active) nav.secondary-navigation,
body.davhp-hide-theme-secondary-nav:not(.davhp-sitewide-header-active) .secondary-menu-container,
body.davhp-hide-theme-secondary-nav:not(.davhp-sitewide-header-active) .secondary-nav,
body.davhp-hide-theme-secondary-nav:not(.davhp-sitewide-header-active) .bottom-header-menu,
body.davhp-hide-theme-secondary-nav:not(.davhp-sitewide-header-active) .menu-secondary-menu-container { display:none!important; }
/* When our full publisher header is active, remove theme's second menu as well. */
body.davhp-sitewide-header-active #secondary-navigation,
body.davhp-sitewide-header-active nav.secondary-navigation,
body.davhp-sitewide-header-active .secondary-menu-container,
body.davhp-sitewide-header-active .secondary-nav,
body.davhp-sitewide-header-active .bottom-header-menu,
body.davhp-sitewide-header-active .menu-secondary-menu-container,
body.davhp-sitewide-header-active nav#site-navigation,
body.davhp-sitewide-header-active .top-header,
body.davhp-sitewide-header-active .header-bottom,
body.davhp-sitewide-header-active .header-navigation,
body.davhp-sitewide-header-active .nav-menu-wrapper:not(.davhp-header-nav) { display:none!important; }
/* Don't hide our own masthead, search or Info menu. */
body.davhp-sitewide-header-active .davhp-custom-header,
body.davhp-sitewide-header-active .davhp-header-nav,
body.davhp-sitewide-header-active .davhp-header-main { display:flex!important; }
body.davhp-sitewide-header-active .davhp-custom-header { display:block!important; }
/* Own front template, not the theme's limited blog content container. */
body.davhp-target-front .davhp-latest-shell { width:100%; max-width:none; box-sizing:border-box; overflow:clip; }
body.davhp-target-front .davhp-latest-inner { width:100%; max-width:var(--davhp-native-max,1500px); margin-inline:auto; }
body.davhp-target-front .dav6-home { min-width:0; }
body.davhp-target-front .dav6-layout > * { min-width:0; }
body.davhp-target-front .dav6-hero-section img,
body.davhp-target-front .dav6-layout img,
body.davhp-target-front .davhp-featured-shelf img { max-width:100%; }
body.davhp-target-front .davhp-latest-shell a { text-decoration-thickness:from-font; }
/* Avoid theme heading spacing leaking into publisher headline cards. */
body.davhp-target-front .dav6-home h2,
body.davhp-target-front .dav6-home h3 { overflow-wrap:anywhere; }
@media(max-width:780px){
 body.davhp-sitewide-header-active .davhp-header-nav { flex-wrap:wrap; }
 body.davhp-sitewide-header-active .davhp-masthead-menu { width:100%; }
 body.davhp-sitewide-header-active .davhp-search-form { flex-basis:100%;width:100%;padding-bottom:8px; }
 body.davhp-target-front .davhp-latest-shell { padding:16px 12px 35px; }
}

/* Article polish is opt-in and does not modify theme grids or affiliate CTA markup. */
body.single.davhp-article-clean .entry-content,
body.single.davhp-article-clean .post-content,
body.single.davhp-article-wide .entry-content,
body.single.davhp-article-wide .post-content { line-height:1.78; overflow-wrap:break-word; }
body.single.davhp-article-clean .entry-content :is(p,li),
body.single.davhp-article-clean .post-content :is(p,li) { line-height:1.78; }
body.single.davhp-article-wide .entry-content :is(p,li),
body.single.davhp-article-wide .post-content :is(p,li) { line-height:1.84; }
body.single:is(.davhp-article-clean,.davhp-article-wide) :is(.entry-content,.post-content) img { max-width:100%; height:auto; }
body.single:is(.davhp-article-clean,.davhp-article-wide) :is(.entry-content,.post-content) :is(h2,h3) { line-height:1.28; scroll-margin-top:28px; }
