/*
 * Ornament modifiers: use only in low-density whitespace.
 * Keep one dominant ornament per section. Never cover controls, data, or faces.
 */
.wu-ornament-surface {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.wu-ornament-surface::before,
.wu-ornament-surface::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.wu-ornament-surface--ribbon-leaf::before {
  width: clamp(18rem, 36vw, 36rem);
  aspect-ratio: 4 / 3;
  top: -5rem;
  right: -6rem;
  background-image: url("../ornaments/ornament-ribbon-leaf-top-right.webp");
  background-position: top right;
  opacity: 0.52;
}

.wu-ornament-surface--arches::after {
  width: clamp(18rem, 38vw, 38rem);
  aspect-ratio: 4 / 3;
  right: -6rem;
  bottom: -5rem;
  background-image: url("../ornaments/ornament-arches-bottom-right.webp");
  background-position: bottom right;
  opacity: 0.52;
}

.wu-ornament-preview {
  min-height: 14rem;
  display: grid;
  align-content: end;
  padding: 1.5rem;
  border: 1px solid var(--wu-border-subtle);
  border-radius: var(--wu-radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(250, 245, 238, .82));
}

.wu-ornament-preview strong,
.wu-ornament-preview span {
  position: relative;
  z-index: 1;
}

.wu-ornament-preview span {
  color: var(--wu-neutral-500);
  font-size: var(--wu-text-sm);
}

@media (max-width: 767.98px) {

  .wu-ornament-surface::before,
  .wu-ornament-surface::after {
    opacity: 0.2;
    transform: scale(0.82);
  }
}

@media (prefers-reduced-motion: reduce) {

  .wu-ornament-surface::before,
  .wu-ornament-surface::after {
    animation: none !important;
  }
}