.ghqTableOfContents {
  background: #fff;
  -webkit-box-shadow: 0px 8px 14px 0px rgba(68, 52, 77, 0.16),
    0px 4px 6px 0px rgba(46, 32, 54, 0.24);
  box-shadow: 0px 8px 14px 0px rgba(68, 52, 77, 0.16),
    0px 4px 6px 0px rgba(46, 32, 54, 0.24);
  display: none;
  height: calc(100vh - 99px);
  left: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 45px 5px 45px 16px;
  position: absolute;
  top: 56px;
  width: 320px;
  z-index: 1;
}

.ghqTableOfContents.visible {
  display: block;
}

.PublicCardShell__lower-content.toc-open {
  padding-left: 338px;
  padding-right: 25px;
}

.PublicCardHome.toc-open {
  margin: 0;
  max-width: 100%;
}

@media screen and (max-width: 835px) {
  .PublicCardShell__lower-content.toc-open {
    padding-left: 150px;
  }
}

.ghqTableOfContents a {
  border-radius: 2px;
  color: #000;
  cursor: pointer;
  display: inline-block;
  font-size: 15px;
  line-height: 22px;
  margin: 4px 0;
  overflow: hidden;
  padding: 0 3px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.ghqTableOfContents a:focus {
  -webkit-box-shadow: 0 0 0 2px #fff, 0 0 0 4px #242c38;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #242c38;
}

.ghqTableOfContents .level-one > a {
  font-size: 16px;
}

.toc-trigger {
  background: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  line-height: 0;
  padding: 3px;
  position: absolute;
}

.toc-trigger,
.toc-trigger:hover {
  -webkit-transition: background 0.15s ease-in-out, color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, fill 0.15s ease-in-out;
  -o-transition: background 0.15s ease-in-out, color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, fill 0.15s ease-in-out;
  transition: background 0.15s ease-in-out, color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, fill 0.15s ease-in-out;
}

.toc-trigger:hover {
  background-color: #ebeef2;
}

.toc-trigger svg {
  fill: #515965;
  height: 20px;
  width: 20px;
}

.open-toc {
  left: 9px;
  top: 65px;
  z-index: 5;
}

.open-toc.hidden {
  /*TODO: remove important when manual local storage flag is removed */
  display: none !important;
}

.close-toc-wrapper {
  background: white;
  display: none;
  height: 45px;
  left: 0;
  position: absolute;
  top: 56px;
  width: 320px;
  z-index: 4;
}

.close-toc-wrapper.visible {
  display: block;
}

.toc-trigger.close-toc {
  left: 9px;
  position: absolute;
  top: 9px;
  z-index: 5;
}

.close-toc.hidden {
  display: none;
}
