/* ── Contributors page ── */
.contributors-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 0 8rem;
}

/* Role filter */
.role-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.role-btn {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.15);
    background: transparent;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    color: inherit;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    font-family: inherit;
}
.role-btn:hover { border-color: #0a8f37; color: #0a8f37; }
.role-btn.active { background: #0a8f37; color: #fff; border-color: #0a8f37; }
html.dark .role-btn { border-color: rgba(255,255,255,0.15); }
html.dark .role-btn:hover { border-color: #0a8f37; color: #0a8f37; }

/* Grid */
.contributors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* Card */
.contributor-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.07);
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}
.contributor-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
html.dark .contributor-card {
    background: #242424;
    border-color: rgba(255,255,255,0.07);
}
html.dark .contributor-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* Portrait */
.contributor-portrait {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #e8e8e8;
}
html.dark .contributor-portrait { background: #333; }
.contributor-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.contributor-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #aaa;
    background: repeating-linear-gradient(
            45deg,
            #ddd,
            #ddd 10px,
            #e8e8e8 10px,
            #e8e8e8 20px
    );
}
html.dark .contributor-placeholder {
    background: repeating-linear-gradient(
            45deg,
            #2a2a2a,
            #2a2a2a 10px,
            #333 10px,
            #333 20px
    );
    color: #555;
}

/* Name */
.contributor-name {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}
.contributor-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: #888;
    margin-bottom: 0.1rem;
}
html.dark .contributor-title { color: #aaa; }

.contributors-page ul {
    list-style: disc;
    margin: 0.5rem 0 1rem 1.5rem;
}
.contributors-page li {
    border-bottom: none !important;
    padding: 0 !important;
    margin-bottom: 0.2rem;
}

/* Responsive */
@media (max-width: 900px) {
    .contributors-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .contributors-grid { grid-template-columns: repeat(2, 1fr); }
}