/* Where We Work landing. Scoped to WhereWeWorkNew; values from the Figma "Media Combo" component (XLarge, 1440 wide). */
.rr-where-we-work {
    position: relative;
    overflow: hidden;
    color: #171245;
    background: #F9F9F9;
    font-family: 'Noto Sans', 'Segoe UI', Arial, sans-serif;
}

    .rr-where-we-work *, .rr-where-we-work *::before, .rr-where-we-work *::after {
        box-sizing: border-box;
    }

/* Ribbon image from the CMS, behind the picture and pinned to the top left of the section.
   It is fitted inside the Figma ribbon box (429 x 762), so an export of that layer fills it exactly. */
.rr-where-we-work__swoosh {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: 100%;
    aspect-ratio: 429 / 762;
    object-fit: contain;
    object-position: left top;
    pointer-events: none;
}

/* Screens wider than 1440 keep the 1440 layout, centred. */
.rr-where-we-work__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 160px;
}

.rr-where-we-work__media {
    flex: 0 1 463px;
    aspect-ratio: 463 / 442;
    overflow: hidden;
    border-radius: 20px;
}

    .rr-where-we-work__media img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.rr-where-we-work__regions {
    display: flex;
    flex: 0 1 582px;
    flex-direction: column;
    gap: 64px;
}

.rr-main .rr-where-we-work__region-title {
    margin: 0 0 16px;
    color: #171245;
    font-family: 'Archivo', 'Noto Sans', 'Segoe UI', Arial, sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.05;
}

.rr-main .rr-where-we-work__countries {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(var(--rr-where-we-work-rows, 1), auto);
    grid-template-columns: minmax(158px, max-content) minmax(0, 1fr);
    gap: 8px 32px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 16px;
    line-height: 1.15;
}

    .rr-main .rr-where-we-work__countries li {
        margin: 0;
        padding: 0;
    }

    .rr-main .rr-where-we-work__countries a,
    .rr-main .rr-where-we-work__countries span {
        color: #171245;
    }

        .rr-main .rr-where-we-work__countries a:hover,
        .rr-main .rr-where-we-work__countries a:focus-visible {
            color: #171245;
            text-decoration: underline;
            text-underline-offset: 4px;
        }

/* Large (Figma 1025) */
@media (max-width: 1279px) {
    .rr-where-we-work__swoosh {
        height: 620px;
    }

    .rr-where-we-work__inner {
        padding: 138px 40px;
    }

    .rr-where-we-work__media {
        flex-basis: 360px;
    }

    .rr-where-we-work__regions {
        flex-basis: 424px;
    }
}

/* Medium (Figma 768) */
@media (max-width: 1024px) {
    .rr-where-we-work__swoosh {
        height: 458px;
    }

    .rr-where-we-work__inner {
        justify-content: center;
        gap: 64px;
        padding: 64px 24px;
    }

    .rr-where-we-work__media {
        flex-basis: 346px;
    }

    .rr-where-we-work__regions {
        flex: 0 0 auto;
    }

    .rr-main .rr-where-we-work__region-title {
        font-size: 18px;
    }

    .rr-main .rr-where-we-work__countries {
        grid-template-columns: minmax(117px, max-content) minmax(0, 1fr);
    }
}

/* Small (Figma 374) */
@media (max-width: 767px) {
    .rr-where-we-work__swoosh {
        height: 486px;
    }

    .rr-where-we-work__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 48px;
        padding: 80px 16px;
    }

    .rr-where-we-work__media {
        flex: none;
        width: 100%;
        aspect-ratio: 1 / 1;
    }

    .rr-where-we-work__regions {
        flex: none;
    }

    .rr-main .rr-where-we-work__region-title {
        font-size: 20px;
    }

    .rr-main .rr-where-we-work__countries {
        grid-template-columns: minmax(156px, max-content) minmax(0, 1fr);
        column-gap: 24px;
    }
}
