/* Courses page (templates/home/courses.html): a path from beginner to advanced;
   the free course opens up to show its units. */
.path-sec{padding-top:8px}
.path{display:grid;gap:20px}
.course{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;background:var(--panel);scroll-margin-top:100px}
.course .img{position:relative;min-height:300px;max-width:100%}
.course .img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.course.soon .img img{filter:saturate(.55) brightness(.7)}
.course .body{padding:40px;display:flex;flex-direction:column;gap:18px;min-width:0}
.course .meta{display:flex;flex-wrap:wrap;gap:8px}
.course h2{font-size:clamp(36px,3.6vw,50px);line-height:1}
.course p{color:var(--fg-2);font-size:17px;max-width:40em}
.course .acts{display:flex;flex-wrap:wrap;gap:12px;margin-top:auto;padding-top:6px}
.course.feature{grid-template-columns:1fr}
.course.feature .img{min-height:340px}
.course.feature .body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px 56px}
.course.feature .lead-c{display:flex;flex-direction:column;gap:18px}

/* units of the free course */
.units{list-style:none;margin:0;padding:0;display:grid;gap:0;counter-reset:u}
.units li{display:grid;grid-template-columns:34px 1fr auto;gap:14px;align-items:baseline;padding:14px 0;border-bottom:1px solid var(--line)}
.units li:first-child{padding-top:0}
.units .rn{font-family:var(--display);font-size:22px;color:var(--lh)}
.units b{font-weight:600}
.units small{display:block;color:var(--muted);font-size:14px;margin-top:2px}
.units .cnt{color:var(--muted);font-size:14px;white-space:nowrap}
.units li.wip b,.units li.wip .rn{color:var(--muted)}

/* "tell me when it opens" form on courses that are coming soon */
.course .acts.notify{flex-direction:column;gap:8px}
.notify-row{display:flex;flex-wrap:wrap;gap:8px}
.notify-row .input{flex:1;min-width:200px;height:48px}
.notify-row .btn{height:48px}

/* keyboard note under the list */
.kb-note{display:grid;grid-template-columns:auto 1fr;gap:20px;align-items:center;padding:28px 32px;border:1px solid var(--line);border-radius:var(--r-lg);color:var(--fg-2)}
.kb-note svg{color:var(--gold)}

@media (max-width:900px){
  .course,.course.feature .body{grid-template-columns:1fr}
  .course .img{min-height:220px}
  .course .body{padding:28px 24px}
}
@media (max-width:560px){
  .kb-note{grid-template-columns:1fr;padding:24px}
  .course .acts .btn{width:100%}
}
