ol {
    list-style: auto !important;
}

ul {
    list-style: initial !important;
}

blockquote {
    border-color: var(--color-red);
    padding-left: 1rem;
    border-left-width: 4px;
}

.collapse-btn {
    cursor: pointer;
}

.frame {
    padding: 7px;
}

.shortcode-frame {
    background: #0000cc !important;
    height: auto !important;
}

.document-lists {
    max-height: 100vh;
    overflow-y: auto;
    scrollbar-width: none;

    .list {
        list-style: none !important;
    }

    li {
        border: 1px solid #59595A;
        padding: 1rem;

        &:hover,
        &.active {
            background: #E11932;
            border: 1px solid transparent;
        }

        a {
            text-transform: uppercase;
            text-decoration: none;
            font-family: var(--roboto-medium);
            font-size: 18px;
            color: #FFFFFF;
            line-height: 32px;
        }
    }
}

.document-data *::-webkit-scrollbar-thumb {
    border-radius: 20px;
}

.document-data {
    color: #FFFFFF;
    background-color: var(--color-grey-shade);
    padding: 50px 32px;
    max-height: 100vh;
    overflow-y: scroll;
    outline: 1px solid #59595A;

    h1 {
        font-family: var(--roboto-medium) !important;
        font-size: 28px;
        line-height: 32px;
        text-transform: uppercase;
    }

    p {
        font-family: var(--roboto-thin);
        font-size: 18px;
        line-height: 32px;
    }

    a {
        color: var(--color-red) !important;
    }
}

.document-data::-webkit-scrollbar {
    width: 12px;
    background-color: #262626;
}

.document-data::-webkit-scrollbar-thumb {
    background-color: var(--color-red);
    border: none;
    border-radius: 30px;
}

.related-documents {
    .title {
        font-family: var(--roboto-medium);
        font-size: 30px;
        line-height: 35px;
        color: #FFFFFF;
        text-transform: uppercase;
        margin-bottom: 1rem;
    }

    .related-articles {
        display: grid;
        gap: 1rem;
        grid-template-columns: repeat(3, 1fr);
    }
}

.highlight {
    background-color: red;
}

.tooltip {
    margin-bottom: 1rem !important;
}

.tooltip .tooltip-arrow {
    display: none;
}

.tooltip .tooltip-inner {
    border: 1px solid var(--color-red);
    background: #1A1A1A !important;
    color: #fff;
    font-family: var(--roboto-thin);
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    max-width: 400px;
    padding: 1rem 2rem;
    box-shadow: 0px 0px 15.99px 0px #000000;
    border-radius: 0;
}

.tooltip::before {
    content: '';
    width: 25px;
    height: 25px;
    position: absolute;
    border: 1px solid red;
    bottom: 3px;
    right: 50%;
    transform: translate(15px, 15px) rotate(45deg);
    background: #1A1A1A !important;
    border-top: none;
    border-left: none;
}

.arrow-next-prev {
    position: absolute;
    top: 50%;
    right: 2%;
    transform: translate(-50%, -50%);
}

.rotate-180 {
    transform: rotate(180deg);
}

.current-highlight {
    background-color: orange;
}

@media (max-width:992px) {
    .document-data {
        padding: 1rem;
        overflow-x: hidden;

        h1 {
            font-size: 22px;
            line-height: normal;
        }

        p {
            font-size: 16px;
            line-height: normal;
        }
    }

    .related-documents {
        .title {
            font-size: 42px;
            line-height: 49.22px;
        }

        .related-articles {
            grid-template-columns: repeat(1, 1fr);
        }
    }

    .arrow-next-prev {
        right: 10% !important;
    }
}

@media (max-width:576px) {
    .related-documents {
        .title {
            font-size: 28px;
        }
    }
}

.rotate-icon {
    transition: transform 0.3s;
}

a[aria-expanded="true"] .rotate-icon {
    transform: rotate(180deg);
}
