/**
 * LT eLearning: the lesson scrubber.
 * One bold element: a course drawn as a video seek bar, one segment per chapter, widths to scale by running
 * time, the watched part in violet up to a lime playhead (home hero); the same bar on the catalogue rows (one shared
 * scale), inside one lesson, and on each course page with its chapter list.
 * Everything else is quiet: lilac-white page, paper sections, hairlines, 4px corners, no shadows, no gradients.
 * Montagu Slab for headings, Maven Pro for text, times and prices (tabular figures).
 */

/* ---------- Type ---------- */

h1, h2, h3, h4, h5, h6,
.elementor-heading-title,
.lt-brand__name,
.lt-blog__title,
.lt-single__title,
.lt-404__title,
.lt-post__title {
	font-optical-sizing: auto;
	letter-spacing: -0.012em;
}

.lt-num,
.lt-num p {
	font-variant-numeric: tabular-nums lining-nums;
}

.lt-h3 .elementor-heading-title {
	font-size: var(--lt-fs-xl);
}

.lt-h4 .elementor-heading-title {
	font-size: var(--lt-fs-md);
	font-weight: 600;
}

/* ---------- Top bar and header ---------- */

.e-con.lt-sec.lt-topbar-bar {
	--padding-top: 0.5rem;
	--padding-bottom: 0.5rem;
	font-size: var(--lt-fs-sm);
}

.lt-topbar-bar .elementor-widget-text-editor {
	color: var(--lt-on-dark);
	white-space: nowrap;
}

.lt-topbar-bar .lt-topbar__news {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lt-header {
	border-bottom-color: var(--lt-line);
}

.lt-brand__mark {
	width: 2.5rem;
	height: 2.5rem;
}

.lt-brand__name {
	font-size: 1.5rem;
	font-weight: 700;
}

body .lt-menu a {
	font-weight: 600;
}

/* ---------- Home hero ---------- */

.e-con.lt-hero {
	--padding-top: clamp(3rem, 1.8rem + 4.5vw, 5.5rem);
	--padding-bottom: clamp(3rem, 1.8rem + 4.5vw, 5.5rem);
}

.lt-hero__title .elementor-heading-title {
	font-size: var(--lt-fs-hero);
	font-weight: 600;
	line-height: 1.02;
	letter-spacing: -0.022em;
	max-width: 15ch;
}

.lt-hero__course strong {
	font-weight: 700;
}

.lt-hero__total {
	color: var(--lt-soft);
	font-weight: 600;
}

.lt-hero__line {
	color: var(--lt-soft);
	font-size: var(--lt-fs-sm);
}

/* ---------- The scrubber ---------- */
/* A bar is a Text widget: one span per chapter with its share of the running time as width. Ticks between
   chapters are the section background showing through (--tick). */

.lt-bar {
	--tick: var(--lt-base);
	--bar-h: 16px;
}

.lt-tint .lt-bar {
	--tick: var(--lt-surface);
}

.lt-bar__track {
	display: flex;
	align-items: stretch;
	height: var(--bar-h);
	margin: 0;
	padding: 0;
}

.lt-seg {
	position: relative;
	display: block;
	height: 100%;
	background: var(--lt-segment);
	box-shadow: inset -3px 0 0 var(--tick);
}

.lt-seg:first-child {
	border-radius: 4px 0 0 4px;
}

.lt-seg:last-child {
	border-radius: 0 4px 4px 0;
	box-shadow: none;
}

.lt-seg.is-done {
	background: var(--lt-primary);
}

.lt-seg__played {
	position: relative;
	display: block;
	height: 100%;
	background: var(--lt-primary);
}

/* The playhead: a lime disc where the learner stopped. */
.lt-seg__played::after {
	content: "";
	position: absolute;
	top: 50%;
	right: -11px;
	width: 22px;
	height: 22px;
	margin-top: -11px;
	border-radius: 50%;
	background: var(--lt-accent);
	box-shadow: 0 0 0 2px var(--lt-ink);
}

/* The hero bar is the player: taller, unwatched chapters in grey so the watched part reads. */
.lt-bar--hero {
	--bar-h: 22px;
}

.lt-bar--hero .lt-seg {
	background: var(--lt-line);
}

.lt-bar--hero .lt-seg.is-done {
	background: var(--lt-primary);
}

/* Catalogue bars: one shared scale, thinner. */
.lt-bar--scaled {
	--bar-h: 10px;
}

/* The one orchestrated moment: the hero bar fills from 0:00 to the playhead. */
.lt-bar--hero .lt-seg.is-done,
.lt-bar--hero .lt-seg__played {
	transform-origin: left center;
	animation: lt-fill 0.14s linear both;
}

.lt-bar--hero .lt-seg:nth-child(2).is-done { animation-delay: 0.14s; }
.lt-bar--hero .lt-seg:nth-child(3).is-done { animation-delay: 0.28s; }
.lt-bar--hero .lt-seg:nth-child(4).is-done { animation-delay: 0.42s; }
.lt-bar--hero .lt-seg:nth-child(5) .lt-seg__played { animation-delay: 0.56s; }

.lt-bar--hero .lt-seg__played::after {
	animation: lt-appear 0.2s ease-out 0.7s both;
}

@keyframes lt-fill {
	from {
		transform: scaleX(0);
	}
	to {
		transform: none;
	}
}

@keyframes lt-appear {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lt-bar--hero .lt-seg.is-done,
	.lt-bar--hero .lt-seg__played,
	.lt-bar--hero .lt-seg__played::after {
		animation: none;
	}
}

/* Chapter labels: grid columns are the chapters' minutes, so each label sits under its segment. */
.e-con.lt-chap {
	--padding-top: 0.15rem;
	--padding-left: 0.5rem;
	--padding-right: 0.4rem;
	--padding-bottom: 0.5rem;
	border-left: 1px solid var(--lt-line);
}

.lt-chap__time {
	color: var(--lt-soft);
	font-size: var(--lt-fs-sm);
	font-weight: 600;
}

.lt-chap.is-done .lt-chap__time,
.lt-chap.is-now .lt-chap__time {
	color: var(--lt-primary);
}

.lt-chap__title .elementor-heading-title {
	font-family: var(--lt-font-ui);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0;
	overflow-wrap: break-word;
	hyphens: manual;
}

/* The chapter with the playhead is marked with the highlighter. */
.lt-chap.is-now .lt-chap__title .elementor-heading-title {
	display: inline;
	background: var(--lt-accent);
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
	padding: 0 0.15em;
}

.lt-bar--lesson + .lt-chapters .lt-chap__title .elementor-heading-title,
.lt-player .lt-bar--lesson ~ .lt-chapters .lt-chap__title .elementor-heading-title {
	font-size: var(--lt-fs-base);
}

/* Lime tab behind ink text. */
.lt-tab {
	display: inline-block;
	padding: 0.15em 0.6em;
	border-radius: 4px;
	background: var(--lt-accent);
	color: var(--lt-ink);
	font-size: var(--lt-fs-sm);
	font-weight: 700;
	line-height: 1.5;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.lt-tab.lt-tab--quiet {
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--lt-soft);
	color: var(--lt-soft);
}

/* ---------- Catalogue rows ---------- */

.lt-course__name .elementor-heading-title {
	font-size: var(--lt-fs-md);
}

.lt-course__meta {
	color: var(--lt-soft);
	font-size: var(--lt-fs-sm);
}

.lt-course__time {
	font-weight: 600;
}

.lt-course__fee {
	color: var(--lt-soft);
	font-size: var(--lt-fs-sm);
}

.lt-course > .elementor-widget-button {
	justify-self: end;
}

.lt-suit .elementor-widget-button {
	justify-self: end;
}

@media (max-width: 1024px) {
	.lt-course > .elementor-widget-button {
		display: none;
	}
}

@media (max-width: 767px) {
	.e-con.lt-course {
		--row-gap: 10px !important;
		--gap: 10px 16px !important;
	}

	.lt-course > .elementor-widget-button {
		display: block;
		justify-self: start;
	}

	.lt-course > .e-con:nth-child(3) {
		flex-direction: row !important;
		gap: 1rem;
	}
}

/* ---------- Ordered steps and chapter lists ---------- */

.lt-steps__mark,
.lt-chapter__time {
	color: var(--lt-primary);
	font-size: var(--lt-fs-md);
	font-weight: 700;
	line-height: 1.25;
}

.lt-chapter__len {
	color: var(--lt-soft);
	font-size: var(--lt-fs-sm);
	text-align: right;
}

@media (max-width: 767px) {
	.lt-chapter > .lt-chapter__len {
		grid-column: 2;
		text-align: left;
	}

	.lt-chapter__len br {
		display: none;
	}
}

/* ---------- Prices, plans, people ---------- */

.lt-price__label {
	font-size: var(--lt-fs-base);
	font-weight: 500;
}

.lt-price__note {
	color: var(--lt-soft);
	font-size: var(--lt-fs-sm);
}

.lt-price__amount {
	font-size: var(--lt-fs-base);
	font-weight: 700;
	text-align: right;
}

.e-con.lt-plans {
	border-top: 1px solid var(--lt-line);
}

.e-con.lt-plan {
	--padding-top: 1.75rem;
	--padding-bottom: 0.5rem;
	--padding-left: 2rem;
	--padding-right: 2rem;
	border-left: 1px solid var(--lt-line);
}

.e-con.lt-plan:first-child {
	--padding-left: 0;
	border-left: 0;
}

.lt-plan__name .elementor-heading-title {
	font-size: var(--lt-fs-lg);
}

.lt-plan__price {
	color: var(--lt-soft);
}

.lt-plan__price strong {
	color: var(--lt-ink);
	font-size: var(--lt-fs-xl);
	font-weight: 700;
	margin-right: 0.2em;
}

.lt-plan .lt-buttons {
	margin-top: auto;
}

@media (max-width: 1024px) {
	.e-con.lt-plan,
	.e-con.lt-plan:first-child {
		--padding-left: 0;
		--padding-right: 0;
		--padding-bottom: 1.75rem;
		border-left: 0;
		border-bottom: 1px solid var(--lt-line);
	}
}

.lt-person .lt-note {
	color: var(--lt-soft);
}

.e-con.lt-facts {
	--padding-top: 2rem;
	--padding-bottom: 2rem;
	--padding-left: 2rem;
	--padding-right: 2rem;
	align-self: start;
	background: var(--lt-surface);
	border: 1px solid var(--lt-line);
	border-radius: 4px;
}

.lt-tint .e-con.lt-facts {
	background: var(--lt-base);
}

/* ---------- Inner pages ---------- */

.e-con.lt-pagehead {
	--padding-top: clamp(3rem, 2rem + 4vw, 5.5rem);
	--padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem);
	border-bottom: 1px solid var(--lt-line);
}

.lt-pagehead__title .elementor-heading-title {
	font-size: var(--lt-fs-3xl);
	max-width: 20ch;
}

.e-con.lt-desks {
	border-top: 1px solid var(--lt-line);
}

.e-con.lt-desk {
	--padding-top: 2rem;
	--padding-bottom: 2rem;
	--padding-right: 2rem;
	border-bottom: 1px solid var(--lt-line);
}

.lt-desk a {
	font-weight: 600;
}

/* ---------- Dark bands ---------- */

body .lt-dark .elementor-widget-button.lt-btn--primary .elementor-button {
	background: var(--lt-accent);
	color: var(--lt-ink);
}

body .lt-dark .elementor-widget-button.lt-btn--primary .elementor-button:hover {
	background: var(--lt-on-dark);
	color: var(--lt-dark);
}

.lt-cta__title .elementor-heading-title {
	font-size: var(--lt-fs-3xl);
	color: var(--lt-on-dark);
	max-width: 18ch;
}

.e-con.lt-sec.lt-footer {
	--padding-top: 4rem;
	--padding-bottom: 2.5rem;
}

.lt-footer__brand .elementor-heading-title {
	font-size: 1.875rem;
	color: var(--lt-on-dark);
}

.lt-footer__title .elementor-heading-title {
	font-family: var(--lt-font-ui);
	font-size: var(--lt-fs-base);
	font-weight: 600;
	letter-spacing: 0;
	color: var(--lt-on-dark-soft);
}

.lt-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lt-links li {
	margin: 0 0 0.5rem;
}

.lt-credit-bar {
	border-top: 1px solid color-mix(in srgb, var(--lt-on-dark) 14%, transparent);
}

/* ---------- Blog ---------- */

.lt-posts--grid .lt-post {
	border-top: 1px solid var(--lt-line);
	padding-top: 1rem;
}

.lt-posts--grid .lt-post.has-img {
	border-top: 0;
	padding-top: 0;
}

/* ---------- Contact form ---------- */

.e-con.lt-form {
	border: 1px solid var(--lt-line);
	background: var(--lt-base);
	border-radius: 4px;
}

body .lt-form .wpforms-container .wpforms-field-label {
	font-size: 1rem;
	font-weight: 600;
}

/* ---------- Tablet and phones ---------- */

@media (max-width: 1024px) {
	/* Labels no longer line up with the segments: a small chip repeats each chapter's state. */
	.lt-chap__time p::before {
		content: "";
		display: inline-block;
		width: 0.6em;
		height: 0.6em;
		margin-right: 0.45em;
		border-radius: 2px;
		background: var(--lt-line);
		vertical-align: 0.05em;
	}

	.lt-chap.is-done .lt-chap__time p::before {
		background: var(--lt-primary);
	}

	.lt-chap.is-now .lt-chap__time p::before {
		background: var(--lt-accent);
		box-shadow: 0 0 0 1px var(--lt-ink);
	}

	.e-con.lt-chapters {
		--row-gap: 6px !important;
	}
}

@media (max-width: 767px) {
	.lt-topbar-bar .lt-topbar__line:not(.lt-topbar__news) {
		display: none;
	}

	.lt-topbar-bar .elementor-widget-text-editor {
		white-space: normal;
	}

	.lt-bar {
		--bar-h: 12px;
	}

	.lt-bar--hero {
		--bar-h: 16px;
	}

	.lt-bar--scaled {
		--bar-h: 8px;
	}

	.lt-seg__played::after {
		right: -9px;
		width: 18px;
		height: 18px;
		margin-top: -9px;
	}

	.e-con.lt-facts {
		--padding-left: 1.25rem;
		--padding-right: 1.25rem;
	}

	.e-con.lt-desk {
		--padding-right: 0;
	}
}
