.categorized-list {
    --categorized-list-gap: 40px;
    --categorized-list-item-gap: 20px;
    --categorized-list-item-column-gap: 70px;
    --categorized-list-item-title-width: 250px;

    --categorized-list-item-title-line-width: calc(var(--categorized-list-item-title-width) * 0.3);
}

.categorized-list__items {
    display: grid;
    row-gap: var(--categorized-list-gap);
}

.categorized-list__item {
    align-items: start;
    display: grid;
    grid-template-columns: 1fr;
    row-gap: var(--categorized-list-item-gap);
}

.categorized-list__item__title {
    background-color: var(--basic-ultralight);
    border-radius: 36px;
    color: var(--text);
    font-size: calc(var(--categorized-list-item-title-width) * 0.07);
    font-weight: 300;
    letter-spacing: 1.5px;
    line-height: 1.4;
    margin-block: 0;
    margin-left: var(--categorized-list-item-title-line-width);
    padding: 16px calc(var(--categorized-list-item-title-width) * 0.15);
    position: relative;
    text-transform: uppercase;
    width: var(--categorized-list-item-title-width);
}

.categorized-list__item__title::after {
    background-color: var(--basic-light);
    content: "";
    display: block;
    height: 1px;
    left: calc(var(--categorized-list-item-title-line-width) * -1);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: var(--categorized-list-item-title-line-width);
    z-index: -1;
}

.categorized-list__item__title::before {
    background-color: var(--basic-light);
    content: "";
    display: block;
    height: 50%;
    left: calc(var(--categorized-list-item-title-line-width) * -1);
    position: absolute;
    top: 0;
    width: 1px;
}

.categorized-list__item__list {
    color: var(--text);
}

.categorized-list__item__list__item {
    padding-left: 10px;
    position: relative;
}

.categorized-list__item__list__item::before {
    content: "•";
    font-size: 14px;
    color: var(--text);
    position: absolute;
    left: 0;
    top: 0;
}

/* Tablet and up */
@media (min-width: 768px) {
    .categorized-list {
        --categorized-list-item-title-width: 350px;
    }
}

/* Desktop and up */
@media (min-width: 1024px) {
    .categorized-list__item {
        column-gap: var(--categorized-list-item-column-gap);
        grid-template-columns: 1fr 1fr;
        position: relative;
    }

    .categorized-list__item__title {
        justify-self: end;
        position: static;
    }

    .categorized-list__item__title::after {
        left: 0;
        top: 33px;
        width: calc(50% - var(--categorized-list-item-column-gap) * 0.5);
    }

    .categorized-list__item__title::before {
        height: 100%;
        left: 0;
        top: calc((100% - 33px) * -1);
    }
}
