/* ============================================================
   Foxco Board Members Widget — style.css  v1.0.0
   ============================================================ */

/* ── Reset / base ── */
.fbm-wrap *,
.fbm-wrap *::before,
.fbm-wrap *::after { box-sizing: border-box; }

.fbm-wrap { width: 100%; }

/* ── Grid helper ── */
.fbm-grid {
    display: grid;
    gap: 20px;
}
.fbm-cols-1 { grid-template-columns: repeat(1, 1fr); }
.fbm-cols-2 { grid-template-columns: repeat(2, 1fr); }
.fbm-cols-3 { grid-template-columns: repeat(3, 1fr); }
.fbm-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .fbm-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .fbm-cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .fbm-cols-4,
    .fbm-cols-3,
    .fbm-cols-2 { grid-template-columns: 1fr; }
}

/* ── Avatar ── */
.fbm-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.fbm-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fbm-avatar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a56db;
    color: #fff;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: .02em;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Info block ── */
.fbm-name {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
    color: inherit;
    margin: 0 0 2px;
}
.fbm-role {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #1a56db;
    margin: 0 0 6px;
}

/* ── Contact links ── */
.fbm-contact {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 6px;
}
.fbm-contact a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .78rem;
    color: #555;
    text-decoration: none;
    line-height: 1.4;
    transition: color .15s;
}
.fbm-contact a:hover { color: #1a56db; text-decoration: underline; }
.fbm-contact svg { flex-shrink: 0; opacity: .65; }

/* ============================================================
   ① CARD — vertical stack
   ============================================================ */
.fbm-card {
    background: #fff;
    border-radius: 8px;
    border-top: 3px solid #1a56db;
    box-shadow: 0 1px 6px rgba(0,0,0,.07);
    padding: 22px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    transition: box-shadow .2s;
}
.fbm-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.11); }
.fbm-card .fbm-avatar { margin-bottom: 14px; }
.fbm-card .fbm-info { width: 100%; }
.fbm-card .fbm-role { text-align: center; }
.fbm-card .fbm-name { text-align: center; }
.fbm-card .fbm-contact { align-items: center; }

/* ============================================================
   ② STRIP — horizontal layout
   ============================================================ */
.fbm-strip {
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid #1a56db;
    box-shadow: 0 1px 6px rgba(0,0,0,.07);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: box-shadow .2s;
}
.fbm-strip:hover { box-shadow: 0 4px 16px rgba(0,0,0,.11); }
.fbm-strip .fbm-avatar { width: 60px; height: 60px; flex-shrink: 0; }
.fbm-strip .fbm-avatar-icon { font-size: 1.2rem; }
.fbm-strip .fbm-info { flex: 1; min-width: 0; }
.fbm-strip .fbm-name { font-size: .95rem; margin-bottom: 1px; }
.fbm-strip .fbm-role { margin-bottom: 4px; }

/* ============================================================
   ③ MINIMAL — small badge + tight info
   ============================================================ */
.fbm-minimal-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: box-shadow .2s;
}
.fbm-minimal-item:hover { box-shadow: 0 3px 12px rgba(0,0,0,.1); }
.fbm-minimal .fbm-avatar { width: 44px; height: 44px; }
.fbm-minimal .fbm-avatar-icon { font-size: .9rem; }
.fbm-minimal .fbm-info { flex: 1; min-width: 0; }
.fbm-minimal .fbm-name { font-size: .88rem; margin-bottom: 1px; }
.fbm-minimal .fbm-role { font-size: .72rem; margin-bottom: 4px; }
.fbm-minimal .fbm-contact { flex-direction: row; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.fbm-minimal .fbm-contact a { font-size: .72rem; }

/* ============================================================
   ④ ROSTER — table style
   ============================================================ */
.fbm-roster { overflow-x: auto; }
.fbm-roster-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,.07);
}
.fbm-roster-table thead {
    background: #f7f9fc;
}
.fbm-roster-table th {
    text-align: left;
    padding: 10px 14px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #888;
    border-bottom: 1px solid #e8edf3;
    white-space: nowrap;
}
.fbm-roster-table td {
    padding: 10px 14px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f3f7;
    color: #333;
}
.fbm-roster-row:last-child td { border-bottom: none; }
.fbm-roster-row:hover td { background: #f9fbff; }
.fbm-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}
.fbm-roster-table .fbm-avatar { width: 34px; height: 34px; }
.fbm-roster-table .fbm-avatar-icon { font-size: .75rem; }
.fbm-roster-table .fbm-name { font-size: .875rem; margin: 0; }
.fbm-roster-table td.fbm-role {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
}
.fbm-roster-table a {
    color: #555;
    text-decoration: none;
    font-size: .8rem;
    white-space: nowrap;
}
.fbm-roster-table a:hover { color: #1a56db; text-decoration: underline; }

/* ── Elementor editor dark bg handling ── */
.elementor-editor-active .fbm-card,
.elementor-editor-active .fbm-strip,
.elementor-editor-active .fbm-minimal-item,
.elementor-editor-active .fbm-roster-table { box-shadow: none; border: 1px solid rgba(0,0,0,.08); }
