/* The contents (net_cyc/shared/_toc), as Vector 2022's: "(Top)" and the h2 sections, each section's h3 folded under it
   behind a chevron until the reader opens it (is-expanded) or the section is in view; the entry of the section at the
   top of the window (is-current, from the toc controller) in bold in the text colour, "(Top)" so above the first. */

.nc-toc { font-size: var(--nc-ui-size); }
.nc-toc__list, .nc-toc__sublist { margin: 0; padding: 0; list-style: none; }
.nc-toc__sublist { display: none; padding-left: 0.75rem; }
.nc-toc__item { position: relative; }
.nc-toc__item.is-expanded > .nc-toc__sublist, .nc-toc__item:has(.nc-toc__sublist .is-current) > .nc-toc__sublist { display: block; }
.nc-toc__link { display: block; padding: 0.375rem 0; line-height: 1.15; overflow-wrap: break-word; }
.nc-toc__link.is-current, .nc-toc__link.is-current:visited { color: var(--nc-text); font-weight: 700; }
.nc-toc__link:visited { color: var(--nc-link); }
.nc-toc__link--top, .nc-toc__link--top:visited { color: var(--nc-link); }
.nc-toc:not(:has(.nc-toc__link.is-current)) .nc-toc__link--top { color: var(--nc-text); font-weight: 700; }
.nc-toc__toggle { position: absolute; top: 0.25rem; left: -1.4375rem; display: flex; align-items: center; justify-content: center; width: 1.375rem; height: 1.375rem; padding: 0; border: 0; border-radius: 2px; background: none; color: var(--nc-button-text); cursor: pointer; }
.nc-toc__toggle:hover { background: var(--nc-hover); }
.nc-toc__toggle .nc-icon { width: 0.75rem; height: 0.75rem; transform: rotate(-90deg); transition: transform 0.1s; }
.nc-toc__item.is-expanded > .nc-toc__toggle .nc-icon, .nc-toc__item:has(.nc-toc__sublist .is-current) > .nc-toc__toggle .nc-icon { transform: none; }
.nc-dropdown__panel .nc-toc__list { padding-left: 1.375rem; }
