/* =========================================================
   RideMonkey Contacts — Page Styling
   ========================================================= */

.rm-contacts {
    width: 100%;
}

.rm-contacts .rm-page-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}


/* ---------------------------------------------------------
   Category groups
   --------------------------------------------------------- */

.rm-contact-category-group {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.rm-contact-category-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 0 2px;

    color: #222222;

    font-size: 15px;
    font-weight: 700;
}

.rm-contact-category-count {
    color: #666666;

    font-size: 13px;
    font-weight: 600;
}

.rm-contact-list {
    display: flex;
    flex-direction: column;

    gap: 10px;
}


/* ---------------------------------------------------------
   Contact card
   --------------------------------------------------------- */

.rm-contact-card {
    display: block;
    width: 100%;

    background: #ffffff;

    border: 1px solid #dddddd;
    border-radius: 12px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

    overflow: hidden;

    color: inherit;
    text-decoration: none;

    transition: border-color 0.15s ease;
}

.rm-contact-card:hover,
.rm-contact-card:focus {
    border-color: #ff4b00;
}

.rm-contact-card-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 12px 16px 10px;

    color: #222222;

    font-size: 15px;
    font-weight: 700;
}

.rm-contact-card-star {
    font-size: 14px;
}

.rm-contact-card-meta {
    padding: 0 16px 12px;

    color: #666666;

    font-size: 13px;
    font-weight: 600;
}


/* ---------------------------------------------------------
   Empty state
   --------------------------------------------------------- */

.rm-contacts-empty-message {
    margin: 0;
    padding: 4px 2px;

    color: #666666;

    font-size: 15px;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {

    .rm-contacts .rm-page-grid {
        gap: 18px;
    }

    .rm-contact-category-header {
        font-size: 14px;
    }

    .rm-contact-card-header {
        padding: 10px 14px 8px;

        font-size: 14px;
    }

    .rm-contact-card-meta {
        padding: 0 14px 10px;

        font-size: 12px;
    }

}