.participants-page > h2:first-child {
    margin-top: 0;
}

.participants-updated,
.participants-note,
#participant-result-count {
    color: var(--muted-color);
    font-size: 0.9rem;
}

.participants-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 1.75rem 0 1rem;
}

.participants-summary > div {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 0.25rem;
    padding: 1.15rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--soft-surface);
}

.participants-summary dt {
    color: var(--muted-color);
    font-size: 0.82rem;
    line-height: 1.4;
}

.participants-summary dd {
    color: var(--accent-text);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
}

.participants-filters:not([hidden]) {
    display: grid;
    grid-template-columns: minmax(12rem, 2fr) minmax(9rem, 1fr) minmax(8rem, 1fr) auto;
    align-items: end;
    gap: 0.85rem;
    margin: 1.75rem 0 1rem;
}

.participants-filters label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--heading-color);
    font-size: 0.82rem;
    font-weight: 600;
}

.participants-filters input,
.participants-filters select,
.participants-filters button {
    width: 100%;
    min-height: 2.8rem;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    background: var(--surface);
    font: inherit;
    font-size: 0.85rem;
}

.participants-filters input:focus-visible,
.participants-filters select:focus-visible,
.participants-filters button:focus-visible,
.participants-table-wrapper:focus-visible {
    outline: 3px solid var(--orange-400);
    outline-offset: 3px;
}

.participants-filters button {
    cursor: pointer;
    color: var(--accent-text);
    background: var(--soft-surface);
    font-weight: 600;
}

.participants-table-wrapper {
    max-width: 100%;
    overflow-x: auto;
    margin-top: 0.6rem;
}

#participants-table {
    display: table;
    width: 100%;
    min-width: 54rem;
    margin-top: 0;
    table-layout: fixed;
    white-space: normal;
}

.participant-name-column {
    width: 22%;
}

.participant-category-column {
    width: 18%;
}

.participant-country-column {
    width: 12%;
}

.participant-title-column {
    width: 48%;
}

.participant-title {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.6;
}

#participants-table caption {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.participant-name {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.participant-category {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    color: var(--accent-text);
    background: var(--soft-surface-strong);
    font-size: 0.78rem;
    white-space: nowrap;
}

.participant-empty:not([hidden]) {
    padding: 1rem;
    border: 1px dashed var(--orange-300);
    border-radius: var(--radius-sm);
    background: var(--soft-surface);
}

@media (max-width: 850px) {
    .participants-filters:not([hidden]) {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .participants-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .participants-filters .participant-search {
        grid-column: 1 / -1;
    }

    .participants-filters button {
        grid-column: 1 / -1;
    }

    #participants-table th,
    #participants-table td {
        padding: 0.75rem;
    }
}
