/*
  Locks (LD2 §5.10, LD2-L): calm and kind, never a price. A locked level keeps its lessons readable (what is inside)
  with one quiet strip saying whose plan opens it; the lock's words are said once a page, in a note under the levels,
  with the one quiet way to the plans (adults, teens) or "Ask a grown-up" (kids); a lesson opened while locked shows
  the locked page: the level's lessons, the words and the way back. Loaded after course.css (Looks/LearnStyles.cs).
*/

/* ---------- The lock mark ---------- */
.ln-lock-icon { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--w-deep), color-mix(in srgb, var(--w-deep) 60%, var(--w-accent))); box-shadow: 0 10px 24px -8px var(--w-deep); }
.ln-lock-icon svg { width: 24px; height: 24px; fill: var(--w-glow); }
.ln-lock-icon--small { width: 30px; height: 30px; border-radius: 10px; box-shadow: none; }
.ln-lock-icon--small svg { width: 15px; height: 15px; }

/* ---------- A locked level: its lessons readable, one quiet strip ---------- */
.ln-stage.is-locked .ln-lessons { filter: saturate(.4); opacity: .62; pointer-events: none; user-select: none; }
.ln-lock-strip { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 9px 12px; border-radius: 14px; background: color-mix(in srgb, var(--w-deep, var(--ln-ink)) 6%, var(--ln-card)); box-shadow: inset 0 0 0 1px var(--ln-line-2); }
.ln-lock-strip-text { display: grid; gap: 1px; min-width: 0; }
.ln-lock-strip-text b { font-size: 14px; font-weight: 700; color: var(--ln-ink); }
.ln-lock-strip-text small { font-size: 13px; color: var(--ln-muted); }
.ln-final .ln-lock-strip { margin: 0; }
.ln-vc-part .ln-lock-strip { margin-top: 12px; }

/* ---------- The words, said once ---------- */
.ln-lock-text { display: grid; gap: 6px; justify-items: center; text-align: center; max-width: 46ch; }
.ln-lock-title { font-size: 15px; font-weight: 700; color: var(--ln-ink); }
.ln-lock-words { font-size: 15px; color: var(--ln-ink-2); }
.ln-lock-ways { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px; margin-top: 2px; }
.ln .ln-lock-plans { font-size: 15px; font-weight: 700; color: var(--ln-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--w-accent, var(--ln-gold)) 70%, transparent); text-decoration-thickness: 2px; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.ln .ln-lock-plans:hover { text-decoration-color: currentColor; }
.ln .ln-lock-signin { font-size: 13px; color: var(--ln-muted); }
.ln .ln-lock-signin:hover { color: var(--ln-ink); }

/* The note under the levels: one band across the stages. */
.ln-lock-note { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; margin-top: 4px; padding: 16px 20px; border-radius: 20px; background: var(--ln-card); box-shadow: var(--ln-shadow), inset 0 0 0 1px var(--ln-line); }
.ln-lock-note .ln-lock-icon { width: 44px; height: 44px; border-radius: 14px; }
.ln-lock-note .ln-lock-text { flex: 1; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; row-gap: 2px; justify-items: start; text-align: start; max-width: none; }
.ln-lock-note .ln-lock-title, .ln-lock-note .ln-lock-words { grid-column: 1; }
.ln-lock-note .ln-lock-ways { grid-column: 2; grid-row: 1 / span 2; justify-content: flex-end; margin: 0; }
.ln-vc-parts > .ln-lock-note { margin-top: 16px; }
@media (max-width: 700px) {
  .ln-lock-note { align-items: flex-start; padding: 14px 16px; }
  .ln-lock-note .ln-lock-text { grid-template-columns: minmax(0, 1fr); }
  .ln-lock-note .ln-lock-ways { grid-column: 1; grid-row: auto; justify-content: flex-start; margin-top: 6px; }
}

/* ---------- The locked page ---------- */
.ln-locked-page { position: relative; min-height: max(70vh, calc(100svh - 64px)); display: grid; place-items: center; padding: 40px 20px; overflow: hidden; }
.ln-main > .ln-locked-page { max-width: none; }
.ln-locked-art { position: absolute !important; inset: 0; z-index: 0; }
.ln-locked-card { position: relative; z-index: 1; display: grid; gap: 14px; width: min(560px, 100%); padding: 26px; border-radius: 26px; background: color-mix(in srgb, var(--ln-card) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--ln-shadow-lift); }
.ln-locked-head { display: flex; align-items: center; gap: 14px; }
.ln-locked-kicker { margin: 0 0 2px; font-size: 13px; font-weight: 600; color: var(--ln-muted); }
.ln-locked-card h1 { margin: 0; font-family: var(--ln-display); font-weight: 600; font-size: 26px; line-height: 1.15; color: var(--ln-ink); }
.ln-locked-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ln-locked-list li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--ln-card-2); box-shadow: inset 0 0 0 1px var(--ln-line); }
.ln-locked-list li[aria-current] { box-shadow: inset 0 0 0 2px var(--w-accent, var(--ln-gold)); }
.ln-locked-title { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; color: var(--ln-ink); }
.ln-locked-quiz .ln-locked-title { font-weight: 500; color: var(--ln-ink-2); }
.ln-locked-list .ln-lesson-min { font-size: 13px; color: var(--ln-muted); }
.ln-locked-facts { margin: -4px 0 0; font-size: 13px; color: var(--ln-muted); }
.ln-locked-card .ln-lock-text { justify-items: start; text-align: start; max-width: none; padding-top: 12px; border-top: 1px solid var(--ln-line); }
.ln-locked-card .ln-lock-ways { justify-content: flex-start; }
.ln-locked-card > .ln-btn { justify-self: start; }
@media (max-width: 520px) {
  .ln-locked-page { padding: 20px 12px; place-items: start center; }
  .ln-locked-card { padding: 18px; border-radius: 22px; }
  .ln-locked-card h1 { font-size: 22px; }
  .ln-locked-head .ln-lock-icon { width: 40px; height: 40px; border-radius: 12px; }
  .ln-locked-card > .ln-btn { justify-self: stretch; justify-content: center; }
}
