ul,
ol {
    @include list-reset;

    margin: 1.5625rem 0;
    overflow: hidden;
    color: var(--rocket-body-color);

    @include layout-stack;

    li {
        position: relative;
        margin: 0;
        font-weight: 400;
        font-size: 1.25rem;
        line-height: 1.33;

        @include breakpoint(lg) {
            font-size: 1.875rem;
        }

        > ul, > ol {
            margin: 1.5625rem 0;

            li {
                padding-left: 2rem;
            }
        }
    }

    &.no-indents {
        li {
            margin: 0;
        }
    }
}

/* stylelint-disable */

ol {
    $this: &;
    counter-reset: list-number calc(var(--start-value, 1) - 1);

    li {
        &::before {
            margin-right: 10px;
            color: var(--rocket-color-primary-400);
            font-weight: 600;
            font-size: inherit;
            font-family: inherit;
            line-height: inherit;
            text-align: right;
            content: counters(list-number, '.') '.';
            counter-increment: list-number;
        }
    }
}

ul:not(.cke_panel_list) {
    li {
        padding-left: 2rem;

        &::before {
            position: absolute;
            left: 11px;
            display: block;
            content: '\2022';
        }
    }
}

/* stylelint-enable */
