/* -------------------------------------------------------
   TOC — Table of Contents (variante B)
   ------------------------------------------------------- */

.lf-toc {
  background: var(--lf-bg);
  border: 0.5px solid var(--lf-border);
  border-left: 2px solid var(--lf-text);
  border-radius: 0 var(--lf-radius-md) var(--lf-radius-md) 0;
  padding: 16px 20px;
  max-width: 480px;
  margin: 24px 0;
  font-family: var(--lf-font-body);
}

.lf-toc__head {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--lf-text);
  margin: 0 0 12px;
}

.lf-toc__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.lf-toc__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--lf-text-muted);
  padding: 6px 0;
  border-bottom: 0.5px solid var(--lf-border);
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  background: none;
  text-align: left;
  font-family: var(--lf-font-body);
  line-height: 1.3;
  transition: color 0.15s ease;
}

.lf-toc__item::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--lf-text-light);
  flex-shrink: 0;
  transition: background 0.15s ease, width 0.15s ease, height 0.15s ease;
}

.lf-toc__item:hover {
  color: var(--lf-text);
}

.lf-toc__item:hover::before {
  background: var(--lf-text);
}

.lf-toc__item.is-active {
  font-weight: 500;
  color: var(--lf-text);
}

.lf-toc__item.is-active::before {
  width: 4px;
  height: 4px;
  background: var(--lf-text);
}


@media (max-width: 767px) {
  .lf-toc {
    max-width: 100%;
  }

  .lf-toc__grid {
    grid-template-columns: 1fr;
  }
}
