.post-toc {
  width: 100%;
  font-family: var(--font-body);
}

.post-toc__card {
  padding: 22px 20px;
  border: 1px solid rgba(30, 90, 220, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(12, 36, 97, 0.06);
  backdrop-filter: blur(10px);
}

.post-toc__eyebrow {
  margin: 0 0 16px;
  color: var(--color-faragalla-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.post-toc__list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-toc__link {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 10px 10px 10px 8px;
  border-radius: 12px;
  color: var(--color-faragalla-navy-deep);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.post-toc__link:hover,
.post-toc__link:focus-visible {
  background: rgba(30, 90, 220, 0.06);
  color: var(--color-faragalla-blue);
  outline: none;
}

.post-toc__marker {
  display: block;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 999px;
  background: rgba(30, 90, 220, 0.18);
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.post-toc__link.is-active {
  background: rgba(30, 90, 220, 0.08);
  color: var(--color-faragalla-navy);
}

.post-toc__link.is-active .post-toc__marker {
  background: var(--color-faragalla-gold);
  box-shadow: 0 0 0 4px rgba(255, 217, 122, 0.22);
  transform: scale(1.15);
}

.post-toc__label {
  display: block;
}

.post-toc__link--level-3 {
  padding-left: 18px;
  font-size: 14px;
}

.post-toc__link--level-4 {
  padding-left: 28px;
  font-size: 13px;
  font-weight: 500;
}

@media (min-width: 1100px) {
  .post-toc {
    position: sticky;
    top: calc(var(--header-bar-height, 88px) + 28px);
    align-self: start;
  }
}

@media (max-width: 1099px) {
  .post-toc {
    margin-bottom: 8px;
  }

  .post-toc__card {
    padding: 18px 16px;
  }

  .post-toc__list {
    gap: 8px;
  }

  .post-toc__link {
    border: 1px solid rgba(30, 90, 220, 0.1);
    background: var(--color-white);
  }
}
