/* Seasonal details occupy their own space around the catalog and products. */
:is(.template-catalog, .template-product) .page-hero {
  padding-bottom: 67px;
  background-image: var(--motif-catalog-herbarium, url("catalog-herbarium.svg"));
  background-repeat: no-repeat;
  background-size: min(440px, 92%) auto;
  background-position: right 4% bottom;
}

.template-product .page-grid h1 {
  font-size: clamp(1.75rem, 1rem + 2.1vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -.03em;
}

.template-product .article-copy h2,
.template-product .passport h2 {
  font-size: clamp(1.625rem, 1.2rem + 1vw, 2rem);
  line-height: 1.16;
}

.template-catalog .sample-copy {
  position: relative;
  border-top: 4px double #b98443;
  padding-bottom: 28px;
}

.template-catalog .sample-copy::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 13px;
  width: 17px;
  height: 27px;
  border-radius: 100% 0 100% 0;
  border: 1px solid #b08041;
  background: linear-gradient(125deg, #d8ac54 48%, #ae773e 49% 52%, #e5be69 53%);
  transform: rotate(26deg);
  pointer-events: none;
}

.template-catalog .sample:nth-child(even) .sample-copy::after {
  transform: rotate(65deg);
  background: linear-gradient(125deg, #c59150 48%, #98663f 49% 52%, #dfb278 53%);
}

:is(.template-catalog, .template-product) .article-copy > h2::before {
  content: "";
  display: block;
  width: min(100%, 280px);
  height: 44px;
  margin-bottom: 14px;
  background: var(--motif-order-fallen-leaf-route, url("order-fallen-leaf-route.svg")) left center / contain no-repeat;
}

.template-product .article-copy > h2:nth-of-type(even)::before {
  background-image: var(--motif-corporate-acorns, url("corporate-acorns.svg"));
}

.template-product .passport {
  padding-top: 60px;
}

.template-product .passport::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 22px;
  width: min(70%, 260px);
  height: 36px;
  background: var(--motif-examples-pressed-tabs, url("examples-pressed-tabs.svg")) left center / contain no-repeat;
  pointer-events: none;
}

footer {
  padding-top: 74px;
  background-image: var(--motif-footer-autumn-rain, url("footer-autumn-rain.svg"));
  background-repeat: no-repeat;
  background-size: 420px 60px;
  background-position: right top;
}

@media (max-width: 620px) {
  .template-product .page-grid h1 {
    font-size: clamp(1.75rem, 1.2rem + 2.5vw, 1.875rem);
  }

  :is(.template-catalog, .template-product) .page-hero {
    padding-bottom: 54px;
    background-size: min(350px, 92%) auto;
  }

  .template-catalog .sample-copy {
    padding-bottom: 40px;
  }

  .template-catalog .sample-copy::after {
    right: 14px;
    bottom: 9px;
    width: 13px;
    height: 21px;
  }

  :is(.template-catalog, .template-product) .article-copy > h2::before {
    height: 36px;
    margin-bottom: 12px;
  }
}

/* Missing internal placements reuse the existing autumn vocabulary in reserved space. */
:is(.template-category,.template-guide,.template-system,.template-article,.template-editorial) .page-hero{padding-bottom:48px;background-image:var(--motif-catalog-herbarium, url("catalog-herbarium.svg"));background-repeat:no-repeat;background-size:auto 32px;background-position:right 16px bottom 8px}
.template-guide .page-hero{background-image:var(--motif-catalog-herbarium, url("catalog-herbarium.svg"))}
.template-system .page-hero{background-image:var(--motif-faq-bookmark, url("faq-bookmark.svg"))}
.template-article .page-hero,.template-editorial .page-hero{background-image:var(--motif-examples-pressed-tabs, url("examples-pressed-tabs.svg"))}
:is(.template-category,.template-guide,.template-system,.template-article) .article-copy>h2::before,
:is(.template-category,.template-guide,.template-article) .feedback-buyer-answer>h2::before{content:"";display:block;width:min(140px,100%);height:24px;margin-bottom:12px;background:var(--motif-order-fallen-leaf-route, url("order-fallen-leaf-route.svg")) left center/contain no-repeat;pointer-events:none}
:is(.template-category,.template-guide,.template-system,.template-article) .article-copy>h2:nth-of-type(even)::before{background-image:var(--motif-corporate-acorns, url("corporate-acorns.svg"))}
.template-editorial main>.section,.template-quote #quote{background-image:var(--motif-faq-bookmark, url("faq-bookmark.svg"));background-repeat:no-repeat;background-size:auto 40px;background-position:right 16px bottom 16px;padding-bottom:72px}
.template-quote #quote{background-image:var(--motif-quote-golden-light, url("quote-golden-light.svg"))}
/* Exact text from the original SVG is readable in normal document flow on phones. */
.article-guide-readable{display:none}
@media(max-width:700px){
 .article-guide-readable{display:block;margin:16px 0 24px;padding:16px;border-left:2px solid #b18a4b;background:#fbf6ec;font-size:1rem;line-height:1.6;overflow-wrap:anywhere}
 .article-guide-readable p{margin:0 0 12px}
 .article-guide-readable ol{list-style-type:decimal-leading-zero;margin:0;padding-left:2em}
 .article-guide-readable li{margin:0 0 16px;padding-left:4px;min-width:0}
 .article-guide-readable li:last-child{margin-bottom:0}
 .article-guide-readable li>strong{display:block;margin-bottom:4px}
 .article-guide-readable li>p{margin:0}
}
