/* Scope the approved standalone layout inside the existing WordPress home template. */
body main:is(.mala-home,.mala-page):has(.alt-home){max-width:none;margin:0;padding:0!important}
body :is(.mala-home,.mala-page) .alt-home #quality-programme .mala-columns{grid-template-columns:minmax(0,1fr) 300px!important;gap:32px!important}
body :is(.mala-home,.mala-page) .alt-home #quality-programme .home-photo-wrap{width:300px!important;max-width:100%!important;height:325px!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;justify-self:center!important}
body :is(.mala-home,.mala-page) .alt-home #quality-programme img[data-home-photo="play"]{width:100%!important;height:100%!important;object-fit:contain!important}
body :is(.mala-home,.mala-page) .alt-home #meals.home-meals-panel{grid-template-columns:300px minmax(0,1fr)!important;gap:32px!important}
body :is(.mala-home,.mala-page) .alt-home #meals .home-photo-wrap{width:300px!important;max-width:100%!important;height:325px!important}
body :is(.mala-home,.mala-page) .alt-home #meals .home-photo-wrap img{width:100%!important;height:100%!important;object-fit:cover!important}
body :is(.mala-home,.mala-page) .alt-home #come-and-see.cta-invitation{padding:24px!important;background:#fff!important;margin:0!important;gap:32px}
@media(max-width:900px){body :is(.mala-home,.mala-page) .alt-home #quality-programme .mala-columns{grid-template-columns:1fr!important}}
@media(max-width:700px){body :is(.mala-home,.mala-page) .alt-home #quality-programme .mala-columns{gap:20px!important}body :is(.mala-home,.mala-page) .alt-home #meals.home-meals-panel{grid-template-columns:1fr!important;gap:20px!important}body :is(.mala-home,.mala-page) .alt-home #come-and-see.cta-invitation{padding:18px!important;gap:20px}}

/* Neutralise legacy heading overrides only within the new home content. */
body :is(.mala-home,.mala-page) .alt-home #hero h1{line-height:1.14!important;letter-spacing:-.015em!important}
body :is(.mala-home,.mala-page) .alt-home .alt-benefits h2,body :is(.mala-home,.mala-page) .alt-home #age-groups h3{line-height:1.3!important;letter-spacing:-.01em!important}
body :is(.mala-home,.mala-page) .alt-home>section:not(#hero):not(.alt-benefits) h2{line-height:1.25!important;letter-spacing:-.01em!important}
body :is(.mala-home,.mala-page) .alt-home #come-and-see.cta-invitation{max-width:none;width:100%}
body :is(.mala-home,.mala-page) .alt-home #come-and-see h2{margin:0 0 16px!important}
body :is(.mala-home,.mala-page) .alt-home #come-and-see.cta-invitation{border:1px solid #eaf4fb!important;border-top:4px solid #ffb928!important}

/* Also support the existing generic page template used for a home page. */
body main.mala-page .alt-home #hero h1{font-size:37px!important;font-weight:600!important}
body main.mala-page .alt-home .alt-benefits h2,body main.mala-page .alt-home #age-groups h3{font-size:20px!important;font-weight:600!important}
body main.mala-page .alt-home>section:not(#hero):not(.alt-benefits) h2{font-size:28px!important;font-weight:600!important}
@media(max-width:700px){body main.mala-page .alt-home #hero h1{font-size:30px!important}body main.mala-page .alt-home>section:not(#hero):not(.alt-benefits) h2{font-size:26px!important}}
body main.mala-page .alt-home .mala-eyebrow{font-size:13px!important;line-height:1.5!important}
body :is(.mala-home,.mala-page) .alt-home #hero h1{letter-spacing:-.015em!important;text-wrap:balance}body :is(.mala-home,.mala-page) .alt-home :is(h2,h3){letter-spacing:-.01em!important}body :is(.mala-home,.mala-page) .alt-home #come-and-see h2{color:#10275f!important}

body :is(.mala-home,.mala-page) .alt-home #age-groups h3{letter-spacing:normal!important}
@media(max-width:700px){body :is(.mala-home,.mala-page) .alt-home #hero .ma-hero-copy{padding-bottom:8px!important}}
