/* The path, "dark & brass" (mockups/brass/dark/courses.html). */

/* head: title and the way in, beside the map */
.phead .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.phead .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
/* the map: one line, then a fork */
.map { position: relative; padding: 8px 0 8px 8px; }
.map ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.stop { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: center; padding: 16px 48px 16px 14px; border-radius: 16px; background: var(--card); color: var(--ink); transition: background .25s; }
.stop:hover { background: var(--card-hover); }
.stop .dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--acc); font-weight: 700; font-size: 15px; }
.stop.is-free .dot { background: var(--acc); color: var(--on-acc); }
.stop b { display: block; font-size: 17px; color: var(--ink); }
.stop span span, .fork .stop > span { font-size: 14px; color: var(--muted); }
.stop .go { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--acc); }
.fork { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: relative; margin-top: 2px; padding-top: 26px; }
.fork::before { content: ""; position: absolute; left: 30px; top: 0; width: calc(100% - 60px); height: 26px; border: 1px solid rgba(201,164,92,.5); border-bottom: 0; border-radius: 14px 14px 0 0; }
.fork::after { content: ""; position: absolute; left: 50%; top: -14px; width: 1px; height: 14px; background: rgba(201,164,92,.5); }
.map .lvl { margin: 0 0 10px 6px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.map .lvl--2 { margin-top: 26px; }
.fork .stop { grid-template-columns: 1fr; gap: 6px; padding: 16px 18px; }

/* levels */
.level { padding: 96px 0; }
.level-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 12px; }
.level-head .n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--d); color: var(--acc); font-weight: 700; align-self: center; }
.level-head .free, .level-head .lock { align-self: center; }
.level .lead { margin-top: 6px; margin-bottom: 48px; }

/* a Level 1 course: photo, words, first episodes */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.row { display: grid; grid-template-columns: 300px minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 36px 0; border-bottom: 1px solid var(--line-2); position: relative; }
.row .ph { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 3/2; background: var(--band); }
.row .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.row:hover .ph img { transform: scale(1.03); }
.row .ph .k { position: absolute; left: 12px; top: 12px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,248,236,.95); color: var(--on-acc); font-weight: 700; font-size: 14px; }
.row .meta { font-size: 14px; color: var(--muted); }
.row [data-course-progress] { margin-left: 8px; color: var(--acc); }
.row h3 { margin-top: 8px; font-size: 26px; }
.row h3 a::after { content: ""; position: absolute; inset: 0; }
.row h3 a:hover { color: var(--acc-2); }
.row p { margin-top: 10px; max-width: 44ch; color: var(--muted); }
.row .more { margin-top: 14px; position: relative; z-index: 1; pointer-events: none; }
.first { margin: 0; padding: 0; list-style: none; }
.first li { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: baseline; padding: 9px 6px; font-size: 15px; border-bottom: 1px solid var(--line); }
.first li:last-child { border-bottom: 0; }
.first li i { font-style: normal; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.first li span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.first li.more-l { color: var(--muted); font-size: 14px; }
.first-head { margin: 0 0 6px 6px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.row.soon .ph { display: grid; place-items: center; color: var(--muted); font-weight: 600; font-size: 14px; }

/* Level 2: two tracks side by side */
.tracks2 { display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; align-items: start; }
.or { align-self: center; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 600; font-size: 14px; color: var(--muted); position: sticky; top: 50vh; }
.track { display: flex; flex-direction: column; }
.track .cover { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16/8; background: var(--d); }
.track .cover img { width: 100%; height: 100%; object-fit: cover; }
.track .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(var(--shade),.75), rgba(var(--shade),.05) 60%); }
.track .cover .on { position: absolute; left: 20px; bottom: 20px; z-index: 1; color: var(--ink); background: var(--d); padding: 14px 20px; border-radius: 14px; }
.track .cover .on small { display: block; font-size: 14px; color: var(--muted); }
.track .cover .on b { display: block; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; margin-top: 4px; }
.track dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 24px 0 0; font-size: 15px; }
.track dt { color: var(--muted); }
.track dd { margin: 0; }
.track ol { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.track ol li { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.track ol img, .track ol .th { width: 96px; aspect-ratio: 3/2; object-fit: cover; border-radius: 10px; background: var(--band); }
.track ol b { display: block; font-size: 17px; }
.track ol b a::after { content: ""; position: absolute; inset: 0; }
.track ol li:hover b a { color: var(--acc-2); text-decoration: underline; text-decoration-color: var(--acc); text-underline-offset: 4px; }
.track ol .sub { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.track ol [data-course-progress] { margin-left: 8px; color: var(--acc); }
.track-foot { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

@media (max-width: 1024px) {
  .row { grid-template-columns: 240px 1fr; gap: 28px; }
  .row .first-col { grid-column: 1 / -1; }
  .first-head { margin-top: 10px; }
}
@media (max-width: 860px) {
  .phead .wrap { grid-template-columns: 1fr; gap: 36px; }
  .tracks2 { grid-template-columns: 1fr; gap: 56px; }
  .or { position: static; justify-self: center; }
  .level { padding: 72px 0; }
}
@media (max-width: 600px) {
  .row { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; }
  .row h3 { font-size: 22px; }
  .fork { grid-template-columns: 1fr; }
  .fork::before, .fork::after { display: none; }
  .track .cover .on b { font-size: 24px; }
  .phead .ctas .btn, .phead .ctas .ghost { flex: 1 1 100%; }
}
