/* aieo/toc — the table of contents. Inherits the theme's text and link colours; only layout and the small details are set here. */
.aieo-toc{box-sizing:border-box;margin:0 0 1.5em;padding:1em 1.25em;border:1px solid rgba(0,0,0,.12);border-radius:6px;background:rgba(0,0,0,.025);font-size:.95em;line-height:1.5}
.aieo-toc__title{margin:0 0 .5em;font-weight:600;font-size:1em;display:flex;align-items:center;justify-content:space-between;gap:.5em}
.aieo-toc__list,.aieo-toc__list ol{margin:0;padding:0;list-style:none}
.aieo-toc__list ol{margin:.25em 0 .25em 1.1em}
.aieo-toc__item{margin:.3em 0}
.aieo-toc__item a{text-decoration:none;border-bottom:1px solid transparent}
.aieo-toc__item a:hover,.aieo-toc__item a:focus{border-bottom-color:currentColor}
.aieo-toc__item.is-active>a{font-weight:600}
.aieo-toc.is-numbered .aieo-toc__list{counter-reset:aieo-toc}
.aieo-toc.is-numbered .aieo-toc__list>.aieo-toc__item{counter-increment:aieo-toc}
.aieo-toc.is-numbered .aieo-toc__list>.aieo-toc__item>a::before{content:counter(aieo-toc) ". ";opacity:.7}
.aieo-toc.is-sticky{position:sticky;top:var(--aieo-toc-top,90px)}
/* In a sidebar the wrapper is the sticky box: a flex row stretches the theme's column, so the nav alone cannot stick. */
.aieo-toc-block:has(> .aieo-toc.is-sticky){align-self:flex-start;position:sticky;top:var(--aieo-toc-top,90px)}
.aieo-toc__toggle{appearance:none;background:none;border:0;padding:0;cursor:pointer;font:inherit;color:inherit;opacity:.75}
.aieo-toc.is-collapsed .aieo-toc__list{display:none}
@media (max-width:767px){.aieo-toc.is-sticky,.aieo-toc-block:has(> .aieo-toc.is-sticky){position:static}}
@media print{.aieo-toc{display:none}}
