/* Levels screen — surgical layout QA fix, 2026-08-11.
   Scope: number cells/timeline alignment and right sidebar cleanup only. */

/* The old continuous timeline ran visually through level numbers. The level
   rows already communicate sequence; remove the redundant line and keep each
   index optically contained inside its card. */
.levels-list::before {
  content: none !important;
  display: none !important;
}

.levels-list {
  gap: 8px;
}

.level-row {
  padding-left: 10px;
  overflow: hidden;
}

.level-index {
  width: 40px;
  height: 40px;
  margin-left: 0 !important;
  justify-self: start;
  position: relative;
  z-index: 3;
  background: #090e12;
  box-shadow: 0 0 0 6px #090e12;
}

.level-row.completed .level-index,
.level-row.current .level-index {
  box-shadow: 0 0 0 6px #090e12;
}

/* Avoid any vertical divider visually colliding with the index cell. */
.level-row::before {
  content: none !important;
}

/* Sidebar has two learner-facing cards after removing the packaging/debug card.
   Keep spacing deliberate and do not stretch empty space. */
.levels-layout > .side-stack {
  align-content: start;
}

.levels-layout > .side-stack > .card {
  min-width: 0;
}

/* Numerical material statistics: consistent cells and baseline alignment. */
.content-stats {
  grid-auto-rows: minmax(68px, auto);
}

.content-stats > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.content-stats strong {
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.content-stats span {
  line-height: 1.3;
}

@media (max-width: 1500px) and (min-width: 981px) {
  .level-row {
    grid-template-columns: 48px minmax(220px, 1fr) 122px 94px 30px;
    padding-left: 10px;
  }
  .level-index {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 980px) {
  .level-row {
    padding-left: 8px;
  }
  .level-index {
    box-shadow: 0 0 0 4px #090e12;
  }
  .level-row.completed .level-index,
  .level-row.current .level-index {
    box-shadow: 0 0 0 4px #090e12;
  }
}

@media (max-width: 680px) {
  .level-row {
    padding-left: 6px;
  }
  .level-index {
    width: 35px;
    height: 35px;
    justify-self: center;
  }
}

