/* Bridges the mirrored live content with the local header/footer. */
.mirror-main { display: block; width: 100%; }
.mirror-main > :first-child { margin-top: 0; }
.mirror-main [hidden] { display: none !important; }
/* Render sections captured before the reference scroll reveal had run. */
.mirror-main [style*="opacity: 0; transform: translate"]:not([hidden]) {
  opacity: 1 !important;
  transform: none !important;
}

/* The live pages assume their own body font and colour; keep our header/footer
   on their own tokens while the mirrored main keeps the live ones. */
html.dark { color-scheme: dark; }
html:not(.dark) { color-scheme: light; }

.mirror-main .mp-page-content { min-width: 0; }

[data-affiliate-page] .mirror-main .flex-1 { min-width: 0; }

.public-plan-preview {
  width: min(440px, calc(100% - 32px));
  margin: auto;
  padding: 24px;
  border: 1px solid var(--lp-border, #ddd);
  border-radius: 16px;
  color: var(--lp-ink, #171717);
  background: var(--lp-surface, #fff);
}
.public-plan-preview::backdrop { background: #14111480; }
.public-plan-preview h2 { margin: 0 0 8px; font-size: 24px; }
.public-plan-preview a { display: inline-block; margin: 16px 0; text-decoration: underline; }
.public-plan-preview button { padding: 8px 12px; border: 1px solid currentColor; border-radius: 8px; }

/* The parity layer constrains `main > section` to a 1140px measure; the mirrored
   live sections are full-bleed with their own inner container. */
.mirror-main > section,
.mirror-main > div > section,
.mirror-main section {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
}

