/* Alex Smyrk Course — front-end. Premium, editorial, calm.
   Brand direction: Atkinson Hyperlegible, green accent, generous spacing.
   Colours are the agreed starting palette (placeholders, easy to retune). */

.asc-fe {
	--asc-green: #3E5E4E;
	--asc-green-soft: #eef2ee;
	--asc-ink: #232624;
	--asc-body: #2b2b2b;
	--asc-muted: #8a8a84;
	--asc-line: #e8e6df;
	font-family: 'Atkinson Hyperlegible', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--asc-body);
}

/* ---------- Course curriculum ---------- */

.asc-curriculum {
	max-width: 760px;
	margin: 3rem auto 0;
}

.asc-curriculum-label {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--asc-muted);
	margin: 0 0 1.5rem;
}

.asc-c-section {
	margin: 0 0 2.25rem;
}

.asc-c-section-title {
	font-size: 1.5rem;
	line-height: 1.3;
	font-weight: 700;
	color: var(--asc-ink);
	margin: 0 0 1rem;
	padding: 0 0 0.5rem;
	border-bottom: 2px solid var(--asc-green);
}

.asc-c-lessons {
	list-style: none;
	margin: 0;
	padding: 0;
}

.asc-c-lesson {
	margin: 0 0 0.6rem;
}

.asc-c-lesson a {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.9rem 1.1rem;
	border: 1px solid var(--asc-line);
	border-radius: 12px;
	background: #fff;
	text-decoration: none;
	color: var(--asc-body);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.asc-c-lesson a:hover {
	border-color: var(--asc-green);
	box-shadow: 0 6px 20px rgba(62, 94, 78, 0.10);
	transform: translateY(-1px);
}

.asc-c-lesson.is-empty {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.9rem 1.1rem;
	border: 1px dashed #e0ddd4;
	border-radius: 12px;
	color: var(--asc-muted);
}

.asc-c-num {
	flex: 0 0 2rem;
	width: 2rem;
	height: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--asc-green-soft);
	color: var(--asc-green);
	font-weight: 700;
	font-size: 0.9rem;
}

.asc-c-lesson.is-empty .asc-c-num {
	background: #f3f2ec;
	color: #b7b5ac;
}

.asc-c-title {
	flex: 1 1 auto;
	font-size: 1.08rem;
}

.asc-c-chev {
	color: var(--asc-green);
	font-size: 1.5rem;
	line-height: 1;
}

/* ---------- Lesson page ---------- */

.asc-lesson-top {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	margin: 0 0 1.75rem;
}

.asc-back-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.4rem 0.9rem;
	border-radius: 999px;
	background: var(--asc-green-soft);
	color: var(--asc-green);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 700;
	transition: background 0.15s ease, color 0.15s ease;
}

.asc-back-pill:hover {
	background: var(--asc-green);
	color: #fff;
}

.asc-context {
	color: var(--asc-muted);
	font-size: 0.92rem;
}

/* Roomy, dyslexia-friendly reading for lesson content */
.asc-lesson-body {
	font-size: 1.12rem;
	line-height: 1.85;
	letter-spacing: 0.01em;
}

.asc-lesson-nav {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin: 2.75rem 0 0;
	padding: 1.5rem 0 0;
	border-top: 1px solid var(--asc-line);
}

.asc-nav-btn {
	flex: 1 1 0;
	max-width: 48%;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.85rem 1.1rem;
	border: 1px solid var(--asc-line);
	border-radius: 12px;
	text-decoration: none;
	color: var(--asc-body);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.asc-nav-btn:hover {
	border-color: var(--asc-green);
	box-shadow: 0 6px 20px rgba(62, 94, 78, 0.10);
}

.asc-next {
	text-align: right;
	align-items: flex-end;
}

.asc-nav-dir {
	color: var(--asc-green);
	font-weight: 700;
	font-size: 0.85rem;
}

.asc-nav-title {
	font-size: 1.02rem;
}

.asc-nav-btn.asc-disabled {
	border: none;
	box-shadow: none;
	pointer-events: none;
}

@media (max-width: 600px) {
	.asc-nav-btn { max-width: 50%; }
}

/* ---------- Lesson player (curriculum sidebar + main body) ---------- */

.asc-player {
	display: grid;
	grid-template-columns: minmax(240px, 300px) 1fr;
	gap: 2.5rem;
	align-items: start;
	max-width: 1080px;
	margin: 1.5rem auto 0;
}

.asc-player-side {
	position: sticky;
	top: 1.5rem;
}

.asc-side-inner {
	border: 1px solid var(--asc-line);
	border-radius: 14px;
	padding: 1.1rem 1.1rem 1.25rem;
	background: #fff;
	max-height: calc(100vh - 3rem);
	overflow: auto;
}

.asc-side-course {
	display: block;
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--asc-ink);
	text-decoration: none;
	margin: 0 0 1rem;
	padding: 0 0 0.75rem;
	border-bottom: 1px solid var(--asc-line);
}

.asc-side-course:hover {
	color: var(--asc-green);
}

.asc-side-section {
	margin: 0 0 1.1rem;
}

.asc-side-stitle {
	display: block;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: 700;
	color: var(--asc-muted);
	margin: 0 0 0.45rem;
}

.asc-side-lessons {
	list-style: none;
	margin: 0;
	padding: 0;
}

.asc-side-lesson a,
.asc-side-lesson.is-empty span {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.45rem 0.55rem;
	border-radius: 8px;
	font-size: 0.95rem;
	text-decoration: none;
	color: var(--asc-body);
}

.asc-side-lesson a:hover {
	background: var(--asc-green-soft);
}

.asc-side-lesson.is-current a {
	background: var(--asc-green);
	color: #fff;
	font-weight: 700;
}

.asc-side-lesson.is-empty span {
	color: #b7b5ac;
}

.asc-side-num {
	flex: 0 0 auto;
	min-width: 1.3rem;
	font-size: 0.82rem;
	font-weight: 700;
	opacity: 0.8;
}

.asc-side-ltitle {
	flex: 1 1 auto;
}

.asc-player-main {
	min-width: 0;
}

@media (max-width: 880px) {
	.asc-player {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	.asc-player-side {
		position: static;
	}
	.asc-side-inner {
		max-height: none;
	}
}

/* Curriculum rendered inside the theme's (Astra) real sidebar column */
.asc-astra-side {
	position: sticky;
	top: 2rem;
	display: block;
}

@media (max-width: 921px) {
	.asc-astra-side {
		position: static;
	}
	.asc-astra-side .asc-side-inner {
		max-height: none;
	}
}

/* ---------- Plugin template (course/lesson) two-column player ---------- */

.asc-player.asc-tpl {
	max-width: 1200px;
	margin: 2rem auto;
	padding: 0 1.25rem;
}

.asc-tpl .asc-player-main {
	background: #fff;
	border-radius: 14px;
	padding: 2rem 2.25rem;
}

.asc-lesson-title,
.asc-course-title {
	font-size: 2rem;
	line-height: 1.2;
	font-weight: 700;
	color: var(--asc-ink);
	margin: 0 0 1.25rem;
}

.asc-tpl .asc-lesson-top {
	margin-top: 0;
}

.asc-course-overview {
	font-size: 1.08rem;
	line-height: 1.8;
}

.asc-start {
	margin: 1.75rem 0 0;
}

.asc-start-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: var(--asc-green);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	padding: 0.75rem 1.5rem;
	border-radius: 999px;
	transition: opacity 0.15s ease;
}

.asc-start-btn:hover {
	opacity: 0.9;
	color: #fff;
}

@media (max-width: 880px) {
	.asc-tpl .asc-player-main {
		padding: 1.5rem 1.25rem;
	}
}
