/* About block — front (dark) + about page */
.site-about-cluster__about {
    & h1,
    & h2,
    & .field--name-node-title h2,
    & .field--name-title h2,
    & .block > h2,
    & .block > h2.block-title,
    & .site-about-block > h2,
    & h2.site-about__heading {
        max-width: 568px;
        margin: 0 0 20px;
        font-family: var(--font-serif);
        font-weight: 700;
        font-size: 40px;
        line-height: 50px;
        text-align: left;
        text-transform: uppercase;
        color: #fff;
    }

    & .field--name-node-title,
    & .field--name-title {
        margin: 0;
    }

    & .field--name-body,
    & .text-formatted {
        max-width: 568px;
        font-family: var(--font-serif);
        font-weight: 400;
        font-size: 16px;
        line-height: 20px;
        color: #fff;
    }

    & .field--name-body p,
    & .text-formatted p {
        margin: 0 0 16px;
        font-weight: 400;
        font-size: 16px;
        line-height: 20px;
        text-transform: none;
        color: #fff;
    }

    & .field--name-body p:last-child,
    & .text-formatted p:last-child {
        margin-bottom: 0;
    }

    & .field--name-body span,
    & .text-formatted span {
        font-weight: 400;
        font-size: 16px;
        line-height: 20px;
        text-transform: none;
        color: #fff;
    }

    & .field--name-body > p:first-child > span:first-child,
    & .text-formatted > p:first-child > span:first-child,
    & .field--name-body > :is(h2, h3):first-child,
    & .text-formatted > :is(h2, h3):first-child {
        display: block;
        margin: 0 0 12px;
        font-weight: 700;
        font-size: 24px;
        line-height: 30px;
        text-transform: uppercase;
        color: #fff;
    }

    & .field--type-image,
    & .field--name-field-image,
    & .group-right .field {
        margin: 0;
    }

    & .group-right img,
    & .field--type-image img,
    & .field--name-field-image img {
        display: block;
        width: 100%;
        max-width: 557px;
        aspect-ratio: 557 / 559;
        height: auto;
        border-radius: 16px;
        object-fit: cover;
    }

    /* Two columns: text + image */
    & .ds-2col,
    & .ds-2col-fluid,
    & .ds-2col-stacked,
    & .content:not(:has(.ds-2col)):not(:has(.ds-2col-fluid)):not(:has(.ds-2col-stacked)) {
        display: grid;
        grid-template-columns: minmax(0, 568px) minmax(0, 557px);
        gap: clamp(24px, 4vw, 80px);
        align-items: start;
        width: 100%;
        max-width: 100%;
        margin-inline: auto;
        justify-content: center;
    }

    & .ds-2col::after,
    & .ds-2col-fluid::after,
    & .ds-2col-stacked::after {
        display: none;
    }

    & :is(.ds-2col, .ds-2col-fluid, .ds-2col-stacked) > .group-left,
    & :is(.ds-2col, .ds-2col-fluid, .ds-2col-stacked) > .group-right {
        float: none !important;
        width: auto !important;
    }

    & .group-left {
        grid-column: 1;
        max-width: 568px;
        min-width: 0;
    }

    & .group-right {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
    }

    & .content:not(:has(.ds-2col)) .field--type-image,
    & .content:not(:has(.ds-2col)) .field--name-field-image {
        grid-column: 2;
        grid-row: 1;
    }

    & .content:not(:has(.ds-2col)) .field--name-body,
    & .content:not(:has(.ds-2col)) .text-formatted {
        grid-column: 1;
        grid-row: 1;
    }

    & .field--name-node-link,
    & .field--name-field-link {
        margin-top: 8px;
    }

    & a.site-about__more,
    & .field--name-node-link a,
    & .field--name-node-link a:link,
    & .field--name-node-link a:visited,
    & .field--name-field-link a,
    & .group-left .field:last-child a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        min-width: 182px;
        height: 60px;
        margin-top: 24px;
        padding: 0 24px;
        border: 1.3px solid #fff;
        border-radius: 80px;
        background: transparent;
        font-family: var(--font-serif);
        font-weight: 700;
        font-size: 16px;
        line-height: 20px;
        text-align: center;
        color: #fff;
        text-decoration: none;
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
    }

    & a.site-about__more:hover,
    & .field--name-node-link a:hover,
    & .field--name-field-link a:hover,
    & .group-left .field:last-child a:hover {
        background: #fff;
        color: var(--about-bg);
    }
}

/* About page: dark text on light bg */
.site-about-page .site-about-cluster__about h1,
.site-about-page .site-about-cluster__about h2,
.site-about-page .site-about-cluster__about .field--name-node-title h1,
.site-about-page .site-about-cluster__about .field--name-node-title h2,
.site-about-page .site-about-cluster__about .field--name-title h2,
.site-about-page .site-about-cluster__about .block > h2,
.site-about-page .site-about-cluster__about .block > h2.block-title,
.site-about-page .site-about-cluster__about .site-about-block > h2,
.site-about-page .site-about-cluster__about h2.site-about__heading,
.site-about-page .site-about-cluster__about .field--name-body,
.site-about-page .site-about-cluster__about .text-formatted,
.site-about-page .site-about-cluster__about .field--name-body p,
.site-about-page .site-about-cluster__about .text-formatted p,
.site-about-page .site-about-cluster__about .field--name-body span,
.site-about-page .site-about-cluster__about .text-formatted span,
.site-about-page .site-about-cluster__about .field--name-body > :is(h2, h3):first-child,
.site-about-page .site-about-cluster__about .text-formatted > :is(h2, h3):first-child,
.site-about-page .site-about-cluster__about .field--name-body > p:first-child > span:first-child,
.site-about-page .site-about-cluster__about .text-formatted > p:first-child > span:first-child {
    color: var(--brand);
}

.site-about-page a.site-about__more,
.site-about-page .field--name-node-link,
.site-about-page .field-node-link,
.site-about-page .field--name-field-link,
.site-about-page .group-left .field--name-node-link,
.site-about-page .group-left .field-node-link {
    display: none !important;
}

@media (min-width: 575px) and (max-width: 991px) {
    .site-section--about-cluster {
        padding-left: 0;
        padding-right: 0;
    }

    .site-section--about-cluster > .container.site-about-cluster,
    .site-about-cluster {
        max-width: none;
        width: 100%;
        border-radius: 0;
        padding-left: clamp(16px, 3vw, 32px);
        padding-right: clamp(16px, 3vw, 32px);
    }

    .site-about-cluster__about {
        max-width: 100%;
        width: 100%;
        margin-inline: 0;
    }

    .site-about-cluster__about h1,
    .site-about-cluster__about h2,
    .site-about-cluster__about .field--name-node-title h2,
    .site-about-cluster__about .field--name-title h2,
    .site-about-cluster__about .block > h2,
    .site-about-cluster__about .block > h2.block-title,
    .site-about-cluster__about .site-about-block > h2,
    .site-about-cluster__about h2.site-about__heading,
    .site-about-cluster__about .field--name-body,
    .site-about-cluster__about .text-formatted,
    .site-about-cluster__about .group-left {
        max-width: 100%;
        width: 100%;
    }

    .site-about-cluster__divider {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 991px) {
    .site-about-cluster__about .ds-2col,
    .site-about-cluster__about .ds-2col-fluid,
    .site-about-cluster__about .ds-2col-stacked,
    .site-about-cluster__about .content:not(:has(.ds-2col)):not(:has(.ds-2col-fluid)):not(:has(.ds-2col-stacked)) {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .site-about-cluster__about .group-right {
        grid-column: 1;
        grid-row: auto;
        max-width: 557px;
        margin-inline: auto;
        width: 100%;
    }

    .site-about-cluster__about .group-left,
    .site-about-cluster__about .content:not(:has(.ds-2col)) .field--type-image,
    .site-about-cluster__about .content:not(:has(.ds-2col)) .field--name-field-image,
    .site-about-cluster__about .content:not(:has(.ds-2col)) .field--name-body,
    .site-about-cluster__about .content:not(:has(.ds-2col)) .text-formatted {
        grid-column: 1;
        grid-row: auto;
        max-width: 100%;
    }

    .site-about-cluster__about .group-right img,
    .site-about-cluster__about .field--type-image img,
    .site-about-cluster__about .field--name-field-image img {
        width: 100%;
        max-width: 557px;
        height: auto;
        margin-inline: auto;
    }

    .site-about-cluster__benefits {
        margin-top: clamp(32px, 5vw, var(--about-benefits-gap));
    }
}

@media (max-width: 575px) {
    .site-about-cluster__about .block > h2,
    .site-about-cluster__about .site-about-block > h2,
    .site-about-cluster__about h2.site-about__heading,
    .site-about-cluster__about .field--name-node-title h2,
    .site-about-cluster__about .field--name-title h2 {
        font-size: 22px;
        line-height: 1.25;
        margin: 0;
        max-width: 100%;
    }

    .site-about-cluster__about .group-left {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 10px;
        row-gap: 12px;
        align-items: center;
        width: 100%;
        max-width: 100%;
    }

    .site-about-cluster__about .group-left > h2,
    .site-about-cluster__about .group-left .field--name-node-title,
    .site-about-cluster__about .group-left .field--name-title,
    .site-about-cluster__about .group-left .block > h2 {
        grid-column: 1;
        grid-row: 1;
        margin: 0;
        max-width: 100%;
    }

    .site-about-cluster__about .group-left .field--name-node-link,
    .site-about-cluster__about .group-left .field--name-field-link,
    .site-about-cluster__about .group-left a.site-about__more,
    .site-about-cluster__about .group-left .field:last-child a {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        min-width: 0;
        width: auto;
        height: 44px;
        padding: 0 14px;
        font-size: 13px;
        white-space: nowrap;
    }

    .site-about-cluster__about .group-left .field--name-body,
    .site-about-cluster__about .group-left .text-formatted {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: 100%;
    }

    .site-about-cluster__about .field--name-body,
    .site-about-cluster__about .text-formatted,
    .site-about-cluster__about .field--name-body p,
    .site-about-cluster__about .text-formatted p,
    .site-about-cluster__about .field--name-body span,
    .site-about-cluster__about .text-formatted span {
        font-size: 14px;
        line-height: 1.35;
    }

    .site-about-cluster__about .field--name-body > p:first-child > span:first-child,
    .site-about-cluster__about .text-formatted > p:first-child > span:first-child,
    .site-about-cluster__about .field--name-body > :is(h2, h3):first-child,
    .site-about-cluster__about .text-formatted > :is(h2, h3):first-child {
        font-size: 22px;
        line-height: 1.25;
    }

    .site-about-cluster__about .ds-2col,
    .site-about-cluster__about .ds-2col-fluid,
    .site-about-cluster__about .ds-2col-stacked {
        grid-template-columns: 1fr;
    }

    .site-about-cluster__about .group-right,
    .site-about-cluster__about .content:not(:has(.ds-2col)) .field--type-image,
    .site-about-cluster__about .content:not(:has(.ds-2col)) .field--name-field-image {
        grid-column: auto;
        grid-row: auto;
        max-width: 557px;
        margin-inline: auto;
        width: 100%;
    }

    .site-about-cluster__about .group-right img,
    .site-about-cluster__about .field--type-image img,
    .site-about-cluster__about .field--name-field-image img {
        margin-inline: auto;
    }

    .site-about-cluster__about .content:not(:has(.ds-2col)) .field--name-body,
    .site-about-cluster__about .content:not(:has(.ds-2col)) .text-formatted {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (min-width: 575px) and (max-width: 767px) {
    .site-about-cluster__about h1,
    .site-about-cluster__about h2,
    .site-about-cluster__about .field--name-node-title h2,
    .site-about-cluster__about .field--name-title h2,
    .site-about-cluster__about .block > h2,
    .site-about-cluster__about .block > h2.block-title,
    .site-about-cluster__about .site-about-block > h2,
    .site-about-cluster__about h2.site-about__heading,
    .site-about-cluster__about .field--name-body > :is(h2, h3):first-child,
    .site-about-cluster__about .text-formatted > :is(h2, h3):first-child {
        font-size: 24px;
        line-height: 1.25;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .site-about-cluster__about h1,
    .site-about-cluster__about h2,
    .site-about-cluster__about .field--name-node-title h2,
    .site-about-cluster__about .field--name-title h2,
    .site-about-cluster__about .block > h2,
    .site-about-cluster__about .block > h2.block-title,
    .site-about-cluster__about .site-about-block > h2,
    .site-about-cluster__about h2.site-about__heading,
    .site-about-cluster__about .field--name-body > :is(h2, h3):first-child,
    .site-about-cluster__about .text-formatted > :is(h2, h3):first-child {
        font-size: 30px;
        line-height: 1.25;
    }
}
