

/* =========================================
   NEOFUNS TABLE OF CONTENTS
   ========================================= */

.neofuns-toc {
  width: 100%;
  max-width: 100%;
  margin: 30px 0 40px;
  box-sizing: border-box;
}


/* =========================================
   HEADER / TOGGLE
   ========================================= */

.neofuns-toc-toggle {
  width: 100%;
  min-height: 70px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 20px;

  background: #fff;

  border: 1px solid #9ca3af;
  border-radius: 2px;

  color: #28258a;

  font-family: inherit;
  font-size: 24px;
  font-weight: 700;

  text-align: left;

  cursor: pointer;

  box-sizing: border-box;

  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}


.neofuns-toc-toggle:hover {
  border-color: #004297;
  background: #fafafa;
}


/* =========================================
   ARROW
   ========================================= */

.neofuns-toc-arrow {
  width: 24px;
  height: 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #111;

  transition: transform 0.25s ease;
}


.neofuns-toc-arrow svg {
  width: 22px;
  height: 22px;

  display: block;
}


/* OPEN STATE */

.neofuns-toc-toggle[aria-expanded="true"]
.neofuns-toc-arrow {
  transform: rotate(180deg);
}


/* =========================================
   CONTENT
   ========================================= */

.neofuns-toc-content {
  border: 1px solid #e1e1e1;
  border-top: 0;

  background: #fff;

  padding: 18px 25px 20px;

  box-sizing: border-box;
}


.neofuns-toc-content ul {
  margin: 0;
  padding: 0;

  list-style: none;
}


.neofuns-toc-content li {
  margin: 0;
  padding: 0;
}


.neofuns-toc-content a {
  position: relative;

  display: block;

  padding: 8px 0 8px 18px;

  color: #333;

  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;

  text-decoration: none;

  transition:
    color 0.2s ease,
    padding-left 0.2s ease;
}


/* small blue indicator */

.neofuns-toc-content a::before {
  content: "";

  position: absolute;

  left: 0;
  top: 50%;

  width: 5px;
  height: 5px;

  background: #004297;

  border-radius: 50%;

  transform: translateY(-50%);
}


.neofuns-toc-content a:hover {
  color: #004297;
  padding-left: 22px;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 767px) {

  .neofuns-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;
  }

}


/* =========================================
   ACCESSIBILITY
   ========================================= */

.neofuns-toc-toggle:focus-visible {
  outline: 2px solid #004297;
  outline-offset: 2px;
}

