/**
 * WordPress → Next.js SPA: hide unstyled HTML until page CSS is ready.
 * Do not hide on wp-spa-navigating — the old route unmounts immediately, so that
 * would flash a blank screen during client navigation.
 */
.wp-page-booting[data-wp-page-root],
.wp-page-booting [data-wp-page-content] {
  opacity: 0;
  pointer-events: none;
}

.wp-page-ready[data-wp-page-root],
.wp-page-ready [data-wp-page-content] {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.15s ease-out;
  pointer-events: auto;
}

[data-wp-page-root] {
  min-height: 40vh;
}
