/**
 * Reader: dark “concept” lesson card (matches ckeditor/plugins/vaaniiLessonCard/styles/lessoncard.css).
 */
.vaanii-lesson-card {
	--vlc-kicker-color: #51b5eb;
	--vlc-fg: #f8fafc;
	--vlc-fg-muted: #e2e8f0;
	--vlc-fg-soft: #cbd5e1;
	margin: 1.35em 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	border-radius: 22px;
	overflow: hidden;
	isolation: isolate;
	background-color: #0b1220;
	background-image:
		linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
	background-size: 22px 22px;
	background-position: center;
	border: 1px solid rgba(51, 65, 85, 0.85);
	box-shadow: 0 18px 40px rgba(2, 6, 23, 0.35);
	color: var(--vlc-fg-muted);
	/* Inherit lesson reader / fullscreen font-size so em-based type tracks A–A+ controls */
	font-size: inherit;
}

/* Dialog presets that are too close to the card face / badge fill (inline --vlc-kicker-color wins otherwise). */
.vaanii-lesson-card[data-vlc-kicker-color="#0f172a"],
.vaanii-lesson-card[style*="--vlc-kicker-color:#0f172a"],
.vaanii-lesson-card[style*="--vlc-kicker-color: #0f172a"] {
	--vlc-kicker-color: #cbd5e1 !important;
}

.vaanii-lesson-card[data-vlc-kicker-color="#475569"],
.vaanii-lesson-card[style*="--vlc-kicker-color:#475569"],
.vaanii-lesson-card[style*="--vlc-kicker-color: #475569"] {
	--vlc-kicker-color: #a8c4e6 !important;
}

.vaanii-lesson-card-inner {
	position: relative;
	z-index: 1;
	padding: 1.45em 1.5em 1.55em;
	box-sizing: border-box;
}

.vaanii-lesson-card-head {
	margin: 0 0 1.1em 0;
}

.vaanii-lesson-card-kicker {
	margin: 0 0 0.45em 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 0.68em;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1.25;
	color: var(--vlc-kicker-color, #51b5eb);
}

.vaanii-lesson-card-kicker-text {
	color: var(--vlc-kicker-color, #51b5eb);
}

.vaanii-lesson-card-title {
	margin: 0 0 0.55em 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: clamp(1.2em, 1em + 2vw, 1.65em);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--vlc-fg);
}

.vaanii-lesson-card-lede {
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 1em;
	line-height: 1.55;
	color: rgba(241, 245, 249, 0.94);
	max-width: 52ch;
}

.vaanii-lesson-card-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em 0.55em;
	margin: 0 0 1.15em 0;
}

.vaanii-lesson-card-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.38em 0.85em;
	border-radius: 999px;
	border: 1px solid rgba(186, 198, 214, 0.42);
	background: rgba(22, 33, 55, 0.78);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 0.82em;
	font-weight: 500;
	color: var(--vlc-fg-muted);
	line-height: 1.25;
	box-sizing: border-box;
}

.vaanii-lesson-card-pill-label {
	color: var(--vlc-fg-muted);
}

.vaanii-lesson-card-steps {
	display: flex;
	flex-direction: column;
	gap: 0.65em;
	margin: 0;
}

.vaanii-lesson-card-step {
	display: flex;
	align-items: flex-start;
	gap: 0.75em;
	width: 100%;
	box-sizing: border-box;
}

.vaanii-lesson-card-step-badge {
	flex: 0 0 auto;
	width: 2em;
	height: 2em;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 0.92em;
	font-weight: 700;
	/* Always light numerals: accent may be a dark preset (#0f172a / #475569). */
	color: #ffffff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
	background: var(--vlc-kicker-color, #51b5eb);
	line-height: 1;
	margin-top: 0.12em;
	box-shadow:
		0 0 0 1px rgba(0, 0, 0, 0.22) inset,
		0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.vaanii-lesson-card-step-content {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0.65em 0.85em;
	border-radius: 14px;
	border: 1px solid rgba(148, 163, 184, 0.38);
	background: rgba(36, 48, 72, 0.92);
	box-sizing: border-box;
}

.vaanii-lesson-card-step-text {
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 0.95em;
	line-height: 1.5;
	color: var(--vlc-fg);
}

.vaanii-lesson-card-step-text strong,
.vaanii-lesson-card-step-text b {
	color: #fff;
	font-weight: 600;
}

/*
 * Light mode / fullscreen reader: `content-module_accordion_content.css` sets
 * `.fullscreen-active .section-content { color: #333 }` and
 * `.fullscreen-active .section-content h3 { color: #2c3e50 }` with higher specificity than
 * `.vaanii-lesson-card-title`, so the title (and inherited body text) read as invisible on the dark card.
 */
.fullscreen-active .section-content .vaanii-lesson-card,
#fullscreen-content-display .section-content .vaanii-lesson-card {
	color: #e2e8f0;
}

.fullscreen-active .section-content .vaanii-lesson-card h3.vaanii-lesson-card-title,
#fullscreen-content-display .section-content .vaanii-lesson-card h3.vaanii-lesson-card-title {
	color: #f8fafc;
}

.fullscreen-active .section-content .vaanii-lesson-card .vaanii-lesson-card-kicker,
#fullscreen-content-display .section-content .vaanii-lesson-card .vaanii-lesson-card-kicker {
	color: var(--vlc-kicker-color, #51b5eb);
}

.fullscreen-active .section-content .vaanii-lesson-card .vaanii-lesson-card-lede,
.fullscreen-active .section-content .vaanii-lesson-card .vaanii-lesson-card-step-text,
#fullscreen-content-display .section-content .vaanii-lesson-card .vaanii-lesson-card-lede,
#fullscreen-content-display .section-content .vaanii-lesson-card .vaanii-lesson-card-step-text {
	color: rgba(241, 245, 249, 0.95);
}

.fullscreen-active .section-content .vaanii-lesson-card .vaanii-lesson-card-pill,
#fullscreen-content-display .section-content .vaanii-lesson-card .vaanii-lesson-card-pill {
	color: #e2e8f0;
}

.fullscreen-active .section-content .vaanii-lesson-card .vaanii-lesson-card-step-text strong,
.fullscreen-active .section-content .vaanii-lesson-card .vaanii-lesson-card-step-text b,
#fullscreen-content-display .section-content .vaanii-lesson-card .vaanii-lesson-card-step-text strong,
#fullscreen-content-display .section-content .vaanii-lesson-card .vaanii-lesson-card-step-text b {
	color: #fff;
}

.lesson-content-modern .section-content .vaanii-lesson-card h3.vaanii-lesson-card-title {
	color: #f8fafc;
}

.lesson-content-modern .section-content .vaanii-lesson-card {
	color: #e2e8f0;
}

/* Light-mode lesson body: links + long-form selectors can still tint `p`/`span` — lock card copy. */
.lesson-section-html .vaanii-lesson-card p.vaanii-lesson-card-kicker,
.lesson-section-html .vaanii-lesson-card .vaanii-lesson-card-kicker-text,
#fullscreen-content-display .lesson-section-html .vaanii-lesson-card p.vaanii-lesson-card-kicker,
#fullscreen-content-display .lesson-section-html .vaanii-lesson-card .vaanii-lesson-card-kicker-text {
	color: var(--vlc-kicker-color, #51b5eb) !important;
}

.lesson-section-html .vaanii-lesson-card h3.vaanii-lesson-card-title,
#fullscreen-content-display .lesson-section-html .vaanii-lesson-card h3.vaanii-lesson-card-title {
	color: var(--vlc-fg) !important;
}

.lesson-section-html .vaanii-lesson-card p.vaanii-lesson-card-lede,
#fullscreen-content-display .lesson-section-html .vaanii-lesson-card p.vaanii-lesson-card-lede {
	color: rgba(241, 245, 249, 0.96) !important;
}

.lesson-section-html .vaanii-lesson-card .vaanii-lesson-card-pill-label,
#fullscreen-content-display .lesson-section-html .vaanii-lesson-card .vaanii-lesson-card-pill-label {
	color: var(--vlc-fg-muted) !important;
}

.lesson-section-html .vaanii-lesson-card p.vaanii-lesson-card-step-text,
#fullscreen-content-display .lesson-section-html .vaanii-lesson-card p.vaanii-lesson-card-step-text {
	color: var(--vlc-fg) !important;
}

.lesson-section-html .vaanii-lesson-card p.vaanii-lesson-card-step-text strong,
.lesson-section-html .vaanii-lesson-card p.vaanii-lesson-card-step-text b,
#fullscreen-content-display .lesson-section-html .vaanii-lesson-card p.vaanii-lesson-card-step-text strong,
#fullscreen-content-display .lesson-section-html .vaanii-lesson-card p.vaanii-lesson-card-step-text b {
	color: #ffffff !important;
}

.lesson-section-html .vaanii-lesson-card .vaanii-lesson-card-step-badge,
#fullscreen-content-display .lesson-section-html .vaanii-lesson-card .vaanii-lesson-card-step-badge {
	color: #ffffff !important;
}

.lesson-section-html .vaanii-lesson-card a,
#fullscreen-content-display .lesson-section-html .vaanii-lesson-card a {
	color: #7dd3fc;
}

.lesson-section-html .vaanii-lesson-card a:hover,
#fullscreen-content-display .lesson-section-html .vaanii-lesson-card a:hover {
	color: #bae6fd;
}

/*
 * Reader dark mode: lesson “paper” (.lesson-section-html) is already ~#0f1720, so the
 * default card surface (#0b1220) reads as a flat smudge. Lift hierarchy + borders.
 */
.lesson-content-modern.dark-mode .vaanii-lesson-card,
#fullscreen-overlay.dark-mode .vaanii-lesson-card {
	background-color: #0f1a2d;
	background-image:
		linear-gradient(rgba(148, 163, 184, 0.11) 1px, transparent 1px),
		linear-gradient(90deg, rgba(148, 163, 184, 0.11) 1px, transparent 1px);
	border: 1px solid rgba(100, 116, 139, 0.55);
	box-shadow:
		0 0 0 1px rgba(82, 182, 236, 0.14),
		0 22px 50px rgba(0, 0, 0, 0.42);
	color: #e8eef7;
}

.lesson-content-modern.dark-mode .vaanii-lesson-card-title,
#fullscreen-overlay.dark-mode .vaanii-lesson-card-title {
	color: #f8fafc;
}

.lesson-content-modern.dark-mode .vaanii-lesson-card-lede,
#fullscreen-overlay.dark-mode .vaanii-lesson-card-lede {
	color: rgba(226, 232, 240, 0.92);
}

.lesson-content-modern.dark-mode .vaanii-lesson-card-pill,
#fullscreen-overlay.dark-mode .vaanii-lesson-card-pill {
	background: rgba(15, 23, 42, 0.72);
	border-color: rgba(148, 163, 184, 0.42);
	color: #f1f5f9;
}

.lesson-content-modern.dark-mode .vaanii-lesson-card-step-content,
#fullscreen-overlay.dark-mode .vaanii-lesson-card-step-content {
	background: rgba(30, 41, 59, 0.88);
	border-color: rgba(148, 163, 184, 0.38);
}

.lesson-content-modern.dark-mode .vaanii-lesson-card-step-text,
#fullscreen-overlay.dark-mode .vaanii-lesson-card-step-text {
	color: #f1f5f9;
}

/* Links: scoped so generic .lesson-section-html a (#8ab4f8) does not look muddy on the card */
.lesson-content-modern.dark-mode .lesson-section-html .vaanii-lesson-card a,
#fullscreen-overlay.dark-mode .lesson-section-html .vaanii-lesson-card a {
	color: #7dd3fc;
}

.lesson-content-modern.dark-mode .lesson-section-html .vaanii-lesson-card a:hover,
#fullscreen-overlay.dark-mode .lesson-section-html .vaanii-lesson-card a:hover {
	color: #bae6fd;
}

/* Modern lesson HTML sometimes ships a page-wide * { padding: 0 } reset.
   That pulls outside list markers into the overflow:auto lesson box, so plain CKEditor lists lose their bullets. */
.lesson-section-html ul:not([class]),
.lesson-section-html ol:not([class]),
#fullscreen-content-display ul:not([class]),
#fullscreen-content-display ol:not([class]) {
	margin: 0.75em 0;
	padding-left: 1.5em;
}
.lesson-section-html ul:not([class]),
#fullscreen-content-display ul:not([class]) {
	list-style: disc outside;
}
.lesson-section-html ol:not([class]),
#fullscreen-content-display ol:not([class]) {
	list-style: decimal outside;
}
