
/* Class is added only to the existing Article Overview box */
.cacar-toc-safe-opt{
    width:196px !important;
    min-width:196px !important;
    max-width:196px !important;

    box-sizing:border-box !important;

    position:sticky !important;
    top:96px !important;
    align-self:flex-start !important;

    margin-left:auto !important;
    margin-right:0 !important;

    background:#fff !important;
}

/* Keep all existing TOC content inside the narrower box */
.cacar-toc-safe-opt,
.cacar-toc-safe-opt *{
    box-sizing:border-box !important;
}

.cacar-toc-safe-opt a,
.cacar-toc-safe-opt li,
.cacar-toc-safe-opt p,
.cacar-toc-safe-opt span{
    max-width:100% !important;
    word-break:normal !important;
    overflow-wrap:break-word !important;
}

/* Slightly tighter spacing only inside the existing TOC */
.cacar-toc-safe-opt a{
    line-height:1.38 !important;
}

/* Tablet: keep it compact */
@media (max-width:1100px){
    .cacar-toc-safe-opt{
        width:180px !important;
        min-width:180px !important;
        max-width:180px !important;
    }
}

/* Mobile: never force a narrow sidebar */
@media (max-width:768px){
    .cacar-toc-safe-opt{
        width:100% !important;
        min-width:0 !important;
        max-width:100% !important;

        position:relative !important;
        top:auto !important;

        margin-left:0 !important;
        margin-right:0 !important;
    }
}
