/* Sistema Paroquial Pastorais V1.0 */
.spp-pastoral-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 24px;
}

.spp-pastoral-card {
    background: linear-gradient(180deg, #fff, #fffaf2);
    border: 1px solid #eadfce;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 28px rgba(15,23,42,.05);
}

.spp-pastoral-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #fff7ed;
    border: 1px solid #edd6aa;
    margin-bottom: 14px;
}

.spp-pastoral-card h3 {
    margin: 0;
    font-size: 20px;
    font-family: Georgia, serif;
}

.spp-pastoral-card p {
    color: #64748b;
    margin: 8px 0 0;
}

.spp-pastoral-meta {
    display: grid;
    gap: 6px;
    margin-top: 16px;
}

.spp-pastoral-meta span {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    color: #334155;
    font-weight: 700;
}

.spp-inline {
    display: inline-block;
    margin: 3px;
}

.spp-empty-state {
    background: #fff7ed;
    border: 1px solid #edd6aa;
    border-radius: 18px;
    padding: 20px;
    color: #475569;
}

.spp-empty-state strong {
    display: block;
    color: #8a5a13;
    font-size: 18px;
    margin-bottom: 6px;
}

.spc-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    display: none;
    place-items: center;
    z-index: 9999;
    padding: 20px;
}

.spc-modal.is-open {
    display: grid;
}

.spc-modal-card {
    background: #fff;
    border-radius: 22px;
    padding: 24px;
    width: min(560px, 96vw);
    max-height: 86vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .25);
}

.spc-modal-card form {
    display: grid;
    gap: 12px;
}

.spc-modal-card label {
    font-weight: 800;
    font-size: 13px;
}

.spc-modal-card input,
.spc-modal-card select,
.spc-modal-card textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 11px 13px;
    box-sizing: border-box;
}

.spc-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: #f1f5f9;
    font-size: 22px;
    cursor: pointer;
}

@media(max-width: 900px) {
    .spp-pastoral-grid {
        grid-template-columns: 1fr;
    }
}


/* Pastorais V1.1 - coordenadores editáveis */
.spp-coordinator-form {
    display: grid !important;
    grid-template-columns: 1fr 2fr auto;
    gap: 12px !important;
    align-items: end;
    background: #fff7ed;
    border: 1px solid #edd6aa;
    border-radius: 18px;
    padding: 16px;
}

.spp-coordinator-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 800;
    font-size: 13px;
}

.spp-coordinator-card {
    position: relative;
}

.spp-coordinator-person {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
}

.spp-coordinator-person strong {
    display: block;
    font-size: 14px;
}

.spp-coordinator-person span {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-top: 3px;
    word-break: break-word;
}

.spp-small-action {
    margin-top: 14px;
    width: 100%;
}

.spc-avatar.mini,
.spc-avatar-img.mini {
    width: 36px;
    height: 36px;
    font-size: 14px;
}

@media(max-width: 900px) {
    .spp-coordinator-form {
        grid-template-columns: 1fr !important;
    }
}
