
.ccstoc-inline {
    width: 100%;
    max-width: 600px;
    margin: 40px auto
}

.ccstoc {
    background: var(--ccstoc-bg);
    border-width: var(--ccstoc-border-width);
    border-color: var(--ccstoc-border-color);
    box-shadow: var(--ccstoc-shadow);
    border-style: var(--ccstoc-border-style);
    border-radius: 8px;
    padding: 10px 10px;
    margin-bottom: 2rem;
    font-family: inherit;
}

@media (max-width:768px){
  .ccstoc-sidebar{
    display:none;
  }
}


.ccstoc a {
    position: relative
}

.ccstoc:not(.theme-color) a {
    text-decoration: none
}

.ccstoc:not(.theme-color) a:hover {
    text-decoration: underline;
    text-decoration-color: var(--ccstoc-text)
}

.ccstoc[style*="--ccstoc-border-tb:1"] {
    border-left-width: 0;
    border-right-width: 0;
    border-radius: 0
}

.ccstoc.frame-shadow {
  border-width: 0;
}

.ccstoc-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ccstoc-title-wrap,
.ccstoc-title {
    color: var(--ccstoc-title)
}

.ccstoc-title-wrap .ccstoc-toggle-btn {
    cursor: pointer
}

.ccstoc-inline .ccstoc {
    padding: 0px 2rem;
}

.ccstoc-inline .ccstoc-title-wrap {
    font-weight: 500;
    font-size: 1.2rem;
    padding:20px 0;
}
.ccstoc-inline .ccstoc-list.open{
  margin-bottom:40px;
}

.ccstoc-toggle-btn {
    font-size: 12px;
    padding: 2px 6px;
    cursor: pointer;
    background-color: transparent;
    border: none
}

button.ccstoc-toggle-btn:focus,
button.ccstoc-toggle-btn:hover {
    background-color:transparent;
    color: inherit;
    outline: none;
    border: none;
}

.ccstoc-list {
    margin: 0;
    list-style: none;
    margin-left: 0;
    padding-left: 0
}

.ccstoc-list li {
    margin-bottom: 0
}

ul.ccstoc-sub {
    margin-bottom: 0;
    margin: 0;
    padding-left: 1.618em
}

.ccstoc-inline .ccstoc-list,
.ccstoc-block .ccstoc-list,
.ccstoc-sidebar .ccstoc-list {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease;
    margin-top: 0
}

.ccstoc.ccstoc-block {
    margin-bottom: 0;
    padding: 0;
    border: none
}

.ccstoc-inline .ccstoc-list.open,
.ccstoc-block .ccstoc-list.open,
.ccstoc-sidebar .ccstoc-list.open {
    max-height: 1000px
}

.ccstoc-h2 {
    font-size: .95em;
    padding-top:2px;
}

.ccstoc-h3 {
    font-size: .9em;
    padding-bottom: 2px
}

.ccstoc-h4,
.ccstoc-h5,
.ccstoc-h6 {
    font-size: .9em
}

.ccstoc-heading-number {
    margin-right: .25em;
    font-weight: 600
}

.ccstoc-side {
    position: fixed;
    top: var(--ccstoc-side-top, 0);
    left: var(--ccstoc-side-left);
    right: var(--ccstoc-side-right);
    height: var(--ccstoc-side-height, auto);
    background: #fff0;
    width: auto;
    min-width:200px;
    max-width: 280px;
    max-height: 100%;
    overflow-y: auto;
    z-index: 9999;
    transform: var(--ccstoc-side-transform);
    transition: transform 0.7s ease;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none
}

@media (max-width:769px){
  .ccstoc-side{
    max-width:100%;
  }
  .ccstoc-side.left{
    left:0;
  }
  .ccstoc-side.right{
    right:0;
  }
}
.ccstoc-side .ccstoc {
    margin-bottom: 0;
    background: var(--ccstoc-side-bg)
}

.ccstoc-side:not(.collapsed) {
    transform: translateX(0)
}

.ccstoc-side.collapsed {
    transform: var(--ccstoc-side-transform)
}

.ccstoc-side a {
    font-size: 14px
}

.ccstoc-side h3 a {
    font-size: 13px
}

.ccstoc-side h4 a,
.ccstoc-side h5 a {
    font-size: 12px
}

.ccstoc-side-handle {
  display: none;
}

.ccstoc-side-handle.is-visible {
    position: fixed;
    width: 40px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 1px -5px 10px 5px rgb(0 0 0 / 10%);
    background-color: #fff;
    color: #111;
    line-height: 1.4;
    border-radius: 0 10px 10px 0;
    z-index: 999999
}


.ccstoc-side-handle.left {
    left: 0
}

.ccstoc-side-handle.right {
    right: 0
}

.ccstoc-side-handle.top {
    top: 35px
}

.ccstoc-side-handle.middle {
    top: 50%;
    transform: translateY(-50%)
}

.ccstoc-side-handle.bottom {
    bottom: 35px
}

.ccstoc-side-handle button,
.ccstoc-side-handle button:hover {
    background: #fff0;
    color: #333;
    line-height: 1.2;
    border: none;
    margin:0;
}

.ccstoc-side-handle svg {
    width: 24px;
    height: 24px;
    stroke: #333
}

.ccstoc-list li {
    position: relative;
    list-style: none;
    margin-top: 0 !important
}


.ccstoc-list li>div {
    display: flex;
    line-height: 200%;
    align-items: start
}

.ccstoc-list .list-item:not(.null) {
    margin-right: 1ch;
    display: inline-flex;
    align-items: center;
    line-height: 1.8;
    white-space: nowrap;
    color: var(--ccstoc-item);
    font-family:serif;
}

.ccstoc:not(.theme-default) .ccstoc-list a{
  color:var(--ccstoc-link);
}

.ccstoc:not(.theme-default) .ccstoc-list a:hover{
  color:var(--ccstoc-hover);
} 

.custom.number::after,
.custom.decimal::after {
    content: '.'
}

.custom.decimal-leading-zero::after {
    content: '|';
    font-size: small;
    padding: 0 5px
}

.ccstoc li.active>div>a {
    font-weight: 700
}

html {
    scroll-behavior: smooth
}

h2[id^="ccstoc-"],
h3[id^="ccstoc-"],
h4[id^="ccstoc-"],
h5[id^="ccstoc-"],
h6[id^="ccstoc-"] {
    scroll-margin-top: 50px
}

.ccstoc.theme-white,
.ccstoc.theme-light {
    border-color: var(--ccstoc-border-color)
}


.ccstoc.theme-dark {
    border-color: var(--ccstoc-bg)
}

.ccstoc.theme-dark .is-seen {
    color: #d2d2da95
}

.ccstoc-inline .ccstoc.custom-color-content,
.ccstoc-sidebar .ccstoc.custom-color-sidebar,
.ccstoc-side .ccstoc.custom-color-side {
    background-color: var(--cc-custom-bg_color);
    border-color: var(--cc-custom_border_color);
    border-width:var(--cc-custom-border-width);
    border-left-width:var(--cc-custom-border-left-width);
    border-right-width:var(--cc-custom-border-right-width);
    box-shadow:var(--cc-custom-shadow);
    border-radius:var(--cc-custom-border-radius);
}

.ccstoc-inline .ccstoc.custom-color-content .ccstoc-title-wrap,
.ccstoc-sidebar .ccstoc.custom-color-sidebar .ccstoc-title-wrap,
.ccstoc-side .ccstoc.custom-color-side .ccstoc-title-wrap,
.ccstoc-inline .ccstoc.custom-color-content .ccstoc-title,
.ccstoc-sidebar .ccstoc.custom-color-sidebar .ccstoc-title,
.ccstoc-side .ccstoc.custom-color-side .ccstoc-title {
    color: var(--cc-custom_title_color)
}

.ccstoc-inline .ccstoc.custom-color-content .ccstoc-toggle-btn,
.ccstoc-sidebar .ccstoc.custom-color-sidebar .ccstoc-toggle-btn,
.ccstoc-side .ccstoc.custom-color-side .ccstoc-toggle-btn {
    color: var(--cc-custom_title_color, var(--cc-custom-link_color, inherit))
}

.ccstoc-inline .ccstoc.custom-color-content .ccstoc-list .list-item,
.ccstoc-side .ccstoc.custom-color-side .ccstoc-list .list-item,
.ccstoc-sidebar .ccstoc.custom-color-sidebar .ccstoc-list li .list-item {
    color: var(--cc-custom_items_color)
}

.ccstoc-inline .ccstoc.custom-color-content a,
.ccstoc-side .ccstoc.custom-color-side a,
.ccstoc-sidebar .ccstoc.custom-color-sidebar a {
    color: var(--cc-custom-link_color);
    text-decoration-color: var(--cc-custom-link_color)
}

.ccstoc-inline .ccstoc.custom-color-content a:hover,
.ccstoc-side .ccstoc.custom-color-side a:hover,
.ccstoc-sidebar .ccstoc.custom-color-sidebar a:hover {
    color: var(--cc-custom-hover_color);
    text-decoration-color: var(--cc-custom-hover_color);
    -moz-text-decoration-color: var(--cc-custom-hover_color)
}

.ccstoc .is-seen,
.ccstoc-inline .ccstoc.custom-color-content .ccstoc-list .list-item.is-seen,
.ccstoc-side .ccstoc.custom-color-side .ccstoc-list .list-item.is-seen,
.ccstoc-sidebar .ccstoc.custom-color-sidebar .ccstoc-list li .list-item.is-seen,
.ccstoc-inline .ccstoc.custom-color-content a.is-seen,
.ccstoc-side .ccstoc.custom-color-side a.is-seen,
.ccstoc-sidebar .ccstoc.custom-color-sidebar a.is-seen {
    opacity: .8
}

.ccstoc-sidebar.fixed {
    position: fixed;
    top: 80px;
    z-index: 100
}

.ccstoc-sidebar {
    padding: 15px 0;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none
}

.ccstoc-sidebar .ccstoc {
    padding: .5em 1em
}

.ccstoc-sidebar::-webkit-scrollbar {
    display: none
}

.ccstoc-sidebar .ccstoc-title-wrap {
    display: none
}