/* ===========================================================================
   AniMatch - Discover page only: the ranked list of nearest profiles.
   The slip, the run button and the .discover-status line are shared chrome and
   live in css/forms.css.
   =========================================================================== */

/* --- Suggested matches --------------------------------------------------- */
.discover-results {
	margin-top: 1.5rem;
}

.discover-caveat {
	max-width: 54ch;
	margin: 0 auto 1.25rem;
	text-align: center;
	color: var(--ink-dim);
	font-size: 0.86rem;
	line-height: 1.6;
}

.discover-user-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	max-width: 44rem;
	margin: 0 auto 1.25rem;
	padding: 0.75rem 1rem;
	background: var(--paper-sunken);
	border: 1px solid var(--rule-strong);
	border-radius: var(--radius);
}

.discover-user-header .user-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid var(--rule);
	flex: none;
}

.discover-user-header .user-name {
	font-family: var(--display);
	font-weight: 700;
	/*text-transform: uppercase;*/
	/*letter-spacing: 0.1em;*/
	font-size: 1.15rem;
	color: var(--ink);
}

.discover-user-header .user-subtitle {
	font-family: var(--figure);
	font-size: 0.82rem;
	color: var(--ink-dim);
}

.discover-list {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: 44rem;
	border-top: 1px solid var(--rule);
}

.discover-row {
	display: flex;
	align-items: center;
	gap: 1.1rem;
	padding: 0.75rem 0.5rem;
	border-bottom: 1px solid var(--rule);
}

.discover-place {
	font-family: var(--figure);
	font-variant-numeric: tabular-nums;
	font-size: 0.95rem;
	color: var(--ink-dim);
	width: 2.5ch;
	text-align: right;
	flex: none;
}

.discover-badge-wrapper {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
}

.discover-badge {
	width: 32px;
	height: 32px;
	object-fit: contain;
	flex: none;
}

.discover-badge-question {
	position: absolute;
	top: -4px;
	right: -4px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--paper-sunken);
	border: 1px solid var(--action);
	color: var(--action);
	font-family: var(--figure);
	font-size: 0.65rem;
	font-weight: 800;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	user-select: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
	cursor: help;
}

.discover-avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	object-fit: cover;
	flex: none;
	background-color: var(--paper-raised);
	border: 1px solid var(--rule);
}

.discover-avatar-placeholder {
	display: inline-block;
}

.discover-name {
	flex: 1 1 auto;
	font-family: var(--display);
	font-weight: 600;
	/*text-transform: uppercase;*/
	/*letter-spacing: 0.1em;*/
	font-size: 1.1rem;
	color: var(--ink);
	text-decoration: none;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.discover-name:hover { color: var(--action); }

.discover-percent {
	font-family: var(--figure);
	font-variant-numeric: tabular-nums;
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--ink-dim);
	flex: none;
}

/* A score this browser has calculated exactly, rather than the index's estimate. */
.discover-row.is-confirmed .discover-percent { color: var(--ink); }

/* --- The search slip -----------------------------------------------------
   One field, not two. The home page's .slip-fields is a two-column grid, which
   would park a lone input in the left half of the row and leave it looking
   abandoned, so this page narrows the slip and collapses it to one column.
   ----------------------------------------------------------------------- */
.discover-slip {
	max-width: 26rem;
}

.discover-slip .slip-fields {
	grid-template-columns: 1fr;
}

/* Half the size of the home page's Matchmake button, and centred under the
   field: here it is one action among several on the page rather than the only
   thing on it. */
.discover-slip .run-button {
	display: block;
	width: 100%;
	max-width: 16rem;
	margin: 1.75rem auto 0;
	font-size: clamp(0.95rem, 1.6vw, 1.2rem);
	padding: 0.5rem 1rem;
}
