/* Suprmind interactive lesson: AI Hallucinations, Benchmarks, and Multi-Model Defense.
   Scoped under .lsn. Tokens follow the hallucination page (assets/hallucination/hall.css). */

.lsn {
	--l-bg: #05020b; --l-surface: #0d0a14; --l-panel: #0a0710; --l-elev: #15111f;
	--l-line: rgba(255,255,255,.09); --l-line2: rgba(255,255,255,.16);
	--l-fg: #fafafa; --l-fg2: #e3e1ea; --l-fg3: #a1a1aa; --l-fg4: #8a8596;
	--l-accent: #8b5cf6; --l-accent2: #a78bfa; --l-accent-d: #7c3aed;
	--l-good: #22c55e; --l-good-t: #4ade80; --l-bad: #f43f5e; --l-bad-t: #fb7185;
	--l-font: Satoshi, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	display: block; background: var(--l-bg); color: var(--l-fg2); font-family: var(--l-font);
	font-size: 17px; line-height: 1.7; overflow-x: clip; -webkit-font-smoothing: antialiased;
}
.lsn *, .lsn *::before, .lsn *::after { box-sizing: border-box; }
/* Reset at single-class weight so the component rules below (declared later) win, while still beating the theme's bare element margins. */
.lsn :where(p, ul, ol, figure, h1, h2, h3) { margin: 0; }
.lsn a { color: var(--l-accent2); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lsn a:hover { color: var(--l-fg); }
.lsn strong, .lsn b { color: var(--l-fg); font-weight: 700; }
.lsn button { font: inherit; letter-spacing: normal; text-transform: none; box-shadow: none; cursor: pointer; }
.lsn :is(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--l-accent2); outline-offset: 3px; }

.lsn-wrap { max-width: 780px; margin: 0 auto; padding: 0 16px; }
.lsn-wide { max-width: 1140px; margin: 36px auto 40px; padding: 0 16px; }
@media (min-width: 768px) { .lsn-wrap { padding: 0 24px; } .lsn-wide { padding: 0 24px; } }

/* Hero */
.lsn-hero { position: relative; padding: 72px 0 44px; background:
	radial-gradient(60% 80% at 15% 0%, rgba(139,92,246,.22), transparent 70%),
	radial-gradient(40% 60% at 95% 10%, rgba(167,139,250,.10), transparent 70%); }
.lsn-eyebrow, .lsn-kicker { color: var(--l-accent2); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.lsn-h1 { margin: 12px 0 18px; color: var(--l-fg); font-size: clamp(32px, 5.2vw, 54px); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.lsn-lead { color: var(--l-fg3); font-size: 19px; line-height: 1.6; max-width: 680px; }
.lsn-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; padding: 0; list-style: none; }
.lsn-meta li { padding: 5px 12px; border: 1px solid var(--l-line2); border-radius: 999px; color: var(--l-fg2); font-size: 13px; line-height: 1.4; }
/* A site-wide `header nav` rule pins nav bars; keep the lesson TOC in normal flow regardless. */
.lsn .lsn-toc { position: static; top: auto; right: auto; bottom: auto; left: auto; width: auto; height: auto; z-index: auto; transform: none; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.lsn-toc ol { display: grid; grid-template-columns: 1fr; gap: 2px 28px; margin: 0; padding: 18px 20px; border: 1px solid var(--l-line); border-radius: 14px; background: rgba(13,10,20,.7); list-style: none; counter-reset: lsn-toc; }
@media (min-width: 640px) { .lsn-toc ol { grid-template-columns: 1fr 1fr; } }
.lsn-toc li { counter-increment: lsn-toc; }
.lsn-toc a { display: flex; gap: 10px; padding: 6px 0; color: var(--l-fg2); font-size: 15px; text-decoration: none; }
.lsn-toc a::before { content: counter(lsn-toc, decimal-leading-zero); color: var(--l-fg4); font-variant-numeric: tabular-nums; }
.lsn-toc a:hover, .lsn-toc a[aria-current="true"] { color: var(--l-accent2); }

/* Sections and prose */
.lsn-sec { padding: 52px 0 12px; border-top: 1px solid var(--l-line); }
.lsn-h2 { margin: 0 0 22px; color: var(--l-fg); font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; line-height: 1.18; letter-spacing: -.02em; text-wrap: balance; }
.lsn-h3 { margin: 26px 0 12px; color: var(--l-fg); font-size: 19px; font-weight: 700; line-height: 1.3; }
.lsn-sec > .lsn-wrap > p { margin: 0 0 18px; }
.lsn-list { margin: 0 0 22px; padding: 0; list-style: none; }
.lsn-list li { position: relative; margin: 0 0 12px; padding-left: 22px; }
.lsn-list li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--l-accent); }

/* Widget shell */
.lsn-widget { padding: 20px; border: 1px solid var(--l-line); border-radius: 18px; background: var(--l-surface); }
@media (min-width: 768px) { .lsn-widget { padding: 28px; } }
.lsn-widget__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 0 0 20px; }
.lsn-widget__head .lsn-kicker { flex-basis: 100%; }
.lsn-widget__head h3 { margin: 0; color: var(--l-fg); font-size: clamp(20px, 2.4vw, 24px); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.lsn-widget__hint { flex-basis: 100%; color: var(--l-fg3); font-size: 14px; line-height: 1.5; }

/* Buttons */
.lsn .lsn-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border: 1px solid var(--l-accent); border-radius: 12px; background: var(--l-accent); color: #fff; font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; transition: background .15s, border-color .15s; }
.lsn .lsn-btn:hover { background: var(--l-accent-d); border-color: var(--l-accent-d); color: #fff; }
.lsn .lsn-btn--ghost { background: transparent; color: var(--l-fg); }
.lsn .lsn-btn--ghost:hover { background: rgba(139,92,246,.18); }
.lsn .lsn-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--l-line2); border-radius: 50%; background: transparent; color: var(--l-fg); font-size: 24px; line-height: 1; }
.lsn .lsn-iconbtn:hover:not(:disabled) { border-color: var(--l-accent2); color: var(--l-accent2); }
.lsn .lsn-iconbtn:disabled { opacity: .35; cursor: default; }
.lsn .lsn-textbtn { display: inline-flex; align-items: center; min-height: 38px; padding: 7px 14px; border: 1px solid var(--l-line2); border-radius: 999px; background: transparent; color: var(--l-fg2); font-size: 14px; font-weight: 600; line-height: 1.2; }
.lsn .lsn-textbtn:hover { border-color: var(--l-accent2); color: var(--l-fg); }
.lsn .lsn-textbtn--solid { border-color: var(--l-accent); background: var(--l-accent); color: #fff; }
.lsn .lsn-textbtn--solid:hover { background: var(--l-accent-d); color: #fff; }

/* Infographic */
.lsn-info__label { color: var(--l-accent2); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.lsn-info__sub, .lsn-info__src { margin: 2px 0 10px; color: var(--l-fg3); font-size: 14px; }
.lsn-info__types { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 0 0 18px; }
@media (min-width: 720px) { .lsn-info__types { grid-template-columns: 1fr 1fr; } }
.lsn-info__type, .lsn-info__paradox, .lsn-info__tone { padding: 18px; border: 1px solid var(--l-line); border-radius: 14px; background: var(--l-panel); }
.lsn-info__type p:last-child, .lsn-info__paradox > p:last-child, .lsn-info__tone > p:last-child { margin: 0; color: var(--l-fg2); font-size: 15.5px; line-height: 1.6; }
.lsn-info__paradox { margin: 0 0 18px; }
.lsn-vbars { display: flex; align-items: flex-end; gap: 18px; height: 230px; margin: 10px 0 16px; padding: 0 4px; border-bottom: 1px solid var(--l-line2); }
.lsn-vbar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.lsn-vbar__val { margin: 0 0 6px; color: var(--l-fg); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lsn-vbar__val small { color: var(--l-fg3); font-size: 13px; font-weight: 500; }
.lsn-vbar__fill { display: block; width: min(100%, 120px); height: var(--v); min-height: 4px; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, var(--l-accent2), var(--l-accent)); }
.lsn-vbar--bad .lsn-vbar__fill { background: linear-gradient(180deg, var(--l-bad-t), var(--l-bad)); }
.lsn-vbar__lbl { order: 3; margin: 8px 0 -30px; color: var(--l-fg3); font-size: 13px; text-align: center; }
.lsn-info__paradox .lsn-vbars + p { margin-top: 38px; }
.lsn-tone { margin: 10px 0; padding: 12px 14px; border-radius: 10px; background: var(--l-elev); color: var(--l-fg2); font-size: 15.5px; line-height: 1.5; }
.lsn-tone span { display: inline-block; margin: 0 10px 0 0; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.lsn-tone--ok span { background: rgba(34,197,94,.16); color: var(--l-good-t); }
.lsn-tone--bad span { background: rgba(244,63,94,.16); color: var(--l-bad-t); }

/* Slides */
.lsn-slides__frame { container-type: inline-size; overflow: hidden; border: 1px solid var(--l-line); border-radius: 14px; background: #0b0814; }
.lsn-slides__track { display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.lsn-slides__track::-webkit-scrollbar { display: none; }
.lsn-slide { position: relative; flex: 0 0 100%; min-width: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.lsn-slide--img { display: flex; align-items: center; justify-content: center; background: #0b0814; }
.lsn-slide--img img { display: block; width: 100%; height: auto; }
.lsn-slide--html { display: flex; flex-direction: column; padding: 22px 18px; background:
	radial-gradient(70% 90% at 0% 0%, rgba(139,92,246,.16), transparent 60%),
	linear-gradient(160deg, #110d1d 0%, #07050d 100%); color: var(--l-fg2); font-size: 15px; line-height: 1.5; }
.lsn-slide__title { margin: 0 0 16px; color: var(--l-fg); font-size: 21px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.lsn-slide__tag { display: block; margin-top: 4px; color: var(--l-accent2); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.lsn-slide__foot { margin-top: auto; padding-top: 12px; color: var(--l-fg4); font-size: 12px; line-height: 1.45; }
.lsn-slide__take { margin-top: auto; padding: 12px 14px; border: 1px solid rgba(139,92,246,.45); border-radius: 10px; background: rgba(139,92,246,.10); color: var(--l-fg); font-size: 14.5px; }
.lsn-slide__eyebrow { color: var(--l-accent2); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.lsn-slide__display { color: var(--l-fg); font-size: 30px; font-weight: 700; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.lsn-slide__sub { margin-top: 12px; color: var(--l-fg3); font-size: 16px; }
.lsn-slide--title, .lsn-slide--cta { justify-content: center; text-align: center; align-items: center; gap: 6px; padding: 40px 22px; }
.lsn-slide--cta .lsn-btn { margin-top: 18px; }
.lsn-slide__fine { margin-top: 10px; color: var(--l-fg4); font-size: 13px; }

.lsn-s2 { display: grid; gap: 12px; }
.lsn-s2__big { display: flex; flex-direction: column; gap: 4px; }
.lsn-s2__num { color: var(--l-accent2); font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.lsn-s2__big--sm .lsn-s2__num { font-size: 32px; }
.lsn-s2__boxes { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.lsn-s2__boxes li { padding: 10px 12px; border: 1px solid var(--l-line2); border-radius: 10px; background: rgba(10,7,16,.6); font-size: 13.5px; }
.lsn-s2__boxes b { display: block; color: var(--l-accent2); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }

.lsn-scatter { display: block; width: 100%; height: auto; max-height: 72cqw; }
.lsn-sc-grid line { stroke: rgba(255,255,255,.08); stroke-width: 1; }
.lsn-sc-ticks text { fill: var(--l-fg4); font-size: 12px; }
.lsn-sc-axis { fill: var(--l-fg3); font-size: 12.5px; }
.lsn-sc-zone { fill: rgba(74,222,128,.75); font-size: 12px; font-weight: 600; }
.lsn-sc-zone--bad { fill: rgba(251,113,133,.75); }
.lsn-sc-pt { fill: var(--l-accent2); stroke: #0b0814; stroke-width: 2; }
.lsn-sc-pt--good { fill: var(--l-good-t); }
.lsn-sc-pt--bad { fill: var(--l-bad-t); }
.lsn-sc-lbl { fill: var(--l-fg); font-size: 14px; font-weight: 700; }
.lsn-sc-val { fill: var(--l-fg3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
/* Phones: the SVG scales to ~40%, so in-chart text would be ~5px. Show bigger dots and an HTML legend instead. */
.lsn-sc-legend { display: none; }
@media (max-width: 759px) {
	.lsn-scatter text { display: none; }
	.lsn-sc-pt { r: 15px; stroke-width: 3; }
	.lsn-sc-legend { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.4; }
	.lsn-sc-legend li { display: flex; align-items: baseline; gap: 9px; color: var(--l-fg2); }
	.lsn-sc-legend b { color: var(--l-fg); }
	.lsn-sc-dot { flex: none; width: 11px; height: 11px; border-radius: 50%; background: var(--l-accent2); transform: translateY(1px); }
	.lsn-sc-dot--good { background: var(--l-good-t); }
	.lsn-sc-dot--bad { background: var(--l-bad-t); }
	.lsn-sc-legend__note { color: var(--l-fg4); font-size: 12.5px; }
}

.lsn-metrics { display: grid; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.lsn-metric { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; }
.lsn-metric__lbl { color: var(--l-fg2); font-size: 14px; }
.lsn-metric__lbl em { color: var(--l-accent2); font-style: normal; font-size: 12.5px; }
.lsn-metric__val { color: var(--l-fg); font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lsn-metric__bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.lsn-metric__bar::after { content: ""; display: block; width: var(--v); height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--l-accent), var(--l-accent2)); }
.lsn-metric--bad .lsn-metric__bar::after { background: linear-gradient(90deg, var(--l-bad), var(--l-bad-t)); }

.lsn-h2h { display: grid; gap: 6px; margin: 0 0 14px; font-size: 13.5px; }
.lsn-h2h__row { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 6px; }
.lsn-h2h__row > span { display: flex; align-items: center; justify-content: center; padding: 8px 6px; border-radius: 8px; background: rgba(255,255,255,.04); color: var(--l-fg); font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.lsn-h2h__row > span[role="rowheader"] { justify-content: flex-start; flex-direction: column; align-items: flex-start; color: var(--l-fg2); font-weight: 600; text-align: left; }
.lsn-h2h__row > span[role="rowheader"] em { color: var(--l-fg4); font-size: 11.5px; font-style: normal; font-weight: 500; }
.lsn-h2h__row--head > span { background: transparent; color: var(--l-accent2); font-size: 12px; font-weight: 700; }
.lsn-h2h .is-best { border: 1px solid var(--l-accent); background: rgba(139,92,246,.18); color: #fff; }
.lsn-h2h .is-na { color: var(--l-fg4); font-weight: 500; }

.lsn-s9 { display: grid; gap: 10px; margin-block: auto; }
.lsn-s9__card { padding: 14px; border: 1px solid var(--l-line2); border-radius: 12px; background: rgba(10,7,16,.6); }
.lsn-s9__card b { display: block; margin-bottom: 4px; font-size: 15.5px; }
.lsn-s9__card p { color: var(--l-fg2); font-size: 14px; }
.lsn-s9__card--accent { border-color: rgba(139,92,246,.6); background: rgba(139,92,246,.12); }

.lsn-hbars { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.lsn-hbar { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.lsn-hbar__lbl { grid-column: 1; grid-row: 1; color: var(--l-fg2); font-size: 13.5px; }
.lsn-hbar__lbl em { color: var(--l-fg4); font-style: normal; font-size: 12px; }
.lsn-hbar__val { grid-column: 2; grid-row: 1; color: var(--l-fg); font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lsn-hbar__track { grid-column: 1 / -1; grid-row: 2; height: 10px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.lsn-hbar__fill { display: block; width: var(--v); min-width: 3px; height: 100%; border-radius: 99px; background: rgba(167,139,250,.55); }
.lsn-hbar--hi .lsn-hbar__fill { background: linear-gradient(90deg, var(--l-accent), var(--l-accent2)); }

/* Desktop: HTML slides keep the 16:9 slide shape and scale with the frame */
@media (min-width: 760px) {
	.lsn-slide { aspect-ratio: 1376 / 768; }
	.lsn-slide--html { padding: 3.6cqw 4cqw; font-size: 1.45cqw; }
	.lsn-slide__title { margin-bottom: 2cqw; font-size: 2.55cqw; }
	.lsn-slide__tag { font-size: 1.1cqw; }
	.lsn-slide__foot { font-size: 1.1cqw; }
	.lsn-slide__take { padding: 1.2cqw 1.5cqw; font-size: 1.4cqw; }
	.lsn-slide__eyebrow { font-size: 1.2cqw; }
	.lsn-slide__display { font-size: 4.6cqw; }
	.lsn-slide__sub { margin-top: 1.4cqw; font-size: 1.9cqw; }
	.lsn-slide__fine { font-size: 1.2cqw; }
	.lsn-slide--cta .lsn-btn { margin-top: 2cqw; font-size: 1.6cqw; min-height: 0; padding: 1.2cqw 2.4cqw; }
	.lsn-s2 { grid-template-columns: 1.3fr 1fr; grid-template-rows: auto 1fr; gap: 1.6cqw 3cqw; }
	.lsn-s2__num { font-size: 7cqw; }
	.lsn-s2__big--sm .lsn-s2__num { font-size: 4.6cqw; }
	.lsn-s2__big span:last-child { font-size: 1.5cqw; }
	.lsn-s2__big:first-child { grid-row: 1 / span 2; justify-content: center; }
	.lsn-s2__boxes { grid-template-columns: 1fr; gap: .8cqw; }
	.lsn-s2__boxes li { padding: .9cqw 1.1cqw; font-size: 1.25cqw; }
	.lsn-s2__boxes b { font-size: 1cqw; }
	.lsn-scatter { max-height: 39cqw; }
	.lsn-metrics { gap: 1.4cqw; }
	.lsn-metric__lbl { font-size: 1.5cqw; }
	.lsn-metric__lbl em { font-size: 1.2cqw; }
	.lsn-metric__val { font-size: 1.9cqw; }
	.lsn-metric__bar { height: .75cqw; }
	.lsn-h2h { gap: .7cqw; font-size: 1.45cqw; }
	.lsn-h2h__row { gap: .7cqw; }
	.lsn-h2h__row > span { padding: 1cqw .8cqw; border-radius: .8cqw; }
	.lsn-h2h__row--head > span { font-size: 1.25cqw; }
	.lsn-h2h__row > span[role="rowheader"] em { font-size: 1.1cqw; }
	.lsn-s9 { grid-template-columns: repeat(3, 1fr); gap: 1.6cqw; margin-top: 1cqw; }
	.lsn-s9__card { padding: 2cqw; }
	.lsn-s9__card b { font-size: 1.8cqw; margin-bottom: .8cqw; }
	.lsn-s9__card p { font-size: 1.5cqw; }
	.lsn-hbars { gap: 1.4cqw; }
	.lsn-hbar__lbl { font-size: 1.45cqw; }
	.lsn-hbar__lbl em { font-size: 1.15cqw; }
	.lsn-hbar__val { font-size: 1.8cqw; }
	.lsn-hbar__track { height: .9cqw; }
}
/* Phones: slides keep their own height; lesson.js sizes the track to the current slide. */
@media (max-width: 759px) {
	.lsn-slides__track { align-items: flex-start; overflow-y: hidden; transition: height .25s ease; }
}
.lsn-slides__nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.lsn-slides__count, .lsn-cards__count { min-width: 70px; color: var(--l-fg3); font-size: 14px; text-align: center; font-variant-numeric: tabular-nums; }

/* Flashcards: without JS every card shows both sides */
.lsn-cards__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.lsn-card__face { padding: 16px 18px; border: 1px solid var(--l-line); border-radius: 14px; background: var(--l-panel); }
.lsn-card__back { margin-top: 6px; background: var(--l-elev); }
.lsn-card__tag { display: block; margin-bottom: 6px; color: var(--l-accent2); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.lsn-card__face p { color: var(--l-fg); font-size: 17px; line-height: 1.55; }
.lsn-cards__nav { display: none; }
.lsn-cards.is-enhanced .lsn-cards__nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: 18px; }
.lsn-cards.is-enhanced .lsn-card { display: none; perspective: 1400px; }
.lsn-cards.is-enhanced .lsn-card.is-current { display: block; }
/* Both faces share one grid cell, so the card grows to the taller face (long answers never overflow). */
.lsn-cards.is-enhanced .lsn-card__inner { display: grid; min-height: 250px; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.7,.2,1); cursor: pointer; }
.lsn-cards.is-enhanced .lsn-card.is-flipped .lsn-card__inner { transform: rotateY(180deg); }
.lsn-cards.is-enhanced .lsn-card__face { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 26px; backface-visibility: hidden; -webkit-backface-visibility: hidden; text-align: center; }
.lsn-cards.is-enhanced .lsn-card__front { background: radial-gradient(80% 100% at 50% 0%, rgba(139,92,246,.18), transparent 70%), var(--l-panel); }
.lsn-cards.is-enhanced .lsn-card__back { transform: rotateY(180deg); border-color: rgba(139,92,246,.55); }
.lsn-cards.is-enhanced .lsn-card__face p { font-size: clamp(17px, 2.2vw, 21px); }

/* Mind map */
.lsn-mind__tools { display: flex; gap: 8px; margin-left: auto; }
.lsn-mind__tree, .lsn-mind__tree ul { margin: 0; padding: 0; list-style: none; }
.lsn-mind__tree > li { margin: 0 0 10px; }
.lsn-mind__tree ul { margin: 6px 0 4px 14px; padding-left: 16px; border-left: 1px solid rgba(167,139,250,.28); }
.lsn-mind__tree li li { position: relative; margin: 6px 0; }
.lsn-mind__tree li li::before { content: ""; position: absolute; left: -16px; top: 1.1em; width: 12px; border-top: 1px solid rgba(167,139,250,.28); }
.lsn-mind__tree summary { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--l-line2); border-radius: 10px; background: var(--l-panel); color: var(--l-fg); font-size: 15.5px; font-weight: 600; line-height: 1.4; cursor: pointer; list-style: none; }
.lsn-mind__tree summary::-webkit-details-marker { display: none; }
.lsn-mind__tree summary::before { content: "+"; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(139,92,246,.25); color: var(--l-fg); font-size: 13px; font-weight: 700; }
.lsn-mind__tree details[open] > summary::before { content: "\2212"; }
.lsn-mind__tree > li > details > summary { border-color: rgba(139,92,246,.6); background: rgba(139,92,246,.14); font-size: 16.5px; }
.lsn-mind__leaf span { display: inline-block; padding: 4px 10px; border-radius: 8px; background: rgba(255,255,255,.04); color: var(--l-fg2); font-size: 14.5px; line-height: 1.45; }

/* Quiz: without JS, answers sit behind "Show the answer" */
.lsn-quiz__list { margin: 0; padding: 0; list-style: none; }
.lsn-q { margin: 0 0 18px; padding: 18px; border: 1px solid var(--l-line); border-radius: 14px; background: var(--l-panel); }
.lsn-q__num { margin-bottom: 6px; color: var(--l-accent2); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.lsn-q__text { margin-bottom: 14px; color: var(--l-fg); font-size: 18px; font-weight: 600; line-height: 1.45; }
.lsn-q__opts { display: grid; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.lsn .lsn-q__opt { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--l-line2); border-radius: 12px; background: transparent; color: var(--l-fg2); font-size: 15.5px; line-height: 1.5; text-align: left; }
.lsn .lsn-q__opt:hover:not(:disabled) { border-color: var(--l-accent2); color: var(--l-fg); }
.lsn .lsn-q__opt:disabled { cursor: default; }
.lsn-q__letter { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--l-fg); font-size: 13px; font-weight: 700; }
.lsn .lsn-q__opt.is-correct { border-color: var(--l-good); background: rgba(34,197,94,.10); color: var(--l-fg); }
.lsn .lsn-q__opt.is-correct .lsn-q__letter { background: var(--l-good); color: #04130a; }
.lsn .lsn-q__opt.is-wrong { border-color: var(--l-bad); background: rgba(244,63,94,.10); color: var(--l-fg); }
.lsn .lsn-q__opt.is-wrong .lsn-q__letter { background: var(--l-bad); color: #fff; }
.lsn-q__why { display: none; margin: 6px 4px 4px 52px; color: var(--l-fg3); font-size: 14.5px; line-height: 1.55; }
.lsn-q__why.is-shown { display: block; }
.lsn-q__hint, .lsn-q__answer { margin-top: 8px; color: var(--l-fg3); font-size: 15px; }
.lsn-q__hint summary, .lsn-q__answer summary { color: var(--l-accent2); font-weight: 600; cursor: pointer; }
.lsn-q__hint p, .lsn-q__answer p { margin: 8px 0 0; }
.lsn-q__next { display: none; }
.lsn-quiz.is-enhanced .lsn-q { display: none; margin: 0; }
.lsn-quiz.is-enhanced .lsn-q.is-current, .lsn-quiz.is-enhanced.is-review .lsn-q { display: block; }
.lsn-quiz.is-enhanced.is-review .lsn-q { margin: 0 0 14px; }
.lsn-quiz.is-enhanced .lsn-q__answer { display: none; }
.lsn-quiz.is-enhanced .lsn-q.is-answered .lsn-q__next { display: flex; justify-content: flex-end; margin-top: 14px; }
.lsn-quiz.is-enhanced.is-review .lsn-q__next { display: none; }
.lsn-quiz__result { margin-top: 16px; padding: 22px; border: 1px solid rgba(139,92,246,.5); border-radius: 14px; background: rgba(139,92,246,.10); text-align: center; }
.lsn-quiz__score { margin-bottom: 14px; color: var(--l-fg); font-size: 22px; font-weight: 700; }
.lsn-quiz__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* Inline and closing CTA */
.lsn-inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 18px; padding: 18px 20px; border: 1px solid rgba(139,92,246,.5); border-radius: 14px; background: linear-gradient(120deg, rgba(139,92,246,.16), rgba(13,10,20,.6)); }
.lsn-inline-cta p { flex: 1 1 320px; color: var(--l-fg2); font-size: 16px; line-height: 1.55; }
.lsn-end { padding: 56px 0 80px; border-top: 1px solid var(--l-line); }
.lsn-end__cta { padding: 30px 24px; border: 1px solid rgba(139,92,246,.55); border-radius: 20px; background: radial-gradient(90% 120% at 50% 0%, rgba(139,92,246,.24), transparent 70%), var(--l-surface); text-align: center; }
.lsn-end__cta .lsn-h2 { margin-bottom: 12px; }
.lsn-end__cta p { margin: 0 auto 22px; max-width: 600px; color: var(--l-fg2); }
.lsn-end__sources { margin-top: 34px; }
.lsn-end__sources ul { margin: 0 0 14px; padding: 0 0 0 20px; }
.lsn-end__sources li { margin: 0 0 8px; color: var(--l-fg3); font-size: 15.5px; }
.lsn-end__note { color: var(--l-fg4); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
	.lsn-slides__track { scroll-behavior: auto; }
	.lsn-cards.is-enhanced .lsn-card__inner, .lsn .lsn-btn { transition: none; }
}
