.hs-content-with-toc {
    display: grid;
    grid-template-columns: 30% minmax(0, 1fr);
    gap: 56px;
    width: 100%;
}


/*
 * -----------------------------------------
 * LEFT TOC
 * -----------------------------------------
 */

.hs-content-with-toc__sidebar {
    min-width: 0;
}

.hs-content-with-toc__sidebar-inner {
    position: sticky;
    top: 190px;
}

.hs-content-with-toc__title {
    margin: 0 0 40px;

    color: var(--hs-text);

    font-size: 28px;
    line-height: 1.2;
    font-weight: 600;
}

.hs-content-with-toc__nav {
    display: flex;
    flex-direction: column;
}

.hs-content-with-toc__link {
    position: relative;

    display: flex;
    align-items: flex-start;
    gap: 4px;

    padding: 4px 0;

    color: var(--hs-secondary-text-hover);
    font-size: 16px;
    line-height: 1.45;

    text-decoration: none;

    margin-bottom: 10px;

    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}

.hs-content-with-toc__link::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 4px;
    height: 100%;

    background: transparent;
}

.hs-content-with-toc__link.is-active {
    padding-left: 25px;

    color: var(--hs-text);

    font-weight: 600;
}

.hs-content-with-toc__link.is-active::before {
    background: var(--hs-primary);
}


/*
 * -----------------------------------------
 * RIGHT CONTENT
 * -----------------------------------------
 */

.hs-content-with-toc__content {
    min-width: 0;
}

.align-with-main-title .hs-content-with-toc__content {
    margin-top: -89px;
}

.hs-content-with-toc__body {
    color: var(--hs-secondary-text-hover);

    font-size: 16px;
    line-height: 150%;
}


/*
 * H2 = TOC targets
 */

.hs-content-with-toc__body h2 {
    margin: 24px 0 16px;

    padding-top: 24px;

    color: var(--hs-text);

    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;

    scroll-margin-top: 30px;

    border-top: 1px solid var(--hs-light-silver);
}

.hs-content-with-toc__body h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}


/*
 * Paragraphs
 */

.hs-content-with-toc__body p {
    margin: 0 0 20px;
}

.hs-content-with-toc__body p strong {
    color: var(--hs-text);
}


/*
 * Other content
 */

.hs-content-with-toc__body h3,
.hs-content-with-toc__body h4 {
    color: #222;
}

.hs-content-with-toc__body ul,
.hs-content-with-toc__body ol {
    margin-bottom: 30px;
}

.hs-content-with-toc__body a {
    color: inherit;
    text-decoration: underline;
}


/*
 * Horizontal separator
 *
 * Useful for the screenshot where sections
 * have a line separating them.
 */

.hs-content-with-toc__body hr {
    margin: 38px 0;

    border: 0;
    border-top: 1px solid #e2e2e2;
}


/*
 * Empty state in Elementor
 */

.hs-content-with-toc-empty {
    padding: 30px;

    border: 1px dashed #ccc;

    color: #666;

    font-size: 14px;
}


/*
 * -----------------------------------------
 * TABLET
 * -----------------------------------------
 */

@media (max-width: 1024px) {

    .hs-content-with-toc {
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 30px;
    }

    .hs-content-with-toc__title {
        font-size: 28px;
    }

    .hs-content-with-toc__link {
        font-size: 16px;
    }

    .hs-content-with-toc__body {
        font-size: 18px;
    }

    .hs-content-with-toc__body h2 {
        font-size: 32px;
    }
}


/*
 * -----------------------------------------
 * MOBILE
 * -----------------------------------------
 */

@media (max-width: 767px) {

    .hs-content-with-toc {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hs-content-with-toc__sidebar-inner {
        position: static;
    }

    .hs-content-with-toc__title {
        margin-bottom: 20px;

        font-size: 26px;
    }

    .hs-content-with-toc__nav {
        gap: 0;
    }

    .hs-content-with-toc__link {
        padding-bottom: 14px;

        font-size: 15px;
    }

    .hs-content-with-toc__link.is-active {
        padding-left: 15px;
    }

    .hs-content-with-toc__body {
        font-size: 14px;
    }

    .hs-content-with-toc__body h2 {
        font-size: 20px;
    }

    .hs-content-with-toc__sidebar {
        display: none;
    }

    .hs-content-with-toc__body h2 {
        padding-top: 20px;
        margin-top: 20px;
    }

    .align-with-main-title .hs-content-with-toc__content {
        margin-top: 0;
    }
}