/* ==========================================================================
   Decorative backdrop for content pages (body.page-decor — /project, /contact):
   a line-drawn floral cluster behind the page header, plus warm glows and a faint
   Thai pattern behind the content. Purely visual; it all sits underneath the page
   content and fades out before the footer.
   ========================================================================== */

.page-decor .app-main {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 55% 38% at 100% 16%, rgba(246, 200, 121, 0.22), rgba(246, 200, 121, 0) 70%),
    radial-gradient(ellipse 45% 32% at 0% 72%, rgba(246, 200, 121, 0.14), rgba(246, 200, 121, 0) 70%),
    var(--background);
}

/* Faint Thai pattern, fading out at the top (under the header) and bottom (above the footer). */
.page-decor .app-main::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("/element/pattern-tile.png") center top / 380px repeat;
  opacity: 0.06;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 72%, transparent 100%);
  pointer-events: none;
}

/* Orchid cluster from the right-hand side of bg/queen-flower-bg.webp (desaturated Cattleya,
   leaves, a bee) behind the page title area, fading out toward the title on the left. */
.page-decor .news-hero {
  position: relative;
  isolation: isolate;
}

.page-decor .news-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -70px;
  right: 0;
  bottom: -30px;
  width: min(50vw, 760px);
  background: url("/bg/queen-flower-bg.webp") right center / auto 100% no-repeat;
  opacity: 0.44;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 100% 95% at 100% 45%, #000 35%, transparent 78%);
  mask-image: radial-gradient(ellipse 100% 95% at 100% 45%, #000 35%, transparent 78%);
  pointer-events: none;
}

/* Phones: the title runs full width, so the flowers shrink and fade back further. */
@media (max-width: 640px) {
  .page-decor .news-hero::before {
    top: -40px;
    width: 72vw;
    opacity: 0.26;
  }

  .page-decor .app-main::before {
    background-size: 260px;
  }
}
