/* Stable scroll geometry; only title surfaces stack. */
#form.natural-stack > fieldset,
#form.natural-stack > fieldset.is-active,
#form.natural-stack > fieldset.is-past,
#form.natural-stack > fieldset.is-future {
 position:relative;top:auto;z-index:auto;margin-top:24px;padding:28px 22px;
 min-height:0;clip-path:none;transform:none;background:#fff;border-radius:22px;
}
#form.natural-stack > fieldset:first-child {margin-top:24px}
#form.natural-stack .form-fold,
#form.natural-stack > fieldset:not(.is-active) .form-fold,
#form.natural-stack > fieldset.is-past .form-fold {
 height:auto;visibility:visible;opacity:1;filter:none;overflow:visible;pointer-events:auto;
}
#form.natural-stack .form-fold::after {display:none}
#form.natural-stack .form-fold > .fields {opacity:1;transform:none;filter:none}
#form.natural-stack > fieldset > legend,
#form.natural-stack > fieldset.is-active > legend,
#form.natural-stack > fieldset.is-past > legend,
#form.natural-stack > fieldset.is-future > legend {
 position:static;top:auto;height:34px;margin-bottom:24px;background:transparent;z-index:auto;
}
#form.natural-stack > fieldset > legend::before,
#form.natural-stack > fieldset > legend::after {display:none}
#form.natural-stack .form-card-heading.is-pinned {
 position:fixed;margin:0;padding:18px 22px;background:#fff;border-radius:22px 22px 0 0;
 box-shadow:0 8px 14px -10px #17291e45;isolation:isolate;
}
#form.natural-stack .form-card-heading.is-pinned-past {
 background:#f1f4f1;border-radius:22px;box-shadow:inset 0 1px 0 #d5ddd5,0 -2px 12px #17291e08;
}
@media(max-width:760px){
 #form.natural-stack > fieldset,#form.natural-stack > fieldset.is-active,
 #form.natural-stack > fieldset.is-past,#form.natural-stack > fieldset.is-future {padding:24px 18px;border-radius:19px;margin-top:24px}
 #form.natural-stack .form-card-heading.is-pinned {padding:9px 18px;border-radius:19px 19px 0 0}
 #form.natural-stack .form-card-heading.is-pinned-past {border-radius:19px}
}

/* Keep every descendant and shadow below the same top edge. Side bleed allows
   the existing card gutters and shadows without cropping rounded corners. */
#form.natural-stack {clip-path:inset(var(--form-top-cut,0px) -100px -100px -100px)}
.configuration.is-stack-engaged .form-stack-cap {display:none}
