/* ===== CompanyReviews Module ===== */
.cr { font-family: inherit; }

/* --- Tabs --- */
.cr-tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 24px;
    gap: 0;
}

.cr-tab {
    padding: 10px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: color .15s, border-color .15s;
}

.cr-tab:hover {
    color: #1a6fc4;
}

.cr-tab--active {
    color: #1a6fc4;
    border-bottom-color: #1a6fc4;
}

/* --- Panels --- */
.cr-panel { display: none; }
.cr-panel--active { display: block; }

/* --- Grid --- */
.cr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* --- Card --- */
.cr-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cr-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cr-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.cr-card__avatar--initial {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1a6fc4;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.cr-card__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cr-card__author {
    font-weight: 600;
    font-size: .9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cr-card__date {
    font-size: .78rem;
    color: #888;
}

/* --- Stars --- */
.cr-card__stars {
    font-size: 1.1rem;
    line-height: 1;
}

.cr-star--filled { color: #f5a623; }
.cr-star--empty  { color: #ccc; }

/* --- Text --- */
.cr-card__text {
    font-size: .875rem;
    color: #444;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

/* --- Source badge --- */
.cr-card__source {
    display: inline-block;
    padding: 2px 8px;
    background: #e8f0fe;
    color: #1a73e8;
    border-radius: 10px;
    font-size: .72rem;
    font-weight: 600;
    align-self: flex-start;
}

/* --- Empty state --- */
.cr-empty {
    color: #888;
    font-style: italic;
    margin: 0;
    padding: 16px 0;
}

/* --- Responsive --- */
@media (max-width: 480px) {
    .cr-tab { padding: 10px 14px; font-size: .9rem; }
    .cr-grid { grid-template-columns: 1fr; }
}
