/* ==========================================================================
   /insights/research-surveys-v2: Research Surveys as banner rows (user's mockups, 2026-11-23), two variants shown
   under the current section to compare (frontend/research-v2/partials/survey-banners).
   Closed, both are the same: a dark card with the capability's art (survey-banner-*.webp, cut from the mockup).
   Open: .rsb--dark (variant 1) continues the dark card in the capability's tint, white copy; .rsb--light
   (variant 2) opens a light grey panel, dark copy. Colours sampled from the mockups; type and buttons the site's.
   ========================================================================== */

.rsb-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
}

.rsb--light .rsb-list {
    gap: 10px;
}

.rsb {
    --rsb-base: #08272f;
    --rsb-bar: 118px;
    position: relative;
    background: var(--rsb-base);
    color: #fff;
}

.rsb *,
.rsb *::before,
.rsb *::after {
    box-sizing: border-box;
}

/* The bar: icon, name and share on the left, "Take the Survey" on the right (the toggle sits beside it). */
.rsb__bar {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 24px;
    height: var(--rsb-bar);
    padding: 0 180px 0 28px;
    background-color: var(--rsb-base);
    background-position: 70% center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Round 3 only (user, 2026-11-24: "sa nu mai fie asa puternice culorile, dar doar pe background"; moderate): a copy of
   the bar's own background (the inline art, its position and size) under everything, at 55% saturation. Icon, copy
   and buttons stay as they are; below 992 the dark veil (::before, z-index -1) stays above it. */
.rsb--light .rsb__bar {
    position: relative;
    isolation: isolate;
}

.rsb--light .rsb__bar::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background: inherit;
    filter: saturate(.55);
    pointer-events: none;
}

/* Brightened on the dark bar, as in the mockup: Measurement, Employee Performance and Culture were 2.6-2.7:1. */
.rsb__icon {
    align-self: start;
    width: 48px;
    height: 48px;
    margin-top: 22px;
    filter: brightness(1.5);
}

.rsb__name {
    min-width: 0;
}

.rv2-page .rsb__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}

.rv2-page .rsb__subtitle {
    margin: 2px 0 0;
    font-size: 14px;
    line-height: 1.4;
    color: #e9eef0;
}

.rsb__share {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    font-size: 12px;
    color: #e9eef0;
}

.rsb__share span {
    margin-right: 6px;
}

.rsb__share a {
    display: inline-flex;
    padding: 2px;
}

/* The share icons drawn white on the dark bar. */
.rsb__share img {
    width: 21px;
    height: 21px;
    filter: brightness(0) invert(1);
}

.rsb__take,
.rsb__toggle {
    font-family: 'Nunito Sans', 'Nunito Sans Fallback', sans-serif;
    font-size: 14px;
    letter-spacing: .28px;
}

.rsb__take {
    align-self: end;
    margin-bottom: 18px;
    padding: 7px 16px;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease;
}

.rsb__take:hover,
.rsb__take:focus-visible {
    background: #fff;
    color: var(--rsb-base);
    text-decoration: none;
}

/* "See Details +": on the bar, level with "Take the Survey". */
.rsb__toggle {
    position: absolute;
    top: calc(var(--rsb-bar) - 18px - 35px);
    right: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 35px;
    color: #fff;
    cursor: pointer;
    list-style: none;
}

.rsb__toggle::-webkit-details-marker {
    display: none;
}

.rsb__toggle::after {
    content: '+';
    font-size: 18px;
    line-height: 1;
}

.rsb__details[open] .rsb__toggle::after {
    content: '\2212';
}

.rsb__less,
.rsb__details[open] .rsb__more {
    display: none;
}

.rsb__details[open] .rsb__less {
    display: inline;
}

.rsb__toggle:hover > span:not(.rv2-visually-hidden),
.rsb__toggle:focus-visible > span:not(.rv2-visually-hidden) {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rsb__take:focus-visible,
.rsb__toggle:focus-visible,
.rsb__share a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* The details: what the survey covers (and sample questions) left, who should participate right. */
.rsb__body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 48px;
    padding: 28px 40px 36px;
}

.rv2-page .rsb__label {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.rv2-page .rsb__body p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.rv2-page .rsb__questions {
    margin-top: 16px;
}

.rv2-page .rsb__questions ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.rv2-page .rsb__questions li {
    font-size: 14px;
    line-height: 1.6;
}

.rv2-page .rsb__questions li + li {
    margin-top: 6px;
}

/* Variant 1: the dark card goes on below the bar, lit in the capability's colour (mockup: e.g. #09374b for Strategic
   Planning, #09392b Measurement, #491a17 Improvement), white copy. */
.rsb--dark .rsb__body {
    background: radial-gradient(120% 100% at 55% 0, color-mix(in srgb, var(--rsb-cap) 16%, #08272f) 0, #08272f 75%);
    color: #fff;
}

.rv2-page .rsb--dark .rsb__label,
.rv2-page .rsb--dark .rsb__body p,
.rv2-page .rsb--dark .rsb__questions li {
    color: #eef3f4;
}

.rv2-page .rsb--dark .rsb__label {
    color: #fff;
}

/* Variant 2: a light grey panel under the bar (mockup #eff1f2), dark copy. */
.rsb--light .rsb__body {
    background: #eff1f2;
    color: #18303a;
}

.rv2-page .rsb--light .rsb__label,
.rv2-page .rsb--light .rsb__body p,
.rv2-page .rsb--light .rsb__questions li {
    color: #18303a;
}

/* Narrower screens: the toggle and the button keep their room. */
/* Round 2 arranged as round 1 (user, 2026-11-24: "aliniaza butoanele ... la mijloc ca la prima sectiune ... iconurile
   de marimea de la prima tura"): the 56px icon on the bar's middle, 20px from the edge and 12px to the name (round 1's
   .rv2-survey__head); "Take the Survey" and "See Details" on the bar's middle, level with each other. Round 3, the one
   shown, the same since 2026-12-02 (user: "the buttons on the right in the middle, the icon centred, as in the first
   variant"). */
@media (min-width: 992px) {
    .rsb--dark .rsb__bar,
    .rsb--light .rsb__bar {
        grid-template-columns: 56px minmax(0, 1fr) auto;
        gap: 0 12px;
        padding-left: 20px;
    }

    .rsb--dark .rsb__icon,
    .rsb--light .rsb__icon {
        align-self: center;
        width: 56px;
        height: 56px;
        margin-top: 0;
    }

    .rsb--dark .rsb__take,
    .rsb--light .rsb__take {
        align-self: center;
        margin-bottom: 0;
    }

    .rsb--dark .rsb__toggle,
    .rsb--light .rsb__toggle {
        top: calc((var(--rsb-bar) - 35px) / 2);
    }
}

@media (max-width: 1199px) {
    .rsb__bar {
        padding-right: 160px;
    }
}

@media (max-width: 991px) {
    /* Tablets and phones: the art behind the bar under a dark veil so the copy reads; the button under the name; "See Details" on its own row under the bar; the details stack. */
    .rsb {
        --rsb-bar: auto;
    }

    .rsb__bar {
        position: relative;
        grid-template-columns: 40px minmax(0, 1fr);
        grid-template-areas:
            "icon name"
            ". take";
        gap: 16px;
        height: auto;
        padding: 20px;
        background-position: 72% center;
        isolation: isolate;
    }

    .rsb__bar::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: -1;
        background: linear-gradient(90deg, rgba(8, 39, 47, .9) 0, rgba(8, 39, 47, .55) 100%);
    }

    .rsb__icon {
        grid-area: icon;
        width: 40px;
        height: 40px;
        margin-top: 0;
    }

    .rsb__name {
        grid-area: name;
    }

    .rsb__take {
        grid-area: take;
        justify-self: start;
        margin: 0;
    }

    .rsb__toggle {
        position: static;
        justify-content: flex-end;
        height: auto;
        padding: 12px 20px;
        border-top: 1px solid rgba(255, 255, 255, .12);
        background: var(--rsb-base);
    }

    .rsb__body {
        grid-template-columns: minmax(0, 1fr);
        padding: 20px 20px 24px;
    }

}

/* Rounds 2 and 3: round 1's icon size on tablets (56px). */
@media (min-width: 768px) and (max-width: 991px) {
    .rsb--dark .rsb__bar,
    .rsb--light .rsb__bar {
        grid-template-columns: 56px minmax(0, 1fr);
        column-gap: 12px;
    }

    .rsb--dark .rsb__icon,
    .rsb--light .rsb__icon {
        width: 56px;
        height: 56px;
    }
}

/* As in the current section, phones leave the sample questions out. Rounds 2 and 3: round 1's 48px icon on phones. */
@media (max-width: 767px) {
    .rv2-page .rsb__questions {
        display: none;
    }

    .rsb--dark .rsb__bar,
    .rsb--light .rsb__bar {
        grid-template-columns: 48px minmax(0, 1fr);
        column-gap: 12px;
    }

    .rsb--dark .rsb__icon,
    .rsb--light .rsb__icon {
        width: 48px;
        height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rsb__take {
        transition: none;
    }
}
