.servers-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

#server-search {
    flex: 1 1 260px;
    max-width: 360px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgb(var(--colour-border-strong));
    background-color: rgb(var(--colour-surface));
    color: rgb(var(--colour-text));
    font-size: 0.95rem;
}
#server-search::placeholder {
    color: rgb(var(--colour-text-muted));
}

.servers-status {
    color: rgb(var(--colour-text-muted));
    font-size: 0.85rem;
    white-space: nowrap;
}

#featured-section {
    margin-bottom: 8px;
}

.featured-card p {
    margin-bottom: 12px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid rgb(var(--colour-border));
    border-radius: var(--radius-md);
    margin-bottom: 56px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgb(var(--colour-surface));
    font-size: 0.92rem;
}

th, td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid rgb(var(--colour-border));
    white-space: nowrap;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background-color: rgb(var(--colour-surface-hover));
}

th button {
    background: none;
    border: none;
    color: rgb(var(--colour-text-muted));
    font: inherit;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
th button:hover, th button.sorted {
    color: rgb(var(--colour-text));
}
th button.sorted::after {
    content: "\2191";
}
th button.sorted[data-dir="desc"]::after {
    content: "\2193";
}

.server-name {
    font-weight: 600;
    white-space: normal;
}
.server-description {
    color: rgb(var(--colour-text-muted));
    font-size: 0.85rem;
    white-space: normal;
    max-width: 40ch;
}

.empty-row td {
    color: rgb(var(--colour-text-muted));
    white-space: normal;
    text-align: center;
    padding: 28px 16px;
}

@media (max-width: 640px) {
    .servers-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    #server-search {
        flex: none;
        max-width: none;
    }
}
