/* ==========================================================================
   Thought Labs — Member Space widgets
   Palette v2: charcoal ink, orange accent, forest green for "done" states.
   All colours are tokens on .tl-scope so Elementor can override them.
   ========================================================================== */

.tl-scope {
	--tl-ink: #161a18;
	--tl-ink-2: #1b2123;
	--tl-ink-3: #276954;

	--tl-accent: #f47b20;
	--tl-accent-2: #b4460f;
	--tl-accent-3: #93390c;
	--tl-accent-soft: #fdeadb;

	--tl-green: #276954;
	--tl-green-soft: #e6efe9;
	--tl-green-light: #5fbf9b;

	--tl-cream: #f4f2ee;
	--tl-card: #ffffff;
	--tl-card-2: #faf7f2;
	--tl-border: #e2ded5;
	--tl-border-2: #eae7e0;

	--tl-text: #1c1b19;
	--tl-muted: #6e675c;
	--tl-dim: #a5a099;
	--tl-on-dark: #e6e2da;
	--tl-on-dark-strong: #f2efe9;

	--tl-radius: 12px;

	color: var(--tl-text);
	font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}

.tl-scope *,
.tl-scope *::before,
.tl-scope *::after {
	box-sizing: border-box;
}

/*
 * Cards set display:flex, and an author rule outranks the browser's built-in
 * [hidden] { display: none }. Without this the filter JS sets the attribute
 * but nothing disappears.
 */
.tl-scope [hidden] {
	display: none !important;
}

.tl-display {
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-weight: 500;
	letter-spacing: 0;
}

.tl-scope a {
	text-decoration: none;
}

.tl-scope p {
	margin: 0;
}

.tl-eyebrow {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--tl-accent-2);
}

.tl-link {
	font-size: 13px;
	font-weight: 700;
	color: var(--tl-accent-2);
	transition: color 0.2s ease;
}

.tl-link:hover,
.tl-link:focus {
	color: var(--tl-accent-3);
}

.tl-scope :focus-visible {
	outline: 2px solid var(--tl-accent);
	outline-offset: 2px;
	border-radius: 4px;
}

.tl-sechead {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.tl-sechead__title {
	font-size: 24px;
	margin: 0;
	line-height: 1.25;
	color: var(--tl-text);
}

.tl-empty {
	border: 1px dashed var(--tl-border);
	border-radius: var(--tl-radius);
	padding: 24px;
	font-size: 13px;
	color: var(--tl-muted);
	text-align: center;
	background: var(--tl-card-2);
}

/* ---------------------------------------------------------------- Hero -- */

.tl-hero {
	position: relative;
	overflow: hidden;
	border-radius: 14px;
	padding: 36px 40px 32px;
	color: var(--tl-on-dark);
	background: linear-gradient(135deg, var(--tl-ink) 0%, var(--tl-ink-2) 65%, var(--tl-ink-3) 140%);
}

.tl-hero__rings {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.tl-hero__rings span {
	position: absolute;
	border-radius: 50%;
	border: 1px solid rgba(244, 123, 32, 0.26);
	width: 320px;
	height: 320px;
	right: -70px;
	top: -90px;
}

.tl-hero__rings span + span {
	right: -20px;
	top: -40px;
	border-color: rgba(244, 123, 32, 0.14);
}

.tl-hero__eyebrow {
	position: relative;
	font-size: 11px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--tl-accent);
	font-weight: 700;
}

.tl-hero__title {
	position: relative;
	font-size: 38px;
	margin: 8px 0 10px;
	color: #f7f4ed;
	line-height: 1.15;
}

.tl-hero__intro {
	position: relative;
	max-width: 560px;
	font-size: 15px;
	line-height: 1.6;
	color: #b8b3a8;
}

.tl-hero__quote {
	position: relative;
	margin-top: 22px;
	border-left: 2px solid var(--tl-accent);
	padding-left: 16px;
}

.tl-hero__quote p {
	font-size: 17px;
	font-style: italic;
	color: var(--tl-on-dark-strong);
	margin: 0;
}

.tl-hero__cite {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	font-style: normal;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tl-accent);
}

/* ------------------------------------------------------------- Courses -- */

.tl-cards {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tl-card {
	display: flex;
	flex-direction: column;
	background: var(--tl-card);
	border: 1px solid var(--tl-border);
	border-radius: var(--tl-radius);
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tl-card:hover {
	box-shadow: 0 10px 28px rgba(22, 26, 24, 0.12);
	transform: translateY(-2px);
}

.tl-card__art {
	position: relative;
	min-height: 110px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 16px 14px;
	background-size: cover;
	background-position: center;
}

.tl-card__art--image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(160deg, rgba(22, 26, 24, 0.35), rgba(22, 26, 24, 0.85));
}

.tl-card__art > * {
	position: relative;
	z-index: 1;
}

.tl-card__kicker {
	font-size: 9.5px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: rgba(242, 239, 233, 0.75);
}

.tl-card__title {
	font-size: 17px;
	color: var(--tl-on-dark-strong);
	line-height: 1.25;
}

.tl-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 14px 16px 16px;
}

.tl-bar {
	height: 4px;
	border-radius: 99px;
	background: var(--tl-border-2);
	overflow: hidden;
}

.tl-bar__fill {
	height: 100%;
	border-radius: 99px;
	background: var(--tl-accent);
	transition: width 0.4s ease;
}

.tl-card--complete .tl-bar__fill {
	background: var(--tl-green);
}

.tl-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	flex-wrap: wrap;
}

.tl-card__status {
	font-size: 12px;
	font-weight: 600;
	color: var(--tl-muted);
}

.tl-card--complete .tl-card__status {
	color: var(--tl-green);
}

.tl-card__cta {
	font-size: 12.5px;
	font-weight: 800;
	color: var(--tl-accent-2);
}

.tl-card__cta:hover {
	color: var(--tl-accent-3);
}

/* ------------------------------------------------------------ Practice -- */

.tl-panel {
	background: var(--tl-card);
	border: 1px solid var(--tl-border);
	border-radius: var(--tl-radius);
	padding: 20px;
}

.tl-panel__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.tl-chip {
	font-size: 11px;
	font-weight: 800;
	color: var(--tl-accent-2);
	background: var(--tl-accent-soft);
	border-radius: 99px;
	padding: 3px 9px;
	white-space: nowrap;
}

.tl-practice__prompt {
	font-size: 17px;
	margin: 12px 0 6px;
	line-height: 1.4;
}

.tl-practice__body {
	font-size: 13px;
	color: var(--tl-muted);
	margin: 0 0 14px;
	line-height: 1.55;
}

.tl-practice__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.tl-btn {
	display: inline-block;
	background: var(--tl-ink);
	color: var(--tl-on-dark-strong);
	font-size: 12.5px;
	font-weight: 800;
	padding: 9px 16px;
	border-radius: 8px;
	border: 0;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.2s ease, color 0.2s ease;
}

.tl-btn:hover {
	background: var(--tl-ink-2);
	color: #fff;
}

.tl-btn--accent {
	background: var(--tl-accent);
	color: var(--tl-ink);
	font-size: 13px;
	padding: 12px 22px;
	border-radius: 9px;
}

.tl-btn--accent:hover {
	background: #f68a3a;
	color: var(--tl-ink);
}

.tl-btn.is-done {
	background: var(--tl-green-soft);
	color: var(--tl-green);
	cursor: default;
}

.tl-btn[disabled] {
	opacity: 0.85;
	cursor: default;
}

.tl-practice__streak {
	font-size: 12px;
	font-weight: 700;
	color: var(--tl-accent-2);
}

/* -------------------------------------------------------------- Events -- */

.tl-events {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tl-event {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 10px;
	border-radius: 9px;
	border: 1px solid var(--tl-border-2);
	background: var(--tl-card-2);
}

.tl-event__date {
	width: 44px;
	flex-shrink: 0;
	text-align: center;
	background: var(--tl-ink);
	color: var(--tl-on-dark-strong);
	border-radius: 8px;
	padding: 6px 0;
}

.tl-event__month {
	font-size: 9px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tl-accent);
}

.tl-event__day {
	font-size: 17px;
	line-height: 1.1;
}

.tl-event__main {
	flex: 1;
	min-width: 0;
}

.tl-event__title {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--tl-text);
}

.tl-event__meta {
	font-size: 11.5px;
	color: var(--tl-muted);
	margin-top: 2px;
}

.tl-event__action {
	display: inline-block;
	font-size: 11.5px;
	font-weight: 800;
	margin-top: 6px;
	color: var(--tl-accent-2);
}

.tl-panel__title {
	font-size: 18px;
	margin: 0;
}

.tl-panel__bar {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 14px;
}

/* ----------------------------------------------------------- Community -- */

.tl-community {
	display: block;
	background: linear-gradient(135deg, var(--tl-ink-2), var(--tl-ink));
	border-radius: var(--tl-radius);
	padding: 20px;
	color: var(--tl-on-dark);
	transition: box-shadow 0.2s ease;
}

.tl-community:hover {
	box-shadow: 0 14px 34px rgba(22, 26, 24, 0.25);
}

.tl-community__eyebrow {
	font-size: 10px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--tl-accent);
	font-weight: 700;
}

.tl-community__title {
	font-size: 18px;
	color: var(--tl-on-dark-strong);
	margin-top: 6px;
}

.tl-community__text {
	font-size: 12.5px;
	color: var(--tl-dim);
	margin-top: 4px;
	line-height: 1.5;
}

.tl-community__cta {
	font-size: 12.5px;
	font-weight: 800;
	color: var(--tl-accent);
	margin-top: 10px;
}

/* ---------------------------------------------------------- Resources -- */

.tl-resources {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(var(--tl-cols, 4), minmax(0, 1fr));
}

.tl-resource {
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: var(--tl-card);
	border: 1px solid var(--tl-border);
	border-radius: 11px;
	padding: 16px;
	color: var(--tl-text);
	transition: box-shadow 0.2s ease;
}

.tl-resource:hover {
	box-shadow: 0 8px 20px rgba(22, 26, 24, 0.1);
	color: var(--tl-text);
}

.tl-resource__type {
	font-size: 9.5px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--tl-accent-2);
	font-weight: 700;
}

.tl-resource__title {
	font-size: 15.5px;
	line-height: 1.35;
}

.tl-resource__meta {
	font-size: 11.5px;
	color: var(--tl-muted);
	margin-top: auto;
}

/* --------------------------------------------------------------- Tiers -- */

.tl-tiers__intro {
	font-size: 13.5px;
	color: var(--tl-muted);
	margin: 0 0 20px;
	max-width: 720px;
	line-height: 1.55;
}

.tl-tiers__title {
	font-size: 24px;
	margin: 0 0 6px;
	font-weight: 400;
}

.tl-tiers {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(var(--tl-cols, 3), minmax(0, 1fr));
	align-items: stretch;
}

.tl-tier {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: 14px;
	padding: 26px;
	background: var(--tl-card);
	border: 1px solid var(--tl-border);
	color: var(--tl-text);
}

/* Current plan — dark and raised. */
.tl-tier--unlocked {
	background: linear-gradient(150deg, var(--tl-ink-2), var(--tl-ink));
	border: 1px solid var(--tl-ink);
	color: var(--tl-on-dark-strong);
	box-shadow: 0 14px 34px rgba(22, 26, 24, 0.25);
}

/* The upsell — white with an accent edge. */
.tl-tier--locked {
	border: 2px solid var(--tl-accent);
	box-shadow: 0 10px 28px rgba(244, 123, 32, 0.18);
}

.tl-tier__ribbon {
	position: absolute;
	top: -11px;
	left: 24px;
	background: var(--tl-accent);
	color: var(--tl-ink);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-radius: 99px;
	padding: 4px 12px;
}

.tl-tier__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

.tl-tier__n {
	font-size: 10px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--tl-accent-2);
}

.tl-tier--unlocked .tl-tier__n {
	color: var(--tl-accent);
}

.tl-tier__chip {
	font-size: 10.5px;
	font-weight: 800;
	border-radius: 99px;
	padding: 3px 10px;
	background: var(--tl-border-2);
	color: var(--tl-muted);
	white-space: nowrap;
}

.tl-tier--unlocked .tl-tier__chip {
	background: var(--tl-accent);
	color: var(--tl-ink);
}

.tl-tier--locked .tl-tier__chip {
	background: var(--tl-accent-soft);
	color: var(--tl-accent-2);
}

.tl-tier__name {
	font-size: 26px;
	margin-top: 10px;
	line-height: 1.15;
}

.tl-tier__price {
	margin-top: 6px;
}

.tl-tier__price-value {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 24px;
	color: var(--tl-text);
}

.tl-tier--unlocked .tl-tier__price-value {
	color: var(--tl-accent);
}

.tl-tier--locked .tl-tier__price-value {
	color: var(--tl-accent-2);
}

.tl-tier__price-suffix {
	font-size: 12px;
	color: var(--tl-muted);
}

.tl-tier--unlocked .tl-tier__price-suffix {
	color: var(--tl-dim);
}

.tl-tier__desc {
	font-size: 12.5px;
	line-height: 1.55;
	margin: 10px 0 16px;
	color: var(--tl-muted);
}

.tl-tier--unlocked .tl-tier__desc {
	color: var(--tl-dim);
}

.tl-tier__features {
	display: flex;
	flex-direction: column;
	gap: 9px;
	flex: 1;
}

.tl-tier__inherits {
	font-size: 11.5px;
	font-weight: 800;
	color: var(--tl-accent-2);
}

.tl-tier--unlocked .tl-tier__inherits {
	color: var(--tl-accent);
}

.tl-tier__feature {
	display: flex;
	gap: 9px;
	align-items: flex-start;
	font-size: 13px;
	line-height: 1.45;
	color: var(--tl-text);
}

.tl-tier--unlocked .tl-tier__feature {
	color: var(--tl-on-dark);
}

.tl-tier__check {
	color: var(--tl-green);
	font-weight: 800;
	flex-shrink: 0;
}

.tl-tier--unlocked .tl-tier__check {
	color: var(--tl-green-light);
}

.tl-tier__btn {
	display: block;
	text-align: center;
	margin-top: 20px;
	font-size: 13px;
	font-weight: 800;
	padding: 12px 0;
	border-radius: 9px;
	background: var(--tl-card);
	color: var(--tl-muted);
	border: 1px solid var(--tl-border);
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.tl-tier--unlocked .tl-tier__btn {
	background: rgba(255, 255, 255, 0.08);
	color: var(--tl-on-dark);
	border-color: rgba(230, 226, 218, 0.3);
}

.tl-tier--locked .tl-tier__btn {
	background: var(--tl-accent);
	color: var(--tl-ink);
	border-color: var(--tl-accent);
}

.tl-tier__btn:hover {
	border-color: var(--tl-accent);
}

.tl-tier--locked .tl-tier__btn:hover {
	background: #f68a3a;
	color: var(--tl-ink);
}

.tl-tier__cta {
	display: inline-block;
	font-size: 12.5px;
	font-weight: 800;
	color: var(--tl-accent-2);
	margin-top: 14px;
}

.tl-tier--unlocked .tl-tier__cta {
	color: var(--tl-accent);
}

/* -------------------------------------------------------------- Locked -- */

.tl-locked {
	border: 1px dashed var(--tl-accent);
	border-radius: var(--tl-radius);
	padding: 24px;
	background: linear-gradient(135deg, var(--tl-card-2), var(--tl-accent-soft));
}

.tl-locked__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.tl-locked__copy {
	max-width: 560px;
}

.tl-locked__title {
	font-size: 20px;
	margin-top: 6px;
	line-height: 1.3;
}

.tl-locked__text {
	font-size: 13px;
	color: var(--tl-muted);
	margin-top: 6px;
	line-height: 1.5;
}

.tl-locked__items {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(var(--tl-cols, 3), minmax(0, 1fr));
	margin-top: 18px;
}

.tl-locked__item {
	display: flex;
	align-items: center;
	gap: 12px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid var(--tl-border);
	border-radius: 10px;
	padding: 14px 16px;
}

.tl-locked__icon {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--tl-ink);
	color: var(--tl-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
}

.tl-locked__item-title {
	font-size: 13px;
	font-weight: 700;
}

.tl-locked__item-meta {
	font-size: 11px;
	color: var(--tl-muted);
}

/* --------------------------------------------------- Profile completion -- */

.tl-profile__top {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 14px;
}

.tl-profile__ring {
	position: relative;
	width: 104px;
	height: 104px;
	flex-shrink: 0;
}

.tl-profile__ring svg {
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.tl-profile__ring svg circle {
	fill: none;
	stroke-width: 8;
	stroke-linecap: round;
}

.tl-profile__track {
	stroke: var(--tl-border-2);
}

.tl-profile__rate {
	stroke: var(--tl-accent);
	transition: stroke-dasharray 0.5s ease;
}

.tl-profile.is-complete .tl-profile__rate {
	stroke: var(--tl-green);
}

.tl-profile__pct {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.tl-profile__pct-num {
	font-size: 26px;
	color: var(--tl-text);
}

.tl-profile__pct-num span {
	font-size: 13px;
	vertical-align: super;
	color: var(--tl-muted);
}

.tl-profile__title {
	font-size: 18px;
	line-height: 1.3;
	margin: 0;
}

.tl-profile__sub {
	font-size: 12.5px;
	color: var(--tl-muted);
	line-height: 1.5;
	margin-top: 5px;
}

.tl-profile__bar {
	margin-top: 16px;
}

.tl-profile__steps {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
}

.tl-profile__step {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 10px 0;
	border-bottom: 1px solid var(--tl-border-2);
}

.tl-profile__step:last-child {
	border-bottom: 0;
}

.tl-profile__tick {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	border-radius: 50%;
	border: 1.5px solid var(--tl-border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 800;
	color: transparent;
}

.tl-profile__step.is-done .tl-profile__tick {
	background: var(--tl-green);
	border-color: var(--tl-green);
	color: #fff;
}

.tl-profile__step-label {
	flex: 1;
	min-width: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--tl-text);
}

a.tl-profile__step-label:hover {
	color: var(--tl-accent-2);
}

.tl-profile__step.is-done .tl-profile__step-label {
	color: var(--tl-muted);
}

.tl-profile__count {
	font-size: 11px;
	font-weight: 700;
	border-radius: 99px;
	padding: 2px 9px;
	background: var(--tl-accent-soft);
	color: var(--tl-accent-2);
	white-space: nowrap;
}

.tl-profile__step.is-done .tl-profile__count {
	background: var(--tl-green-soft);
	color: var(--tl-green);
}

.tl-profile__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 18px;
	background: var(--tl-accent);
	color: var(--tl-ink);
	font-size: 13px;
	font-weight: 800;
	padding: 12px 18px;
	border-radius: 9px;
	transition: background 0.2s ease;
}

.tl-profile__btn:hover {
	background: #f68a3a;
	color: var(--tl-ink);
}

.tl-profile.is-complete .tl-profile__btn {
	background: var(--tl-card);
	color: var(--tl-muted);
	border: 1px solid var(--tl-border);
}

.tl-profile.is-complete .tl-profile__btn:hover {
	border-color: var(--tl-accent);
	color: var(--tl-accent-2);
}

@media (max-width: 480px) {
	.tl-profile__top {
		gap: 14px;
	}
	.tl-profile__ring {
		width: 76px;
		height: 76px;
	}
	.tl-profile__pct-num {
		font-size: 20px;
	}
}

/* ---------------------------------------------- Filters & tags -------- */

.tl-filters {
	display: flex;
	gap: 6px;
	background: var(--tl-border-2);
	border-radius: 10px;
	padding: 4px;
	flex-wrap: wrap;
}

.tl-filter {
	border: 0;
	cursor: pointer;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 800;
	padding: 8px 16px;
	border-radius: 8px;
	background: transparent;
	color: var(--tl-muted);
	transition: background 0.2s ease, color 0.2s ease;
}

.tl-filter span {
	opacity: 0.55;
	font-weight: 700;
}

.tl-filter:hover {
	color: var(--tl-text);
}

.tl-filter.is-active {
	background: var(--tl-card);
	color: var(--tl-text);
	box-shadow: 0 1px 4px rgba(22, 26, 24, 0.12);
}

.tl-tag {
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.04em;
	border-radius: 99px;
	padding: 3px 10px;
	background: var(--tl-accent-soft);
	color: var(--tl-accent-2);
	white-space: nowrap;
}

.tl-tag--done,
.tl-tag--green {
	background: var(--tl-green-soft);
	color: var(--tl-green);
}

.tl-tag--locked {
	background: var(--tl-border-2);
	color: var(--tl-muted);
}

.tl-tag--plain {
	background: transparent;
	border: 1px solid var(--tl-border-2);
	color: var(--tl-muted);
	font-weight: 700;
}

/* ------------------------------------------------- Course library ----- */

.tl-library__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.tl-library__title {
	font-size: 32px;
	margin: 0;
	line-height: 1.15;
}

.tl-library__summary {
	font-size: 14px;
	color: var(--tl-muted);
	margin: 6px 0 0;
}

.tl-library__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: 20px;
	margin-top: 26px;
}

.tl-library__none {
	margin-top: 26px;
	font-size: 13px;
	color: var(--tl-muted);
	text-align: center;
}

.tl-card__art-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

.tl-card__lock {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.35);
	color: var(--tl-accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
}

.tl-card__tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.tl-card--locked {
	opacity: 0.78;
}

.tl-card--locked:hover {
	opacity: 1;
}

.tl-card--done .tl-bar__fill {
	background: var(--tl-green);
}

.tl-card--locked .tl-card__cta {
	color: var(--tl-muted);
}

/* --------------------------------------------------- Session hero ----- */

.tl-session-hero {
	display: flex;
	justify-content: space-between;
	gap: 30px;
	flex-wrap: wrap;
	padding: 30px 34px;
}

.tl-session-hero__main {
	flex: 1;
	min-width: 280px;
	max-width: 640px;
}

.tl-session-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 10px;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--tl-accent);
	font-weight: 700;
}

.tl-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--tl-accent);
	flex-shrink: 0;
}

.tl-session-hero__title {
	font-size: 28px;
	margin: 10px 0 8px;
	color: #f7f4ed;
	line-height: 1.2;
}

.tl-session-hero__desc {
	font-size: 13.5px;
	line-height: 1.6;
	color: #b8b3a8;
	margin-bottom: 14px;
}

.tl-session-hero__meta {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 12.5px;
	color: var(--tl-on-dark);
}

.tl-session-hero__meta .is-highlight {
	color: var(--tl-accent);
	font-weight: 700;
}

.tl-session-hero__actions {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 20px;
	flex-wrap: wrap;
}

.tl-session-hero__cal {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--tl-on-dark);
	border-bottom: 1px solid rgba(230, 226, 218, 0.4);
	padding-bottom: 1px;
}

.tl-session-hero__cal:hover {
	color: var(--tl-accent);
}

.tl-countdown {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	flex-shrink: 0;
}

.tl-countdown__unit {
	width: 74px;
	text-align: center;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(244, 123, 32, 0.35);
	border-radius: 10px;
	padding: 12px 0;
}

.tl-countdown__val {
	font-size: 26px;
	color: var(--tl-accent);
	line-height: 1.1;
}

.tl-countdown__label {
	font-size: 9.5px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--tl-dim);
}

.tl-countdown__live {
	background: var(--tl-accent);
	color: var(--tl-ink);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: 99px;
	padding: 8px 16px;
	white-space: nowrap;
}

/* --------------------------------------------------- Session rows ----- */

.tl-sessions__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.tl-sessions__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.tl-session {
	background: var(--tl-card);
	border: 1px solid var(--tl-border);
	border-radius: 12px;
	padding: 18px 22px;
	display: flex;
	gap: 20px;
	align-items: center;
	flex-wrap: wrap;
	transition: box-shadow 0.2s ease;
}

.tl-session:hover {
	box-shadow: 0 8px 22px rgba(22, 26, 24, 0.1);
}

.tl-session__date {
	width: 64px;
	flex-shrink: 0;
	text-align: center;
	background: var(--tl-ink);
	color: var(--tl-on-dark-strong);
	border-radius: 10px;
	padding: 10px 0;
}

.tl-session__month {
	font-size: 9.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--tl-accent);
}

.tl-session__day {
	font-size: 24px;
	line-height: 1.1;
}

.tl-session__weekday {
	font-size: 9.5px;
	color: var(--tl-dim);
}

.tl-session__main {
	flex: 1;
	min-width: 240px;
}

.tl-session__title-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.tl-session__title {
	font-size: 15px;
	font-weight: 800;
}

.tl-session__meta {
	font-size: 12.5px;
	color: var(--tl-muted);
	margin-top: 4px;
}

.tl-session__desc {
	font-size: 12.5px;
	color: var(--tl-muted);
	margin-top: 2px;
	line-height: 1.5;
}

.tl-session__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	flex-shrink: 0;
}

.tl-session__btn {
	background: var(--tl-ink);
	color: var(--tl-on-dark-strong);
	border: 1px solid var(--tl-ink);
	font-size: 12.5px;
	font-weight: 800;
	padding: 10px 20px;
	border-radius: 8px;
	min-width: 130px;
	text-align: center;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.tl-session__btn:hover {
	background: var(--tl-ink-2);
	border-color: var(--tl-accent);
	color: #fff;
}

.tl-session__cal {
	font-size: 11.5px;
	font-weight: 700;
	color: var(--tl-muted);
}

.tl-session__cal:hover {
	color: var(--tl-accent-2);
}

/* ------------------------------------------------------- Callout ------ */

.tl-callout {
	border-radius: 12px;
	padding: 22px 26px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.tl-callout--dashed {
	border: 1px dashed #e5b088;
	background: var(--tl-card-2);
}

.tl-callout--dark {
	background: linear-gradient(135deg, var(--tl-ink-2), var(--tl-ink));
	color: var(--tl-on-dark);
}

.tl-callout__copy {
	max-width: 620px;
}

.tl-callout__eyebrow {
	font-size: 10px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--tl-accent-2);
}

.tl-callout--dark .tl-callout__eyebrow {
	color: var(--tl-accent);
}

.tl-callout__title {
	font-size: 19px;
	margin-top: 5px;
	line-height: 1.3;
}

.tl-callout--dark .tl-callout__title {
	color: var(--tl-on-dark-strong);
}

.tl-callout__text {
	font-size: 13px;
	color: var(--tl-muted);
	margin-top: 4px;
	line-height: 1.5;
}

.tl-callout--dark .tl-callout__text {
	color: var(--tl-dim);
}

/* -------------------------------------------------- Media library ----- */

.tl-libhero {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 32px;
	flex-wrap: wrap;
	border-radius: 16px;
	padding: 34px 38px;
	color: var(--tl-on-dark);
	background: linear-gradient(120deg, var(--tl-ink) 0%, #1b201e 55%, #1d3a30 100%);
}

.tl-libhero__copy {
	max-width: 640px;
	min-width: 260px;
	flex: 1;
}

.tl-libhero__top {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.tl-libhero__eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--tl-accent);
}

.tl-libhero__pill {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--tl-accent);
	border: 1px solid rgba(244, 123, 32, 0.6);
	border-radius: 99px;
	padding: 5px 14px;
}

.tl-libhero__title {
	font-size: 38px;
	line-height: 1.15;
	margin: 14px 0 10px;
	color: #f7f4ed;
}

.tl-libhero__text {
	font-size: 14.5px;
	line-height: 1.65;
	color: #b8b3a8;
}

.tl-libhero__stats {
	display: flex;
	gap: 34px;
	flex-shrink: 0;
	padding-top: 6px;
}

.tl-libhero__stat-val {
	font-size: 34px;
	line-height: 1;
	color: var(--tl-accent);
}

.tl-libhero__stat-label {
	font-size: 10px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--tl-dim);
	margin-top: 6px;
}

/* Pill-shaped filters, used on the library rather than the segmented bar. */

.tl-filters--pills {
	background: transparent;
	padding: 0;
	gap: 10px;
	margin-bottom: 22px;
}

.tl-filters--pills .tl-filter {
	background: var(--tl-card);
	border: 1px solid var(--tl-border);
	border-radius: 99px;
	padding: 11px 22px;
	font-size: 13.5px;
	color: var(--tl-text);
	box-shadow: none;
}

.tl-filters--pills .tl-filter span {
	color: var(--tl-muted);
	opacity: 1;
	margin-left: 3px;
}

.tl-filters--pills .tl-filter:hover {
	border-color: var(--tl-accent);
}

.tl-filters--pills .tl-filter.is-active {
	background: var(--tl-accent);
	border-color: var(--tl-accent);
	color: var(--tl-ink);
	box-shadow: none;
}

.tl-filters--pills .tl-filter.is-active span {
	color: rgba(22, 26, 24, 0.65);
}

.tl-media__grid {
	display: grid;
	grid-template-columns: repeat(var(--tl-cols, 4), minmax(0, 1fr));
	gap: 22px;
}

/* ---- session card ---- */

.tl-vid {
	display: flex;
	flex-direction: column;
	background: var(--tl-card);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(22, 26, 24, 0.08);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tl-vid:hover {
	box-shadow: 0 14px 30px rgba(22, 26, 24, 0.14);
	transform: translateY(-2px);
}

.tl-vid__top {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 16px 18px;
	/* Featured images are a fixed 1024x586, so the header keeps that ratio
	   and never letterboxes or crops unpredictably. */
	aspect-ratio: var(--tl-ratio, 1024 / 586);
	background-size: cover;
	background-position: center;
	background-color: var(--tl-ink);
}

.tl-vid__top-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.tl-vid__cat {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.92);
	line-height: 1.4;
	/* Carries the eyebrow over a bare photo now the scrim is gone. */
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.tl-vid__cat--footer {
	color: var(--tl-accent-2);
	text-shadow: none;
}

.tl-vid__new {
	flex-shrink: 0;
	background: var(--tl-accent);
	color: var(--tl-ink);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	border-radius: 99px;
	padding: 4px 11px;
}

.tl-vid__new--locked {
	background: rgba(0, 0, 0, 0.45);
	color: var(--tl-accent);
}

.tl-vid__title {
	font-size: 19px;
	line-height: 1.32;
	color: var(--tl-text);
	margin: 0;
	padding-right: 52px;
	text-wrap: balance;
}

.tl-vid__play {
	position: absolute;
	right: 20px;
	bottom: 0;
	transform: translateY(50%);
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--tl-accent);
	color: var(--tl-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	padding-left: 3px;
	box-shadow: 0 4px 14px rgba(22, 26, 24, 0.25);
	transition: background 0.2s ease, transform 0.2s ease;
	z-index: 2;
}

.tl-vid__play:hover {
	background: #f68a3a;
	color: var(--tl-ink);
	transform: translateY(50%) scale(1.06);
}

.tl-vid__foot {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px 20px 18px;
	flex: 1;
}

.tl-vid__person {
	display: flex;
	align-items: center;
	gap: 11px;
	min-width: 0;
}

.tl-vid__avatar {
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	border-radius: 50%;
	overflow: hidden;
	background: var(--tl-border-2);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11.5px;
	font-weight: 800;
	color: var(--tl-muted);
	letter-spacing: 0.02em;
}

.tl-vid__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tl-vid__name {
	font-size: 14px;
	font-weight: 700;
	color: var(--tl-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tl-vid__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	flex-wrap: wrap;
}

.tl-vid__metatext {
	font-size: 12.5px;
	color: var(--tl-muted);
}

.tl-vid__watch {
	font-size: 13px;
	font-weight: 800;
	color: var(--tl-accent-2);
}

.tl-vid__watch:hover {
	color: var(--tl-accent-3);
}

.tl-vid.is-locked .tl-vid__top {
	filter: saturate(0.55);
}

.tl-vid.is-locked .tl-vid__title {
	color: var(--tl-muted);
}

/* --------------------------------------------------------- Responsive -- */

@media (max-width: 1024px) {
	.tl-resources,
	.tl-tiers,
	.tl-locked__items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.tl-hero {
		padding: 28px 22px;
	}
	.tl-hero__title {
		font-size: 28px;
	}
	.tl-hero__rings {
		display: none;
	}
	.tl-cards,
	.tl-resources,
	.tl-tiers,
	.tl-locked__items {
		grid-template-columns: minmax(0, 1fr);
	}
	.tl-sechead {
		flex-wrap: wrap;
		gap: 6px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tl-scope *,
	.tl-scope *::before,
	.tl-scope *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
	.tl-card:hover {
		transform: none;
	}
}

@media (max-width: 767px) {
	.tl-library__grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.tl-library__title {
		font-size: 26px;
	}
	.tl-session-hero {
		padding: 26px 22px;
	}
	.tl-session-hero__title {
		font-size: 23px;
	}
	.tl-countdown__unit {
		width: 64px;
	}
	.tl-session__actions {
		align-items: stretch;
		width: 100%;
	}
	.tl-session__btn {
		width: 100%;
	}
	.tl-session__cal {
		text-align: center;
	}
}

@media (max-width: 1024px) {
	.tl-media__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.tl-libhero__stats {
		gap: 26px;
	}
}

@media (max-width: 767px) {
	.tl-media__grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.tl-libhero {
		padding: 26px 22px;
	}
	.tl-libhero__title {
		font-size: 27px;
	}
	.tl-libhero__stat-val {
		font-size: 27px;
	}
	.tl-vid__title {
		font-size: 18px;
	}
	.tl-filters--pills {
		gap: 8px;
	}
	.tl-filters--pills .tl-filter {
		padding: 9px 16px;
		font-size: 12.5px;
	}
}
