/* ============================================================
   provider-hero.css — OSEG "Provider Hero Motif" backdrop layer.

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

   Host contract:
   - 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 come from the mount opts via --phero-accent /
   --phero-accent-deep (set inline by JS), falling back to the
   theme tokens (tokens.css) and finally to hard values.
   ============================================================ */

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

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

/* Large faint background initial (decorative monogram) */
.oseg-phero .oseg-phero-mono {
  font-family: ui-rounded, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.05em;
}

/* 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-phero svg {
  opacity: 0.92;
}
[data-theme="dark"] .oseg-phero .oseg-phero-mono {
  fill-opacity: 0.055;
}
