/* Small, in-flow ornaments for interior sections and the thank-you page.
   Each ornament reserves its own space. No hero or RSVP selectors are changed. */
.section-flourish {
  --flourish-gold: #b89b59;
  display: block;
  position: relative;
  flex: none;
  inline-size: 164px;
  max-inline-size: 100%;
  block-size: 48px;
  margin: 0 0 17px;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.section-flourish::before,
.section-flourish::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.section-flourish.flourish-center {
  margin-inline: auto;
}

/* A little lemon and leaves from the lower branch, between fine gold lines. */
.section-flourish.flourish-lemon {
  background-image: url("assets/lemon-watercolor.webp");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 160px 240px;
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 88%, transparent);
}

.flourish-lemon::before,
.flourish-lemon::after {
  inset-block-start: 48%;
  block-size: 1px;
  inline-size: 22px;
  background: var(--flourish-gold);
  opacity: .55;
}

.flourish-lemon::before { inset-inline-start: 0; }
.flourish-lemon::after { inset-inline-end: 0; }

/* A different, airy upper branch for one left-aligned interior heading. */
.section-flourish.flourish-sprig {
  inline-size: 146px;
  block-size: 46px;
  background-image: url("assets/lemon-watercolor.webp");
  background-repeat: no-repeat;
  background-position: right top;
  background-size: 144px 216px;
  mask-image: linear-gradient(to bottom, #000 75%, transparent);
}

.flourish-sprig::before {
  inset-inline-start: 1px;
  inset-block-start: 62%;
  inline-size: 53px;
  block-size: 1px;
  background: linear-gradient(90deg, var(--flourish-gold), transparent);
  opacity: .7;
}

.flourish-sprig::after { content: none; }

/* A small diamond and fading rule: no repeated botanical frame. */
.section-flourish.flourish-rule {
  inline-size: 110px;
  block-size: 12px;
  margin-block-end: 18px;
}

.flourish-rule::before {
  inset-inline-start: 2px;
  inset-block-start: 4px;
  inline-size: 4px;
  block-size: 4px;
  background: var(--flourish-gold);
  transform: rotate(45deg);
  opacity: .8;
}

.flourish-rule::after {
  inset-inline-start: 15px;
  inset-inline-end: 0;
  inset-block-start: 6px;
  block-size: 1px;
  background: linear-gradient(90deg, var(--flourish-gold), transparent);
  opacity: .55;
}

/* One quiet accent on the existing deep-blue footer. */
.section-flourish.flourish-light {
  --flourish-gold: #e1c679;
  inline-size: 132px;
  margin-block-end: 21px;
}

.flourish-light.flourish-rule::before {
  inset-inline-start: calc(50% - 2px);
  z-index: 1;
}

.flourish-light.flourish-rule::after {
  inset-inline: 0;
  background: linear-gradient(90deg, transparent, var(--flourish-gold) 34%, transparent 47%, transparent 53%, var(--flourish-gold) 66%, transparent);
}

.welcome-section > .section-flourish {
  margin-block-end: 16px;
}

.thanks-card > .section-flourish {
  margin-block-end: 23px;
}

@media (max-width: 680px) {
  .section-flourish {
    inline-size: 145px;
    block-size: 42px;
    margin-block-end: 14px;
  }
  .section-flourish.flourish-lemon {
    background-size: 144px 216px;
  }
  .flourish-lemon::before,
  .flourish-lemon::after {
    inline-size: 18px;
  }
  .section-flourish.flourish-sprig {
    inline-size: 128px;
    block-size: 40px;
    background-size: 128px 192px;
  }
  .flourish-sprig::before { inline-size: 46px; }
  .section-flourish.flourish-rule {
    inline-size: 94px;
    block-size: 12px;
    margin-block-end: 14px;
  }
  .section-flourish.flourish-light {
    inline-size: 120px;
    margin-block-end: 17px;
  }
  .welcome-section > .section-flourish { margin-block-end: 12px; }
  .thanks-card > .section-flourish { margin-block-end: 18px; }
}

@media (max-width: 360px) {
  .section-flourish.flourish-lemon {
    inline-size: 132px;
    block-size: 39px;
    background-size: 132px 198px;
  }
  .flourish-lemon::before,
  .flourish-lemon::after { inline-size: 15px; }
}
