/* Lesson chrome — shared anatomy for course lessons (header + footer chrome).
   Referenced by lesson-head.njk / lesson-foot.njk via the lesson page's own
   <link> to /styles.css. Page-specific anatomy stays in each lesson page. */

/* Lesson chrome: header */
.ls-head { max-width: 720px; margin: 0 auto; padding-bottom: 1.4rem; }
.ls-head .ls-row { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.9rem; }
.ls-pos { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ls-status { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 0.25rem 0.6rem; }
.ls-status.ls-free { color: var(--accent); border-color: rgba(230,165,74,0.5); }

/* Progress rail (shared by lesson header + next-card variants) */
.lr-track { position: relative; height: 6px; background: var(--bg-3); }
.lr-fill { position: absolute; top: 0; bottom: 0; left: 0; width: 17%; background: var(--accent); }
.lr-dots { position: absolute; inset: 0; display: flex; justify-content: space-between; }
.lr-dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: rgba(244,248,244,0.35); }
.lr-dot.done { background: var(--accent); }
.lr-dot.done.lit { box-shadow: 0 0 0 3px rgba(230,165,74,0.25); }
.lr-dot .lr-tip { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; opacity: 0; transition: opacity 0.2s; pointer-events: none; z-index: 2; }
.lr-dot:hover .lr-tip { opacity: 1; }
.lr-dot.done .lr-tip { color: var(--accent-2); }

/* Lesson chrome: footer */
.ls-foot { border-top: 1px solid var(--line); padding-top: 1.4rem; margin-top: 2.2rem; }
.mc { display: flex; align-items: center; gap: 0.8rem; border: 1px solid var(--line); background: var(--bg-2); padding: 0.9rem 1.2rem; cursor: pointer; user-select: none; }
.mc:hover { border-color: var(--accent-2); }
.mc input { position: absolute; opacity: 0; }
.mc .box { width: 20px; height: 20px; border: 1px solid var(--line); background: var(--bg-3); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); color: var(--accent); font-size: 0.9rem; }
.mc.done .box::after { content: "✓"; }
.mc.done .box { border-color: var(--accent); }
.mc .mc-txt { color: var(--muted); font-size: 0.95rem; }
.mc.done .mc-txt { color: var(--accent-2); }
.mc .mc-note { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--muted); opacity: 0.7; margin-left: auto; }
.ls-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; color: var(--muted); }
.ls-nav .ls-hint { opacity: 0.75; }

/* Mobile */
@media (max-width: 760px) {
  .ls-head { padding-bottom: 1.1rem; }
  .ls-head .ls-row { flex-direction: column; gap: 0.35rem; }
  .lr-dot .lr-tip { display: none; }
  .lrail { padding: 1rem 1.1rem 1.6rem; }
  .mc { padding: 0.8rem 1rem; gap: 0.6rem; }
  .mc .mc-note { display: none; }
  .ls-nav { flex-direction: column; }
}