/* Painel Refinar nas páginas de termo. */

.tnc-facets {
	font-size: 0.92rem;
}

.tnc-facets__title {
	font-size: 1rem;
	margin: 0 0 0.75rem;
}

.tnc-facets__ancestors ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	list-style: none;
	margin: 0 0 0.9rem;
	padding: 0;
}

.tnc-facets__ancestors li + li::before {
	color: rgba(0, 0, 0, 0.4);
	content: "›";
	margin-right: 0.3rem;
}

.tnc-facets__note,
.tnc-facets__empty,
.tnc-facets__loading,
.tnc-facets__failed {
	color: rgba(0, 0, 0, 0.6);
	font-size: 0.85rem;
}

.tnc-facets__facet {
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	padding: 0.75rem 0;
}

.tnc-facets__facet-title {
	font-size: 0.8rem;
	letter-spacing: 0.03em;
	margin: 0 0 0.4rem;
	text-transform: uppercase;
}

.tnc-facets__facet-title button {
	background: transparent;
	border: 0;
	color: rgba(0, 0, 0, 0.6);
	cursor: pointer;
	font: inherit;
	letter-spacing: inherit;
	padding: 0;
	text-align: left;
	text-transform: inherit;
	width: 100%;
}

.tnc-facets__facet-title button::after {
	content: "−";
	float: right;
}

.tnc-facets__facet-title button[aria-expanded="false"]::after {
	content: "+";
}

.tnc-facets__facet-title button:focus-visible {
	outline: 2px solid var(--tnc-accent, #187181);
	outline-offset: 2px;
}

.tnc-facets__values {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tnc-facets__value a,
.tnc-facets__value span {
	display: flex;
	gap: 0.5rem;
	justify-content: space-between;
	padding: 0.2rem 0;
	text-decoration: none;
}

.tnc-facets__value a:hover {
	text-decoration: underline;
}

.tnc-facets__count {
	color: rgba(0, 0, 0, 0.5);
	flex-shrink: 0;
	font-size: 0.8rem;
	font-variant-numeric: tabular-nums;
}

.tnc-facets__more {
	background: transparent;
	border: 0;
	color: var(--tnc-accent, #187181);
	cursor: pointer;
	font-size: 0.85rem;
	padding: 0.3rem 0;
	text-decoration: underline;
}

/* Sem facetas nem contexto de coleção, a coluna da esquerda não existe. */
.tnc-term--no-filters .tnc-facets-column {
	display: none;
}
