/* TOC Module */
.modularity-mod-mcm-toc-module {
    position: absolute !important;
    margin-left: 1rem;
    height: calc(var(--landskrona-sidebar-full-height, 100vh) - 20rem);
}

.modularity-toc {
    position: sticky;
    top: 10rem;
}
.mcm-toc-module__heading {
    font-size: 2rem;
    font-weight: bold;
    font-family: var(--h2-font-family, var(--font-family-heading, var(--font-family-base)));
}
.toc-list {
    list-style: none;
    padding: 0;
    padding-left: 1rem;
    border-left: 1px solid var(--color-primary-light);
}
.toc-item {
    padding: 0.5rem 0;
    margin: 0;
}
.toc-link {
    display: block;
    padding: 0;
    font-size: 1.25rem;
    font-weight: 400;
    font-family: var(--font-family-base);
    color: #605e5e !important;
    text-decoration: none;
}
.toc-link:before {
    background: #0000;
    content: "";
    height: 100%;
    width: .18753em;
    position: absolute;
    top: 0;
    left: -1.125rem;
    transition: top .3s, bottom .3s;
}
.toc-link.active {
    color: var(--theme-page-title-color, #000) !important;
    font-weight: 700;
}
.toc-link.active:before {
    background: var(--color-page-theme, --color-primary);
}

.o-grid>*:has(.modularity-mod-mcm-toc-module) {
    position: unset;
}

.modularity-mod-mcm-toc-module:empty {
    display: none;
}

@media (max-width: 1248px) {
    .modularity-mod-mcm-toc-module {
        position: unset!important;
        height: unset;
    }
}

