/* ── Collapsible section inside a card (a guide, a cheat-sheet): native details ───────────────────── */
.rooster-admin-fold {
	@apply mb-3 rounded-lg border border-border px-3.5;

	@variant details-content {
		@apply text-sm leading-relaxed text-foreground;
	}
}

.rooster-admin-fold[open] {
	@apply pb-3;
}

.rooster-admin-fold__summary {
	@apply flex cursor-pointer items-center gap-2 py-2.5 text-sm font-semibold text-foreground;
	list-style: none;
}

.rooster-admin-fold__summary::-webkit-details-marker {
	display: none;
}

.rooster-admin-fold__summary > .rooster-admin-icon--chevron {
	@apply ms-auto text-muted-foreground transition-transform;
}

.rooster-admin-fold[open] > .rooster-admin-fold__summary > .rooster-admin-icon--chevron {
	transform: rotate(90deg);
}

/* A code block in a card (the theme-integration cheat-sheet, the LRS's JSON well): a quiet surface in both schemes,
   the muted fill, the foreground's text and a hairline border (0.98.0, the orchestrator's ruling: never a dark block in
   the light scheme nor a white one in the dark). One that scrolls takes the keyboard's focus (chrome.js). */
.rooster-admin-code {
	border: 1px solid var(--ra-border);

	@apply m-0 overflow-x-auto rounded-md bg-muted p-3 text-xs/relaxed text-foreground tab-2 scrollbar-thin;
}

/* A preview of the storefront in the admin (0.98.0, CONTRACT section 8.13): it shows what the shop really looks like, so
   it keeps the shop's palette in either scheme of the chrome, light by default, the dark one with .is-dark; the
   chrome's dark rule for core's links stays out of it. The product's own markup inside draws the shop, its frame (a
   border, a radius) the product's. */
.rooster-admin-storefront {
	color-scheme: light;

	@apply bg-background text-foreground;
}

.rooster-admin-storefront.is-dark {
	color-scheme: dark;
}
