/* ==========================================================================
   Team Card
   ========================================================================== */
.team-card-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}
.team-card-page-header {
    text-align: center;
    margin-bottom: 48px;
}
.team-card-page-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2a20;
    margin: 0;
}
.team-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(max(260px, calc((100% - 96px) / 4)), 1fr));
    gap: 32px;
}
/* ---- Card shell ---- */
.tc-card {
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(60, 80, 50, 0.12);
    display: flex;
    flex-direction: column;
}
/* ---- Top section: wave background + square photo (rounded top corners) ---- */
.tc-card-top {
    position: relative;
    height: 340px;
    background: #c7d9a6;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding-top: 28px;
    flex-shrink: 0;
}

.tc-wave {
    position: absolute;
    inset: 0;
    background-color: var(--wave-bg-color, #c7d9a6);
    z-index: 1;
}

.tc-wave::after {
    content: none;
}

.tc-photo {
    position: relative;
    z-index: 2;
    width: 240px;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    background: #d9d9d9;
}

.tc-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tc-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: #8a8a8a;
    background: #d9d9d9;
}
/* ---- Card body ---- */
.tc-card-body {
    padding: 24px 24px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.tc-name {
    font-family: 'Century Gothic', CenturyGothic, AppleGothic, Futura, sans-serif;
    font-size: 1.7rem;
    font-weight: 500;
    line-height: 1.25;
    color: #232323;
    margin: 0 0 6px;
    min-height: 3.75em;
}
.tc-role {
    font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    color: #6f9a3c;
    margin: 0 0 12px;
    min-height: 2.86em;
}
.tc-divider {
    display: block;
    width: 36px;
    height: 2px;
    background: #6f9a3c;
    margin: 0 auto 20px;
}
.tc-contact-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: auto;
}
.tc-subtitle {
    font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.3;
    color: #5b6b52;
    margin: 0;
    min-height: 3.9em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.tc-contact-divider {
    display: none;
}
.tc-icon-btn {
    width: 100%;
    min-height: 48px;
    height: auto;
    padding: 11px 16px;
    border-radius: 14px;
    background: #d9e6c3;
    color: #5b7d3a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.tc-contact-icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tc-contact-icon svg,
.tc-contact-icon i {
    font-size: 20px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tc-contact-text {
    min-width: 0;
    color: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.tc-icon-btn:hover,
.tc-icon-btn:focus-visible {
    background: #6f9a3c;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}
.tc-icon-btn:focus-visible {
    outline: 2px solid #3f6228;
    outline-offset: 3px;
}
@media (max-width: 543px) {
    .tc-card-top {
        height: 280px;
        padding-top: 20px;
    }
    .tc-photo {
        width: 190px;
    }
    .tc-name {
        font-size: 1.3rem;
    }
    .tc-role {
        font-size: 0.8rem;
    }
    .tc-icon-btn {
        min-height: 45px;
        padding: 10px 13px;
    }
    .tc-contact-text {
        font-size: 0.82rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tc-icon-btn {
        transition: none;
    }
    .tc-icon-btn:hover,
    .tc-icon-btn:focus-visible {
        transform: none;
    }
}

/* Equal contact-button heights; smaller email labels allow two lines. */
.tc-contact-row .tc-icon-btn {
    height: 48px;
    min-height: 48px;
    padding: 6px 10px;
    gap: 8px;
}
.tc-contact-row .tc-icon-btn[href^="mailto:"] .tc-contact-text {
    font-size: 13px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
