/* HNV VACPA v3.9 - article-only sticky TOC, scrollspy, no gray panels. */
body.hnv-vacpa-single .vcp-article-page .vcp-single-reading-layout {
  display:block; width:100%; min-width:0; --vcp-reader-sticky-top:210px;
  --vcp-reader-anchor-top:225px;
}
body.hnv-vacpa-single .vcp-article-page .vcp-single-reading-layout.has-toc {
  display:grid!important; grid-template-columns:minmax(0,282px) minmax(0,1fr)!important;
  gap:40px!important; align-items:start!important;
}
body.hnv-vacpa-single .vcp-article-page .vcp-single-reading-column {
  min-width:0!important; max-width:100%!important; width:100%!important;
}
body.hnv-vacpa-single .vcp-article-page .vcp-single-toc[hidden] {display:none!important;}
body.hnv-vacpa-single .vcp-article-page .vcp-single-toc {
  position:relative!important; display:block!important; min-width:0!important;
  width:100%!important; padding:0!important; margin:0!important;
  background:#fff!important; box-shadow:none!important; border:0!important;
  font-family:'Open Sans',Arial,sans-serif!important;
}
body.hnv-vacpa-single .vcp-article-page .vcp-single-toc-sticky {
  position:sticky!important; top:var(--vcp-reader-sticky-top,210px)!important;
  width:100%!important; max-height:calc(100dvh - var(--vcp-reader-sticky-top,210px) - 16px)!important;
  display:flex!important; flex-direction:column!important;
  background:#fff!important; box-shadow:none!important;
}
body.hnv-vacpa-single .vcp-article-page .vcp-single-toc-scroll {
  display:block!important; min-height:0!important; overflow-x:hidden!important;
  overflow-y:auto!important; scrollbar-width:thin; scrollbar-color:#d5deeb transparent;
  overscroll-behavior:contain;
}
body.hnv-vacpa-single .vcp-article-page .vcp-single-toc-scroll::-webkit-scrollbar{width:4px;}
body.hnv-vacpa-single .vcp-article-page .vcp-single-toc-scroll::-webkit-scrollbar-thumb{background:#d5deeb;border-radius:6px;}
body.hnv-vacpa-single .vcp-article-page .vcp-single-toc-label {
  font:600 12px/18px 'Open Sans',Arial,sans-serif!important; letter-spacing:.07em!important;
  text-transform:uppercase!important; color:#7e868f!important; margin:0 0 14px 14px!important;
}
body.hnv-vacpa-single .vcp-article-page .vcp-single-toc-links {
  position:relative!important; min-width:0!important;
  padding:0!important; margin:0!important;
  background:#fff!important;
  border-left:1px solid #e4e8ee!important;
}
body.hnv-vacpa-single .vcp-article-page .vcp-single-toc-list {
  display:block!important; list-style:none!important; list-style-type:none!important;
  margin:0!important; padding:0!important;
}
body.hnv-vacpa-single .vcp-article-page .vcp-single-toc-list li {
  display:block!important; margin:0!important; padding:0!important;
  width:100%!important; list-style:none!important;
}
body.hnv-vacpa-single .vcp-article-page .vcp-single-toc-list a {
  display:block!important; width:100%!important; padding:11px 14px 11px 18px!important;
  color:#384150!important; text-decoration:none!important;
  font:400 14px/1.55 'Open Sans',Arial,sans-serif!important;
  overflow-wrap:break-word!important; white-space:normal!important;
  border:0!important; background:transparent!important;
  transition:color .18s ease,font-weight .18s ease!important;
}
body.hnv-vacpa-single .vcp-article-page .vcp-single-toc-list a:hover,
body.hnv-vacpa-single .vcp-article-page .vcp-single-toc-list a:focus-visible {
  color:#1e49e2!important; outline-offset:-2px;
}
body.hnv-vacpa-single .vcp-article-page .vcp-single-toc-list a.is-active {
  color:#1e49e2!important; font-weight:600!important;
}
body.hnv-vacpa-single .vcp-article-page .vcp-single-toc-indicator {
  display:block!important; position:absolute!important; z-index:2!important;
  top:0!important; left:-2px!important; width:3px!important; height:44px;
  border-radius:0 2px 2px 0; background:#1e49e2!important;
  transform:translate3d(0,0,0); transition:transform .25s ease,height .25s ease!important;
  pointer-events:none!important;
}
body.hnv-vacpa-single .vcp-article-page .vcp-single-toc-toggle {display:none!important;}
body.hnv-vacpa-single .vcp-article-page .vcp-single-entry-content h2 {
  scroll-margin-top:var(--vcp-reader-anchor-top,225px)!important;
}
/* Keep a single TOC, without changing the LuckyWP plugin on other pages. */
body.hnv-vacpa-single .vcp-article-page .has-toc .vcp-single-entry-content .lwptoc,
body.hnv-vacpa-single .vcp-article-page .has-toc .vcp-single-entry-content .ftwp-in-post,
body.hnv-vacpa-single .vcp-article-page .has-toc .vcp-single-entry-content .toc_container {
  display:none!important;
}
/* Shorter width needs full-size content. Mobile/tablet gets an inline disclosure TOC. */
@media (min-width:1024px) and (max-width:1199px) {
  body.hnv-vacpa-single .vcp-article-page .vcp-single-reading-layout.has-toc {
    grid-template-columns:minmax(0,242px) minmax(0,1fr)!important; gap:28px!important;
  }
}
@media (max-width:1023px) {
  body.hnv-vacpa-single .vcp-article-page .vcp-single-reading-layout.has-toc {
    display:flex!important; flex-direction:column!important; gap:18px!important;
  }
  body.hnv-vacpa-single .vcp-article-page .vcp-single-toc {
    width:100%!important; max-width:100%!important; border:1px solid #e4e8ee!important;
    border-radius:6px!important; background:#fff!important;
  }
  body.hnv-vacpa-single .vcp-article-page .vcp-single-toc-sticky {
    position:static!important; max-height:none!important; display:block!important;
  }
  body.hnv-vacpa-single .vcp-article-page .vcp-single-toc-toggle {
    display:flex!important; width:100%!important; align-items:center!important;
    justify-content:space-between!important; min-height:50px!important;
    margin:0!important; padding:12px 16px!important; border:0!important;
    border-radius:6px!important; background:#fff!important; color:#1d1e85!important;
    box-shadow:none!important; font:600 15px/24px 'Open Sans',Arial,sans-serif!important;
    cursor:pointer!important;
  }
  body.hnv-vacpa-single .vcp-article-page .vcp-single-toc-toggle svg {
    flex-shrink:0!important; transition:transform .2s ease;
  }
  body.hnv-vacpa-single .vcp-article-page .vcp-single-toc.is-open .vcp-single-toc-toggle svg {
    transform:rotate(180deg);
  }
  body.hnv-vacpa-single .vcp-article-page .vcp-single-toc-scroll {
    display:none!important; max-height:55vh!important; overflow:auto!important;
    padding:0 14px 14px!important;
  }
  body.hnv-vacpa-single .vcp-article-page .vcp-single-toc.is-open .vcp-single-toc-scroll {
    display:block!important;
  }
  body.hnv-vacpa-single .vcp-article-page .vcp-single-toc-label {display:none!important;}
  body.hnv-vacpa-single .vcp-article-page .vcp-single-toc-list a {
    font-size:14px!important; line-height:1.5!important; padding:9px 12px 9px 16px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  body.hnv-vacpa-single .vcp-article-page .vcp-single-toc-indicator,
  body.hnv-vacpa-single .vcp-article-page .vcp-single-toc-toggle svg {
    transition:none!important;
  }
}
/* Stretch the aside to the full article height so its sticky descendant can travel. */
@media(min-width:1024px) {
  body.hnv-vacpa-single .vcp-article-page .vcp-single-reading-layout.has-toc > .vcp-single-toc {
    align-self:stretch!important;
  }
}
