/* English /learn as a course, Ink and Lime (Vytas, 2026-11-04: "layout is not well ux for course", "all course looks more like
   help center"). Templates: frontend/learn/learn_ink.pug (course page, lh-*) and lesson_ink.pug (course player, lc-*; lesson
   blocks keep lnl-*). Loads after ink/home.css, which owns the tokens, header, hero type, buttons, FAQ and close.
   No drawn app screens and no colour frames (Vytas: "never add background colors like on right side visual"). Real screenshots
   only where a lesson has one. Nothing loops. Progress ticks come from localStorage (lnScripts in _ink_parts.pug). */

/* ==================== Shared ==================== */

/* Lesson number that turns into a tick when the lesson is done; ink when it is the open lesson. */
.lc-dot { position: relative; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--cf-field); border-radius: 50%; font-size: 12px; font-weight: 600; color: var(--cf-text-2); transition: background-color .2s, border-color .2s, color .2s; }
.lc-dot b { font-weight: 600; }
.lc-dot svg { display: none; }
.is-done > a .lc-dot { border-color: var(--cf-lime); background: var(--cf-lime); color: var(--cf-ink); }
.is-done > a .lc-dot b { display: none; }
.is-done > a .lc-dot svg { display: block; }
.is-on > a .lc-dot { border-color: var(--cf-ink); background: var(--cf-ink); color: #fff; }

/* Progress meter: --p from 0 to 1. */
.lc-meter { position: relative; display: block; height: 6px; overflow: hidden; border-radius: 999px; background: #34343a; }
.lc-meter--light { background: var(--cf-mist); }
.lc-meter > i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); min-width: 6px; border-radius: 999px; background: var(--cf-lime); transition: width .4s var(--ease); }

/* Related pages as one line. */
html body.ik:not(#_) p.ln-also { margin-top: 24px; font-size: 15px; line-height: 1.6; color: var(--cf-text-2); }
html body.ik:not(#_) p.ln-also a { color: var(--cf-text); text-decoration: underline; text-underline-offset: 3px; }

/* ==================== Course page ==================== */

/* Hero facts under the buttons. */
html body.ik:not(#_) ul.lh-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: 14px; color: var(--cf-on-ink-2); }
html body.ik:not(#_) .lh-facts li { display: flex; align-items: center; gap: 22px; }
html body.ik:not(#_) .lh-facts li + li::before { content: ""; width: 4px; height: 4px; margin-left: -13px; border-radius: 50%; background: #4a4a50; }

/* Your progress: a white card with the meter, the next lesson and the four modules. */
html body.ik:not(#_) .lh-prog { justify-self: end; width: min(420px, 100%); padding: 24px 24px 18px; border-radius: 28px; background: #fff; color: var(--cf-text); }
.lh-prog__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
html body.ik:not(#_) p.lh-prog__h { font-size: 15px; font-weight: 600; color: var(--cf-text); }
html body.ik:not(#_) p.lh-prog__n { font-size: 13px; color: var(--cf-text-3); font-variant-numeric: tabular-nums; }
html body.ik:not(#_) a.lh-next { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; padding: 18px; border-radius: 18px; background: var(--cf-mist); color: var(--cf-text); text-decoration: none; transition: background-color .2s var(--ease); }
.lh-next__eye { font-size: 13px; color: var(--cf-text-3); }
.lh-next b { font-size: 19px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.lh-next__p { font-size: 14px; line-height: 1.45; color: var(--cf-text-2); }
.lh-next__go { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 10px; padding: 9px 14px; border-radius: 8px; background: var(--cf-ink); font-size: 14px; font-weight: 500; color: #fff; }
@media (hover: hover) { html body.ik:not(#_) a.lh-next:hover { background: #ececee; } }
html body.ik:not(#_) ol.lh-mods { margin-top: 12px; }
html body.ik:not(#_) .lh-mods li + li { border-top: 1px solid var(--cf-line); }
html body.ik:not(#_) .lh-mods a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 4px; font-size: 14px; color: var(--cf-text); text-decoration: none; }
.lh-mods__n { font-size: 13px; color: var(--cf-text-3); font-variant-numeric: tabular-nums; }
html body.ik:not(#_) .lh-mods li.is-done .lh-mods__n { color: var(--cf-text); font-weight: 600; }
@media (hover: hover) { html body.ik:not(#_) .lh-mods a:hover .lh-mods__t { text-decoration: underline; text-underline-offset: 3px; } }
html body.ik:not(#_) p.lh-prog__note { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--cf-line); font-size: 13px; color: var(--cf-text-3); }

/* Before lesson 1: one line above the modules. */
html body.ik:not(#_) p.lh-before { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 16px; padding: 16px 20px; border: 1px solid var(--cf-line); border-radius: 18px; background: #fff; font-size: 15px; line-height: 1.5; color: var(--cf-text-2); }
html body.ik:not(#_) .lh-before b { font-weight: 600; color: var(--cf-text); }

/* The syllabus: one row per module, the module on the left, its lessons on the right. Every lesson visible. */
html body.ik:not(#_) ol.lh-syl { display: flex; flex-direction: column; gap: 12px; }
html body.ik:not(#_) li.lh-mod { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; padding: 28px; border-radius: 28px; background: #fff; scroll-margin-top: 100px; }
html body.ik:not(#_) p.lh-mod__eye { font-size: 13px; font-weight: 500; color: var(--cf-text-3); }
html body.ik:not(#_) h3.lh-mod__h { margin-top: 8px; font-size: clamp(22px, 2vw, 28px); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; color: var(--cf-text); text-align: left; }
html body.ik:not(#_) p.lh-mod__out { max-width: 40ch; margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--cf-text-2); }
html body.ik:not(#_) p.lh-mod__min { margin-top: 14px; font-size: 13px; color: var(--cf-text-3); }
html body.ik:not(#_) .lh-les li + li { border-top: 1px solid var(--cf-line); }
html body.ik:not(#_) .lh-les a { display: flex; align-items: flex-start; gap: 14px; padding: 14px 8px; border-radius: 14px; color: var(--cf-text); text-decoration: none; transition: background-color .2s var(--ease); }
.lh-les__t { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lh-les__t b { font-size: 17px; font-weight: 500; line-height: 1.3; }
.lh-les__t i { font-size: 14px; font-style: normal; line-height: 1.45; color: var(--cf-text-2); }
html body.ik:not(#_) .lh-les__m { flex: none; padding-top: 3px; font-size: 13px; color: var(--cf-text-3); white-space: nowrap; }
@media (hover: hover) {
  html body.ik:not(#_) .lh-les a:hover { background: var(--cf-mist); }
  html body.ik:not(#_) .lh-les li:not(.is-done) a:hover .lc-dot { border-color: var(--cf-lime); background: var(--cf-lime); color: var(--cf-ink); }
}
html body.ik:not(#_) .lh-les a:focus-visible { outline: 2px solid var(--cf-ink); outline-offset: 2px; }

/* Plays from the course: six ink cards, each a play, its line and the lesson. */
html body.ik:not(#_) ol.lh-plays { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
html body.ik:not(#_) .lh-plays li { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--cf-ink-line); border-radius: 24px; background: var(--cf-ink-2); }
html body.ik:not(#_) p.lh-plays__eye { font-size: 13px; color: var(--cf-on-ink-2); }
html body.ik:not(#_) h3.lh-plays__h { margin-top: 8px; font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; color: var(--cf-on-ink); text-align: left; }
html body.ik:not(#_) p.lh-plays__line { flex: 1; margin: 14px 0 16px; padding: 14px 16px; border-radius: 14px; background: var(--cf-ink-3); font-size: 15px; line-height: 1.5; color: var(--cf-on-ink); }
html body.ik:not(#_) p.lh-plays__line::before { content: "\201C"; } html body.ik:not(#_) p.lh-plays__line::after { content: "\201D"; }
html body.ik:not(#_) a.lh-plays__a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--cf-ink-line); font-size: 15px; color: var(--cf-on-ink); text-decoration: none; transition: color .2s; }
@media (hover: hover) { html body.ik:not(#_) a.lh-plays__a:hover { color: var(--cf-lime); } }
html body.ik:not(#_) a.lh-plays__a:focus-visible { outline: 2px solid var(--cf-lime); outline-offset: 2px; }

/* ==================== Lessons: the course player ==================== */

/* Course bar on the ink under the header: back to the course, lesson N of 13, progress. */
html body.ik:not(#_) .lc-bar { padding: 100px 0 18px; }
.lc-bar__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
html body.ik:not(#_) a.lc-bar__course { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--cf-on-ink); text-decoration: none; }
@media (hover: hover) { html body.ik:not(#_) a.lc-bar__course:hover { color: var(--cf-lime); } }
html body.ik:not(#_) p.lc-bar__prog { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--cf-on-ink-2); font-variant-numeric: tabular-nums; }
.lc-bar__prog .lc-meter { width: 160px; }
.lc-bar__short { display: none; }

/* The grid: lesson list left (sticky), one reading column. */
html body.ik:not(#_) section.lc-body { margin-top: 0; }
html body.ik:not(#_) .lc-grid { display: grid; grid-template-columns: 280px minmax(0, 720px); gap: clamp(40px, 5.5vw, 96px); align-items: start; }

/* Lesson list. Desktop: always open, summary hidden. Phones: a closed panel at the top. */
html body.ik:not(#_) details.lc-side { position: sticky; top: 96px; max-height: calc(100vh - 116px); overflow-y: auto; overscroll-behavior: contain; color: var(--cf-text); }
html body.ik:not(#_) summary.lc-side__sum { display: none; }
html body.ik:not(#_) p.lc-side__mod { margin: 18px 0 6px; padding: 0 8px; font-size: 13px; font-weight: 500; color: var(--cf-text-3); }
html body.ik:not(#_) p.lc-side__mod:first-child { margin-top: 0; }
html body.ik:not(#_) .lc-side li a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px; font-size: 14px; line-height: 1.3; color: var(--cf-text-2); text-decoration: none; }
html body.ik:not(#_) .lc-side .lc-dot { width: 24px; height: 24px; font-size: 11px; }
.lc-side__t { flex: 1; min-width: 0; }
html body.ik:not(#_) .lc-side__m { flex: none; font-size: 13px; color: var(--cf-text-3); }
html body.ik:not(#_) .lc-side li.is-on a { background: #fff; font-weight: 500; color: var(--cf-text); }
@media (hover: hover) { html body.ik:not(#_) .lc-side li:not(.is-on) a:hover { background: rgba(255, 255, 255, .7); color: var(--cf-text); } }
html body.ik:not(#_) .lc-side a:focus-visible { outline: 2px solid var(--cf-ink); outline-offset: 1px; }

/* Lesson head: module, H1, meta, goals, the answer. */
html body.ik:not(#_) .lc-main { color: var(--cf-text); }
html body.ik:not(#_) p.lc-mod a { font-size: 14px; font-weight: 500; color: var(--cf-text-3); text-decoration: none !important; }
@media (hover: hover) { html body.ik:not(#_) p.lc-mod a:hover { color: var(--cf-text); text-decoration: underline; text-underline-offset: 3px; } }
html body.ik:not(#_):not(#_) [role="main"] h1.lc-h1 { max-width: 720px; margin-top: 10px; font-size: clamp(36px, 3.8vw, 56px) !important; font-weight: 600 !important; line-height: 1.04; letter-spacing: -.045em; color: var(--cf-text); text-align: left; text-wrap: balance; }
html body.ik:not(#_) p.lc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 14px; font-size: 14px; color: var(--cf-text-3); }
html body.ik:not(#_) .lc-meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 14px 2px -4px; border-radius: 50%; background: var(--cf-field); vertical-align: middle; }
html body.ik:not(#_) .lc-meta span.lc-meta__done { padding: 2px 10px; border-radius: 999px; background: var(--cf-lime); font-weight: 600; color: var(--cf-ink); }
html body.ik:not(#_) .lc-meta span.lc-meta__done::before { display: none; }
html body.ik:not(#_) .lc-meta span.lc-meta__done[hidden] { display: none; }
html body.ik:not(#_) .lc-goals { margin-top: 24px; padding: 20px 22px; border: 1px solid var(--cf-line); border-radius: 20px; background: #fff; }
html body.ik:not(#_) p.lc-goals__h { font-size: 13px; font-weight: 500; color: var(--cf-text-3); }
html body.ik:not(#_) .lc-goals ul { margin-top: 8px; }
html body.ik:not(#_) .lc-goals li { display: flex; align-items: flex-start; gap: 12px; padding: 6px 0; font-size: 16px; line-height: 1.5; color: var(--cf-text); }
html body.ik:not(#_) .lc-goals svg { flex: none; width: 22px; height: 22px; margin-top: 1px; padding: 4px; border-radius: 50%; background: var(--cf-lime); color: var(--cf-ink); }
html body.ik:not(#_) p.lc-lead { margin-top: 24px; font-size: 19px; line-height: 1.6; color: var(--cf-text); }
html body.ik:not(#_) p.lc-lead a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
html body.ik:not(#_) p.lc-lead strong { font-weight: 600; }

/* Lesson sections. */
html body.ik:not(#_) section.lnl-sec { margin: 48px 0 0; padding: 0; scroll-margin-top: 100px; }
html body.ik:not(#_) h2.lnl-h2 { font-size: clamp(26px, 2.3vw, 32px); font-weight: 500; line-height: 1.15; letter-spacing: -.03em; color: var(--cf-text); text-align: left; }
html body.ik:not(#_) .lc-main p { font-size: 17px; line-height: 1.65; color: var(--cf-text-2); }
html body.ik:not(#_) .lnl-sec > p { margin-top: 12px; }
html body.ik:not(#_) .lc-main strong { font-weight: 600; color: var(--cf-text); }
html body.ik:not(#_) .lc-main :is(.lnl-sec, .lc-recap, .lc-task) :is(p, li, td) a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
html body.ik:not(#_) figure.lnl-shot { margin: 20px 0 0; overflow: hidden; border: 1px solid var(--cf-line); border-radius: 18px; background: #fff; }
html body.ik:not(#_) .lnl-shot img { width: 100%; height: auto; }
html body.ik:not(#_) ul.lnl-ticks { margin-top: 14px; }
html body.ik:not(#_) .lnl-ticks li { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; font-size: 17px; line-height: 1.55; color: var(--cf-text-2); }
html body.ik:not(#_) .lnl-ticks svg { flex: none; width: 24px; height: 24px; margin-top: 1px; padding: 4px; border-radius: 50%; background: var(--cf-lime); color: var(--cf-ink); }
html body.ik:not(#_) ol.lnl-steps { margin-top: 16px; }
html body.ik:not(#_) .lnl-steps li { display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px; border: 1px solid var(--cf-line); border-radius: 18px; background: #fff; }
html body.ik:not(#_) .lnl-steps li + li { margin-top: 8px; }
.lnl-steps__n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--cf-lime); font-size: 14px; font-weight: 600; color: var(--cf-ink); }
html body.ik:not(#_) .lnl-steps h3 { font-size: 17px; font-weight: 500; line-height: 1.35; color: var(--cf-text); text-align: left; }
html body.ik:not(#_) .lc-main .lnl-steps p { margin-top: 4px; font-size: 15.5px; line-height: 1.55; }
html body.ik:not(#_) .lnl-ex { margin-top: 16px; padding: 4px 18px; border: 1px solid var(--cf-line); border-radius: 18px; background: #fff; }
html body.ik:not(#_) .lc-main p.lnl-ex__h { margin: 0; padding: 12px 0 8px; font-size: 13px; font-weight: 500; color: var(--cf-text-3); }
.lnl-ex__row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--cf-line); }
.lnl-ex__msg { flex: 1; min-width: 0; font-size: 15px; line-height: 1.45; color: var(--cf-text); }
html body.ik:not(#_) button.lnl-copy { flex: none; padding: 7px 12px; border: 1px solid var(--cf-field); border-radius: 8px; background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--cf-text); cursor: pointer; }
@media (hover: hover) { html body.ik:not(#_) button.lnl-copy:hover { border-color: var(--cf-lime); background: var(--cf-lime); } }
html body.ik:not(#_) .lnl-table { margin-top: 16px; overflow-x: auto; border: 1px solid var(--cf-line); border-radius: 18px; background: #fff; }
html body.ik:not(#_) .lnl-table table { width: 100%; border-collapse: collapse; }
html body.ik:not(#_) .lnl-table :is(th, td) { padding: 13px 16px; font-size: 15px; line-height: 1.45; color: var(--cf-text); text-align: left; vertical-align: top; }
html body.ik:not(#_) .lnl-table th { font-size: 13px; font-weight: 500; color: var(--cf-text-3); }
html body.ik:not(#_) .lnl-table tbody td { border-top: 1px solid var(--cf-line); }
html body.ik:not(#_) .lnl-callout { margin-top: 16px; padding: 18px 20px; border: 1px solid var(--cf-line); border-left: 4px solid var(--cf-lime); border-radius: 18px; background: #fff; }
html body.ik:not(#_) .lnl-callout b { font-size: 15px; font-weight: 600; }
html body.ik:not(#_) .lc-main .lnl-callout p { margin-top: 4px; font-size: 16px; }

/* Plays: the tactics, each a white card with why, how and a line to copy. */
html body.ik:not(#_) ol.lc-plays { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
html body.ik:not(#_) li.lc-play { padding: 22px 22px 20px; border: 1px solid var(--cf-line); border-radius: 20px; background: #fff; }
html body.ik:not(#_) .lc-main p.lc-play__n { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--cf-lime); font-size: 13px; font-weight: 600; line-height: 1.6; color: var(--cf-ink); }
html body.ik:not(#_) .lc-play h3 { margin-top: 10px; font-size: 19px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; color: var(--cf-text); text-align: left; }
html body.ik:not(#_) .lc-main .lc-play > p:not(.lc-play__n) { margin-top: 6px; font-size: 16px; line-height: 1.6; }
html body.ik:not(#_) ol.lc-play__how { margin-top: 10px; counter-reset: how; }
html body.ik:not(#_) .lc-play__how li { position: relative; padding: 4px 0 4px 28px; font-size: 16px; line-height: 1.55; color: var(--cf-text); counter-increment: how; }
html body.ik:not(#_) .lc-play__how li::before { content: counter(how); position: absolute; top: 6px; left: 0; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--cf-mist); font-size: 12px; font-weight: 600; color: var(--cf-text-2); }
.lc-line { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 12px 12px 12px 16px; border-radius: 14px; background: var(--cf-mist); }
.lc-line__t { flex: 1; min-width: 0; font-size: 15px; line-height: 1.5; color: var(--cf-text); }
.lc-line__t::before { content: "\201C"; } .lc-line__t::after { content: "\201D"; }

/* Lines to copy: what it is for, then the line. */
html body.ik:not(#_) .lc-copy { margin-top: 16px; padding: 4px 18px; border: 1px solid var(--cf-line); border-radius: 18px; background: #fff; }
.lc-copy__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "use btn" "t btn"; column-gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--cf-line); }
.lc-copy__use { grid-area: use; font-size: 13px; color: var(--cf-text-3); }
.lc-copy__t { grid-area: t; margin-top: 2px; font-size: 16px; line-height: 1.45; color: var(--cf-text); }
.lc-copy__row .lnl-copy { grid-area: btn; }

/* Mistakes: what goes wrong, then what to do instead. */
html body.ik:not(#_) ul.lc-mis { margin-top: 14px; }
html body.ik:not(#_) .lc-mis li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; }
html body.ik:not(#_) .lc-mis li + li { border-top: 1px solid var(--cf-line); }
.lc-mis__x { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--cf-ink); color: #fff; }
html body.ik:not(#_) .lc-mis b { font-size: 17px; font-weight: 500; color: var(--cf-text); }
html body.ik:not(#_) .lc-main .lc-mis p { margin-top: 2px; font-size: 16px; line-height: 1.55; }

/* Set it up in CreatorFlow: one short white panel after the plays. */
html body.ik:not(#_) section.lc-setup { margin-top: 56px; padding: 26px 24px 22px; border: 1px solid var(--cf-line); border-radius: 24px; background: #fff; scroll-margin-top: 100px; }
html body.ik:not(#_) .lc-main p.lc-setup__eye { margin-bottom: 6px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cf-text-3); }
html body.ik:not(#_) .lc-setup > p:not(.lc-setup__eye) { margin-top: 10px; }
html body.ik:not(#_) .lc-setup .lnl-steps li { border-color: transparent; background: var(--cf-mist); }

/* Your task: the practice step, an ink card so it reads as something to do, not something to read. */
html body.ik:not(#_) section.lc-task { margin-top: 56px; padding: 28px; border-radius: 24px; background: var(--cf-ink); color: var(--cf-on-ink); scroll-margin-top: 100px; }
html body.ik:not(#_) p.lc-task__eye { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cf-lime); }
html body.ik:not(#_) h2.lc-task__h { margin-top: 8px; font-size: clamp(24px, 2.2vw, 30px); font-weight: 500; line-height: 1.15; letter-spacing: -.03em; color: var(--cf-on-ink); text-align: left; }
html body.ik:not(#_) .lc-task ol { margin-top: 16px; }
html body.ik:not(#_) .lc-task li { display: flex; align-items: flex-start; gap: 14px; padding: 10px 0; }
html body.ik:not(#_) .lc-task li + li { border-top: 1px solid var(--cf-ink-line); }
html body.ik:not(#_) .lc-task li > span { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--cf-lime); font-size: 13px; font-weight: 600; color: var(--cf-ink); }
html body.ik:not(#_) .lc-main .lc-task p { font-size: 16px; line-height: 1.55; color: #d4d4d8; }
html body.ik:not(#_) .lc-main .lc-task strong { color: var(--cf-on-ink); }
html body.ik:not(#_) .lc-main p.lc-task__done { margin: 14px 0 20px; padding: 14px 16px; border-radius: 14px; background: var(--cf-ink-2); color: var(--cf-on-ink); }

/* Key points. */
html body.ik:not(#_) section.lc-recap { margin-top: 48px; }
html body.ik:not(#_) .lc-recap ul { margin-top: 14px; padding: 6px 22px; border: 1px solid var(--cf-line); border-radius: 20px; background: #fff; }
html body.ik:not(#_) .lc-recap li { position: relative; padding: 12px 0 12px 22px; font-size: 16px; line-height: 1.55; color: var(--cf-text); }
html body.ik:not(#_) .lc-recap li + li { border-top: 1px solid var(--cf-line); }
html body.ik:not(#_) .lc-recap li::before { content: ""; position: absolute; top: 21px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--cf-lime); outline: 1px solid var(--cf-lime-lo); }

/* Done and next. */
html body.ik:not(#_) nav.lc-next { display: flex; flex-direction: column; gap: 12px; margin-top: 48px; }
html body.ik:not(#_) a.lc-next__card { display: flex; flex-direction: column; gap: 6px; padding: 24px; border: 1px solid var(--cf-line); border-radius: 24px; background: #fff; color: var(--cf-text); text-decoration: none; transition: border-color .2s var(--ease); }
.lc-next__eye { font-size: 13px; color: var(--cf-text-3); }
.lc-next__card b { font-size: clamp(22px, 2vw, 26px); font-weight: 500; line-height: 1.2; letter-spacing: -.02em; }
.lc-next__p { font-size: 15px; line-height: 1.5; color: var(--cf-text-2); }
.lc-next__go { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; height: 48px; margin-top: 12px; padding: 0 20px; border-radius: 8px; background: var(--cf-grad-lime); font-size: 16px; font-weight: 500; color: var(--cf-ink); }
@media (hover: hover) { html body.ik:not(#_) a.lc-next__card:hover { border-color: var(--cf-ink); } html body.ik:not(#_) a.lc-next__card:hover .lc-next__go { background: var(--cf-lime-lo); } }
html body.ik:not(#_) a.lc-next__prev { align-self: flex-start; padding: 4px 0; font-size: 14px; color: var(--cf-text-2); text-decoration: underline; text-underline-offset: 3px; }

html body.ik:not(#_) .lc-main .ik-faq { margin-top: 16px; }
html body.ik:not(#_) .lc-main .ik-faq p { margin-top: 0; }
html body.ik:not(#_) .lc-main p.lnl-updated { margin-top: 16px; font-size: 13px; color: var(--cf-text-3); }

/* ==================== Tablets and phones ==================== */
@media (max-width: 1099px) {
  html body.ik:not(#_) .lh-prog { justify-self: center; }
  html body.ik:not(#_) li.lh-mod { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  html body.ik:not(#_) ol.lh-plays { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body.ik:not(#_) .lc-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  html body.ik:not(#_) .lc-main { max-width: 720px; }
  html body.ik:not(#_) details.lc-side { position: static; max-height: none; overflow: visible; border: 1px solid var(--cf-line); border-radius: 18px; background: #fff; }
  html body.ik:not(#_) summary.lc-side__sum { display: flex; align-items: center; gap: 12px; padding: 14px 18px; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
  html body.ik:not(#_) summary.lc-side__sum::-webkit-details-marker { display: none; }
  .lc-side__where { flex: 1; font-size: 13px; font-weight: 400; color: var(--cf-text-3); text-align: right; }
  html body.ik:not(#_) details.lc-side[open] summary svg { transform: rotate(180deg); }
  html body.ik:not(#_) .lc-side__nav { padding: 0 10px 12px; }
  html body.ik:not(#_) p.lc-side__mod:first-child { margin-top: 6px; }
  html body.ik:not(#_) .lc-side li.is-on a { background: var(--cf-mist); }
}
@media (max-width: 767px) {
  html body.ik:not(#_) .lc-bar { padding: 88px 0 14px; }
  html body.ik:not(#_) a.lc-bar__course { font-size: 14px; }
  .lc-bar__long { display: none; }
  .lc-bar__short { display: inline; }
  html body.ik:not(#_) .lc-bar__prog .lc-meter, html body.ik:not(#_) .lc-bar__done { display: none; }
  html body.ik:not(#_) li.lh-mod { padding: 22px 16px 14px; border-radius: 24px; }
  html body.ik:not(#_) ol.lh-plays { grid-template-columns: minmax(0, 1fr); }
  html body.ik:not(#_) .lh-les a { padding: 12px 4px; }
  html body.ik:not(#_) .lh-prog { padding: 20px 18px 14px; border-radius: 24px; }
  html body.ik:not(#_) ul.lh-facts { justify-content: center; gap: 6px 18px; }
  html body.ik:not(#_) .lh-facts li + li::before { display: none; }
  /* Phones: the card keeps your progress and the next lesson; the module rows repeat the syllabus below. */
  html body.ik:not(#_) .lh-prog :is(ol.lh-mods, p.lh-prog__note) { display: none; }
  html body.ik:not(#_) p.lc-lead { font-size: 18px; }
  html body.ik:not(#_) .lc-main p, html body.ik:not(#_) .lnl-ticks li { font-size: 16px; }
  html body.ik:not(#_) .lnl-steps li { gap: 12px; padding: 14px 16px; }
  html body.ik:not(#_) section.lc-task { padding: 22px 18px; border-radius: 20px; }
  html body.ik:not(#_) a.lc-next__card { padding: 20px 18px; }
  html body.ik:not(#_) .lnl-ex__row { flex-wrap: wrap; }
  /* A row with a keyword: keyword and Copy share the first line, the message takes the full width under them. A long
     keyword ("CODE (after)", "CODIGO (después)") squeezed the message to one or two words a line. */
  html body.ik:not(#_) .lnl-ex__row:has(> .ik-kw) > .ik-kw { order: 1; }
  html body.ik:not(#_) .lnl-ex__row:has(> .ik-kw) > button.lnl-copy { order: 2; margin-left: auto; }
  html body.ik:not(#_) .lnl-ex__row:has(> .ik-kw) > .lnl-ex__msg { order: 3; flex: 1 1 100%; }
  html body.ik:not(#_) li.lc-play { padding: 18px 16px; }
  .lc-line { flex-wrap: wrap; }
  html body.ik:not(#_) section.lc-setup { padding: 22px 16px 16px; border-radius: 20px; }
  /* Tables become one block per row: the first cell as its title, each other cell with its column name. */
  html body.ik:not(#_) .lnl-table thead { display: none; }
  html body.ik:not(#_) .lnl-table :is(table, tbody, tr, td) { display: block; }
  html body.ik:not(#_) .lnl-table tr { padding: 12px 16px; }
  html body.ik:not(#_) .lnl-table tbody tr + tr { border-top: 1px solid var(--cf-line); }
  html body.ik:not(#_) .lnl-table tbody td { padding: 3px 0; border-top: 0; }
  html body.ik:not(#_) .lnl-table td:first-child { padding-bottom: 6px; font-weight: 500; }
  html body.ik:not(#_) .lnl-table td[data-th]:not(:first-child) { display: flex; justify-content: space-between; gap: 16px; }
  html body.ik:not(#_) .lnl-table td[data-th]:not(:first-child)::before { content: attr(data-th); flex: none; color: var(--cf-text-3); }
}
