/* Shared main-page rails: wide desktops, aligned sections, safe mobile gutters. */
body.home-page{--home-rail:min(1400px,calc(100% - 144px))}
body.home-page>.top>.wrap,body.home-page>header>.wrap,
body.home-page main>.section>.wrap,body.home-page #home.hero>.wrap,
body.home-page .broadcast-section>.broadcast-wrap,
body.home-page .site-consultation-wrap,
body.home-page .institution-footer .footer-organizations,
body.home-page .institution-footer .footer-rights{
  width:var(--home-rail);max-width:1400px;margin-left:auto;margin-right:auto;box-sizing:border-box;
}
body.home-page #home .hero-copy{max-width:780px}
body.home-page .home-course-copy{padding:22px}
body.home-page .home-course h4{font-size:24px}
body.home-page .home-course p{font-size:16px}
body.home-page .home-course-link{font-size:14px}
body.home-page .home-course-grid{gap:24px}
body.home-page .home-service-heading{scroll-margin-top:110px}
body.home-page .peniel-quickbar:not(.is-collapsed){width:56px;right:8px;border-radius:16px}
body.home-page .peniel-quickbar a{font-size:11px;min-height:78px;word-break:keep-all}
body.home-page .peniel-quickbar svg{width:22px;height:22px}
@media(min-width:1001px){
body.home-page #home .director-figure{right:0;width:50%}
body.home-page #home .director-figure>img{right:0}
body.home-page #home h1{font-size:clamp(36px,3.25vw,58px)}
}
@media(max-width:1200px) and (min-width:651px){
body.home-page .home-course-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
body.home-page .home-course-copy{padding:18px}
body.home-page .home-course h4{font-size:22px}
}
@media(max-width:1000px){
body.home-page>header .mobile{display:block}
body.home-page>header>.wrap{height:75px}
body.home-page>header nav{display:none;position:absolute;top:75px;left:0;right:0;padding:20px 24px;flex-direction:column;align-items:stretch;background:#fff;box-shadow:0 12px 15px #0001;max-height:calc(100dvh - 100px);overflow-y:auto}
body.home-page>header nav.open{display:flex}
body.home-page>header .nav-group{width:100%}
body.home-page>header .nav-group>summary{justify-content:space-between;font-size:15px;padding:13px 14px}
body.home-page>header .subnav{position:static;min-width:0;box-shadow:none;border:0;background:#f5f9fc}
body.home-page>header nav>.pill{margin:4px 0;text-align:center}
}
@media(max-width:900px){
body.home-page{--home-rail:calc(100% - 48px)}
body.home-page .peniel-quickbar:not(.is-collapsed){width:100%;right:0;border-radius:20px 20px 0 0}
body.home-page .peniel-quickbar a{font-size:12px;min-height:76px}
body.home-page .home-course-copy{padding:18px 16px}
}
@media(max-width:700px){
body.home-page{--home-rail:calc(100% - 36px)}
body.home-page #home .hero-copy{max-width:100%}
body.home-page #home .hero-note{font-size:16px}
body.home-page #home .director-figure figcaption{max-width:100%;right:0;padding:14px}
body.home-page .home-course-grid{gap:14px}
body.home-page .home-course h4{font-size:20px}
body.home-page .home-course p{font-size:14px}
body.home-page .home-course-link{font-size:12px}
body.home-page .home-course-copy{padding:16px 12px}
body.home-page .support-photo-grid .home-service{grid-template-columns:108px minmax(0,1fr);gap:14px}
body.home-page .support-photo-grid .home-service h3{font-size:19px}
body.home-page .institution-footer .footer-organizations{gap:12px}
body.home-page .institution-footer .footer-organization+.footer-organization{padding-left:12px}
}
@media(max-width:360px){
body.home-page .support-photo-grid .home-service{grid-template-columns:88px minmax(0,1fr);gap:12px}
body.home-page .support-photo-grid .home-service h3{font-size:18px}
body.home-page .support-photo-grid .home-service p{font-size:13px}
}

/* Fit the portrait to its responsive frame instead of clipping a fixed-width image. */
body.home-page #home .director-figure>img{
  width:100%;height:100%;max-width:100%;max-height:100%;
  left:0;right:0;bottom:0;object-fit:contain;object-position:center bottom;
}
@media(min-width:701px){
  body.home-page #home .director-figure{right:0;width:50%}
  body.home-page #home .director-figure figcaption{right:0;max-width:100%}
}
