/* Keruen Core — team directory */

.kc-team {
    --kc-team-teal: #2f8e9d;
    --kc-team-teal-soft: #eaf7fa;
    --kc-team-border: #d7edf1;
    --kc-team-ink: #252b3d;
    --kc-team-muted: #697486;

    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                 'Helvetica Neue', Arial, sans-serif;
    color: var(--kc-team-ink);
}

.kc-team,
.kc-team * {
    box-sizing: border-box;
}

.kc-team-search-wrap {
    position: relative;
    max-width: 560px;
    margin: 0 auto 22px;
}

.kc-team-search {
    width: 100% !important;
    min-height: 48px !important;
    padding: 12px 18px !important;
    border: 1px solid var(--kc-team-border) !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: var(--kc-team-ink) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    outline: none !important;
    box-shadow: 0 12px 28px rgba(37, 43, 61, .06) !important;
    transition: border-color .15s, box-shadow .15s !important;
}

.kc-team-search:focus {
    border-color: var(--kc-team-teal) !important;
    box-shadow: 0 0 0 3px rgba(47, 142, 157, .14) !important;
}

.kc-team-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 30px;
}

.kc-team-tab {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 10px 18px !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    background: #f2f7f8 !important;
    color: #526070 !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}

.kc-team-tab:hover {
    border-color: var(--kc-team-border) !important;
    background: #ffffff !important;
    color: var(--kc-team-teal) !important;
}

.kc-team-tab.is-active {
    border-color: var(--kc-team-teal) !important;
    background: var(--kc-team-teal) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(47, 142, 157, .18) !important;
}

.kc-team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.kc-team-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid var(--kc-team-border);
    border-radius: 18px;
    background: #ffffff;
    color: inherit !important;
    text-decoration: none !important;
    box-shadow: 0 12px 28px rgba(37, 43, 61, .07);
    transition: transform .15s, border-color .15s, box-shadow .15s;
}

.kc-team-card:hover {
    transform: translateY(-2px);
    border-color: rgba(47, 142, 157, .45);
    box-shadow: 0 18px 36px rgba(37, 43, 61, .10);
}

.kc-team-card[hidden] {
    display: none !important;
}

.kc-team-photo {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: linear-gradient(180deg, #f6fbfc 0%, #eaf7fa 100%);
}

.kc-team-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.kc-team-photo-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--kc-team-teal);
    font-size: 42px;
    font-weight: 900;
    letter-spacing: .02em;
}

.kc-team-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
}

.kc-team-position {
    display: block;
    color: var(--kc-team-teal);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1.25;
    text-transform: uppercase;
}

.kc-team-name {
    display: block;
    color: var(--kc-team-ink);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.kc-team-link {
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
    color: var(--kc-team-muted);
    font-size: 13px;
    font-weight: 800;
}

.kc-team-card[href] .kc-team-link {
    color: var(--kc-team-teal);
}

.kc-team-empty {
    margin: 28px 0 0;
    padding: 24px;
    border: 1px solid var(--kc-team-border);
    border-radius: 16px;
    background: #f7fbfc;
    color: var(--kc-team-muted);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 1180px) {
    .kc-team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .kc-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .kc-team-tabs {
        gap: 8px;
        margin-bottom: 22px;
    }

    .kc-team-search-wrap {
        max-width: none;
        margin-bottom: 18px;
    }

    .kc-team-tab {
        min-height: 38px !important;
        padding: 9px 14px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 520px) {
    .kc-team-grid {
        grid-template-columns: 1fr;
    }

    .kc-team-card-body {
        padding: 16px;
    }

    .kc-team-name {
        font-size: 18px;
    }
}

.kc-team--block {
    margin: 0 0 34px;
}

.kc-team-block-title {
    margin: 0 0 18px;
    color: var(--kc-team-ink);
    font-family: "Mulish", sans-serif;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
}

.kc-team-block-subtitle {
    margin: -8px 0 18px;
    color: var(--kc-team-muted);
    font-size: 15px;
}

.kc-team-grid--block {
    margin-top: 0;
}

@media (max-width: 767px) {
    .kc-team-block-title {
        font-size: 25px;
    }
}
