/* Reviews V2 — Half Panel Carousel */
.rvw.v2 {
    /* Heading (h4 / fnt_t-1): Bayon, mixed case (defaults are Albert Sans + uppercase) */
    --fnt-t-1-ff: var(--fnt-t);
    --fnt-t-1-tt: none;

    /* SubHeader (h5 → fnt_t-2 styling): Figma uses primary text; default fnt_t-2 color is callout teal */
    --lt-h2: var(--lt-txt);

    /* Card border radius — Figma 20px */
    --bdr-rds-crd: 1.11rem;

    /* Review card title (fnt_qte) — Figma 50px / lh 0.9 (default 40px / 1.2) */
    --fnt-qte-s: 2.78rem;
    --fnt-qte-lh: 0.9;

    /* Star size — Figma 28.8px */
    --rvw-str-s: 1.6rem;

    /* Cream mat spanning the full panel width behind the content. The top inset
       leaves a strip above so the flair and cards overhang it (Figma). */
    position: relative;
    isolation: isolate;

    &::before {
        content: '';
        position: absolute;
        inset: 4rem 0 0;
        background-color: var(--lt-alt-bg);
        z-index: -1;
    }

    /* Outer column gap — Figma 56px (default --flx-gap is 3.889rem / 70px) */
    .rvw-v2-rw {
        --flx-gap: 3.11rem;
    }

    /* Heading-to-subheading gap — Figma 24px */
    .rvw-v2-lft header > * + * {
        margin-top: 1.33rem;
    }

    @media screen and (min-width:1280px) {
        .half > .pd_v.pd_h {
            padding: 2.67rem 2.22rem;
        }
    }

    /* Card interior spacing — photo and text share the same inset (Figma) */
    .rvw-itm {
        padding: 1.33rem;
    }

    .rvw-itm blockquote {
        padding: 0;
    }

    /* Review card photo — framed at the top of the card */
    .rvw-itm picture {
        display: block;
        margin-bottom: 1.33rem;
        border-radius: var(--bdr-rds-crd);
        overflow: hidden;
        aspect-ratio: 16 / 9;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    /* Footer row: author on the left, star rating on the right */
    .rvw-itm .bt .strs {
        flex: none;
    }

    /* Card scroller: fixed-width cards + gap so the next card peeks (Figma) */
    [data-role="list"] {
        gap: 1.55rem;
    }

    [data-role="list"] > [data-role="item"] {
        flex: 0 0 auto;
        width: 27rem;
    }

    /* Bleed the review panel off the right edge of the viewport (Figma) */
    @media screen and (min-width: 1280px) {
        .rvw-v2-rt {
            margin-right: calc((100vw - 100%) / -2);
        }
    }

    /* Pagination dots — hover/focus/active feedback.
       The shared thumb CSS fills the hover/active state with var(--link), which is
       undefined in this theme (no fallback → transparent → the dot disappears).
       Override with a defined brand color and add a scale on hover. */
    [data-role="thumbList"] button {
        transition: background-color 0.2s ease, transform 0.2s ease;
    }

    [data-role="thumbList"] button:is(:hover, :focus-visible, .s-active) {
        background-color: var(--buttons) !important;
    }

    [data-role="thumbList"] button:is(:hover, :focus-visible) {
        transform: scale(1.35);
    }
}
