/* Hiring page — project accordions with role cards */

.hiring-intro {
    margin-bottom: 32px;
}

.hiring-intro h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.hiring-intro p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Project accordion */

.project-accordion {
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-secondary);
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

.project-header:hover {
    background: var(--border);
}

.project-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
}

.project-header .project-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg);
    padding: 2px 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.project-header .accordion-arrow {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform 0.2s;
    margin-left: 12px;
}

.project-accordion.open .accordion-arrow {
    transform: rotate(180deg);
}

.project-roles {
    display: none;
    padding: 0;
}

.project-accordion.open .project-roles {
    display: block;
}

/* Role cards inside accordion */

.role-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    transition: background 0.1s;
}

.role-card:hover {
    background: var(--bg-secondary);
}

.role-info {
    flex: 1;
}

.role-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.role-info h4 a {
    color: var(--text);
}

.role-info h4 a:hover {
    color: var(--link);
}

.role-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.role-meta .department {
    background: var(--accent-light);
    color: var(--accent);
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.role-meta .location {
    display: flex;
    align-items: center;
    gap: 4px;
}

.role-status {
    flex-shrink: 0;
    margin-left: 16px;
    align-self: center;
}

.status-badge {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 12px;
}

.status-badge.open {
    background: var(--success-light);
    color: var(--success);
}

.status-badge.closed {
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.status-badge.filled {
    background: var(--bg-secondary);
    color: var(--text-muted);
}

/* Empty state */

.no-positions {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-positions h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

@media (max-width: 600px) {
    .role-card {
        flex-direction: column;
        gap: 8px;
    }

    .role-status {
        margin-left: 0;
    }
}
