/*
 * Chip tabs (components/tabs.php): chips centred in rows 16px apart, 64px over the panel.
 * The chips are "BUTTON | FILTRO" (476:22083) of components.css.
 */
.tabs__list {
	justify-content: center;
	row-gap: var(--space-3);
	margin-block-end: var(--space-7);
}

.tabs__tab[aria-disabled='true'] {
	cursor: default;
}

.tabs__panel:focus-visible {
	outline: 2px solid var(--color-focus-ring);
	outline-offset: 8px;
}

/* On a Gray 30 band the idle chips are white (837:15090, 774:44077, 806:67956). */
.tabs--on-gray .chip {
	background-color: var(--color-surface);
}

.tabs--on-gray .chip[aria-selected='true'] {
	background-color: var(--color-selected);
}

@media (max-width: 1023px) {
	.tabs__list {
		margin-block-end: var(--space-6);
	}
}

@media (max-width: 767px) {
	/* A row of chips does not fit on a phone: it scrolls sideways, edge to edge. */
	.tabs__list {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		scrollbar-width: none;
		margin-inline: calc(var(--container-gutter) * -1);
		padding-inline: var(--container-gutter);
	}
}
