/* Static-export fixes: Odoo's animate-on-scroll JS is not running on the static
   site, so .o_animate stays visibility:hidden. Force everything visible. */
.o_animate,
.o_animate_preview,
[class*="o_anim_"] {
  visibility: visible !important;
  opacity: 1 !important;
  animation: none !important;
}

/* Header menu is hidden by Odoo with opacity:0 until JS removes the class.
   Odoo's rule is `.navbar #top_menu.o_menu_loading` — match/exceed its
   specificity so this override actually wins. */
html body .navbar #top_menu.o_menu_loading,
html body .o_menu_loading,
.navbar #top_menu.o_menu_loading,
.o_menu_loading {
  opacity: 1 !important;
  overflow: visible !important;
}

/* Bootstrap navbar-collapse: ensure visible on desktop (lg+) since JS isn't
   toggling it. Odoo's compiled CSS should handle this, but be explicit. */
@media (min-width: 992px) {
  #top_menu_collapse.collapse {
    display: flex !important;
  }

  /* Center the nav links on desktop and add breathing room between them. */
  #top_menu {
    justify-content: center !important;
  }
  #top_menu > .nav-item {
    margin-left: 0.85rem !important;
    margin-right: 0.85rem !important;
  }
}

/* Odoo disables every .post_link (blog pagination, post links) with
   pointer-events:none until its JS adds .o_post_link_js_loaded. That JS
   never runs on the static site, so the links are unclickable. Re-enable
   them — but keep genuinely disabled pagination items non-interactive. */
.post_link:not(.o_post_link_js_loaded),
a.post_link {
  pointer-events: auto !important;
}
.page-item.disabled .page-link {
  pointer-events: none !important;
}
