.rppb-banner {
    clear: both;
    float: none;
    flex: 0 0 100%;
    grid-column: 1 / -1;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, var(--rppb-diw, 42%));
    align-items: center;
    gap: clamp(18px, 4vw, 64px);
    width: 100%;
    box-sizing: border-box;
    margin-top: var(--rppb-mt, 28px);
    margin-bottom: 0;
    padding: var(--rppb-dpv, 28px) var(--rppb-dph, 48px);
    overflow: hidden;
    border-radius: var(--rppb-radius, 0);
    background-color: var(--rppb-bg, #76564c);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--rppb-text, #fff);
    isolation: isolate;
}

/* Automatic mode: background follows the complete Description section width,
   while the inner content follows the live Description content insets. */
.rppb-banner.rppb-positioned {
    width: var(--rppb-section-width, 100%);
    max-width: none;
    margin-left: var(--rppb-section-offset, 0px);
    margin-right: 0;
    margin-bottom: 0;
    padding-left: max(var(--rppb-dph, 48px), var(--rppb-content-left, 0px));
    padding-right: max(var(--rppb-dph, 48px), var(--rppb-content-right, 0px));
}

.rppb-banner.rppb-image-left .rppb-copy { order: 2; }
.rppb-banner.rppb-image-left .rppb-visual { order: 1; }

.rppb-copy,
.rppb-visual {
    position: relative;
    z-index: 1;
}

.rppb-heading {
    margin: 0 0 .35em;
    font-size: clamp(24px, 2.2vw, 38px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: .01em;
}

.rppb-text {
    font-size: clamp(16px, 1.3vw, 22px);
    line-height: 1.32;
}

.rppb-text p {
    margin: .2em 0;
}

.rppb-text a {
    color: inherit;
    text-decoration: underline;
}

.rppb-visual {
    display: flex;
    align-self: stretch;
    align-items: flex-end;
    justify-content: center;
    min-width: 0;
}

.rppb-visual img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 220px;
    object-fit: contain;
    object-position: center bottom;
}

.rppb-banner.rppb-has-link {
    cursor: pointer;
}

.rppb-banner.rppb-has-link:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: -4px;
}

@media (max-width: 767px) {
    .rppb-banner {
        grid-template-columns: minmax(0, calc(100% - var(--rppb-miw, 44%))) minmax(86px, var(--rppb-miw, 44%));
        gap: 10px;
        padding: var(--rppb-mpv, 18px) var(--rppb-mph, 18px);
    }

    .rppb-banner.rppb-positioned {
        padding-left: max(var(--rppb-mph, 18px), var(--rppb-content-left, 0px));
        padding-right: max(var(--rppb-mph, 18px), var(--rppb-content-right, 0px));
    }

    .rppb-heading {
        font-size: clamp(20px, 6vw, 30px);
    }

    .rppb-text {
        font-size: clamp(13px, 4vw, 18px);
        line-height: 1.28;
    }

    .rppb-visual img {
        max-height: 180px;
    }
}

@media (max-width: 420px) {
    .rppb-banner {
        gap: 6px;
    }

    .rppb-heading {
        font-size: clamp(18px, 5.8vw, 25px);
    }

    .rppb-text {
        font-size: clamp(12px, 3.7vw, 16px);
    }
}
