/* ============================================================
   home-hero.css — OSEG "Home Hero Motif" backdrop layer.

   Companion to home-hero.js (window.OSEGHomeHero.mount).
   The motif is a purely decorative, low-opacity background layer
   injected as the FIRST child of the home hero container.

   Host contract (same as provider-hero):
   - the hero container is positioned (JS forces position:relative
     if it is static);
   - hero CONTENT siblings need `position:relative; z-index:1`
     so they paint above the motif.

   Colours are painted inline by JS from the theme tokens
   (--accent / --primary / --star via getComputedStyle), so this
   file only handles layering, containment and the dark trim.
   ============================================================ */

.oseg-hhero {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  border-radius: inherit;
  contain: layout paint style;
  color: var(--hhero-accent, var(--accent, #8A5FC9));
}

.oseg-hhero svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Dark theme (tokens.css: <html data-theme="dark">): pull the motif back a
   touch — low-alpha accent shapes read brighter on dark surfaces. */
[data-theme="dark"] .oseg-hhero svg {
  opacity: 0.9;
}
