/* Left nav — same contract as GekkoFlow CollapsibleHubNav */
html, body { background: #1e1e24; }
body.has-hub-nav { display: flex; min-height: 100vh; }
body.has-hub-nav > header.site { display: none; }

/* Reserve the sidebar column before JS inserts it so the page does not jump. */
@media (min-width: 800px) {
  body.has-hub-nav { padding-left: 224px; }
  html.nav-closed body.has-hub-nav { padding-left: 56px; }
  body.has-hub-nav::before {
    content: "";
    position: fixed; left: 0; top: 0; bottom: 0; width: 224px;
    background: #141418;
    border-right: 1px solid rgba(255,255,255,.08);
    z-index: 20;
    pointer-events: none;
  }
  html.nav-closed body.has-hub-nav::before { width: 56px; }
}

.hub-nav {
  position: fixed; left: 0; top: 0;
  height: 100vh;
  background: #141418;
  border-right: 1px solid var(--rule);
  display: none;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 30;
  overflow: hidden;
  transition: width .2s ease-out;
}
.hub-nav.is-open { width: 224px; }
.hub-nav.is-closed { width: 56px; }
@media (min-width: 800px) {
  .hub-nav { display: flex; }
  .app-main { flex: 1; min-width: 0; }
}
.hub-nav-head {
  display: flex; align-items: center; gap: .6rem;
  padding: 1rem .75rem;
  border-bottom: 1px solid var(--rule);
  min-height: 4.2rem;
  color: inherit;
  text-decoration: none;
}
.hub-nav-head:hover { background: rgba(255,255,255,.04); }
.hub-mark {
  width: 1.75rem; height: 1.75rem; border-radius: .4rem;
  background: linear-gradient(135deg, #00ff41, #00cc33);
  color: #000; font-weight: 800; display: grid; place-items: center;
  flex-shrink: 0; font-size: .85rem;
}
.hub-word { min-width: 0; overflow: hidden; }
.hub-word strong { display: block; font-size: .9rem; line-height: 1.15; font-weight: 800; }
.hub-word small {
  display: block; font-size: .65rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gekko-green); font-weight: 700;
}
.hub-nav.is-closed .hub-word,
.hub-nav.is-closed .hub-label,
.hub-nav.is-closed .hub-group-title,
.hub-nav.is-closed .hub-chevron,
.hub-nav.is-closed .hub-dot { display: none; }
.hub-controls, .hub-group { padding: .4rem .4rem; border-bottom: 1px solid var(--rule); }
.hub-btn, .hub-link {
  display: flex; align-items: center; gap: .75rem;
  width: 100%; padding: .55rem .7rem;
  border: 0; background: transparent; color: rgba(255,255,255,.4);
  font: inherit; font-size: .875rem; font-weight: 600;
  border-radius: .55rem; cursor: pointer; text-decoration: none; text-align: left;
}
.hub-btn:hover, .hub-link:hover { color: rgba(255,255,255,.85); background: rgba(255,255,255,.05); }
.hub-link { color: rgba(255,255,255,.6); }
.hub-link.is-active {
  color: var(--gekko-green);
  background: var(--gekko-green-glow);
  font-weight: 700;
}
.hub-link.is-active .hub-dot {
  margin-left: auto; width: .4rem; height: .4rem; border-radius: 50%;
  background: var(--gekko-green); flex-shrink: 0;
}
.hub-ico { width: 1rem; height: 1rem; flex-shrink: 0; }
.hub-group-title {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.35); font-weight: 700;
}
.hub-group-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: 0; color: inherit; font: inherit; cursor: pointer;
  padding: .55rem .7rem .15rem;
}
.hub-group.is-folded .hub-link { display: none; }
.hub-chevron { width: .7rem; height: .7rem; opacity: .5; }
.hub-group.is-folded .hub-chevron { transform: rotate(-90deg); }

.hub-fab {
  display: none; position: fixed; left: 1rem; bottom: 1rem; z-index: 40;
  width: 3rem; height: 3rem; border-radius: 50%; border: 0;
  background: var(--gekko-green); color: #000; cursor: pointer;
}
@media (max-width: 799px) {
  body.has-hub-nav { padding-left: 0; }
  body.has-hub-nav::before { display: none; }
  .hub-fab { display: grid; place-items: center; }
  .hub-nav {
    display: none; position: fixed; left: 0; top: 0; bottom: 0;
    width: min(18rem, 85vw) !important;
  }
  .hub-nav.is-drawer { display: flex; }
  .hub-backdrop {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 29;
  }
  .hub-backdrop.is-on { display: block; }
}
