/* Plugin Staff · rejilla del equipo (frontend público) */
.staff-block {
    margin: 26px 0;
}
.staff-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.staff-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.staff-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.staff-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.staff-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.staff-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.staff-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.staff-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    /* Sin padding: la foto va a sangre y llega a los bordes del card. */
    padding: 0;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(17, 24, 39, .04);
}
.staff-photo {
    width: 100%;
    flex-shrink: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}
.staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.staff-photo-fallback {
    font-size: 48px;
    font-weight: 700;
    color: #6b7280;
    line-height: 1;
}
.staff-body {
    min-width: 0;
    width: 100%;
    /* El padding que antes tenía el card, ahora solo bajo la foto. */
    padding: 18px 18px 22px;
}
.staff-name {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
}
.staff-role {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #2563eb;
    margin-top: 4px;
}
.staff-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    margin-top: 8px;
}

/* ── Lista (1 columna) en desktop ──
   Misma geometría que la lista de entradas del theme (.post-row): imagen a la
   izquierda (180px) y a la derecha el texto, alineado a la izquierda
   (nombre → puesto → descripción). En móvil se apila (foto arriba a todo el ancho). */
@media (min-width: 641px) {
    .staff-cols-1 .staff-card {
        display: grid;
        grid-template-columns: 180px 1fr;
        gap: 20px;
        align-items: start;
        text-align: left;
        padding: 18px;
    }
    .staff-cols-1 .staff-photo {
        border-radius: 8px;
    }
    .staff-cols-1 .staff-body {
        padding: 0;
    }
}

/* ── Responsive de la rejilla ──
   Con selectores compuestos (.staff-grid.staff-cols-N) para que ganen a las
   reglas .staff-cols-N de arriba. Ojo: NO reducir nunca .staff-cols-1, que es
   la lista y debe quedarse en una columna. */
@media (max-width: 900px) {
    .staff-grid.staff-cols-3,
    .staff-grid.staff-cols-4,
    .staff-grid.staff-cols-5,
    .staff-grid.staff-cols-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .staff-grid.staff-cols-2,
    .staff-grid.staff-cols-3,
    .staff-grid.staff-cols-4,
    .staff-grid.staff-cols-5,
    .staff-grid.staff-cols-6 { grid-template-columns: 1fr; }
}
