/* =========================================
VLSLAB INDEX
========================================= */

.workspace-index {
  position: absolute;

  right: 22px;
  top: 50%;

  transform: translateY(-50%);

  width: 120px;
}

.index-label {
  margin-bottom: 12px;

  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;

  opacity: 0.55;
}

.index-items {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.index-item {
  appearance: none;

  border: 0;
  background: transparent;

  padding: 5px 0;

  display: grid;
  grid-template-columns: 24px 1fr;

  text-align: left;

  cursor: pointer;

  color: var(--color-text);

  font-size: var(--text-md);
  letter-spacing: var(--tracking-sm);

  opacity: 0.45;

  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.index-item:hover {
  opacity: 1;

  transform: translateX(-3px);
}

.index-item.active {
  opacity: 1;
}

.index-item.active span:first-child::after {
  content: " ■";
  position: relative;
  top: -2px;
  font-size: 7px;
}

/* =========================================
INDEX RESPONSIVE
========================================= */

@media (max-width: 700px) {
  .workspace-index {
    left: 16px;
    right: 16px;
    top: auto;
    bottom: 14px;

    transform: none;

    width: auto;

    display: flex;
    align-items: center;
    gap: 14px;

    border-top: var(--border-width) solid var(--color-border);

    padding-top: 10px;
  }

  .index-label {
    margin: 0;
  }

  .index-items {
    flex-direction: row;
    gap: 12px;
  }

  .index-item {
    display: block;

    min-width: 20px;

    padding: px 0;
  }

  .index-name {
    display: none;
  }
}

@media (min-width: 701px) and (max-width: 1024px) {
  .workspace-index {
    left: 24px;
    right: 24px;
    top: auto;
    bottom: 20px;

    transform: none;
    width: auto;
  }
}
