.fba-toc{--fba-toc-c:var(--fba-toc-accent,var(--fba-color-accent))}
.fba-toc--card{padding:var(--fba-space-5);background:var(--fba-toc-bg,var(--fba-color-surface));border-radius:var(--fba-toc-radius,12px);box-shadow:var(--fba-shadow-sm)}
.fba-toc--bordered{padding-inline-start:var(--fba-space-4);border-inline-start:2px solid var(--fba-color-border)}
.fba-toc__head{display:flex;align-items:center;justify-content:space-between;gap:var(--fba-space-3)}
.fba-toc__title{margin:0;font-weight:700;color:var(--fba-color-heading)}
.fba-toc__toggle{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:0;background:none;color:var(--fba-color-muted);cursor:pointer;--fba-icon-size:18px}
.fba-toc__toggle .fba-icon{transition:transform var(--fba-motion-base) var(--fba-ease)}
.fba-toc__toggle[aria-expanded="false"] .fba-icon{transform:rotate(-90deg)}
.fba-toc__list{display:flex;flex-direction:column;gap:2px;margin:var(--fba-space-3) 0 0;padding:0;list-style:none;counter-reset:fba-toc}
.fba-toc__list[hidden]{display:none}
.fba-toc__item--h3{padding-inline-start:var(--fba-space-4)}
.fba-toc__item--h4{padding-inline-start:var(--fba-space-6)}
.fba-toc__link{display:block;padding:6px 8px;border-radius:var(--fba-radius-sm);color:var(--fba-toc-link,var(--fba-color-muted));text-decoration:none;font-size:.9375rem;line-height:1.45;border-inline-start:2px solid transparent}
.fba-toc__link:hover{color:var(--fba-color-heading);background:var(--fba-color-accent-soft)}
.fba-toc__link.is-current{color:var(--fba-toc-c);border-inline-start-color:var(--fba-toc-c);font-weight:600}
.fba-toc.is-numbered .fba-toc__list{counter-reset:fba-toc}
.fba-toc.is-numbered .fba-toc__link::before{counter-increment:fba-toc;content:counter(fba-toc) ". ";color:var(--fba-color-muted)}
.fba-toc__empty{margin:var(--fba-space-3) 0 0;color:var(--fba-color-muted);font-size:.9375rem}
@media (min-width:1100px){.fba-toc.is-sticky{position:sticky;top:var(--fba-toc-top,24px);max-height:calc(100vh - 48px);overflow-y:auto}}
