/* ════════ path.css — the guided lesson path (all texts) ════════
   The winding Duolingo-style trail rendered in the app's parchment
   voice: unit banners wear the active book's jewel (--accent family),
   nodes are chunky 3D coins, sections open with the book's emblem. */

/* ── Learn home: segmented control (Path | Read) ── */
.segctl {
  display: flex; gap: 4px; background: var(--well);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 4px; margin: 2px 0 14px;
}
.segctl button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 40px; border: 0; border-radius: var(--r-pill); cursor: pointer;
  background: none; color: var(--ink-dim);
  font-family: var(--round); font-weight: 700; font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}
.segctl button.on { background: var(--card); color: var(--accent-deep); box-shadow: var(--e1); }
.segctl button svg { width: 17px; height: 17px; fill: currentColor; }

/* ── continue hero ── */
.pathhero {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-deep) 100%);
  border-radius: var(--r-l); padding: 16px 16px 15px; margin-bottom: 16px;
  color: #fff; box-shadow: var(--e2);
}
.pathhero::after {
  content: ""; position: absolute; right: -26px; top: -20px; width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 65%);
}
.pathhero .ph-emblem {
  position: absolute; right: 6px; bottom: -14px; opacity: 0.16; color: #fff;
  pointer-events: none;
}
.pathhero .ph-kicker {
  font-family: var(--round); font-weight: 700; font-size: 0.68rem;
  letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85;
}
.pathhero .ph-title {
  font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.15;
  margin: 3px 0 2px;
}
.pathhero .ph-sub { font-size: 0.85rem; opacity: 0.9; margin-bottom: 12px; }
.pathhero .btn3d { --face: #ffffff; --edge: rgba(20, 10, 2, 0.35); --btxt: var(--accent-deep); }
.pathhero .ph-row { display: flex; gap: 9px; position: relative; z-index: 1; }
.pathhero .ph-row .btn3d.ghosted { --face: rgba(255,255,255,0.16); --edge: rgba(20,10,2,0.3); --btxt: #fff; width: auto; }

/* ── the map ── */
.pathmap { padding-bottom: 8px; }
.pathbody { display: flex; flex-direction: column; }
.pathmore {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  margin: 8px auto 12px; padding: 9px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-pill);
  color: var(--ink-dim); font-family: var(--round); font-weight: 700; font-size: 0.82rem;
  cursor: pointer; box-shadow: var(--e1);
}
.pathmore svg { fill: currentColor; }

/* section divider — a new līlā / canto begins */
.psection {
  display: flex; align-items: center; gap: 12px; margin: 22px 0 12px;
  color: var(--accent-deep);
}
.psection::before, .psection::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong));
}
.psection::after { background: linear-gradient(90deg, var(--line-strong), transparent); }
.psection span {
  font-family: var(--display); font-weight: 700; font-size: 1.08rem; white-space: nowrap;
}
.psection .emblem { color: var(--accent); flex: 0 0 auto; }

/* unit banner */
.punit {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 12px 14px; margin: 10px 0 4px; box-shadow: var(--e1);
}
.punit.cur {
  background: linear-gradient(115deg, var(--accent), var(--accent-deep));
  border-color: var(--accent-deep); color: #fff; box-shadow: var(--e2);
}
.punit.locked { opacity: 0.72; cursor: pointer; }
.punit .pu-num {
  flex: 0 0 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-deep);
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
}
.punit.cur .pu-num { background: rgba(255, 255, 255, 0.2); color: #fff; }
.punit.done .pu-num { background: var(--accent); color: #fff; }
.punit .pu-num svg { fill: currentColor; }
.punit .pu-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.punit .pu-kicker {
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint);
}
.punit.cur .pu-kicker { color: rgba(255, 255, 255, 0.8); }
.punit .pu-body b {
  font-family: var(--display); font-size: 1.12rem; line-height: 1.15; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.punit.cur .pu-body b { color: #fff; }
.punit .pu-prog { font-size: 0.76rem; color: var(--ink-dim); }
.punit.cur .pu-prog { color: rgba(255, 255, 255, 0.85); }
.punit .pu-read {
  flex: 0 0 38px; height: 38px; border-radius: 50%; cursor: pointer;
  background: var(--well); border: 1px solid var(--line); color: var(--ink-dim);
  display: flex; align-items: center; justify-content: center;
}
.punit.cur .pu-read { background: rgba(255, 255, 255, 0.18); border-color: transparent; color: #fff; }
.punit .pu-read svg { fill: currentColor; }

/* the winding trail */
.ptrail { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 0 6px; }
.pnode {
  position: relative; display: flex; flex-direction: column; align-items: center;
  margin-bottom: 10px; width: 130px;
}
.pnode.x1 { transform: translateX(56px); }
.pnode.x-1 { transform: translateX(-56px); }
.pn-btn {
  flex: 0 0 auto;
  width: 64px; height: 64px; min-width: 64px; min-height: 64px;
  padding: 0; box-sizing: border-box;
  border-radius: 50%; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  box-shadow: 0 5px 0 var(--accent-deep), var(--e1);
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, filter 0.15s;
}
.pn-btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--accent-deep); }
.pn-btn svg { fill: currentColor; width: 26px; height: 26px; }
.pnode.done .pn-btn { background: var(--gold); box-shadow: 0 5px 0 #a87b2e, var(--e1); }
.pnode.locked .pn-btn {
  background: var(--well); color: var(--ink-faint);
  box-shadow: 0 5px 0 var(--line-strong);
  cursor: default;
}
.pnode.cur .pn-btn { outline: 4px solid color-mix(in srgb, var(--accent) 30%, transparent); outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .pnode.cur .pn-btn { animation: node-breathe 1.8s ease-in-out infinite; }
}
@keyframes node-breathe {
  0%, 100% { outline-color: color-mix(in srgb, var(--accent) 30%, transparent); }
  50% { outline-color: color-mix(in srgb, var(--accent) 12%, transparent); }
}
.pn-start {
  position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
  background: var(--card); border: 1.5px solid var(--accent); color: var(--accent-deep);
  border-radius: 9px; padding: 2px 9px; z-index: 1;
  font-family: var(--round); font-weight: 800; font-size: 0.64rem; letter-spacing: 0.1em;
  animation: start-bob 1.6s ease-in-out infinite;
  white-space: nowrap;
}
.pn-start::after {
  content: ""; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%) rotate(45deg);
  width: 8px; height: 8px; background: var(--card);
  border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
}
@keyframes start-bob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .pn-start { animation: none; } }
.pn-lab {
  margin-top: 7px; font-family: var(--round); font-weight: 700; font-size: 0.74rem;
  color: var(--ink-dim); text-align: center; max-width: 130px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pnode.locked .pn-lab { color: var(--ink-faint); }
.pn-stars { color: var(--gold); font-size: 0.8rem; letter-spacing: 2px; margin-top: 1px; }
.pnode.bonus .pn-btn { background: var(--peacock); box-shadow: 0 5px 0 var(--peacock-deep), var(--e1); }
.pnode.bonus.locked .pn-btn { background: var(--well); box-shadow: 0 5px 0 var(--line-strong); }

/* ── lesson player extras (chrome itself comes from course.css) ── */
.meetcard { text-align: center; }
.meetword {
  font-family: var(--serif); font-weight: 700; font-size: 2rem; line-height: 1.15;
  color: var(--accent-deep); margin: 6px 0 2px;
}
.meetmean { font-size: 1.02rem; color: var(--ink); margin-bottom: 10px; }
.meetcard .teach, .teachbox {
  text-align: left; background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, #fff);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-s); padding: 10px 12px;
  font-size: 0.88rem; line-height: 1.55; color: var(--ink-dim);
  margin: 10px 0 4px;
}
.teachbox { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; }
.teachbox svg { flex: 0 0 auto; margin-top: 2px; fill: var(--accent); }
.hearbtn {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 8px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-pill);
  padding: 8px 16px; cursor: pointer; color: var(--accent-deep);
  font-family: var(--round); font-weight: 700; font-size: 0.86rem;
}
.hearbtn:active { background: var(--accent-soft); border-color: var(--accent); }
.hearbtn svg { fill: currentColor; }
.versemeet .pada { font-family: var(--serif); font-size: 1.12rem; line-height: 1.65; color: var(--ink); }
.versemeet .vmeaning {
  margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line-strong);
  color: var(--ink-dim); font-size: 0.92rem; line-height: 1.55;
}
.wrow.tapped { border-color: var(--accent); background: var(--accent-soft); }
.pstars { display: flex; justify-content: center; gap: 8px; font-size: 2rem; color: #e4dac4; margin: 2px 0 6px; }
.pstars .lit { color: var(--gold); }

/* word-review floating chip on the map */
.wordduechip {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--peacock);
  border-radius: var(--r-m); padding: 11px 14px; margin-bottom: 12px;
  cursor: pointer; box-shadow: var(--e1);
}
.wordduechip b { font-family: var(--round); font-size: 0.94rem; color: var(--ink); }
.wordduechip span { font-size: 0.78rem; color: var(--ink-dim); }
.wordduechip .wd-ico {
  flex: 0 0 36px; height: 36px; border-radius: 10px;
  background: var(--peacock-soft); color: var(--peacock-deep);
  display: flex; align-items: center; justify-content: center;
}
.wordduechip .wd-ico svg { fill: currentColor; }
.wordduechip .chev { margin-left: auto; color: var(--ink-faint); font-size: 1.3rem; }

/* brand emblem in the header */
.brand .brandmark { width: 24px; height: 24px; color: var(--accent); flex: 0 0 auto; }
