.toc_sticky {
  position: fixed !important;
  top: 10px;
}
.toc_selected,
.toc_selected:hover /* have to add this selector to override ee site defaults */ {
  /* background: #fff;
  outline: 2px #000 dashed;
  outline-offset: 2px; */
}
.toc_selected:focus {
  /* outline-style: auto;
  outline-offset: initial; */
}

#toc-wrap {
  position: relative;
  left: 0;
  z-index: 100;
  width: 100%;
  padding: 4px 0 6px;
  text-align: center;
  /* background: var(--bg-white) url("../images/open-icon@3x.png") no-repeat;
  background-size: 15px;
  background-position: calc(50% + 70px) 50%;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px; */
  background: var(--ee-blue);
  line-height: 1;
}
#toc-wrap[data-hidden=false] {
  background-image: none;
}
#toc-wrap[data-hidden=false]:before {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  top: 14px;
  left: calc(50% + 85px - 6px);
  background: url(../images/open-icon@3x.png) 0 0 no-repeat;
  filter: invert(1);
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
  background-size: contain;
}
#toc-wrap[data-hidden=false] #toc-toggle,
#toc-wrap[data-hidden=false] #toc-title,
#toc-wrap[data-hidden=false] #toc-root {
  background-color: var(--ee-blue);
}
  

#toc-wrap[data-hidden=true] {
  cursor: pointer;
}
#toc-wrap #toc-toggle {
  position: relative;
  top: 2px;
  vertical-align: baseline;
  cursor: pointer;
  display: inline-block;
  height: 16px;
}
#toc-wrap #toc-toggle:hover,
#toc-wrap #toc-toggle:focus {
  background: var(--bg-white);
}
#toc-wrap #toc-toggle:focus {
    outline-offset: 5px;
}
#toc-wrap #toc-close {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  height: 30px;
  cursor: pointer;
}
#toc-wrap #toc-title {
  display: inline-block;
  margin: 0;
  padding: 0 10px 10px;
  font-size: .8rem;
  font-weight: bold;
  color: white;
  font-family: Poppins, sans-serif;
}

#toc-wrap[data-hidden=false] #toc-title {
  padding: 0 10px 24px;
}

#toc-wrap #toc-title[hidden] {
  display: none;
}
#toc-wrap ul#toc-root {
  padding: 0 20px;
  margin: 0;
  list-style-type: none;
  text-align: left;
}
#toc-wrap ul#toc-root:before {
  content: '';
  border-top: 1px #ccc solid;
  width: 100%;
  display: block;
  top: -9px;
  position: relative;
}
#toc-wrap ul#toc-root a {
  text-decoration: none;
  display: inline-block;
}

#toc-wrap ul#toc-root a:hover,
#toc-wrap ul#toc-root a:focus {
  /* text-decoration: underline; */
  color: #45484B;
}

/* new focus/hover indicator */
#toc-wrap ul#toc-root li > span:has(a:focus),
#toc-wrap ul#toc-root li > span:has(a:hover) {
  background-color: rgba(255, 255, 255, .3);
  border-bottom: solid 4px white;
  font-weight: 900;
}

li > span:has(.toc_selected) {
  border-bottom: solid 4px var(--highlight-blue) !important;
}

#toc-wrap li > span > a.toc_selected {
  color: var(--highlight-blue) !important;
}

#toc-wrap ul#toc-root li {
  list-style-type: none;
  font-family: Lato, sans-serif;
  font-size: 15px;
}

#toc-wrap ul#toc-root > li:not(:last-child) span, 
#toc-wrap ul ul li:not(:last-child) span {
  border-bottom: solid 1.5px var(--bg-light-gray-2);
}

#toc-wrap ul#toc-root li span {
  display: block;
  line-height: 1.3em;
  padding: 15px 0;
}
#toc-wrap ul#toc-root > li > span a {
  color: white;
}
#toc-wrap ul#toc-root > li > span a.toc_selected {
  color: lightgrey;
}
#toc-wrap ul#toc-root > li > ul > li > span,
#toc-wrap ul#toc-root > li > ul > li > span > a {
  color: white;
}
#toc-wrap ul#toc-root > li > ul > li > span.toc_selected,
#toc-wrap ul#toc-root > li > ul > li > span > a.toc_selected {
  color: lightgrey;
}
#toc-wrap ul#toc-root > li > ul > li > ul > li span,
#toc-wrap ul#toc-root > li > ul > li > ul > li span > a {
  color: white;
}
#toc-wrap ul#toc-root > li > ul > li > ul > li span.toc_selected,
#toc-wrap ul#toc-root > li > ul > li > ul > li span > a.toc_selected {
  color: lightgrey;
}

#toc-wrap span,
  #toc-wrap span a {
    color: white;
  }
@media screen and (min-width: 1200px) {
  body main {
    /*width: 1180px;*/
    /*margin: 0 auto;*/
  }

  #toc-wrap {
    position: absolute;
    background-color: var(--bg-white);
    /* position: fixed; */
    text-align: left;
    background-image: none;
    border-radius: 6px;
    /*top: -7px;*/
    /* left: calc((100% - 1176px)/2); -80px; */
    /* left: calc(50vw - 620px - 7px); */
    left: calc(50vw - 576px - 7px);
    width: 240px;
  }

  #toc-wrap[data-hidden=false] #toc-toggle,
  #toc-wrap[data-hidden=false] #toc-title,
  #toc-wrap[data-hidden=false] #toc-root {
    background: var(--bg-white);
  }

  #toc-wrap[data-hidden=true] {
    width: 50px;
    background: transparent;
    transition: background-color 1s ease;
    cursor: default;
  }
  #toc-wrap[data-hidden=true] #toc-title {
    display: none;
  }
  #toc-wrap[data-hidden=false]:before {
    background-image: none;
  }
  #toc-wrap[data-hidden=false] #toc-title {
    background: transparent;
  }
  #toc-wrap #toc-toggle {
    padding: 5px;
    height: 46px;
    background-color: transparent;
  }
  #toc-wrap #toc-title {
    font-size: 16px;
    position: absolute;
    top: 24px;
    color: var(--ee-blue);
  }
  #toc-wrap ul#toc-root {
    padding-left: 7px;
    overflow-y: scroll;
    overflow-x: hidden;
  }

  #toc-wrap ul ul {
    margin-left: 20px;
  }

  #toc-wrap ul#toc-root::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: var(--bg-white);
  }
  #toc-wrap ul#toc-root::-webkit-scrollbar {
    width: 5px;
    background-color: var(--bg-white);
  }
  #toc-wrap ul#toc-root::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: var(--ee-dark-gray);
  }
  #toc-wrap #toc-close {
    display: none;
  }

  #toc-wrap span,
  #toc-wrap span a {
    color: var(--ee-black);
  }

  #toc-wrap ul#toc-root > li > span a {
    color: var(--ee-dark-gray);
  }
  #toc-wrap ul#toc-root > li > span a.toc_selected {
    color: #000;
  }
  #toc-wrap ul#toc-root > li > ul > li > span,
  #toc-wrap ul#toc-root > li > ul > li > span > a {
    color: var(--ee-dark-gray);
  }
  #toc-wrap ul#toc-root > li > ul > li > span.toc_selected,
  #toc-wrap ul#toc-root > li > ul > li > span > a.toc_selected {
    color: #000;
  }
  #toc-wrap ul#toc-root > li > ul > li > ul > li span,
  #toc-wrap ul#toc-root > li > ul > li > ul > li span > a {
    color: var(--ee-dark-gray);
  }
  #toc-wrap ul#toc-root > li > ul > li > ul > li span.toc_selected,
  #toc-wrap ul#toc-root > li > ul > li > ul > li span > a.toc_selected {
    color: #000;
  }
  #toc-wrap ul#toc-root li span {
    padding: 5px 0;
  }

  #toc-wrap ul#toc-root li > span:has(a:focus),
  #toc-wrap ul#toc-root li > span:has(a:hover) {
    color: var(--ee-blue) !important;
    background-color: var(--bg-light-gray);
    border-bottom: solid 4px var(--ee-blue);
  }
}
/* @media screen and (min-width: 1500px) { */
@media screen and (min-width: 1200px) {
  body main {
    /*width: 1460px;*/
    /*padding-left: 290px;*/
  }
  body main.kb-toc-enable {
    /*padding-left: 290px;*/
  }
  #toc-wrap {
    /* left: calc((100% - 1416px) / 2) */
  }
  #toc-wrap {
    /* width: 215px; */
    background-color: var(--bg-white);
  }

  /* #toc-wrap #toc-toggle {
    cursor: auto;
  }
  #toc-wrap #toc-title {
    display: inline-block;
  } */
   
  /* #toc-wrap #toc-toggle,
  #toc-wrap #toc-title {
    display: none;
  } */
}