/* ==========================================================================
   MDM Taxonomy Archive Pages — Therapeutic Classes, Drug Categories, Dosage Forms
   ========================================================================== */

/* ── Archive Header ── */
.mdm-tax-archive-header {
	display: flex;
	align-items: center;
	gap: 24px;
	color: #fff;
	border-radius: 16px;
	padding: 36px 32px;
	margin-bottom: 28px;
}

.mdm-tax-archive-icon {
	font-size: 52px;
	line-height: 1;
	flex-shrink: 0;
	filter: drop-shadow( 0 2px 8px rgba(0,0,0,.2) );
}

.mdm-tax-archive-type {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	opacity: .75;
	margin-bottom: 6px;
}

.mdm-tax-archive-title {
	font-size: 30px;
	font-weight: 800;
	color: #fff;
	margin: 0 0 8px;
}

.mdm-tax-archive-desc {
	font-size: 14px;
	opacity: .85;
	margin: 0 0 10px;
	max-width: 600px;
	color: #fff;
}

.mdm-tax-archive-count {
	font-size: 14px;
	color: rgba(255,255,255,.8);
	margin: 0;
}

/* ── Taxonomy meta boxes on detail page ── */
.mdm-meta-tax-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #2563eb;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
}

.mdm-meta-tax-link:hover {
	text-decoration: underline;
	color: #1d4ed8;
}

/* ── Taxonomy badge in detail header ── */
.mdm-tax-header-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: rgba(255,255,255,.18);
	color: #fff;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid rgba(255,255,255,.2);
	transition: background .15s;
}

.mdm-tax-header-badge:hover {
	background: rgba(255,255,255,.3);
	color: #fff;
	text-decoration: none;
}

/* ── Medicine card taxonomy badges ── */
.mdm-card-tax-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 6px;
}

.mdm-badge-tc { background: #dcfce7; color: #166534; }
.mdm-badge-dc { background: #ede9fe; color: #5b21b6; }
.mdm-badge-df { background: #dbeafe; color: #1e40af; }

/* ── Filter sidebar taxonomy sections ── */
.mdm-filter-section .mdm-tax-filter-list {
	max-height: 180px;
	overflow-y: auto;
}

/* ── Responsive ── */
@media (max-width: 640px) {
	.mdm-tax-archive-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
		padding: 24px 18px;
	}

	.mdm-tax-archive-icon {
		font-size: 36px;
	}

	.mdm-tax-archive-title {
		font-size: 22px;
	}
}
