.text_with_items_and_note {
    --twin-text-fz: clamp(15px, 19 * (100vw / 1920), 19px);
    --twin-text-lh: clamp(16px, 24 * (100vw / 1920), 24px);
    --twin-large-fz: clamp(15px, 28 * (100vw / 1920), 28px);
    --twin-large-lh: clamp(16px, 32 * (100vw / 1920), 32px);
    --twin-section-gap: clamp(28px, 84 * (100vw / 1920), 84px);
}

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

.text_with_items_and_note .text_with_items_and_note__title {
    margin-bottom: 12px;
}

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

.text_with_items_and_note__description {
    font-size: var(--twin-large-fz);
    line-height: var(--twin-large-lh);
    letter-spacing: -0.01em;
    color: #000;
}

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

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

.text_with_items_and_note__description a {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.text_with_items_and_note__description + .text_with_items_and_note__items_wrap,
.text_with_items_and_note__title + .text_with_items_and_note__items_wrap {
    margin-top: var(--twin-section-gap);
}

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

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

/* Each item spans two rows of the parent grid (title + text) via subgrid,
   so titles and texts line up across a row even when a title wraps */
.text_with_items_and_note__items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(16px, 28 * (100vw / 1920), 28px) clamp(16px, 84 * (100vw / 1920), 84px);
}

.text_with_items_and_note__item {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    row-gap: clamp(8px, 12 * (100vw / 1920), 12px);
    align-content: start;
    padding-top: clamp(12px, 20 * (100vw / 1920), 20px);
    border-top: 2px solid #818181;
}

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

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

.text_with_items_and_note__item_title {
    font-weight: 500;
    text-transform: uppercase;
}

/* ===== Note ===== */

.text_with_items_and_note__note {
    margin: 0;
    padding-top: clamp(16px, 28 * (100vw / 1920), 28px);
    border-top: 2px solid #000;
    font-size: var(--twin-large-fz);
    line-height: var(--twin-large-lh);
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #000;
}

* + .text_with_items_and_note__note {
    margin-top: var(--twin-section-gap);
}

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