/* Layering rules for the flow-field background. Include once per page, before page styles. */
html { background: #030303; }           /* the page colour lives on <html> */
body { background: transparent; }       /* body must NOT paint over the canvas (it sits at z-index -1) */
#canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; }

/* Wrap page content in .bg-content (or give your own wrapper these two lines) so it always sits above. */
.bg-content { position: relative; z-index: 2; }
/* Optional: let the mouse reach the particles through the content; re-enable on interactive children. */
.bg-content--passthrough { pointer-events: none; }
.bg-content--passthrough :is(a, button, input, select, textarea, label, summary, [role="button"], [tabindex]) { pointer-events: auto; }

/* Readable text over the particles: dim the BACKING of the text, never the canvas. */
.bg-panel {
  background: rgba(3, 3, 3, 0.72); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}

[hidden] { display: none !important; }

@media print { #canvas { display: none !important; } html { background: #fff; } }
