/* Veilwatch / Standalone Page Isolation
   Every navigation chapter is a separate screen. The mobile Threshold
   flex layout must never override the HTML hidden attribute.
   File is intentionally last in the stylesheet cascade. */
#primeScroll > .panel[hidden],
#primeScroll > #threshold.panel.hero[hidden],
#primeScroll > .content-panel[hidden] {
  display: none !important;
  visibility: hidden !important;
}

/* Inactive panels do not reserve scroll height or capture interaction.
   Only the active page can expand and scroll inside the Prime viewport. */
#primeScroll > .panel:not([hidden]) {
  visibility: visible;
  pointer-events: auto;
}

/* Avoid forced whole-page transitions that momentarily overlap chapters. */
#primeScroll > .panel[hidden] .vw-calligraphy,
#primeScroll > .panel[hidden] .vw-panel-foil {
  display: none !important;
}
