

/* =========================================
   NEOFUNS TABLE OF CONTENTS
   ========================================= */

.neofuns-auto-toc {
  width: 100%;
  margin: 30px 0 40px;
  box-sizing: border-box;
}


/* =========================================
   TOC CONTAINER
   ========================================= */

.neofuns-toc-details {
  width: 100%;

  margin: 0;

  background: #fff;

  border: 1px solid #9ca3af;

  box-sizing: border-box;
}


/* =========================================
   TOC HEADER
   ========================================= */

.neofuns-toc-toggle {

  min-height: 70px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 0 20px;

  color: #28258a;

  background: #fff;

  font-family: inherit;

  font-size: 24px;

  font-weight: 700;

  line-height: 1.4;

  cursor: pointer;

  list-style: none;

  box-sizing: border-box;
}


/* Remove browser default arrow */

.neofuns-toc-toggle::-webkit-details-marker {
  display: none;
}

.neofuns-toc-toggle::marker {
  display: none;
}


/* =========================================
   ARROW
   ========================================= */

.neofuns-toc-arrow {

  width: 24px;

  height: 24px;

  display: flex;

  align-items: center;

  justify-content: center;

  color: #111;

  flex-shrink: 0;

  transition: transform 0.25s ease;
}


.neofuns-toc-arrow svg {

  width: 22px;

  height: 22px;

  display: block;
}


/* Rotate arrow when opened */

.neofuns-toc-details[open]
.neofuns-toc-arrow {

  transform: rotate(180deg);

}


/* =========================================
   TOC CONTENT
   ========================================= */

.neofuns-toc-content {

  padding: 18px 25px 20px;

  background: #fff;

  border-top: 1px solid #e1e1e1;

  box-sizing: border-box;
}


.neofuns-toc-content ul {

  margin: 0;

  padding: 0;

  list-style: none;

}


/* =========================================
   TOC ITEMS
   ========================================= */

.neofuns-toc-content li {

  margin: 0;

  padding: 0;

}


/* =========================================
   TOC LINKS
   ========================================= */

.neofuns-toc-content a {

  position: relative;

  display: block;

  padding: 8px 0 8px 18px;

  color: #333;

  font-family: inherit;

  font-size: 16px;

  font-weight: 400;

  line-height: 1.6;

  text-decoration: none;

  transition:
    color 0.2s ease,
    padding-left 0.2s ease;

}


/* Blue dot */

.neofuns-toc-content a::before {

  content: "";

  position: absolute;

  left: 0;

  top: 50%;

  width: 5px;

  height: 5px;

  background: #004297;

  border-radius: 50%;

  transform: translateY(-50%);

}


/* Hover */

.neofuns-toc-content a:hover {

  color: #004297;

  padding-left: 22px;

}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 767px) {

  .neofuns-auto-toc {

    margin: 25px 0 30px;

  }


  .neofuns-toc-toggle {

    min-height: 58px;

    padding: 0 16px;

    font-size: 18px;

  }


  .neofuns-toc-arrow {

    width: 22px;

    height: 22px;

  }


  .neofuns-toc-arrow svg {

    width: 20px;

    height: 20px;

  }


  .neofuns-toc-content {

    padding: 12px 18px 15px;

  }


  .neofuns-toc-content a {

    padding: 7px 0 7px 16px;

    font-size: 14px;

    line-height: 1.5;

  }


  .neofuns-toc-content a:hover {

    padding-left: 19px;

  }

}


/* =========================================
   ACCESSIBILITY
   ========================================= */

.neofuns-toc-toggle:focus-visible {

  outline: 2px solid #004297;

  outline-offset: 2px;

}


/* =========================================
   ARTICLE ANCHOR POSITION
   ========================================= */

h2[id^="neofuns-section-"],
h3[id^="neofuns-section-"] {

  scroll-margin-top: 100px;

}

