/* Shared left nav for Molecular Biology Tools Hub (root + tool subfolders) */

:root {
  --hub-sidebar-w: 280px;
}

.hub-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

.hub-sidebar {
  flex: 0 0 var(--hub-sidebar-w);
  max-width: 100%;
  padding: 1.75rem 1.25rem;
  background: var(--bg-elevated, #141a24);
  border-right: 1px solid var(--border, rgba(94, 234, 212, 0.14));
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 10;
}

.hub-sidebar-heading {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dim, rgba(94, 234, 212, 0.55));
}

a.hub-sidebar-brand {
  display: block;
  margin: 0 0 1.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-decoration: none;
  background: linear-gradient(135deg, #f0fdfa 0%, var(--accent, #5eead4) 55%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

a.hub-sidebar-brand:hover {
  filter: brightness(1.08);
}

a.hub-sidebar-brand:focus-visible {
  outline: 2px solid rgba(94, 234, 212, 0.5);
  outline-offset: 4px;
  border-radius: 4px;
}

.hub-nav-tools {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hub-nav-tools a {
  display: block;
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text, #e8edf5);
  text-decoration: none;
  border: 1px solid var(--border, rgba(94, 234, 212, 0.14));
  border-radius: 10px;
  background: rgba(14, 19, 28, 0.6);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.hub-nav-tools a:hover {
  border-color: rgba(94, 234, 212, 0.45);
  background: rgba(94, 234, 212, 0.08);
  color: #f0fdfa;
}

.hub-nav-tools a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.2);
}

.hub-nav-tools a[aria-current="page"] {
  border-color: rgba(94, 234, 212, 0.55);
  background: rgba(94, 234, 212, 0.12);
  color: #f0fdfa;
}

.hub-nav-tools a .hub-nav-desc {
  display: block;
  margin-top: 0.25rem;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-muted, #8b98ab);
  line-height: 1.35;
}

.hub-app-main {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

/* Hub landing page (root index.html): main is both column and content */
main.hub-home.hub-app-main {
  margin: 0 auto;
  padding: 2.5rem 1.75rem 3rem;
  max-width: 720px;
  width: 100%;
}

@media (max-width: 720px) {
  .hub-layout {
    flex-direction: column;
  }

  .hub-sidebar {
    flex: none;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border, rgba(94, 234, 212, 0.14));
  }
}
