/**
 * CLE Course Detail panel — single LearnDash course page.
 * Injected by the theme's learndash/course.php override. Scoped under .cle-detail.
 */

.cle-detail {
	margin: 2rem 0;
}

.cle-detail__layout {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	align-items: flex-start;
}

.cle-detail__main {
	flex: 1 1 60%;
	min-width: 0;
}

.cle-detail__rail {
	flex: 1 1 280px;
	max-width: 360px;
}

/* Tabs ------------------------------------------------------------------- */
.cle-detail__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	border-bottom: 2px solid #e2e4e7;
	margin-bottom: 1.25rem;
}

.cle-detail__tab {
	appearance: none;
	background: none;
	border: 0;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	padding: 0.65rem 1rem;
	font: inherit;
	font-weight: 600;
	color: #555d66;
	cursor: pointer;
}

.cle-detail__tab:hover,
.cle-detail__tab:focus {
	color: #1a1a1a;
}

.cle-detail__tab.is-active {
	color: #1a1a1a;
	border-bottom-color: #2271b1;
}

.cle-detail__panel {
	line-height: 1.6;
}

.cle-detail__empty {
	color: #6c7781;
	font-style: italic;
}

/* Credits table ---------------------------------------------------------- */
.cle-detail__credit-total {
	font-size: 1.15rem;
	font-weight: 700;
	margin: 0 0 1rem;
}

.cle-detail__credits {
	width: 100%;
	border-collapse: collapse;
}

.cle-detail__credits th,
.cle-detail__credits td {
	text-align: left;
	padding: 0.6rem 0.75rem;
	border-bottom: 1px solid #e2e4e7;
}

.cle-detail__credits th {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #6c7781;
}

.cle-detail__credits td:last-child,
.cle-detail__credits th:last-child {
	text-align: right;
	width: 6rem;
}

/* Faculty ---------------------------------------------------------------- */
.cle-detail__faculty {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cle-detail__faculty-item {
	padding: 0.75rem 0;
	border-bottom: 1px solid #e2e4e7;
}

.cle-detail__faculty-item:last-child {
	border-bottom: 0;
}

.cle-detail__faculty-name {
	display: block;
	font-weight: 700;
}

.cle-detail__faculty-role {
	display: block;
	color: #6c7781;
	font-size: 0.9rem;
}

.cle-detail__faculty-bio {
	margin: 0.4rem 0 0;
}

/* Right rail ------------------------------------------------------------- */
.cle-detail__card {
	background: #f6f7f7;
	border: 1px solid #e2e4e7;
	border-radius: 6px;
	padding: 1.25rem;
	margin-bottom: 1rem;
}

.cle-detail__card-title {
	margin: 0 0 0.75rem;
	font-size: 1rem;
}

.cle-detail__meta {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin: 0.4rem 0;
}

.cle-detail__label {
	color: #6c7781;
}

.cle-detail__value {
	font-weight: 600;
	text-align: right;
}

.cle-detail__status {
	margin: 0.75rem 0;
}

.cle-status-badge {
	display: inline-block;
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	background: #e7e9eb;
	color: #1a1a1a;
}

.cle-status-badge.cle-status--active {
	background: #d6f0dd;
	color: #15692a;
}

.cle-status-badge.cle-status--inactive {
	background: #f4d6d6;
	color: #8a1f1f;
}

.cle-status-badge.cle-status--unverified {
	background: #fcf0d6;
	color: #8a6516;
}

.cle-detail__eligibility {
	margin: 0.75rem 0 0;
	padding-top: 0.75rem;
	border-top: 1px solid #e2e4e7;
	font-weight: 600;
}

.cle-detail__notice p {
	margin: 0;
	font-size: 0.85rem;
	color: #6c7781;
}

@media ( max-width: 782px ) {
	.cle-detail__rail {
		max-width: none;
		flex-basis: 100%;
	}
}
