/* The course view of a deep dive (js/course.js): the dashboard of lessons,
   a lesson with its rail of pieces and one piece on the screen, the switch
   in the top bar and the marks in the page's Start-here list. Colors and
   type are the page's own variables, so the two views read as one page. */

/* ---- the switch in the top bar ---- */
.top .views{ margin-left:auto; display:inline-flex; gap:2px; padding:2px; border:1px solid var(--line2); border-radius:999px; align-self:center; }
.top .views a{ font:600 12px/1 Inter,system-ui,sans-serif; letter-spacing:.04em; padding:6px 12px; border-radius:999px; color:var(--muted); text-decoration:none; }
.top .views a:hover{ color:var(--ink); }
.top .views a.active{ background:var(--a); color:#0c0b0a; }

/* ---- the Start-here list, marked ---- */
.course-callout{ margin:0 0 10px; padding:8px 12px; border-radius:8px; background:var(--panel2); border:1px solid var(--line2); }
.course-callout b{ color:var(--ink); }
.lesson-mark{ display:inline-block; min-width:22px; margin:0 6px 0 0; padding:0 6px; border-radius:999px; border:1px solid var(--line2); font:600 11px/18px Inter,system-ui,sans-serif; text-align:center; color:var(--muted2); text-decoration:none; vertical-align:1px; }
.lesson-mark:hover{ border-color:var(--a); color:var(--ink); }
.lesson-mark.started{ color:var(--a); border-color:var(--a); }
.lesson-mark.done{ background:var(--a); color:#0c0b0a; border-color:var(--a); }

/* ---- the course's own page ---- */
#course{ max-width:1560px; margin:0 auto; padding:0 22px 80px; }
#course .kicker{ font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted2); margin:0 0 4px; }
#course h1{ font:600 2rem/1.15 Fraunces,Georgia,serif; margin:0 0 10px; text-wrap:balance; }
#course h2{ font:600 1.35rem/1.2 Fraunces,Georgia,serif; margin:0; text-wrap:balance; }
#course h3{ font:600 1.45rem/1.2 Fraunces,Georgia,serif; margin:2px 0 12px; text-wrap:balance; }
.btn{ display:inline-block; font:600 13px/1 Inter,system-ui,sans-serif; padding:9px 16px; border-radius:999px; border:1px solid var(--line2); background:var(--panel2); color:var(--ink); text-decoration:none; cursor:pointer; white-space:nowrap; }
.btn:hover{ border-color:var(--a); }
.btn.primary{ background:var(--a); color:#0c0b0a; border-color:var(--a); }
.btn.primary:hover{ filter:brightness(1.08); }
.btn.quiet{ background:transparent; color:var(--muted); }
.btn.small{ padding:7px 12px; font-size:12px; }
.btn:focus-visible, .linklike:focus-visible{ outline:2px solid var(--a); outline-offset:2px; }
.linklike{ background:none; border:0; padding:0; font:inherit; color:var(--a); cursor:pointer; text-decoration:underline; }
.icon{ display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:50%; border:1px solid var(--line2); font:600 11px/1 Inter,system-ui,sans-serif; color:var(--muted); vertical-align:-5px; }
.icon.k-card{ color:var(--a); border-color:var(--a); }
.icon.k-check{ color:#8ec93f; border-color:#3f5a26; }

/* ---- the dashboard ---- */
.course-home{ max-width:980px; margin:0 auto; padding-top:26px; }
.course-head .blurb{ max-width:72ch; color:var(--muted); font-size:1.02rem; margin:0 0 14px; }
.read-link{ margin:0 0 16px; font-size:.92rem; }
.read-link .read-note{ color:var(--muted2); }
.overall{ max-width:72ch; margin:0 0 22px; }
.overall .bar{ height:8px; border-radius:999px; background:var(--line); overflow:hidden; }
.overall .bar span{ display:block; height:100%; background:var(--a); border-radius:999px; transition:width .3s ease; }
.overall-text{ margin:6px 0 0; color:var(--muted); font-size:.9rem; font-variant-numeric:tabular-nums; }
.hero{ margin:0 0 26px; padding:18px 22px 16px; border:1px solid var(--a); border-radius:14px; background:var(--panel); }
.hero.complete{ border-color:#8ec93f; }
.hero h2{ font-size:1.5rem; margin:2px 0 8px; }
.hero p{ margin:0 0 8px; color:var(--muted); max-width:80ch; }
.hero-piece{ color:var(--ink) !important; }
.hero-btns{ display:flex; flex-wrap:wrap; gap:10px; margin-top:12px !important; }
.lesson-list{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.lesson-row{ display:grid; grid-template-columns:44px minmax(0, 1fr) auto; gap:14px; align-items:start; padding:14px 16px; border:1px solid var(--line); border-radius:12px; background:var(--panel); }
.lesson-row.started{ border-color:var(--line2); }
.lesson-row.done{ border-color:#3f5a26; }
.ring{ width:44px; height:44px; }
.ring .track{ fill:none; stroke:var(--line); stroke-width:3.5; }
.ring .fill{ fill:none; stroke:var(--a); stroke-width:3.5; stroke-linecap:round; transform:rotate(-90deg); transform-origin:50% 50%; transition:stroke-dashoffset .3s ease; }
.ring.done .fill{ stroke:#8ec93f; }
.ring text{ fill:var(--ink); font:600 13px Inter,system-ui,sans-serif; }
.ring.done text{ fill:#8ec93f; }
.lesson-main{ min-width:0; }
.lesson-link{ display:block; color:var(--ink); text-decoration:none; }
.lesson-link:hover .lesson-name{ color:var(--a); }
.lesson-kicker{ display:block; font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted2); }
.lesson-name{ display:block; font:600 1.15rem/1.25 Fraunces,Georgia,serif; margin:2px 0 4px; }
.lesson-tagline{ margin:0 0 8px; color:var(--muted); max-width:70ch; }
.lesson-goal{ margin:8px 0 0; color:var(--muted2); font-size:.88rem; max-width:70ch; }
.lesson-goal i{ color:var(--muted); }
.lesson-goal.big{ font-size:1rem; color:var(--muted); margin:0 0 12px; }
.strip{ margin:0; font-size:.86rem; color:var(--muted2); }
.lesson-side{ display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.status{ font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted2); white-space:nowrap; }
.status.in-progress{ color:var(--a); }
.status.done{ color:#8ec93f; }
/* the appendix: after the lessons, plainer — no ring, no status, a list of what is there to read */
.course-home .appendix{ margin-top:30px; padding-top:18px; border-top:1px solid var(--line); }
.course-home .appendix h2{ margin:0 0 6px; }
.appendix-note{ margin:0 0 12px; color:var(--muted); max-width:72ch; font-size:.95rem; }
.appendix-list{ list-style:none; margin:0; padding:0; display:grid; gap:6px; max-width:72ch; }
.appendix-list a{ display:grid; grid-template-columns:20px minmax(0, 1fr) auto; gap:10px; align-items:center; padding:8px 10px; border:1px solid var(--line); border-radius:10px; background:var(--panel); color:var(--ink); text-decoration:none; }
.appendix-list a:hover{ border-color:var(--a); }
.appendix-list .appendix-title{ display:flex; flex-direction:column; gap:1px; }
.appendix-list .rail-kicker{ font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted2); }
.appendix-list .rail-min{ color:var(--muted2); font-size:12px; font-variant-numeric:tabular-nums; }
.course-lesson.appendix .lesson-progress .count{ color:var(--muted2); }
.course-foot{ margin-top:26px; color:var(--muted2); font-size:.88rem; max-width:80ch; }
.course-foot p{ margin:0 0 8px; }

/* ---- a lesson ---- */
.course-lesson{ padding-top:14px; }
.lesson-bar{ display:flex; align-items:center; flex-wrap:wrap; gap:10px 22px; padding:10px 0 12px; border-bottom:1px solid var(--line); margin-bottom:18px; }
.lesson-bar .back{ font:600 13px Inter,system-ui,sans-serif; color:var(--muted); text-decoration:none; white-space:nowrap; }
.lesson-bar .back:hover{ color:var(--ink); }
.lesson-title .kicker{ margin:0; }
.lesson-title h2{ font-size:1.3rem; }
.lesson-progress{ display:flex; align-items:center; gap:10px; margin-left:auto; }
.lesson-progress .count{ font-size:12px; color:var(--muted); font-variant-numeric:tabular-nums; white-space:nowrap; }
.segments{ display:flex; gap:3px; }
.segments i{ display:block; width:14px; height:6px; border-radius:3px; background:var(--line2); }
.segments i.done{ background:var(--a); }
.segments i.current{ outline:1px solid var(--ink); outline-offset:1px; }
.course-countin{ display:flex; align-items:center; gap:6px; font-size:12px; color:var(--muted); white-space:nowrap; }
.course-countin input{ accent-color:var(--a); }
.lesson-body{ display:grid; grid-template-columns:270px minmax(0, 1fr); gap:28px; align-items:start; }
.rail{ position:sticky; top:12px; max-height:calc(100vh - 24px); overflow-y:auto; scrollbar-width:thin; }
.rail ol{ list-style:none; margin:0; padding:0; display:grid; gap:2px; }
.rail li a{ display:grid; grid-template-columns:22px minmax(0, 1fr) auto; gap:8px; align-items:start; padding:7px 10px; border-radius:8px; border:1px solid transparent; color:var(--muted); text-decoration:none; font-size:13px; line-height:1.3; }
.rail li a:hover{ color:var(--ink); background:var(--panel); }
.rail li.current a{ color:var(--ink); border-color:var(--a); background:var(--panel); }
.rail li.done .icon{ background:var(--a); color:#0c0b0a; border-color:var(--a); }
.rail li.done .rail-title{ color:var(--muted2); }
.rail li.current.done .rail-title{ color:var(--ink); }
.rail .icon{ margin-top:1px; }
.rail-kicker{ display:block; font-size:10px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted2); }
.rail-min{ font-size:11px; color:var(--muted2); font-variant-numeric:tabular-nums; margin-top:2px; }
.piece-pane{ min-width:0; }
.piece{ padding:0 0 30px; }
.piece .kicker .icon{ margin-right:4px; }
.piece-body{ min-width:0; }
.piece.k-read .piece-body, .piece.k-text .piece-body, .piece.k-check .piece-body{ max-width:72ch; }
.course-read{ font-size:1.02rem; line-height:1.6; color:var(--ink); max-width:72ch; }
.course-read p{ margin:0 0 12px; }
.course-read.note{ padding:10px 14px; border-left:3px solid var(--line2); background:var(--panel); border-radius:0 8px 8px 0; }
.piece.k-figure .neck-fig{ max-width:900px; }
.piece.k-grips .grip-group{ margin:0; }
.piece.k-grips .grip-group:not(.has-vars){ max-width:560px; }
/* (the kinds are prefixed k- because the page styles .grips, .faults, .players and .sources of its own) */
.course-songs{ display:grid; gap:12px; max-width:90ch; }
.course-songs .song{ margin:0; }
.course-faults{ max-width:none; }
.course-check-lead{ margin:0 0 10px; color:var(--muted); }
.course-check{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.course-check label{ display:grid; grid-template-columns:20px minmax(0, 1fr); gap:10px; align-items:start; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:var(--panel); cursor:pointer; line-height:1.45; }
.course-check label:hover{ border-color:var(--line2); }
.course-check input{ accent-color:var(--a); width:18px; height:18px; margin-top:2px; }
.course-check input:checked + span{ color:var(--muted2); text-decoration:line-through; text-decoration-color:var(--line2); }
.course-sources{ max-width:90ch; }
.piece-note{ margin:14px 0 0; padding:10px 14px; border-left:3px solid var(--a); background:var(--panel); color:var(--muted); border-radius:0 8px 8px 0; max-width:80ch; }
.piece-note b{ color:var(--ink); }
.piece-actions{ display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:22px; padding-top:16px; border-top:1px solid var(--line); }
.done-toggle{ display:flex; align-items:center; gap:6px; font-size:13px; color:var(--muted); margin-left:auto; cursor:pointer; }
.done-toggle input{ accent-color:var(--a); width:16px; height:16px; }
.lesson-done .covered, .lesson-done .left{ color:var(--muted); max-width:80ch; }
.lesson-done h3{ font-size:1.7rem; }
.lesson-done .piece-actions{ border-top:0; padding-top:0; }
.piece .missing{ margin:10px 0; padding:8px 12px; border-radius:8px; background:#3a2020; color:#f0b0b0; }
/* the page's card, at home in the course */
.piece article.ex{ margin:0; }

/* ---- narrow screens: the rail becomes a strip above the piece ---- */
@media (max-width:1000px){
  .lesson-body{ display:block; }
  .rail{ position:static; max-height:none; margin:0 0 16px; padding-bottom:6px; border-bottom:1px solid var(--line); overflow-x:auto; }
  .rail ol{ display:flex; gap:6px; min-width:max-content; }
  .rail li a{ grid-template-columns:20px minmax(0, 1fr); max-width:180px; padding:6px 8px; font-size:12px; }
  .rail-min{ display:none; }
  .lesson-row{ grid-template-columns:36px minmax(0, 1fr); }
  .ring{ width:36px; height:36px; }
  .lesson-side{ grid-column:2; flex-direction:row; align-items:center; justify-content:space-between; }
  .lesson-progress{ margin-left:0; }
  #course{ padding:0 12px 60px; }
}
@media (max-width:640px){
  .top .views{ margin-left:0; }
  .piece-actions .btn{ flex:1 1 auto; text-align:center; }
  .done-toggle{ margin-left:0; order:-1; width:100%; }
}

/* ---- the course's own kinds: the tempo ladder, the improvising piece, the videos ---- */
.rail li.rail-phase{ font:600 10px/1 Inter,system-ui,sans-serif; letter-spacing:.12em; text-transform:uppercase; color:var(--muted2); padding:10px 10px 4px; }
.rail li.rail-phase:first-child{ padding-top:2px; }
.ladder-lead{ margin:0 0 10px; color:var(--muted); max-width:80ch; }
.ladder-lead b{ color:var(--ink); }
.course-ladder{ list-style:none; margin:14px 0 0; padding:0; display:grid; gap:8px; max-width:60ch; }
.course-ladder li{ display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:10px; align-items:center; padding:8px 12px; border:1px solid var(--line); border-radius:10px; background:var(--panel); }
.course-ladder label{ display:grid; grid-template-columns:20px minmax(0, 1fr); gap:10px; align-items:center; cursor:pointer; }
.course-ladder input{ accent-color:var(--a); width:18px; height:18px; }
.course-ladder input:checked + span{ color:var(--muted2); }
.course-ladder b{ color:var(--ink); }
.improvise-prompt{ margin:0 0 12px; padding:10px 14px; border-left:3px solid var(--a); background:var(--panel); border-radius:0 8px 8px 0; max-width:80ch; }
.improvise-prompt .improvise-kicker{ font-size:.86rem; color:var(--muted2); }
.improvise-prompt i{ color:var(--ink); font-style:normal; font-weight:600; }
.links-note{ font-size:.9rem; color:var(--muted2); }
.course-links{ list-style:none; margin:0; padding:0; display:grid; gap:10px; max-width:80ch; }
.course-links li{ padding:10px 14px; border:1px solid var(--line); border-radius:10px; background:var(--panel); }
.course-links a{ font-weight:600; }
.course-links .who{ margin-left:6px; font-size:.86rem; color:var(--muted2); }
.course-links p{ margin:4px 0 0; color:var(--muted); font-size:.9rem; }

/* ---- the practice row on every card: tempo, loop, the fills left to you, a new roll ---- */
.practice{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 16px; margin:4px 0 8px; font:500 12px Inter,system-ui,sans-serif; color:var(--muted); }
.practice .lbl{ font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted2); margin-right:4px; }
.practice label{ display:inline-flex; align-items:center; gap:6px; }
.practice input[type=range]{ width:150px; accent-color:var(--a); }
.practice output{ min-width:5.5ch; color:var(--ink); font-variant-numeric:tabular-nums; }
.practice select{ font:500 12px Inter,system-ui,sans-serif; padding:4px 6px; border-radius:6px; border:1px solid var(--line2); background:var(--panel2); color:var(--ink); }
.practice input[type=checkbox]{ accent-color:var(--a); }
.practice .roll{ font:600 12px Inter,system-ui,sans-serif; padding:4px 10px; border-radius:999px; border:1px solid var(--line2); background:transparent; color:var(--muted); cursor:pointer; }
.practice .roll:hover{ border-color:var(--a); color:var(--ink); }
.practice .yours-on{ color:var(--a); }
/* the tempo with its steps and its one-tap tempos, and the looper as the Jam tab has it */
.practice .tempo-ctl{ display:inline-flex; align-items:center; gap:8px; flex-wrap:wrap; }
.practice .tempo-steps{ display:inline-flex; gap:2px; }
.practice .tempo-steps .step, .practice .tempo-taps .tap{ font:600 11px Inter,system-ui,sans-serif; padding:4px 8px; border:1px solid var(--line2); background:transparent; color:var(--muted); cursor:pointer; }
.practice .tempo-steps .step:first-child{ border-radius:6px 0 0 6px; }
.practice .tempo-steps .step:last-child{ border-radius:0 6px 6px 0; margin-left:-1px; }
.practice .tempo-steps .step:hover, .practice .tempo-taps .tap:hover{ border-color:var(--a); color:var(--ink); }
.practice .tempo-taps{ display:inline-flex; gap:2px; }
.practice .tempo-taps .tap{ border-radius:6px; }
.practice .tempo-taps .tap.active{ color:var(--a); border-color:var(--a); }
.practice .loop{ display:inline-flex; align-items:center; gap:4px; }
.practice .loop .ib{ width:30px; height:30px; border:1px solid var(--line2); border-radius:7px; background:transparent; color:var(--muted); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; flex:none; padding:0; }
.practice .loop .ib svg{ width:18px; height:18px; }
.practice .loop .ib:hover{ border-color:var(--a); }
.practice .loop.on .ib{ color:var(--a); border-color:var(--a); }
.practice .loop select{ min-width:0; padding:4px 4px; }
.practice .loop-dash{ color:var(--muted2); }
.practice .loop:not(.on) select, .practice .loop:not(.on) .loop-dash{ opacity:.5; }
/* the sound row on the card: the count-in and the band's and the guitar's volume */
.practice.sound{ margin-top:-2px; gap:6px 18px; }
.practice.sound .levels{ display:inline-flex; align-items:center; gap:14px; flex-wrap:wrap; }
.practice.sound .levels .level{ display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.levels .mute{ font:500 11px Inter,system-ui,sans-serif; letter-spacing:.08em; text-transform:uppercase; color:var(--muted2); background:transparent; border:1px solid transparent; border-radius:5px; padding:2px 6px; cursor:pointer; }
.levels .mute:hover{ color:var(--ink); border-color:var(--line2); }
.levels .mute.muted{ color:var(--muted2); text-decoration:line-through; border-color:var(--line2); }
.levels .mute.muted + input[type=range]{ opacity:.45; }
.practice.sound .levels input[type=range]{ width:90px; }
.practice.sound .card-countin{ color:var(--muted); }
/* Make it yours: the assignment, the three steps, the way further */
.yours-steps{ margin:10px 0 4px; padding-left:22px; }
.yours-steps li{ margin:0 0 6px; }
.improvise-prompt .tip{ margin-top:8px; border:1px solid var(--line2); border-radius:8px; background:transparent; }
.improvise-prompt .tip summary{ cursor:pointer; padding:6px 10px; font:600 12px Inter,system-ui,sans-serif; letter-spacing:.04em; color:var(--muted); }
.improvise-prompt .tip .tip-body{ padding:0 12px 10px; }
.improvise-prompt .further-text{ margin:4px 0 8px; }
/* the units on the home: a heading where a few lessons belong together */
.lesson-list .unit-head{ list-style:none; margin:18px 0 2px; padding:0 2px; border-bottom:1px solid var(--line); }
.lesson-list .unit-head:first-child{ margin-top:0; }
.unit-name{ display:inline-block; padding:0 0 6px; font:600 11px Inter,system-ui,sans-serif; letter-spacing:.12em; text-transform:uppercase; color:var(--muted2); }
.ex .chip.hybrid{ color:#7fc4d8; border-color:#2e5560; }
.ex .chip.fingers{ color:#7fc4d8; border-color:#2e5560; }
.ex .yours-bars{ font-size:.86rem; color:var(--muted2); margin:0 0 6px; }
.ex .chip.clip{ color:#e0a84a; border-color:#5a4520; }
.ex.from-clip .play{ box-shadow:0 0 0 2px rgba(224,168,74,.25); }
