/* R45 site-wide vertical rhythm repair, 2026-11-02.
   Restrict changes to content section geometry. Do not alter heroes, fixed UI,
   interactive elements, modal positioning, or existing theme colours. */
:root{--nesto-section-space:clamp(32px,4vw,54px);--nesto-section-space-mobile:28px}
/* Common section wrappers throughout the site, including finance and banking. */
body[data-nesto-page] main > section:not(.hero):not(.bp-hero):not(.r40-hero):not(.bank-hero):not(.nesto-hero):not(.nesto-unified-home-promo),
body[data-nesto-page] main > .section,
body[data-nesto-page] main .section:not(.hero),
body[data-nesto-page] main .bank-section,
body[data-nesto-page] main .bp-section,
body[data-nesto-page] main .r40-section{
  min-height:0!important;height:auto!important;
  padding-top:var(--nesto-section-space)!important;
  padding-bottom:var(--nesto-section-space)!important;
}
/* Avoid inherited min-heights on the text blocks that caused large empty areas. */
body[data-nesto-course] main .section :is(.section-inner,.section-content,.content-wrap,.container){min-height:0!important}
body[data-nesto-course] main .section :is(.facts,.timeline,.career-flow,.skill-flow,.salary-flow){margin-top:clamp(12px,2vw,22px)!important;margin-bottom:clamp(12px,2vw,22px)!important}
body[data-nesto-course] main .section :is(h2,h3,.lead){margin-top:0}
body[data-nesto-course] main .section h2{margin-bottom:clamp(10px,1.7vw,18px)!important}
/* Short overview and single-accordion sections should never reserve a viewport. */
body[data-nesto-course] main > section.section{min-height:0!important}
/* Preserve actual hero imagery and dedicated homepage carousel sizing. */
@media(max-width:780px){
 :root{--nesto-section-space:var(--nesto-section-space-mobile)}
 body[data-nesto-page] main > section:not(.hero):not(.bp-hero):not(.r40-hero):not(.bank-hero):not(.nesto-hero):not(.nesto-unified-home-promo),
 body[data-nesto-page] main .section:not(.hero),
 body[data-nesto-page] main .bank-section,
 body[data-nesto-page] main .bp-section,
 body[data-nesto-page] main .r40-section{padding-top:28px!important;padding-bottom:30px!important;min-height:0!important;height:auto!important}
 body[data-nesto-course] main .section :is(.facts,.timeline,.career-flow,.skill-flow,.salary-flow){margin-top:12px!important;margin-bottom:14px!important}
 body[data-nesto-course] main .section h2{margin-bottom:12px!important}
}
