/* Mingles Router — shared console shell (spec §9).
 *
 * Mirrors the marketing site's design tokens (marketing-site/src/styles/tokens.css)
 * so landing → /app → docs feel like ONE product: same fonts, colors, buttons,
 * header and footer. Keep these token values in sync with the marketing site.
 */
:root {
  /* Surfaces */
  --bg-body: #050505;
  --bg-surface: #141414;
  --bg-elevated: #1c1c1c;

  /* Accent */
  --accent-green: #2EBD59;
  --accent-green-hover: #26a64d;

  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: #9E9E9E;
  --text-muted: #6b6b6b;

  /* Lines */
  --border-subtle: #262626;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', 'Menlo', monospace;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* ── Shared product header ──────────────────────────────────────────────── */
.router-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(8px);
  font-family: var(--font-sans);
}
.router-header .router-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.router-header .router-brand .logo {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent-green);
}
.router-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.router-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 120ms ease, background 120ms ease;
}
.router-nav a:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
  text-decoration: none;
}
.router-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.router-account {
  font-size: 13px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.router-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent-green);
  color: #04140e;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  text-decoration: none;
  transition: background 120ms ease;
}
.router-cta:hover {
  background: var(--accent-green-hover);
  text-decoration: none;
}
.router-ghost {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}
.router-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

@media (max-width: 640px) {
  .router-nav a:not(.router-nav-keep) { display: none; }
}

/* ── Shared product footer ──────────────────────────────────────────────── */
.router-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-body);
  font-family: var(--font-sans);
  margin-top: 48px;
}
.router-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.router-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.router-footer-links a {
  color: var(--text-secondary);
  font-size: 13px;
  text-decoration: none;
}
.router-footer-links a:hover {
  color: var(--text-primary);
}
.router-footer-copy {
  color: var(--text-muted);
  font-size: 12px;
}
