/*!
 * styles/elite-nav.css — Trading Hub v2 elite navigation styles.
 * NEXUS COMMAND THv2 lane 30 — 2026-04-28.
 * 2026-04-29 IA-refinement: per-section hue tokens RETIRED. Mono+gold
 * discipline applied — labels = var(--fg-1); active = var(--accent);
 * hover-tint = var(--accent-bg). Information-bearing color (signal tiers /
 * direction / regime / drift / notif badge / live-feed dots) preserved
 * unchanged elsewhere in the app per Q2 selective-color rules.
 *
 * Token-driven; one-line theme switch via the `.enav-root[data-theme]`
 * attribute. Canonical app.css tokens are the single source of truth;
 * elite-nav owns ONLY surface/geometry/motion local tokens.
 */

:root {
  /* Mono+gold palette (collapsed from prior 6-hue per-section set).
   * Defaults bind to canonical app.css tokens so theme switching cascades.
   * Fallbacks listed for SSR-without-app.css safety.
   */
  --enav-color-default: var(--fg-1, #c9cfd8);
  --enav-color-active:  var(--accent, #d4a017);
  --enav-color-hover:   var(--accent-bg, rgba(212,160,23,0.08));

  /* Surfaces (dark-mode default per THv2). */
  --enav-bg: #0a0d12;
  --enav-bg-elev: #14141a;
  --enav-bg-elev-2: #1d1f27;
  --enav-border: #2a2a35;
  --enav-text: #e5e7eb;
  --enav-text-muted: #9ca3af;
  --enav-text-faint: #8b93a3;
  --enav-focus: var(--color-directional-neutral, #d4a017);
  --enav-danger: #f87171;
  --enav-active: var(--enav-color-active);
  --enav-section-color: var(--enav-color-active);

  /* Geometry. */
  --enav-h-topbar: 56px;
  --enav-h-subbar: 40px;
  --enav-h-crumb: 32px;
  --enav-touch-min: 44px;
  --enav-radius: 8px;
  --enav-radius-sm: 6px;

  /* Motion (reduced-motion overridden below). */
  --enav-motion-fast: 120ms;
  --enav-motion-base: 200ms;
  --enav-easing: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Light mode opt-in via attribute on root or body. */
.enav-root[data-theme="light"],
[data-theme="light"] .enav-root {
  --enav-bg: #ffffff;
  --enav-bg-elev: #f7f7fa;
  --enav-bg-elev-2: #eceff3;
  --enav-border: #e5e7eb;
  --enav-text: #0f172a;
  --enav-text-muted: #475569;
  --enav-text-faint: #94a3b8;

  /* Mono+gold inherits from app.css canonical tokens; no override needed. */
}

/* ─── Skip link ─────────────────────────────────────────────────────────── */
.enav-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--enav-focus);
  color: #000;
  padding: 8px 16px;
  font-weight: 600;
  border-radius: var(--enav-radius-sm);
  z-index: 9999;
}
.enav-skip:focus {
  left: 8px;
  top: 8px;
  outline: 2px solid var(--enav-focus);
}

/* ─── Root ──────────────────────────────────────────────────────────────── */
.enav-root {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--enav-text);
  background: var(--enav-bg);
  -webkit-font-smoothing: antialiased;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--enav-border);
}

/* ─── Top bar ───────────────────────────────────────────────────────────── */
.enav-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--enav-h-topbar);
  padding: 0 16px;
  background: var(--enav-bg-elev);
}

.enav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--enav-text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  min-height: var(--enav-touch-min);
  padding: 4px 6px;
  border-radius: var(--enav-radius-sm);
}
.enav-brand:hover { background: var(--enav-bg-elev-2); }
.enav-brand:focus-visible { outline: 2px solid var(--enav-focus); outline-offset: 2px; }
.enav-brand-mark { color: var(--enav-focus); font-size: 16px; }
.enav-brand-text { font-size: 15px; }

/* Section row (desktop). */
.enav-sections {
  flex: 1 1 auto;
  min-width: 0;
}
.enav-section-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.enav-section-list::-webkit-scrollbar { display: none; }
.enav-section-item {
  position: relative;
  flex-shrink: 0;
}
.enav-section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  min-height: var(--enav-touch-min);
  border-radius: var(--enav-radius-sm);
  color: var(--enav-text-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--enav-motion-fast) var(--enav-easing),
              background var(--enav-motion-fast) var(--enav-easing);
}
.enav-section-link:hover {
  color: var(--enav-text);
  background: var(--enav-color-hover);
}
.enav-section-link:focus-visible {
  outline: 2px solid var(--enav-focus);
  outline-offset: 2px;
}
.enav-section-item.is-active .enav-section-link {
  color: var(--enav-color-active);
  background: var(--enav-bg-elev-2);
}
.enav-section-item.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  background: var(--enav-color-active);
  border-radius: 2px 2px 0 0;
}

/* Section dot — mono line-style indicator; gold only when active. */
.enav-section-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  background: var(--enav-color-default);
  opacity: 0.55;
}
.enav-section-item.is-active .enav-section-dot {
  background: var(--enav-color-active);
  opacity: 1;
}

.enav-drift-dot {
  width: 6px;
  height: 6px;
  background: var(--enav-danger);
  border-radius: 50%;
  margin-left: 4px;
  display: inline-block;
}

/* ─── Controls (right side) ─────────────────────────────────────────────── */
.enav-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.enav-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  min-height: 36px;
  background: var(--enav-bg);
  border: 1px solid var(--enav-border);
  border-radius: var(--enav-radius);
  color: var(--enav-text-muted);
  font-size: 13px;
  cursor: pointer;
  width: 220px;
  text-align: left;
}
.enav-search-btn:hover { border-color: var(--enav-focus); color: var(--enav-text); }
.enav-search-btn:focus-visible { outline: 2px solid var(--enav-focus); outline-offset: 2px; }
.enav-search-text { flex: 1; }
.enav-search-icon { font-size: 14px; }
.enav-kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  padding: 2px 6px;
  background: var(--enav-bg-elev-2);
  border-radius: 4px;
  color: var(--enav-text-faint);
}

.enav-icon-btn {
  position: relative;
  width: var(--enav-touch-min);
  height: var(--enav-touch-min);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--enav-radius);
  color: var(--enav-text-muted);
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.enav-icon-btn:hover {
  color: var(--enav-text);
  background: var(--enav-bg-elev-2);
}
.enav-icon-btn:focus-visible { outline: 2px solid var(--enav-focus); outline-offset: 2px; }

.enav-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--enav-danger);
  color: #000;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.enav-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.enav-chip--regime {
  background: var(--enav-bg-elev-2);
  color: var(--enav-text);
  border: 1px solid var(--enav-border);
}
.enav-chip--drift {
  background: rgba(248, 113, 113, 0.15);
  color: var(--enav-danger);
  border: 1px solid var(--enav-danger);
}

/* ─── Section sub-bar ───────────────────────────────────────────────────── */
.enav-subbar {
  height: var(--enav-h-subbar);
  background: var(--enav-bg);
  border-top: 1px solid var(--enav-border);
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.enav-subbar::-webkit-scrollbar { display: none; }
.enav-page-list {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}
.enav-page-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  min-height: 32px;
  color: var(--enav-text-muted);
  text-decoration: none;
  font-size: 13px;
  border-radius: var(--enav-radius-sm);
  white-space: nowrap;
}
.enav-page-link:hover { color: var(--enav-text); background: var(--enav-bg-elev); }
.enav-page-link:focus-visible { outline: 2px solid var(--enav-focus); outline-offset: 2px; }
.enav-page-item.is-active .enav-page-link {
  color: var(--enav-color-active);
  background: var(--enav-bg-elev);
  box-shadow: inset 0 -2px 0 var(--enav-color-active);
}

/* ─── Breadcrumb ────────────────────────────────────────────────────────── */
.enav-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--enav-h-crumb);
  padding: 0 16px;
  font-size: 12px;
  color: var(--enav-text-muted);
  background: var(--enav-bg);
  border-top: 1px solid var(--enav-border);
}
.enav-crumb-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}
.enav-crumb a {
  color: var(--enav-text-muted);
  text-decoration: none;
}
.enav-crumb a:hover { color: var(--enav-text); }
.enav-crumb a:focus-visible { outline: 2px solid var(--enav-focus); outline-offset: 2px; }
.enav-crumb-sep {
  margin: 0 6px;
  color: var(--enav-text-faint);
}
.enav-crumb.is-current { color: var(--enav-text); font-weight: 600; }

.enav-cockpit-link {
  color: var(--enav-text-muted);
  text-decoration: none;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: var(--enav-radius-sm);
}
.enav-cockpit-link:hover { color: var(--enav-text); background: var(--enav-bg-elev); }

/* ─── Mobile drawer ─────────────────────────────────────────────────────── */
.enav-drawer {
  position: fixed;
  inset: 0;
  background: var(--enav-bg);
  z-index: 1100;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.enav-drawer[hidden] { display: none; }

.enav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--enav-border);
  height: var(--enav-h-topbar);
}
.enav-drawer-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.enav-drawer-section {
  border: 1px solid var(--enav-border);
  border-radius: var(--enav-radius);
  background: var(--enav-bg-elev);
}
.enav-drawer-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  min-height: var(--enav-touch-min);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  list-style: none;
}
.enav-drawer-summary::-webkit-details-marker { display: none; }
.enav-drawer-pages {
  list-style: none;
  margin: 0;
  padding: 0 8px 8px 8px;
}
.enav-drawer-page {
  display: block;
  padding: 12px 16px;
  min-height: var(--enav-touch-min);
  color: var(--enav-text-muted);
  text-decoration: none;
  border-radius: var(--enav-radius-sm);
  font-size: 14px;
}
.enav-drawer-page:hover { background: var(--enav-bg-elev-2); color: var(--enav-text); }
.enav-drawer-page.is-active {
  color: var(--enav-text);
  background: var(--enav-bg-elev-2);
  font-weight: 600;
}

/* ─── Mobile section header (replaces breadcrumb on mobile) ─────────────── */
.enav-mobile-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  background: var(--enav-bg);
  border-top: 1px solid var(--enav-border);
  letter-spacing: 0.04em;
  color: var(--enav-color-active);
  box-shadow: inset 0 -2px 0 var(--enav-color-active);
}
.enav-mobile-page {
  font-weight: 400;
  color: var(--enav-text-muted);
}

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 639px) {
  .enav-topbar { padding: 0 12px; gap: 8px; }
  .enav-sections { display: none; } /* drawer takes over on mobile */
  .enav-search-btn { display: none; }
  .enav-subbar, .enav-breadcrumb { display: none; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .enav-search-btn { width: 160px; }
}

/* ─── Reduced motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .enav-section-link,
  .enav-page-link,
  .enav-icon-btn,
  .enav-search-btn {
    transition: none !important;
  }
}

/* ─── High contrast ─────────────────────────────────────────────────────── */
@media (prefers-contrast: more) {
  .enav-root { border-bottom-width: 2px; }
  .enav-section-item.is-active::after { height: 3px; }
  .enav-page-item.is-active .enav-page-link { box-shadow: inset 0 -3px 0 var(--enav-color-active); }
}

/* ─── Section landing page styles (per lane 23) ─────────────────────────── */
.enav-landing {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 24px;
}
.enav-landing-hero {
  border-left: 4px solid var(--enav-color-active);
  padding-left: 16px;
  margin-bottom: 24px;
}
.enav-landing-hero h1 {
  margin: 0 0 8px;
  font-size: 28px;
}
.enav-landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.enav-landing-card {
  display: block;
  padding: 16px;
  background: var(--enav-bg-elev);
  border: 1px solid var(--enav-border);
  border-radius: var(--enav-radius);
  color: var(--enav-text);
  text-decoration: none;
}
.enav-landing-card:hover { border-color: var(--enav-color-active); }
.enav-landing-card.is-last-visited {
  outline: 2px solid var(--enav-color-active);
}

/* ─── Horizon picker (Lane O — 2026-04-29) ──────────────────────────────────
 * Sticky chip in nav controls. Shows current horizon label; native <select>
 * overlays for a11y + keyboard. CSS-isolated under .enav-horizon to avoid
 * clobbering any page styles.
 */
.enav-horizon {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  background: var(--enav-bg-elev-2);
  border: 1px solid var(--enav-border);
  border-radius: var(--enav-radius-sm);
  color: var(--enav-text);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}
.enav-horizon:hover {
  border-color: var(--enav-color-active);
  background: var(--enav-color-hover);
}
.enav-horizon:focus-within {
  outline: 2px solid var(--enav-focus);
  outline-offset: 2px;
}
.enav-horizon-icon {
  font-size: 13px;
  color: var(--enav-text-muted);
  line-height: 1;
}
.enav-horizon-label {
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.enav-horizon-caret {
  font-size: 10px;
  color: var(--enav-text-muted);
  margin-left: 2px;
}
/* Native select stretched over the chip — invisible but keyboard / screen-
 * reader accessible. Native picker UI shows on click. */
.enav-horizon-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
}

@media (max-width: 640px) {
  .enav-horizon-label { display: none; }  /* mobile: icon-only chip */
}

/* ─── Search palette (Lane SP — universal site search) ────────────────────
 * Modal overlay opened from the ⌕ icon in the top-bar or Cmd/Ctrl-K. Indexes
 * pages (from SECTIONS catalog) + tickers (chase/ibkr universes lazy-loaded).
 * WCAG 2.2 AA: 44×44 touch targets, 4.5:1 contrast, full keyboard nav, focus
 * ring on input + close button.
 */
html.thv2-palette-lock { overflow: hidden; }

.thv2-palette-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 16px 16px;
  animation: thv2PaletteFadeIn 120ms ease-out;
}
@keyframes thv2PaletteFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.thv2-palette {
  width: 100%;
  max-width: 640px;
  background: var(--enav-bg-elev);
  border: 1px solid var(--enav-border);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 70vh;
  animation: thv2PaletteSlideIn 140ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes thv2PaletteSlideIn {
  from { transform: translateY(-12px); opacity: 0.6; }
  to   { transform: translateY(0);     opacity: 1; }
}

.thv2-palette-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--enav-border);
  flex-shrink: 0;
}
.thv2-palette-icon {
  font-size: 18px;
  color: var(--enav-text-muted);
  flex-shrink: 0;
}
.thv2-palette-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--enav-text);
  font-size: 16px;
  font-family: inherit;
  padding: 4px 0;
  letter-spacing: 0.01em;
}
.thv2-palette-input::placeholder {
  color: var(--enav-text-faint);
}
.thv2-palette-input:focus {
  outline: 0;
}
.thv2-palette-badge {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--enav-text-faint);
  padding: 4px 8px;
  background: var(--enav-bg-elev-2);
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.thv2-palette-badge[data-loading="1"] {
  color: var(--enav-focus);
  animation: thv2PalettePulse 1.4s ease-in-out infinite;
}
.thv2-palette-badge[data-loaded="1"] {
  color: var(--enav-text-muted);
}
@keyframes thv2PalettePulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
.thv2-palette-close {
  width: 32px;
  height: 32px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--enav-text-muted);
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.thv2-palette-close:hover {
  background: var(--enav-bg-elev-2);
  color: var(--enav-text);
}
.thv2-palette-close:focus-visible {
  outline: 2px solid var(--enav-focus);
  outline-offset: 2px;
}

.thv2-palette-results {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  padding: 6px 0;
  /* Smooth scroll-to-selected */
  scroll-behavior: smooth;
}

.thv2-palette-group {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--enav-text-faint);
  padding: 10px 16px 4px;
  font-weight: 600;
}

.thv2-palette-row {
  display: grid;
  grid-template-columns: 24px auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  border-left: 2px solid transparent;
  font-size: 14px;
  color: var(--enav-text);
  transition: background-color 80ms ease, border-color 80ms ease;
  user-select: none;
}
.thv2-palette-row.is-selected {
  background: var(--enav-bg-elev-2);
  border-left-color: var(--enav-focus);
}
.thv2-palette-row:focus-visible {
  outline: 2px solid var(--enav-focus);
  outline-offset: -2px;
}

.thv2-palette-kind {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  background: var(--enav-bg-elev-2);
  color: var(--enav-text-muted);
  flex-shrink: 0;
}
.thv2-palette-kind--tk {
  background: rgba(212, 160, 23, 0.15);
  color: var(--enav-focus);
}
.thv2-palette-kind--sec {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}
.thv2-palette-kind--pg {
  background: var(--enav-bg-elev-2);
  color: var(--enav-text-muted);
}

.thv2-palette-label {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.thv2-palette-row[data-kind="ticker"] .thv2-palette-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.thv2-palette-hint {
  color: var(--enav-text-muted);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.thv2-palette-route {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--enav-text-faint);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.thv2-palette-syn {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  margin-left: -4px;
}

.thv2-palette-empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--enav-text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.thv2-palette-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-top: 1px solid var(--enav-border);
  font-size: 11.5px;
  color: var(--enav-text-faint);
  flex-shrink: 0;
  background: var(--enav-bg);
}
.thv2-palette-foot .thv2-palette-tip {
  margin-left: auto;
  color: var(--enav-text-muted);
  font-style: italic;
}
.thv2-palette-kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  padding: 2px 6px;
  background: var(--enav-bg-elev-2);
  border: 1px solid var(--enav-border);
  border-radius: 4px;
  color: var(--enav-text-muted);
  margin-right: 4px;
}

@media (max-width: 640px) {
  .thv2-palette-backdrop {
    padding: 5vh 8px 8px;
  }
  .thv2-palette {
    max-height: 85vh;
    max-width: 100%;
  }
  .thv2-palette-input { font-size: 16px; /* prevent iOS zoom */ }
  .thv2-palette-row {
    grid-template-columns: 24px auto 1fr;
    padding: 12px 14px;
  }
  .thv2-palette-route { display: none; }
  .thv2-palette-foot .thv2-palette-tip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .thv2-palette-backdrop, .thv2-palette { animation: none; }
  .thv2-palette-results { scroll-behavior: auto; }
  .thv2-palette-badge[data-loading="1"] { animation: none; }
}
