/* DW Course Sessions – "Read full bio" toggle (see clamp.js). */
.dw-clamp__body {
	position: relative;
	max-height: 9.6em;
	overflow: hidden;
}

.dw-clamp__body::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 3em;
	background: linear-gradient(to bottom, rgba(247, 243, 237, 0), var(--dw-clamp-fade, #F7F3ED));
	pointer-events: none;
}

.dw-clamp--short .dw-clamp__body,
.dw-clamp--open .dw-clamp__body {
	max-height: none;
}

.dw-clamp--short .dw-clamp__body::after,
.dw-clamp--open .dw-clamp__body::after {
	display: none;
}

/* Reset the Kit's global button styles for this text-style toggle. */
button.dw-clamp__toggle {
	align-self: flex-start;
	width: auto;
	margin: 6px 0 0;
	text-align: left;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	color: var(--e-global-color-accent, #984C2C) !important;
	font-size: 0.85em;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: underline;
	text-transform: uppercase;
	cursor: pointer;
}

button.dw-clamp__toggle:hover,
button.dw-clamp__toggle:focus-visible {
	color: var(--e-global-color-primary, #22414C) !important;
}

/* ---- Instructor listings (options A/B/C on the ILP draft) ---- */

/* "Lead instructor" tag: only on the first person, and only when there's more than one. */
.jet-listing-grid .dw-lead-badge {
	display: none;
}

.jet-listing-grid__item:first-child:not(:only-child) .dw-lead-badge {
	display: block;
}

.jet-listing-grid .dw-lead-badge .elementor-heading-title {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 4px;
	background: var(--e-global-color-accent, #984C2C) !important;
	color: #fff !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em;
	line-height: 1.6 !important;
	text-transform: uppercase;
}

/* A: rows. Keep the bio to a readable line length. */
.dw-person--row .dw-clamp {
	max-width: 68ch;
}

/* B/C: white cards, centred header, left-aligned bio. */
.dw-person--card {
	height: 100%;
}

.dw-person--card .dw-person__info {
	text-align: center;
}

.dw-person--card .dw-clamp {
	text-align: left;
	width: 100%;
}

.dw-person--card button.dw-clamp__toggle {
	align-self: center;
}

/* C: the lead gets a full-width, side-by-side feature card. */
.dw-team--lead .jet-listing-grid__items {
	justify-content: center;
}

.dw-team--lead .jet-listing-grid__item:first-child:not(:only-child) {
	flex: 0 0 100% !important;
	max-width: 100% !important;
	width: 100% !important;
}

@media (min-width: 768px) {
	.dw-team--lead .jet-listing-grid__item:first-child:not(:only-child) .dw-person--card {
		flex-direction: row !important;
		align-items: flex-start !important;
		gap: 40px !important;
		padding: 40px !important;
	}

	.dw-team--lead .jet-listing-grid__item:first-child:not(:only-child) .dw-person__photo {
		width: 180px !important;
		flex-shrink: 0;
	}

	.dw-team--lead .jet-listing-grid__item:first-child:not(:only-child) .dw-person__info {
		align-items: flex-start !important;
		text-align: left;
		flex: 1 1 auto;
		min-width: 0;
	}

	.dw-team--lead .jet-listing-grid__item:first-child:not(:only-child) .dw-person__name {
		justify-content: flex-start !important;
	}

	.dw-team--lead .jet-listing-grid__item:first-child:not(:only-child) .dw-clamp {
		max-width: 68ch;
	}

	.dw-team--lead .jet-listing-grid__item:first-child:not(:only-child) button.dw-clamp__toggle {
		align-self: flex-start;
	}
}