/* cohesion-fix: restore static-export defects for tractionproject.org (Drupal bwm theme) */

/* FontAwesome SVG-mode base sizing guard (in case any FA inline-SVG present) */
.svg-inline--fa{width:1em!important;height:1em!important;display:inline-block;vertical-align:-.125em}

/* Hide dynamic/dead widgets that cannot render on a static export */
#block-googletranslate, .block-gtranslate, #google_translate_element,
form#user-login, .block-user-login, #block-user-login,
.block-search, #block-search-form,
.feed-icon, .rss-feed { display:none!important }

/* Login / register / forgot-password links (dead on static) */
a[href*="/user/login"], a[href*="/user/register"], a[href*="/user/password"],
.traction-login, #block-system-user-menu, #block-user-login { display:none!important }

/* Google Translate language selector (script removed, non-functional on static) */
select[onchange*="doGTranslate"], #google_translate_element2,
#block-gtranslate, .gtranslate, .block-locale { display:none!important }

/* Off-canvas / overlay safety (CLICKBLOCKED guard) */
.off-canvas-overlay,.menu-overlay,.slideout-menu,#main-mobile-menu{display:none!important}

/* Ensure no element traps clicks invisibly */
html,body{overflow-x:hidden}

/* Image fit safety - no stretched/oversized content imgs */
.field-type-image img, .views-field-field-image img, .content img{max-width:100%;height:auto}

/* Mobile touch targets */
@media(max-width:768px){
  nav a, .menu a, #navigation a{min-height:44px;display:inline-block}
}
/* Drupal Views Cycle slideshow: JS doesn't run on static -> all slides stack/overlap.
   Show only the first slide, statically. */
.cycle-slideshow > .views-row:not(:first-child),.cycle-slideshow .cycle-slide:not(:first-child){display:none!important;}
.cycle-slideshow > .views-row:first-child,.cycle-slideshow .cycle-slide:first-child{position:relative!important;opacity:1!important;}
.cycle-slideshow{height:auto!important;}
/* jQuery-Cycle carousel (robust): show ONLY the first real slide, statically.
   Slides live in .cycle-carousel-wrap (off-screen track); a stray empty .views-row is a direct child. */
.cycle-slideshow > .views-row{display:none!important;}                       /* stray empty row */
.cycle-slideshow .cycle-carousel-wrap{position:relative!important;left:0!important;top:0!important;width:100%!important;transform:none!important;}
.cycle-slideshow .cycle-carousel-wrap > .views-row{display:none!important;}
.cycle-slideshow .cycle-carousel-wrap > .views-row-1{display:block!important;position:relative!important;left:0!important;width:100%!important;}
.cycle-slideshow{height:auto!important;overflow:hidden;}
/* show ONLY the literal first child of the carousel track (Cycle clones slides) */
.cycle-slideshow .cycle-carousel-wrap > *:not(:first-child){display:none!important;}
.cycle-slideshow .cycle-carousel-wrap > *:first-child{display:block!important;position:relative!important;left:0!important;width:100%!important;}
/* FINAL: broken jQuery-Cycle slider -> one static hero image (no JS slideshow on static) */
.cycle-slideshow > *{display:none!important;}
.cycle-slideshow{background:#1f2a30 url('/sites/default/files/styles/home_page_slide/public/Copy%20of%20Copy%20of%20PBI%20QoC%20homepage%20slide.png') center center/cover no-repeat!important;min-height:380px!important;}
/* No usable single hero image + broken JS slider -> hide the whole slideshow region cleanly */
.cycle-slideshow,.view-id-home_page_slideshow,.view-home-page-slideshow,#block-views-home-page-slideshow-block{display:none!important;}
/* hide the entire home slideshow region/block (reserves a 380px dark box even with slides gone) */
#block-views-home_slideshow-block,.views-slideshow-controls,.region-home-slideshow,.views_slideshow_cycle_main{display:none!important;}
/* the dark hero wrapper itself (#home-slideshow, bg #323232, 380px) — hide it entirely */
#home-slideshow{display:none!important;}

/* Superfish dropdown mega-menu: on inner pages the per-page CSS aggregate that hides nested
   submenus (display:none until hover) didn't survive, so all submenu <li> render inline as
   blocks and overlap the whole page (93 items on /blog/). Re-hide nested ULs everywhere and
   reveal on hover with pure CSS (home already hides them → no-op there). */
#superfish-1 ul,ul.sf-menu ul,.sf-menu ul{display:none!important;position:absolute;top:100%;left:0;z-index:1000;min-width:15em;margin:0;padding:0;list-style:none;background:#33536f;box-shadow:0 8px 20px rgba(0,0,0,.28);}
#superfish-1 ul ul,.sf-menu ul ul{top:0;left:100%;}
#superfish-1 li,.sf-menu li{position:relative;}
#superfish-1 li:hover>ul,.sf-menu li:hover>ul{display:block!important;}
#superfish-1 ul li,.sf-menu ul li{float:none;width:100%;border-bottom:1px solid rgba(255,255,255,.12);}
#superfish-1 ul a,.sf-menu ul a{display:block;padding:8px 14px;color:#fff;white-space:normal;line-height:1.3;}
#superfish-1 ul a:hover,.sf-menu ul a:hover{background:#27425a;}
