/* Shared helpers for pages converted from the design boards. */
.dg-page{display:block}
.dg-page .root{min-height:0 !important;background:var(--bg)}
.dg-page svg{display:inline-block}
.dg-page details.faq>summary{list-style:none;cursor:pointer}
.dg-page details.faq>summary::-webkit-details-marker{display:none}
.dg-page details.faq[open] .faq-x{transform:rotate(45deg);background:var(--tx);color:var(--bg);border-color:var(--tx)}
.dg-page .static-note{display:none}
@media (max-width:760px){
.dg-page [style*="grid-template-columns"]:not([style*="auto-fit"]):not([style*="auto-fill"]){grid-template-columns:minmax(0,1fr) !important}
.dg-page [style*="grid-template-columns: repeat(4"]:not([style*="auto-fit"]):not([style*="auto-fill"]),.dg-page [style*="grid-template-columns: repeat(5"]:not([style*="auto-fit"]):not([style*="auto-fill"]),.dg-page [style*="grid-template-columns: repeat(6"]:not([style*="auto-fit"]):not([style*="auto-fill"]){grid-template-columns:repeat(2,minmax(0,1fr)) !important}
.dg-page .btn{white-space:normal;height:auto !important;min-height:48px;padding-top:12px;padding-bottom:12px;text-align:center;line-height:1.3}
}
/* Phones: nothing may be wider than the screen (Nov 2026 mobile pass) */
@media (max-width:760px){
.dg-page [style*="flex-wrap: wrap"]>*,.dg-page [style*="flex-wrap:wrap"]>*{min-width:0;max-width:100%}
.dg-page [style*="flex: 1 1"],.dg-page [style*="flex:1 1"]{min-width:0;max-width:100%}
.dg-page img,.dg-page video,.dg-page canvas{max-width:100%;height:auto}
.dg-page .btn{max-width:100%}
.dg-page h1,.dg-page h2,.dg-page h3,.dg-page .h2,.dg-page .d{overflow-wrap:break-word;hyphens:manual}
.dg-page .pill,.dg-page .chip,.dg-page .tag{max-width:100%;white-space:normal}
}
@media (max-width:760px){.dg-page .cta[style*="padding"]{padding:32px 20px !important}.dg-page [style*="padding: 56px"],.dg-page [style*="padding: 64px 48px"],.dg-page [style*="padding: 48px"]{padding:28px 20px !important}}
@media (max-width:760px){.dg-page .cta{grid-template-columns:minmax(0,1fr) !important}.dg-page .cta>*{min-width:0;max-width:100%}.dg-page .dc b{overflow-wrap:anywhere}}

/* Phones: the spinning CTA stamp sits small in the corner, behind the text (Nov 2026 mobile pass) */
@media (max-width:760px){.dg-page .zcta::after{width:84px !important;height:84px !important;top:14px !important;right:14px !important;opacity:.45;z-index:0 !important}.dg-page .zcta .wrap,.dg-page .zcta>div{position:relative;z-index:1}}

/* Phones: no sticky side headings, they slide over the content (Nov 2026 mobile pass) */
@media (max-width:760px){.dg-page .fq-s .wrap>div:first-child,.dg-page main [style*="position: sticky"]{position:static !important}}
@media (max-width:760px){.dg-page .lgt,.dg-page .wd-why,.dg-page .wc-res,.dg-page .toc,.dg-page .side,.dg-page .fq-side{position:static !important}}
/* Internal links added for SEO (Nov 2026) */
.dg-page .ch-links{margin:28px 0 0;color:var(--tx3);font-size:15px;line-height:1.7}
.dg-page .ch-links a,.dg-page .faq-more a,.dg-page .rd-next a{color:var(--acc);font-weight:700;text-decoration:none}
.dg-page .ch-links a:hover,.dg-page .faq-more a:hover,.dg-page .rd-next a:hover{text-decoration:underline}
.dg-page .faq-more{margin:28px 0 0;display:flex;flex-wrap:wrap;gap:12px 24px;justify-content:center;font-size:15px}
.dg-page .rd-next{padding-block:0 56px;margin-top:-48px}
.dg-page .rd-next p{margin:0;font-size:16px;color:var(--tx2);line-height:1.6}
.dg-page .bl-body.bl-rel{padding:0 0 64px;margin-top:-40px}

/* ---------- Hero bottom: "grid floor" (owner, Nov 2026; replaces the old mountain wave on every page) ----------
   A faint perspective grid fading in towards the bottom of the hero, ending in a thin brand-gradient line.
   Selectors are long on purpose: they must beat each page's own hero rules, which load after this file. */
html body main.dg-page #top::before, html body main.dg-page section.zd:first-of-type::before, html body .hero::before, html body main.gqs .gqs-hero::after {
  content: "" !important; position: absolute !important; z-index: 0 !important; pointer-events: none !important;
  left: -25% !important; right: -25% !important; bottom: 0 !important; top: auto !important; width: auto !important;
  height: 200px !important; opacity: 1 !important; border-radius: 0 !important; animation: none !important; translate: none !important;
  background: linear-gradient(rgba(167, 139, 250, .32) 1px, transparent 1px) 0 100% / 64px 32px repeat,
              linear-gradient(90deg, rgba(167, 139, 250, .32) 1px, transparent 1px) 50% 100% / 64px 32px repeat !important;
  transform: perspective(420px) rotateX(58deg) !important; transform-origin: 50% 100% !important;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 75%); mask-image: linear-gradient(180deg, transparent, #000 75%);
}
html body main.dg-page #top::after, html body main.dg-page section.zd:first-of-type::after, html body .hero::after, html body main.gqs .gqs-hero > .gqs-floor-line {
  content: "" !important; position: absolute !important; z-index: 0 !important; pointer-events: none !important;
  left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important;
  height: 2px !important; opacity: 1 !important; animation: none !important; translate: none !important; transform: none !important;
  background: linear-gradient(90deg, transparent, #2457C9 18%, #7A2FD0 50%, #C42A6B 82%, transparent) !important;
  box-shadow: 0 0 14px rgba(167, 139, 250, .45);
}
@media (max-width: 600px) {
  html body main.dg-page #top::before, html body main.dg-page section.zd:first-of-type::before, html body .hero::before, html body main.gqs .gqs-hero::after {
    height: 120px !important; background-size: 44px 22px, 44px 22px !important; left: -60% !important; right: -60% !important;
  }
}

/* Frozen header (owner, Nov 2026): anything that sticks while scrolling sits just below the header, not under it */
html body main.dg-page .jump, html body main.dg-page .prog-top { top: var(--hdr-h) !important; }
html body main.dg-page .fq-side, html body main.dg-page .lgt, html body main.dg-page .side, html body main.dg-page .toc, html body main.dg-page .wd-why { top: calc(var(--hdr-h) + 20px) !important; }
