
:root {
  --bg: #0b1120;
  --bg-sidebar: #0f172a;
  --bg-content: #1e293b;
  --border: rgba(56, 189, 248, 0.2);
  --border-hover: rgba(56, 189, 248, 0.6);
  --primary: #38bdf8;
  --primary-glow: rgba(56, 189, 248, 0.25);
  --accent: #10b981;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --nav-bg: rgba(11, 17, 32, 0.96);
  --badge-bg: rgba(56, 189, 248, 0.12);
  --badge-text: #7dd3fc;
  --btn-grad: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
body { background: var(--bg); color: var(--text); line-height: 1.65; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
a { color: var(--primary); text-decoration: none; transition: all 0.2s; }
a:hover { filter: brightness(1.2); }

.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 20px; }

/* Navbar - STRICT NO SCROLLBAR */
.navbar { position: sticky; top: 0; z-index: 1000; background: var(--nav-bg); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); overflow: visible !important; }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: #fff; text-decoration: none; flex-shrink: 0; }
.brand img { width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0; }
.brand .badge { font-size: 0.72rem; padding: 2px 8px; border-radius: 4px; background: var(--badge-bg); color: var(--badge-text); border: 1px solid var(--border); font-weight: 600; font-family: monospace; }
.brand .ver { font-size: 0.72rem; padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,0.06); color: #94a3b8; font-family: monospace; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; overflow: visible !important; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; padding: 6px 11px; border-radius: 6px; transition: all 0.15s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(56,189,248,0.12); }

.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; font-size: 0.9rem; padding: 8px 16px; border-radius: 6px; cursor: pointer; transition: all 0.2s; border: none; white-space: nowrap; text-decoration: none; }
.btn-primary { background: var(--btn-grad); color: #fff !important; box-shadow: 0 4px 12px var(--primary-glow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px var(--primary-glow); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); background: rgba(56,189,248,0.06); }

/* 2-Column Docs Layout */
.docs-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 36px 0 60px; min-height: 80vh; }

/* Sticky Docs Sidebar */
.docs-sidebar { background: var(--bg-sidebar); border: 1px solid var(--border); border-radius: 12px; padding: 20px 16px; height: fit-content; position: sticky; top: 90px; }
.sidebar-title { font-size: 0.78rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; font-family: monospace; }
.sidebar-nav { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.sidebar-nav a { display: block; font-size: 0.88rem; color: var(--text-muted); padding: 7px 12px; border-radius: 6px; transition: all 0.15s; }
.sidebar-nav a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.sidebar-nav a.active { color: #38bdf8; background: rgba(56,189,248,0.12); font-weight: 600; }

/* Main Doc Reader Area */
.docs-content { background: var(--bg-content); border: 1px solid var(--border); border-radius: 14px; padding: 36px 40px; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.82rem; color: #64748b; margin-bottom: 18px; font-family: monospace; display: flex; align-items: center; gap: 8px; }
.breadcrumbs a { color: #94a3b8; }
.breadcrumbs span { color: #38bdf8; }

.docs-content h1 { font-size: 2.2rem; font-weight: 800; color: #fff; margin-bottom: 12px; letter-spacing: -0.02em; }
.docs-lead { font-size: 1.05rem; color: #cbd5e1; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.08); line-height: 1.7; }
.docs-content h2 { font-size: 1.4rem; font-weight: 700; color: #fff; margin: 32px 0 14px; border-left: 4px solid var(--primary); padding-left: 12px; }
.docs-content h3 { font-size: 1.15rem; font-weight: 600; color: #f1f5f9; margin: 20px 0 10px; }
.docs-content p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.75; font-size: 0.96rem; }
.docs-content ul, .docs-content ol { margin: 0 0 20px 24px; color: var(--text-muted); }
.docs-content li { margin-bottom: 8px; font-size: 0.95rem; }

/* Callout Note / Tip */
.callout { background: rgba(56, 189, 248, 0.08); border-left: 4px solid var(--primary); border-radius: 6px; padding: 14px 18px; margin: 20px 0; font-size: 0.92rem; }
.callout.tip { background: rgba(16, 185, 129, 0.08); border-left-color: #10b981; }

/* Code Snippet */
.code-block { background: #070b14; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 18px; font-family: monospace; font-size: 0.88rem; color: #7dd3fc; margin: 18px 0; overflow-x: auto; }

/* Doc Table */
.doc-table { width: 100%; border-collapse: collapse; margin: 20px 0; text-align: left; }
.doc-table th, .doc-table td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 0.9rem; }
.doc-table th { background: rgba(255,255,255,0.04); color: #fff; font-weight: 700; }

/* CTA Box */
.doc-cta { background: linear-gradient(135deg, rgba(2,132,199,0.15) 0%, rgba(14,165,233,0.05) 100%); border: 1px solid var(--border); border-radius: 10px; padding: 24px; text-align: center; margin: 36px 0; }
.doc-cta h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; color: #fff; }
.doc-cta p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; }

/* Footer - ONLY 6 SITES MUTUAL LINKS */
footer { margin-top: auto; border-top: 1px solid var(--border); background: var(--nav-bg); padding: 48px 0 24px; font-size: 0.88rem; }
.footer-friendly { border: 1px solid var(--border); border-radius: 10px; padding: 18px; background: rgba(15, 23, 42, 0.6); margin-bottom: 30px; }
.footer-friendly .title { font-size: 0.92rem; font-weight: 700; margin-bottom: 10px; color: #fff; }
.footer-friendly .links-flex { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.friendly-link { font-size: 0.85rem; color: var(--text-muted); padding: 5px 12px; background: rgba(255,255,255,0.03); border-radius: 6px; border: 1px solid var(--border); text-decoration: none; transition: all 0.2s; }
.friendly-link:hover { color: #fff; border-color: var(--primary); background: rgba(56, 189, 248, 0.1); }
.friendly-link.current { border-color: var(--primary); color: #fff; font-weight: 600; background: var(--badge-bg); }

.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 30px; }
.footer-about h3 { font-size: 1.05rem; margin-bottom: 10px; color: #fff; }
.footer-about p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }
.footer-col h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 12px; color: #fff; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); font-size: 0.85rem; }
.footer-col a:hover { color: var(--primary); }
.footer-copy { border-top: 1px solid var(--border); padding-top: 18px; text-align: center; color: var(--text-muted); font-size: 0.82rem; }

/* Jump Dock */
.jump-dock { position: fixed; right: 20px; bottom: 24px; display: flex; flex-direction: column; gap: 8px; z-index: 999; }
.dock-circle { width: 42px; height: 42px; border-radius: 50%; background: var(--bg-content); border: 1px solid var(--border); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,0.4); text-decoration: none; cursor: pointer; transition: all 0.2s; }
.dock-circle.primary { background: var(--btn-grad); border: none; }
.dock-circle:hover { transform: scale(1.08); }

@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; }
  .footer-main { grid-template-columns: 1fr; gap: 20px; }
  .navbar-inner { height: auto; padding: 12px 0; flex-wrap: wrap; }
}
