
/* =========================================
   SMART SIGHT - MINIMAL TABLE OF CONTENTS
========================================= */

[id] {
    scroll-margin-top: 100px;
}

.ss-toc-box {
    --ss-orange: #E27814;
    --ss-navy: #10102F;
    --ss-border: #F1D8C3;
    --ss-bg: #FFFCF9;

    width: 100%;
    position: relative;
    box-sizing: border-box;
    padding: 18px 12px;
    margin: 25px 0 35px;
    background: #FFFCF9;
    border: 1px solid #F1D8C3;
    border-radius: 17px;
    font-family: inherit;
}

/* Header */

.ss-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
/*    padding-bottom: 18px;*/
/*    border-bottom: 1px solid #F1E6DC;*/
/*    margin-bottom: 20px;*/
cursor: pointer;
}

.ss-toc-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ss-toc-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFF0E3;
    color: var(--ss-orange);
    border-radius: 10px;
    font-size: 23px;
}

.ss-toc-label {
    display: block;
    color: var(--ss-orange);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
    margin-bottom: 3px;
}

.ss-toc-heading h3 {
    margin: 0;
    color: var(--ss-navy);
    font-size: 19px;
    font-weight: 700;
}

/* Collapse button */

.ss-toc-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
/*    border: 1px solid var(--ss-border);*/
    border-radius: 6px;
    background: #fff;
    color: #333333;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s ease;
    border: 0;
}

.ss-toc-toggle:hover {
/*    background: var(--ss-orange);*/
    color: #333333;
/*    border-color: var(--ss-orange);*/
}

.ss-toggle-icon {
    font-size: 17px;
    line-height: 1;
    transition: transform .25s ease;
}

.ss-toc-header[aria-expanded="false"] .ss-toggle-icon {
    transform: rotate(180deg);
}
/*.ss-toc-toggle[aria-expanded="false"] .ss-toggle-icon {
    transform: rotate(180deg);
}*/


/* Main TOC list */

.ss-toc-list {
    list-style: none !important;
    counter-reset: none;
    margin: 0 !important;
    padding: 0 !important;
}

.ss-toc-item {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 24px !important;
    border: 0 !important;
}

/* Main heading row */

.ss-toc-main {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    line-height: 1.5;
}

.ss-toc-number {
    flex: 0 0 17px;
    color: #E27814;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.ss-toc-main > a {
    color: #171717;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none !important;
    transition: color .2s ease;
}

.ss-toc-main > a:hover {
    color: #E27814;
}

/* Subheadings */

.ss-toc-item ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 5px 0 0 31px !important;
}

.ss-toc-item ul li {
    position: relative;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 13px !important;
    line-height: 1.5;
}

.ss-toc-item ul li:last-child {
    margin-bottom: 0 !important;
}

.ss-toc-item ul li::before {
    content: "↳";
    position: absolute;
    left: 0;
    top: 0;
    color: #777;
    font-size: 14px;
    line-height: 1.5;
}

.ss-toc-item ul li a {
    display: inline-block;
    padding-left: 19px;
    color: #707070;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none !important;
    transition: all .2s ease;
}

.ss-toc-item ul li a:hover {
    color: #E27814;
    padding-left: 22px;
}

/* Active link */

.ss-toc-box a.active {
    color: #E27814 !important;
}

/* Bottom expand/collapse button */

.ss-toc-expand {
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    width: 33px;
    height: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #dedede;
    border-radius: 50%;
    background: #fff;
    color: #171717;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .06);
    cursor: pointer;
    z-index: 2;
    transition: all .25s ease;
}

.ss-toc-expand:hover {
    background: #E27814;
    border-color: #E27814;
    color: #fff;
}

.ss-toc-arrow {
    font-size: 22px;
    line-height: 1;
    transition: transform .25s ease;
}

.ss-toc-content{
    margin-top: 40px;
    display: none;
}

/* Collapsed state */

.ss-toc-content.is-collapsed {
    display: block;
}

.ss-toc-expand[aria-expanded="false"] .ss-toc-arrow {
    transform: rotate(180deg);
}

/* Tablet and mobile */

@media (max-width: 767px) {

    .ss-toc-box {
        padding: 16px 12px 12px;
        border-radius: 13px;
        margin: 20px 0 30px;
    }

    .ss-toc-item {
        margin-bottom: 21px !important;
    }

    .ss-toc-main {
        gap: 10px;
    }

    .ss-toc-number {
        flex-basis: 17px;
        font-size: 14px;
    }

    .ss-toc-main > a {
        font-size: 14px;
    }

    .ss-toc-item ul {
        margin-left: 27px !important;
        margin-top: 6px !important;
    }

    .ss-toc-item ul li {
        margin-bottom: 11px !important;
    }

    .ss-toc-item ul li a {
        font-size: 12.5px;
    }

}

/* Accessibility */

.ss-toc-box a:focus-visible,
.ss-toc-expand:focus-visible {
    outline: 2px solid #E27814;
    outline-offset: 3px;
}

html {
    scroll-behavior: smooth;
}
