/* --------------------------------------------------------------------------
 * Homepage hero banner (interactive particle network)
 * Pairs with overrides/partials/hero-banner.html and javascripts/hero-particles.js.
 * Revert: DEMO-HERO-BANNER.md | Re-apply: HERO-BANNER-IMPLEMENTATION.md
 * -------------------------------------------------------------------------- */

/* The canvas must stay absolutely positioned: hero-particles.js sizes it to
   the banner's height, so an in-flow canvas grows the banner without bound. */

.veda-hero-banner {
  position: relative;
  width: 100%;
  min-height: 168px;
  margin: 0 0 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    #2A3E68 0%,
    #FC8462 55%,
    #F8B26A 100%
  );
}

.veda-hero-banner__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: auto;
  z-index: 0;
}

.md-typeset h1.veda-hero-banner__title {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 2.5rem 2rem;
  color: #ffffff;
  opacity: 1;
  font-size: 2em;
  font-weight: 800;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 0 24px rgba(255, 255, 255, 0.12);
  border: none;
  pointer-events: none;
}

.md-content__inner.md-typeset:has(.veda-hero-banner) > h1:first-child {
  display: none;
}

[data-md-color-scheme="slate"] .veda-hero-banner {
  background: linear-gradient(
    90deg,
    #2A3E68 0%,
    #FC8462 55%,
    #F8B26A 100%
  );
}

@media screen and (max-width: 76.1875em) {
  .veda-hero-banner {
    min-height: 148px;
  }

  .md-typeset h1.veda-hero-banner__title {
    padding: 2rem 1.5rem;
    font-size: 1.75em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .veda-hero-banner__canvas {
    opacity: 0.9;
  }
}
