/* ── Sort dropdown ─────────────────────────────────────────────────────────── */

.profile-archive-table__sort {
	margin-bottom: var(--wp--preset--spacing--50);
	display: flex;
	justify-content: flex-end;
}

.profile-archive-table__sort .facetwp-type-sort {
	position: relative;
	display: inline-block;
}

.profile-archive-table__sort .facetwp-type-sort::after {
	content: "";
	position: absolute;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid var(--wp--preset--color--purso-turkoosi);
	pointer-events: none;
}

.profile-archive-table__sort select {
	appearance: none;
	border: 1px solid var(--wp--preset--color--purso-turkoosi);
	border-radius: var(--wp--custom--radius--full);
	padding: 0.6em 2.5em 0.6em 1.25em;
	font-family: var(--wp--preset--font-family--roboto);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 300;
	background: var(--wp--preset--color--white);
	cursor: pointer;
	transition: border-color 0.15s ease;
}

.profile-archive-table__sort select:focus {
	border-color: var(--wp--preset--color--xdark-teal);
	outline: none;
}

/* ── Table ─────────────────────────────────────────────────────────────────── */

.profile-archive-table__wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.profile-archive-table__table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--wp--preset--font-family--roboto);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 300;
}

.profile-archive-table__th {
	text-align: left;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	font-family: var(--wp--preset--font-family--titillium-web);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--medium);
	text-transform: none;
	letter-spacing: 0;
	color: var(--wp--preset--color--black);
	white-space: nowrap;
	border-bottom: 2px solid var(--wp--preset--color--purso-turkoosi);
}

.profile-archive-table__td {
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	border-bottom: 1px solid var(--wp--preset--color--grey-light);
}

.profile-archive-table__row:hover {
	background-color: var(--wp--preset--color--grey-light);
}

.profile-archive-table__td a {
	color: var(--wp--preset--color--purso-turkoosi);
	text-decoration: none;
	font-weight: 400;
	transition: color 0.15s ease;
}

.profile-archive-table__td a:hover {
	color: var(--wp--preset--color--xdark-teal);
	text-decoration: none;
}

/* ── Load more ─────────────────────────────────────────────────────────────── */

.profile-archive-table .facetwp-load-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: var(--wp--preset--spacing--50);
	padding: 12px 28px;
	background: var(--wp--preset--color--purso-turkoosi);
	color: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--purso-turkoosi);
	border-radius: var(--wp--custom--radius--full);
	font-family: var(--wp--preset--font-family--roboto);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 300;
	letter-spacing: 0.02em;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.profile-archive-table .facetwp-load-more:hover {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--purso-turkoosi);
}
