/* Design pages (inc/design-page.php): the pieces every imported design shares.
   The design's own CSS is design-pages/<slug>/page.css (dev/design-page-import.py). */

/* An image slot from the export: a box its image fills. */
.ol-slot { display: block; overflow: hidden; }
.ol-slot > img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* A slot the design left without a photo: a calm brand block, never the
   designer's placeholder prompt. Swap in the photo by re-importing. */
.ol-slot--empty { background: linear-gradient(160deg, var(--g-sage, #cdd6c0) 0%, var(--g-sand, #ebdfcb) 100%); }
.g-hero__img.ol-slot--empty { background: linear-gradient(165deg, var(--g-olive-2, #3b402d) 0%, var(--g-olive, #2e3223) 55%, #23271b 100%); }
.hw__slot.ol-slot--empty { background: rgba(255, 255, 255, 0.10); }
.call .ol-slot--empty { background: linear-gradient(160deg, #5a5f4b 0%, #3f4334 100%); }

/* The real footer's consent line: its rule lives in style.css, which design pages don't load. */
.signup__consent { font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.6); margin: 10px 0 0; max-width: 430px; }
.signup__consent a { color: rgba(255, 255, 255, 0.85); text-decoration: underline; }

/* Lumart, 25 Nov: the gut hero photo gets the same white frame as the hero
   videos on Home and Scans (css/hero.css). Desktop: full-bleed under the
   floating header, 10px of page colour with 24px corners. Phones: below the
   header, 8px margin, 22px corners. */
@media (min-width: 761px) {
  .ol-design-page .g-hero { margin-top: -86px; }   /* the sticky header's 22px offset + 64px bar */
  .ol-design-page .site-header { z-index: 100; }
  .ol-design-page .g-hero__frame { min-height: 100vh; min-height: 100svh; }
  .ol-design-page .g-hero__frame::after {
    content: ""; position: absolute; inset: 10px; z-index: 50; pointer-events: none;
    border-radius: 24px; box-shadow: 0 0 0 60px var(--bg, #fbfaf8);
  }
}
@media (max-width: 760px) {
  .ol-design-page .g-hero__frame { margin: 8px 8px 0; border-radius: 22px; min-height: calc(100svh - 65px - 16px); }
}

/* A section with a full-bleed background photo (--section-bg in the importer).
   Lumart, 25 Nov: the gut page's "Why test your microbiome?" bento sits on a big
   photo, its cards turned into darker glass in the same layout. */
.ol-bgsec { position: relative; isolation: isolate; overflow: hidden; padding-top: clamp(90px, 12vh, 160px) !important; padding-bottom: clamp(90px, 12vh, 160px); }
.ol-secbg { position: absolute; inset: 0; z-index: -1; }
.ol-secbg > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ol-bgsec .wt .wt-c, .ol-onbg .wt .wt-c {
  background: rgba(24, 30, 18, 0.46);
  -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 18px 50px rgba(20, 30, 10, 0.18);
}
.ol-bgsec .wt .wt-bac, .ol-bgsec .wt .wt-area, .ol-onbg .wt .wt-bac, .ol-onbg .wt .wt-area { display: none; }
.ol-bgsec .wt__h, .ol-onbg .wt__h { color: #fff; text-shadow: 0 2px 24px rgba(20, 30, 10, 0.35); }

/* One photo spanning several sections ("A..B" in the importer). Lumart, 25 Nov: the gut
   page's photo runs from "Why test" down through "Your report", darkening until it meets
   the olive top of "How it works" (#434a33) with no seam. */
.ol-bgspan { position: relative; isolation: isolate; overflow: hidden; }
.ol-bgspan > .ol-secbg { position: absolute; inset: 0; z-index: -1; }
/* Lumart, 25 Nov: the photo keeps (about) its own proportions instead of stretching over the
   whole span, then fades into the olive; the gradient carries on to the bottom. */
.ol-bgspan { background-color: #434a33; }
.ol-bgspan > .ol-secbg > img {
  display: block; width: 100%; height: max(177.7vw, 2400px); object-fit: cover; object-position: 50% 0;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
}
.ol-bgspan > .ol-secbg::after {
  content: ""; position: absolute; inset: 0;
  /* Lumart, 25 Nov: darkening from the top, very gradual, the photo still showing into
     "Understanding your gut", ending on How it works' own near-black (#131313). */
  background: linear-gradient(180deg,
    rgba(67, 74, 51, 0) 0%, rgba(67, 74, 51, 0.1) 12%, rgba(67, 74, 51, 0.24) 24%,
    rgba(62, 68, 47, 0.4) 36%, rgba(56, 62, 43, 0.55) 48%, rgba(50, 55, 38, 0.68) 58%,
    rgba(42, 46, 33, 0.8) 68%, rgba(30, 33, 25, 0.9) 80%, #131313 100%);
}
.ol-onbg { background: transparent !important; }
.ol-bgspan .g-how { background: transparent !important; }
.ol-onbg:first-of-type, .ol-bgspan > .ol-onbg:first-of-type { padding-top: clamp(90px, 12vh, 160px) !important; }
.ol-bgspan .g-rep .g-h2, .ol-bgspan .g-rep__head .g-p { color: #fff; text-shadow: 0 2px 22px rgba(20, 30, 10, 0.35); }
.ol-bgspan .g-rep .g-h2 em { color: rgba(244, 239, 229, 0.7); }
.ol-bgspan .stk__btn { border-color: rgba(255, 255, 255, 0.3); }

/* Lumart, 26 Nov: "don't make the footer reveal". On design pages the footer is a
   plain block after the last section at every width, never revealed from behind it. */
.ol-design-page .site-footer, .ol-design-page .site-footer.is-tucked { position: relative; bottom: auto; visibility: visible; }

/* Lumart, 26 Nov: one background card from "Why test" to below "How it works" ("Your gut is connected" sits above it).
   The photo shows at its own proportions (never zoomed), then the solid green it ends on
   carries on to the bottom. Rounded corners like the rest of the site's cards. */
.ol-bgcard { border-radius: clamp(24px, 2.4vw, 36px); background-color: #2e3522; }
.ol-bgcard > .ol-secbg > img { height: auto; object-fit: fill; -webkit-mask-image: none; mask-image: none; }
.ol-bgcard > .ol-secbg::after { content: none; }
.ol-bgcard .g-why .g-h2, .ol-bgcard .g-why .g-p { color: #fff; text-shadow: 0 2px 22px rgba(20, 30, 10, 0.35); }
/* Lumart, 26 Nov: blur the green card's photo slightly so its resolution never shows when stretched wide. */
.ol-bgcard > .ol-secbg > img { filter: blur(14px); transform: scale(1.04); transform-origin: 50% 0; }
/* Lumart, 26 Nov: sticky stacking cards inside the green card. overflow:hidden makes the card a
   scroll box and kills position:sticky inside it; clip keeps the rounded corners without that. */
.ol-bgspan, .ol-bgcard { overflow: clip; }

/* Safari: a background at z-index -1 inside an isolated block is not painted behind
   composited children (the deck arrows, sliding cards), which then show as dark
   squares and boxes (Lumart, 26 Nov). Keep the background at 0 and lift the content. */
.ol-bgspan > .ol-secbg { z-index: 0; }
.ol-bgspan > :not(.ol-secbg) { position: relative; z-index: 1; }

/* "Coming soon" in place of a button: genetic testing and gut microbiome aren't on sale yet (Lumart, 2 Dec). */
.is-soon{cursor:default;pointer-events:none}
.btn--primary.is-soon{color:#fff!important}
