/*
 * LSHPE 2.8.34 – publiczna strona Zarządu i Komisji Rewizyjnej.
 * Ten arkusz jest celowo niezależny od site.css, ponieważ motyw LSHPE Portal
 * przejmuje style publiczne i nie ładował poprawek zapisanych w pluginowym site.css.
 */

.lshpe-board-section,
.lshpe-board-section * {
    box-sizing: border-box;
}

.lshpe-board-section {
    display: grid;
    gap: 28px;
}

.lshpe-board-section .lshpe-board-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 22px !important;
}

.lshpe-board-section .lshpe-board-card {
    display: flex !important;
    min-width: 0;
    overflow: hidden;
    flex-direction: column !important;
    border: 1px solid #e1e7e2 !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 8px 24px rgba(22, 57, 29, .07) !important;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.lshpe-board-section .lshpe-board-card:hover {
    border-color: #c9dfd0 !important;
    box-shadow: 0 14px 32px rgba(22, 57, 29, .12) !important;
    transform: translateY(-4px);
}

.lshpe-board-section .lshpe-board-card__photo {
    display: grid !important;
    width: 100% !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 3 !important;
    overflow: hidden !important;
    place-items: center !important;
    background: #eef5ef !important;
}

.lshpe-board-section .lshpe-board-card__photo img,
.lshpe-board-section .lshpe-board-card__photo .avatar {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
}

.lshpe-board-section .lshpe-board-placeholder {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 220px;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    background: #eef5ef !important;
    color: #39734d !important;
    text-align: center;
}

.lshpe-board-section .lshpe-board-placeholder strong {
    color: #39734d !important;
    font-size: clamp(30px, 4vw, 42px) !important;
    font-weight: 900 !important;
    letter-spacing: -.03em;
    line-height: 1 !important;
    text-decoration: underline;
    text-decoration-color: #d7a30b;
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
}

.lshpe-board-section .lshpe-board-placeholder small {
    display: block;
    margin-top: 13px;
    color: #39734d !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.lshpe-board-section .lshpe-board-card__body {
    display: flex !important;
    min-height: 250px;
    flex: 1;
    flex-direction: column !important;
    padding: 20px !important;
}

.lshpe-board-section .lshpe-board-card__position {
    display: inline-flex !important;
    align-self: flex-start;
    margin: 0 0 10px !important;
    border-radius: 999px !important;
    background: #eaf6ed !important;
    color: #087a45 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: .05em;
    line-height: 1.15;
    padding: 5px 10px !important;
    text-transform: uppercase;
}

.lshpe-board-section .lshpe-board-group--komisja .lshpe-board-card__position {
    background: #fff2c9 !important;
    color: #835d00 !important;
}

.lshpe-board-section .lshpe-board-card h4 {
    margin: 0 0 10px !important;
    color: #102a43 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1.22 !important;
}

/* Układ dokładnie jak w kartach katalogu hodowców. */
.lshpe-board-section .lshpe-board-card__facts {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap !important;
    gap: 7px 12px !important;
    min-width: 0;
    margin: 0 0 14px !important;
    color: #59655c !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
}

.lshpe-board-section .lshpe-board-card__fact {
    display: inline-flex !important;
    min-width: 0;
    align-items: center;
    gap: 4px;
    color: #59655c !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    white-space: normal !important;
}

.lshpe-board-section .lshpe-board-card__fact--cih {
    font-weight: 650 !important;
}

.lshpe-board-section .lshpe-board-card__description {
    margin: 0 0 14px !important;
    color: #64778a !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

.lshpe-board-section .lshpe-board-card__contact {
    display: grid !important;
    gap: 8px !important;
    margin: 0 0 16px !important;
    border-top: 1px solid #e6edf2 !important;
    padding-top: 14px !important;
}

.lshpe-board-section .lshpe-board-card__contact a {
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 7px;
    align-items: start;
    min-width: 0;
    color: #087a45 !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
}

.lshpe-board-section .lshpe-board-card__contact a span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.lshpe-board-section .lshpe-board-card__profile {
    display: inline-flex !important;
    width: 100% !important;
    min-height: 46px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: auto 0 0 !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: linear-gradient(135deg, #0a9b57, #087a45) !important;
    box-shadow: 0 8px 18px rgba(8, 122, 69, .2) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    padding: 12px 18px !important;
    text-align: center;
    text-decoration: none !important;
}

.lshpe-board-section .lshpe-board-card__profile:hover,
.lshpe-board-section .lshpe-board-card__profile:focus {
    box-shadow: 0 11px 24px rgba(8, 122, 69, .26) !important;
    filter: brightness(1.04);
    color: #fff !important;
    text-decoration: none !important;
}

.lshpe-board-section .lshpe-board-card__profile span {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

.lshpe-board-section .lshpe-board-card__profile span:last-child {
    font-size: 19px !important;
    line-height: 1 !important;
}

@media (max-width: 1050px) {
    .lshpe-board-section .lshpe-board-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 680px) {
    .lshpe-board-section .lshpe-board-grid {
        grid-template-columns: 1fr !important;
    }

    .lshpe-board-section .lshpe-board-card__body {
        min-height: 0;
        padding: 18px !important;
    }

    .lshpe-board-section .lshpe-board-card__facts {
        gap: 6px 10px !important;
    }
}
