/* -------------------------
   Post Table of Contents (Sidebar)
-------------------------- */


.post-toc {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 8px 28px rgba(30,30,30,0.04);
  position: sticky;
  top: 90px; /* stays visible under header */
  margin-top: 215px;
  margin-left: 20px;
}

#toc-header {
  font-family: "DM Serif Text", serif;
  font-size: 1.05rem;
  margin: 0 0 8px 0;
  color: #1e1e1e;
}

.post-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-toc li {
  margin: 6px 0;
}

.post-toc a {
  display: block;
  text-decoration: none;
  color: rgba(30,30,30,0.8);
  font-size: 14px;
  padding: 6px 6px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.post-toc a:hover {
  background: rgba(107,76,230,0.07);
  color: #4f39c4;
  padding-left: 10px;
}

/* Active section highlight (if your controller adds .active) */
.post-toc a.active {
  background: rgba(107,76,230,0.09);
  color: #4f39c4;
  font-weight: 600;
}


@media (max-width: 899px) {
  .post-toc {
    display: none;
  }
}
