/* R44: Homepage-only responsive header and vertical rhythm; both themes. */
body[data-nesto-page="index"]{overflow-x:clip}
body[data-nesto-page="index"] .header{isolation:isolate}
body[data-nesto-page="index"] .header .brand{min-width:0}
body[data-nesto-page="index"] .header .nav a{font-weight:650}
/* The full desktop navigation must not shrink into illegible micro-text on narrow screens. */
@media(max-width:1100px){
 body[data-nesto-page="index"] .header{position:relative!important;z-index:10050!important;display:flex!important;align-items:center!important;gap:12px!important;min-height:72px!important;padding:12px 18px!important;overflow:visible!important}
 body[data-nesto-page="index"] .header .brand{flex:1 1 auto!important;max-width:calc(100% - 112px)!important}
 body[data-nesto-page="index"] .header .brand img{max-width:130px!important;height:auto!important;max-height:52px!important}
 body[data-nesto-page="index"] .header .menu-toggle{display:inline-flex!important;order:3!important;flex:0 0 44px!important;align-items:center!important;justify-content:center!important;width:44px!important;min-height:44px!important;margin:0!important;position:relative!important;z-index:10053!important}
 body[data-nesto-page="index"] .header nav#nav{display:none!important;position:absolute!important;inset:calc(100% + 2px) 12px auto 12px!important;width:auto!important;max-height:70dvh!important;overflow-y:auto!important;flex-direction:column!important;align-items:stretch!important;gap:3px!important;padding:14px!important;z-index:10052!important;background:#17211c!important;border:1px solid #566955!important;border-radius:12px!important;box-shadow:0 12px 35px #0004!important}
 body[data-nesto-page="index"] .header nav#nav.open{display:flex!important}
 body[data-nesto-page="index"] .header nav#nav a{display:block!important;color:#f8f9f6!important;font-size:15px!important;line-height:1.35!important;padding:11px 12px!important;white-space:normal!important;opacity:1!important;visibility:visible!important}
 body[data-nesto-page="index"] .header .np-search-icon{order:2!important;flex:0 0 38px!important;margin:0!important}
 body[data-nesto-page="index"] .hero{min-height:0!important}
}
html[data-nesto-theme="sage"] body[data-nesto-page="index"] .header nav#nav{background:#c8d5b9!important;border-color:#78937d!important}
html[data-nesto-theme="sage"] body[data-nesto-page="index"] .header nav#nav a{color:#103f2d!important}
html[data-nesto-theme="sage"] body[data-nesto-page="index"] .header .menu-toggle{background:#103f2d!important;color:#fff!important;border-color:#103f2d!important}
html[data-nesto-theme="sage"] body[data-nesto-page="index"] .header .nav a:hover{color:#103f2d!important;text-decoration:underline}
/* Do not reserve screen-height blocks for sections with only a heading and paragraph. */
body[data-nesto-page="index"] :is(#why,#nesto-philosophy,#modes,#student-life,#stories,#career-finder,.nesto-campus-outreach){height:auto!important;min-height:0!important;max-height:none!important}
body[data-nesto-page="index"] :is(#why,#nesto-philosophy,#modes,#student-life,#stories,#career-finder,.nesto-campus-outreach){padding-top:clamp(24px,3.5vw,48px)!important;padding-bottom:clamp(24px,3.5vw,48px)!important}
body[data-nesto-page="index"] #nesto-philosophy .nesto-difference-footer{margin-top:12px!important}
body[data-nesto-page="index"] #modes .intro{margin-bottom:0!important}
body[data-nesto-page="index"] #student-life .nestling-intro{margin-top:0!important;margin-bottom:0!important}
body[data-nesto-page="index"] #student-life .nestling-cta{margin-top:12px!important}
body[data-nesto-page="index"] #stories .nesto-stories-head{margin-top:0!important}
@media(max-width:780px){
 body[data-nesto-page="index"] :is(#why,#nesto-philosophy,#modes,#student-life,#stories,#career-finder,.nesto-campus-outreach){padding-top:26px!important;padding-bottom:28px!important}
 body[data-nesto-page="index"] .section h2{margin-top:8px!important;margin-bottom:12px!important}
 body[data-nesto-page="index"] #modes .intro{margin-top:8px!important}
 body[data-nesto-page="index"] #student-life .nestling-intro{align-items:center!important}
}
