/* ── Sidebar (desktop) ──────────────────────────────────── */
.sidebar__identity {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}

.sidebar__name {
  font-size: 1.4rem;
  font-weight: var(--fw-light);
  letter-spacing: 0.02em;
  color: var(--fg);
  line-height: 1.2;
}

.sidebar__role {
  font-size: 0.75rem;
  font-weight: var(--fw-light);
  letter-spacing: 0.15em;
  color: var(--muted);
  line-height: 1.4;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.sidebar nav a {
  font-size: 0.7rem;
  font-weight: var(--fw-light);
  letter-spacing: 0.2em;
  color: var(--muted);
  transition: color 0.2s ease;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  color: var(--fg);
}

.sidebar nav .nav-sep {
  height: 1px;
  background: var(--rule);
  margin: calc(var(--space-sm) / 2) 0;
}

.theme-toggle {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}

.theme-toggle button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: var(--fw-light);
  letter-spacing: 0.2em;
  color: var(--muted);
  transition: color 0.2s ease;
  text-align: left;
}

.theme-toggle button:hover,
.theme-toggle button.active {
  color: var(--fg);
}

/* ── Mobile nav (top bar) ───────────────────────────────── */
.mobile-nav { display: none; }

@media (max-width: 768px) {
  .mobile-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--rule);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 200;
  }

  .mobile-nav__name {
    font-size: 0.88rem;
    font-weight: var(--fw-light);
    letter-spacing: 0.04em;
    color: var(--fg);
    white-space: nowrap;
  }

  .mobile-nav__group {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-nav__blog-link {
    font-size: 0.65rem;
    font-weight: var(--fw-light);
    letter-spacing: 0.18em;
    white-space: nowrap;
    color: var(--muted);
    transition: color 0.2s ease;
  }

  .mobile-nav a,
  .mobile-nav button {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--muted);
    transition: color 0.2s ease;
  }

  .mobile-nav a:hover,
  .mobile-nav a.active,
  .mobile-nav button:hover,
  .mobile-nav button.active {
    color: var(--fg);
  }

  .mobile-nav svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}
