.rr-people {
    --people-gutter: 72px;
    --people-body-font: 'Noto Sans', sans-serif;
    --people-heading-font: 'Archivo', sans-serif;
    --people-body: 400 16px/1.15 var(--people-body-font);
    --people-small: 400 14px/1.05 var(--people-body-font);
    --people-label: 500 16px/1.05 var(--people-heading-font);
    background: #e8e8e8;
    color: #171245;
    font: var(--people-body);
    letter-spacing: 0;
}

body:has(.rr-people) main.home {
    padding-top: 0 !important;
}

.rr-people *,
.rr-people *::before,
.rr-people *::after {
    box-sizing: border-box;
}

.rr-people h1,
.rr-people .rr-people__h3,
.rr-people h4 {
    font-family: var(--uat-heading-font, 'Archivo', sans-serif) !important;
    color: inherit;
}

.rr-people input {
    font-family: var(--people-body-font);
}

.rr-people button {
    font: var(--people-label);
    font-family: var(--people-heading-font) !important;
    letter-spacing: -.015em;
}

/* Hero layout is handled by hero.css. */

/* Team section */

.rr-people__container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-left: var(--people-gutter);
    padding-right: var(--people-gutter);
}

.rr-people__team {
    padding-top: 80px;
    padding-bottom: 80px;
}

.rr-people .rr-people__h3 {
    margin: 0 0 48px;
    font: 600 40px/1.05 var(--people-heading-font);
    letter-spacing: 0;
}

/* Search and filters */

.rr-people__filters {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 64px;
    padding: 16px 24px;
    margin-bottom: 64px;
    background: white;
    border-radius: 40px;
}

.rr-people__search {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 160px;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

.rr-people__search-icon {
    display: block;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.rr-people__search input {
    width: 100%;
    min-width: 0;
    height: 32px;
    margin: 0;
    padding: 8px 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    font: 400 16px/1.15 var(--uat-body-font, 'Noto Sans', sans-serif);
    color: inherit;
}

.rr-people .rr-people__search input,
.rr-people .rr-people__search input:focus,
.rr-people .rr-people__search input:focus-visible {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.rr-people__options {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Dropdown controls */

.rr-people__dropdown {
    position: relative;
    font-size: 12px;
}

    .rr-people__dropdown summary {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        max-width: 220px;
        padding: 8px 12px;
        border-radius: 24px;
        cursor: pointer;
        list-style: none;
        overflow-wrap: anywhere;
        font: 500 16px/1.05 var(--uat-heading-font, 'Archivo', sans-serif);
        letter-spacing: -.015em;
    }

        .rr-people__dropdown summary::-webkit-details-marker {
            display: none;
        }

        .rr-people__dropdown summary::after {
            content: '';
            width: 8px;
            height: 8px;
            flex: 0 0 8px;
            border-right: 1px solid currentColor;
            border-bottom: 1px solid currentColor;
            transform: translateY(-2px) rotate(45deg);
        }

    .rr-people__dropdown[open] summary::after {
        transform: translateY(2px) rotate(225deg);
    }

    .rr-people__dropdown.is-selected summary {
        padding: 8px 16px;
        background: #6a59fd;
        color: #f9f9f9;
        font: var(--people-small);
        letter-spacing: -.03em;
    }

        .rr-people__dropdown.is-selected summary::after {
            display: none;
        }

.rr-people__filter-clear {
    position: relative;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

    .rr-people__filter-clear::before,
    .rr-people__filter-clear::after {
        content: '';
        position: absolute;
        top: 7px;
        left: 2px;
        width: 12px;
        border-top: 1px solid currentColor;
        transform: rotate(45deg);
    }

    .rr-people__filter-clear::after {
        transform: rotate(-45deg);
    }

/* Dropdown panels */

.rr-people__panel {
    position: absolute;
    right: -20px;
    top: calc(100% + 24px);
    z-index: 20;
    width: 260px;
    max-width: calc(100vw - 48px);
    max-height: 320px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #b7b2cf transparent;
    background: white;
    border: 1px solid #e8e8e8;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 12px 24px #1712451a;
}

    .rr-people__panel label {
        display: flex;
        gap: 12px;
        align-items: center;
        min-height: 38px;
        padding: 10px 12px;
        margin: 0 0 2px;
        border-radius: 8px;
        cursor: pointer;
        font: var(--people-body);
        letter-spacing: 0;
    }

        .rr-people__panel label:hover,
        .rr-people__panel label:focus-within {
            background: #f4f0ff;
        }

    .rr-people__panel input {
        accent-color: #6a59fd;
    }

    .rr-people__panel strong {
        display: block;
        padding-top: 8px;
    }

.rr-people__clear {
    background: transparent;
    border: 0;
    color: inherit;
    font: var(--people-label);
    letter-spacing: -.015em;
    padding: 8px 0;
    cursor: pointer;
    white-space: nowrap;
}

/* Results grid */

.rr-people__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 32px 24px;
}

.rr-people__pagination {
    text-align: center;
    margin-top: 48px;
}

/* Load More and Retry buttons use their own class. */

.rr-people__more {
    background: transparent;
    color: inherit;
    border: 1.5px solid #171245;
    border-radius: 10px;
    min-width: 103px;
    min-height: 41px;
    padding: 12px 16px 12px 12px;
    cursor: pointer;
    font: var(--people-label);
    letter-spacing: -.015em;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.rr-people .rr-people__more:hover,
.rr-people .rr-people__more:focus-visible {
    background: #171245;
    color: #fff !important;
}

.rr-people__status {
    font: var(--people-body);
    letter-spacing: 0;
}

    .rr-people__status:empty {
        display: none;
    }

/* Accessibility */

.rr-people [hidden] {
    display: none !important;
}

.rr-people :focus-visible {
    outline: 2px solid #6a59fd;
    outline-offset: 4px;
}

.rr-people__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

    .rr-people__sr:focus {
        position: static;
        width: auto;
        height: auto;
        clip-path: none;
    }

.rr-people[data-keyboard="true"] .rr-people__search:has(input:focus-visible) {
    outline: 2px solid #6a59fd;
    outline-offset: 4px;
    border-radius: 24px;
}

/* Touch targets */

@media (pointer: coarse) {
    .rr-people__dropdown summary,
    .rr-people__panel label,
    .rr-people__clear,
    .rr-people__more,
    .rr-people__search input {
        min-height: 44px;
    }

    .rr-people__filter-clear {
        min-width: 44px;
        min-height: 44px;
        flex-basis: 44px;
    }

        .rr-people__filter-clear::before,
        .rr-people__filter-clear::after {
            top: 21px;
            left: 16px;
        }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    .rr-people__more {
        transition: none;
    }

    .rr-people *,
    .rr-people *::before,
    .rr-people *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}

/* Compact desktop and tablet filters */

@media (min-width: 750px) and (max-width: 1439.98px) {
    .rr-people {
        --people-gutter: 40px;
    }

    .rr-people__filters {
        gap: 12px;
        padding: 12px 16px;
    }

    .rr-people__search {
        min-width: 120px;
    }

    .rr-people__options {
        gap: 4px;
    }
}

/* Two-column profile grid */

@media (min-width: 750px) and (max-width: 1439.98px) {
    .rr-people__grid {
        grid-template-columns: repeat(2, minmax(0, 460px));
        justify-content: center;
    }
}

/* Tablet */

@media (min-width: 750px) and (max-width: 999.98px) {
    .rr-people {
        --people-gutter: 20px;
    }

    .rr-people__team {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .rr-people .rr-people__h3 {
        font-size: 32px;
        margin-bottom: 32px;
    }

    .rr-people__filters {
        margin-bottom: 56px;
    }

    .rr-people__grid {
        gap: 24px 32px;
    }

    .rr-people__panel {
        top: calc(100% + 20px);
        right: -16px;
    }
}

/* Mobile */

@media (max-width: 749.98px) {
    .rr-people {
        --people-gutter: 16px;
    }

    .rr-people__team {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .rr-people .rr-people__h3 {
        font-size: 18px;
        letter-spacing: -.03em;
        margin-bottom: 24px;
    }

    .rr-people__filters {
        display: block;
        background: transparent;
        border-radius: 0;
        min-height: 0;
        padding: 0;
        margin-bottom: 48px;
    }

    .rr-people__search {
        background: white;
        border-radius: 24px;
        padding: 0 14px;
        min-width: 0;
    }

        .rr-people__search input {
            height: 36px;
            flex: 1;
        }

    .rr-people__options {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 16px 0 0;
    }

    .rr-people__dropdown {
        width: 100%;
    }

        .rr-people__dropdown summary {
            text-align: center;
            max-width: none;
            background: white;
        }

    .rr-people__panel {
        width: 100%;
        max-width: 100%;
        left: 0;
        right: auto;
        top: calc(100% + 8px);
    }

    .rr-people__clear {
        align-self: flex-start;
        padding: 4px 0;
    }

    .rr-people__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .rr-people__pagination {
        margin-top: 32px;
    }
}
