/* Chidane 6.1: patches scoped to real WordPress menus and archives. Original reference styles remain intact. */
@media(min-width:981px){
  body.chidane-v2 .header .header-row{position:relative!important;isolation:isolate}
  body.chidane-v2 .header .chd-v4-dynamic-menu.nav{position:static!important;display:flex;flex:1 1 auto;min-width:0;gap:clamp(0px,.28vw,5px);justify-content:center}
  body.chidane-v2 .header .chd-v4-dynamic-menu .nav-item{position:static!important;flex:0 1 auto;min-width:0}
  body.chidane-v2 .header .chd-v4-dynamic-menu .nav-trigger{white-space:nowrap;gap:4px;padding:10px clamp(7px,.8vw,15px);font-size:clamp(11px,.83vw,13px)}
  body.chidane-v2 .header .chd-v4-dynamic-menu .nav-chev{width:15px;flex:0 0 15px}
  body.chidane-v2 .header .chd-v4-dynamic-menu .mega-menu{position:absolute;right:50%!important;left:auto!important;top:calc(100% - 1px)!important;width:min(1040px,calc(100vw - 64px));max-width:100%;z-index:300;transform:translate(50%,12px)!important}
  body.chidane-v2 .header .chd-v4-dynamic-menu .nav-item:hover>.mega-menu,
  body.chidane-v2 .header .chd-v4-dynamic-menu .nav-item:focus-within>.mega-menu{transform:translate(50%,0)!important}
  body.chidane-v2 .header .chd-v4-dynamic-menu .mega-grid.cols-4{grid-template-columns:repeat(var(--chd-mega-cols,4),minmax(0,1fr));max-height:min(60vh,540px);overflow-y:auto;align-items:start}
  body.chidane-v2 .header .chd-v4-dynamic-menu .mega-col{min-width:0}
  body.chidane-v2 .header .chd-v4-dynamic-menu .mega-col a{white-space:normal;overflow-wrap:break-word;overflow-wrap:anywhere}
}
body.chidane-v2 .header .chd-v4-dynamic-menu .chd-dynamic-more{border:0;cursor:pointer;color:inherit;background:transparent;font:inherit}
body.chidane-v2 .chd-v6-empty-results{grid-column:1/-1;text-align:center;color:#777;padding:36px 12px}
body.chidane-v2 [data-chd-load-more][aria-busy="true"]{opacity:.65;cursor:progress;pointer-events:none}
body.chidane-v2 [data-chd-archive-grid]>:only-child{max-width:440px}
@media(max-width:980px){
  body.chidane-v2 .header .chd-v4-dynamic-menu.nav{display:none!important}
  body.chidane-v2 .category-articles .article-grid,body.chidane-v2 .business-all .all-business-grid{min-width:0;max-width:100%}
  body.chidane-v2 .category-articles .category-article,body.chidane-v2 .business-all .business-list-card{min-width:0;max-width:100%;overflow:hidden}
  body.chidane-v2 .category-articles .category-article img,body.chidane-v2 .business-list-cover img{object-fit:cover}
  body.chidane-v2 .profile-page,body.chidane-v2 .profile-shell{max-width:100%;min-width:0}
  body.chidane-v2 .profile-bio,body.chidane-v2 .profile-gallery-grid{min-width:0}
}
@media(max-width:480px){
  body.chidane-v2 .business-list-body{min-width:0}
  body.chidane-v2 .business-list-copy{min-width:0;overflow-wrap:break-word;overflow-wrap:anywhere}
}

/* v8.2: WordPress dropdowns remain in the header container and never scroll sideways. */
@media(min-width:981px){
body.chidane-v2 .header .header-row{position:relative!important;min-width:0;overflow:visible!important}
body.chidane-v2 .header nav.chd-v4-dynamic-menu{position:static!important;min-width:0;max-width:calc(100% - 290px)!important;overflow:visible!important;flex:1 1 auto!important}
body.chidane-v2 .header nav.chd-v4-dynamic-menu>.nav-item{position:static!important}
body.chidane-v2 .header nav.chd-v4-dynamic-menu>.nav-item>.mega-menu{
  box-sizing:border-box!important;position:absolute!important;
  top:calc(100% - 1px)!important;left:50%!important;right:auto!important;
  transform:translate(-50%,12px)!important;
  width:min(1040px,calc(100vw - 48px))!important;
  max-width:calc(100vw - 48px)!important;max-height:75vh!important;
  overflow-x:hidden!important;overflow-y:auto!important;z-index:500!important;
  scrollbar-width:thin;
}
body.chidane-v2 .header nav.chd-v4-dynamic-menu>.nav-item:hover>.mega-menu,
body.chidane-v2 .header nav.chd-v4-dynamic-menu>.nav-item:focus-within>.mega-menu{transform:translate(-50%,0)!important}
body.chidane-v2 .header nav.chd-v4-dynamic-menu .mega-grid{width:100%;max-width:100%;min-width:0;overflow-x:hidden;grid-template-columns:repeat(var(--chd-mega-cols,4),minmax(0,1fr))!important}
body.chidane-v2 .header nav.chd-v4-dynamic-menu .mega-col{min-width:0!important;overflow-wrap:break-word;overflow-wrap:anywhere}
body.chidane-v2 .header nav.chd-v4-dynamic-menu .mega-col a{white-space:normal!important;max-width:100%;overflow-wrap:break-word;overflow-wrap:anywhere}
}

/* v8.2.5: changing the WordPress menu source must not change the reference controls. */
.chd-v4-dynamic-menu .nav-chev{display:grid;place-items:center;flex-shrink:0}
.chd-v4-dynamic-menu .nav-chev svg{display:block;width:16px;height:16px;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.chd-v4-dynamic-menu .mega-col h4>a{margin:0;padding:0;color:inherit;font-weight:inherit;font-size:inherit}
.chd-v4-dynamic-menu .mega-menu>.mega-more{display:flex;align-items:center;justify-content:flex-start;position:relative;box-sizing:border-box;width:max-content;max-width:100%;min-width:min(290px,100%);min-height:64px;padding:8px 20px 8px 76px;margin-top:18px;background:#111;color:#fff;border-radius:999px;text-decoration:none}
.chd-v4-dynamic-menu .mega-more .mini-arrow{display:grid;place-items:center;position:absolute;left:6px;top:50%;transform:translateY(-50%);width:52px;height:52px;border-radius:999px;background:#fff;color:#111;border:1px solid #fff;margin:0}
.chd-v4-dynamic-menu .mega-more .mini-arrow svg{display:block;width:18px;height:18px;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transform:rotate(270deg)}
.chd-v4-dynamic-menu .mega-more>span{min-width:0;overflow-wrap:break-word}
@media(min-width:981px){
 body.chidane-v2 .header nav.chd-v4-dynamic-menu>.nav-item>.mega-menu{width:min(1180px,calc(100vw - 72px))!important;max-width:calc(100vw - 48px)!important;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
 body.chidane-v2 .header nav.chd-v4-dynamic-menu .mega-grid{max-height:min(48vh,480px)}
 body.chidane-v2 .header nav.chd-v4-dynamic-menu .nav-chev{width:16px;flex:0 0 16px}
}
