/**
 * JCDSRI Faculty -- styles v1.0.0
 * Brand tokens in :root. Cohesive with the JCDSRI Events plugin.
 */
:root {
    --jcdsf-navy:   #2f3e5b;
    --jcdsf-ink:    #1f2733;
    --jcdsf-gray:   #6b7280;
    --jcdsf-accent: #2f80c8;
    --jcdsf-border: #e6e8ec;
    --jcdsf-soft:   #f5f7fa;
    --jcdsf-font: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --jcdsf-radius: 16px;
    --jcdsf-ease: 0.2s ease;
}

.jcdsf-wrap *, .jcdsf-wrap *::before, .jcdsf-wrap *::after { box-sizing: border-box; }
.jcdsf-wrap { font-family: var(--jcdsf-font); color: var(--jcdsf-ink); }

/* ===================== GRID ===================== */
.jcdsf-grid {
    display: grid;
    grid-template-columns: repeat(var(--jcdsf-cols, 4), 1fr);
    gap: 26px;
}

.jcdsf-card {
    position: relative;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid var(--jcdsf-border);
    border-radius: var(--jcdsf-radius);
    overflow: hidden;
    transition: transform var(--jcdsf-ease), box-shadow var(--jcdsf-ease), border-color var(--jcdsf-ease);
    outline: none;
}
.jcdsf-card:hover, .jcdsf-card:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(31, 39, 51, 0.16);
    border-color: #d7dbe2;
}

.jcdsf-photo {
    position: relative;
    aspect-ratio: 4 / 4;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--jcdsf-soft);
    transition: transform 0.35s ease;
}
.jcdsf-card:hover .jcdsf-photo { transform: scale(1.04); }

/* "+" affordance on hover */
.jcdsf-photo::after {
    content: "\f067"; /* fa plus */
    font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; right: 12px; bottom: 12px;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: #fff;
    background: var(--jcdsf-navy);
    border-radius: 50%;
    opacity: 0; transform: scale(0.7);
    transition: opacity var(--jcdsf-ease), transform var(--jcdsf-ease);
}
.jcdsf-card:hover .jcdsf-photo::after { opacity: 1; transform: scale(1); }

.jcdsf-photo--ph { display: flex; align-items: center; justify-content: center; background-size: cover; }
.jcdsf-photo--ph span { font-size: 44px; font-weight: 800; color: #fff; letter-spacing: 0.02em; }

.jcdsf-body { padding: 16px 16px 20px; text-align: center; }
.jcdsf-name { font-size: 17px; font-weight: 800; color: var(--jcdsf-navy); line-height: 1.25; }
.jcdsf-role { margin-top: 5px; font-size: 13px; font-weight: 600; color: var(--jcdsf-gray); line-height: 1.35; }

/* placeholder gradients */
.jcdsf-ph--c1 { background: linear-gradient(135deg, #f2a13c, #e5852a); }
.jcdsf-ph--c2 { background: linear-gradient(135deg, #2f80c8, #2266a8); }
.jcdsf-ph--c3 { background: linear-gradient(135deg, #78b12e, #5f9021); }
.jcdsf-ph--c4 { background: linear-gradient(135deg, #7c66f0, #5f49d0); }
.jcdsf-ph--c5 { background: linear-gradient(135deg, #ef6a4c, #d5502f); }
.jcdsf-ph--c6 { background: linear-gradient(135deg, #33475b, #24323f); }

.jcdsf-empty {
    padding: 22px; background: var(--jcdsf-soft);
    border: 1px dashed var(--jcdsf-border); border-radius: var(--jcdsf-radius);
    color: var(--jcdsf-gray); font-size: 14px;
}
.jcdsf-empty span { opacity: 0.7; font-size: 12px; }

.jcdsf-detail { display: none; }

/* ===================== MODAL ===================== */
.jcdsf-modal-overlay {
    position: fixed; inset: 0; z-index: 99999;
    display: none;
    align-items: center; justify-content: center;
    padding: 24px;
    background: rgba(18, 24, 33, 0.62);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.jcdsf-modal-overlay.jcdsf-open { display: flex; animation: jcdsf-fade 0.2s ease; }
@keyframes jcdsf-fade { from { opacity: 0; } to { opacity: 1; } }

.jcdsf-modal {
    position: relative;
    width: 100%; max-width: 760px; max-height: 88vh;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    animation: jcdsf-pop 0.22s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes jcdsf-pop { from { transform: translateY(12px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }

.jcdsf-modal-close {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    width: 38px; height: 38px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    border: none; cursor: pointer;
    background: rgba(255, 255, 255, 0.9); color: var(--jcdsf-ink);
    font-size: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    transition: background var(--jcdsf-ease), transform var(--jcdsf-ease);
}
.jcdsf-modal-close:hover { background: #fff; transform: rotate(90deg); }

.jcdsf-modal-content { display: block; }
.jcdsf-detail > * , .jcdsf-modal-content > * { }
.jcdsf-modal-content { display: grid; grid-template-columns: 280px 1fr; max-height: 88vh; }

.jcdsf-modal-photo { position: relative; background: var(--jcdsf-soft); min-height: 320px; }
.jcdsf-modal-photo img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.jcdsf-modal-ph { width: 100%; height: 100%; min-height: 320px; display: flex; align-items: center; justify-content: center; }
.jcdsf-modal-ph span { font-size: 72px; font-weight: 800; color: #fff; }

.jcdsf-modal-info { padding: 34px 34px 32px; overflow-y: auto; }
.jcdsf-modal-name { font-size: 26px; font-weight: 800; color: var(--jcdsf-navy); line-height: 1.15; }
.jcdsf-modal-role {
    margin-top: 6px; font-size: 13px; font-weight: 800;
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--jcdsf-accent);
}
.jcdsf-modal-bio { margin-top: 18px; font-size: 15px; line-height: 1.65; color: var(--jcdsf-ink); }
.jcdsf-modal-bio p { margin: 0 0 12px; }
.jcdsf-modal-bio p:last-child { margin-bottom: 0; }

.jcdsf-modal-email {
    display: inline-flex; align-items: center; gap: 9px;
    margin-top: 22px;
    padding: 11px 20px;
    text-decoration: none;
    font-size: 14px; font-weight: 700;
    color: #fff; background: var(--jcdsf-navy);
    border-radius: 999px;
    transition: filter var(--jcdsf-ease);
}
.jcdsf-modal-email:hover { filter: brightness(1.12); }

@media (max-width: 1100px) { .jcdsf-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
    .jcdsf-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .jcdsf-modal-content { grid-template-columns: 1fr; }
    .jcdsf-modal-photo { min-height: 0; aspect-ratio: 16 / 10; }
    .jcdsf-modal-ph { min-height: 220px; }
    .jcdsf-modal-info { padding: 24px; }
    .jcdsf-modal-name { font-size: 22px; }
}
@media (max-width: 400px) { .jcdsf-grid { grid-template-columns: 1fr; } }

/* ===================================================
   DIVI HARDENING — Divi's #et-boc .et-l div reset (ID-level)
   strips background / border / radius / padding / margin / color.
   Re-assert everything the layout depends on.
=================================================== */
.jcdsf-wrap .jcdsf-card { background: #ffffff !important; border: 1px solid var(--jcdsf-border) !important; border-radius: var(--jcdsf-radius) !important; overflow: hidden !important; }
.jcdsf-wrap .jcdsf-body { padding: 16px 16px 20px !important; }
.jcdsf-wrap .jcdsf-name { color: #2f3e5b !important; color: var(--jcdsf-navy) !important; }
.jcdsf-wrap .jcdsf-role { color: #6b7280 !important; color: var(--jcdsf-gray) !important; }
.jcdsf-wrap .jcdsf-photo { background-color: #f5f7fa !important; background-size: contain !important; background-repeat: no-repeat !important; background-position: center !important; }
.jcdsf-wrap .jcdsf-photo--ph { background-size: cover !important; }
.jcdsf-wrap .jcdsf-photo--ph span,
.jcdsf-wrap .jcdsf-modal-ph span { color: #ffffff !important; }
.jcdsf-wrap .jcdsf-ph--c1 { background: linear-gradient(135deg, #f2a13c, #e5852a) !important; }
.jcdsf-wrap .jcdsf-ph--c2 { background: linear-gradient(135deg, #2f80c8, #2266a8) !important; }
.jcdsf-wrap .jcdsf-ph--c3 { background: linear-gradient(135deg, #78b12e, #5f9021) !important; }
.jcdsf-wrap .jcdsf-ph--c4 { background: linear-gradient(135deg, #7c66f0, #5f49d0) !important; }
.jcdsf-wrap .jcdsf-ph--c5 { background: linear-gradient(135deg, #ef6a4c, #d5502f) !important; }
.jcdsf-wrap .jcdsf-ph--c6 { background: linear-gradient(135deg, #33475b, #24323f) !important; }

.jcdsf-wrap .jcdsf-modal-overlay { background: rgba(18, 24, 33, 0.62) !important; padding: 24px !important; }
.jcdsf-wrap .jcdsf-modal { background: #ffffff !important; border-radius: 20px !important; overflow: hidden !important; }
.jcdsf-wrap .jcdsf-modal-close { background: rgba(255,255,255,0.9) !important; color: #1f2733 !important; border-radius: 50% !important; border: none !important; }
.jcdsf-wrap .jcdsf-modal-info { padding: 34px 34px 32px !important; }
.jcdsf-wrap .jcdsf-modal-name { color: #2f3e5b !important; color: var(--jcdsf-navy) !important; }
.jcdsf-wrap .jcdsf-modal-role { color: #2f80c8 !important; color: var(--jcdsf-accent) !important; }
.jcdsf-wrap .jcdsf-modal-bio { color: #1f2733 !important; color: var(--jcdsf-ink) !important; }
.jcdsf-wrap .jcdsf-modal-email { background: #2f3e5b !important; background: var(--jcdsf-navy) !important; color: #ffffff !important; border-radius: 999px !important; padding: 11px 20px !important; }
