/**
 * Contacts Section
 *
 * Staff directory with tabular layout. Blue header row,
 * shadow-elevated table, email links in bright-red.
 * Vacant rows shown with italic text and reduced opacity.
 *
 * Responsive: horizontal scroll on narrow viewports.
 *
 * @package Condor
 */

/* ==========================================================================
   Section Container
   ========================================================================== */

.contacts {
    padding-top: 3rem;
}

/* ==========================================================================
   Contact List Groups
   ========================================================================== */

.contacts-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.contacts-list + .contacts-list {
    padding-top: 100px;
}

.contacts-list .contacts-header {
    padding-bottom: 1rem;
}

.contacts-list .contacts-header h4 {
    color: var(--wp--preset--color--red);
    font-family: var(--wp--preset--font-family--heading);
    font-weight: 700;
    margin: 0;
}

/* ==========================================================================
   Table
   ========================================================================== */

.contacts-list table {
    background: var(--wp--preset--color--white);
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
    font-family: var(--wp--preset--font-family--body);
    width: 100%;
    border-collapse: collapse;
}

/* --- Table Header --- */

.contacts-list thead th {
    padding: 15px 20px;
    background: var(--wp--preset--color--blue);
    color: var(--wp--preset--color--white);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: left;
}

.contacts-list thead th.state {
    max-width: 60px;
}

/* --- Table Body --- */

.contacts-list tbody td {
    padding: 15px 20px;
    vertical-align: middle;
    font-size: 0.8125rem;
    line-height: 1.125em;
}

.contacts-list tbody td.name {
    min-width: 180px;
    font-weight: bold;
    font-size: 0.875rem;
}

.contacts-list tbody td.state {
    max-width: 60px;
}

.contacts-list tbody td.phone {
    min-width: 140px;
}

.contacts-list tbody tr + tr td {
    border-top: 1px solid #f5f5f5;
}

/* --- Vacant Rows --- */

.contacts-list tbody .vacant td {
    font-weight: normal;
    font-style: italic;
    background: var(--wp--preset--color--off-white);
    opacity: 0.5;
}

.contacts-list tbody .vacant td.name {
    font-weight: normal;
}

/* --- Email Links --- */

.contacts-list tbody td.email a {
    color: var(--wp--preset--color--bright-red);
    text-decoration: none;
}

.contacts-list tbody td.email a:hover {
    text-decoration: underline;
}
