.text_with_items_and_cards {
    --twic-title-fz: clamp(17px, 28 * (100vw / 1920), 28px);
    --twic-title-lh: clamp(19px, 32 * (100vw / 1920), 32px);
    --twic-text-fz: clamp(15px, 19 * (100vw / 1920), 19px);
    --twic-text-lh: clamp(16px, 24 * (100vw / 1920), 24px);
    --twic-gap: clamp(16px, 28 * (100vw / 1920), 28px);
}

/* Section bg → cards get the opposite bg */
.text_with_items_and_cards.grey {
    background-color: #EDEDED;
}
.text_with_items_and_cards.white_bg {
    background-color: #fff;
}

.text_with_items_and_cards.grey .text_with_items_and_cards__card {
    background-color: #fff;
}
.text_with_items_and_cards.white_bg .text_with_items_and_cards__card {
    background-color: #EDEDED;
}

.text_with_items_and_cards .text_with_items_and_cards__title {
    margin-bottom: 12px;
}

/* ===== Intro description (wysiwyg) ===== */

.text_with_items_and_cards__description {
    font-size: clamp(15px, 28 * (100vw / 1920), 28px);
    line-height: clamp(16px, 32 * (100vw / 1920), 32px);
    letter-spacing: -0.01em;
    color: #000;
}

.text_with_items_and_cards__description * {
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
    margin: 0;
}

.text_with_items_and_cards__description > *:not(:last-child) {
    margin-bottom: 12px;
}

.text_with_items_and_cards__description a,
.text_with_items_and_cards__card_text a {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.text_with_items_and_cards__description + .text_with_items_and_cards__items_wrap,
.text_with_items_and_cards__title + .text_with_items_and_cards__items_wrap {
    margin-top: clamp(28px, 84 * (100vw / 1920), 84px);
}

/* ===== Items ===== */

.text_with_items_and_cards .text_with_items_and_cards__items_title,
.text_with_items_and_cards .text_with_items_and_cards__card_title {
    margin: 0 0 clamp(16px, 28 * (100vw / 1920), 28px);
    font-size: var(--twic-title-fz);
    line-height: var(--twic-title-lh);
    font-weight: 500;
    letter-spacing: -0.01em;
    text-transform: none;
}

.text_with_items_and_cards__items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--twic-gap) clamp(16px, 40 * (100vw / 1920), 40px);
}

/* Odd last item spans the full row so its top border runs edge to edge */
.text_with_items_and_cards__item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.text_with_items_and_cards__item {
    padding-top: clamp(8px, 12 * (100vw / 1920), 12px);
    border-top: 2px solid #818181;
}

.text_with_items_and_cards__text,
.text_with_items_and_cards__item_title {
    margin: 0;
    font-size: var(--twic-text-fz);
    line-height: var(--twic-text-lh);
    letter-spacing: -0.01em;
    color: #000;
}

.text_with_items_and_cards__item_title {
    margin-bottom: clamp(8px, 12 * (100vw / 1920), 12px);
    font-weight: 500;
}

/* ===== Cards ===== */

.text_with_items_and_cards__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--twic-gap);
}

* + .text_with_items_and_cards__cards {
    margin-top: clamp(28px, 84 * (100vw / 1920), 84px);
}

.text_with_items_and_cards__card {
    padding: clamp(16px, 56 * (100vw / 1920), 56px);
}

.text_with_items_and_cards .text_with_items_and_cards__card_title {
    margin-bottom: clamp(8px, 16 * (100vw / 1920), 16px);
}

.text_with_items_and_cards__card_text {
    font-size: var(--twic-text-fz);
    line-height: var(--twic-text-lh);
    letter-spacing: -0.01em;
    color: #000;
}

.text_with_items_and_cards__card_text * {
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
    margin: 0;
}

.text_with_items_and_cards__card_text > *:not(:last-child) {
    margin-bottom: clamp(8px, 12 * (100vw / 1920), 12px);
}

@media (max-width: 767px) {
    .text_with_items_and_cards__items,
    .text_with_items_and_cards__cards {
        grid-template-columns: 1fr;
    }

    .text_with_items_and_cards .text_with_items_and_cards__items_title {
        letter-spacing: 0;
    }
}
