/**
 * [project_stakeholders] shortcode styles — cloned from superquotationgenerator.com
 * @author Olivier RAVEAU - Oliv.Ai
 */

.ps-dashboard {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #181c32;
    padding: 24px 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
@media (max-width: 900px) { .ps-dashboard { padding: 16px 18px; } }
@media (max-width: 600px) { .ps-dashboard { padding: 12px 12px; } }

/* ═════ Header ═════ */
.ps-header {
    margin-bottom: 20px;
    padding: 18px 22px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .18);
}
.ps-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.02em;
}
.ps-title-icon { font-size: 26px; }
.ps-title-count {
    margin-left: auto;
    padding: 4px 10px;
    background: rgba(255,255,255,.14);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #e0f2fe;
}
.ps-tagline { margin: 0; color: rgba(255,255,255,.85); font-size: 13px; line-height: 1.5; }

/* ═════ Group ═════ */
.ps-group {
    margin-bottom: 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e4e6ef;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    overflow: hidden;
}
.ps-group-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--ps-accent) 12%, #fff), #fff);
    border-bottom: 3px solid var(--ps-accent, #009ef7);
}
.ps-group-emoji { font-size: 18px; }
.ps-group-name {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #181c32;
    letter-spacing: .01em;
    text-transform: uppercase;
}
.ps-group-count {
    margin-left: auto;
    padding: 2px 10px;
    background: var(--ps-accent, #009ef7);
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

/* ═════ Cards grid ═════ */
.ps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    padding: 16px;
}

.ps-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #eef2f5;
    border-radius: 10px;
    transition: transform .12s, box-shadow .12s, border-color .12s;
}
.ps-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .08);
    border-color: var(--ps-accent, #009ef7);
}

/* ═════ Photo + fallback ═════ */
.ps-photo-wrap {
    position: relative;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
}
.ps-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
    background: #e4e6ef;
}
.ps-photo-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ps-accent, #009ef7), color-mix(in srgb, var(--ps-accent, #009ef7) 60%, #181c32));
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .02em;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

/* ═════ Person details ═════ */
.ps-person { flex: 1 1 auto; min-width: 0; }
.ps-person-name {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 700;
    color: #181c32;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ps-person-role {
    margin: 0 0 8px;
    font-size: 11.5px;
    color: #5e6278;
    line-height: 1.4;
}

/* ═════ Action (mail) ═════ */
.ps-person-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ps-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    background: #eef6ff;
    color: #0369a1;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 600;
    text-decoration: none;
    max-width: 100%;
    overflow: hidden;
}
.ps-action:hover { background: #dbeafe; color: #0c4a6e; text-decoration: none; }
.ps-action-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
    font-weight: 500;
    opacity: .85;
}
