/* Contact page board roster (/contact/). One card per section; rows stack
 * into label/value pairs on phones. */

.roster { display: grid; gap: 22px; margin: 18px 0 30px; font-family: arial; }

.roster-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid #d6d6d2;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    font-size: 15px;
}
.roster-heading { margin: 0 0 8px 2px; font-size: 17px; color: #222; }
.roster-table th {
    background: #2b2b2b;
    color: #fff;
    text-align: left;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 10px 16px;
}
.roster-table td {
    padding: 12px 16px;
    vertical-align: top;
    border-top: 1px solid #ecece8;
}
.roster-table tbody tr:first-child td { border-top: none; }
.roster-table tbody tr:nth-child(even) td { background: #f8f8f6; }
.roster-table th:nth-child(1), .roster-table td:nth-child(1) { width: 34%; }
.roster-table th:nth-child(2), .roster-table td:nth-child(2) { width: 30%; }

.roster-name { font-weight: bold; color: #222; }
.roster-credit {
    display: inline-block;
    margin: 4px 0 0;
    padding: 1px 8px;
    border-radius: 10px;
    background: #e8eef3;
    color: #33495a;
    font-size: 12px;
}
.roster-table td[data-label="Role"] .roster-credit { display: table; }
.roster-email { display: block; color: #333; overflow-wrap: anywhere; }
.roster-email + .roster-email { margin-top: 4px; }
.roster-open td { color: #777; }
.roster-no-email { color: #bbb; }

@media only screen and (max-width: 600px) {
    .roster-table thead { display: none; }
    .roster-table, .roster-table tbody, .roster-table tr, .roster-table td { display: block; width: auto !important; }
    .roster-table tr { padding: 10px 14px; border-top: 1px solid #ecece8; }
    .roster-table tbody tr:first-child { border-top: none; }
    .roster-table tbody tr:nth-child(even) { background: #f8f8f6; }
    .roster-table td { padding: 2px 0; border: none; background: none !important; }
    .roster-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #888;
        margin-top: 6px;
    }
    .roster-table td:first-child::before { margin-top: 0; }
    .roster-open .roster-no-email { display: none; }
}
