/**
 * Layout: global_presence — "Close to your time zone, wherever you are"
 * (Figma 1236:10168).
 *
 * Enqueued automatically when a page has a `global_presence` row in
 * designer_page_sections. Depends on the `designer-base` handle.
 * Heading left, intro text right; below, a grey panel with three stat cards on
 * the left and the world map filling the rest.
 */

.global-presence__header {
    margin-bottom: 60px;
}

.global-presence__intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.global-presence__title {
    flex: 0 1 788px;
    min-width: 0;
    margin: 0;
    line-height: 1.067;
}

.global-presence__txt {
    flex: 0 1 639px;
    min-width: 0;
    margin: 0;
    color: var(--ols-color-text-secondary);
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
}

.global-presence__map {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    border-radius: 20px;
    background: #f9f9f9;
}

.global-presence__stats {
    flex: 0 0 215px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.global-presence__stat {
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    padding: 20px;
    border: 1px solid var(--ols-color-border);
    border-radius: 10px;
    background: #fff;
    color: var(--ols-color-text);
}

.global-presence__stat-num {
    font-variant-numeric: tabular-nums;
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
}

.global-presence__stat-txt {
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
}

.global-presence__map-img {
    flex: 0 1 1241px;
    min-width: 0;
}

.global-presence__map-img img,
.global-presence__map-img svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Countries painted by global_presence.js fade in rather than flip. */
.global-presence__map-img svg path {
    transition: fill 0.4s;
}

@media (max-width: 1202px) {
    .global-presence__intro {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .global-presence__title,
    .global-presence__txt {
        flex-basis: auto;
    }

    /* Stats in a row above the map. */
    .global-presence__map {
        flex-direction: column;
    }

    .global-presence__stats {
        flex: none;
        width: 100%;
        flex-direction: row;
    }

    .global-presence__stat {
        flex: 1 1 0;
        min-width: 0;
    }

    .global-presence__map-img {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .global-presence__header {
        margin-bottom: 40px;
    }

    .global-presence__map {
        padding: 12px;
        gap: 12px;
    }

    .global-presence__stats {
        gap: 8px;
    }

    .global-presence__stat {
        min-height: 96px;
        padding: 12px;
    }

    .global-presence__stat-num {
        font-size: 24px;
        line-height: 30px;
    }

    .global-presence__stat-txt {
        font-size: 14px;
        line-height: 20px;
    }
}
