/* -----------------------------------------------
----------------- Toc menu styling ---------------
----------------------------------------------- */
.hav-toc-heading h1 {
   margin-top: .625rem;
}
@media (max-width: 990px) {
   .hav-toc-heading {
      margin-right: 0;
   }
}  
/******** Main content ********/
.hav-toc-content {
   margin-right: 6.875rem;
}
.hav-toc-content > .sv-text-portlet > .sv-text-portlet-content > h1 {
   margin-top: 2rem;
   margin-bottom: 0;
}

/* Navigation fix */
.hav-flex aside .sv-script-portlet, 
.hav-flex aside .sv-script-portlet .hav-right-navigation__wrapper,
.hav-flex aside .sv-html-portlet,
.hav-flex aside .sv-html-portlet .hav-right-navigation__wrapper {
   height: 100%;
}
.hav-flex aside .sv-script-portlet .hav-right-navigation__wrapper,
.hav-flex aside .sv-html-portlet .hav-right-navigation__wrapper {
   /* background-color: #F1F5F6; */
}

/******** Navigation ********/
.hav-right-navigation__wrapper {
   display: flex;
   align-items: flex-start;
   overflow: visible;
   position: absolute;
}
.hav-right-navigation {   
   position: sticky;
   top: 100px;
   margin-top: 4rem;
   padding: 0 1rem 1rem 2.5rem;
}
.hav-right-navigation ol {
   list-style: none;
   padding: 0;
}
.hav-right-navigation ol li a {
   display: block;
   position: relative;
   color: #005F88;
   font-size: 1rem;
   line-height: 1.5rem;
   text-decoration: none;
   margin-bottom: .6rem;
   padding-bottom: 0;
    padding-top: 0;
}
.hav-right-navigation ol li a:before {
   content: "";
   display: block;
   position: absolute;
   left: -55px;
   top: 9px;
   background-color: #F04B0F;
   height: 4px;
   width: 32px;
   opacity:0;
   pointer-events: none;
   -webkit-transition: .4s;
   -moz-transition: .4s;
   -o-transition: .4s;  
   transition: .4s;
}
.hav-right-navigation ol li.is-active-li > a {
   font-family: TT Norms Pro Bold, sans-serif;
}

.hav-right-navigation ol li.is-active-li > a:before {
   opacity:1;
}

.hav-toc-navigation > ol > li > ol.is-collapsible {
   margin-left: 1.2rem;
}
.hav-toc-navigation > ol > li > ol.is-collapsible a:before {
   left: -75px;
}

.is-collapsible {
    max-height: 1000px;
    overflow: hidden;
    transition: all 300ms ease-in-out;
}

.is-collapsed {
    max-height: 0;
}

/******** Graybox - Gray background to the right of a page ********/
.hav-graybox {
   position: absolute;
   width: 35%;
   background-color: #F1F5F6;
   top: 0;
   z-index: -1;
   right: 0;
   bottom: 0;
}
@media screen and (min-width: 1280px) {
   .hav-graybox {
      width: calc(calc(100vw / 2) - calc(1230px / 2) * .34);
   }
}

@media (max-width: 990px) {
   .hav-graybox {
      display: none;
   }
   .hav-flex {
      flex-direction: column;
   }
   .hav-toc-content {
      margin-right: 0;
   }
   .hav-flex .hav-page__column-left {
      order: 2;
   }
   .hav-flex .hav-page__column-left + aside .hav-right-navigation__wrapper {
      display: block;
   }
   .hav-right-navigation {
      display: none;
      position: relative;
      margin-top: 1rem;
      top: 0;
      padding: 1.5rem 1rem 1rem;
   }
   .hav-right-navigation ol li a:before {
      display: none;
   }
}

/* Mobile navigation */
.hav-right-navigation__wrapper.hav-right-navigation__wrapper--mobile {
   display: none;
   background-color: #F1F5F6;
   position: relative;
}

@media (max-width: 990px) {
   .hav-right-navigation__wrapper.hav-right-navigation__wrapper--mobile {
      display: block;
      margin-left: -1rem;
      margin-right: -1rem;
   }
   .hav-right-navigation.hav-right-navigation--mobile {
      display: block;
      margin-top: 0;
      margin-bottom: 1.4rem;
   }
   .hav-toc-content > .sv-text-portlet > .sv-text-portlet-content > h1 {
      margin-bottom: 2rem;
   }
   .hav-right-navigation.hav-right-navigation--mobile ol li.is-active-li > a {
      font-family: "TT Norms Pro Regular",sans-serif;
   }
}

