/* Reference styles hide native backdrops; Food dialogs explicitly opt in. */
dialog[data-food-mask]::backdrop { display:block!important; pointer-events:auto; }
.page-loading.page-loading {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  /* Captured page typography caps paragraph widths, including this overlay. */
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  z-index: 10000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-sizing: border-box;
  margin: 0;
  padding: 24px;
  background: var(--m3-surface, #fff);
  color: var(--m3-on-surface-variant, #515862);
  font: 400 16px/1.5 system-ui, sans-serif;
}
.page-loading::before {
  content: "";
  width: 24px;
  height: 24px;
  box-sizing: border-box;
  flex: 0 0 auto;
  border: 3px solid #e3e6e9;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: page-loading-spin .8s linear infinite;
}
body:has(.page-loading) .site-footer { display: none !important; }
@keyframes page-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .page-loading::before { animation: none; } }
