/*
 * Learn: pillar list, pillar pages and the lesson player.
 * Raven's live lesson look (sample-lesson): dark Obsidian, gold Anton headings, Barlow Condensed
 * text, sage kickers, ember buttons, a starry sky with slow fog. Palette from tokens.css only.
 * Contrast: bone, sage, gold and aqua on obsidian pass AA; buttons use obsidian on ember.
 */

body.lx-page { background: var(--ria-obsidian); }

.lx {
	--lx-accent: var(--ria-gold);
	position: relative;
	overflow-x: clip;
	color: var(--ria-bone);
	font-family: var(--ria-font-body);
	font-size: 20px;
	line-height: 1.55;
	padding: 28px 0 40px;
	min-height: 70vh;
	background:
		radial-gradient(ellipse 70% 40% at 12% 18%, rgba(50, 46, 120, .55), transparent 70%),
		radial-gradient(ellipse 60% 35% at 90% 42%, rgba(110, 31, 36, .38), transparent 70%),
		radial-gradient(ellipse 65% 30% at 20% 78%, rgba(87, 199, 212, .12), transparent 70%),
		radial-gradient(ellipse 60% 32% at 85% 95%, rgba(50, 46, 120, .45), transparent 70%),
		var(--ria-obsidian);
	scroll-padding: 24px 0 90px;
}
.lx *, .lx *::before, .lx *::after { box-sizing: border-box; }

.lx-in { position: relative; z-index: 1; max-width: var(--ria-measure); margin: 0 auto; padding: 0 var(--ria-gutter); }
.lx-wide { max-width: 72rem; }

/* ---------- Type (as on the live sample lesson) ---------- */
.lx h1, .lx h2, .lx h3 { font-family: var(--ria-font-display); font-weight: 400; color: var(--ria-gold); line-height: 1.04; margin: 0 0 14px; padding: 0; text-transform: none; }
.lx h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); letter-spacing: .04em; line-height: 1.02; }
.lx h2 { font-size: 1.7rem; letter-spacing: .06em; margin-top: 34px; margin-bottom: 8px; }
.lx h3 { font-size: 1.35rem; letter-spacing: .06em; }
.lx p { margin: 0 0 14px; max-width: 62ch; }
.lx ul, .lx ol { margin: 0 0 14px; padding-left: 1.3em; max-width: 62ch; }
.lx li { margin-bottom: 5px; }
.lx strong, .lx b { font-weight: 700; color: var(--ria-bone); }
.lx a { color: var(--ria-aqua); text-underline-offset: 3px; }
.lx a:hover { color: var(--ria-bone); }
.lx :focus-visible { outline: var(--ria-focus); outline-offset: 3px; }
.lx h1:focus { outline: none; }
.lx .kick { max-width: none; font-family: var(--ria-font-body); font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: var(--ria-sage); font-size: 16px; margin: 0 0 6px; }
.lx .lead { font-size: 1.2rem; font-weight: 600; color: var(--ria-bone); }
.lx .small { font-size: 17px; color: var(--ria-sage); }
.lx .scrawl { font-family: var(--ria-font-accent); color: var(--ria-ember); font-size: 1.3rem; margin: 0 0 10px; line-height: 1.3; }
.lx .lx-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; padding: 0; }

/* ---------- Buttons ---------- */
.lx .lx-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
	padding: 10px 24px; border: 2px solid var(--ria-ember); border-radius: 2px;
	background: var(--ria-ember); color: var(--ria-obsidian);
	font-family: var(--ria-font-display); font-weight: 400; font-size: 1.3rem; letter-spacing: .08em;
	text-decoration: none; cursor: pointer; line-height: 1.15; text-align: center;
}
.lx .lx-btn:hover { background: var(--ria-gold); border-color: var(--ria-gold); color: var(--ria-obsidian); }
.lx .lx-btn.ghost { background: transparent; color: var(--ria-bone); border-color: var(--ria-gold); }
.lx .lx-btn.ghost:hover { background: var(--ria-gold); color: var(--ria-obsidian); }
.lx .lx-btn.small { font-family: var(--ria-font-body); font-weight: 600; font-size: .95rem; text-transform: uppercase; letter-spacing: .12em; padding: 6px 14px; min-height: 40px; }
.lx .lx-link { background: none; border: 0; padding: 0; color: var(--ria-aqua); text-decoration: underline; text-underline-offset: 3px; font: inherit; cursor: pointer; }
.lx .lx-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 22px 0; max-width: none; }

/* ---------- Cards ---------- */
.lx .card { border: 1px solid var(--ria-gold); padding: 22px 22px 10px; margin: 0 0 22px; background: rgba(17, 17, 17, .82); max-width: none; }
.lx p.card { padding-bottom: 22px; }

/* ---------- Sky (Raven's stars, fog, a shooting star and a comet) ---------- */
.lx-sky { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.lx-sky i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: var(--ria-bone); opacity: .15; animation: lx-tw 4s ease-in-out infinite; }
.lx-sky i.g { background: var(--ria-gold); width: 3px; height: 3px; }
.lx-sky i.a { background: var(--ria-aqua); }
.lx-sky i.b { width: 3px; height: 3px; background: var(--ria-rice); box-shadow: 0 0 8px 2px rgba(241, 236, 226, .7); }
@keyframes lx-tw { 0%, 100% { opacity: .12; transform: scale(1); } 50% { opacity: .9; transform: scale(1.8); } }
.lx-shoot { position: absolute; width: 140px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(241, 236, 226, .9)); opacity: 0; transform: rotate(22deg); animation: lx-shoot 14s linear infinite; }
@keyframes lx-shoot { 0%, 6% { opacity: 0; transform: translate(0, 0) rotate(22deg); } 7% { opacity: 1; } 13% { opacity: 0; transform: translate(-70vw, 28vw) rotate(22deg); } 100% { opacity: 0; } }
.lx-comet { position: absolute; width: 260px; height: 6px; opacity: 0; transform: rotate(18deg); animation: lx-comet 52s linear infinite 4s; }
.lx-comet b { position: absolute; inset: 0; border-radius: 6px; background: linear-gradient(90deg, var(--ria-bone), rgba(87, 199, 212, .55) 12%, rgba(87, 199, 212, 0)); filter: blur(1px); }
.lx-comet::before { content: ""; position: absolute; left: -4px; top: -4px; width: 14px; height: 14px; border-radius: 50%; background: var(--ria-bone); box-shadow: 0 0 14px 6px rgba(87, 199, 212, .6); }
@keyframes lx-comet { 0% { opacity: 0; transform: translate(0, 0) rotate(18deg); } 2%, 16% { opacity: 1; } 18% { opacity: 0; transform: translate(-125vw, 42vw) rotate(18deg); } 100% { opacity: 0; } }
.lx-fog { position: absolute; left: 0; width: 200%; filter: blur(26px); background-repeat: repeat-x; background-size: 50% 100%; animation: lx-fog 80s linear infinite; }
.lx-fog.f1 { top: 2%; height: 34%; opacity: .3; background-image: radial-gradient(ellipse 38% 46% at 30% 55%, rgba(241, 236, 226, .16), transparent 72%), radial-gradient(ellipse 28% 40% at 78% 40%, rgba(165, 169, 121, .14), transparent 72%); }
.lx-fog.f2 { top: 36%; height: 30%; opacity: .25; animation-duration: 115s; background-image: radial-gradient(ellipse 34% 44% at 55% 50%, rgba(241, 236, 226, .13), transparent 72%), radial-gradient(ellipse 30% 38% at 12% 60%, rgba(50, 46, 120, .35), transparent 72%); }
.lx-fog.f3 { bottom: -4%; height: 28%; opacity: .3; animation-duration: 95s; background-image: radial-gradient(ellipse 40% 50% at 25% 55%, rgba(241, 236, 226, .15), transparent 72%), radial-gradient(ellipse 24% 40% at 70% 50%, rgba(110, 31, 36, .3), transparent 72%); }
@keyframes lx-fog { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ---------- Top bar: breadcrumb + tools ---------- */
.lx .lx-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; padding-bottom: 22px; }
.lx .lx-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; font-size: 16px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; max-width: none; }
.lx .lx-crumbs li { margin: 0; color: var(--ria-sage); }
.lx .lx-crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--ria-bronze); }
.lx .lx-crumbs a { color: var(--ria-sage); text-decoration: none; border-bottom: 1px solid transparent; }
.lx .lx-crumbs a:hover { color: var(--ria-gold); border-bottom-color: var(--ria-ember); }
.lx .lx-crumbs [aria-current] { color: var(--ria-bone); }
.lx .lx-tools { display: flex; gap: 8px; }

.lx .lx-preview-note { border: 1px dashed var(--ria-aqua); color: var(--ria-aqua); font-size: 16px; padding: 8px 12px; margin: 0 auto 18px; max-width: calc(var(--ria-measure) - 2 * var(--ria-gutter)); }

/* ---------- Progress ---------- */
.lx .lx-prog { display: flex; align-items: center; gap: 14px; margin: 6px 0 24px; font-size: 16px; color: var(--ria-sage); max-width: none; }
.lx .lx-prog label { white-space: nowrap; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.lx .lx-prog progress { appearance: none; -webkit-appearance: none; flex: 1; height: 8px; border: 1px solid var(--ria-bronze); border-radius: 0; background: rgba(17, 17, 17, .9); overflow: hidden; }
.lx .lx-prog progress::-webkit-progress-bar { background: rgba(17, 17, 17, .9); }
.lx .lx-prog progress::-webkit-progress-value { background: linear-gradient(90deg, var(--ria-ember), var(--ria-gold)); }
.lx .lx-prog progress::-moz-progress-bar { background: linear-gradient(90deg, var(--ria-ember), var(--ria-gold)); }

/* ---------- Lesson ---------- */
.lx .lx-hero { position: relative; margin: 0 0 30px; line-height: 0; box-shadow: 0 0 0 1px var(--ria-gold); }
.lx .lx-hero img { display: block; width: 100%; height: auto; }
.lx .lx-hero-pillar { margin-bottom: 26px; }
.lx .lx-resume a { font-weight: 600; }

/* Safety first */
.lx .lx-safety { border: 1px solid var(--ria-gold); border-left-width: 4px; background: rgba(200, 154, 61, .08); padding: 14px 18px 6px; margin: 0 0 26px; }
.lx .lx-safety .lx-safety-h { font-family: var(--ria-font-body); font-weight: 600; font-size: 16px; text-transform: uppercase; letter-spacing: .18em; color: var(--ria-gold); margin: 0 0 10px; }
.lx .lx-safety ul { list-style: none; padding: 0; margin: 0; max-width: none; }
.lx .lx-safety li, .lx .lx-sline { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 10px; font-size: 18px; line-height: 1.45; max-width: none; }
.lx .lx-sline { border-left: 3px solid var(--ria-gold); padding: 8px 12px; background: rgba(200, 154, 61, .06); }
.lx .lx-sn-ico { flex: none; width: 22px; height: 22px; margin-top: 2px; background: var(--ria-gold); -webkit-mask: var(--lx-ico) center / contain no-repeat; mask: var(--lx-ico) center / contain no-repeat; }
.lx .lx-sn-fire .lx-sn-ico { background: var(--ria-ember); --lx-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c1 4 6 6 6 12a6 6 0 0 1-12 0c0-3 2-5 3-7 0 2 1 3 2 3 0-3-1-5 1-8z'/%3E%3C/svg%3E"); }
.lx .lx-sn-toxicity .lx-sn-ico { background: var(--ria-sage); --lx-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 3C9 3 4 9 4 16c0 2 .5 3.5 1 5l1.5-1C6 18 6 17 6.5 15 9 15 18 13 20 3zM8 14c1-4 4-7 8-9-3 3-5 6-8 9z'/%3E%3C/svg%3E"); }
.lx .lx-sn-crisis .lx-sn-ico { background: var(--ria-aqua); --lx-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8-5-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 6-8 11-8 11z'/%3E%3C/svg%3E"); }
.lx .lx-sn-not-medical .lx-sn-ico { --lx-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3h6v6h6v6h-6v6H9v-6H3V9h6z' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E"); }
.lx .lx-sn-stop-note .lx-sn-ico { background: var(--ria-ember); --lx-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 2h8l6 6v8l-6 6H8l-6-6V8z'/%3E%3C/svg%3E"); }
.lx .lx-sn-pet-child .lx-sn-ico { --lx-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='5' cy='10' r='2.2'/%3E%3Ccircle cx='9.5' cy='5.5' r='2.2'/%3E%3Ccircle cx='14.5' cy='5.5' r='2.2'/%3E%3Ccircle cx='19' cy='10' r='2.2'/%3E%3Cpath d='M12 11c3 0 6 4 6 7 0 2-2 3-3.5 2.5-1-.3-1.7-.8-2.5-.8s-1.5.5-2.5.8C8 21 6 20 6 18c0-3 3-7 6-7z'/%3E%3C/svg%3E"); }

/* Body blocks */
.lx .lx-body { margin: 0 0 10px; }
.lx .lx-body > :first-child { margin-top: 0; }
.lx .lx-text p:first-child strong:only-child { font-size: 1.05em; }
.lx h2.lx-sec { font-size: 1.35rem; letter-spacing: .06em; margin: 30px 0 8px; border-top: 1px solid var(--ria-bronze); padding-top: 14px; }
.lx .lx-rule { border: 0; border-top: 1px solid var(--ria-bronze); margin: 36px 0; }
.lx .lx-photo { margin: 6px 0 24px; }
.lx .lx-photo img { display: block; width: 100%; height: auto; border: 1px solid var(--ria-gold); }
.lx .lx-photo figcaption { font-size: 15px; color: var(--ria-sage); padding-top: 6px; }
@media (min-width: 900px) { .lx .lx-photo.wide { margin-left: -60px; margin-right: -60px; } }

/* Try this now: Raven's gold bar over a dark box */
.lx .lx-try { margin: 32px 0; }
.lx .lx-try .lx-try-h { color: var(--ria-obsidian); background: var(--ria-gold); font-size: 1.35rem; letter-spacing: .06em; line-height: 1.15; padding: 10px 14px 6px; margin: 0; }
.lx .lx-try-b { background: #1b1b1b; border: 1px solid var(--ria-gold); border-top: 0; padding: 14px 14px 2px; }
.lx .lx-try-b p, .lx .lx-try-b ul, .lx .lx-try-b ol { max-width: none; }

/* Journal prompts */
.lx .lx-jrnl { border-top: 1px solid var(--ria-bronze); margin: 32px 0 14px; padding-top: 14px; }
.lx .lx-jrnl h2 { font-size: 1.35rem; margin-top: 0; }
.lx .lx-jrnl ol { padding-left: 1.5em; }
.lx .lx-jrnl li { margin-bottom: 10px; }
.lx .lx-jrnl li::marker { color: var(--ria-gold); font-family: var(--ria-font-display); }

/* Callouts */
.lx .lx-callout { --c: var(--ria-gold); border-left: 4px solid var(--c); background: rgba(17, 17, 17, .7); padding: 14px 18px 2px; margin: 24px 0; }
.lx .lx-callout-remember { --c: var(--ria-aqua); }
.lx .lx-callout-tradition { --c: var(--ria-sage); }
.lx .lx-callout-h { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 16px; color: var(--c); margin-bottom: 6px; }

/* Quote */
.lx .lx-quote { margin: 30px 0; padding: 0 0 0 22px; border-left: 2px solid var(--ria-ember); }
.lx .lx-quote blockquote { margin: 0; }
.lx .lx-quote blockquote p { font-family: var(--ria-font-accent); font-size: 1.5rem; line-height: 1.35; color: var(--ria-bone); margin: 0 0 8px; }
.lx .lx-quote figcaption { color: var(--ria-sage); font-size: 16px; letter-spacing: .12em; text-transform: uppercase; }
.lx .lx-quote figcaption::before { content: "\2014\00a0"; }

/* Video: loads only when someone presses play */
.lx .lx-vid-wrap { margin: 0 0 24px; }
.lx .lx-vid { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--ria-gold); overflow: hidden; background: radial-gradient(ellipse at 30% 30%, var(--ria-indigo), var(--ria-obsidian) 70%); }
.lx .lx-vid button { all: unset; position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; cursor: pointer; color: var(--ria-bone); font-family: var(--ria-font-body); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; text-align: center; padding: 0 16px; }
.lx .lx-vid button:focus-visible { outline: var(--ria-focus); outline-offset: -6px; }
.lx .lx-vid .play { width: 72px; height: 72px; border-radius: 50%; background: var(--ria-ember); position: relative; }
.lx .lx-vid .play::after { content: ""; position: absolute; left: 29px; top: 22px; border-left: 22px solid var(--ria-obsidian); border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.lx .lx-vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lx .lx-transcript { margin-top: 10px; font-size: 18px; }
.lx .lx-transcript summary { cursor: pointer; color: var(--ria-aqua); }

/* Editor-only notes */
.lx .lx-note { border: 1px dashed var(--ria-aqua); color: var(--ria-aqua); padding: 10px 14px; font-size: 17px; max-width: none; }

/* Finish */
.lx .lx-done { position: relative; margin: 36px 0 12px; padding: 22px 0 4px; border-top: 1px solid var(--ria-bronze); }
.lx .lx-done input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lx .lx-done input:focus-visible + label { outline: var(--ria-focus); outline-offset: 3px; }
.lx .lx-done label::before { content: ""; width: 20px; height: 20px; border: 2px solid var(--ria-obsidian); flex: none; }
.lx .lx-done input:checked + label { background: var(--ria-gold); border-color: var(--ria-gold); }
.lx .lx-done input:checked + label::before { content: "\2713"; display: grid; place-items: center; font-family: var(--ria-font-body); font-weight: 700; font-size: 16px; line-height: 1; }
.lx .lx-done input:disabled + label { opacity: .5; cursor: not-allowed; }
.lx .lx-done .small { margin-top: 12px; }

/* Order gate and locked lessons */
.lx .lx-gate, .lx .lx-locked { margin: 4px 0 24px; }
.lx [hidden] { display: none !important; }

/* Previous / suggested next */
.lx .lx-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 30px 0 22px; }
.lx .lx-pn a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--ria-bronze); text-decoration: none; color: var(--ria-bone); background: rgba(17, 17, 17, .75); }
.lx .lx-pn a:hover { border-color: var(--ria-gold); }
.lx .lx-pn .nx { grid-column: 2; text-align: right; }
.lx .lx-pn .rec { border: 2px solid var(--ria-ember); background: radial-gradient(ellipse 90% 140% at 100% 0, rgba(232, 106, 34, .2), transparent 60%), rgba(17, 17, 17, .85); }
.lx .lx-pn .dir { font-size: 15px; letter-spacing: .16em; text-transform: uppercase; color: var(--ria-gold); font-weight: 600; }
.lx .lx-pn .t { font-family: var(--ria-font-display); font-size: 1.35rem; letter-spacing: .04em; line-height: 1.15; }
.lx .lx-pn .rec .t { color: var(--ria-gold); }
.lx .lx-pn .n { font-size: 15px; color: var(--ria-sage); letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 560px) { .lx .lx-pn { grid-template-columns: 1fr; } .lx .lx-pn .nx { grid-column: 1; text-align: left; order: -1; } }

/* ---------- Lesson list ---------- */
.lx .lx-ol { margin: 10px 0 20px; }
.lx .lx-inline-ol details { border: 1px solid var(--ria-bronze); padding: 0 16px; background: rgba(17, 17, 17, .75); }
.lx .lx-inline-ol summary { cursor: pointer; padding: 14px 0; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 17px; color: var(--ria-gold); }
.lx .lx-inline-ol summary .small { margin-left: 8px; font-weight: 400; letter-spacing: .04em; text-transform: none; }
.lx .lx-list { list-style: none; margin: 0 0 12px; padding: 0; max-width: none; }
.lx .lx-list li { margin: 0; border-top: 1px solid rgba(92, 87, 69, .7); }
.lx .lx-list li:first-child { border-top: 0; }
.lx .lx-list a, .lx .lx-list .row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 7px 0; color: var(--ria-bone); text-decoration: none; }
.lx .lx-list a:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.lx .lx-list .num { min-width: 1.4em; color: var(--ria-sage); font-variant-numeric: tabular-nums; font-size: 16px; text-align: right; }
.lx .lx-list .t { flex: 1; line-height: 1.25; }
.lx .lx-list .st { width: 18px; height: 18px; flex: none; border: 2px solid var(--ria-sage); border-radius: 50%; display: grid; place-items: center; }
.lx .lx-list .done .st { background: var(--ria-gold); border-color: var(--ria-gold); }
.lx .lx-list .done .st::after { content: "\2713"; color: var(--ria-obsidian); font-size: 12px; font-weight: 700; line-height: 1; }
.lx .lx-list .cur .st { border-color: var(--ria-ember); box-shadow: inset 0 0 0 3px var(--ria-obsidian), inset 0 0 0 9px var(--ria-ember); }
.lx .lx-list .cur.done .st { background: var(--ria-gold); box-shadow: none; }
.lx .lx-list .cur .t { color: var(--ria-gold); }
.lx .lx-list .rec .st { border-color: var(--ria-ember); border-style: dotted; }
.lx .lx-list .lock .st { border-style: dashed; border-radius: 3px; }
.lx .lx-list .soon, .lx .lx-list .soon .t, .lx .lx-list .soon .num { color: rgba(165, 169, 121, .85); }
.lx .lx-list .soon .st { border: 0; border-radius: 0; }
.lx .lx-list .soon .st::after { content: ""; width: 12px; height: 2px; background: var(--ria-sage); }
.lx .tag { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; border: 1px solid currentColor; padding: 1px 6px; white-space: nowrap; color: var(--ria-sage); }
.lx .cur .tag { color: var(--ria-ember); }
.lx .rec .tag { color: var(--ria-gold); }
.lx .lx-page-ol h2 { margin-top: 30px; }
.lx .lx-page-ol .lx-list { border: 1px solid var(--ria-bronze); padding: 4px 16px; background: rgba(17, 17, 17, .75); }

/* Desktop: lesson list in a rail on the left */
.lx .lx-wrap { position: relative; z-index: 1; }
.lx .lx-rail { display: none; }
.lx .lx-rail-ol .lx-ol-h { font-family: var(--ria-font-display); font-size: 1.45rem; letter-spacing: .05em; line-height: 1.1; margin: 0 0 4px; }
.lx .lx-rail-ol .lx-ol-h a { color: var(--ria-gold); text-decoration: none; }
.lx .lx-rail-ol .lx-ol-h a:hover { text-decoration: underline; }
.lx .lx-rail-ol .lx-list { margin-top: 10px; font-size: 18px; }
.lx .lx-rail-ol .tag { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
@media (min-width: 1180px) {
	.lx-lesson .lx-bar { max-width: calc(290px + 56px + var(--ria-measure)); }
	.lx .lx-wrap { display: grid; grid-template-columns: 290px minmax(0, var(--ria-measure)); gap: 56px; justify-content: center; padding: 0 var(--ria-gutter); }
	.lx .lx-wrap .lx-main { margin: 0; padding: 0; }
	.lx .lx-rail { display: block; position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow-y: auto; padding: 18px 16px 6px; border: 1px solid var(--ria-bronze); background: rgba(17, 17, 17, .6); }
	.lx .lx-wrap .lx-inline-ol, .lx-lesson .lx-tools { display: none; }
}

/* Phone: a slim bar for All lessons and Next */
.lx .lx-dock { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-between; gap: 12px; background: var(--ria-obsidian); border-top: 1px solid var(--ria-gold); padding: 6px var(--ria-gutter); margin: 18px 0 -40px; }
.lx .lx-dock a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; color: var(--ria-bone); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; font-size: 1rem; }
.lx .lx-dock .nx { color: var(--ria-gold); }
@media (min-width: 761px) { .lx .lx-dock { display: none; } }

/* ---------- Pillar list ---------- */
.lx .lx-index-head { padding-top: 8px; }
.lx .lx-intro p { font-size: 1.15rem; }
.lx .lx-continue { margin: 18px 0 8px; max-width: 46rem; border-color: var(--ria-ember); }
.lx .lx-continue .kick { margin-bottom: 4px; }
.lx .lx-continue-line { font-family: var(--ria-font-display); font-size: 1.35rem; letter-spacing: .04em; }
.lx .lx-continue-line a { color: var(--ria-gold); text-decoration: none; }
.lx .lx-continue-line a:hover { text-decoration: underline; }
.lx .lx-group { margin-top: 30px; }
.lx .lx-group-h { font-family: var(--ria-font-body); font-weight: 600; font-size: 17px; letter-spacing: .2em; text-transform: uppercase; color: var(--ria-sage); margin: 0 0 14px; display: flex; align-items: center; gap: 14px; }
.lx .lx-group-h::after { content: ""; flex: 1; border-top: 1px solid var(--ria-bronze); }
.lx .lx-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); max-width: none; }
.lx .lx-card { position: relative; margin: 0; display: flex; flex-direction: column; border: 1px solid var(--ria-bronze); border-top: 4px solid var(--lx-accent); padding: 18px 20px 16px; background: rgba(17, 17, 17, .82); transition: border-color .2s; }
.lx .lx-card:hover { border-color: var(--ria-gold); border-top-color: var(--lx-accent); }
.lx .lx-card:focus-within { outline: var(--ria-focus); outline-offset: 3px; }
.lx .lx-card-pic { display: block; margin: -18px -20px 16px; line-height: 0; border-bottom: 1px solid var(--ria-bronze); }
.lx .lx-card-pic img { width: 100%; height: auto; aspect-ratio: 64 / 30; object-fit: cover; }
.lx .lx-card-art { display: grid; place-items: center; aspect-ratio: 64 / 30; background: radial-gradient(ellipse 60% 90% at 50% 50%, color-mix(in srgb, var(--lx-accent) 30%, transparent), transparent 70%), radial-gradient(ellipse 80% 120% at 0 0, rgba(50, 46, 120, .5), transparent 70%), var(--ria-obsidian); }
.lx .lx-card-art svg { width: 22%; height: auto; overflow: visible; }
.lx .lx-card-art .ring { fill: rgba(17, 17, 17, .6); stroke: var(--lx-accent); stroke-width: .8; }
.lx .lx-card-art .lit { fill: var(--lx-accent); opacity: .85; }
.lx .lx-card-h { font-size: 1.55rem; letter-spacing: .05em; margin: 0 0 8px; }
.lx .lx-card-h a { color: var(--ria-gold); text-decoration: none; }
.lx .lx-card-h a::after { content: ""; position: absolute; inset: 0; }
.lx .lx-card p { font-size: 18px; line-height: 1.45; }
.lx .lx-card-meta { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.lx .lx-card .tag { color: var(--lx-accent); }
.lx .lx-card.soon { opacity: .8; border-style: dashed; border-top-style: solid; }
.lx .lx-card.soon .lx-card-h { color: var(--ria-sage); }
.lx .lx-card.soon .tag { color: var(--ria-sage); }
.lx .lx-go { color: var(--ria-ember); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 16px; }
.lx .lx-foot-note { margin-top: 34px; }

/* Pillar head */
.lx .lx-pillar-head h1 { margin-bottom: 10px; }
.lx .lx-pillar-head .lead { color: var(--ria-bone); font-weight: 500; font-size: 1.25rem; }
.lx .lx-order-note { margin: 0; }

/* Merge prompt */
.lx .lx-merge { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; border: 1px solid var(--ria-aqua); padding: 14px 16px; margin: 0 0 22px; background: rgba(17, 17, 17, .85); position: relative; z-index: 2; }
.lx .lx-merge p { margin: 0; flex: 1 1 260px; }

/* Phones */
@media (max-width: 760px) {
	.lx { font-size: 19px; padding-top: 18px; }
	.lx .lx-hero { margin-left: calc(-1 * var(--ria-gutter)); margin-right: calc(-1 * var(--ria-gutter)); box-shadow: 0 1px 0 var(--ria-gold), 0 -1px 0 var(--ria-gold); }
	.lx .lx-crumbs ol { font-size: 14px; }
	.lx .lx-prog { flex-wrap: wrap; gap: 6px 12px; }
	.lx .lx-prog progress { flex-basis: 100%; }
}

/* ---------- The seal is pressed (milestone moment) ----------
 * A strip of Rice Paper with Raven's gold double rule. A brass stamp comes down, lifts, and the
 * member's wax seal is left on the paper with the award name and her message. About 1.2s,
 * slow in, a short hold, slow lift. No flashing. Calm mode shows the finished strip only.
 */
.lx .lx-ms {
	--seal: 184px;
	position: relative; margin: 30px 0 18px; max-width: none;
	padding: 30px 60px 22px calc(var(--seal) + 56px);
	min-height: calc(var(--seal) + 52px);
	color: var(--ria-obsidian);
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .54 0 0 0 0 .38 0 0 0 0 .2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23p)'/%3E%3C/svg%3E"),
		radial-gradient(ellipse 90% 80% at 50% 45%, var(--ria-rice) 55%, #ece3d1 100%);
	border: 1px solid var(--ria-gold);
	box-shadow: inset 0 0 0 5px var(--ria-rice), inset 0 0 0 6px var(--ria-gold), 0 14px 30px -12px rgba(0, 0, 0, .8);
	transform: rotate(-.5deg);
}
.lx .lx-ms p { max-width: 54ch; }
.lx .lx-ms-words { position: relative; }
.lx .lx-ms-line { font-family: var(--ria-font-accent); color: var(--ria-sienna); font-size: 1.25rem; line-height: 1.3; margin: 0 0 6px; }
.lx .lx-ms h2 { font-family: 'IM Fell English SC', 'Cormorant Garamond', Georgia, serif; color: var(--ria-obsidian); font-size: clamp(1.8rem, 4vw, 2.3rem); letter-spacing: .03em; line-height: 1.05; margin: 0 0 6px; }
.lx .lx-ms h2:focus { outline: none; }
.lx .lx-ms-meta { font-family: var(--ria-font-body); font-weight: 600; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; color: #8A6032; margin: 0 0 12px; }
.lx .lx-ms-text { font-family: 'IM Fell English', 'Cormorant Garamond', Georgia, serif; font-size: 1.2rem; line-height: 1.45; color: var(--ria-obsidian); margin: 0 0 12px; }
.lx .lx-ms-foot { font-size: 17px; color: #5C5745; margin: 0; border-top: 1px solid rgba(138, 96, 50, .35); padding-top: 10px; }
.lx .lx-ms a { color: var(--ria-maroon); text-decoration-thickness: 1px; }
.lx .lx-ms a:hover { color: var(--ria-crimson); }
.lx .lx-ms :focus-visible { outline: var(--ria-focus); outline-offset: 2px; box-shadow: 0 0 0 6px var(--ria-obsidian); }
.lx .lx-ms .lx-x { position: absolute; top: 8px; right: 8px; min-width: 44px; min-height: 44px; background: none; border: 0; color: var(--ria-obsidian); font-size: 30px; line-height: 1; cursor: pointer; }
.lx .lx-ms .lx-x:hover { color: var(--ria-maroon); }

.lx .lx-press { position: absolute; left: 26px; top: 50%; width: var(--seal); height: var(--seal); margin-top: calc(var(--seal) / -2); }
.lx .lx-press-seal { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transform: rotate(.5deg); }
.lx .lx-ms.no-seal .lx-press-seal { display: none; }
.lx .lx-press-shadow { position: absolute; left: 14%; top: 14%; width: 72%; height: 72%; border-radius: 50%; background: radial-gradient(closest-side, rgba(17, 17, 17, .55), rgba(17, 17, 17, 0)); opacity: 0; }
/* Stamp: its head sits over the seal's face when it lands. */
.lx .lx-press-stamp { position: absolute; left: 50%; width: calc(var(--seal) * .8); margin-left: calc(var(--seal) * -.4); bottom: calc(var(--seal) * .5 - var(--seal) * .8 * 40 / 160); display: none; transform-origin: 50% 100%; filter: drop-shadow(0 10px 8px rgba(17, 17, 17, .45)); z-index: 2; }
.lx .lx-press-stamp svg { display: block; width: 100%; height: auto; }

.lx .lx-ms.is-pressing { animation: lx-strip 1.25s both; }
.lx .lx-ms.is-pressing .lx-press-stamp { display: block; animation: lx-stamp 1.25s both; }
.lx .lx-ms.is-pressing .lx-press-seal { animation: lx-seal 1.25s both; }
.lx .lx-ms.is-pressing .lx-press-shadow { animation: lx-stamp-shadow 1.25s both; }
.lx .lx-ms.is-pressing .lx-ms-words { animation: lx-ink 1.25s both; }

@keyframes lx-stamp {
	0% { transform: translateY(-170px); opacity: 0; animation-timing-function: cubic-bezier(.5, 0, .9, .4); }
	12% { opacity: 1; }
	36% { transform: translateY(0); opacity: 1; animation-timing-function: ease-out; }
	42% { transform: translateY(5px) scaleY(.97); opacity: 1; }
	58% { transform: translateY(4px) scaleY(.98); opacity: 1; animation-timing-function: cubic-bezier(.45, 0, .3, 1); }
	92% { opacity: 1; }
	100% { transform: translateY(-190px); opacity: 0; }
}
@keyframes lx-seal {
	0%, 35.9% { opacity: 0; transform: rotate(.5deg) scale(.8); }
	36% { opacity: 1; transform: rotate(.5deg) scale(.84); animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
	60%, 100% { opacity: 1; transform: rotate(.5deg) scale(1); }
}
@keyframes lx-stamp-shadow {
	0% { opacity: 0; transform: translate(40px, 30px) scale(1.7); animation-timing-function: cubic-bezier(.5, 0, .9, .4); }
	36%, 58% { opacity: .7; transform: translate(4px, 6px) scale(1.02); animation-timing-function: cubic-bezier(.45, 0, .3, 1); }
	100% { opacity: 0; transform: translate(44px, 34px) scale(1.8); }
}
@keyframes lx-strip {
	0%, 35% { transform: rotate(-.5deg) translateY(0); }
	41% { transform: rotate(-.5deg) translateY(3px); }
	62%, 100% { transform: rotate(-.5deg) translateY(0); }
}
@keyframes lx-ink { 0%, 55% { opacity: 0; } 100% { opacity: 1; } }

@media (max-width: 760px) {
	.lx .lx-ms { --seal: 150px; padding: calc(var(--seal) * .62) 20px 18px; margin-top: calc(var(--seal) * .5 + 18px); min-height: 0; transform: rotate(-.4deg); }
	.lx .lx-press { left: 50%; top: 0; margin-left: calc(var(--seal) / -2); margin-top: calc(var(--seal) * -.42); }
	.lx .lx-ms .lx-x { top: 4px; right: 4px; }
	@keyframes lx-strip { 0%, 35% { transform: rotate(-.4deg); } 41% { transform: rotate(-.4deg) translateY(3px); } 62%, 100% { transform: rotate(-.4deg); } }
}

/* Finish box link */
.lx .lx-practice-link { margin-top: 14px; }

/* ---------- My Practice: a ledger page of wax seals ---------- */
.lx .lx-pr-head .lead { max-width: 48ch; }
.lx .lx-ledger {
	position: relative; margin: 26px 0 10px; padding: 26px 30px 18px 64px; color: var(--ria-obsidian);
	background:
		linear-gradient(90deg, transparent 44px, rgba(176, 42, 42, .55) 44px, rgba(176, 42, 42, .55) 45px, transparent 45px, transparent 48px, rgba(176, 42, 42, .4) 48px, rgba(176, 42, 42, .4) 49px, transparent 49px),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 .54 0 0 0 0 .38 0 0 0 0 .2 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23p)'/%3E%3C/svg%3E"),
		repeating-linear-gradient(180deg, transparent 0, transparent 35px, rgba(43, 130, 200, .13) 35px, rgba(43, 130, 200, .13) 36px),
		radial-gradient(ellipse 100% 90% at 50% 40%, var(--ria-rice) 60%, #ebe1cd 100%);
	border: 1px solid var(--ria-gold);
	box-shadow: inset 0 0 0 5px var(--ria-rice), inset 0 0 0 6px var(--ria-gold), 0 18px 40px -18px rgba(0, 0, 0, .9);
}
.lx .lx-ledger p { max-width: none; }
.lx .lx-ledger a { color: var(--ria-maroon); }
.lx .lx-ledger a:hover { color: var(--ria-crimson); }
.lx .lx-ledger :focus-visible { outline: var(--ria-focus); outline-offset: 2px; box-shadow: 0 0 0 6px var(--ria-obsidian); }
.lx .lx-ledger-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; border-bottom: 3px double #8A6032; padding-bottom: 10px; margin-bottom: 4px; }
.lx .lx-ledger h2 { font-family: 'IM Fell English SC', 'Cormorant Garamond', Georgia, serif; color: var(--ria-obsidian); font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: .03em; margin: 0; }
.lx .lx-ledger-sum { font-family: var(--ria-font-body); font-weight: 600; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; color: #8A6032; margin: 0; }
.lx .lx-lrow { display: grid; grid-template-columns: minmax(180px, 15rem) 1fr; gap: 10px 26px; padding: 18px 0 16px; border-bottom: 1px solid rgba(138, 96, 50, .4); }
.lx .lx-lrow:last-of-type { border-bottom: 0; }
.lx .lx-lrow-h h3 { font-family: 'IM Fell English SC', 'Cormorant Garamond', Georgia, serif; color: var(--ria-obsidian); font-size: 1.45rem; letter-spacing: .02em; line-height: 1.1; margin: 0 0 6px; }
.lx .lx-lrow-h h3 a { color: inherit; text-decoration: none; }
.lx .lx-lrow-h h3 a:hover { text-decoration: underline; text-decoration-color: var(--ria-gold); }
.lx .lx-lrow-count { font-family: 'IM Fell English', Georgia, serif; font-size: 1.05rem; color: #5C5745; margin: 0; }
.lx .lx-lrow-count b { font-family: var(--ria-font-display); font-weight: 400; color: var(--ria-maroon); font-size: 1.3rem; letter-spacing: .04em; }
.lx .lx-lseals { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-start; }
.lx .lx-lseal { width: 176px; margin: 0; text-align: center; }
.lx .lx-lquiet { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 24px; max-width: none; }
.lx .lx-lquiet li { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin: 0; padding: 6px 0; border-bottom: 1px dotted rgba(138, 96, 50, .45); font-family: 'IM Fell English', Georgia, serif; font-size: 1.1rem; }
.lx .lx-lquiet a { text-decoration: none; color: var(--ria-obsidian); }
.lx .lx-lquiet a:hover { text-decoration: underline; color: var(--ria-maroon); }
.lx .lx-lquiet span { color: #5C5745; white-space: nowrap; font-size: 1rem; }
.lx .lx-lquiet b { font-family: var(--ria-font-display); font-weight: 400; color: var(--ria-maroon); }
.lx .lx-lseal img { display: block; width: 148px; height: 148px; margin: -6px auto 2px; }
.lx .lx-lseal-n { font-family: 'IM Fell English SC', Georgia, serif; font-size: 1.1rem; line-height: 1.15; margin: 0 0 2px; color: var(--ria-obsidian); }
.lx .lx-lseal-d { font-family: var(--ria-font-body); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: #5C5745; line-height: 1.3; margin: 0 0 4px; }
.lx .lx-lseal-dl { font-family: var(--ria-font-body); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; display: inline-block; padding: 6px 4px; }
.lx .lx-lseal-next .lx-ghost-wrap { display: block; width: 148px; height: 148px; margin: -6px auto 2px; color: rgba(92, 87, 69, .75); }
.lx .lx-lseal-next .lx-ghost { width: 100%; height: 100%; display: block; }
.lx .lx-lseal-next .lx-lseal-n { color: #5C5745; }
.lx .lx-ledger-foot { font-family: 'IM Fell English', Georgia, serif; font-style: italic; font-size: 1.05rem; color: #5C5745; border-top: 3px double #8A6032; padding-top: 10px; margin: 6px 0 0; }
@media (max-width: 760px) {
	.lx .lx-ledger { padding: 20px 14px 14px 34px; background-size: auto, auto, auto, auto; }
	.lx .lx-ledger { background:
		linear-gradient(90deg, transparent 20px, rgba(176, 42, 42, .55) 20px, rgba(176, 42, 42, .55) 21px, transparent 21px, transparent 24px, rgba(176, 42, 42, .4) 24px, rgba(176, 42, 42, .4) 25px, transparent 25px),
		repeating-linear-gradient(180deg, transparent 0, transparent 35px, rgba(43, 130, 200, .13) 35px, rgba(43, 130, 200, .13) 36px),
		radial-gradient(ellipse 100% 90% at 50% 40%, var(--ria-rice) 60%, #ebe1cd 100%); }
	.lx .lx-lrow { grid-template-columns: 1fr; }
	.lx .lx-lseals { gap: 10px 12px; }
	.lx .lx-lseal { width: 150px; }
	.lx .lx-lseal img, .lx .lx-lseal-next .lx-ghost-wrap { width: 132px; }
	.lx .lx-lseal img, .lx .lx-lseal-next .lx-ghost-wrap { height: 132px; }
}

/* ---------- Calm mode and reduced motion: everything holds still ---------- */
html.sm-calm .lx *, html.sm-calm .lx *::before, html.sm-calm .lx *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.sm-calm .lx :is(.lx-shoot, .lx-comet, .lx-press-stamp, .lx-press-shadow) { display: none; }
html.sm-calm .lx .lx-sky i { opacity: .45; }
html.sm-calm .lx .lx-fog { transform: translateX(-25%); }
@media (prefers-reduced-motion: reduce) {
	.lx *, .lx *::before, .lx *::after { animation: none !important; transition: none !important; }
	.lx :is(.lx-shoot, .lx-comet, .lx-press-stamp, .lx-press-shadow) { display: none; }
	.lx .lx-sky i { opacity: .45; }
	.lx .lx-fog { transform: translateX(-25%); }
}

/* ---------- Round 3: shared base for interactive blocks (lead). Builders style their own
   blocks in ix-a.css / ix-b.css on top of these; don't restyle these from there. ---------- */
.lx .ix { margin: 34px 0; background: #1b1b1b; border: 1px solid var(--ria-gold); border-radius: 6px; padding: 18px 18px 14px; }
.lx .ix-kick { font-family: var(--ria-font-body); font-weight: 600; font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ria-sage); margin: 0 0 6px; }
.lx .ix .ix-h { font-size: 1.5rem; letter-spacing: .05em; margin: 0 0 8px; }
.lx .ix-prompt { color: var(--ria-bone); margin: 0 0 14px; }
.lx .ix-fb { border-left: 3px solid var(--ria-ember); background: rgba(232, 106, 34, .08); padding: 10px 12px; margin: 12px 0 0; }
.lx .ix-fb.good { border-left-color: var(--ria-aqua); background: rgba(87, 199, 212, .08); }
.lx .ix-done { color: var(--ria-gold); font-weight: 600; margin: 14px 0 0; }
.lx .ix-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0 0; }
.lx .ix button:focus-visible, .lx .ix [tabindex]:focus-visible { outline: 3px solid var(--ria-aqua); outline-offset: 2px; }
.lx .ix-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lx .ix details > summary { cursor: pointer; color: var(--ria-aqua); }
