.committee-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.committee-header .section-title {
    margin-bottom: 0;
}

.committee-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.committee-intro {
    margin-top: 14px;
    font-size: 1rem;
    line-height: 1.8;
    color: #d0d0d0;
}

/* Contact panel */

.committee-contact-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0 28px;
    padding: 22px 26px;
    border-radius: 14px;
    border: 1px solid rgba(212, 160, 23, 0.35);
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.14), rgba(212, 160, 23, 0.08));
}

.committee-contact-text {
    flex: 1;
    min-width: 220px;
}

.committee-contact-title {
    font-size: 1.15rem;
    color: #d4a017;
    margin-bottom: 6px;
}

.committee-contact-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e0d6c8;
}

.committee-contact-button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    background: linear-gradient(90deg, #c41e3a, #d4a017);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.committee-contact-button:hover,
.committee-contact-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196, 30, 58, 0.35);
}

/* Grid and cards */

.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

.committee-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 30px 22px 22px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.committee-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c41e3a, #d4a017);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.committee-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(196, 30, 58, 0.25);
    border-color: rgba(196, 30, 58, 0.5);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
}

.committee-card:hover::before {
    opacity: 1;
}

.committee-card-editing,
.committee-card-editing:hover {
    transform: none;
    text-align: left;
    align-items: stretch;
}

.committee-avatar {
    width: 120px;
    height: 120px;
    margin-bottom: 18px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #c41e3a, #d4a017);
    flex-shrink: 0;
}

.committee-photo,
.committee-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
}

.committee-photo {
    object-fit: cover;
    background: #1a1a1a;
}

.committee-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1f1f24;
    color: #e0d6c8;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.committee-initials-vacant {
    color: #707070;
}

.committee-role {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #c41e3a;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.committee-name {
    font-size: 1.3rem;
    margin-bottom: 14px;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.committee-name-vacant {
    color: #808080;
    font-style: italic;
    font-weight: 400;
}

.committee-card-contact {
    margin-top: auto;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    font-weight: 600;
    color: #d4a017;
    text-decoration: none;
}

.committee-card-contact:hover,
.committee-card-contact:focus-visible {
    color: #f0c040;
    text-decoration: underline;
}

.committee-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #a0a0a0;
    font-style: italic;
    padding: 40px 0;
}

/* Admin controls */

.committee-button,
.committee-button-secondary,
.committee-button-danger {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.committee-button {
    border: none;
    background: linear-gradient(90deg, #c41e3a, #d4a017);
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.committee-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.committee-button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #e0d6c8;
}

.committee-button-danger {
    background: rgba(196, 30, 58, 0.15);
    border: 1px solid rgba(196, 30, 58, 0.5);
    color: #ff8a8a;
    margin-left: auto;
}

.committee-edit-button {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #e0d6c8;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.committee-message {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.committee-message-error {
    background: rgba(196, 30, 58, 0.15);
    border: 1px solid rgba(196, 30, 58, 0.5);
    color: #ffb3c0;
}

.committee-message-success {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.5);
    color: #b5e8bd;
}

.committee-reorder-toolbar[hidden] {
    display: none;
}

.committee-reorder-toolbar,
.committee-wizard {
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid rgba(212, 160, 23, 0.3);
    background: rgba(0, 0, 0, 0.2);
}

.committee-reorder-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.committee-reorder-hint {
    font-size: 0.9rem;
    color: #e0d6c8;
}

.committee-reorder-toolbar-actions {
    display: flex;
    gap: 10px;
}

.committee-reorder-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.committee-move-button {
    flex: 1;
    max-width: 90px;
    padding: 6px 0;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #e0d6c8;
    font-size: 0.9rem;
    cursor: pointer;
}

.committee-move-button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.committee-wizard-title {
    font-size: 1rem;
    color: #d4a017;
    margin-bottom: 12px;
}

.committee-wizard label,
.committee-edit-form label {
    display: block;
    font-size: 0.85rem;
    color: #e0d6c8;
    margin-bottom: 6px;
}

.committee-label-note {
    color: #a0a0a0;
    font-weight: 400;
}

.committee-spaced-label {
    margin-top: 12px;
}

.committee-input {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.committee-input:focus {
    outline: none;
    border-color: #c41e3a;
}

.committee-form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.committee-form-row > div {
    flex: 1;
    min-width: 160px;
}

.committee-hint {
    font-size: 0.8rem;
    color: #a0a0a0;
    margin: 8px 0 0;
}

.committee-hint code {
    color: #d4a017;
}

.committee-wizard-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.committee-edit-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.committee-edit-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

@media (max-width: 480px) {
    .committee-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .committee-card {
        padding: 24px 18px 18px;
    }

    .committee-avatar {
        width: 100px;
        height: 100px;
    }

    .committee-name {
        font-size: 1.15rem;
    }

    .committee-contact-panel {
        padding: 18px;
    }

    .committee-contact-button {
        width: 100%;
        text-align: center;
    }
}
