/* Horizontal journey bar (#2183/#2190) — shared between the /ehcp process
   screen (paged: prev/next between milestones) and the dashboard's parent
   journey widget (simplified: current milestone only, no paging), so the two
   surfaces don't visually diverge (see the issues' "land together" note).

   Renders partials/_journey_bar.html. Uses daisyUI semantic tokens
   (--color-*, --radius-*) throughout, matching ehcp-process.css's
   convention of following the active theme rather than hard-coding a
   palette. */
.jt { --jt-accent: var(--color-secondary); }

.jt-head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: .25rem; }
.jt-title { font-size: 1.05rem; font-weight: 800; margin: 0; }
.jt-count { font-size: .78rem; font-weight: 700; color: var(--muted-ink, inherit); }
.jt-ms { display: flex; align-items: baseline; gap: .5rem; margin: .1rem 0 1rem; flex-wrap: wrap; }
.jt-ms-name { font-size: 1.25rem; font-weight: 800; }
.jt-ms-desc { font-size: .84rem; color: var(--muted-ink, inherit); font-weight: 600; }

.jt-track { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.jt-arrow {
  width: 2.35rem; height: 2.35rem; border-radius: 999px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in oklch, var(--color-base-200) 70%, transparent);
  border: none; cursor: pointer; text-decoration: none;
  transition: background .12s ease, transform .12s ease;
}
.jt-arrow:hover { background: var(--color-base-300); transform: translateY(-1px); }
.jt-arrow:focus-visible { outline: 2px solid var(--jt-accent); outline-offset: 1px; }
.jt-arrow-left svg { transform: rotate(180deg); }
.jt-arrow[aria-disabled="true"] { opacity: .35; pointer-events: none; }

.jt-steps { display: flex; align-items: stretch; flex: 1; min-width: 0; overflow: hidden; list-style: none; margin: 0; padding: 0; }
.jt-step-wrap { display: flex; align-items: stretch; flex: 1 1 0; min-width: 0; }
.jt-step-item {
  display: flex; align-items: flex-start; gap: .5rem; text-decoration: none; min-width: 0;
  flex: 1 1 auto; width: 100%; min-height: 4.75rem; overflow: hidden;
  padding: .5rem .6rem; border-radius: var(--radius-field, 12px); cursor: pointer;
  transition: background .12s ease; box-shadow: inset 0 0 0 1px var(--color-base-200);
}
.jt-step-item:hover { background: color-mix(in oklch, var(--color-base-200) 45%, transparent); }
.jt-step-item.is-selected {
  background: color-mix(in oklch, var(--jt-accent) 9%, transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in oklch, var(--jt-accent) 40%, transparent);
}
/* The current step's box highlights in the same green as its dot — only a
   merely-*selected*-but-not-current step (browsing another milestone) keeps
   the blue accent tint above. */
.jt-step-item.is-current.is-selected {
  background: color-mix(in oklch, var(--color-success) 9%, transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in oklch, var(--color-success) 40%, transparent);
}
.jt-step-item:focus-visible { outline: 2px solid var(--jt-accent); outline-offset: 1px; }

.jt-dot { width: 1.75rem; height: 1.75rem; border-radius: 999px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-top: .1rem; }
.jt-dot svg { width: .95rem; height: .95rem; }
.jt-dot-done { background: var(--color-success); color: var(--color-success-content, #fff); }
.jt-dot-current { background: var(--color-success); color: var(--color-success-content, #fff); box-shadow: 0 0 0 4px color-mix(in oklch, var(--color-success) 18%, transparent); }
.jt-dot-pulse { width: .55rem; height: .55rem; border-radius: 999px; background: #fff; }
.jt-dot-upcoming { background: var(--color-base-200); box-shadow: inset 0 0 0 2px var(--color-base-300); }
.jt-dot-skipped { background: transparent; box-shadow: inset 0 0 0 2px var(--color-base-300); border: 2px dashed var(--color-base-300); }

/* dot size modifiers — the dashboard's parent journey widget (#2190) reuses
   the same dot language at two smaller sizes: one for its own positions
   (narrower columns than /ehcp's), one for the current step's substeps. */
.jt-dot-sm { width: 1.1rem; height: 1.1rem; }
.jt-dot-sm svg { width: .65rem; height: .65rem; }
.jt-dot-sm .jt-dot-pulse { width: .4rem; height: .4rem; }
.jt-dot-xs { width: .85rem; height: .85rem; }
.jt-dot-xs svg { width: .5rem; height: .5rem; }
.jt-dot-xs .jt-dot-pulse { width: .3rem; height: .3rem; }

.jt-step-body { display: flex; flex-direction: column; gap: .1rem; min-width: 0; flex: 1 1 auto; }
.jt-step-name { font-size: .88rem; font-weight: 700; line-height: 1.25; overflow-wrap: break-word; }
/* #1938/#1941/#2039/#2038: opacity-dimmed small text cannot clear WCAG AA in
   either reskin theme — a solid, per-theme ink token (--muted-ink, defined
   for both senguru and senguru-dark in daisyui-theme.css) replaces the
   opacity blend everywhere here, same remedy as the rest of the rail/
   journey surfaces. */
.jt-step-desc { font-size: .72rem; color: var(--muted-ink, inherit); line-height: 1.35; max-height: 1.9rem; overflow: hidden; }
.jt-step-item.is-upcoming .jt-step-name,
.jt-step-item.is-skipped .jt-step-name { color: var(--muted-ink, inherit); }
.jt-step-item.is-skipped .jt-step-desc { font-style: italic; }
.jt-here { margin-top: .2rem; align-self: flex-start; white-space: normal; font-size: .66rem; padding: .15rem .5rem; }

.jt-step-conn { flex: 0 0 1.5rem; height: 2px; background: var(--color-base-300); align-self: center; margin-top: 1rem; }
.jt-step-conn.is-done { background: var(--color-success); }

.jt-foot {
  margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--color-base-200);
  display: flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700;
  color: color-mix(in oklch, var(--color-success) 70%, var(--color-base-content));
}
.jt-foot svg { width: .85rem; height: .85rem; }

@media (max-width: 640px) {
  .jt-step-wrap:not(:has(.jt-step-item.is-selected)) { display: none; }
  .jt-step-conn { display: none; }
  .jt-step-item { width: 100%; }
}
