/*
 * Panel tabs (0.102.0, Ui::tab_panels(); CONTRACT §8.14): compiled on its own (assets/tab-panels.css) and loaded with
 * assets/tab-panels.js by the builder that prints them or by the schema form, so the common path pays nothing. The
 * strip is the page tabs' recipe (kit/tabs.css: its links are buttons here, which the recipe already resets); this
 * sheet adds the marker after a tab's label and the panel's focus.
 */

@reference "./chrome.css";

.rooster-admin-tabpanels > .rooster-admin-tabs.is-panels {
	@apply mb-4;
}

.rooster-admin-tabpanels.is-sub > .rooster-admin-tabs.is-panels {
	@apply mt-0 mb-3;
}

/* The marker: a dot in its tone after the label; its words are for a screen reader. */
.rooster-admin-tabs__marker {
	@apply inline-block size-2 shrink-0 rounded-full;
	background: var(--ra-mono);
}

.rooster-admin-tabs__marker.is-destructive {
	background: var(--ra-destructive);
}

.rooster-admin-tabs__marker.is-warning {
	background: var(--ra-warning);
}

.rooster-admin-tabs__marker.is-success {
	background: var(--ra-success);
}

.rooster-admin-tabs__marker.is-info,
.rooster-admin-tabs__marker.is-primary {
	background: var(--ra-primary);
}

.rooster-admin-tabpanels__panel {
	@apply rounded-sm;

	@variant focus-visible {
		@apply ra-ring;
	}
}

.rooster-admin-tabpanels__panel[hidden] {
	display: none;
}
