/**
 * Elibrary Test - Taxonomy Tree & Test Cards (V0.1.5.4)
 * ---------------------------------------------------------------------
 * CSS untuk dua hal baru: simpul navigasi bercabang (<details>) dan kartu
 * tes (leaf node). SELURUH selector ter-scope .eltax-app dan memakai
 * token warna/radius yang sudah ada di elibrary-test-categories.css.
 *
 * assets/css/elibrary-test-categories.css TETAP BYTE-IDENTICAL.
 * Tidak ada selector global (details/summary/dl/dt/dd/a polos).
 */

/* =====================================================================
   SIMPUL BERCABANG
   ===================================================================== */

.eltax-app .eltax-node {
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	background: #ffffff;
	overflow: hidden;
}

.eltax-app .eltax-node + .eltax-node {
	margin-top: 10px;
}

.eltax-app .eltax-node-summary {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	cursor: pointer;
	list-style: none;
	font-weight: 700;
	color: #1e3a8a;
	transition: background 0.18s ease;
}

.eltax-app .eltax-node-summary::-webkit-details-marker {
	display: none;
}

/* Panah dibuat sendiri agar konsisten lintas browser. */
.eltax-app .eltax-node-summary::before {
	content: "▸";
	flex: 0 0 auto;
	font-size: 0.9rem;
	color: #64748b;
	transition: transform 0.18s ease;
}

.eltax-app .eltax-node[open] > .eltax-node-summary::before {
	transform: rotate(90deg);
}

.eltax-app .eltax-node-summary:hover,
.eltax-app .eltax-node-summary:focus-visible {
	background: #eff6ff;
}

.eltax-app .eltax-node-name {
	flex: 1 1 auto;
	min-width: 0;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.eltax-app .eltax-node-count {
	flex: 0 0 auto;
	font-size: 0.76rem;
	font-weight: 600;
	color: #475569;
	background: #f1f5f9;
	border-radius: 999px;
	padding: 3px 10px;
	white-space: nowrap;
}

.eltax-app .eltax-node-body {
	padding: 0 14px 14px;
}

.eltax-app .eltax-node-desc {
	margin: 0 0 12px;
	font-size: 0.85rem;
	line-height: 1.5;
	color: #64748b;
}

/* Simpul bersarang diberi garis penanda kedalaman, bukan indentasi besar
   -- supaya di layar 320px tetap tidak ada overflow horizontal. */
.eltax-app .eltax-node .eltax-node {
	border-left: 3px solid #bfdbfe;
}

/* =====================================================================
   KARTU TES
   ===================================================================== */

.eltax-app .eltax-testgrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 12px;
}

.eltax-app .eltax-testcard {
	display: flex;
	flex-direction: column;
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	padding: 16px;
	min-width: 0;
}

.eltax-app .eltax-testcard-badge {
	align-self: flex-start;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #1d4ed8;
	background: #dbeafe;
	border-radius: 999px;
	padding: 4px 10px;
	margin-bottom: 10px;
}

.eltax-app .eltax-testcard-title {
	margin: 0;
	font-size: 1.08rem;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.25;
}

.eltax-app .eltax-testcard-subtitle {
	margin: 2px 0 12px;
	font-size: 0.92rem;
	color: #475569;
	line-height: 1.4;
}

.eltax-app .eltax-testcard-meta {
	margin: 0 0 12px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.eltax-app .eltax-testcard-metarow {
	display: flex;
	gap: 8px;
	font-size: 0.83rem;
	line-height: 1.45;
	min-width: 0;
}

.eltax-app .eltax-testcard-metarow dt {
	flex: 0 0 112px;
	color: #64748b;
}

.eltax-app .eltax-testcard-metarow dd {
	flex: 1 1 auto;
	margin: 0;
	min-width: 0;
	font-weight: 600;
	color: #0f172a;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.eltax-app .eltax-testcard-crumb {
	margin: 0 0 12px;
	font-size: 0.72rem;
	line-height: 1.4;
	color: #94a3b8;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.eltax-app .eltax-testcard-cta {
	margin-top: auto;
	display: block;
	text-align: center;
	text-decoration: none;
	font-weight: 800;
	font-size: 0.88rem;
	letter-spacing: 0.04em;
	color: #ffffff;
	background: #2563eb;
	border-radius: 10px;
	padding: 12px 14px;
	min-height: 44px;
	box-sizing: border-box;
	transition: background 0.18s ease, transform 0.12s ease;
}

.eltax-app .eltax-testcard-cta:hover,
.eltax-app .eltax-testcard-cta:focus-visible {
	background: #1d4ed8;
	color: #ffffff;
}

.eltax-app .eltax-testcard-cta:active {
	transform: translateY(1px);
}

@media ( max-width: 420px ) {
	.eltax-app .eltax-testgrid {
		grid-template-columns: 1fr;
	}

	.eltax-app .eltax-testcard-metarow {
		flex-direction: column;
		gap: 0;
	}

	.eltax-app .eltax-testcard-metarow dt {
		flex: 0 0 auto;
	}
}
