/* Shared approved credit layout: total content-to-content spacing, not doubled section padding. */
body[data-credit-layout="sticky"] {
  --agri-block-space: 128px;
  --agri-content-space: 48px;
  /* Matches the existing photo's bottom margin; its sticky travel stays unchanged. */
  --agri-sticky-exit-space: max(32px, calc((max(520px, 76svh) - min(720px, calc(100svh - 160px))) / 2));
}
body[data-credit-layout="sticky"] .agri-steps { padding-bottom: 0; }
body[data-credit-layout="sticky"] .agri-steps__heading { padding-bottom: var(--agri-content-space); }
body[data-credit-layout="sticky"] :is(.agri-profile__shell, .agri-requirements__shell, .agri-contact__shell, .agri-faq__shell) {
  padding-block: calc(var(--agri-block-space) / 2);
}
body[data-credit-layout="sticky"] .agri-profile__shell {
  padding-top: max(0px, calc(var(--agri-block-space) - var(--agri-sticky-exit-space)));
  row-gap: var(--agri-content-space);
}
body[data-credit-layout="sticky"] .agri-profile__copy > p { margin-block: 24px var(--agri-content-space); }
body[data-credit-layout="sticky"] .agri-ready__list > p { margin-block: 24px var(--agri-content-space); }
body[data-credit-layout="sticky"] :is(.agri-ready__cta p, .agri-contact__copy > p) { margin-top: 24px; }
body[data-credit-layout="sticky"] .agri-faq__shell { row-gap: var(--agri-content-space); }
body[data-credit-layout="sticky"] .agri-next__shell { padding-top: calc(var(--agri-block-space) / 2); }
body[data-credit-layout="sticky"] .agri-next h2 { margin-bottom: var(--agri-content-space); }
@media (max-width: 1024px) {
  body[data-credit-layout="sticky"] { --agri-block-space: 96px; }
}
@media (orientation: landscape) and (max-height: 580px) {
  body[data-credit-layout="sticky"] { --agri-sticky-exit-space: max(32px, calc((max(520px, 76svh) - 440px) / 2)); }
}
@media (max-width: 767px) {
  body[data-credit-layout="sticky"] { --agri-content-space: 32px; }
}
@media (max-width: 767px) and (orientation: portrait) {
  body[data-credit-layout="sticky"] { --agri-sticky-exit-space: 0px; }
}
