/*
 * Startup Stash table of contents — the one design for the whole site.
 * Change the look here only. Behaviour lives in js/ss-article.js.
 */
.ss-toc {
  --ss-toc-ink: #111;
  --ss-toc-navy: #0F3766;
  --ss-toc-accent: #FF6644;
  --ss-toc-track: #E6EBEF;
  display: block;
  position: static;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 0 22px;
  padding: 16px 16px 14px;
  background: #fff;
  border: 1.5px solid var(--ss-toc-navy);
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--ss-toc-navy);
  font-family: Poppins, sans-serif;
  z-index: 30;
  transition: opacity .25s ease, visibility .25s ease;
}
.ss-toc strong,
.ss-toc .ss-toc-title {
  display: block;
  margin: 0 0 10px;
  font: 700 14px/1.25 Poppins, sans-serif;
  letter-spacing: -.01em;
  text-transform: none;
  color: var(--ss-toc-ink);
}
.ss-toc-progress {
  height: 3px;
  margin: 0 0 12px;
  overflow: hidden;
  background: var(--ss-toc-track);
  border-radius: 2px;
}
.ss-toc-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ss-toc-accent);
  border-radius: 2px;
  transition: width .12s linear;
}
.ss-toc ol,
.ss-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 1;
}
.ss-toc li {
  position: relative;
  margin: 0 0 8px;
  padding: 0 0 0 12px;
  font: 400 13px/1.4 Poppins, sans-serif;
}
.ss-toc li:last-child { margin-bottom: 0; }
.ss-toc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
}
.ss-toc li.is-active { font-weight: 600; }
.ss-toc li.is-active::before { background: var(--ss-toc-accent); }
.ss-toc a { color: var(--ss-toc-ink); text-decoration: none; }
.ss-toc a:hover { color: var(--ss-toc-accent); }

/* Side rail (the script adds .is-rail when there is room and sets top and max-height). */
.ss-toc.is-rail {
  position: fixed;
  top: 240px;
  right: 20px;
  width: 220px;
  margin: 0;
  overflow: auto;
}
.ss-toc.is-rail.is-past {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
/* The conference/list template keeps the TOC in an Elementor widget: collapse it while the rail is fixed. */
.elementor-element-c7e5f104:has(.ss-toc.is-rail),
.elementor-element-c7e5f104:has(.ss-toc.is-rail) > .elementor-widget-container {
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

@media (max-width: 767px) {
  .ss-toc { display: none !important; }
}
