/* Left nav — pin is the small panel icon top-right of the rail. */
html, body { background: #1e1e24; }
body.has-hub-nav { min-height: 100vh; }
body.has-hub-nav > header.site { display: none; }

@media (min-width: 800px) {
  body.has-hub-nav { padding-left: 56px; }
  html.nav-pinned body.has-hub-nav { padding-left: 224px; }
}

.hub-nav {
  position: fixed; left: 0; top: 0;
  height: 100vh;
  width: 56px;
  background: #141418;
  border-right: 1px solid var(--rule, rgba(255,255,255,.08));
  display: none;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 30;
  overflow-x: hidden;
  overflow-y: auto;
  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; }
}
.hub-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .25rem;
  padding: .55rem .45rem .55rem .55rem;
  min-height: 2.75rem;
}
.hub-nav-brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.hub-nav-brand:hover { color: inherit; }
.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, #00ff41); font-weight: 700;
}
.hub-tools {
  display: flex;
  align-items: center;
  gap: .1rem;
  margin-left: auto;
  flex-shrink: 0;
}
.hub-pin,
.hub-icon-btn {
  appearance: none;
  -webkit-appearance: none;
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: .35rem;
  background: transparent;
  color: rgba(255,255,255,.55);
  cursor: pointer;
  padding: 0;
  margin: 0;
  text-decoration: none;
  flex-shrink: 0;
}
.hub-pin:hover,
.hub-icon-btn:hover {
  background: rgba(255,255,255,.06);
  color: #f5f5f7;
}
.hub-pin.is-on,
.hub-icon-btn.is-on { color: #00ff41; }
.hub-pin svg,
.hub-icon-btn svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
  stroke: currentColor;
  fill: none;
}
.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,
.hub-nav.is-closed .hub-tools { display: none; }
.hub-nav.is-closed .hub-nav-head { justify-content: center; padding: .7rem 0; }
.hub-group { padding: .35rem .4rem; }
.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, #00ff41);
  background: var(--gekko-green-glow, rgba(0,255,65,.15));
  font-weight: 700;
}
.hub-link.is-active .hub-dot {
  margin-left: auto; width: .4rem; height: .4rem; border-radius: 50%;
  background: var(--gekko-green, #00ff41); 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-session { padding: .4rem; margin-top: auto; }
.hub-who { padding: .35rem .7rem; font-size: .8rem; color: #00ff41; font-weight: 700; }

.hub-topbar { display: none; }
.hub-fab { display: none; }
.hub-backdrop { display: none; }

@media (max-width: 799px) {
  body.has-hub-nav { padding-left: 0; padding-top: 3.25rem; }
  body.has-hub-nav::before { display: none; }
  .hub-topbar {
    display: flex;
    position: fixed; top: 0; left: 0; right: 0;
    height: 3.25rem;
    z-index: 40;
    align-items: center;
    gap: .35rem;
    padding: 0 .45rem;
    background: #141418;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .hub-fab {
    display: grid; place-items: center;
    position: static;
    width: 2.7rem; height: 2.7rem;
    border-radius: .45rem; border: 0;
    background: transparent;
    color: #00ff41;
    cursor: pointer;
    flex-shrink: 0;
  }
  .hub-fab svg { width: 1.45rem; height: 1.45rem; }
  .hub-top-brand {
    color: #f5f5f7;
    text-decoration: none;
    font-weight: 800;
    font-size: .95rem;
  }
  .hub-nav {
    display: none; position: fixed; left: 0; top: 0; bottom: 0;
    width: min(18rem, 85vw) !important;
    z-index: 50;
  }
  .hub-nav.is-drawer { display: flex; }
  .hub-nav.is-drawer .hub-tools { display: none; }
  .hub-backdrop {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 45;
  }
  .hub-backdrop.is-on { display: block; }
}
