/**
 * Category folders — flat layered open folder (brand colors).
 */

.joc-blockora-morph-app .bm-cat-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.35rem 0.15rem;
	margin-bottom: 0.25rem;
	padding: 0;
}

@media (min-width: 640px) {
	.joc-blockora-morph-app .bm-cat-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.4rem 0.2rem;
	}
}

@media (min-width: 1024px) {
	.joc-blockora-morph-app .bm-cat-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 0.45rem 0.25rem;
	}
}

.joc-blockora-morph-app .bm-folder {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.45rem;
	padding: 0.15rem 0.1rem 0.2rem;
	border: 0;
	background: transparent;
	appearance: none;
	font: inherit;
	color: var(--bm-color-on-surface, #171c22);
	cursor: pointer;
	text-align: center;
	border-radius: 0.5rem;
	transition: transform 0.18s ease;
}

.joc-blockora-morph-app .bm-folder:hover {
	transform: translateY(-2px);
}

.joc-blockora-morph-app .bm-folder:focus-visible {
	outline: 2px solid var(--bm-color-primary, #3525cd);
	outline-offset: 3px;
}

.joc-blockora-morph-app .bm-folder__graphic {
	position: relative;
	display: block;
	width: 11.4rem;
	height: 8.82rem;
}

@media (min-width: 640px) {
	.joc-blockora-morph-app .bm-folder__graphic {
		width: 12.3rem;
		height: 9.48rem;
	}
}

/* Darker back + tab (interior strip when open) */
.joc-blockora-morph-app .bm-folder__back {
	position: absolute;
	inset: 0;
	border-radius: 0 1rem 1rem 1rem;
	background: color-mix(
		in srgb,
		var(--bm-color-primary, #3525cd) 72%,
		#1a1470
	);
}

.joc-blockora-morph-app .bm-folder__tab {
	position: absolute;
	left: 0;
	top: 0;
	width: 42%;
	height: 1.55rem;
	border-radius: 0.85rem 0 0 0;
	background: inherit;
	clip-path: polygon(0 0, 78% 0, 100% 100%, 0 100%);
	transform: translateY(-1.15rem);
}

/* Lighter front panel — shorter so back shows as open mouth */
.joc-blockora-morph-app .bm-folder__body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	top: 1.55rem;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 1rem;
	background: color-mix(
		in srgb,
		var(--bm-color-primary, #3525cd) 58%,
		#8b7dff
	);
	overflow: hidden;
	transition: background 0.18s ease;
}

.joc-blockora-morph-app .bm-folder:hover .bm-folder__body {
	background: color-mix(
		in srgb,
		var(--bm-color-primary, #3525cd) 48%,
		#a99bff
	);
}

.joc-blockora-morph-app .bm-folder__icon {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4.25rem;
	height: 4.25rem;
	border-radius: 1rem;
	background: color-mix(in srgb, #fff 88%, transparent);
	color: var(--bm-color-primary, #3525cd);
	box-shadow: none;
	transition: transform 0.18s ease;
}

.joc-blockora-morph-app .bm-folder:hover .bm-folder__icon {
	transform: scale(1.04);
}

.joc-blockora-morph-app .bm-folder__icon .dashicons {
	font-size: 32px;
	width: 32px;
	height: 32px;
	line-height: 1;
}

.joc-blockora-morph-app .bm-folder__sticker {
	position: absolute;
	z-index: 2;
	top: 0.55rem;
	right: 0.55rem;
	min-width: 1.45rem;
	height: 1.45rem;
	padding: 0 0.35rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1;
	color: var(--bm-color-primary, #3525cd);
	background: #fff;
}

.joc-blockora-morph-app .bm-folder__label {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.1rem;
	max-width: 12.5rem;
}

.joc-blockora-morph-app .bm-folder__title {
	display: block;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.25;
	color: var(--bm-color-on-surface, #171c22);
	word-break: break-word;
}

.joc-blockora-morph-app .bm-folder:hover .bm-folder__title {
	color: var(--bm-color-primary, #3525cd);
}

.joc-blockora-morph-app .bm-folder__meta {
	display: block;
	font-size: 0.8rem;
	line-height: 1.35;
	color: var(--bm-color-on-surface-variant, #414750);
}

/* Open category banner — same folder language, larger and horizontal */
.joc-blockora-morph-app .bm-cat-open {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.85rem;
}

.joc-blockora-morph-app .bm-cat-open__back {
	align-self: flex-start;
}

.joc-blockora-morph-app .bm-cat-open__panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	padding: 1.15rem 1.15rem 1.25rem;
	border-radius: 1.15rem;
	background: color-mix(
		in srgb,
		var(--bm-color-primary, #3525cd) 7%,
		var(--bm-color-surface-lowest, #fff)
	);
	border: 1px solid
		color-mix(in srgb, var(--bm-color-primary, #3525cd) 14%, transparent);
	text-align: center;
}

@media (min-width: 640px) {
	.joc-blockora-morph-app .bm-cat-open__panel {
		flex-direction: row;
		align-items: center;
		gap: 1.35rem;
		padding: 1.25rem 1.5rem;
		text-align: left;
	}
}

.joc-blockora-morph-app .bm-folder--open {
	pointer-events: none;
	flex-shrink: 0;
	padding: 0;
	transform: none;
}

.joc-blockora-morph-app .bm-folder--open .bm-folder__graphic {
	width: 5.25rem;
	height: 4.05rem;
}

@media (min-width: 640px) {
	.joc-blockora-morph-app .bm-folder--open .bm-folder__graphic {
		width: 6.75rem;
		height: 5.2rem;
	}
}

.joc-blockora-morph-app .bm-folder--open .bm-folder__icon {
	width: 2.375rem;
	height: 2.375rem;
	border-radius: 0.575rem;
}

@media (min-width: 640px) {
	.joc-blockora-morph-app .bm-folder--open .bm-folder__icon {
		width: 2.75rem;
		height: 2.75rem;
	}
}

.joc-blockora-morph-app .bm-folder--open .bm-folder__icon .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

@media (min-width: 640px) {
	.joc-blockora-morph-app .bm-folder--open .bm-folder__icon .dashicons {
		font-size: 21px;
		width: 21px;
		height: 21px;
	}
}

.joc-blockora-morph-app .bm-folder--open .bm-folder__body {
	top: 0.775rem;
	border-radius: 0.5rem;
}

.joc-blockora-morph-app .bm-folder--open .bm-folder__back {
	border-radius: 0 0.5rem 0.5rem 0.5rem;
}

.joc-blockora-morph-app .bm-folder--open .bm-folder__tab {
	height: 0.775rem;
	border-radius: 0.425rem 0 0 0;
	transform: translateY(-0.575rem);
}

.joc-blockora-morph-app .bm-folder--open .bm-folder__sticker {
	top: 0.28rem;
	right: 0.28rem;
	min-width: 1rem;
	height: 1rem;
	padding: 0 0.2rem;
	font-size: 0.58rem;
}

.joc-blockora-morph-app .bm-cat-open__copy {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.joc-blockora-morph-app .bm-cat-open__eyebrow {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bm-color-primary, #3525cd);
}

.joc-blockora-morph-app .bm-cat-open__title {
	margin: 0;
	font-size: clamp(1.65rem, 2.4vw, 2.15rem);
	font-weight: 750;
	letter-spacing: -0.03em;
	line-height: 1.15;
	color: var(--bm-color-on-surface, #171c22);
}

.joc-blockora-morph-app .bm-cat-open__meta {
	margin: 0.15rem 0 0;
	font-size: 0.95rem;
	line-height: 1.4;
	font-weight: 600;
	color: var(--bm-color-on-surface-variant, #414750);
}

.joc-blockora-morph-app .bm-cat-open__hint {
	margin: 0.35rem 0 0;
	max-width: 36rem;
	font-size: 0.9rem;
	line-height: 1.45;
	color: var(--bm-color-on-surface-variant, #414750);
}
