/* BagpipeLessons.com Inner Circle — v26.css
   Playlists · saved snippets · submit-your-video · live-class front door.
   Loaded right after style.css on every page, so every variable below is
   already defined by the main sheet (light + dark + palettes all inherit). */

/* ---------------- selection bubble: two buttons ---------------- */
.ask-bubble-bar {
  position: absolute; z-index: 900; display: flex; gap: 0;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 999px; box-shadow: var(--shadow-lg); overflow: hidden;
  font-family: var(--font);
}
.ask-bubble-bar .abb-btn {
  appearance: none; border: 0; background: none; cursor: pointer;
  font-family: var(--font); font-size: 12.5px; font-weight: 700; color: var(--ink-soft);
  padding: 8px 14px; white-space: nowrap; line-height: 1.2;
}
.ask-bubble-bar .abb-btn + .abb-btn { border-left: 1px solid var(--border); }
.ask-bubble-bar .abb-btn:hover { background: var(--accent-soft); color: var(--accent); }
.ask-bubble-bar .abb-btn.done { color: var(--accent); background: var(--accent-soft); }

/* ---------------- playlists ---------------- */
.pl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pl-head h2, .pl-head h3 { font-size: 19px; font-weight: 800; color: var(--ink); margin: 0; }
.pl-count { font-size: 12px; font-weight: 700; color: var(--ink-muted); }

.pl-list { display: flex; flex-direction: column; gap: 14px; }
.pl-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.pl-card-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pl-name { font-size: 16px; font-weight: 800; color: var(--ink); margin: 0; flex: 1 1 auto; min-width: 0; word-break: break-word; }
.pl-n { font-size: 12px; font-weight: 700; color: var(--ink-muted); white-space: nowrap; }
.pl-acts { display: flex; gap: 6px; flex-wrap: wrap; }

.pl-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pl-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg);
  min-width: 0;
}
.pl-item .pl-i-n { font-family: var(--mono); font-size: 11px; color: var(--ink-muted); width: 20px; flex: 0 0 auto; }
.pl-item .pl-i-t { flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-item a.pl-i-t:hover { color: var(--accent); }
.pl-item .pl-i-btns { display: flex; gap: 4px; flex: 0 0 auto; }
.pl-mini {
  appearance: none; cursor: pointer; border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--ink-soft); border-radius: var(--r-sm, 6px); font-family: var(--font);
  font-size: 12px; font-weight: 700; line-height: 1; padding: 6px 8px; min-width: 28px;
}
.pl-mini:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.pl-mini:disabled { opacity: .35; cursor: default; }
.pl-empty { font-size: 13px; color: var(--ink-muted); padding: 6px 2px; }

/* new-playlist / add-to-playlist popovers */
.pl-pop {
  position: absolute; z-index: 950; min-width: 230px; max-width: 300px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 10px; display: flex; flex-direction: column; gap: 4px;
}
.pl-pop .pl-pop-h { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); padding: 2px 6px 6px; }
.pl-pop button.pl-pick {
  appearance: none; border: 0; background: none; cursor: pointer; text-align: left;
  font-family: var(--font); font-size: 13.5px; font-weight: 600; color: var(--ink);
  padding: 8px 10px; border-radius: var(--r-md); display: flex; justify-content: space-between; gap: 8px;
}
.pl-pop button.pl-pick:hover { background: var(--accent-soft); color: var(--accent); }
.pl-pop button.pl-pick .tick { color: var(--accent); font-weight: 800; }
.pl-pop .pl-pop-new { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 6px; }
.pl-pop input[type="text"] {
  width: 100%; font-family: var(--font); font-size: 13.5px; padding: 8px 10px;
  border: 1px solid var(--border-strong); border-radius: var(--r-md);
  background: var(--bg); color: var(--ink);
}
.pl-pop .pl-pop-row { display: flex; gap: 6px; margin-top: 6px; }

.pl-shared {
  background: var(--gold-soft); border: 1px solid var(--gold);
  border-radius: var(--r-lg); padding: 20px 22px; margin-bottom: 26px;
}
.pl-shared .pl-shared-k { font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.pl-shared h2 { font-size: 22px; font-weight: 800; color: var(--ink); margin: 6px 0 2px; word-break: break-word; }
.pl-shared .pl-shared-sub { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 14px; }
.pl-shared .pl-items { margin-bottom: 14px; }
.pl-shared .pl-item { background: var(--surface); }

.pl-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 1200; background: var(--ink); color: var(--bg);
  font-family: var(--font); font-size: 13.5px; font-weight: 700;
  padding: 11px 18px; border-radius: 999px; box-shadow: var(--shadow-lg);
  max-width: calc(100vw - 32px); text-align: center;
}

/* ---------------- saved snippets ---------------- */
.sn-list { display: flex; flex-direction: column; gap: 12px; }
.sn-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 14px 16px; box-shadow: var(--shadow-sm); position: relative;
}
.sn-quote {
  font-size: 14px; line-height: 1.62; color: var(--ink-soft); font-style: italic;
  border-left: 3px solid var(--gold); padding-left: 12px; margin: 0 34px 10px 0; word-break: break-word;
}
.sn-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-muted); }
.sn-meta a { font-weight: 700; color: var(--accent); }
.sn-x {
  position: absolute; top: 10px; right: 10px; appearance: none; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink-muted);
  border-radius: 50%; width: 26px; height: 26px; line-height: 1; font-size: 13px; font-family: var(--font);
}
.sn-x:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------- submit your video ---------------- */
.ic-submit-note { font-size: 12.5px; color: var(--ink-muted); margin-top: 7px; }
.ic-submit-inline { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--accent); margin-top: 4px; }

/* ---------------- upcoming class front door ---------------- */
.ev-front {
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-xl);
  box-shadow: var(--shadow-md); padding: 20px 22px; margin: 18px auto 0; max-width: 640px; text-align: center;
}
.topic-hero .tzbar { justify-content: center; }
.ev-front .evf-when { font-size: 14.5px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.ev-front .evf-sub { font-size: 12.5px; color: var(--ink-muted); margin-bottom: 14px; }
.ev-front .evf-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ev-front .evf-ready { font-size: 13px; color: var(--ink-soft); margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.ev-replay {
  background: var(--accent-soft); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 16px 18px; margin-top: 18px;
}
.ev-replay h3 { font-size: 15.5px; font-weight: 800; color: var(--ink); margin: 0 0 5px; }
.ev-replay p { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.ev-replay .btn { margin-top: 11px; }

@media (max-width: 640px) {
  .ask-bubble-bar .abb-btn { padding: 8px 11px; font-size: 12px; }
  .pl-card { padding: 14px; }
  .pl-item { flex-wrap: wrap; }
  .pl-item .pl-i-t { white-space: normal; }
  .ev-front { padding: 16px; }
  .ev-front .evf-btns .btn { width: 100%; }
}

/* ==========================================================================
   "Every class moment about this tune" — the static moment list on tune pages
   ========================================================================== */
.tune-moments {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: 20px 22px; margin: 26px 0 0;
}
.tune-moments h2 {
  font-size: 19px; font-weight: 800; color: var(--ink); margin: 0 0 4px; line-height: 1.3;
}
.tune-moments .tm-sub { font-size: 13px; color: var(--ink-muted); margin: 0 0 14px; line-height: 1.55; }
.tune-moments .tm-list { display: flex; flex-direction: column; gap: 2px; }

.tune-moments .tm-row {
  display: flex; align-items: flex-start; gap: 12px; min-width: 0;
  padding: 10px 10px; border-radius: var(--r-md);
  border: 1px solid transparent; color: inherit; text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.tune-moments .tm-row + .tm-row { border-top: 1px solid var(--border); border-radius: var(--r-md); }
.tune-moments .tm-row:hover { background: var(--accent-soft); border-color: var(--border); }
.tune-moments .tm-row.locked { cursor: pointer; }

.tune-moments .tm-ts {
  flex: 0 0 auto; font-family: var(--mono); font-size: 11.5px; font-weight: 700;
  color: var(--accent); background: var(--accent-soft);
  border-radius: var(--r-pill); padding: 4px 9px; line-height: 1.3; white-space: nowrap;
  margin-top: 1px;
}
.tune-moments .tm-b { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tune-moments .tm-t {
  font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tune-moments .tm-row:hover .tm-t { color: var(--accent); }
.tune-moments .tm-x {
  font-size: 13px; color: var(--ink-soft); line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tune-moments .tm-lk { flex: 0 0 auto; font-size: 12px; color: var(--ink-muted); margin-top: 3px; }

.tune-moments .tm-lock-note {
  font-size: 12.5px; color: var(--ink-muted); margin: 12px 0 0;
  padding-top: 11px; border-top: 1px solid var(--border);
}
.tune-moments .tm-more {
  appearance: none; cursor: pointer; margin-top: 13px;
  border: 1px solid var(--border-strong); background: var(--bg); color: var(--ink-soft);
  border-radius: var(--r-pill); font-family: var(--font);
  font-size: 12.5px; font-weight: 700; padding: 8px 15px; line-height: 1.2;
}
.tune-moments .tm-more:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

@media (max-width: 640px) {
  .tune-moments { padding: 15px 15px; }
  .tune-moments .tm-row { gap: 9px; padding: 9px 6px; }
  .tune-moments .tm-t { white-space: normal; }
  .tune-moments .tm-x { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .tune-moments .tm-more { width: 100%; }
}

/* ==========================================================================
   Skills map — courses/skills-map.html
   Tiered stages with inline-SVG connectors on desktop, one column with a
   vertical spine on phones. All colour comes from the shared tokens, so light,
   dark and every palette follow the rest of the site.
   ========================================================================== */
.sm-summary {
  display: inline-block; max-width: 620px; margin: 18px auto 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: 12px 18px;
  font-size: 13.5px; line-height: 1.6; color: var(--ink-soft);
}
.sm-summary b { color: var(--ink); }

.sm-legend {
  display: flex; gap: 18px; flex-wrap: wrap; justify-content: center;
  margin-top: 16px; font-size: 12px; color: var(--ink-muted);
}
.sm-legend .sm-key { display: inline-flex; align-items: center; gap: 6px; }
.sm-key-ring {
  width: 14px; height: 14px; border-radius: 50%;
  border: 3px solid var(--accent); border-right-color: var(--border-strong); border-bottom-color: var(--border-strong);
}
.sm-key-tick { color: var(--green); font-weight: 800; }
.sm-key-rib {
  background: var(--gold); color: #fff; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 2px 8px;
}

.sm-map { display: flex; flex-direction: column; align-items: stretch; }

.sm-stage {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm); padding: 20px 22px 22px;
}
.sm-stage-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.sm-stage-n {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--mono); font-size: 14px; font-weight: 800;
  border: 1px solid var(--border-strong);
}
.sm-stage-txt { flex: 1 1 auto; min-width: 0; }
.sm-stage-txt h2 { font-size: 18px; font-weight: 800; color: var(--ink); margin: 0 0 2px; line-height: 1.3; }
.sm-stage-txt p { font-size: 13px; color: var(--ink-muted); margin: 0; line-height: 1.55; }
.sm-stage-count {
  flex: 0 0 auto; font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--ink-muted);
  white-space: nowrap; padding-top: 8px;
}

.sm-nodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }

.sm-node {
  position: relative; display: flex; align-items: center; gap: 12px; min-width: 0;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 12px 14px; text-decoration: none; color: inherit;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.sm-node:hover { border-color: var(--accent); background: var(--accent-soft); box-shadow: var(--shadow-sm); }
.sm-node.done { border-color: var(--green); }
.sm-node.next { border-color: var(--gold); background: var(--gold-soft); box-shadow: var(--shadow-md); }

.sm-ring { position: relative; flex: 0 0 auto; width: 44px; height: 44px; }
.sm-ring-svg { width: 44px; height: 44px; transform: rotate(-90deg); display: block; }
.sm-ring-bg { fill: none; stroke: var(--border-strong); stroke-width: 3; }
.sm-ring-fg {
  fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round;
  transition: stroke-dashoffset .5s ease;
}
.sm-node.done .sm-ring-fg { stroke: var(--green); }
.sm-ic {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 17px; line-height: 1;
}
.sm-flag { position: absolute; right: -3px; bottom: -3px; }
.sm-tick {
  display: block; width: 17px; height: 17px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 10px; font-weight: 800;
  line-height: 17px; text-align: center;
}

.sm-nb { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sm-nt { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.sm-node:hover .sm-nt { color: var(--accent); }
.sm-nm { font-size: 11.5px; color: var(--ink-muted); line-height: 1.4; }
.sm-lvl { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.sm-lvl.lv-beginner { color: var(--green); }
.sm-lvl.lv-intermediate { color: var(--accent); }
.sm-lvl.lv-advanced { color: var(--gold); }
.sm-lvl.lv-alllevels { color: var(--ink-muted); }
.sm-done-t { color: var(--green); }
.sm-part-t { color: var(--accent); }

.sm-ribbon {
  position: absolute; top: -9px; right: 12px;
  background: var(--gold); color: #fff; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
  padding: 2px 9px; line-height: 1.5; white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

/* connectors between stages */
.sm-link { position: relative; height: 56px; display: block; }
.sm-link-svg { display: block; width: 100%; height: 56px; }
.sm-link-svg .sm-l { fill: none; stroke: var(--border-strong); stroke-width: 2; stroke-linecap: round; }
.sm-spine { display: none; }

.sm-foot { margin-top: 26px; text-align: center; font-size: 13px; color: var(--ink-muted); }

@media (max-width: 760px) {
  .sm-stage { padding: 15px 15px 16px; border-radius: var(--r-lg); }
  .sm-stage-head { gap: 10px; }
  .sm-stage-count { display: none; }
  .sm-nodes { grid-template-columns: 1fr; }
  .sm-link { height: 34px; }
  .sm-link-svg { display: none; }
  .sm-spine {
    display: block; position: absolute; left: 50%; top: 3px; bottom: 3px;
    width: 2px; margin-left: -1px; background: var(--border-strong); border-radius: 2px;
  }
  .sm-legend { gap: 12px; font-size: 11.5px; }
  .sm-summary { padding: 11px 14px; font-size: 13px; }
}


/* ---- v32: the event front-door card runs the full width, left-justified ---- */
.ev-hero .ev-front { max-width: none; margin-left: 0; margin-right: 0; text-align: left; padding: 22px 26px; }
.ev-hero .ev-front .evf-when { font-size: 16px; }
.ev-hero .ev-front .evf-sub { font-size: 13.5px; }
.ev-hero .ev-front .evf-btns { justify-content: flex-start; }
.ev-hero .eyebrow { display: inline-block; }
