/* One botanical family: the approved gold/sage paper from Types of Care.
   Applied to outer surfaces only; header, homepage and content photos stay intact. */
body.mela-interior,
body.mela-auth {
  --mela-botanical-paper: url("/assets/mela-botanical-paper-0c8ebfa4.webp");
}

body.mela-interior #main-content {
  background-image: linear-gradient(#f7f3eba6, #f7f3eba6),
    var(--mela-botanical-paper), var(--mela-botanical-paper);
  background-position: center, right top, left bottom;
  background-size: auto, max(100%, 1200px) auto, max(100%, 1200px) auto;
  background-repeat: no-repeat;
}

/* Reuse the exact hero artwork from Types of Care, with foliage at the edges. */
body.mela-interior #main-content :is(.mela-page-hero, .mela-editorial-hero,
  .mela-property-hero, .mela-viewing-hero, .approach-hero) {
  background-image: var(--mela-botanical-paper);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Raised paper remains quiet behind copy; the corners carry the detail. */
body.mela-interior #main-content :is(.approach-panel, .mela-more-contact,
  .mela-residential-homes, .mela-care-help, .mela-property-address-card,
  .mela-stories-visit, .mela-news-promise, .mela-careers-vacancies,
  .mela-article-related, .mela-role-apply, .mela-directory-choosing-inner,
  .mela-editorial-closing--visiting, .mela-viewing-welcome) {
  background-image: linear-gradient(90deg, #fffdf8eb 15%, #fffdf8c4 65%, #fffdf838),
    var(--mela-botanical-paper);
  background-position: center, right center;
  background-size: auto, max(100%, 1000px) auto;
  background-repeat: no-repeat;
}

body.mela-interior #main-content :is(.approach-ground, .approach-life,
  .mela-stories-share, .mela-property-care, .mela-property-finding,
  .mela-fees-routes, .mela-visit-benefits,
  .mela-editorial-closing--sage:not(.mela-editorial-closing--visiting)) {
  background-image: linear-gradient(#e9ecdfb8, #e9ecdfb8), var(--mela-botanical-paper);
  background-position: center, right center;
  background-size: auto, max(100%, 1200px) auto;
  background-repeat: no-repeat;
}

/* The same foliage on green, blended into the surface rather than a pale tile. */
body.mela-interior #main-content :is(.mela-callback-banner, .approach-visit,
  .mela-editorial-closing--forest, .mela-homes-closing, .mela-care-visit),
body.mela-team-index #main-content > section.bg-forest {
  background-color: #153f30;
  background-image: linear-gradient(90deg, #153f30f5, #153f30f0 58%, #153f3020),
    var(--mela-botanical-paper);
  background-blend-mode: normal, soft-light;
  background-position: center, right center;
  background-size: auto, max(100%, 1000px) auto;
  background-repeat: no-repeat;
}

body.mela-auth {
  background-image: var(--mela-botanical-paper);
  background-position: center;
  background-size: cover;
}
body.mela-auth::before { display: none; }

@media (max-width: 767px) {
  /* Preserve the drawing's proportions and a calm reading area on narrow screens. */
  body.mela-interior #main-content :is(.mela-page-hero, .mela-editorial-hero,
    .mela-property-hero, .mela-viewing-hero, .approach-hero) {
    background-image: linear-gradient(90deg, #f7f3ebee, #f7f3ebd9 65%, #f7f3eb55),
      var(--mela-botanical-paper);
    background-size: auto, 750px auto;
    background-position: center, right center;
  }
  body.mela-auth {
    background-size: auto, 750px auto;
    background-image: linear-gradient(#f7f3eb66, #f7f3eb66), var(--mela-botanical-paper);
    background-position: center, right center;
    background-repeat: no-repeat;
  }
}
