// Fylgja (https://fylgja.dev)
// Licensed under MIT Open Source

:where(.divide-y, .divide-x) {
	--gap: 0;
	--flow: var(--gap);
	--divide: 1px;

	> :where(:not(:first-child)) {
		border-color: inherit;
		border-style: inherit;
	}
}

.divide-y > :where(:not(:first-child)) {
	border-block-start-width: var(--divide);
	padding-block: var(--flow) 0;
}

.divide-x > :where(:not(:first-child)) {
	border-inline-start-width: var(--divide);
	padding-inline: var(--flow) 0;
}
