#bc-paths .bc-trail { padding-block: 33px 38px; background: #f7f8ff; }
#bc-paths .bc-map-heading { margin-bottom: 23px; }
#bc-paths .bc-trail-surface { container: bctrail / inline-size; }

#bc-paths .bc-atlas {
  --bc-selection: #efedff;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(245px, 1fr);
  gap: 9px;
  padding: 8px;
  border: 1px solid #e0def1;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 28px #3330630b;
}

#bc-paths .bc-atlas[data-active="desktop"] { --bc-selection: #e9edff; }
#bc-paths .bc-atlas[data-active="mobile"] { --bc-selection: #eaf1ff; }
#bc-paths .bc-atlas[data-active="chat"] { --bc-selection: #ecf0ff; }
#bc-paths .bc-atlas[data-active="signn"] { --bc-selection: #f0ecff; }
#bc-paths .bc-atlas[data-active="revenda"],
#bc-paths .bc-atlas[data-active="indicacao"] { --bc-selection: #edeeff; }

#bc-paths .bc-map-window {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 9px 9px 6px;
  border: 1px solid #e0e0f2;
  border-radius: 15px;
  background: #f1efff;
}
#bc-paths .bc-map-instruction { padding: 1px 3px 7px; color: var(--bc-sub); font-size: 12px; }
#bc-paths .bc-map-scroll {
  flex: 0 0 auto;
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-color: #9989dd #eeedff;
  border-radius: 11px;
}
#bc-paths .bc-map-scroll:focus-visible { outline: 2px solid var(--bc-accent); outline-offset: 2px; }
#bc-paths .bc-atlas-map {
  position: relative;
  flex: 0 0 100%;
  min-width: 740px;
  height: clamp(415px, 46cqi, 520px);
  border-radius: 11px;
  background: #eeedff url('trilha-conceitual.jpg') center / cover no-repeat;
  isolation: isolate;
}
#bc-paths .bc-map-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#bc-paths .bc-map-edge {
  fill: none;
  stroke: #5340bf;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#bc-paths .bc-map-edge-resale { stroke: #3256a0; stroke-dasharray: 8 5; }
#bc-paths .bc-map-edge-referral { stroke: #785279; stroke-width: 2.1; stroke-dasharray: 1 5; }
#bc-paths .bc-map-edge.is-related { stroke-width: 3.5; }

#bc-paths .bc-orb {
  position: absolute;
  z-index: 1;
  left: var(--bc-map-x);
  top: var(--bc-map-y);
  translate: -50% -50%;
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(25%, 230px);
  min-height: 65px;
  padding: 9px 12px;
  border: 1px solid #d8d6ef;
  border-radius: 999px;
  background: #fafaff;
  color: var(--bc-ink);
  text-align: left;
  box-shadow: 0 4px 12px #302c5c0d;
  transition: background .2s, border-color .2s, box-shadow .2s;
}

#bc-paths .bc-orb-primary { border-color: #ab9de5; background: #f7f5ff; }
#bc-paths .bc-orb-program { border-color: #c5c4e6; background: #f4f4ff; }
#bc-paths .bc-orb.is-related { border-color: #8975d1; }
#bc-paths .bc-orb:hover { border-color: #8d7dcb; }
#bc-paths .bc-orb[aria-pressed="true"] {
  border-color: #7562cf;
  background: #fff;
  box-shadow: 0 0 0 4px #ded8ff9e, 0 8px 19px #302c5c1c;
}

#bc-paths .bc-orb-dot {
  flex: 0 0 9px;
  height: 9px;
  border-radius: 50%;
  background: #6465b9;
  box-shadow: 0 0 0 4px #e8e8ff;
}

#bc-paths .bc-orb-primary .bc-orb-dot { background: #5140ca; box-shadow: 0 0 0 4px #e6dfff; }
#bc-paths .bc-orb-program .bc-orb-dot { background: #665290; }

#bc-paths .bc-orb-text { display: grid; gap: 3px; min-width: 0; }
#bc-paths .bc-orb-text strong { font-size: clamp(13px, 1.65cqi, 18px); line-height: 1.15; letter-spacing: -.025em; font-weight: 750; }
#bc-paths .bc-orb-text small { font-size: clamp(11px, 1.3cqi, 13px); line-height: 1.2; color: var(--bc-sub); }
#bc-paths .bc-orb-text strong, #bc-paths .bc-orb-text small { overflow-wrap: anywhere; }

#bc-paths .bc-orb[data-step="signn"] { --bc-map-x: 33%; --bc-map-y: 19%; }
#bc-paths .bc-orb[data-step="chat"] { --bc-map-x: 81%; --bc-map-y: 19%; }
#bc-paths .bc-orb[data-step="desktop"] { --bc-map-x: 18%; --bc-map-y: 50%; }
#bc-paths .bc-orb[data-step="web"] { --bc-map-x: 48%; --bc-map-y: 50%; }
#bc-paths .bc-orb[data-step="mobile"] { --bc-map-x: 81%; --bc-map-y: 50%; }
#bc-paths .bc-orb[data-step="revenda"] { --bc-map-x: 33%; --bc-map-y: 81%; }
#bc-paths .bc-orb[data-step="indicacao"] { --bc-map-x: 81%; --bc-map-y: 81%; }

#bc-paths .bc-step-detail { display: flex; flex-direction: column; align-items: stretch; min-width: 0; padding: 12px; border-radius: 15px; background: var(--bc-selection); transition: background .25s; }
#bc-paths .bc-step-image { display: block; width: 100%; height: auto; max-height: 205px; aspect-ratio: 1.5; object-fit: contain; border-radius: 12px; background: #eeedff; }
#bc-paths .bc-step-copy { min-width: 0; padding: 12px 1px; }
#bc-paths .bc-selected-label { display: block; margin-bottom: 5px; color: #4e438f; font-size: clamp(10px, 1.1cqi, 12px); font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
#bc-paths .bc-step-copy h3 { font-size: clamp(21px, 2.3cqi, 25px); line-height: 1.12; letter-spacing: -.035em; font-weight: 750; overflow-wrap: break-word; }
#bc-paths .bc-step-copy p { margin-top: 9px; color: #454462; font-size: clamp(13px, 1.45cqi, 15px); line-height: 1.55; }
#bc-paths .bc-step-copy .bc-course-audience { margin-top: 8px; color: #504480; }
#bc-paths .bc-step-detail .bc-outline { align-self: flex-start; min-height: 44px; margin-top: auto; border-color: #d5cef0; border-radius: 11px; background: #fcfcff; font-size: 12px; color: #4631a8; }

#bc-paths .bc-step-relations { display: grid; gap: 6px; margin: 12px 0 2px; font-size: 12px; }
#bc-paths .bc-step-relations div { border-inline-start: 3px solid #6451c8; padding-inline-start: 8px; }
#bc-paths .bc-step-relations dt { color: #4e438f; font-weight: 750; }
#bc-paths .bc-step-relations dd { margin: 0; color: var(--bc-sub); }

#bc-paths .bc-map-toolbar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 12px;
  min-width: 0;
  padding: 4px 5px;
}
#bc-paths .bc-map-legend { display: flex; flex-wrap: wrap; gap: 5px 18px; padding: 0; list-style: none; color: var(--bc-sub); font-size: 12px; }
#bc-paths .bc-map-legend li { display: inline-flex; align-items: center; gap: 6px; }
#bc-paths :is(.bc-map-key-integration, .bc-map-key-resale, .bc-map-key-referral)::before { width: 21px; border-top: 3px solid #5340bf; content: ''; }
#bc-paths .bc-map-key-resale::before { border-top: 3px dashed #3256a0; }
#bc-paths .bc-map-key-referral::before { border-top: 3px dotted #785279; }
#bc-paths .bc-map-controls, #bc-paths .bc-map-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
#bc-paths .bc-map-navigation button { justify-content: center; min-width: 44px; padding: 4px; font-size: 18px; }
#bc-paths .bc-map-controls button[aria-disabled="true"] { opacity: .55; cursor: default; }
#bc-paths .bc-map-reset { justify-content: center; }
@media (any-pointer: fine) {
  #bc-paths .bc-map-scroll[data-pannable] { cursor: grab; }
}
#bc-paths .bc-map-scroll.is-dragging, #bc-paths .bc-map-scroll.is-dragging * { cursor: grabbing; user-select: none; }

@media (prefers-reduced-motion: reduce) {
  #bc-paths :is(.bc-orb, .bc-step-detail) { transition: none; }
}
