/* Accepted-names reference page. Loaded alongside style.css (for the shared
   --font-mono token and .lede) — just table/filter bits here. */

.names-page {
	padding-top: 1rem;
	padding-bottom: 3rem;
}

.names-filter {
	display: block;
	width: 100%;
	font-family: inherit;
	font-size: 1rem;
	padding: 0.7rem 0.9rem;
	margin-bottom: 1.25rem;
	color: var(--black);
	background: var(--white);
	border: 2px solid var(--gray-light);
	border-radius: 3px;
}

.names-filter:focus {
	outline: none;
	border-color: var(--accent-dark);
}

.names-filter:focus-visible {
	outline: 3px solid var(--accent-dark);
	outline-offset: 1px;
}

.names-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.names-table th {
	text-align: left;
	font-size: 0.7rem;
	color: var(--gray);
	padding: 0 0.6rem 0.5rem;
	border-bottom: 1px solid var(--gray-light);
}

.names-table td {
	padding: 0.5rem 0.6rem;
	border-bottom: 1px solid var(--accent-light);
	vertical-align: top;
}

.names-table tbody tr {
	cursor: pointer;
}

.names-table tbody tr:hover td {
	background: var(--accent-light);
}

.names-image-row td {
	padding: 0 0.6rem;
	text-align: center;
	cursor: default;
}

.names-table tbody tr.names-image-row:hover td {
	background: none;
}

/* Animates open/close via height + opacity (a <tr>'s own height doesn't
   animate reliably, so this inner wrapper does the work instead). All of
   the image row's vertical spacing lives in here too — via .names-inline
   -card-wrap's margin below — so a collapsed row is truly 0px tall
   instead of leaving a residual gap from padding elsewhere. */
.names-inline-collapse {
	height: 0;
	opacity: 0;
	overflow: hidden;
	transition: height 0.28s ease, opacity 0.28s ease;
}

.names-inline-collapse.open {
	opacity: 1;
}

/* .card (and .silhouette-img) is the same class the game itself uses —
   this makes the inline expansion here match the game's own card styling
   (just without the crop-mark corners the game version has). */
.names-inline-card-wrap {
	width: 100%;
	max-width: 640px;
	margin: 0.75rem auto;
}

/* .flashy-text lives in global.css (shared site-wide). */

.names-code {
	font-family: var(--font-mono);
	color: var(--accent-dark);
	white-space: nowrap;
	width: 3.5rem;
}

.names-primary {
	white-space: nowrap;
}

.names-answers {
	color: var(--gray-dark);
}

.names-empty {
	text-align: center;
	color: var(--gray);
}

.names-back {
	display: block;
	margin-top: 2rem;
	text-align: center;
}

@media (max-width: 480px) {
	.names-table { font-size: 0.8rem; }
	.names-primary { white-space: normal; }
}
