/* Sidebar - Figma "Sidebar" (248px, #0b1524, 24px padding, 14px gap). */

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100vh;
  height: 100dvh;
  padding: var(--sp-6);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-sidebar);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 50;
}

.sidebar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: inherit;
  border-radius: var(--r-md);
}

.brand-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text__name {
  font-size: var(--fs-17);
  font-weight: 700;
  color: var(--text-title);
}

.brand-text__tag {
  font-size: var(--fs-10);
  font-weight: 500;
  color: var(--accent-brand-sub);
}

.sidebar__label {
  font-size: var(--fs-10);
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  font-size: var(--fs-13);
  font-weight: 500;
  color: var(--text-nav);
  white-space: nowrap;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}

.nav-item__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: var(--r-sm);
  background: var(--nav-icon-bg);
  color: var(--text-nav);
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}

.nav-item__icon svg {
  width: 12px;
  height: 12px;
}

.nav-item:hover {
  background: var(--nav-hover-bg);
  color: var(--text-title);
}

.nav-item:hover .nav-item__icon {
  transform: scale(1.06);
}

.nav-item[aria-current="page"] {
  background: var(--nav-active-bg);
  color: var(--text-title);
  font-weight: 600;
}

.nav-item[aria-current="page"] .nav-item__icon {
  background: var(--accent);
  color: var(--on-accent);
}

.nav-item:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.sidebar__spacer {
  flex: 1 1 auto;
  min-height: var(--sp-4);
}

.learner-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px;
  border-radius: var(--r-lg);
  background: var(--surface-learner);
  border: 1px solid var(--border-learner);
}

.learner-card__eyebrow {
  font-size: var(--fs-10);
  font-weight: 600;
  color: var(--cyan);
}

.learner-card__title {
  font-size: var(--fs-13);
  font-weight: 600;
  color: var(--text-title);
}

.learner-card__text {
  font-size: var(--fs-11);
  color: var(--text-muted);
}

.sidebar__mobile-actions {
  display: none;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.sidebar .sidebar__close {
  display: none;
}
