.team {
    color: var(--nsr-text);
}

.nsr-editorial-team {
    padding: var(--nsr-section-padding-y) var(--nsr-page-gutter);
}

.nsr-editorial-team__content {
    min-width: 0;
}

.team__section {
    padding: 32px 0;
}

.team__section:first-child {
    padding-top: 0;
}

.team__section:last-child {
    padding-bottom: 0;
}

.nsr-custom-page__content .team__role,
.nsr-editorial-team__content .team__role {
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    color: var(--nsr-text);
    font-size: clamp(22px, 2vw, 30px);
    font-weight: var(--nsr-font-weight-bold);
    line-height: 1;
    text-transform: uppercase;
}

.team .editor {
    position: relative;
    margin: 0;
    padding: 24px 0;
    border-bottom: 1px solid var(--nsr-border);
}

.team .row-cols-lg-2 > .col {
    margin-bottom: 0;
}

.team .row-cols-lg-2 > .col:nth-last-child(-n + 2) .editor,
.team .row-cols-lg-1 > .col:last-child .editor {
    border-bottom: 0;
}

.team .editor-photo {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.team .editor-photo-wrap {
    position: relative;
    display: block;
}

.team .editor-flag {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 30px;
    height: 20px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.team .editor-identity {
    padding-left: 16px;
}

.team .editor-details {
    margin-top: 16px;
}

.team .editor-name-row {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.team .editor-name {
    order: 2;
    width: 100%;
    margin: 0;
    font-size: clamp(17px, 1.4vw, 22px);
    font-weight: var(--nsr-font-weight-bold);
    line-height: 1.15;
    text-transform: uppercase;
}

.team .editor-name-row > a {
    order: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 8px;
    color: #fff;
    font-size: var(--nsr-font-size-xs);
    font-weight: var(--nsr-font-weight-semibold);
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}

.team .editor-name-row > a[href*="orcid.org"] {
    background: #a6ce39;
}

.team .editor-name-row > a[href*="scopus.com"] {
    background: #e9711c;
}

.team .editor-name-row > a[href*="webofscience.com"] {
    background: #5f4bb6;
}

.team .editor-name-row > a[href*="orcid.org"]::before {
    content: 'ORCID';
}

.team .editor-name-row > a[href*="scopus.com"]::before {
    content: 'Scopus';
}

.team .editor-name-row > a[href*="webofscience.com"]::before {
    content: 'Web of Science';
}

.team .editor-name + a img,
.team .editor-name ~ a img {
    display: none;
}

.team p {
    margin: 0 0 10px;
    color: var(--nsr-text-muted, var(--nsr-text));
    font-size: var(--nsr-font-size-base);
    line-height: 1.4;
}

.team p em {
    color: var(--nsr-text);
    font-style: normal;
    font-weight: var(--nsr-font-weight-strong);
}

.team p:last-child {
    margin-bottom: 0;
}

.team .editor-institution {
    color: var(--nsr-text);
    font-weight: var(--nsr-font-weight-strong);
}

.team .editor-role {
    margin-bottom: 8px;
}

@media (max-width: 991.98px) {
    .nsr-editorial-team {
        padding-right: var(--nsr-page-gutter);
        padding-left: var(--nsr-page-gutter);
    }

    .team .row-cols-lg-2 > .col:nth-last-child(-n + 2) .editor {
        border-bottom: 1px solid var(--nsr-border);
    }

    .team .row-cols-lg-2 > .col:last-child .editor {
        border-bottom: 0;
    }

    .team__section:first-child .col-lg-6 + .col-lg-6 {
        margin-top: 32px;
    }
}

@media (min-width: 992px) {
    .team .row-cols-lg-2 > .col:nth-child(odd) .editor::after,
    .team__section:first-child .col-lg-6:first-child .editor::after {
        position: absolute;
        top: 24px;
        right: -12px;
        bottom: 24px;
        width: 1px;
        background: var(--nsr-border);
        content: '';
    }

    .team .gx-lg-5 > .col:nth-child(odd) .editor::after,
    .team__section:first-child .gx-lg-5 > .col-lg-6:first-child .editor::after {
        right: -24px;
    }
}

@media (max-width: 575.98px) {
    .team__section {
        padding: 28px 0;
    }

    .nsr-custom-page__content .team__role,
    .nsr-editorial-team__content .team__role {
        margin-bottom: 8px;
        font-size: var(--nsr-font-size-lg);
        line-height: 1.05;
    }

    .team .editor-summary {
        display: flex;
        flex-direction: column;
    }

    .team .editor-summary > [class*="col-"] {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .team .editor-summary > [class*="col-"]:first-child {
        margin-bottom: 16px;
    }

    .team .editor-identity {
        padding-left: 0;
    }

    .team .editor-photo {
        width: 160px;
    }

    .team .editor-photo-wrap {
        width: 160px;
    }

    .team .editor-flag {
        width: 45px;
        height: 30px;
    }

    .team .editor-name {
        font-size: var(--nsr-font-size-base);
    }
}
