:root{
--bg:#0b1220; --panel:#0f1a2b; --muted:#8aa2c8; --txt:#dfe8ff; --accent:#7fb0ff; --line:#20314d;
}

:root{
  --link: #cfd6e6;            /* light grey */
  --link-hover: #eef1f6;      /* offwhite */
  --active-bg: rgba(255,255,255,0.06);
  --active-underline: #eef1f6;
}

/* Softer link colors + active tab underline */
.topnav a { color:#cfd8e3; }
.topnav a:hover { color:#e5edf7; }
.topnav a.active { color:#f5f7fb; border-bottom:2px solid #7fb0ff; }


/* Breadcrumb subtlety */
.breadcrumb { color:#b9c6d8; margin:8px 12px; font-size:12px; }
.breadcrumb .crumb-active { color:#e7eef7; }

/* global links */
a{ color: var(--link); text-decoration: none; }
a:hover{ color: var(--link-hover); text-decoration: underline; }

/* top nav */
.topnav{
  display:flex; gap:14px; padding:10px 16px;
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.topnav a{
  color: var(--link);
  padding:6px 10px; border-radius:8px;
}
.topnav a.active{
  color: var(--link-hover);
  background: var(--active-bg);
  border-bottom:2px solid var(--active-underline);
}

/* breadcrumb */
.breadcrumb{
  font-size:12px; color:#b7c4d9;
  margin:12px 16px -4px;
}
.breadcrumb .crumb-active{ color: var(--link-hover); }


*{box-sizing:border-box}
body{margin:0;font:14px/1.5 system-ui,Segoe UI,Roboto,Arial;background:var(--bg);color:var(--txt)}
.hidden{display:none}
.container{max-width:1200px;margin:64px auto 40px;padding:0 16px}


.topbar{position:sticky;top:0;z-index:20;display:flex;gap:24px;align-items:center;justify-content:space-between;padding:12px 16px;background:#0c1627;border-bottom:1px solid var(--line)}
.brand{font-weight:700;letter-spacing:.3px}
.nav a{color:var(--txt);text-decoration:none;margin:0 8px;padding:6px 10px;border-radius:8px}
.nav a:hover{background:#0d1e36}


h1{margin:10px 0 12px;font-size:22px}
.muted{color:var(--muted)}
.tiny{font-size:12px}
.card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:16px}
.controls{margin:8px 0 12px}
.controls .row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.btn{background:#132340;border:1px solid var(--line);color:var(--txt);padding:6px 10px;border-radius:10px;cursor:pointer}
.btn.secondary{background:#0f1e36}
.btn:disabled{opacity:.6;cursor:not-allowed}


.table{width:100%;border-collapse:separate;border-spacing:0 6px}
.table thead th{font-weight:600;text-align:left;padding:4px 8px;color:#b9c9e4}
.table tbody td{padding:8px;background:var(--panel);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.table tbody tr{transition:background .15s}
.table tbody tr:hover{background:#0e203c}
.pager{display:flex;gap:10px;align-items:center;justify-content:flex-end;margin-top:10px}


pre.code{max-height:480px;overflow:auto;background:#0a1426;border:1px solid var(--line);border-radius:10px;padding:10px}


svg{width:100%;height:auto;display:block}

/* === Docs layout === */

.docs-layout {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
}

.docs-sidebar {
  position: sticky;
  top: 80px;
  background: var(--panel, #0f1a2b);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.docs-sidebar h2 {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted, #8aa2c8);
  margin: 0 0 0.25rem;
}

.docs-tagline {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--txt, #dfe8ff);
}

.docs-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.docs-nav-link {
  border: none;
  background: transparent;
  text-align: left;
  font: inherit;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  color: var(--muted, #8aa2c8);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.docs-nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--txt, #dfe8ff);
}

.docs-nav-link-active {
  background: var(--active-bg, rgba(255, 255, 255, 0.06));
  color: var(--link-hover, #eef1f6);
}

.docs-main {
  background: var(--panel, #0f1a2b);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.docs-main h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.docs-main h4 {
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}

.docs-main p {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.docs-main ul {
  margin: 0 0 0.7rem 1.1rem;
  padding: 0;
  font-size: 0.95rem;
}

.docs-main code {
  font-size: 0.9rem;
}

.docs-api-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding-left: 0;
}

.docs-api-list li {
  padding: 0.15rem 0;
}

.docs-api-version {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-left: 0.35rem;
}

@media (max-width: 900px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
  }
}

/* Make the layout full-height so the footer sticks to the bottom nicely */
html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Your main SPA root – adjust the selector if it's #root instead */
#app {
  flex: 1 0 auto;
}

/* Footer styling */
.site-footer {
  flex-shrink: 0;
  padding: 0.75rem 1.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid #2a2f3a;
  font-size: 0.75rem;
  color: #8b95b2;
  text-align: center;
  background: #050814;   /* or whatever matches your theme */
}
