/* Veva Support theme: sections. Ported from the design system's class contract (components/bundle.css).
   A Component Group takes vs-section and its modifiers from the class picker; vs-wrap and vs-dots live in base.css. */

/* The surfaces set background-color only: the background shorthand would wipe the dot grid's image (vs-dots, base.css). */
.vs-section { padding: var(--space-9) 0; background-color: var(--white); }
.vs-section--grey { background-color: var(--grey-50); }
.vs-section--stage { background-color: var(--grey-black); color: var(--white); }
.vs-section--slant-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%); padding-bottom: calc(var(--space-9) + var(--slant)); }
.vs-section--slant-top { clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%); padding-top: calc(var(--space-9) + var(--slant)); }
.vs-section--tight { padding: var(--space-7) 0; }
/* The mesh surface: the stage with soft glows of the brand's pink, purple, violet and blue. They sit on the right side
   and along the bottom edge and are gone before the top edge, so the section still meets a dark header without a seam.
   No glow is bright enough to take pink-300 text below 4.5:1. */
.vs-section--stage.vs-section--mesh {
  --vs-mesh:
    radial-gradient(ellipse 32% 17% at 100% 17%, color-mix(in srgb, var(--pink-base) 20%, transparent), transparent),
    radial-gradient(ellipse 54% 31% at 97% 31%, color-mix(in srgb, var(--indigo-400) 48%, transparent), transparent),
    radial-gradient(ellipse 46% 30% at 0% 100%, color-mix(in srgb, var(--pink-base) 26%, transparent), transparent),
    radial-gradient(ellipse 50% 24% at 30% 100%, color-mix(in srgb, var(--purple-base) 26%, transparent), transparent),
    radial-gradient(ellipse 40% 22% at 74% 100%, color-mix(in srgb, var(--indigo-400) 36%, transparent), transparent),
    radial-gradient(ellipse 42% 30% at 100% 95%, color-mix(in srgb, var(--secondary-blue) 13%, transparent), transparent);
  background-image: var(--vs-mesh);
}
/* With the dot grid, the dots lie over the glows. Each layer has its size in the shorthand: a background-size list would repeat. */
.vs-section--stage.vs-section--mesh.vs-dots { background: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px) 0 0 / 24px 24px, var(--vs-mesh), var(--grey-black); }
.vs-head { display: grid; gap: var(--space-3); max-width: 760px; margin-bottom: var(--space-7); }
.vs-head .vs-sub { margin-top: var(--space-1); }
.vs-head--center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.vs-head--split { max-width: none; grid-template-columns: 1fr auto; align-items: end; }
@media (max-width: 768px) {
  .vs-section { padding: var(--space-8) 0; }
  .vs-section--slant-bottom { padding-bottom: calc(var(--space-8) + var(--slant) / 2); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant) / 2), 0 100%); }
  .vs-section--slant-top { padding-top: calc(var(--space-8) + var(--slant) / 2); clip-path: polygon(0 calc(var(--slant) / 2), 100% 0, 100% 100%, 0 100%); }
  .vs-head--split { grid-template-columns: 1fr; align-items: start; }
}
