/* Legacy inline article templates: keep category destinations as direct links. */
@media (max-width: 768px) {
  #article-navigation:not(.open) {
    display: none;
  }

  #article-navigation.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    overflow: auto;
    background: var(--bg, #fff);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  }

  #article-navigation.open > .nav-links {
    display: flex;
    position: static;
    align-items: stretch;
    flex-direction: column;
    border: 0;
    box-shadow: none;
    padding: .5rem 1rem;
  }

  #article-navigation .mega-panel,
  #article-navigation > .nav-links > li > a .arrow {
    display: none;
  }
}
