/* Plan #560: Learn, our video tutorials. The list of tracks with lesson cards,
   and each lesson's page. Uses the public pages' colour tokens, so both themes work. */
.ln-wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px 32px; }
.ln-narrow { max-width: 760px; }
.ln-hero { text-align: center; padding: 56px 0 28px; }
.ln-kicker { font-size: 15px; font-weight: 600; color: var(--pub-accent); margin: 0 0 12px; }
.ln-title { font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: clamp(34px, 5.6vw, 56px);
  line-height: 1.06; letter-spacing: -0.02em; margin: 0; color: var(--pub-text); }
.ln-lede { font-size: 18px; color: var(--pub-dim); margin: 16px auto 0; max-width: 34em; }
.ln-start { display: inline-flex; align-items: center; min-height: 44px; margin-top: 22px; padding: 10px 20px;
  border-radius: 999px; background: var(--pub-accent); color: var(--pub-accent-ink); font-weight: 700; text-decoration: none; }
.ln-start:hover { filter: brightness(1.06); }
.ln-track { margin-top: 36px; }
.ln-track-h { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin: 0; color: var(--pub-text); }
.ln-track-blurb { margin: 6px 0 0; color: var(--pub-dim); }
.ln-grid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ln-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .ln-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ln-card { display: flex; flex-direction: column; gap: 6px; min-height: 96px; height: 100%; box-sizing: border-box;
  padding: 16px 18px; border-radius: 14px; border: 1px solid var(--pub-line); background: var(--pub-surface);
  color: var(--pub-text); text-decoration: none; box-shadow: var(--pub-shadow); transition: border-color .15s ease; }
.ln-card:hover { border-color: var(--pub-accent); }
.ln-card:focus-visible { outline: 2px solid var(--pub-accent); outline-offset: 2px; }
.ln-card-top { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--pub-accent); }
.ln-card-title { font-size: 17px; font-weight: 700; line-height: 1.3; }
.ln-card-meta { margin-top: auto; font-size: 13px; color: var(--pub-faint); }
.ln-lock { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: var(--pub-dim); background: var(--pub-surface-2); border: 1px solid var(--pub-line); }
.ln-lock svg { width: 12px; height: 12px; }
.ln-empty { text-align: center; color: var(--pub-dim); padding: 24px 0 48px; }

/* A lesson's page. */
.ln-crumb { margin: 32px 0 0; font-size: 14px; color: var(--pub-dim); }
.ln-crumb a { color: inherit; }
.ln-h1 { font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: clamp(30px, 4.6vw, 44px); line-height: 1.1;
  letter-spacing: -0.015em; margin: 10px 0 0; color: var(--pub-text); }
.ln-mins { margin: 8px 0 0; color: var(--pub-faint); font-size: 14px; }
.ln-banner { margin: 18px 0 0; padding: 10px 14px; border-radius: 10px; font-weight: 600;
  background: var(--pub-accent-soft); color: var(--pub-text); border: 1px dashed var(--pub-accent); }
.ln-note { margin: 18px 0 0; padding: 12px 14px; border-radius: 10px; background: #FEF3C7; color: #78350F; border: 1px solid #FCD34D; }
html.dark .ln-note { background: rgba(245,158,11,.12); color: #FDE68A; border-color: rgba(245,158,11,.35); }
.ln-video { position: relative; margin: 22px 0 0; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  background: #0E141C; color: #F4F6F8; display: grid; place-items: center; text-align: center; padding: 16px;
  box-shadow: 0 20px 50px -24px rgba(0,0,0,.6); }
.ln-video-label { font-size: clamp(16px, 2.4vw, 22px); font-weight: 700; max-width: 26em; }
.ln-video-sub { margin-top: 6px; font-size: 13px; color: #9aa3b5; }
.ln-play { display: grid; place-items: center; width: 76px; height: 76px; margin: 14px auto 0; border-radius: 999px; border: 0;
  background: #2BB8A0; color: #06110d; cursor: pointer; box-shadow: 0 10px 30px -10px rgba(0,0,0,.8); }
.ln-play svg { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; }
.ln-play:hover { filter: brightness(1.08); }
.ln-play:focus-visible { outline: 3px solid #F4F6F8; outline-offset: 3px; }
.ln-locked-line { margin-top: 10px; font-weight: 700; }
.ln-locked-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.ln-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 1px solid rgba(244,246,248,.3); color: #F4F6F8; }
.ln-btn--main { background: #2BB8A0; border-color: #2BB8A0; color: #06110d; }
.ln-summary { margin: 22px 0 0; font-size: 18px; line-height: 1.6; color: var(--pub-text); }
.ln-h2 { margin: 28px 0 0; font-size: 20px; font-weight: 700; color: var(--pub-text); }
.ln-steps { list-style: decimal; margin: 12px 0 0; padding-left: 1.4em; line-height: 1.65; color: var(--pub-text); }
.ln-steps li + li { margin-top: 6px; }
.ln-checked { margin: 22px 0 0; font-size: 14px; color: var(--pub-dim); }
.ln-since { margin: 6px 0 0; font-size: 14px; color: var(--pub-dim); }
.ln-ask { margin: 22px 0 0; }
.ln-ask a, .ln-pager a { color: var(--pub-accent); font-weight: 600; }
.ln-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 32px 0 0; padding-top: 18px;
  border-top: 1px solid var(--pub-line); }
.ln-pager a { display: flex; flex-direction: column; gap: 2px; min-height: 44px; text-decoration: none; }
.ln-pager small { font-size: 12px; font-weight: 600; color: var(--pub-faint); }
.ln-pager .ln-next { text-align: right; grid-column: 2; align-items: flex-end; }
.ln-all { margin: 20px 0 0; }
.ln-all a { color: var(--pub-accent); font-weight: 600; }
/* Plan #566: lesson pictures. Only used once a lesson has a picture; without one nothing below applies. */
.ln-card.has-pic { padding-top: 0; overflow: hidden; }
.ln-card-pic { display: block; aspect-ratio: 16 / 9; margin: 0 -18px 8px; border-radius: 13px 13px 0 0;
  overflow: hidden; background: #0E141C; }
.ln-card-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ln-card-pic--none { display: grid; place-items: center; color: #F4F6F8; font-family: Fraunces, Georgia, serif;
  font-weight: 700; font-size: 40px; letter-spacing: -0.02em; }
.ln-video.has-picture { padding: 0; }
.ln-video-pic, .ln-video-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.ln-video-pic { object-fit: cover; }
.ln-video.is-playable .ln-video-shade { background: linear-gradient(to bottom, rgba(14,20,28,0) 0%, rgba(14,20,28,.75) 100%); }
.ln-video.is-locked .ln-video-shade, .ln-video.is-novideo .ln-video-shade { background: rgba(14,20,28,.8); }
.ln-video.has-picture .ln-video-body { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center;
  align-content: center; padding: 16px; text-align: center; }
.ln-video.has-picture .ln-play { margin-top: 0; }
.ln-video.has-picture .ln-play + .ln-video-sub { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0;
  color: #E6EAF0; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
@media (max-width: 479px) {
  /* The panel can't grow taller here, so the lesson's name (just above, in the heading) is left to screen readers. */
  .ln-video.has-picture .ln-video-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
  .ln-video.has-picture .ln-video-body { padding: 10px; }
  .ln-video.has-picture .ln-locked-line { margin-top: 0; }
  .ln-video.has-picture .ln-locked-actions { margin-top: 6px; gap: 6px; }
  .ln-video.has-picture .ln-video-sub { margin-top: 6px; }
}

@media (max-width: 640px) {
  .ln-hero { padding-top: 36px; }
  .ln-play { width: 60px; height: 60px; }
  .ln-pager { grid-template-columns: 1fr; }
  .ln-pager .ln-next { grid-column: 1; }
}
