
/* ==========================================================================
   Mobile Menu - Hubspot Standard Toggle Menu
   ========================================================================== */


/**
 * Special Note
 *
 * When the menu is open, a class of .mobile-open is applied to the body. You can 
 * use this for custom styling on any element when the menu is in the open position.                     
 */

ul {
  display: inline-block;
}

.blog-menu li {
  display: inline-block;
}

.mobile-trigger, .child-trigger{
    display: none; /* Hide button on Desktop */
}

@media (max-width: 962px){


  /* Variables
     ========================================================================== */

     /* Set Mobile Menu Background Color */
        /* Set Link Color */
   /* Set Link Hover Color */

  /* 
    * Menu Reset
    *
    * Remove styling from desktop version of custom-menu-primary. Place any 
    * additional CSS you want removed from the mobile menu in this reset 
    */

  .blog-menu,
  .blog-menu .hs-menu-wrapper > ul,
  .blog-menu .hs-menu-wrapper > ul li,
  .blog-menu .hs-menu-wrapper > ul li a{
    display: inline-block;
    float: none;
    position: static;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    padding: 0px;
    margin: 0px;
    background-image: none;
    background-color: transparent;
    border: 0px;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    border-radius: 0px;
    -webkit-box-shadow: none;
    -moz-box-shadow:    none;
    box-shadow:         none; 
    max-width: 100%;
    width: 100%;
    height: auto;
    line-height: 1.72;  
    font-weight: normal;
    text-decoration: none;
    text-indent: 0px;
    text-align: right;
    color:#ffffff;
  }

  /* Toggle Button
     ========================================================================== */

  .mobile-trigger{
    display: inline-block !important; /* Show button on mobile */
    cursor: pointer; /* Mouse pointer type on hover */
    position: absolute; /*******************************************/
    top: 0px;          /* Position Button at right of screen  */
    right: 0px;        /*******************************************/
    width: auto; /* Button width */
    height: auto; /* Button height */      
    padding: 7px 10px 8px 10px;
    background: transparent; /* Background color */
    border: 0px solid transparent;
    font-size: 16px;
    font-weight: normal;
    text-align: left;
    text-transform: uppercase;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    color: #ffffff;
    margin-top: -30px;
  }
  .mobile-trigger:hover{
    text-decoration: none; /* Removes link text underline on button */
    color:transparent;
    background-color: transparent; 
    border-color: transparent;
  }
  
  @media only screen and (max-width: 767px) {
    .mobile-trigger {
        margin-top:-60px;
        margin-right: -24px;
    }
}

  /* Change button when menu is open */
  .mobile-open .mobile-trigger{
    color:transparent;
    background-color: transparent; 
    border-color: transparent;
  }


  /* Toggle Button Icon
     ========================================================================== */

  .mobile-trigger i{
    display: inline-block;
    position: absolute;
top: -4px;
  }
  .mobile-trigger i:before, .mobile-trigger i:after{
    position: absolute;
    content: '';
  }
  .mobile-trigger i, .mobile-trigger i:before, .mobile-trigger i:after{
    width: 22px; /* Icon line width */
    height: 2px; /* Icon line height */
    -webkit-border-radius: 1px;
    -moz-border-radius: 1px;
    border-radius: 1px;
    background-color: transparent; /* Icon color */
    display: inline-block;
  }
  .mobile-trigger i:before{
    top: -6px; /* Position top line */
  }
  .mobile-trigger i:after{
    top: 6px; /* Position bottom line */
  }
  
  .mobile-trigger:hover i, .mobile-trigger:hover i:before, .mobile-trigger:hover i:after,  
  .mobile-open .mobile-trigger i, .mobile-open .mobile-trigger i:before, .mobile-open .mobile-trigger i:after{
      background-color: transparent; /* Icon color */
  }


  /* Child Toggle Button
     ========================================================================== */

  .child-trigger{
    display: block !important; /* Hide button on Desktop */
    cursor: pointer; /* Mouse pointer type on hover */
    position: absolute;
    top: 0px;
    right: 0px;
    width: 24px !important; /* Button width */
    min-width: 55px !important;
    height: 45px !important; /* Button height */  
    padding: 0 !important;
  }
  .child-trigger:hover{
    text-decoration: none;
  }
  .child-trigger i{
    position: absolute;
    top: 50%; /* Centers icon inside button */
    margin: 0 auto !important;
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  .child-trigger i:after{
    position: absolute;
    content: '';
  }
  .child-trigger i, .child-trigger i:after{
    width: 10px; /* Icon line width */
    height: 1px; /* Icon line height */
    background-color:#ffffff; /* Icon color */
    display: inline-block;

  }
  .child-trigger i:after{
    -webkit-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    transform: rotate(-90deg);
  }
  .child-trigger.child-open i:after{
    -webkit-transform: rotate(-180deg);
    -ms-transform: rotate(-180deg);
    transform: rotate(-180deg);
  }
  .child-trigger.child-open i{
  }

    
  /* Menu Styles on Mobile Devices
     ========================================================================== */  
     
   .blog-menu.js-enabled{
       position: relative;
       margin: 10px 10px 10px 10px;
   }

   
   .Sidebar--visible {
       max-width: 264px;
  width: 100%;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  z-index: 10001;
  background: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14), 0 5px 7px rgba(0, 0, 0, 0.07), 0 0 36px rgba(0, 0, 0, 0.07);
  -webkit-transform: translateX(25px) scale(1.05);
  -ms-transform: translateX(25px) scale(1.05);
  transform: translateX(25px) scale(1.05);
  transition: none;
  -webkit-transition-property: -webkit-transform, opacity, visibility;
  -o-transition-property: transform, opacity, visibility;
  transition-property: transform, opacity, visibility;
  -webkit-transition-duration: 0.15s, 0.15s, 0s;
  -o-transition-duration: 0.15s, 0.15s, 0s;
  transition-duration: 0.15s, 0.15s, 0s;
  -webkit-transition-timing-function: ease-in, ease-in, linear;
  -o-transition-timing-function: ease-in, ease-in, linear;
  transition-timing-function: ease-in, ease-in, linear;
  -webkit-transition-delay: 0s, 0s, 0.5s;
  -o-transition-delay: 0s, 0s, 0.5s;
  transition-delay: 0s, 0s, 0.5s;
   }
   

  /* Hide menu on mobile */
  .blog-menu.js-enabled .hs-menu-wrapper,
  .blog-menu.js-enabled .hs-menu-children-wrapper{
    display: none;
  }  

  /* Make child lists appear below parent items */
  .blog-menu ul.hs-menu-children-wrapper{
     visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    display: none;
}

  /* Mobile Menu Styles */ 
  .blog-menu.js-enabled .hs-menu-wrapper{
    width: 100%;
    position: relative; /**************************************************************/
    top: 0;             /* Positions the menu to drop from the very top of the screen */
    left: 0;          /**************************************************************/
    padding: 0;
  }
  .blog-menu .hs-menu-wrapper{
    background-color:transparent; /* Menu background color set off global menuColorMobile variable */
    width: 100%; /* Full screen width */
  }

   /* Level 1 Menu List Styles */
  .blog-menu .hs-menu-wrapper > ul > li{
    position: relative;
  }
  .blog-menu .hs-menu-wrapper > ul > li a{
    font-size: 22px; /* Font size of top level list items */
    line-height: 45px;
    overflow: visible;
    text-align: right;
  }


  /* Level 1 and Higher Menu List Styles */
  .blog-menu .hs-menu-wrapper > ul li{
    list-style: none;

  }
  .blog-menu .hs-menu-wrapper >  ul li a{
    padding: 0 10px;
    color: #ffffff /* link color set by global mobile-aColor variable */
  }
  .blog-menu .hs-menu-wrapper > ul li a:hover{
    color:#ffffff; /* link hover color set by global mobile-aColorHover variable */
  }

  /* Level 2 and Higher Menu List Styles */
  .blog-menu .hs-menu-wrapper > ul ul li{
    background-color: rgba(255, 255, 255, .08);
  }
  .blog-menu .hs-menu-wrapper > ul ul li a{
    text-indent: 10px; /* Indent Child lists */
    font-size: 16px; /* Font size of child lists */
  }

  /* Level 3 and Higher Menu List Styles */
  .blog-menu .hs-menu-wrapper > ul ul ul li a{
    text-indent: 30px; /* Indent Child lists */
  }
  .blog-menu .hs-menu-wrapper > ul ul ul ul li a{
    text-indent: 50px; /* Indent Child lists */
  }
}





/* Note: This is one big hack. We don't have phenotypes table styles so these
are just eyeball adjustments from the facts-table styles. I'm positive these
need adjustment */

.SidebarMenu {
  max-width: 264px;
  width: 100%;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  z-index: 10001;
  background: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14), 0 5px 7px rgba(0, 0, 0, 0.07), 0 0 36px rgba(0, 0, 0, 0.07);
  visibility: hidden;
  opacity: 0;
  -webkit-transform: translateX(25px) scale(1.05);
  -ms-transform: translateX(25px) scale(1.05);
  transform: translateX(25px) scale(1.05);
  transition: none;
  -webkit-transition-property: -webkit-transform, opacity, visibility;
  -o-transition-property: transform, opacity, visibility;
  transition-property: transform, opacity, visibility;
  -webkit-transition-duration: 0.15s, 0.15s, 0s;
  -o-transition-duration: 0.15s, 0.15s, 0s;
  transition-duration: 0.15s, 0.15s, 0s;
  -webkit-transition-timing-function: ease-in, ease-in, linear;
  -o-transition-timing-function: ease-in, ease-in, linear;
  transition-timing-function: ease-in, ease-in, linear;
  -webkit-transition-delay: 0s, 0s, 0.5s;
  -o-transition-delay: 0s, 0s, 0.5s;
  transition-delay: 0s, 0s, 0.5s;
}

.SidebarMenu--visible {
  visibility: visible;
  opacity: 1;
  transform: translateX(0) scale(1);
  -webkit-transition: none;
  -o-transition: none;
  transition: none;
  -webkit-transition-duration: 0.25s, 0.25s;
  -o-transition-duration: 0.25s, 0.25s;
  transition-duration: 0.25s, 0.25s;
  -webkit-transition-property: -webkit-transform, opacity;
  -o-transition-property: transform, opacity;
  transition-property: transform, opacity;
  -webkit-transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1), cubic-bezier(0.215, 0.61, 0.355, 1);
  -o-transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1), cubic-bezier(0.215, 0.61, 0.355, 1);
  transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1), cubic-bezier(0.215, 0.61, 0.355, 1);
}

.SidebarMenu--medium {
  max-width: 302px;
}

@media (min-width: 600px) {
  .SidebarMenu--medium-sm {
    max-width: 302px;
  }
}

.blog-menu {
    color: rgba(255,255,255,.98);
    margin-top:-13px;
    text-align: right!important;
    padding-right:0px;
    padding-top: 0px;
}
.blog-menu .hs-menu-item a {
    color:#fff;
    font-size: 14px!important;
    line-height: 21px!important;
    letter-spacing: 0!important;
    font-weight: normal!important;
    padding-bottom: 12px;
    border-bottom-width: 3px;
    padding-left: 1px;
    padding-right: 1px;
    border-bottom: 0 solid transparent;
    margin-right: 24px!important;
    text-decoration: none;
}
.blog-menu .hs-menu-item a:hover {
    border-bottom: 3px solid #16b8e0;
}
.blog-menu .hs-menu-item:nth-of-type(1) a {

}
.blog-menu .hs-menu-item:last-child {
    position:relative;
    padding-left: 24px!important;
}
.blog-menu .hs-menu-item:last-child a {
    font-weight: 700!important;
    margin-right: 0px!important;
}
.blog-menu .hs-menu-item:last-child:before {
    content: "";
    position: absolute;
    left: 0;
    display: inline-block;
    width: 1px;
    height: 21px;
    background-color: rgba(255,255,255,.3);
}

.no-hover-underline:hover {
  text-decoration: none !important;
}

a:hover .d-block-on-hover {
  display: inline-block !important;
}

.hs-menu-flow-vertical .hs-menu-item {
    margin-bottom: 5px;
  list-style: none;
}

.no-hover-underline:hover {
  text-decoration: none !important;
}

a:hover .d-block-on-hover {
  display: block !important;
}

