/*
 * Cloak custom elements until their definitions load (the WA autoloader
 * registers them lazily) — prevents flash of unstyled content on first paint.
 * Turbo navigations are covered separately by preventTurboFouce (layout).
 */
:not(:defined) {
  visibility: hidden;
}

/*
 * wa-page owns the page grid (and injects this same reset via :has(wa-page)
 * itself); the explicit copy is the documented belt-and-braces for SSR and
 * :has()-less browsers.
 */
html,
body {
  min-height: 100%;
  padding: 0;
  margin: 0;
}

/*
 * wa-page pads its main region by default (targets slotted <main>/<section>
 * elements directly, not this part — kept for intent/forward-compatibility).
 * Every page brings its own <main> gutter (.account-layout, .auth-layout),
 * so the default would otherwise double it.
 */
wa-page::part(main-content) {
  padding: 0;
}
