/* SilverStack Shared Design Tokens — single source of truth for all sites */

:root {
  /* Backgrounds */
  --bg: #0a0b0d;
  --bg2: #12141a;
  --bg3: #1a1d26;
  --card: #15171f;

  /* Text */
  --silver1: #f8f9fc;
  --silver2: #c9cdd6;
  --silver3: #9ca3b0;
  --silver4: #6b7280;

  /* Accent colors */
  --green: #34d399;
  --green-dim: rgba(52, 211, 153, 0.10);
  --red: #f87171;
  --yellow: #fbbf24;
  --orange: #fb923c;
  --blue: #60a5fa;
  --blue-dim: rgba(96, 165, 250, 0.10);
  --purple: #a78bfa;
  --purple-dim: rgba(167, 139, 250, 0.10);

  /* Borders */
  --border: rgba(255, 255, 255, 0.08);
  --border2: rgba(255, 255, 255, 0.12);
  --border3: rgba(255, 255, 255, 0.15);

  /* Surfaces */
  --hover: rgba(255, 255, 255, 0.03);
  --overlay-bg: rgba(0, 0, 0, 0.5);
  --shadow-color: rgba(0, 0, 0, 0.4);

  /* Interactive states */
  --active-subtle: rgba(52, 211, 153, 0.06);
  --active-medium: rgba(52, 211, 153, 0.12);
}

[data-theme="light"] {
  /* Backgrounds */
  --bg: #f3f4f6;
  --bg2: #ffffff;
  --bg3: #e5e7eb;
  --card: #ffffff;

  /* Text */
  --silver1: #111827;
  --silver2: #374151;
  --silver3: #6b7280;
  --silver4: #9ca3af;

  /* Accent colors */
  --green: #059669;
  --green-dim: rgba(5, 150, 105, 0.10);
  --red: #dc2626;
  --yellow: #d97706;
  --orange: #c95d1e;
  --blue: #2563eb;
  --blue-dim: rgba(37, 99, 235, 0.10);
  --purple: #7c3aed;
  --purple-dim: rgba(124, 58, 237, 0.10);

  /* Borders */
  --border: rgba(0, 0, 0, 0.08);
  --border2: rgba(0, 0, 0, 0.12);
  --border3: rgba(0, 0, 0, 0.15);

  /* Surfaces */
  --hover: rgba(0, 0, 0, 0.03);
  --overlay-bg: rgba(0, 0, 0, 0.30);
  --shadow-color: rgba(0, 0, 0, 0.12);

  /* Interactive states */
  --active-subtle: rgba(5, 150, 105, 0.05);
  --active-medium: rgba(5, 150, 105, 0.10);
}

/* ============================================================================
   CROSS-NAV BAR — consistent across all pages
   ============================================================================ */
.cross-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  height: 32px;
  display: flex;
  align-items: center;
}
.cross-nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  width: 100%;
}
.cross-nav-link {
  color: var(--silver3);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
  white-space: nowrap;
}
.cross-nav-link:hover { color: var(--silver1); text-decoration: none; }
.cross-nav-link.active {
  color: var(--orange);
  font-weight: 700;
}
.cross-nav-icon { font-size: 12px; }
.cross-nav-sep {
  width: 1px;
  height: 14px;
  background: var(--border2);
}

@media (max-width: 640px) {
  .cross-nav { padding: 0 12px; height: 36px; }
  .cross-nav-inner {
    gap: 12px;
    font-size: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cross-nav-inner::-webkit-scrollbar { display: none; }
}
