{# ============================== #}
{#        TABLE CONTAINER        #}
{# ============================== #}

.table-of-contents {
  width: 100%;
  height: 100vh;
  position: relative;
  z-index: 100;
  overflow: auto;
}

.blog-post .table-of-contents {
  height: auto;
}


{# ============================== #}
{#         TOC ANCHORS           #}
{# ============================== #}

.table-of-contents a {
  display: block;
  width: 100%;
}

.table-of-contents a.table-of-contents-sub-section {
  padding-left: 20px !important;
}


{# ============================== #}
{#         TOC PARAGRAPHS        #}
{# ============================== #}

.table-of-contents p {
  margin-bottom: 5px;
}


{# ============================== #}
{#       LEAD TEXT STYLING       #}
{# ============================== #}

.table-of-contents-lead-text {
  padding-left: 0px;
  border-radius: 5px 5px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-of-contents-lead-text p {
  margin-bottom: 15px;
  padding-left: 5px;
}


{# ============================== #}
{#     SECTION VISIBILITY + UI   #}
{# ============================== #}

.table-of-contents-section {
  display: none;
}

.table-of-contents-section:last-child {
  border-radius: 0 0 5px 5px;
}

.table-of-contents-lead-text::after {
  content: "↓";
  cursor: pointer;
  display: inline-block;
  transition: transform 0.3s ease;
}


{# ============================== #}
{#      DESKTOP BREAKPOINT       #}
{# ============================== #}

@media (min-width: 575px) {
  .table-of-contents-section {
    display: block;
  }

  .table-of-contents-lead-text::after {
    display: none;
  }
}


{# ============================== #}
{#      MOBILE RESPONSIVE        #}
{# ============================== #}

@media (max-width: 575px) {
  .table-of-contents {
    height: auto;
  }

  .table-of-contents.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.3);
  }
}