.tocdiv {
  display: flex;
  justify-content: space-between;
}
.p1p-toc .toc-heading {
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 20px;
}
.sub-toc {
 margin-left: 0;
    columns: 4;
    -webkit-columns: 4;
    -moz-columns: 4;
    width: 100%;
}
.sub-toc li {
     list-style: none;
    font-size:1.8rem;
}
.sub-toc li a {
    display: inline-block;
    line-height:2.6rem;
    margin-bottom: 10px;
    margin-top: 5px;
}
.p1p-tocdiv {
  display: flex;
  justify-content: space-between;
}
.resume-toc {
  padding-top: 30px;
}
.mobtoc-toggle, .close, .toc-input {
  display: none;
}
.mobtoc-toggle ~ a {
  display: none;
}
@media (max-width: 767px) {
  .toc-heading {
    display: none;
  }
  .p1p-toc {
    padding-top: 30px;
  }
  .mobtoc .p {
    display: none;
  }
  .mobtoc > ul {
    margin: 0;
  }
  .mobtoc li {
    list-style: none;
  }
  .mobtoc > ul > li {
    line-height: 1;
  }
  .mobtoc > ul > li > a {
    font-size:1.4rem;
    color: #4a4a4a;
    font-weight: 600;
    border: 2px solid #d2d9e2;
    padding: 15px 20px;
    text-transform: uppercase;
    display: block;
    text-decoration: none;
    position: relative;
  }
  .mobtoc > ul > li > a:before {
    position: absolute;
    content: '';
    border: #0077d6 solid;
    border-width: 0 2px 2px 0px;
    transform: rotate(45deg);
    padding: 2px;
    top: 19px;
    right: 24px;
  }
  .mobtoc > ul > li > a:after {
    position: absolute;
    content: '';
    border: 2px #0077d6 solid;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    right: 19px;
  }
  .mobtoc .sub-toc li a:focus {
    color: #397ec9;
    text-decoration: none;
  }
  .mobtoc .tocdiv {
    opacity: 0;
    height: 37%;
    font-size:1.4rem;
    margin-left: 0;
    position: fixed;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 2000;
    background: #fff;
    -webkit-overflow-scrolling: touch;
  }
  .mobtoc .sub-toc {
    overflow-y: scroll;
    display: block;
    -webkit-overflow-scrolling: touch;
    height: 100%;
    margin-left: 0;
	columns: auto;
  }
  .mobtoc .mobtoc-toggle {
    position: absolute;
    width: 100%;
    height: 47px;
    opacity: 0;
    z-index: 10;
    left: 0;
    right: 0;
    display: block;
  }
  .mobtoc .mobtoc-input {
    width: 100%;
    height: 47px;
    opacity: 0;
    z-index: 10;
    left: 0;
    right: 0;
    display: block;
  }
  .sub-toc li {
    text-align: center;
    width: 100%;
    padding-right: 0;
    margin-bottom: 0;
    line-height: 1;
    font-size:1.8rem;
  }
  .sub-toc li a.link {
    color: #8b8b8b;
    display: block;
    padding: 12px 10px;
    text-decoration: none;
    font-weight: normal;
    line-height:2.6rem;
	  margin-bottom: 0px;
	  margin-top: 0px;
  }
  .sub-toc li:last-child {
    margin-bottom: 40px;
  }
  .sub-toc li:hover a {
    color: #397ec9;
  }
  .sub-toc li a:hover, .sub-toc li a:active, .sub-toc li a:focus {
    background-color: #f8fbff;
  }
  .tocdiv:after, .tocdiv:before {
    pointer-events: none;
    position: absolute;
    content: "";
    left: 0;
    top: 0;
    width: 100%;
    height: 49px;
    z-index: 1;
  }
  .tocdiv:before {
    top: 84%;
    background-image: linear-gradient(0deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
  }
  .toc-active {
    background-color: #f8fbff;
  }
  .sub-toc .toc-active a {
    color: #397ec9;
  }
  .overlay {
    position: fixed;
    bottom: 242px;
    background: #0a17216e;
    left: 0;
    top: 0;
    z-index: 1000;
    display: none;
    width: 100%;
    transition: all ease-in 0.3s
  }
  .close {
    left: 0;
    position: fixed;
    top: 43px;
    width: 100%;
    bottom: 240px;
    display: none;
    height: calc(100% - 434px);
    bottom: 240px;
    opacity: 0;
    z-index: 0;
  }
  .label {
    display: none;
    position: relative;
  }
  .label:after {
    position: absolute;
    content: 'Done';
    text-transform: capitalize;
    border: 0;
    color: #469af6;
    font-size:1.3rem;
    top: 15px;
    right: 15px;
  }
  .mobtoc-toggle:checked ~ .overlay .tocdiv {
    opacity: 1;
  }
  .mobtoc-toggle:checked ~ .overlay .label {
    font-size:1.2rem;
    color: #4a4a4a;
    text-transform: uppercase;
    display: block;
    text-decoration: none;
    position: absolute;
    padding: 15px 20px;
    box-shadow: 0 1px 3px #cfcfcf, inset 0 0 0 #e1e0e0;
    background-color: #fafafa;
    width: 100%;
  }
  .toc-input {
    position: fixed;
    bottom: 36%;
    left: 0;
    right: 0;
    z-index: 3000;
    display: block;
  }
  .mobtoc-toggle:checked ~ .close {
    z-index: 1001;
    display: block;
  }
  .mobtoc-toggle:checked ~ .overlay {
    display: block;
  }
  .close:checked ~ .overlay {
    display: none;
  }
  .close:checked {
    display: none;
  }
  .activated{
  background-color: #f8fbff;
  color: #397ec9!important;
}
}