.toc {
  background: var(--color-card-bg);
  border-radius: var(--radius-card);
  padding: 1rem 1.25rem;
  margin-block: var(--space-block-gap) 1.5rem;
  position: relative;
  z-index: var(--z-toc);
}

.toc__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: var(--color-heading-gold);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body);
}

.toc__toggle-icon {
  transition: transform var(--transition-base);
}
.toc__toggle[aria-expanded='true'] .toc__toggle-icon {
  transform: rotate(180deg);
}

/* Collapsed/expanded state is driven purely by data-open, at every
   breakpoint — no width-based override fights the JS state here, which is
   what previously made the toggle look functional on desktop without
   actually doing anything. toc.js sets a sensible initial state (expanded
   on desktop, collapsed on mobile) but the button genuinely toggles it
   either way. */
.toc__nav {
  display: none;
  margin-top: 0.75rem;
}
.toc__nav[data-open='true'] { display: block; }

.toc__list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.toc__list a {
  color: var(--color-text-body);
  font-size: var(--fs-small);
}
.toc__list a:hover { color: var(--color-heading-gold); }
