/* ── Tab Nav — light-mode contrast + vertical dividers (p118 Hotfix-8 follow-up) ── */
/* .tab-btn rules live inline in deploy/index.html; specificity bumped here to override. */
body.light-mode .tab-btn,
body.light-mode .tab-btn i { color: var(--text1); }
body.light-mode .tab-btn:hover,
body.light-mode .tab-btn:hover i { color: var(--accent); }
body.light-mode .tab-btn.active,
body.light-mode .tab-btn.active i { color: var(--accent); }

.tab-nav > .tab-btn { position: relative; }
.tab-nav > .tab-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 1px;
  height: 62%;
  background: rgba(128,128,128,0.22);
  pointer-events: none;
}
body.light-mode .tab-nav > .tab-btn::after { background: rgba(0,0,0,0.14); }
.tab-nav > .tab-btn:last-child::after { display: none; }

/* -- Unified Subtab Navigation (shared by market/data/analyst) -- */
.zh-subtab-nav {
  display: flex;
  gap: 6px;
  padding: 8px 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 16px;
}
.zh-subtab-nav::-webkit-scrollbar { display: none; }
.zh-subtab-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 20px;
  color: var(--text3);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}
.zh-subtab-btn i { font-size: 13px; }
.zh-subtab-btn:hover {
  background: var(--bg2);
  color: var(--text1);
}
.zh-subtab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 3px var(--accent-glow);
}
