/* TOC BLOCK */
.block-toc__container {
  display: none; /*hide until scroll*/
}
.block-toc {
  padding: 0.75em 0.75em;
  background: var(--brand-lightgray);
  margin: 1.5em 0;
}

.block-toc summary {
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
}

.block-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.2;
}

.block-toc li {
  margin: 0.75em 0;
  padding-bottom: 0;
}

.block-toc li:last-of-type {
  margin-bottom: 0;
}

.block-toc a {
  font-size: 14px;
  color: #000;
  display: block;
  position: relative;
}

/*Active Styling*/
.block-toc li.active a {
  color: var(--brand-tertiary);
  text-decoration: none;
}
.block-toc li a::before {
  content:"";
  display: block;
  position: absolute;
  left: -16px;
  top: 2px;
  width: 12px;
  height: 12px;
  transition: opacity 200ms linear,transform 300ms cubic-bezier(0.65, 0.05, 0.36, 1);
  opacity: 0;
  transform: translateX(-10px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 12 12'%3E%3Cpath fill='%230F8892' d='M6.26154.536743l-.85527.820367 3.84 3.97963H.676086v1.32655H9.24627l-3.84 3.97961.85527.8204 5.06186-5.28874v-.34909L6.26154.536743z'%3E%3C/path%3E%3C/svg%3E") 50% 50% no-repeat;
  background-size: contain;
}
.block-toc li.active a::before {
  left: -16px;
  top: 2px;
  width: 12px;
  height: 12px;
  transition: opacity 200ms linear,transform 300ms cubic-bezier(0.65, 0.05, 0.36, 1);
  opacity: 1;
  transform: translateX(0px);
}

@media (min-width: 1200px) {
  .block-toc__container {
    position: absolute;
    top: 5px;
    left: -212px;
    width: 180px;
    height: 100%;
  }
  .block-toc {
    margin: 0;
    padding: 0;
    background: none;
    position: sticky;
    top: 115px;
  }
  .block-toc summary {
    display: block;
    font-size: 12px;
  }
  .widget--progress {
    display: none;
  }
}

/*Mobile Fixed Styling*/
@media (max-width: 1199px) {
  .block-toc__container {
    display: none;
  }
  .block-toc__container {
    position: fixed;
    top: 55px;
    z-index: 9999;
    left: 0;
    right: 0;
  }
  .block-toc__container .block-toc {
    margin: 0;
    padding: .5em 1.25em;
  }
}
@media (min-width: 880px) and (max-width: 1199px) {
  .block-toc__container {
    top: 89px;
    position: fixed;
  }
}


/*Progress Scroll on Mobile*/
.widget--progress {
  width: 100%;
  height: 3px;
  appearance: none;
  border: none;
  background-color: transparent;
  color: var(--brand-secondary);
  background-color: var(--brand-lightgray);
  transition: width .6s ease;
  position: absolute;
  bottom: -3px;
}
::-moz-progress-bar {
  appearance: none;
  background-color: var(--brand-secondary) !important;
}
::-webkit-progress-value {
  background-color: var(--brand-secondary) !important;
}
::-webkit-progress-bar {
  background-color: var(--brand-lightgray) !important;
}
.widget--progress[value] {
  appearance: none;
  background-color: var(--brand-secondary) !important;
}

@media (min-width: 1050px) {
  .widget--progress, .widget--progress[value] {
    display: none;
  }
}






/*Undo styling for back-end editor*/
@media (min-width: 65.625em) {
  .block-editor-block-list__layout .block-toc {
    position: relative !important;
    left: 0;
    width: 100%;
  }
}
