/* ===================================================
   NAV ACTIVE FIX — emovere.agency v8
   The .active class is hardcoded in each page's HTML.
   This file only ensures the ::after underline stays
   flush (no translateY gap) when the link is active.
   Also fixes sticky TOC by moving overflow-x control
   from html to body (html overflow-x:hidden breaks
   position:sticky in all browsers).
   =================================================== */

/* Active link: keep underline flush, no vertical shift */
header nav[aria-label] a.active {
  color: var(--text-primary) !important;
  transform: none !important;
}

header nav[aria-label] a.active::after {
  transform: scaleX(1) !important;
}

/* When hovering the active link, also no vertical shift */
header nav[aria-label] a.active:hover {
  transform: none !important;
}

/* Fix sticky TOC: html overflow-x:hidden converts html into
   the scroll container, breaking position:sticky on descendants.
   Move overflow-x control to body instead. */
html {
  overflow-x: visible !important;
}
body {
  overflow-x: hidden;
}
