/* Reference V5, 27 October: exact supplied raster artwork, no subtitle. */
body,body :is(p,li,dt,dd,label,summary,address,th,td,input,textarea,select){color:#1E3A5F!important}
body :is(h1,h2,h3,h4,h5,h6){color:#10275F!important}
body .mala-eyebrow{color:#095DA5!important}
body :is(.mala-button,.wp-block-button__link){background:#FFB928!important;color:#1E3A5F!important}
body :is(.mala-button,.wp-block-button__link):hover{background:#095DA5!important;color:#fff!important}
body .is-style-outline .wp-block-button__link{background:transparent!important;border-color:#095DA5!important}
body .mala-tabs [aria-selected="true"]{background:#FFB928!important;border-color:#FFB928!important}
body .mala-nav a{color:#1E3A5F!important}
body :is(.about-social-links a,.resource-links a){color:#095DA5!important}
body .mala-brand{box-sizing:border-box;padding:7px 9px;background:transparent;flex-shrink:0}
body .mala-brand img{display:block;max-width:100%;height:auto;object-fit:contain;filter:none;box-shadow:none;transform:none}
body .mala-contact-page>.company-information{margin-top:24px;padding:24px 28px;border-top:1px solid #d9ddd8;background:transparent;border-radius:0}
@media(max-width:700px){body .mala-contact-page>.company-information{padding:20px 18px}}

/* Display the supplied image without its large outer white margins.
   CSS viewport only: original artwork file is preserved byte for byte. */
body .mala-brand{position:relative;display:block;flex:0 0 230px!important;width:230px!important;height:auto!important;aspect-ratio:1436/518;overflow:hidden;padding:0!important;background:#fff}
body .mala-brand img{position:absolute!important;left:-12.117%!important;top:-34.749%!important;width:123.538%!important;max-width:none!important;height:auto!important;display:block;object-fit:initial!important}
body .mala-home .mala-invite,body .home-invitation,body .mala-resource-entry{background:#EAF4FB}
body :is(.mala-button,.wp-block-button__link):hover{background:#084C86!important;color:#fff!important}
body .is-style-outline .wp-block-button__link:hover{background:#095DA5!important;color:#fff!important}
@media(max-width:800px){body .mala-brand{flex-basis:185px!important;width:185px!important}}
@media(max-width:360px){body .mala-brand{flex-basis:155px!important;width:155px!important}}

/* Inner pages: the approved homepage type scale, 27 October. */
body main.mala-page h1{font-size:46px!important;font-weight:600!important;line-height:1.12!important;letter-spacing:-.035em!important}
body main.mala-page h2{font-size:30px!important;font-weight:600!important;line-height:1.25!important;letter-spacing:-.025em!important}
body main.mala-page h3{font-size:20px!important;font-weight:600!important;line-height:1.3!important}
body main.mala-page p,body main.mala-page li{font-size:16px;line-height:1.65}
body main.mala-page .mala-lead{font-size:23px!important;line-height:1.4!important}
body main.mala-page .mala-eyebrow{font-size:13px!important;line-height:1.4!important}
body main.mala-page .company-information h2{font-size:24px!important}
body main.mala-page .company-information h3{font-size:18px!important}
@media(max-width:700px){body main.mala-page h1{font-size:clamp(27px,7.9vw,42px)!important}body main.mala-page h2{font-size:24px!important}body main.mala-page h3{font-size:18px!important}body main.mala-page .mala-lead{font-size:19px!important}}

/* Compact programme introduction: wider text, contained photo on the right. */
body .mala-program-page .mp-hero{display:grid!important;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)!important;align-items:center!important;gap:28px!important;padding:28px!important;width:100%!important;box-sizing:border-box!important}
body .mala-program-page .mp-hero>.mala-copy{width:auto!important;min-width:0!important;max-width:none!important;margin:0!important}
body .mala-program-page .mp-hero h1{margin:0 0 14px!important}
body .mala-program-page .mp-hero p{margin-block:12px!important;max-width:none!important}
body .mala-program-page .mp-hero .reading-photo{width:100%!important;max-width:420px!important;height:300px!important;min-height:0!important;margin:0 0 0 auto!important;overflow:hidden;border-radius:24px}
body .mala-program-page .mp-hero .reading-photo img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;object-fit:cover!important;object-position:center!important;margin:0!important}
@media(max-width:760px){body .mala-program-page .mp-hero{grid-template-columns:1fr!important;padding:22px!important;gap:16px!important}body .mala-program-page .mp-hero .reading-photo{max-width:none!important;height:260px!important}}

/* Approved header harmony sketch. */

body .mala-brand{width:207px!important;flex-basis:207px!important}
body .mala-header{padding-block:24px!important}
body .mala-home :is(h1,h2,h3){font-family:'Mala Poppins',Arial,sans-serif!important;font-weight:600!important;letter-spacing:-.025em!important;line-height:1.16!important}
body .mala-home .ma-hero-copy h1{letter-spacing:-.035em!important;line-height:1.12!important}
body .ma-hero-shapes i:nth-child(1){clip-path:none!important;background:transparent!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 88'%3E%3Cpath fill='%23F76B3C' d='M0 0H27Q31 0 35 4L114 78Q124 88 110 88H0Z'/%3E%3C/svg%3E")!important;background-size:100% 100%!important}
body .ma-hero-shapes i:nth-child(3){clip-path:none!important;border-radius:0 22px 22px 0!important;width:64px!important; background:#64835F!important}
body .ma-hero-shapes i:nth-child(3)::after{content:'';position:absolute;left:30px;bottom:0;width:52px;height:96px;background:#64835F;border-radius:0 20px 20px 0}
@media(max-width:800px){body .mala-brand{width:167px!important;flex-basis:167px!important}body .mala-header{padding-block:18px!important}}


/* Real hero photos replace the old AI sprite crops. */
body .mala-admissions .admissions-crop,body .mala-parents-page .parents-crop{width:100%!important;aspect-ratio:1.4!important;height:340px!important;min-height:0!important;margin:0!important;overflow:hidden;border-radius:22px}
body .mala-admissions .admissions-crop>img,body .mala-parents-page .parents-crop>img{position:static!important;left:auto!important;top:auto!important;display:block!important;width:100%!important;max-width:100%!important;height:100%!important;object-fit:cover!important;margin:0!important}
body .mala-admissions .admissions-crop>img{object-position:center 44%!important}
body .mala-parents-page .parents-crop>img{object-position:50% 63%!important}
@media(max-width:700px){body .mala-admissions .admissions-crop,body .mala-parents-page .parents-crop{height:260px!important}}
/* Contact page: separate the visit area, map and legal details into compact rows. */
body main.mala-page .mala-contact-page .mc-card h2{font-size:18px!important;line-height:1.25!important;margin-bottom:6px}
body .mala-contact-page>.company-information{grid-column:1/-1;grid-row:3;margin:0;padding:24px;background:#fff;border:1px solid #e5e5df;border-radius:22px;box-sizing:border-box;min-width:0}
body .mala-contact-page .company-information-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:28px}
body .mala-contact-page .company-identification>div{grid-template-columns:minmax(135px,.75fr) minmax(0,1.25fr);gap:12px;margin-bottom:6px}
body .mala-contact-page .company-bank{margin-bottom:12px}
body .mala-contact-page .company-copy-status:empty{display:none}
@media(min-width:1001px){
 body .mala-contact-page .mc-contact-intro{grid-row:1;align-self:start}
 body .mala-contact-page .mc-map{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);column-gap:28px;align-content:center;align-items:start;padding:24px}
 body .mala-contact-page .mc-map>h2,body .mala-contact-page .mc-map>p,body .mala-contact-page .mc-map>button{grid-column:1}
 body .mala-contact-page .mc-map>.mc-map-frame{grid-column:2;grid-row:1/5;min-width:0;min-height:0}
 body .mala-contact-page .mc-map iframe{height:250px;min-height:250px;margin:0}
 body .mala-contact-page .mc-map>button{justify-self:start;align-self:start}
 body .mala-contact-page .mc-map:has(>.mc-map-frame:empty){display:block}
}
@media(max-width:1000px){
 body .mala-contact-page>.company-information{grid-row:auto}
 body .mala-contact-page iframe{height:260px;min-height:260px}
}
@media(max-width:700px){body .mala-contact-page .mc-contact-intro .contact-photo{max-width:none;height:230px!important;min-height:0!important;aspect-ratio:auto!important;padding:0!important}body .mala-contact-page .mc-contact-intro .contact-photo img{position:static!important;height:230px!important;object-fit:cover;object-position:center 50%}}
@media(max-width:800px){
 body .mala-contact-page .company-information-grid{grid-template-columns:1fr;gap:18px}
 body .mala-contact-page .company-identification>div{grid-template-columns:minmax(115px,.8fr) minmax(0,1.2fr);gap:10px}
 body .mala-contact-page>.company-information{padding:20px 18px}
 body .mala-contact-page .company-banking{padding:18px 0 0;border-left:0;border-top:1px solid #d9ddd8}
}
@media(max-width:380px){body .mala-contact-page .company-identification>div{grid-template-columns:1fr;gap:0}body .mala-contact-page .iban-value{white-space:normal}}

/* Contact photo removed: compact text and form columns. */
@media(min-width:1001px){body .mala-contact-page .mc-contact-intro{align-self:stretch;justify-content:center}}
/* Shared home photo layouts must not depend on the WordPress template wrapper. */
body .ma-home-sections #quality-programme .mala-columns{display:grid!important;grid-template-columns:minmax(0,1fr) 360px!important;align-items:center;gap:38px}
body .ma-home-sections #quality-programme .home-photo-wrap{position:relative!important;display:block!important;width:100%!important;max-width:360px!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;padding:0!important;justify-self:end}
body .ma-home-sections #quality-programme img[data-home-photo="play"]{position:static!important;display:block!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;margin:0!important}
body .ma-home-sections #meals.home-meals-panel{display:grid!important;grid-template-columns:280px minmax(0,1fr)!important;gap:28px!important;align-items:center}
body .ma-home-sections #meals .home-photo-wrap{position:relative!important;grid-column:1!important;grid-row:1!important;width:100%!important;max-width:280px!important;height:230px!important;min-height:0!important;aspect-ratio:auto!important;padding:0!important;margin:0!important}
body .ma-home-sections #meals .home-photo-wrap img{position:static!important;display:block!important;width:100%!important;max-width:100%!important;height:230px!important;object-fit:cover!important;object-position:50% 39%!important;margin:0!important}
body .ma-home-sections #meals .home-meals-copy{grid-column:2!important;grid-row:1!important;min-width:0}
@media(max-width:900px){body .ma-home-sections #quality-programme .mala-columns{grid-template-columns:minmax(0,1fr)!important;gap:22px}body .ma-home-sections #quality-programme .home-photo-wrap{justify-self:center}}
@media(max-width:700px){body .ma-home-sections #meals.home-meals-panel{grid-template-columns:minmax(0,1fr)!important;gap:18px!important}body .ma-home-sections #meals .home-photo-wrap{justify-self:center;grid-column:1!important;grid-row:2!important}body .ma-home-sections #meals .home-meals-copy{grid-column:1!important;grid-row:1!important}}
@media(max-width:700px){body .ma-home-sections #quality-programme .home-photo-wrap{max-width:min(360px,calc(100vw - 58px))!important}}

/* Compact community photo and copy, November 2026. */
body .mala-about-page .about-community-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.85fr);gap:28px;align-items:center}
body .mala-about-page .about-community-grid>div{max-width:none;width:100%}
body .mala-about-page .about-community-grid>img{display:block;width:100%;max-width:100%;height:auto;max-height:none;object-fit:contain;border-radius:24px}
@media(max-width:800px){body .mala-about-page .about-community-grid{grid-template-columns:1fr;gap:18px}body .mala-about-page .about-community-grid>img{max-width:480px;justify-self:center}}

/* Community image proportional to the copy. */
body .mala-about-page .about-community-grid{grid-template-columns:minmax(0,1fr) 400px;gap:28px}
body .mala-about-page .about-community-grid>img{width:400px;max-width:100%;height:auto;max-height:none}
@media(max-width:800px){body .mala-about-page .about-community-grid{grid-template-columns:1fr;gap:18px}body .mala-about-page .about-community-grid>img{width:100%;max-width:360px;justify-self:center}}
/* Preserve the complete admissions entrance photograph. */
body .admissions-crop img{width:100%;height:auto!important;aspect-ratio:auto!important;object-fit:contain!important}

body .mala-about-page .about-community-grid{max-width:1100px;margin-inline:auto;width:100%}
