/* 홈 B 여정 지도. 색·크기 이름은 css/tokens-v22.css 토큰만 써요. */
.hb-appbar { height: 56px; min-height: 56px; }
.hb { display: flex; flex-direction: column; gap: var(--s-4); padding-top: 0; }
.hb h1, .hb h2, .hb p, .hb ol { margin: 0; }
.hb-chips { display: flex; gap: var(--s-2); align-items: center; margin: 2px var(--gutter) 0; }
.hb-chip {
  display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px;
  border-radius: var(--r-pill); background: var(--c-paper-2); color: var(--c-ink-3);
  font: 600 var(--t-badge, 14px)/20px var(--font-body);
}
.hb-chip svg { width: 16px; height: 16px; }
.hb-journey { margin: 0 var(--gutter); }
.hb-now {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 20px 18px 22px; border-color: var(--c-hong-line); box-shadow: var(--sh-2);
}
.hb-now::before {
  content: ""; position: absolute; inset: 6px; border: 1.5px dashed var(--c-hong-line);
  border-radius: 15px; pointer-events: none;
}
.hb-here { display: flex; align-items: center; gap: 12px; }
.hb-node {
  flex: none; width: var(--node-now); height: var(--node-now); border-radius: 50%;
  display: grid; place-items: center; background: var(--c-hong); color: var(--c-card);
  box-shadow: 0 0 0 var(--node-now-halo) var(--c-hong-soft);
  font: 700 16px/1 var(--font-body); font-variant-numeric: tabular-nums;
}
.hb-where { display: flex; flex-direction: column; min-width: 0; }
.hb-where b { font-size: 16px; line-height: 24px; color: var(--c-hong-text); font-weight: 700; }
.hb-where span { font-size: 16px; line-height: 24px; color: var(--c-ink-2); }
.hb-dd { margin-left: auto; text-align: right; }
.hb-dd b {
  display: block; font: 700 28px/32px var(--font-body); color: var(--c-hong-text);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.hb-dd span { font-size: 16px; line-height: 20px; color: var(--c-ink-2); }
.hb-title {
  font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 32px; color: var(--c-ink);
}
.hb-title--hero { font-size: 32px; line-height: 40px; }
.hb-hong { color: var(--c-hong-text); }
.hb-sub { font-size: 16px; line-height: 24px; color: var(--c-ink-2); }
.hb-thread { position: relative; height: 10px; border-radius: var(--r-pill); background: var(--c-paper-2); }
.hb-thread i {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: var(--r-pill); background: var(--c-hong);
}
.hb-thread i::after {
  content: ""; position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  border-radius: 50%; background: var(--c-card); border: 3.5px solid var(--c-hong);
  right: -7px;
}
.hb-thread.is-empty i { width: 0; }
.hb-thread.is-empty i::after { right: auto; left: -2px; }
.hb-thread-meta {
  display: flex; justify-content: space-between; gap: 8px; align-items: baseline;
  font-size: 16px; line-height: 24px; color: var(--c-ink-2);
}
.hb-thread-meta b { color: var(--c-ink); font-weight: 700; }
.hb-actions { display: flex; flex-direction: column; gap: 2px; }
.hb-btn {
  min-height: 56px; height: 56px; width: 100%; border: 0; border-radius: 16px;
  background: var(--c-cheong); color: var(--c-card); box-shadow: var(--sh-cta);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 17px/1 var(--font-body); letter-spacing: -0.01em; padding: 0 16px;
}
.hb-btn svg { width: 22px; height: 22px; }
.hb-btn:active { background: var(--c-cheong-press); }
.hb-btn--md { min-height: 52px; height: 52px; font-size: 16px; }
.hb-btn--flat { box-shadow: none; }
.hb-btn--line {
  background: var(--c-card); color: var(--c-cheong); box-shadow: none;
  border: 1.5px solid var(--c-cheong-line);
}
.hb-text {
  min-height: 44px; border: 0; background: none; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  color: var(--c-ink-2); font: 600 16px/24px var(--font-body);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--c-line-strong);
}
.hb-text--cheong { color: var(--c-cheong); text-decoration: none; }
.hb-path {
  position: relative; list-style: none; margin: 0; padding: 6px 0 2px;
}
.hb-path::before {
  content: ""; position: absolute; left: var(--path-rail-x); top: -16px; bottom: 24px;
  border-left: var(--path-rail-w) dashed var(--path-rail);
}
.hb-path > li, .hb-rest ol > li {
  position: relative; display: flex; align-items: center; gap: var(--path-stop-gap);
  min-height: var(--path-row-h); padding-left: var(--path-indent); list-style: none;
}
.hb-stop {
  flex: none; width: var(--path-stop); height: var(--path-stop); border-radius: 50%;
  background: var(--c-card); border: var(--path-stop-stroke) solid var(--path-stop-todo);
  display: grid; place-items: center; position: relative; z-index: 1;
  font: 700 var(--path-stop-num)/1 var(--font-body); color: var(--c-ink-3);
}
.hb-stop--end { background: var(--path-stop-end-bg); border-color: var(--path-stop-end); color: var(--c-ink); }
.hb-nm { font-size: 16px; line-height: 24px; color: var(--c-ink-2); font-weight: 600; }
.hb-when { margin-left: auto; font-size: 16px; line-height: 24px; color: var(--c-ink-3); padding-right: 4px; }
.hb-rest { display: block; padding: 0; }
.hb-rest[hidden] { display: none; }
.hb-rest ol { list-style: none; margin: 0; padding: 0; }
.hb-path > li.hb-more { padding-left: var(--path-toggle-indent); }
.hb-more-btn {
  flex: 1; display: flex; align-items: center; gap: var(--path-stop-gap);
  min-height: var(--path-toggle-h); height: var(--path-toggle-h);
  padding: 0 14px 0 8px; border-radius: var(--path-toggle-radius);
  background: var(--path-toggle-bg); border: 1px solid var(--path-toggle-line);
  color: var(--path-toggle-ink); font: 600 16px/24px var(--font-body); text-align: left; cursor: pointer;
  word-break: keep-all;
}
.hb-plus {
  flex: none; width: var(--path-stop); height: var(--path-stop); border-radius: 50%;
  border: var(--path-stop-stroke) dashed var(--path-toggle-line); color: var(--path-toggle-ink);
  display: grid; place-items: center; font: 700 16px/1 var(--font-body); background: var(--c-card);
}
.hb-more-lbl { font-weight: 700; white-space: nowrap; }
.hb-more-hint { margin-left: auto; color: var(--path-toggle-hint); font-weight: 600; white-space: nowrap; }
.hb-chev { width: var(--path-toggle-icon); height: var(--path-toggle-icon); flex: none; }
.hb-more-btn[aria-expanded="true"] .hb-chev { transform: rotate(180deg); }
.hb-more-btn[aria-expanded="true"] .hb-plus,
.hb-more-btn[aria-expanded="true"] .hb-more-hint { display: none; }
.hb-diag { display: flex; flex-direction: column; gap: 10px; margin: 0 var(--gutter); }
.hb-diag h2 {
  font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 28px; color: var(--c-ink);
}
.hb-btn-row { display: flex; gap: var(--s-2); }
.hb-btn-row > * { flex: 1; }
.hb-notice {
  display: flex; align-items: center; gap: 8px; min-height: 24px;
  color: var(--c-ink-2); font-size: 16px; line-height: 24px;
}
.hb-notice svg { width: 18px; height: 18px; color: var(--c-cheong); flex: none; }
.hb-quick {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  margin: 0 var(--gutter); background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: 14px 6px 10px; box-shadow: var(--sh-1);
}
.hb-quick button {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-height: 96px; padding: 2px 2px 0; border: 0; background: none; color: var(--c-ink); text-align: center;
}
.hb-quick b { font-size: 16px; line-height: 20px; font-weight: 700; }
.hb-ibox {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-cheong-soft); color: var(--c-cheong);
}
.hb-ibox svg { width: 24px; height: 24px; }
.hb-ibox--hong { background: var(--c-hong-soft); color: var(--c-hong); }
.hb-ibox--jade { background: var(--c-actual-soft); color: var(--c-actual); }
.hb-ibox--grey { background: var(--c-rough-soft); color: var(--c-rough); }
.hb-market { margin: 0 var(--gutter); }
.hb-market .text-btn, .hb-market-more {
  align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: none;
  color: var(--c-cheong); font: 600 16px/24px var(--font-body);
  display: inline-flex; align-items: center; gap: 2px;
}
.lab-rough svg { width: 16px; height: 16px; }
.price-rough .spread { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.badge.nation {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px;
  border-radius: var(--r-pill); background: var(--c-card); border: 1.5px solid var(--c-rough-line);
  color: var(--c-rough); font: 700 14px/1 var(--font);
}
.price-rough .srow-f .num { color: var(--c-rough); }
@media (max-height: 810px) {
  .hb { gap: 8px; }
  .hb-now { gap: 8px; padding: 12px 16px 8px; }
  .hb-title--hero { font-size: 26px; line-height: 32px; }
  .hb-diag { gap: 6px; }
  .hb-path { padding-top: 2px; }
}
.hb-src { margin-top: 8px; color: var(--c-ink-2); font-size: 16px; line-height: 24px; }
.hb-src p { margin: 0; }
.hb-legal {
  margin: 0 var(--gutter); text-align: center; color: var(--c-ink-3);
  font-size: 16px; line-height: 24px;
}
.hb-date { display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 24px; }
.hb-date input { min-height: 48px; font-size: 16px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--c-line-strong); }
