/* Alex Smyrk Course — front-end. Premium, editorial, calm.
   Brand direction: theme font, slate accent, generous spacing.

   COLOURS (0.81.0, 28 Sep 2026): every colour in this file is a reference to
   the Alexi theme's tokens.css (var(--alexi-…)), which the theme loads first
   on every page. The --asc-* names below are kept as ALIASES so the rest of
   this file did not have to change; new rules should use --alexi-* directly.
   To change a colour, edit the theme's assets/tokens.css and bump the theme —
   nothing in this plugin needs rebuilding. Local neutrals (hairlines,
   scrollbars, disabled text) stay literal on purpose. */

/* Aliases live on :root so the whole page (incl. <body>, which sits OUTSIDE
   the .asc-fe wrapper) can read them. */
:root {
	/* "Never Too Small" look: white ground, near-black ink, neutral greys.
	   Monochrome & editorial — colour comes from the video stills, not the UI.
	   (--asc-green var name kept for compatibility; it is the single ink accent.) */
	--asc-green: var(--alexi-accent);        /* Alex's accent — soft slate blue (marks, rules, current) */
	--asc-green-soft: var(--alexi-accent-soft);   /* light tint of the accent — selected states / soft fills */
	--asc-success: var(--alexi-success);      /* progress green */
	--asc-here-bg: var(--alexi-tint);      /* "you are here" tint — pale BLUE since 0.80.9 (Alex, 28 Sep 2026; was the pale green #EAF3DE) */
	--asc-here-ink: var(--alexi-tint-ink);     /* its ink — navy (was #173404) */
	/* 0.89.2 (Alex, 13 Oct 2026): the ACTIVE clip is a solid blue block with
	   white text — the current section in the curriculum, its block in the
	   Notes panel, the chosen number on the Final Quiz. The theme's tokens.css
	   may define --alexi-active to retune it; until then this fallback is the
	   value (a clear sky blue, white on it 3.3:1). One place to change. */
	--asc-active: var(--alexi-active, #1A9AD6);
	--asc-active-ink: var(--alexi-active-ink, #FFFFFF);
	--asc-active-hover: rgba(255, 255, 255, 0.18);
	--asc-cta: var(--alexi-success);          /* Start / Continue button green */
	--asc-cta-hover: var(--alexi-success-hover);    /* one step darker for hover */
	--asc-btn-bg: var(--alexi-btn-bg);       /* button rest — the muted "Back to…" pill look */
	--asc-btn-bg-hover: var(--alexi-btn-bg-hover); /* button hover — medium grey */
	--asc-btn-text: var(--alexi-btn-text);     /* button label — dark grey, not near-black */
	--asc-ink: var(--alexi-ink);          /* headings (kept dark for legibility) */
	--asc-body: var(--alexi-body);
	--asc-muted: var(--alexi-muted);
	--asc-line: var(--alexi-line);
	/* The terracotta highlight (0.63.0 → 0.64.0, 5 Sep 2026) for the three
	   "look here" moments: the Free tag, the Featured design items control and
	   the Notes panel's members-only notice (notes.css mirrors these as
	   --asn-highlight-*). 0.64.0: Alex found the solid #E35336 "too strong" and
	   asked for a pastel — so the pattern is now the same as the green "you are
	   here" row: a pale TINT with terracotta INK. Only the tiny Free tag stays
	   solid (muted #B5573A, white text — the one sales hook). Not for buttons in
	   general — the grey pill / green CTA rules still stand. */
	--asc-highlight: var(--alexi-highlight);        /* solid — the Free tag only. 0.65.2: orange (Alex), was terracotta #B5573A */
	--asc-highlight-bg: var(--alexi-warm-tint);     /* pale terracotta tint */
	--asc-highlight-bg-hover: var(--alexi-warm-tint-hover); /* one step deeper for hover */
	--asc-highlight-ink: var(--alexi-warm-ink);    /* terracotta text on the tint (5.9:1) */
}

.asc-fe {
	/* Typography follows the theme (Customizer > Typography) so one
	   setting controls the whole site. Do not hard-code a family here. */
	color: var(--asc-body);
}

/* Course & lesson pages: clean white ground (editorial, gallery-like). */
body.asc-fe-page,
body.asc-fe-page #content,
body.asc-fe-page .site-content,
body.asc-fe-page .ast-container {
	background-color: #fff !important;
}

/* ---------- 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;
}

/* 0.84.4 (Alex, 30 Sep 2026): headings fine, not heavy — 300 for the big
   course/lesson titles (like the theme's h1–h3 and the site title), 400 for
   the small panel titles, matching Alexi theme 1.2.7. */
.asc-c-section-title {
	font-size: 1.5rem;
	line-height: 1.3;
	font-weight: 300;
	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(20, 20, 20, 0.08);
	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.28rem 0.63rem;
	border-radius: 999px;
	background: var(--asc-green-soft);
	color: var(--asc-green);
	text-decoration: none;
	font-size: 0.63rem;
	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;
}

/* ---------- Video embeds keep 16:9 at any width ----------
   The starter content ships a plain <iframe width="800" height="450">. Themes
   cap it with max-width:100%, which shrinks the WIDTH but leaves the height at
   450px — so a narrowed player (notes panel open, or any phone) letterboxes the
   video inside black bands. Pinning the ratio makes the box shrink with the
   video instead. Scoped to YouTube embeds by src so H5P's own iframes, which
   are not 16:9, are left alone. */
.asc-lesson-body iframe[src*="youtube.com/embed"],
.asc-lesson-body iframe[src*="youtube-nocookie.com/embed"],
.asc-player iframe[src*="youtube.com/embed"],
.asc-player iframe[src*="youtube-nocookie.com/embed"] {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
}

/* Roomy, dyslexia-friendly reading for lesson content */
.asc-lesson-body {
	font-size: 1.12rem;
	line-height: 1.85;
	letter-spacing: 0.01em;
	padding-top: 1.5rem;   /* match the left/right padding above the video */
}

/* 0.60.1/0.61.0: exercise strip (every lesson with an H5P) — the lesson title in a pale-green pill (the "you are
   here" tint) followed by the rule ("4 questions, pass mark 75%" / "Pass mark 100%") in body text. Injected
   into the lesson body between the video's control bar and the H5P quiz (see
   ASC_Frontend::inject_quiz_notice), so it inherits the body's side padding
   and only needs its own vertical gaps. Wraps onto two lines when narrow. */
.asc-lesson-body .asc-quiz-note {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem 0.85rem;
	margin: 1.25rem 0 0.75rem;
	padding: 0;
}

/* 0.84.5 (Alex, 30 Sep 2026): the exercise title is no longer a tinted pill.
   It takes the course title's mark — a 6px ink bar on the left, 0.85rem in
   from it — with no background, in the same weight as the course title. */
.asc-lesson-body .asc-quiz-pill {
	display: inline-block;
	margin: 0;
	padding: 0.1rem 0 0.1rem 0.85rem;
	border-left: 6px solid var(--asc-ink);
	border-radius: 0;
	background: transparent;
	color: var(--asc-ink);
	font-size: 1.05rem;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0;
}

.asc-lesson-body .asc-quiz-rule {
	margin: 0;
	font-size: inherit;
	font-weight: 400;
	color: var(--asc-body);
}

.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(20, 20, 20, 0.08);
}

.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(270px, 324px) 1fr;
	gap: 2.5rem;
	align-items: start;
	max-width: 1080px;
	margin: 1.5rem auto 0;
}

/* Sidebar is pinned and scrolls on its own when the curriculum is long, so a
   long course list never pushes the page down — the main content scrolls past
   a stationary sidebar (matches the alexi.cz LifterLMS courses). */
.asc-player-side {
	align-self: start;
	position: sticky;
	/* --asc-side-top is written by lesson.js, which measures whatever is actually
	   pinned at the top of the window (the sticky #masthead Alex added, plus the
	   admin bar). The header's height is not knowable from CSS, and without this
	   the top of the sidebar parks BEHIND it. The sidebar sits FLUSH under the
	   header (0.57.1) — the 0 is only the fallback for a site with no sticky
	   header. */
	top: var(--asc-side-top, 0px);
	max-height: calc(100vh - var(--asc-side-top, 0px) - 1.5rem);
	overflow-y: auto;
	overscroll-behavior: contain;
	border-right: 1px solid var(--asc-line);
}

/* Course title + progress bar stay put while the clips scroll under them.
   Sticky against .asc-player-side, which is the scrolling ancestor. The negative
   top margin hands the inner's top padding to the head, so the gap above the
   title survives when it is pinned. */
.asc-side-head {
	position: sticky;
	top: 0;
	z-index: 3;
	margin-top: -1.25rem;
	padding-top: 1.25rem;
	padding-bottom: 0.85rem;
	background: #fff;
	border-bottom: 1px solid var(--asc-line);
}

.asc-side-head .asc-progress,
.asc-page-head-in .asc-progress {
	margin-bottom: 0;
}

/* Mobile: the bar + tabs move up into the page head, under the design-items
   pill (0.66.6, Alex: same as desktop). Hidden in the sidebar there, like the
   title and the pill; the page head itself is display:none on desktop. */
.asc-page-head-in .asc-progress-wrap {
	margin: 0.6rem 0 0;
}

.asc-page-head-in .asc-progress-wrap + .asc-page-section {
	margin-top: 0.6rem;
}

@media (max-width: 880px) {
	.asc-side-head .asc-progress-wrap {
		display: none;
	}
}

.asc-side-inner {
	border: 0;
	border-radius: 0;
	/* Generous bottom space so the last sections can scroll up near the top and
	   their lessons stay fully visible / clickable, never jammed against the
	   sticky sidebar's bottom edge. (Reset on mobile, below.) */
	padding: 1.25rem 1.5rem 22vh 0;
	background: transparent;
	max-height: none;
	overflow: visible;
}

.asc-side-course {
	display: block;
	font-weight: 400;
	font-size: 1.9rem;
	line-height: 1.3; /* 0.95.17: was 1.15 — more air between the wrapped lines (Alex, 28 Oct 2026) */
	color: var(--asc-ink);
	text-decoration: none;
	margin: 0 0 1.25rem;
	padding-left: 0.85rem;
	border-left: 6px solid var(--asc-ink);
}

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

.asc-progress {
	display: flex;
	/* 0.66.2: bottoms aligned, not centres. The "83%" label is taller than the
	   8px bar, and centring left ~5px of row under the bar — which showed as a
	   gap between the bar and the tabs hanging from it (Alex spotted it in the
	   preview). With flex-end the bar's underside IS the row's underside. */
	align-items: flex-end;
	gap: 0.6rem;
	margin: 0 0 1rem;
}

.asc-progress-track {
	flex: 1 1 auto;
	height: 8px;
	background: #eceae2;
	/* 0.66.4: square ends — a pill bar with square tabs hanging off it looked
	   odd (Alex). */
	border-radius: 0;
	overflow: hidden;
}

.asc-progress-fill {
	display: block;
	height: 100%;
	background: var(--asc-success);
	border-radius: 0;
	transition: width 0.35s ease;
}

.asc-progress-pct {
	flex: 0 0 auto;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1; /* no half-leading below the digits, so nothing hangs under the bar */
	color: var(--asc-success);
}

.asc-side-section {
	margin: 0;
	border-bottom: 1px solid var(--asc-line);
}

.asc-side-section > summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--asc-ink);
	/* 0.89.3: right padding leaves room for the glyph pinned at the right edge. */
	padding: 0.7rem calc(20px + 1rem) 0.7rem 0.85rem;
	border-left: 3px solid var(--asc-line);
	position: relative;
}

.asc-side-section[open] > summary {
	border-left-color: var(--asc-green);
}

/* 0.65.0: the section title is a column — title text, then (on the free
   sample only) the tag on its own line underneath, left-aligned with the
   title. Beside the title the tag fought long clip titles for width
   (0.63.1); under it there is room for "Free exercises with this clip!" (0.65.1 wording). */
.asc-side-stitle-in {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
	min-width: 0;
}

/* 0.63.0: the terracotta tag on the free-sample clip's row, white text.
   Printed only for visitors without membership (see
   ASC_Frontend::sidebar_curriculum()). 0.63.1: tight padding, 4px corners.
   0.65.0: sits under the title (see .asc-side-stitle-in), reads
   "Free exercises with this clip!" (0.65.1 wording). */
.asc-side-free {
	flex: 0 0 auto;
	background: var(--asc-highlight);
	color: #fff;
	/* 0.65.2: 0.9rem — the same size as the clip title above it
	   (.asc-side-section > summary); was 13px since 0.63.2. Weight stays 400
	   (no faux bold — see .asc-di-trigger). */
	font-size: 0.9rem;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0.01em;
	padding: 0.2rem 0.55rem;
	border-radius: 4px;
	white-space: nowrap;
}

/* 0.95.3: the tag is a link to the clip's first exercise — white text stays
   white, no underline; the hover darkens the tag a touch so it reads as
   clickable. */
a.asc-side-free,
a.asc-side-free:visited {
	color: #fff;
	text-decoration: none;
	cursor: pointer;
}

a.asc-side-free:hover,
a.asc-side-free:focus-visible {
	color: #fff;
	text-decoration: none;
	filter: brightness(0.9);
}

/* The section whose lesson is on screen (0.59.0): the Apartment Details pill
   green, so the sidebar and the notes panel point at the same clip in the same
   colour. [open] alone is not enough — the learner can open other sections. */
.asc-side-section.is-current > summary {
	background: var(--asc-here-bg);
	color: var(--asc-here-ink);
	border-left-color: var(--asc-success);
}

.asc-side-section.is-current > summary::before {
	border-color: transparent transparent transparent var(--asc-success);
}

.asc-side-section > summary::-webkit-details-marker {
	display: none;
}

/* 0.74.6 (Alex): the triangle is bigger (was 5px 0 5px 7px — 10px tall,
   7px wide; 0.74.6 doubled it to 20px x 14px, "too big"; 0.74.7 tried
   15px x 10.5px, still too big; 0.74.8 is 13px x 9px) and sits on the FIRST line of the
   section title rather than the vertical middle of the whole row, so a
   two- or three-line clip title keeps the marker up beside its first words.
   align-self takes it out of the row's align-items: center; the margin-top
   centres the 13px triangle on one line box (1lh = the summary's
   line-height, whatever the theme sets). The 0.15em fallback is for a
   browser without the lh unit. */
.asc-side-section > summary::before {
	content: "";
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 6.5px 0 6.5px 9px;
	border-color: transparent transparent transparent var(--asc-green);
	flex: 0 0 auto;
	align-self: flex-start;
	margin-top: 0.25em;
	margin-top: calc((1lh - 13px) / 2);
	transition: transform 0.15s ease;
}

.asc-side-section[open] > summary::before {
	transform: rotate(90deg);
}

.asc-side-section[open] .asc-side-lessons {
	padding-bottom: 0.5rem;
}

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

.asc-side-lesson a,
.asc-side-lesson .asc-side-locked {
	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 {
	/* 0.59.2: no tint — the current lesson carries the progress-green left
	   rule, square corners. 0.89.8 (Alex, 13 Oct 2026): the rule is 5px (was
	   3px, and the active blue since 0.89.9) and the "here" chevron is gone — the thicker rule alone says where
	   you are, and the title gets the chevron's width back. A done tick still
	   shows. */
	background: transparent;
	border-left: 5px solid var(--asc-active);   /* 0.89.9: the active blue, not the progress green */
	border-radius: 0;
	color: var(--asc-ink);
	font-weight: 500;
}

.asc-side-lesson.is-current a:hover {
	background: transparent;
}

/* 0.89.2 (Alex, 13 Oct 2026, from his screenshot): the current section's
   HEADING is a solid blue bar with white text (triangle and play glyph white
   too), and its lesson rows sit in a box outlined in the same blue, joined
   to the bar — "only the title gets the blue background, the lessons have a
   border encapsulating all of them". Rows keep their normal colours. */
.asc-side-section.is-current > summary,
.asc-side-section.is-current > summary:hover {
	background: var(--asc-active);
	color: var(--asc-active-ink);
	border-left-color: var(--asc-active);
}
.asc-side-section.is-current > summary::before {
	border-color: transparent transparent transparent var(--asc-active-ink);
}
.asc-side-section.is-current[open] > .asc-side-lessons {
	border: 2px solid var(--asc-active);
	border-top: 0;
	border-radius: 0 0 8px 8px;
	padding: 0.35rem 0.25rem 0.5rem;
}
.asc-side-section.is-current {
	padding-bottom: 0.4rem;
}

.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: 0;
	}
	/* 0.79.0: the curriculum no longer stacks under the lesson here — it is a
	   slide-in panel on the left edge. All of its rules live in the
	   "Curriculum panel" section at the end of this file. */
}

/* 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-tpl-wrap {
	width: 100%;
}

.asc-player.asc-tpl {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0;
	gap: 0;
	box-sizing: border-box;
}

.asc-tpl .asc-player-main {
	background: transparent;
	border-radius: 0;
	padding: 0 0 2rem;
}

/* Text blocks carry the side padding; the featured image stays full-bleed. */
.asc-page-head,
.asc-course-overview,
.asc-start,
.asc-join-strip-wrap,
.asc-lesson-top,
.asc-lesson-title,
.asc-lesson-body,
.asc-complete-wrap,
.asc-lesson-nav {
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

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

/* ---------- Page head (mobile only) ----------
 * On desktop the course title lives at the top of the curriculum sidebar. On
 * mobile the sidebar stacks BELOW the content, so the title would only appear
 * near the bottom of the page. This block puts it back at the very top — above
 * the featured image on a course page — and, on a lesson page, adds the lesson
 * section title under it in a smaller size. The sidebar's own copy is hidden below 880px
 * so the title never shows twice.
 */
.asc-page-head {
	display: none;
	/* Measured against the live page (31 Aug): the theme leaves NO gap between
	   the nav bar's bottom edge and the top of the main column, so the 15px above
	   the title is set here. The 15px below is the whole gap to the video /
	   featured image — the lesson body's own top padding is zeroed on mobile so
	   the two don't stack (that was the 45px gap Alex flagged). */
	padding-top: 15px;
	margin: 0 0 15px;
}

.asc-page-head-in {
	border-left: 6px solid var(--asc-ink);
	padding-left: 0.85rem;
}

.asc-page-course {
	display: block;
	font-size: 1.9rem;
	font-weight: 400;
	line-height: 1.15;
	color: var(--asc-ink);
	text-decoration: none;
	margin: 0;
}

a.asc-page-course:hover,
a.asc-page-course:focus {
	color: var(--asc-green);
}

.asc-page-section {
	display: block;
	font-size: 1.05rem;
	font-weight: 400;
	line-height: 1.35;
	color: var(--asc-body);
	margin: 0.45rem 0 0;
}

@media (max-width: 880px) {
	.asc-page-head {
		display: block;
	}
	/* The title is at the top of the page now — don't repeat it above the
	   curriculum when the sidebar stacks below. */
	.asc-side-course {
		display: none;
	}
	/* The page head sets the gap down to the video; the lesson body's own top
	   padding would stack on top of it. */
	.asc-tpl .asc-lesson-body {
		padding-top: 0;
	}
	/* 0.74.4 (Alex, 15 Sep 2026): on phones the page head and the video run
	   FULL WIDTH, edge to edge with the featured image (the theme's ~9px
	   container gutter is all that remains) — the head loses its 1.5rem side
	   padding, so its black rule sits on the image's left edge on the course
	   page, and the video paragraph pulls out of the lesson body's padding by
	   the same 1.5rem. Everything below the video (control pills, exercise
	   strip, H5P) keeps the gutter. */
	.asc-page-head {
		padding-left: 0;
		padding-right: 0;
	}
	.asc-tpl .asc-lesson-body p:has( > iframe[src*="youtube.com/embed"] ),
	.asc-tpl .asc-lesson-body p:has( > iframe[src*="youtube-nocookie.com/embed"] ) {
		margin-left: -1.5rem;
		margin-right: -1.5rem;
	}
}

/* 0.77.7 (Alex, 23 Sep 2026): at EVERY width the lesson video now runs edge to
   edge in the main column and starts at the top, the same box as the course
   page's featured image (0.74.4 did this on phones only). The body's top padding
   goes only when the video is its first block, so a lesson without a video keeps
   its spacing. Control pills, exercise strip and H5P keep the 1.5rem gutter. */
.asc-tpl .asc-lesson-body:has( > p:first-child > iframe[src*="youtube.com/embed"] ),
.asc-tpl .asc-lesson-body:has( > p:first-child > iframe[src*="youtube-nocookie.com/embed"] ) {
	padding-top: 0;
}
.asc-tpl .asc-lesson-body p:has( > iframe[src*="youtube.com/embed"] ),
.asc-tpl .asc-lesson-body p:has( > iframe[src*="youtube-nocookie.com/embed"] ) {
	margin-left: -1.5rem;
	margin-right: -1.5rem;
}

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

.asc-course-hero {
	margin: 0 0 1.5rem;
}

.asc-course-hero img {
	display: block;
	width: 100%;
	height: auto;
	/* 0.87.5 (Alex, 6 Oct 2026): every course picture renders at 2:1 — the
	   Paris Luxe image (2.1:1) sat best in the layout, so the slot takes that
	   shape and cover-crops whatever picture is set (most are 16:9, so ~11% of
	   the height goes, split top and bottom). The files are untouched. */
	aspect-ratio: 2 / 1;
	object-fit: cover;
	border-radius: 0;
}

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

/* ---------- Apartment Details card ----------
 * When the block opens the course overview it reads as a white card tucked up
 * over the bottom of the featured image. The overlap applies at EVERY width —
 * mobile deliberately matches desktop (image on top, card pulled up under it).
 */
.asc-course-overview .asc-apt {
	background: #fff;
	border-radius: 10px;
	padding: 1.75rem 1.75rem 1.25rem;
	box-shadow: 0 5px 15px rgba(96, 100, 106, 0.10);
}

.asc-course-overview > .asc-apt:first-child {
	position: relative;
	z-index: 2;
	margin-top: -5rem;
}

/* Architect / designer name as a link keeps the value's weight and colour. */
.asc-apt-link {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid #cfcfcf;
}

/* Small external-link glyph after the name, so it reads as "opens elsewhere".
   Drawn as a mask so it inherits the text colour instead of shipping a coloured
   asset; it scales with the font size (em units) and never wraps on its own. */
.asc-apt-link::after {
	content: "";
	display: inline-block;
	width: 0.58em;
	height: 0.58em;
	margin-left: 0.34em;
	vertical-align: 0.06em;
	background-color: currentColor;
	opacity: 0.7;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E") no-repeat center / contain;
}

.asc-apt-link:hover::after,
.asc-apt-link:focus::after {
	opacity: 1;
}

.asc-apt-link:hover,
.asc-apt-link:focus {
	color: inherit;
	border-bottom-color: currentColor;
}

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

.asc-start-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	background: var(--asc-cta);
	color: #fff;
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	padding: 0.45rem 1.05rem;
	border-radius: 999px;
	transition: background-color 0.15s ease;
}

.asc-start-btn:hover {
	background: var(--asc-cta-hover);
	color: #fff;
}

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

/* ---------- 0.100.0: one page per clip — exercise panes under one player ---------- */
/* The clip's video sits in its own body (.asc-clip-video) so every rule that
   bleeds the video edge to edge still matches; each exercise is a pane below
   it. A hidden pane (.asc-pane-off) is NOT display:none — it is laid out off-screen at the
   column's full width, so its H5P exercise sizes itself correctly while
   hidden and appears at the right height the moment it is shown. */
.asc-panes {
	position: relative;
}
.asc-pane.asc-pane-off {
	position: absolute;
	top: 0;
	left: -300vw;
	width: 100%;
	visibility: hidden;
	pointer-events: none;
}
.asc-pane .asc-pane-body {
	padding-top: 0; /* the exercise strip follows the control bar, as it did inside one body */
}

/* ---------- Progress: completion marks, locking, mark-complete ---------- */

.asc-side-mark {
	flex: 0 0 1.1rem;
	width: 1.1rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.85rem;
	line-height: 1;
}

.asc-side-mark.is-done {
	/* Completed = the progress green, so the ticks read as the same signal as
	   the progress bar rather than as another accent. */
	color: var(--asc-success);
	font-weight: 700;
}

.asc-side-mark.is-lock {
	color: #c3c1b8;
}

/* "You are here" chevron on the current lesson (0.59.0) — the progress green,
   bold stroke, sits where the tick or padlock would. */
.asc-side-mark.is-here {
	color: var(--asc-success);
}

.asc-side-mark.is-here svg {
	display: block;
	width: 15px;
	height: 15px;
}
/* 0.89.8: the chevron mark is not printed on the current lesson any more —
   its 5px left rule marks it (see .asc-side-lesson.is-current a). */
.asc-side-lesson.is-current .asc-side-mark.is-here {
	display: none;
}

.asc-side-lesson.is-locked .asc-side-locked {
	color: #b7b5ac;
	cursor: default;
}

/* Not written yet — a clock-with-arrow where the padlock would be. Deliberately
   NOT the padlock, which means "not yet earned": one glyph should not mean both
   "finish the previous lesson" and "this does not exist". Muted grey, like the
   lock, so a half-built course stays quiet — change this one value to #FF6B5B if
   the placeholders should announce themselves instead. */
.asc-side-lesson.is-soon .asc-side-locked {
	cursor: default;
}

.asc-side-mark.is-soon {
	color: #c3c1b8;
}

/* 0.73.0 (Alex, 13 Sep 2026): the "▶ Clip x video" row is gone — the section
   title itself is the link to its video (every section, since 0.73.2 —
   Introduction and free clip included), with the film glyph riding beside
   it as the click cue, dimmed to opacity 0.6 until hover/focus so it doesn't
   outweigh the title text. Replaces the 0.69.0 → 0.70.0 button rules. 0.73.2
   swapped it for a solid red play button; 0.73.3 (Alex): back to the film
   icon, "much better" — a little bigger than the original 0.73.0 size
   (1.15em → 1.3em). */
.asc-side-stitle-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: inherit;
	text-decoration: none;
}

.asc-side-stitle-link:hover,
.asc-side-stitle-link:focus-visible {
	color: var(--asc-success);
}

.asc-side-stitle-link:focus-visible {
	outline: 2px solid var(--asc-green);
	outline-offset: 2px;
}

/* 0.89.6 (Alex, 13 Oct 2026): the glyph on a section heading is a single
   solid video camera (class-asc-frontend.php), pinned to the heading's right
   edge and vertically centred, so the cameras of every heading sit in one
   column whatever the title's length. currentColor: the heading's ink at
   rest (faded, full on hover), white on the active blue heading. (0.89.3–
   0.89.5 tried a full-height film strip — rejected.) */
.asc-side-stitle-link .asc-side-mark.is-play {
	position: absolute;
	top: 50%;
	right: 0.55rem;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	opacity: 0.55;
	transition: opacity 0.15s ease;
}

.asc-side-stitle-link .asc-side-mark.is-play svg {
	display: block;
	width: 20px;
	height: 20px;
}

.asc-side-stitle-link:hover .asc-side-mark.is-play,
.asc-side-stitle-link:focus-visible .asc-side-mark.is-play {
	opacity: 1;
}

.asc-side-section.is-current .asc-side-stitle-link .asc-side-mark.is-play {
	opacity: 1;
}

/* 0.89.2: on the blue heading the title link, its hover and the play glyph
   stay white — the green hover would vanish into the blue. 0.89.8 (Alex): no
   background on the link in any state — the theme's link-hover tint was
   showing as a pale patch over the title on the blue bar — and no underline.
   Hovering ANY section heading now paints it the same blue-with-white as the
   active one (title, triangle and camera included). */
.asc-side-section.is-current .asc-side-stitle-link,
.asc-side-section.is-current .asc-side-stitle-link:hover,
.asc-side-section.is-current .asc-side-stitle-link:focus-visible,
.asc-side-section > summary:hover .asc-side-stitle-link,
.asc-side-section > summary:hover .asc-side-stitle-link:hover {
	color: var(--asc-active-ink);
}
.asc-side-stitle-link,
.asc-side-stitle-link:hover,
.asc-side-stitle-link:focus,
.asc-side-stitle-link:focus-visible,
.asc-side-stitle-link:active {
	background: transparent !important;
	box-shadow: none !important;
	text-decoration: none !important;
}
.asc-side-section.is-current .asc-side-stitle-link:focus-visible,
.asc-side-section > summary:hover .asc-side-stitle-link:focus-visible {
	outline-color: var(--asc-active-ink);
}
.asc-side-section > summary:hover {
	/* !important: the theme's style.css paints this hover with the pale tint
	   (.asc-side-section > summary:hover { background: var(--alexi-tint) })
	   and loads after us (Alex, 13 Oct 2026 — came out pale blue with white text). */
	background: var(--asc-active) !important;
	color: var(--asc-active-ink) !important;
	border-left-color: var(--asc-active) !important;
}
.asc-side-section > summary:hover::before {
	border-color: transparent transparent transparent var(--asc-active-ink);
}
.asc-side-section > summary:hover .asc-side-mark.is-play {
	opacity: 1;
}

.asc-complete-wrap {
	margin: 1.75rem 0 0;
}

.asc-complete-btn {
	background: var(--asc-green);
	color: #fff;
	border: 0;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.2;
	padding: 0.5rem 1.15rem;
	border-radius: 999px;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.asc-complete-btn:hover {
	opacity: 0.9;
}

.asc-complete-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.asc-complete-done {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--asc-green);
	font-weight: 700;
}

.asc-nav-btn.asc-disabled-next {
	opacity: 0.55;
	pointer-events: none;
}

.asc-nav-hint {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.78rem;
	font-weight: 400;
	color: var(--asc-muted);
}

/* Locked lesson notice (0.68.0, restyled 0.71.2). Stands in for the H5P
   exercise on a lesson the member's sequence has not reached. Since 0.71.2 it
   is the SAME box as the join panel and the Notes members-only notice — pale
   terracotta tint, terracotta ink, 8px corners, no rule (Alex, 9 Sep 2026:
   "style this notification the same way"). Its button reuses .asc-join-btn.
   Where the lesson has no exercise to swap it sits under the video bar. */
.asc-locked-notice {
	background: var(--asc-highlight-bg);
	color: var(--asc-highlight-ink);
	border: 0;
	border-radius: 8px;
	padding: 1.15rem 1.35rem 1.25rem;
	margin: 1.5rem 0;
	font-size: .95rem;
	line-height: 1.55;
	text-align: left;
}

.asc-locked-notice .asc-locked-text {
	margin: 0 0 1rem;
	color: var(--asc-highlight-ink);
	/* 0.73.4: no max-width — the sentence sits on one line at desktop width. */
}

.asc-locked-notice .asc-start {
	margin: 0;
	padding: 0;
}

@media (max-width: 880px) {
	.asc-locked-notice {
		padding: 1rem 1.15rem 1.1rem;
		margin: 1.25rem 0;
	}
}

/* ---------- Replay clip ---------- */

/* Video controls sit directly under the player (lesson.js moves the bar there),
   so they inherit the lesson body's side padding. The gap to the video is
   deliberately tight — the buttons belong to the player above them. */
/* The video usually sits in its own <p>; that paragraph's bottom margin would
   otherwise push the buttons away from the player. lesson.js zeroes it too — this
   rule just gets there first, in browsers that support :has(). */
.asc-lesson-body p:has( > iframe[src*="youtube.com/embed"] ),
.asc-lesson-body p:has( > iframe[src*="youtube-nocookie.com/embed"] ) {
	margin-bottom: 0;
}

.asc-video-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 10px 0 0.5rem;
}

/* Styled after YouTube's own overlay pill: medium grey, white label, darker on
   hover. Uses !important to sit above the theme-button overrides further down
   this file, which paint every other .asc-* button in the muted grey scheme. */
.asc-vc-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	background: #9f9f9f !important;
	color: #fff !important;
	border: 0 !important;
	box-shadow: none !important;
	font-family: inherit;
	font-size: 0.9rem;         /* 0.85.2: a tad smaller all round (was .95rem / 32px icons / .3rem .85rem) */
	font-weight: 500;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background 0.15s ease;
}

.asc-vc-btn:hover,
.asc-vc-btn:focus,
.asc-vc-btn:active {
	background: #6d6d6d !important;
	color: #fff !important;
}

.asc-vc-btn:focus-visible {
	outline: 2px solid var(--asc-muted);
	outline-offset: 2px;
}

.asc-vc-ic {
	flex: 0 0 auto;
	/* 0.84.2 (Alex, 30 Sep 2026): icons doubled, 16px → 32px. 0.85.2: 28px. */
	width: 28px;
	height: 28px;
}

/* 0.84.2 (Alex, 30 Sep 2026): Play clip is green, Pause is red — the icon and
   the label in the colour, on white, with a 1px border of the same colour
   (outline buttons, like the Details / tab style). Hover fills with the
   colour's pale tint. 0.84.3: Replay clip is the same outline style in dark
   grey (--alexi-body text and border, --alexi-btn-bg fill on hover). */
.asc-vc-btn.asc-play-btn,
.asc-vc-btn.asc-play-btn:focus {
	background: #fff !important;
	color: var(--alexi-success) !important;
	border: 1px solid var(--alexi-success) !important;
}
.asc-vc-btn.asc-play-btn:hover,
.asc-vc-btn.asc-play-btn:active {
	background: var(--alexi-success-tint) !important;
	color: var(--alexi-success-hover) !important;
	border-color: var(--alexi-success-hover) !important;
}
.asc-vc-btn.asc-pause-btn,
.asc-vc-btn.asc-pause-btn:focus {
	background: #fff !important;
	color: var(--alexi-danger) !important;
	border: 1px solid var(--alexi-danger) !important;
}
.asc-vc-btn.asc-pause-btn:hover,
.asc-vc-btn.asc-pause-btn:active {
	background: var(--alexi-error-bg) !important;
	color: var(--alexi-danger) !important;
	border-color: var(--alexi-danger) !important;
}
.asc-vc-btn.asc-replay-btn,
.asc-vc-btn.asc-replay-btn:focus {
	background: #fff !important;
	color: var(--alexi-body) !important;
	border: 1px solid var(--alexi-body) !important;
}
.asc-vc-btn.asc-replay-btn:hover,
.asc-vc-btn.asc-replay-btn:active {
	background: var(--alexi-btn-bg) !important;
	color: var(--alexi-ink) !important;
	border-color: var(--alexi-ink) !important;
}

/* 0.85.0: Cinema pill — same dark-grey outline as Replay; filled dark while
   cinema mode is on. The backdrop is a near-opaque fixed layer above the
   header (99), curriculum bar (100) and Notes overlay (99998+); the video's
   <p> and the Cinema pill get .asc-cinema-lift so they sit above it. */
.asc-vc-btn.asc-cinema-btn,
.asc-vc-btn.asc-cinema-btn:focus {
	background: #fff !important;
	color: var(--alexi-body) !important;
	border: 1px solid var(--alexi-body) !important;
}
.asc-vc-btn.asc-cinema-btn:hover,
.asc-vc-btn.asc-cinema-btn:active {
	background: var(--alexi-btn-bg) !important;
	color: var(--alexi-ink) !important;
	border-color: var(--alexi-ink) !important;
}
.asc-vc-btn.asc-cinema-btn[aria-pressed="true"],
.asc-vc-btn.asc-cinema-btn[aria-pressed="true"]:focus,
.asc-vc-btn.asc-cinema-btn[aria-pressed="true"]:hover {
	background: var(--alexi-ink) !important;
	color: #fff !important;
	border-color: var(--alexi-ink) !important;
}
.asc-cinema-backdrop {
	position: fixed;
	inset: 0;
	background: #000;
	opacity: 0;
	visibility: hidden;
	z-index: 100010;
	transition: opacity 0.25s ease, visibility 0s linear 0.25s;
	cursor: pointer;
}
.asc-cinema-backdrop.is-on {
	opacity: 0.8;   /* 0.85.1: 80% (was 92%) */
	visibility: visible;
	transition: opacity 0.25s ease;
}
.asc-cinema-lift {
	position: relative;
	z-index: 100011;
}
/* 0.85.2: Cinema is icon-only (no label, square-ish pill). While cinema mode
   is on, Play / Pause / Replay are dimmed to look covered by the backdrop but
   remain above it and clickable; hovering one brings it back to full. */
.asc-vc-btn.asc-cinema-btn {
	padding-left: 0.5rem;
	padding-right: 0.5rem;
	gap: 0;
}
.asc-vc-btn.asc-cinema-btn span {
	display: none;
}
body.asc-cinema-on .asc-vc-clip,
body.asc-cinema-on .asc-vc-btn:not(.asc-cinema-btn) {
	opacity: 0.2;
	transition: opacity 0.2s ease, background 0.15s ease;
}
body.asc-cinema-on .asc-vc-clip:hover,
body.asc-cinema-on .asc-vc-btn:not(.asc-cinema-btn):hover,
body.asc-cinema-on .asc-vc-btn:not(.asc-cinema-btn):focus-visible {
	opacity: 1;
}

/* 0.73.7: on phones the three labelled pills wrapped onto two rows, so below
   480px they become icon-only (the aria-label on each button carries the text
   for screen readers). 0.73.8: still pills, not circles — the three share the
   row equally, each ~110px wide, with a wider gap between them, so a thumb
   can't easily land on the wrong one. 0.74.3: 35px tall — the same height as
   the desktop pills (17.1px line + 9px padding each side), not 46px (Alex:
   "the same height/thickness as on desktop view"). */
@media (max-width: 480px) {
	.asc-video-controls {
		flex-wrap: nowrap;
		gap: 0.75rem;
	}
	/* 0.84.2: with 32px icons the desktop pills are ~50px tall, so the phone
	   pills take the same vertical padding and the same icon — still the same
	   height as desktop, as 0.74.3 asked (was a fixed 35px with 22px icons). */
	.asc-vc-btn {
		flex: 1 1 0;
		min-width: 0;
		height: auto;
		padding: 0.3rem 0;
		justify-content: center;
		gap: 0;
	}
	.asc-vc-btn span {
		display: none;
	}
	.asc-vc-btn .asc-vc-ic {
		width: 28px;
		height: 28px;
	}
}

/* 0.89.0 (Alex, 13 Oct 2026): the Final Quiz control bar is a strip of
   numbered clip buttons — one small round button per clip, in place of the
   Play / Pause / Replay / Cinema pills (not printed on that page). Same
   dark-grey outline as Replay, filled dark while that clip is the chosen
   one. The numbers never wrap: the strip is a carousel that scrolls sideways
   (finger or trackpad, snapping to a button) when the clips don't fit —
   Alex: "a kind of carousel the user can scroll left or right". The
   scrollbar is hidden; a fade at each end shows there is more, and 0.89.1
   adds an arrow button at each end for mice (see below). */
.asc-vc-clips {
	box-sizing: border-box;        /* padding inside the flex basis, so the strip never outgrows the bar */
	display: flex;
	flex: 1 1 100%;
	min-width: 0;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.45rem;
	padding: 2px 4px;              /* room for the focus ring / border */
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient( to right, transparent 0, #000 14px, #000 calc( 100% - 14px ), transparent 100% );
	mask-image: linear-gradient( to right, transparent 0, #000 14px, #000 calc( 100% - 14px ), transparent 100% );
}
.asc-vc-clips::-webkit-scrollbar {
	display: none;
}
.asc-vc-clip {
	flex: 0 0 auto;
	scroll-snap-align: start;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0 !important;
	border-radius: 50%;
	/* 0.89.3: blue ring and blue number at rest (was dark grey), so the strip
	   reads as one family with the active one, which is filled blue. */
	background: #fff !important;
	color: var(--asc-active) !important;
	border: 1.5px solid var(--asc-active) !important;
	box-shadow: none !important;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background 0.15s ease;
}
.asc-vc-clip:hover,
.asc-vc-clip:active {
	background: var(--asc-here-bg) !important;   /* pale blue tint */
	color: var(--asc-active) !important;
	border-color: var(--asc-active) !important;
}
.asc-vc-clip:focus-visible {
	outline: 2px solid var(--asc-muted);
	outline-offset: 1px;
}
.asc-vc-clip.is-active,
.asc-vc-clip.is-active:hover,
.asc-vc-clip.is-active:focus {
	/* 0.89.2: the same active blue as the curriculum and Notes blocks (was navy). */
	background: var(--asc-active) !important;
	color: var(--asc-active-ink) !important;
	border-color: var(--asc-active) !important;
}
/* 0.89.1: the scroll arrows lesson.js puts at each end of the strip (hidden
   while there is nothing more that way). Play-button green, like Alex drew
   them; the strip's end-fade only shows on the side that can still scroll. */
.asc-video-controls.asc-vc-has-clips {
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.15rem;
}
.asc-vc-arrow {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 38px;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 8px;
	background: transparent !important;
	color: #2a8a3a !important;
	box-shadow: none !important;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.asc-vc-arrow:hover,
.asc-vc-arrow:active {
	background: var(--alexi-btn-bg) !important;
	color: #1f6b2c !important;
}
.asc-vc-arrow:focus-visible {
	outline: 2px solid var(--asc-muted);
	outline-offset: 1px;
}
.asc-vc-arrow[hidden] {
	display: none !important;
}
.asc-vc-clips:not(.can-prev):not(.can-next) {
	-webkit-mask-image: none;
	mask-image: none;
}
.asc-vc-clips.can-next:not(.can-prev) {
	-webkit-mask-image: linear-gradient( to right, #000 calc( 100% - 14px ), transparent 100% );
	mask-image: linear-gradient( to right, #000 calc( 100% - 14px ), transparent 100% );
}
.asc-vc-clips.can-prev:not(.can-next) {
	-webkit-mask-image: linear-gradient( to right, transparent 0, #000 14px );
	mask-image: linear-gradient( to right, transparent 0, #000 14px );
}
/* 0.100.9 (Alex, 10 Nov 2026): Pause / Replay clip / Cinema sit to the right
   of the numbers on the Final Quiz. The strip is now only as wide as its
   numbers (it still shrinks and scrolls when they don't fit), so the pills
   follow the last number instead of being pushed off the row. */
.asc-vc-has-clips .asc-vc-clips {
	flex: 0 1 auto;
}
.asc-vc-has-clips .asc-vc-btn {
	flex: 0 0 auto;
	margin-left: 0.4rem;
}
@media (max-width: 480px) {
	.asc-vc-clip {
		width: 40px;
		height: 40px;
	}
	.asc-vc-arrow {
		height: 40px;
	}
	/* Phones: numbers keep the full first row; the three pills share a second
	   row, icon-only, like the pills on every other lesson. */
	.asc-video-controls.asc-vc-has-clips {
		flex-wrap: wrap;
		row-gap: 0.5rem;
	}
	.asc-vc-has-clips .asc-vc-clips {
		flex: 1 1 calc( 100% - 70px );
	}
	.asc-vc-has-clips .asc-vc-btn {
		flex: 1 1 28%;             /* wider than the room left beside the strip, so the pills wrap */
		margin-left: 0;
		margin-right: 0.6rem;
	}
	.asc-vc-has-clips .asc-vc-btn:last-child {
		margin-right: 0;
	}
}

/* 0.85.5: "Tap the video to play" hint, floated over the video by lesson.js
   when a browser (Brave on phones) refuses to let our buttons start it. Taps
   pass straight through to YouTube's own play button underneath. Sits in the
   upper part of the frame, clear of that button (centre) and the control bar. */
.asc-play-hint {
	position: absolute;
	top: 18%;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	pointer-events: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.2rem;
	white-space: nowrap;
	background: rgba(0, 0, 0, 0.78);
	color: #fff;
	border-radius: 18px;
	padding: 0.5rem 1rem;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.asc-play-hint[hidden] {
	display: none;
}

/* 0.99.7: Final Quiz poster — the course's featured image over the uncut
   video until the first press (ASC_Frontend::final_quiz_poster, lesson.js 2f).
   Fills the video's <p>, cover-cropped to the player's 16:9; the play ring
   is the solid dark pill, CTA green on hover/focus. Same layer as the veil
   (z 4), under the play hint (z 5). */
.asc-fq-stage {
	position: relative;
}
.asc-fq-poster {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #000;
	cursor: pointer;
	overflow: hidden;
}
.asc-fq-poster[hidden] {
	display: none;
}
.asc-fq-poster img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.asc-fq-play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 76px;
	height: 54px;
	margin: -27px 0 0 -38px;
	border-radius: 14px;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	display: grid;
	place-items: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
	transition: background 0.15s ease, transform 0.15s ease;
}
.asc-fq-play svg {
	margin-left: 3px;
}
.asc-fq-poster:hover .asc-fq-play,
.asc-fq-poster:focus-visible .asc-fq-play {
	background: var(--asc-cta, #2e9e5b);
	transform: scale(1.06);
}
.asc-fq-poster:focus-visible {
	outline: 3px solid var(--asc-active);
	outline-offset: -3px;
}

/* 0.98.1: covers the player while lesson.js primes the clip poster (plays the
   clip muted for a second and pauses it) so nothing is seen moving — the
   clip's frame appears when it is ready. Fills the video's <p>; removed by the
   script. 0.98.4 (Alex): white, no percentage. 0.98.6 (Alex, from a picture of
   a classic Windows progress bar): one bigger bar — a thin outlined track in
   the active blue with chunky blocks inside that fill from the left, in the
   same blue as the active clip and Notes block. */
.asc-poster-veil {
	position: absolute;
	inset: 0;
	z-index: 4;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}
.asc-poster-load {
	display: flex;
	flex-direction: row;
	gap: 3px;
	box-sizing: border-box;
	width: 280px;
	max-width: 70%;
	height: 36px;
	padding: 3px;
	border: 2px solid var(--asc-active);
	border-radius: 3px;
	background: #fff;
}
.asc-poster-seg {
	display: block;
	flex: 1 1 0;
	height: 100%;
	border-radius: 1px;
	background: transparent;
	transition: background-color 0.12s ease;
}
.asc-poster-seg.is-lit {
	background: var(--asc-active);
}
@media (max-width: 480px) {
	.asc-poster-load {
		height: 28px;
		gap: 2px;
		padding: 2px;
	}
}

/* 0.85.6: Brave only — the one part of the hint that catches a tap. */
.asc-play-hint-link {
	pointer-events: auto;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0.15rem 0.25rem !important;
	color: #fff !important;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
/* The "Allow autoplay in Brave" popup reuses the Design items modal look.
   0.85.7: sized to the VISIBLE screen (dvh — on phones 100vh reaches under
   the browser's address bar, which hid the top of the panel), and the
   recording kept short enough that heading, picture and steps all fit. */
.asc-ap-modal {
	padding: 0.75rem;
}
.asc-ap-panel {
	width: min(420px, 100%);
	max-height: calc(100vh - 1.5rem);
	max-height: calc(100dvh - 1.5rem);
	padding: 1.1rem 1.25rem 0.75rem;
}
.asc-ap-video {
	display: block;
	width: auto;
	max-width: 100%;
	height: 34vh;
	height: 34dvh;
	margin: 0.4rem auto 0.6rem;
	border-radius: 10px;
	background: #111;
}
.asc-ap-video {
	cursor: zoom-in;
}
.asc-ap-zoom-hint {
	margin: -0.3rem 0 0.6rem;
	text-align: center;
	font-size: 0.85rem;
	color: var(--asc-muted);
}
/* 0.85.8: tapped — the recording fills the visible screen on black; tap again
   (or Escape) to go back to the steps. */
.asc-ap-modal.is-zoomed .asc-ap-video {
	position: fixed;
	inset: 0;
	z-index: 3;
	width: 100%;
	max-width: none;
	height: 100vh;
	height: 100dvh;
	margin: 0;
	border-radius: 0;
	object-fit: contain;
	background: #000;
	cursor: zoom-out;
}
.asc-ap-steps {
	margin: 0 0 0.5rem 1.25rem;
	padding: 0;
	font-size: 1rem;
	line-height: 1.6;
}

/* ---------- H5P-gated mark complete ---------- */

/* With an exercise present, the button is hidden until lesson.js confirms the
   learner finished it correctly and adds .is-unlocked. */
.asc-complete-wrap[data-asc-h5p-gated="1"] .asc-complete-btn {
	display: none;
}

.asc-complete-wrap[data-asc-h5p-gated="1"].is-unlocked .asc-complete-btn {
	display: inline-block;
}

.asc-gate-hint {
	margin: 0;
	color: var(--asc-muted);
	font-size: 0.95rem;
	font-style: italic;
}

/* ---------- Restart course (learner, shown at 100%) ---------- */

.asc-reset-btn {
	background: #fff;
	color: var(--asc-green);
	border: 2px solid var(--asc-green);
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.2;
	padding: 0.5rem 1.15rem;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

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

/* Armed (awaiting the confirming second click) — warn with a warmer tone. */
.asc-reset-btn.is-armed,
.asc-admin-btn.is-armed {
	background: var(--alexi-danger);
	border-color: var(--alexi-danger);
	color: #fff;
}

.asc-reset-btn:disabled,
.asc-admin-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.asc-reset-note {
	margin: 0.85rem 0 0;
	color: var(--asc-muted);
	font-size: 0.92rem;
	line-height: 1.6;
}

/* ---------- Sidebar action: Start / Next lesson / Completed + Reset (0.66.0) ----------
   Lives in the pinned sidebar head, straight under the progress bar (Alex,
   7 Sep 2026 — the Continue button at the foot of the overview was below the
   fold on a real course). Same green pill as the old Start button; the badge
   is the "you are here" tint + ink with a green tick; Reset is the muted grey
   pill every other course button uses, with a small (i) beside it that shows
   the hint on hover, keyboard focus, or a tap. */

.asc-side-action {
	position: relative; /* the hint bubble is positioned against this */
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 0 4px;
	/* 0.66.1: TABS, not pills (Alex, 7 Sep 2026 — "smaller, hanging under the
	   percentage bar, no rounded corners"). No gap above: the tabs hang from
	   the bar's underside, square on every corner, at the small chip size. */
	margin: 0;
}

.asc-side-cta,
.asc-done-badge,
.asc-side-reset {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	/* 0.66.6: a touch smaller again so "Course complete" + "Reset course" + (i)
	   fit on ONE row at the narrowest real sidebar (~276px of content). */
	padding: 0.26rem 0.6rem;
	/* 0.66.3: square where they meet the bar, 5px on the two bottom corners —
	   the tab shape (Alex). !important beats the pill radius on the shared
	   .asc-start-btn / .asc-reset-btn rules. */
	border-radius: 0 0 5px 5px !important;
	font-size: 0.76rem;
	/* 0.66.5: regular weight, forced. The theme loads Lexend Deca at 400 only,
	   so 500/600 are browser-synthesised — Alex saw the tab text blurry on
	   the live site (same faux-bold smear as the Free tag, 0.63.x). The shared
	   .asc-start-btn rule asks for 600, hence the !important. */
	font-weight: 400 !important;
	line-height: 1.2;
	white-space: nowrap;
}

.asc-done-badge {
	background: var(--asc-here-bg);
	color: var(--asc-here-ink);
}

.asc-reset-wrap {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.asc-hint {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	color: var(--asc-muted);
	cursor: help;
	outline: 0;
	-webkit-tap-highlight-color: transparent;
}

.asc-hint:hover,
.asc-hint:focus-visible,
.asc-hint.is-open {
	color: var(--asc-btn-text);
}

.asc-hint:focus-visible {
	outline: 2px solid var(--asc-muted);
	outline-offset: 2px;
}

.asc-hint-ic {
	stroke: currentColor !important;
}

/* The little arrow hangs off the (i) itself, so it always points at the icon
   wherever the row wraps. */
.asc-hint::after {
	content: "";
	position: absolute;
	top: calc(100% + 4px);
	left: 50%;
	width: 10px;
	height: 10px;
	margin-left: -5px;
	background: var(--asc-ink);
	transform: rotate(45deg);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.15s ease, visibility 0s linear 0.15s;
	pointer-events: none;
}

/* The hint bubble: full width of the action row, just under it. Hidden until
   the (i) is hovered, keyboard-focused, or tapped (lesson.js toggles is-open). */
.asc-hint-tip {
	position: absolute;
	top: calc(100% + 9px);
	left: 0;
	right: 0;
	z-index: 5;
	padding: 0.55rem 0.75rem;
	border-radius: 8px;
	background: var(--asc-ink);
	color: #fff;
	font-size: 0.82rem;
	font-weight: 400;
	line-height: 1.45;
	white-space: normal;
	box-shadow: 0 5px 15px rgba(96, 100, 106, 0.18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-3px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
	pointer-events: none;
}

.asc-hint:hover::after,
.asc-hint:focus-visible::after,
.asc-hint.is-open::after,
.asc-hint:hover + .asc-hint-tip,
.asc-hint:focus-visible + .asc-hint-tip,
.asc-hint.is-open + .asc-hint-tip {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition-delay: 0s;
}

/* ---------- Admin tools (lesson page, admins only) ---------- */

.asc-admin-tools {
	margin: 2rem 1.5rem 0;
	padding: 1rem 1.25rem;
	border: 1px dashed #d6d3c8;
	border-radius: 12px;
	background: #fbfaf6;
}

.asc-admin-tools-label {
	display: block;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.7rem;
	font-weight: 700;
	color: var(--asc-muted);
	margin: 0 0 0.75rem;
}

.asc-admin-tools-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.asc-admin-btn {
	background: #fff;
	color: var(--asc-ink);
	border: 1px solid var(--asc-line);
	font-family: inherit;
	font-size: 0.88rem;
	font-weight: 700;
	padding: 0.45rem 1rem;
	border-radius: 999px;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.asc-admin-btn:hover {
	border-color: var(--asc-green);
	background: var(--asc-green-soft);
}

/* Preview-mode toggle: link styled as a pill; green fill when active. */
a.asc-preview-toggle {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

a.asc-preview-toggle.is-on {
	background: var(--asc-green);
	border-color: var(--asc-green);
	color: #fff;
}

a.asc-preview-toggle.is-on:hover {
	background: var(--asc-green);
	color: #fff;
}

/* ---------- One muted button look, everywhere ----------
   All course buttons share the soft "Back to…" pill: light grey at rest,
   medium grey on hover, dark-grey label — no fills, no strong ink. Forced
   (!important) so the theme's default (blue) button colours can't bleed in,
   including on hover. The site-wide theme colour (Read More, links) is set
   separately in Astra Customizer → Global → Colors. */
.asc-complete-btn,
.asc-reset-btn {
	-webkit-tap-highlight-color: transparent;
	background: var(--asc-btn-bg) !important;
	color: var(--asc-btn-text) !important;
	border: 0 !important;
	box-shadow: none !important;
}
.asc-complete-btn:hover,
.asc-complete-btn:focus,
.asc-complete-btn:active,
.asc-reset-btn:hover,
.asc-reset-btn:focus,
.asc-reset-btn:active {
	background: var(--asc-btn-bg-hover) !important;
	color: var(--asc-btn-text) !important;
}
.asc-complete-btn:disabled {
	background: var(--asc-btn-bg) !important;
	opacity: 0.5;
}

/* Preserve the two-click "armed" reset warning (red) over the rules above. */
.asc-reset-btn.is-armed,
.asc-admin-btn.is-armed {
	background: var(--alexi-danger) !important;
	border-color: var(--alexi-danger) !important;
	color: #fff !important;
}

/* Start / Continue is the one coloured button on the course page: solid green,
   white label. Forced so the theme's link/button colours can't bleed in. */
.asc-start-btn {
	-webkit-tap-highlight-color: transparent;
	background: var(--asc-cta) !important;
	color: #fff !important;
	border: 0 !important;
	box-shadow: none !important;
}
.asc-start-btn:hover,
.asc-start-btn:focus,
.asc-start-btn:active {
	background: var(--asc-cta-hover) !important;
	color: #fff !important;
}

.asc-start-btn:focus-visible,
.asc-complete-btn:focus-visible,
.asc-reset-btn:focus-visible {
	outline: 2px solid var(--asc-muted);
	outline-offset: 2px;
}

/* ---------- H5P action buttons → same muted pill (H5P defaults to blue) ----------
   Works when the exercise renders inline in the page (the usual case). If an
   exercise is embedded in an <iframe>, its buttons are outside our CSS and H5P
   controls that colour separately. */
.asc-lesson-body .h5p-joubelui-button,
.asc-lesson-body .h5p-question-check-answer,
.asc-lesson-body .h5p-question-try-again,
.asc-lesson-body .h5p-question-show-solution,
.asc-lesson-body .h5p-content button {
	background: var(--asc-btn-bg) !important;
	background-image: none !important;
	border-color: var(--asc-btn-bg) !important;
	color: var(--asc-btn-text) !important;
	box-shadow: none !important;
	text-shadow: none !important;
}
.asc-lesson-body .h5p-joubelui-button:hover,
.asc-lesson-body .h5p-question-check-answer:hover,
.asc-lesson-body .h5p-content button:hover {
	background: var(--asc-btn-bg-hover) !important;
	border-color: var(--asc-btn-bg-hover) !important;
	color: var(--asc-btn-text) !important;
}

/* ---------- "Back to Course Home Page" pill (alexi look) ----------
   Kept distinct from the grey action buttons: a soft accent-tinted, bordered
   pill that fills with the accent on hover. Sits BELOW the lesson title. */
.asc-back-pill {
	background: var(--asc-green-soft) !important;
	color: var(--asc-green) !important;
	border: 1px solid #cdd6df !important;
	box-shadow: none !important;
}
.asc-back-pill:hover,
.asc-back-pill:focus {
	background: var(--asc-green) !important;
	color: #fff !important;
	border-color: var(--asc-green) !important;
}

/* Lesson title: no left bar; lighter weight; breathing room above. */
.asc-lesson-title {
	font-weight: 300;
	padding-top: 25px;
}

/* ---------- Scrollbars: white track, light-grey divider on the left ---------- */
.asc-player-side {
	scrollbar-width: thin;
	scrollbar-color: #d5d5d0 #ffffff;   /* Firefox: thumb, track */
}
.asc-player-side::-webkit-scrollbar {
	width: 12px;
	background: #ffffff;
}
.asc-player-side::-webkit-scrollbar-track {
	background: #ffffff;
	border-left: 1px solid var(--asc-line);
}
.asc-player-side::-webkit-scrollbar-thumb {
	background: #d5d5d0;
	border-radius: 999px;
	border: 3px solid #ffffff;   /* slim thumb with a white gutter */
	background-clip: padding-box;
}

/* ------------------------------------------------------------------ */
/* Join panel — stands in for the H5P exercise on an open-video course  */
/* when the visitor has no access. See ASC_Access::join_panel().        */
/* ------------------------------------------------------------------ */

/* 0.71.0 (Alex, 9 Sep 2026): the same box as the Notes panel's members-only
   notice (.asc-notes-lead in notes.css) — pale terracotta tint, terracotta
   ink, 8px corners, no rule — so the two "for members" messages on a lesson
   page read as one voice. Buttons are outlined in the same ink. */
.asc-join-panel {
	background: var(--asc-highlight-bg);
	color: var(--asc-highlight-ink);
	border: 0;
	border-radius: 8px;
	padding: 1.15rem 1.35rem 1.25rem;
	margin: 1.5rem 0;
}

.asc-join-title {
	margin: 0 0 .35rem;
	color: var(--asc-highlight-ink);
	font-size: 1.05rem;
	font-weight: 400;
	line-height: 1.3;
}

.asc-join-text {
	margin: 0 0 1rem;
	color: var(--asc-highlight-ink);
	font-size: .95rem;
	line-height: 1.55;
	max-width: 52ch;
}

.asc-join-actions {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .6rem;
}

.asc-join-btn {
	display: inline-block;
	background: transparent;
	color: var(--asc-highlight-ink);
	border: 1px solid var(--asc-highlight-ink);
	border-radius: 6px;
	padding: .4rem .8rem;
	font-size: .9rem;
	font-weight: 400;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .15s ease;
}

.asc-join-btn:hover,
.asc-join-btn:focus {
	background: var(--asc-highlight-bg-hover);
	color: var(--asc-highlight-ink);
	text-decoration: none;
}

.asc-join-btn:focus-visible {
	outline: 2px solid var(--asc-highlight-ink);
	outline-offset: 2px;
}

/* The free clip is the one thing worth pointing at — solid, like the sidebar's
   orange Free tag. */
.asc-join-btn.asc-join-free {
	background: var(--asc-highlight);
	border-color: var(--asc-highlight);
	color: #fff;
}

.asc-join-btn.asc-join-free:hover,
.asc-join-btn.asc-join-free:focus {
	background: var(--alexi-highlight-hover);
	border-color: var(--alexi-highlight-hover);
	color: #fff;
}

/* Text link used by the course-page join strip (course_join_strip()). */
.asc-join-link {
	color: var(--asc-green);
	font-size: .95rem;
	text-decoration: underline;
}

/* ---------- Free-sample note ----------
   Sits under a working exercise on the clip the course gives away. Quieter than
   the join panel — the visitor is not blocked, so this is an invitation, not an
   explanation. Buy is the button here (they have just done the exercise); the
   log-in link is the footnote, which is the reverse of the join panel on purpose. */

/* 0.72.0: the same terracotta box as the join panel / Notes notice. */
.asc-free-note {
	background: var(--asc-highlight-bg);
	color: var(--asc-highlight-ink);
	border: 0;
	border-radius: 8px;
	padding: 1.15rem 1.35rem 1.25rem;
	margin: 1.5rem 0 0;
}

.asc-free-note-title {
	margin: 0 0 .35rem;
	color: var(--asc-highlight-ink);
	font-size: 1.05rem;
	font-weight: 400;
	line-height: 1.3;
}

.asc-free-note-text {
	margin: 0 0 1rem;
	color: var(--asc-highlight-ink);
	font-size: .95rem;
	line-height: 1.55;
	max-width: 52ch;
}

.asc-free-note-actions {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .6rem;
}

/* "Try the first clip free" — inside the join panel on a gated lesson. */
.asc-join-try {
	margin: 0 0 1.15rem;
	font-size: .95rem;
}

.asc-join-try a {
	color: var(--asc-success);
	font-weight: 600;
	text-decoration: none;
}

.asc-join-try a:hover,
.asc-join-try a:focus { text-decoration: underline; }

/* ---------- Course page join strip ----------
   Under "Start course" on an open-video course, for a visitor without
   membership. Deliberately quieter than the lesson join panel: watching is
   free, so the green Start course button stays the loud one and this only
   explains what membership adds. */

/* 0.72.0: the same terracotta box as the join panel / Notes notice (Alex:
   "restyle this, and any other info block the same"). */
.asc-join-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	background: var(--asc-highlight-bg);
	color: var(--asc-highlight-ink);
	border: 0;
	border-radius: 8px;
	padding: 1.15rem 1.35rem;
	margin: 1.25rem 0 0;
}

.asc-join-strip-text {
	flex: 1 1 20rem;
}

.asc-join-strip-title {
	margin: 0 0 .25rem;
	color: var(--asc-highlight-ink);
	font-size: 1.05rem;
	font-weight: 400;
	line-height: 1.3;
}

.asc-join-strip-note {
	margin: 0;
	color: var(--asc-highlight-ink);
	font-size: .95rem;
	line-height: 1.55;
	max-width: 52ch;
}

.asc-join-strip-actions {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .6rem;
}

/* 0.95.8 (Alex, 25 Oct 2026: "only mobile"): on the COURSE page the orange
   "Try Exercise 1, it's free!" button shows only below 880px, where the
   curriculum is a slide-in panel and its Free tag is out of sight. On desktop
   the fixed curriculum bar already carries that link, so the strip keeps just
   Choose Membership + Login there. Lesson join panels are unaffected. */
.asc-join-strip .asc-join-free {
	display: none;
}

@media (max-width: 880px) {
	.asc-join-strip .asc-join-free {
		display: inline-block;
	}
}

@media (max-width: 480px) {
	.asc-join-panel { padding: 1.15rem; }
	.asc-join-actions { gap: .75rem; }
	.asc-join-btn { width: 100%; text-align: center; }
	.asc-join-strip { padding: 1rem; }
	.asc-join-strip-actions { width: 100%; gap: .75rem; }
	.asc-free-note { padding: 1rem; }
	.asc-free-note-actions { width: 100%; gap: .75rem; }
}

/* ---------- Design items (0.58.0) ----------
 * The pieces named in the video. A pill UNDER THE COURSE TITLE (sidebar head
 * on desktop, page head on mobile) ("Featured design items") opens a popup holding the
 * list: one row per piece — picture, name, maker (linked), note, and the
 * clip + moment on the right (on a phone, 0.67.1: a bottom sheet, the pill on
 * a second line under the text). The whole row is one link back to that moment.
 * The popup is printed in the footer (outside .asc-fe), so its tokens come
 * from :root like everything else.
 */
/* Directly under the course title: in the pinned sidebar head (desktop) and
   in the mobile page head (phone) — one control, the same place the title is.
   0.58.3 (Alex's brief): chair · table · lamp glyphs after the text; a bold
   chevron; and a tighter gap down to the progress bar.
   0.63.0 (Alex, 5 Sep 2026): a terracotta block; 0.64.0: a pale terracotta TINT
   with terracotta text, glyphs and chevron — so it reads as a feature, not a link.
   Forced with !important like every other button here, so Astra's theme
   button colours can't bleed in on hover. */
.asc-di-trigger-wrap {
	margin: -0.55rem 0 0.55rem;
}

.asc-page-head-in .asc-di-trigger-wrap {
	margin: 0.4rem 0 0;
}

@media (max-width: 880px) {
	/* The sidebar's title is hidden here; the page head carries the pill. */
	.asc-side-head .asc-di-trigger-wrap {
		display: none;
	}
}

.asc-di-trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	max-width: 100%;
	/* 0.64.4: outlined, not tinted (Alex: "no background colour and just a
	   thin border and dark grey text"). The terracotta tint stays on the
	   Free tag and the Notes notice only. !important kept so Astra's theme
	   button colours can't bleed in on hover/focus. */
	background: transparent !important;
	color: var(--asc-btn-text) !important;
	border: 1px solid var(--alexi-outline);
	/* 0.63.1: rounded corners, not a pill, and slimmer — the pill's round ends
	   plus 0.9rem padding wrapped the label onto two lines in the live sidebar
	   (Alex's screenshot, Paris course). Everything on one line, always.
	   0.64.0: pale tint + terracotta ink instead of a solid block. */
	border-radius: 6px;
	padding: 0.34rem 0.55rem;
	font: inherit;
	/* 0.63.2: regular weight — 700 rendered blurry: the theme loads Lexend Deca
	   at the Customizer's weights only, so a 700 the browser hasn't got is
	   faux-bolded (smeared) rather than drawn from a real bold face. Never ask
	   for a weight the site doesn't load.
	   0.64.2: 0.9rem — the same size as the clip headings in the curriculum
	   (.asc-side-section > summary), so the control sits in their scale. */
	font-size: 0.9rem;
	font-weight: 400;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: none;
	-webkit-tap-highlight-color: transparent;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

/* 0.95.14 (Alex, 28 Oct 2026): hover/focus = the same solid active blue with
   white ink as the curriculum section headings (.asc-side-section > summary:hover),
   so the pill and the sidebar react alike. Glyphs and chevron go white too. */
.asc-di-trigger:hover,
.asc-di-trigger:focus,
.asc-di-trigger:active {
	background: var(--asc-active) !important;
	color: var(--asc-active-ink) !important;
	border-color: var(--asc-active);
	outline: none;
}

.asc-di-trigger:hover .asc-di-icons,
.asc-di-trigger:focus .asc-di-icons,
.asc-di-trigger:active .asc-di-icons {
	color: var(--asc-active-ink);
}

.asc-di-trigger:focus-visible {
	outline: 2px solid var(--asc-green);
	outline-offset: 2px;
}

.asc-di-icons {
	display: inline-flex;
	gap: 0.3rem;
	flex: 0 0 auto;
	color: var(--asc-btn-text);
}

.asc-di-icons svg {
	width: 1.1em;
	height: 1.1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* 0.64.3: flex:0 0 auto — at 0.9rem in Lexend Deca the row ran to the
   sidebar's full width and the chevron, being the last flex item, was
   squeezed to a sliver (Alex's screenshot). Neither the glyphs nor the
   chevron may ever shrink; the padding and gaps were trimmed to make room. */
.asc-di-trigger::after {
	content: "";
	flex: 0 0 auto;
	width: 0.5em;
	height: 0.5em;
	margin-left: 0.1rem;
	border-right: 2.5px solid currentColor;
	border-bottom: 2.5px solid currentColor;
	transform: rotate(-45deg);
}

.asc-di-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
}

.asc-di-modal[hidden] {
	display: none;
}

.asc-di-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(26, 26, 26, 0.45);
}

.asc-di-panel {
	position: relative;
	width: min(640px, 100%);
	/* 0.100.10: capped at the modal's padded box, the panel's own padding
	   counted in (border-box). It was calc(100vh - 2.5rem): on a tablet a long
	   list made the panel taller than the visible screen, and the centring
	   pushed its top, with the ×, out of view. */
	box-sizing: border-box;
	max-height: 100%;
	overflow: auto;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 18px 50px rgba(20, 24, 30, 0.25);
	padding: 1.6rem 1.75rem 1.1rem;
	color: var(--asc-body);
}

.asc-di-close {
	position: absolute;
	top: 0.7rem;
	right: 0.8rem;
	width: 2rem;
	height: 2rem;
	border: 0;
	border-radius: 999px;
	background: var(--asc-btn-bg) !important;
	color: var(--asc-btn-text) !important;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.asc-di-close:hover,
.asc-di-close:focus {
	background: var(--asc-btn-bg-hover) !important;
	outline: none;
}

.asc-di-title {
	margin: 0 2.5rem 0.25rem 0;
	font-size: 1.15rem;
	font-weight: 500;
	line-height: 1.3;
	color: var(--asc-ink);
}

.asc-di-lead {
	margin: 0 0 0.5rem;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--asc-muted);
}

.asc-di {
	display: flex;
	align-items: center;
	gap: 1.1rem;
	padding: 0.85rem 0;
	color: inherit;
	text-decoration: none;
	border-top: 1px solid var(--asc-line);
	line-height: 1.4;
}

/* The piece block (picture + name + maker + note) is ONE link to the maker's
   site (0.62.0); the green pill on the right is the only link to the video. */
.asc-di-piece {
	display: flex;
	align-items: center;
	gap: 1.1rem;
	flex: 1 1 auto;
	min-width: 0;
	color: inherit;
	text-decoration: none;
	/* 0.94.1 (Alex): the hover tint used to stop dead at the picture's left
	   edge. Pad the link and pull the padding back with a negative margin so
	   the layout does not move, and round the corners of the tinted block. */
	padding: 0.5rem;
	margin: -0.5rem;
	border-radius: 10px;
	transition: background-color 0.15s ease;
}

a.asc-di-piece:hover,
a.asc-di-piece:focus {
	color: inherit;
	background-color: var(--asc-here-bg);
	text-decoration: none;
	outline: none;
}

a.asc-di-piece:hover .asc-di-name,
a.asc-di-piece:focus .asc-di-name {
	color: var(--asc-green);
}

a.asc-di-piece:hover .asc-di-brand,
a.asc-di-piece:focus .asc-di-brand {
	color: var(--asc-body);
	border-bottom-color: currentColor;
}

a.asc-di-piece:hover .asc-di-brand::after,
a.asc-di-piece:focus .asc-di-brand::after {
	opacity: 1;
}

a.asc-di-clip {
	color: #fff;
	text-decoration: none;
}

a.asc-di-clip:hover,
a.asc-di-clip:focus {
	color: #fff;
	background: var(--asc-cta-hover);
	text-decoration: none;
	outline: none;
}

.asc-di-art {
	display: block;
	position: relative;
	flex: 0 0 110px;
	width: 110px;
	aspect-ratio: 4 / 3;
	border-radius: 8px;
	background: var(--asc-green-soft);
	overflow: hidden;
}

.asc-di-art img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* No picture yet — a quiet initial on the tint, never a broken image. */
.asc-di-noimg {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-size: 1.8rem;
	font-weight: 300;
	color: var(--asc-green);
	opacity: 0.6;
}

.asc-di-body {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
}

.asc-di-name {
	display: block;
	font-size: 1rem;
	font-weight: 500;
	color: var(--asc-ink);
	transition: color 0.15s ease;
}

/* Maker line: underlined with the external-link glyph (.asc-apt-link) when the
   block opens the maker's site; plain muted text when there is no URL. */
.asc-di-brand,
.asc-di-brand.asc-apt-link {
	display: inline;
	font-size: 0.85rem;
	color: var(--asc-muted);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.asc-di-brand.asc-apt-link {
	border-bottom-color: #d8d8d4;
}

.asc-di-note {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.85rem;
	font-weight: 300;
	color: var(--asc-body);
}

/* The clip + moment: a green play button, white text, small triangle on the
   right — the one control in the row that plays the video (0.62.0). */
.asc-di-clip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	flex: 0 0 auto;
	font-size: 0.78rem;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	color: #fff;
	background: var(--asc-cta);
	border-radius: 999px;
	padding: 0.46rem 0.7rem 0.46rem 0.85rem;
	transition: background 0.15s ease;
}

.asc-di-play {
	width: 0.7em;
	height: 0.7em;
	flex: 0 0 auto;
	fill: currentColor;
}

body.asc-di-open {
	overflow: hidden;
}

/* Phone (0.67.1, Alex, 8 Sep 2026 — "improve the layout"): the panel is a
   BOTTOM SHEET the full width of the screen, and each row is TWO lines — the
   piece (picture + name + maker + note) on the first using the whole width,
   the green clip pill on the second, lined up under the text — instead of
   three cramped columns that folded the maker line one word per line. */
@media (max-width: 600px) {
	/* 0.87.2 (Alex, 5 Oct 2026): every phone modal starts a quarter of the
	   way down the VISIBLE screen (dvh) and fills the rest — the dimmed top
	   quarter is a big tap-to-close target, and nothing hides under the
	   browser's address bar. The panel scrolls inside itself; the × is sticky
	   so it stays in the top-right corner however far the list is scrolled. */
	.asc-di-modal {
		padding: 25vh 0 0;
		padding-top: 25dvh;
		align-items: stretch;
	}
	.asc-di-panel {
		width: 100%;
		max-height: none;
		overscroll-behavior: contain;
		border-radius: 14px 14px 0 0;
		padding: 8px 1rem 1rem;
	}
	/* 0.87.3 (Alex): smaller and higher — 34px, 8px from the sheet's top and
	   right edges, in px so the theme's root size can't inflate it; the
	   title keeps clear of it. The sheet's own top padding is 8px (the title
	   carries the rest) because a sticky box can't be pulled above its
	   container's padding with a negative margin. */
	.asc-di-close {
		position: sticky;
		top: 0;          /* sticky offsets count from inside the sheet's 8px padding */
		right: auto;
		z-index: 2;
		display: block;
		width: 34px !important;
		height: 34px !important;
		min-width: 0 !important;
		min-height: 0 !important;
		margin: 0 calc(8px - 1rem) -34px auto;
		font-size: 22px;
		line-height: 34px;
	}
	.asc-di-title {
		margin-top: calc(1.1rem - 8px);
		margin-right: 34px;
		font-size: 1.05rem;
	}
	.asc-ap-video {
		height: 26vh;
		height: 26dvh;
	}
	.asc-di-lead {
		font-size: 0.85rem;
		line-height: 1.4;
		margin-bottom: 0.4rem;
	}
	.asc-di {
		flex-wrap: wrap;
		gap: 0.55rem 0.75rem;
		padding: 0.7rem 0;
	}
	.asc-di-piece {
		flex: 1 1 100%;
		gap: 0.75rem;
		align-items: flex-start;
		padding: 0.4rem;
		margin: -0.4rem;
	}
	.asc-di-art {
		flex-basis: 92px;
		width: 92px;
	}
	.asc-di-name {
		font-size: 0.98rem;
		line-height: 1.3;
	}
	.asc-di-brand,
	.asc-di-brand.asc-apt-link,
	.asc-di-note {
		font-size: 0.82rem;
	}
	.asc-di-note {
		line-height: 1.35;
	}
	.asc-di-clip {
		margin-left: calc(92px + 0.75rem);
		padding: 0.4rem 0.65rem 0.4rem 0.8rem;
	}
}

/* 0.100.10 (Alex, 11 Nov 2026 — "right at the top and slightly off screen"):
   tablets, portrait and landscape, get a clear margin above the panel (and a
   matching one below), so it reads as a popup floating over the page. */
@media (min-width: 601px) and (max-width: 1366px) {
	.asc-di-modal {
		padding: 48px 1.25rem 32px;
	}
}

/* ---------- Final Quiz feedback popup (0.75.0) ----------
   Shares the design-items modal shell (.asc-di-modal / panel / backdrop /
   close) so the site has one popup style. Two views inside the panel: the
   question with Give feedback / Skip, then the form itself. */

/* 0.75.1 (Alex): wider, so the form's two-column rows have room. */
.asc-fb-panel {
	width: min(780px, 100%);
}

.asc-fb-lead {
	margin: 0.35rem 0 1rem;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--asc-body);
}

.asc-fb-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 0.35rem;
}

/* Skip: quiet outlined pill, the same height as the green button beside it. */
.asc-fb-skip,
.asc-fb-again {
	background: transparent;
	color: var(--asc-body);
	border: 1px solid #C9C9C4;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.2;
	padding: calc(0.5rem - 1px) 1.15rem;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.asc-fb-skip:hover,
.asc-fb-skip:focus,
.asc-fb-again:hover,
.asc-fb-again:focus {
	background: #F3F3F0;
	border-color: #B5B5B0;
	outline: none;
}

/* "Give feedback" under an already-completed Final Quiz sits beside the tick. */
.asc-fb-again {
	margin-left: 1rem;
	font-size: 0.9rem;
	padding: calc(0.4rem - 1px) 0.95rem;
}

.asc-fb-form {
	padding-top: 0.25rem;
	/* Clear the × in the corner now that there is no heading above the form. */
	padding-right: 2.25rem;
}

/* Skip under the form (0.75.2): quiet, right-aligned, clear of the form's Submit. */
.asc-fb-actions--form {
	justify-content: flex-end;
	margin: 0.75rem 0 0;
	padding-top: 0.75rem;
	border-top: 1px solid #ECECE8;
}

/* The celebration canvas (0.75.2): over everything, clicks pass through. */
.asc-party {
	position: fixed;
	inset: 0;
	z-index: 100001;
	pointer-events: none;
}

/* The form plugin's own layout stays; only keep it inside the panel. */
.asc-fb-form form {
	max-width: 100%;
}

@media (max-width: 600px) {
	.asc-fb-panel {
		width: 100%;
	}
	.asc-fb-actions .asc-complete-btn,
	.asc-fb-skip {
		flex: 1 1 auto;
		text-align: center;
	}
}

/* ---------- Curriculum panel on phones and portrait tablets (0.79.0) ----------
   Alex, 26 Sep 2026: below 880px the curriculum no longer stacks under the
   lesson (where nobody scrolled down to it). It is a panel that slides in
   from the LEFT edge of the screen — the mirror of the Notes panel on the
   right. A pull tab "Clips ›" flush against the left edge, level with the
   nav bar, opens it; the same tab on the panel's own top-left ("‹ Clips")
   closes it, so open and closed render in one spot and only the arrow flips.
   Everything is copied from the Notes tabs (notes.css "Pull tabs"): same
   height and top (--asn-nav-bottom, measured from the live nav bar by
   notes.js), same hairline, no shadow, weight 400 — the two tabs bracket the
   nav bar symmetrically and the theme centres the site title between them
   (the Alexi theme keeps a lane free on each side, reading
   --asc-cur-pull-w for this one).
   Closed on every page load: a panel that covers the lesson must never
   remember itself open. Above 880px nothing here applies and the sidebar is
   the ordinary pinned column. */
:root {
	--asc-cur-w: 340px;
	--asc-cur-pull-w: 120px;  /* lane from the screen edge for the "Clips ›" tab (~108px wide since 0.84.7) — the theme reads it */
}

.asc-cur-pull,
.asc-cur-backdrop {
	display: none;
}

@media (max-width: 880px) {
	.asc-player-side {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		/* 0.81.2 (Alex, 29 Sep 2026: "on mobile the Clips panel does not
		   scroll"): the base grid rule's align-self:start applies to this
		   fixed box too (Box Alignment), so Chrome dropped bottom:0 and the
		   panel was as tall as its contents — off the bottom of the screen,
		   nothing to scroll. Same gotcha the desktop bar hit in 0.80.0. */
		align-self: stretch;
		height: auto;
		width: var(--asc-cur-w);
		max-width: 90vw;
		z-index: 99999;
		background: #fff;
		border-right: 1px solid var(--asc-line);
		max-height: none;
		overflow-y: auto;
		overscroll-behavior: contain;
		transform: translateX(-100%);
		transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	}
	.asc-cur-open .asc-player-side {
		transform: translateX(0);
	}

	.asc-side-inner {
		padding: 0 1.5rem 3rem;
	}

	/* The panel's header: as tall as the nav bar (like the Notes panel head),
	   pinned while the clips scroll under it, with the course title starting
	   clear of the close tab's lane. The negative side margins take it to the
	   panel's edges so its bottom hairline runs the full width. */
	.asc-side-head {
		position: sticky;
		top: 0;
		z-index: 3;
		display: flex;
		align-items: center;
		margin: 0 -1.5rem 0.75rem;
		padding: 10px 14px 10px calc(var(--asc-cur-pull-w, 86px) + 10px);
		min-height: var(--asn-nav-bottom, 80px);
		background: #fff;
		border-bottom: 1px solid var(--asc-line);
	}
	/* 0.79.0 showed the course title here, sized like the Notes panel's.
	   0.80.1 (Alex, 27 Sep 2026): gone again — the page head at the top of
	   the lesson already carries it (and is the link home), so in the panel it
	   was only extra text to read. The head is the "‹ Clips" close tab alone,
	   kept as tall as the nav bar. */
	.asc-side-course {
		display: none;
	}

	/* ---- The pull tabs ---- */
	.asc-cur-pull {
		position: fixed;
		left: 0;
		top: max(12px, calc(var(--asn-nav-bottom, 80px) / 2 - var(--asn-pull-h, 38px) / 2));
		z-index: 99998;
		display: inline-flex;
		align-items: center;
		gap: 6px;
		height: var(--asn-pull-h, 38px) !important;
		width: auto !important;
		padding: 0 .7rem 0 .85rem !important;
		margin: 0;
		background: #fff !important;
		color: var(--alexi-body) !important;
		border: 1px solid var(--alexi-body) !important;
		border-left: 0 !important;
		border-radius: 0 999px 999px 0 !important;
		box-shadow: none !important;
		cursor: pointer;
		appearance: none;
		-webkit-appearance: none;
		-webkit-tap-highlight-color: transparent;
		font: inherit;
		font-size: .95rem !important;
		font-weight: 500 !important;
		letter-spacing: normal;
		line-height: 1.2;
		white-space: nowrap;
		transition: opacity 0.2s ease, background 0.15s ease;
	}
	/* Hover in the "you are here" green, the site's link-hover convention
	   (the theme forces the same onto the Notes tab). */
	.asc-cur-pull:hover,
	.asc-cur-pull:active {
		background: var(--asc-here-bg) !important;
		color: var(--asc-here-ink) !important;
	}
	.asc-cur-pull:focus {
		outline: none;
	}
	.asc-cur-pull:focus-visible {
		box-shadow: 0 0 0 3px var(--alexi-focus-ring) !important;
	}
	.asc-cur-arr {
		display: block;
		flex: 0 0 auto;
		color: var(--asc-green);
		stroke: currentColor !important;
		pointer-events: none;
	}
	/* The closer sits inside the panel's pinned head, so it stays put while
	   the clips scroll; the head's top is the panel's top, so the same
	   top formula lands it exactly where the opener was. */
	.asc-cur-close {
		position: absolute;
		z-index: 2;
	}
	.asc-cur-open .asc-cur-tab {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}

	/* ---- Backdrop ---- */
	.asc-cur-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 99998;
		background: rgba(20, 20, 20, 0.42);
		opacity: 0;
		transition: opacity 0.3s ease;
	}
	.asc-cur-backdrop[hidden] {
		display: none;
	}
	.asc-cur-open .asc-cur-backdrop {
		opacity: 1;
	}
}

/* Phones: edge to edge, like the Notes panel. */
@media (max-width: 480px) {
	.asc-player-side {
		width: 100%;
		max-width: 100%;
	}
}

/* ---------- Fixed course sidebar (desktop, 0.80.0) ----------
   Alex, 27 Sep 2026: "the sidebar where the lessons are and the heading of
   the whole video course — a fixed bar along the left side of the web page.
   It's not a panel." From 881px up the curriculum column is no longer a
   grid column under the nav bar: it is pinned to the left edge of the
   screen, from the very top of the window to the bottom, and everything
   else (#page: the nav bar, the lesson, the footer) is laid out in the
   space to its right, so the nav bar only spans that space and the theme
   centres the site title in it. The bar scrolls on its own; .asc-side-head
   stays pinned at its top as before. Below 880px nothing here applies —
   the sidebar is the slide-in Clips panel (above). The Notes panel, when
   docked at 1200px+, takes the same 330px on the right (notes.css, 0.100.8) and the
   theme still runs the nav bar under it (theme 1.1.2), so the title centres
   on the space between this bar and the right edge of the screen. */
:root {
	--asc-side-w: 330px;   /* 0.100.8: 330px, the same as the Notes panel (--asn-w) — Alex, 4 Nov 2026 ("both panels the same"; 400 and 360 tried in 0.100.6/7 were too big). Was 324px, the widest the old grid column got. */
}

@media (min-width: 881px) {
	body.asc-fe-page #page {
		margin-left: var(--asc-side-w);
	}
	/* 0.95.21 (Alex, 1 Nov 2026): the theme's content container keeps a 20px
	   gutter each side, which left a strip of white between the nav bar's
	   edges and the featured image / lesson video. On ASC pages the text
	   blocks carry their own 1.5rem padding, so the container's gutter goes
	   and the picture and video run edge to edge of the content column. */
	body.asc-fe-page .site-content > .site-content-inner {
		padding-left: 0;
		padding-right: 0;
	}
	/* 0.98.8 (Alex, 2 Nov 2026, on a wide desktop screen): the content column
	   is capped — the theme's .site-content-inner at 1240px and .asc-player at
	   1200px — so on a screen wider than that the featured image and the
	   lesson video stopped short of the nav bar's edges, with white either
	   side (narrower screens, and the Notes panel docked, never showed it
	   because the column was under the cap). The text keeps its 1200px
	   reading width; only the picture and the video break out to the full
	   column. lesson.js measures #page (the space right of the fixed bar,
	   minus the docked Notes panel) into --asc-col-w; the element is made
	   that wide and pulled left by half the difference between its box and
	   the column, which is exactly where the column starts, because the
	   capped boxes are centred. Without the script the var is unset and the
	   layout is as before. */
	body.asc-fe-page .asc-course-hero {
		width: var(--asc-col-w, 100%);
		margin-left: calc( ( 100% - var(--asc-col-w, 100%) ) / 2 );
		margin-right: 0;
	}
	/* The video's <p> sits inside the lesson body's 1.5rem padding, so its
	   100% is 3rem short of the column; the fallback (no script) is the old
	   -1.5rem bleed. */
	body.asc-fe-page .asc-tpl .asc-lesson-body p:has( > iframe[src*="youtube.com/embed"] ),
	body.asc-fe-page .asc-tpl .asc-lesson-body p:has( > iframe[src*="youtube-nocookie.com/embed"] ) {
		width: var(--asc-col-w, calc( 100% + 3rem ));
		margin-left: calc( ( 100% - var(--asc-col-w, calc( 100% + 3rem )) ) / 2 );
		margin-right: 0;
	}
	/* One column now: the aside is out of the flow. */
	.asc-player.asc-tpl {
		grid-template-columns: minmax(0, 1fr);
	}
	.asc-player-side {
		position: fixed;
		top: 0;                  /* lesson.js's --asc-side-top no longer applies: nothing is above the bar */
		left: 0;
		bottom: 0;
		/* The old grid rule's align-self:start would make Chrome drop bottom:0
		   (Box Alignment applies to positioned boxes too) and the bar would
		   run past the window instead of scrolling. */
		align-self: stretch;
		width: var(--asc-side-w);
		height: auto;
		max-height: none;
		z-index: 100;            /* above the theme's sticky header (99); the Notes overlay (99998+) still covers it */
		background: #fff;
		border-right: 1px solid var(--asc-line);
		overflow-y: auto;
		overscroll-behavior: contain;
	}
	body.admin-bar .asc-player-side {
		top: 32px;
	}
	/* The bar is at the screen edge now, so it carries its own left gutter. */
	.asc-side-inner {
		padding: 1.5rem 1.5rem 22vh 1.5rem;
	}
	/* 0.80.3 (Alex, 27 Sep 2026): the head covers the WHOLE width of the bar.
	   It used to be only as wide as the inner's content box, so the bar's
	   1.5rem side gutters (and the scrollbar lane) were never painted white:
	   the rows scrolling under it showed at its edges — the nowrap "Free
	   exercises with this clip!" tag, wider than the column, poked out past
	   the head's right edge. Negative side margins take the head to the
	   bar's edges (its right edge now sits under the scrollbar) and the same
	   padding puts the title back where it was. */
	.asc-side-head {
		margin: -1.5rem -1.5rem 0;
		/* 0.80.6 (Alex): the same gap under the Continue pill as above it,
		   before the head's hairline and the first section. Was 0.85rem;
		   5px in 0.80.6, 10px in 0.80.7 ("5 pixels looks much too small"). */
		padding: 1.5rem 1.5rem 10px;
	}
	/* 0.80.8 (Alex, 28 Sep 2026): the admin pills (Clip times here, Add video
	   from ASC Video Queue 0.3.2) now sit in the bottom-RIGHT corner, so they
	   no longer need moving in from the bar's right edge — the old
	   `left: calc(var(--asc-side-w) + 22px)` rule for both is gone. */
}

/* ---------- 0.80.2 (Alex, 27 Sep 2026): button colours ----------
   Mark complete = the orange of the Notes panel's THIS CLIP tag (before
   0.80.2; --asc-highlight, the "Try Clip 1" button). The Clips tab = the
   Clip times pill: solid slate, white text, darker on hover; its arrow white
   so it shows on the slate. (The Notes tab and the THIS CLIP tag get the
   same slate in notes.css.) */
.asc-complete-btn,
.asc-complete-btn:disabled {
	background: var(--asc-highlight, var(--alexi-highlight)) !important;
	color: #fff !important;
}
.asc-complete-btn:hover,
.asc-complete-btn:focus,
.asc-complete-btn:active {
	background: var(--alexi-highlight-hover) !important;
	color: #fff !important;
}
/* 0.80.3 (Alex, 27 Sep 2026): Start course / Next lesson is no longer a tab
   hanging off the bar. It is a pill the same shape and size as the Clip
   times pill (10px 16px, 14px text, fully round), in the progress bar's
   green (hover one step darker), sitting at the RIGHT of the head 5px under
   the bar. The Completed badge + Reset tabs are untouched. The !important
   beats the tab-shape rule above (radius 0 0 5px 5px, 0.76rem, tight
   padding) that the three share. */
.asc-side-cta,
.asc-side-cta:focus {
	margin: 10px 0 0 auto;   /* 0.80.7: 10px under the bar (was 5px) */
	padding: 10px 16px !important;
	border-radius: 999px !important;
	font-size: 14px !important;
	line-height: 1.2;
	background: var(--asc-success, var(--alexi-success)) !important;
	color: #fff !important;
}
.asc-side-cta:hover,
.asc-side-cta:active {
	background: var(--asc-cta-hover, var(--alexi-success-hover)) !important;
	color: #fff !important;
}
@media (max-width: 880px) {
	/* 0.81.1: pale-blue tint + navy, like the Notes tab (was solid slate —
	   "too heavy, especially on mobile", Alex).
	   0.84.1: styled like the "Details" buttons (white, thin outline, 5px).
	   0.84.7 (Alex, 30 Sep 2026): a replica of the video controls' Replay
	   clip pill, the same as the Notes tab (notes.css): white, dark grey
	   --alexi-body text/arrow/1px border, fully round on the free side,
	   soft grey --alexi-btn-bg fill on hover, the same height as the pills
	   (--asn-pull-h). The screen-edge side stays flat and borderless — it is
	   still a tab. */
	.asc-cur-pull,
	.asc-cur-pull:focus {
		background: #fff !important;
		color: var(--alexi-body) !important;
		border-color: var(--alexi-body) !important;
	}
	.asc-cur-pull:hover,
	.asc-cur-pull:active {
		background: var(--alexi-btn-bg) !important;
		color: var(--alexi-ink) !important;
		border-color: var(--alexi-ink) !important;
	}
	.asc-cur-arr {
		color: currentColor;
	}
}
/* 0.84.8 (Alex, 30 Sep 2026): three-quarter size on phones, matching the
   Notes tab (notes.css) — 24px icon line, .72rem text, 18px arrow, ~34px
   tall; the lane the theme keeps clear shrinks to 90px with it. */
@media (max-width: 600px) {
	:root { --asc-cur-pull-w: 90px; }
	.asc-cur-pull { padding: 0 .52rem 0 .64rem !important; font-size: .72rem !important; gap: 4px; }
	.asc-cur-arr { width: 18px; height: 18px; }
}

/* 0.91.0 (Alex, 16 Oct 2026): the channel's logo in the nav bar's LEFT lane,
   right of the curriculum bar, linking to the YouTube channel (ASC_Channels,
   Courses → Channels). Fixed like the bar itself, so it rides the sticky
   header and sits above it (z-index 100 = the bar's). From 881px up only:
   below that the bar is a pull tab and the lane between the Clips and Notes
   tabs belongs to the title.
   0.91.1: flush with the bar, header height ("edge to edge").
   0.91.2 (Alex: "looks distorted… maintain aspect ratio and add a faint
   border… and a little padding"): the img keeps its own ratio — height = header, width follows,
   nothing clamps it (a wide logo is simply wide); a 1px hairline in the
   theme's border colour frames it. */
.asc-channel-logo { display: none; }
@media (min-width: 881px) {
	body.asc-fe-page .asc-channel-logo {
		position: fixed;
		/* 0.91.3 (Alex: "add a 4px margin"): the tile floats 4px off the bar
		   and off the header's top and bottom edges, so it gets all four
		   sides of its hairline. */
		top: 4px;
		left: calc(var(--asc-side-w, 330px) + 4px);
		height: calc(var(--header-h, 81px) - 1px - 8px);
		box-sizing: border-box;
		display: block;
		border: 1px solid var(--border, #e6e6e6);
		padding: 6px;                 /* Alex: "and a little padding" — inside the frame */
		background: #fff;
		z-index: 100;
		text-decoration: none;
		line-height: 0;
		overflow: hidden;
	}
	body.admin-bar.asc-fe-page .asc-channel-logo { top: calc(32px + 4px); }
	.asc-channel-logo-img {
		display: block;
		height: 100%;
		width: auto;
		max-width: none;
		max-height: none;
		aspect-ratio: auto;
		transition: opacity .15s;
	}
	a.asc-channel-logo:hover .asc-channel-logo-img { opacity: .8; }
}
@media (min-width: 881px) and (max-width: 1100px) {
	body.asc-fe-page .asc-channel-logo { height: 56px; top: calc((var(--header-h, 81px) - 56px) / 2); }
	body.admin-bar.asc-fe-page .asc-channel-logo { top: calc(32px + (var(--header-h, 81px) - 56px) / 2); }
}
