/* Where We Work country pages (WhereWeWorkMainNew). Values from the Figma "Location landing" frames:
   XLarge 1440 (default), Large 1025 (max-width 1279px), Medium 768 (max-width 1024px), Small 374 (max-width 767px). */
.rr-main .rr-country-hero,
.rr-main .rr-country-overview,
.rr-main .rr-country-team,
.rr-main .rr-country-locations {
    --rr-country-gutter: 72px;
    color: #171245;
    font-family: 'Noto Sans', 'Segoe UI', Arial, sans-serif;
}

    .rr-main .rr-country-hero *, .rr-main .rr-country-overview *, .rr-main .rr-country-team *, .rr-main .rr-country-locations * {
        box-sizing: border-box;
    }

.rr-country__container {
    width: 100%;
    max-width: calc(1296px + (var(--rr-country-gutter) * 2));
    margin: 0 auto;
    padding: 0 var(--rr-country-gutter);
}

.rr-main .rr-country__title {
    margin: 0;
    color: #171245;
    font-family: 'Archivo', 'Noto Sans', 'Segoe UI', Arial, sans-serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.05;
}

.rr-country__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 80px 0 48px;
}

/* Outline button, Figma "CTA" (More locations). */
.rr-main .rr-country__cta {
    display: inline-flex;
    flex: none;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #171245;
    border-radius: 10px;
    background: transparent;
    color: #171245;
    font-family: 'Archivo', 'Noto Sans', 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.015em;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

    .rr-main .rr-country__cta:hover,
    .rr-main .rr-country__cta:focus-visible {
        background-color: #171245;
        color: #F9F9F9 !important;
    }

.rr-main .rr-country__actions {
    display: flex;
    gap: 10px;
}

    .rr-main .rr-country__actions a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background-color: #E8E8E8;
        transition: background-color .2s;
    }

        .rr-main .rr-country__actions a:hover,
        .rr-main .rr-country__actions a:focus-visible {
            background-color: #D6D6DE;
        }

/* Hero */
.rr-main .rr-country-hero {
    position: relative;
    overflow: hidden;
    background-color: #07333D;
    background-image: none;
    color: #F9F9F9;
}

.rr-country-hero__swoosh {
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    height: 100%;
    aspect-ratio: 1026 / 608;
    pointer-events: none;
}

.rr-country-hero__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 64px;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 80px var(--rr-country-gutter);
}

.rr-country-hero__content {
    display: flex;
    flex: 0 1 685px;
    flex-direction: column;
    gap: 24px;
}

.rr-main .rr-country-hero__title {
    margin: 0;
    color: #F9F9F9;
    font-family: 'Archivo', 'Noto Sans', 'Segoe UI', Arial, sans-serif;
    font-size: 80px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.rr-main .rr-country-hero__text {
    margin: 0;
    color: #F9F9F9;
    font-size: 20px;
    line-height: 1.15;
    letter-spacing: -0.015em;
}

.rr-country-hero__media {
    flex: 0 0 463px;
    aspect-ratio: 463 / 442;
    overflow: hidden;
    border-radius: 20px;
}

    .rr-country-hero__media img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Overview and the grey list of other locations */
.rr-main .rr-country-overview {
    background-color: #F9F9F9;
}

.rr-country-overview__inner {
    display: flex;
    align-items: flex-start;
    gap: 84px;
    padding-top: 80px;
    padding-bottom: 80px;
}

.rr-country-overview__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 64px;
    min-width: 0;
    max-width: 891px;
}

.rr-country-overview--full .rr-country-overview__content {
    max-width: none;
}

.rr-main .rr-country-overview__body {
    color: #171245;
    font-size: 16px;
    line-height: 1.15;
}

    .rr-main .rr-country-overview__body > * {
        margin: 0;
    }

        .rr-main .rr-country-overview__body > * + * {
            margin-top: 24px;
        }

    .rr-main .rr-country-overview__body p,
    .rr-main .rr-country-overview__body li {
        color: #171245;
        font-size: 16px;
        line-height: 1.15;
    }

    .rr-main .rr-country-overview__body a {
        color: #171245;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .rr-main .rr-country-overview__body img {
        max-width: 100%;
        height: auto;
    }

/* Reuses Partials/where-we-work-group-country.cshtml (ul.group-country > span + li > a). */
.rr-main .rr-country-regions {
    flex: 0 0 304px;
    padding: 24px;
    border-radius: 20px;
    background-color: #E8E8E8;
}

    .rr-main .rr-country-regions .list-country {
        display: flex;
        flex-direction: column;
        gap: 48px;
    }

    .rr-main .rr-country-regions .group-country {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

        .rr-main .rr-country-regions .group-country > span {
            margin-bottom: 8px;
            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-country-regions .group-country li {
            margin: 0;
            padding: 0;
            font-size: 16px;
            line-height: 1.15;
        }

        .rr-main .rr-country-regions .group-country a {
            color: #171245;
        }

            .rr-main .rr-country-regions .group-country a:hover,
            .rr-main .rr-country-regions .group-country a:focus-visible {
                text-decoration: underline;
                text-underline-offset: 4px;
            }

/* Our team */
.rr-main .rr-country-team {
    padding-bottom: 80px;
    background-color: #E8E8E8;
}

.rr-main .rr-country-team__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .rr-main .rr-country-team__grid--collapsed > li:nth-child(n+5) {
        display: none;
    }

.rr-country-team__more {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* Profile card, Figma "Profile Card". */
.rr-main .rr-country-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow: hidden;
    border-radius: 24px;
    background-color: #F9F9F9;
}

.rr-country-card__image {
    height: 360px;
    background-color: #D9D9D9;
}

    .rr-country-card__image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

.rr-country-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
}

.rr-country-card__identity {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rr-main .rr-country-card__name {
    margin: 0;
    font-family: 'Archivo', 'Noto Sans', 'Segoe UI', Arial, sans-serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.05;
}

    .rr-main .rr-country-card__name a {
        color: #171245;
    }

        .rr-main .rr-country-card__name a:hover,
        .rr-main .rr-country-card__name a:focus-visible {
            text-decoration: underline;
            text-underline-offset: 4px;
        }

.rr-main .rr-country-card__position {
    margin: 0;
    color: #171245;
    font-size: 14px;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.rr-country-card__divider {
    height: 1px;
    background-color: #E8E8E8;
}

.rr-country-card__contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.rr-main .rr-country-card__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #171245;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

    .rr-main .rr-country-card__meta svg {
        flex: none;
    }

    .rr-main .rr-country-card__meta a {
        color: #171245;
    }

        .rr-main .rr-country-card__meta a:hover,
        .rr-main .rr-country-card__meta a:focus-visible {
            text-decoration: underline;
        }

/* The email/LinkedIn buttons go on their own row below the location and phone. */
.rr-country-team .rr-country__actions {
    flex-basis: 100%;
}

/* Our location */
.rr-main .rr-country-locations {
    background-color: #F9F9F9;
}

.rr-country-locations__tabs {
    display: flex;
    justify-content: center;
    padding: 0 var(--rr-country-gutter);
    border-bottom: 1px solid #E8E8E8;
    background-color: #F9F9F9;
}

.rr-main .rr-country-locations__tab {
    flex: none;
    margin: 0;
    padding: 48px 32px 16px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: rgba(23, 18, 69, .5);
    font-family: 'Noto Sans', 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.15;
    cursor: pointer;
}

    .rr-main .rr-country-locations__tab:hover,
    .rr-main .rr-country-locations__tab[aria-selected="true"] {
        color: #171245;
    }

    .rr-main .rr-country-locations__tab[aria-selected="true"] {
        border-bottom-color: #171245;
    }

    .rr-main .rr-country-locations__tab:focus-visible {
        outline: 2px solid #6A59FD;
        outline-offset: -2px;
    }

.rr-country-locations__panel {
    position: relative;
    min-height: 560px;
    /* The card stays in the flow so a long address makes the panel taller instead of spilling out of the page. */
    padding: 96px var(--rr-country-gutter) 64px max(var(--rr-country-gutter), calc((100% - 1296px) / 2));
    background-color: #E8E8E8;
}

    .rr-country-locations__panel[hidden] {
        display: none;
    }

.rr-country-locations__panel--no-map {
    min-height: 0;
}

/* locationMap is a rich text field holding a Google Maps iframe; stretch it behind the card. */
.rr-country-locations__map {
    position: absolute;
    inset: 0;
}

    .rr-country-locations__map > *,
    .rr-country-locations__map p {
        width: 100%;
        height: 100%;
        margin: 0;
    }

    .rr-country-locations__map iframe {
        display: block;
        width: 100% !important;
        height: 100% !important;
        border: 0;
    }

.rr-main .rr-country-locations__card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 300px;
    padding: 32px;
    border-radius: 16px;
    background-color: #F9F9F9;
}

.rr-country-locations__address {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.rr-main .rr-country-locations__name {
    margin: 0;
    color: #171245;
    font-family: 'Archivo', 'Noto Sans', 'Segoe UI', Arial, sans-serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.05;
}

.rr-main .rr-country-locations__rte p {
    margin: 0 0 6px;
    color: #171245;
    font-size: 16px;
    line-height: 1.15;
}

    .rr-main .rr-country-locations__rte p:last-child {
        margin-bottom: 0;
    }

.rr-main .rr-country-locations__rte a {
    color: #171245;
}

/* Large (Figma 1025) */
@media (max-width: 1279px) {
    .rr-main .rr-country-hero,
    .rr-main .rr-country-overview,
    .rr-main .rr-country-team,
    .rr-main .rr-country-locations {
        --rr-country-gutter: 40px;
    }

    .rr-country-hero__inner {
        gap: 48px;
    }

    .rr-main .rr-country-hero__title {
        font-size: 56px;
        font-weight: 600;
        letter-spacing: 0;
    }

    .rr-country-hero__media {
        flex-basis: 360px;
        aspect-ratio: 360 / 344;
    }

    .rr-country-overview__inner {
        gap: 24px;
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .rr-main .rr-country-overview__content {
        max-width: none;
    }

    .rr-country__head {
        padding: 64px 0 48px;
    }

    .rr-main .rr-country-team {
        padding-bottom: 64px;
    }

    .rr-main .rr-country-team__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Medium (Figma 768) */
@media (max-width: 1024px) {
    .rr-main .rr-country-hero,
    .rr-main .rr-country-overview,
    .rr-main .rr-country-team,
    .rr-main .rr-country-locations {
        --rr-country-gutter: 20px;
    }

    .rr-country-hero__inner {
        padding-right: 40px;
        padding-left: 40px;
    }

    .rr-main .rr-country-hero__title {
        font-size: 40px;
    }

    .rr-main .rr-country__title {
        font-size: 32px;
    }

    .rr-country-overview__inner {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .rr-country-overview__content {
        gap: 48px;
    }

    .rr-main .rr-country-regions {
        flex-basis: 258px;
    }

        .rr-main .rr-country-regions .group-country > span {
            font-size: 18px;
        }

    .rr-country__head {
        padding: 56px 0 32px;
    }

    .rr-main .rr-country-team {
        padding-bottom: 56px;
    }

    .rr-main .rr-country-card__name {
        font-size: 24px;
    }

    .rr-main .rr-country-locations__tab {
        padding-top: 24px;
    }

    .rr-main .rr-country-locations__name {
        font-size: 24px;
    }
}

/* Small (Figma 374) */
@media (max-width: 767px) {
    .rr-main .rr-country-hero,
    .rr-main .rr-country-overview,
    .rr-main .rr-country-team,
    .rr-main .rr-country-locations {
        --rr-country-gutter: 16px;
    }

    .rr-country-hero__swoosh {
        top: -98px;
        left: -151px;
        right: auto;
        width: 810px;
        height: auto;
    }

    .rr-country-hero__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 48px;
        padding: 80px 16px;
    }

    .rr-country-hero__content {
        flex: none;
    }

    .rr-country-hero__media {
        order: -1;
        flex: none;
        width: 100%;
        aspect-ratio: 1 / 1;
    }

    .rr-main .rr-country-hero__title {
        font-size: 32px;
    }

    .rr-country-overview__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 48px;
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .rr-country-overview__content {
        gap: 24px;
    }

    .rr-main .rr-country-regions {
        flex: none;
    }

        .rr-main .rr-country-regions .group-country > span {
            font-size: 16px;
        }

    .rr-main .rr-country__title {
        font-size: 24px;
    }

    .rr-country__head {
        padding: 48px 0 24px;
    }

    .rr-main .rr-country-team {
        padding-bottom: 48px;
    }

    .rr-main .rr-country-team__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .rr-main .rr-country-card__name {
        font-size: 18px;
    }

    /* Tabs scroll sideways; the map sits above the address card instead of behind it. */
    .rr-country-locations__tabs {
        justify-content: flex-start;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .rr-main .rr-country-locations__tab {
        padding: 48px 12px 16px;
        color: #999999;
        font-family: 'Archivo', 'Noto Sans', 'Segoe UI', Arial, sans-serif;
        font-weight: 500;
        line-height: 1.05;
    }

    .rr-country-locations__panel {
        min-height: 0;
        padding: 0 0 24px;
    }

    .rr-country-locations__map {
        position: relative;
        height: 220px;
    }

    .rr-main .rr-country-locations__card {
        position: static;
        width: auto;
        margin: 16px 16px 0;
        background-color: #FFFFFF;
    }

    .rr-main .rr-country-locations__name {
        font-size: 32px;
        font-weight: 600;
    }
}
