/* Learning paths: a road that draws itself through numbered stops, cards that stand up in 3D
   (pairs with paths-fx.js; founder 2026-10-09). */
.page-header.sfx-scene-host { padding-bottom: 30px; }
.plx-grid { position: relative; padding-top: 62px; perspective: 1300px; }
.plx-road { position: absolute; left: 0; top: 0; z-index: 0; overflow: visible; pointer-events: none; }
.plx-road path { fill: none; stroke-linecap: round; }
.plx-bed { stroke: rgba(120, 160, 255, .12); stroke-width: 14; }
.plx-glow { stroke: url(#plxG); stroke-width: 12; opacity: .55; }
.plx-line { stroke: url(#plxG); stroke-width: 4; }
.plx-dash { stroke: rgba(255, 255, 255, .35); stroke-width: 1.5; stroke-dasharray: 6 12; }
html.sfx-on .plx-dash { animation: plx-dash 1.2s linear infinite; }
@keyframes plx-dash { to { stroke-dashoffset: -18; } }
.plx-dot { fill: #fff; filter: drop-shadow(0 0 6px #8b5cf6) drop-shadow(0 0 12px #38b6ff); transition: opacity .3s; }
:root[data-theme="light"] .plx-bed { stroke: rgba(91, 69, 255, .1); }
:root[data-theme="light"] .plx-dash { stroke: rgba(255, 255, 255, .8); }

.plx-grid > .path-card { position: relative; z-index: 1; overflow: visible; }
.plx-node { position: absolute; left: 50%; top: -24px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; z-index: 2; }
.plx-node b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50% !important; font-family: var(--font-head); font-size: 1.05rem; color: var(--text-muted);
  background: var(--bg-elevated); border: 2px solid rgba(120, 160, 255, .3); transition: color .4s, background .4s, border-color .4s, box-shadow .4s, transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.plx-node span { display: none; }
.plx-node.is-on b { color: #fff; border-color: transparent; background: linear-gradient(135deg, #38b6ff, #8b5cf6); box-shadow: 0 0 0 6px rgba(139, 92, 246, .16), 0 0 26px rgba(56, 182, 255, .6); transform: scale(1.08); }
.plx-grid > .path-card .path-level { margin-top: 14px; }

/* Each path stands up from a 3D tilt when the road reaches it. */
html.sfx-on .plx-grid > .path-card.reveal.is-visible:not(.plx-on):not(.sfx-tilt) { transform: rotateX(16deg) translateY(14px) scale(.97); opacity: .55; transform-origin: 50% 100%; }
html.sfx-on .plx-grid > .path-card.reveal { transition: transform .8s cubic-bezier(.2, .9, .3, 1.2), opacity .6s ease, border-color .3s, box-shadow .35s; }
html.sfx-on .plx-grid > .path-card.plx-on { box-shadow: 0 30px 60px -30px rgba(56, 182, 255, .45); }

@media (max-width: 859px) {
  .plx-grid { padding-top: 30px; row-gap: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html .plx-grid > .path-card { transform: none !important; opacity: 1 !important; }
  .plx-dot { display: none; }
}
