.trx-section-navbar { position: relative; background: var(--bg-base); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); z-index: 30; }
.trx-section-navbar.is-sticky { position: sticky; top: 64px; }
.trx-section-navbar[data-scrolled="true"] { background: rgba(245, 241, 234, 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line), 0 8px 20px rgba(10,26,47,0.04); }

.trx-section-navbar__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-5); padding-block: var(--space-4); }
@media (max-width: 880px) {
  .trx-section-navbar__inner { grid-template-columns: 1fr; gap: var(--space-3); padding-block: var(--space-3); }
}

.trx-section-navbar__head { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trx-section-navbar__head .trx-eyebrow { margin: 0; }
.trx-section-navbar__title { font-family: var(--font-display); font-size: var(--fs-500); margin: 0; line-height: 1.1; color: var(--ink-primary); letter-spacing: -0.01em; }

.trx-section-navbar__bar { position: relative; min-width: 0; }
.trx-section-navbar__scroll {
  display: flex; align-items: center; gap: var(--space-2);
  overflow-x: auto; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding: 2px 4px;
}
.trx-section-navbar__scroll::-webkit-scrollbar { display: none; }

.trx-section-navbar__pill {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-primary);
  text-decoration: none;
  font-size: var(--fs-200);
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.trx-section-navbar__pill:hover { border-color: var(--ink-primary); transform: translateY(-1px); }
.trx-section-navbar__pill.is-active, .trx-section-navbar__pill[aria-selected="true"] {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--bg-base);
}
.trx-section-navbar__pill.is-active .trx-section-navbar__pill-count,
.trx-section-navbar__pill[aria-selected="true"] .trx-section-navbar__pill-count { color: var(--secondary-soft); border-color: rgba(245,241,234,0.3); }

.trx-section-navbar__pill-label { font-weight: 500; letter-spacing: 0.005em; }
.trx-section-navbar__pill-count {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-soft); padding: 1px 7px; border: 1px solid var(--line);
  border-radius: var(--radius-pill); line-height: 1.4;
}
.trx-section-navbar__pill-badge {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 2px 6px; border-radius: var(--radius-pill); line-height: 1;
}

/* Edge fades to hint scroll */
.trx-section-navbar__edge { position: absolute; top: 0; bottom: 0; width: 32px; pointer-events: none; opacity: 0; transition: opacity var(--dur-fast) var(--ease-out); }
.trx-section-navbar__edge--left  { left: 0;  background: linear-gradient(90deg, var(--bg-base), transparent); }
.trx-section-navbar__edge--right { right: 0; background: linear-gradient(-90deg, var(--bg-base), transparent); }
.trx-section-navbar__bar[data-overflow-left="true"]  .trx-section-navbar__edge--left  { opacity: 1; }
.trx-section-navbar__bar[data-overflow-right="true"] .trx-section-navbar__edge--right { opacity: 1; }

/* Arrow buttons (desktop hint) */
.trx-section-navbar__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-primary);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-sm);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.trx-section-navbar__arrow:hover { background: var(--brand-primary); color: var(--bg-base); border-color: var(--brand-primary); }
.trx-section-navbar__arrow--prev { left: -16px; }
.trx-section-navbar__arrow--next { right: -16px; }
.trx-section-navbar__arrow[hidden] { display: none; }
@media (max-width: 880px) { .trx-section-navbar__arrow { display: none !important; } }

.trx-section-navbar__cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: var(--fs-100); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand-primary); text-decoration: none;
  padding: 8px 0; white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.trx-section-navbar__cta:hover { color: var(--accent); border-bottom-color: var(--accent); }
.trx-section-navbar__cta span { transition: transform var(--dur-fast) var(--ease-out); }
.trx-section-navbar__cta:hover span { transform: translateX(3px); }
@media (max-width: 880px) { .trx-section-navbar__cta { justify-self: end; } }

/* Anchor mode: highlight current via scrollspy */
.trx-section-navbar--anchors .trx-section-navbar__pill[data-target].is-current { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--bg-base); }
