/* Homepage-only programme layout: full-width heading, aligned four programme cards. */
body[data-page="index"] .section.education{display:block;max-width:1340px;padding:38px 4% 42px;margin:auto}
body[data-page="index"] .education>div:first-child{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:40px;align-items:end}
body[data-page="index"] .education>div:first-child>.label{grid-column:1/-1;display:block;margin-bottom:7px}
body[data-page="index"] .education>div:first-child>h2{font-size:clamp(28px,2.5vw,35px);line-height:1.2;margin:8px 0 0;max-width:600px}
body[data-page="index"] .education>div:first-child>p{font-size:15px;line-height:1.85;margin:0 0 3px;max-width:540px}
body[data-page="index"] .education>.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;gap:22px;margin-top:26px;align-items:stretch}
body[data-page="index"] .education .card{display:flex;flex-direction:column;min-width:0;height:100%;background:#0a2944}
body[data-page="index"] .education .card>.photo{width:100%;flex:0 0 auto;aspect-ratio:323/90!important;min-height:0!important}
body[data-page="index"] .education .card-copy{position:static;flex:1;display:flex;flex-direction:column;align-items:flex-start;padding:20px 23px 22px;min-width:0;background:#0a2944}
body[data-page="index"] .education .card-copy h3{font-size:22px;line-height:1.25;min-height:2.5em;margin:0 0 13px;overflow-wrap:break-word}
body[data-page="index"] .education .card-copy p{font-size:12px;line-height:1.7;margin:0 0 15px;color:#d4e4f0}
body[data-page="index"] .education .card-copy a{margin-top:auto;display:inline-block;font-size:14px;line-height:1.6}
@media(max-width:850px){body[data-page="index"] .section.education{padding:30px 5%}body[data-page="index"] .education>div:first-child{grid-template-columns:1fr;gap:13px}body[data-page="index"] .education>div:first-child>.label{margin:0}body[data-page="index"] .education>div:first-child>h2{margin:0;font-size:30px}body[data-page="index"] .education>div:first-child>p{margin:0;max-width:650px}body[data-page="index"] .education .card-copy{padding:18px 19px 20px}body[data-page="index"] .education .card-copy h3{font-size:20px}}
@media(max-width:600px){body[data-page="index"] .education>.grid{grid-template-columns:1fr;grid-auto-rows:auto;gap:20px;margin-top:23px}body[data-page="index"] .education .card-copy h3{min-height:0;font-size:22px;line-height:1.3}body[data-page="index"] .education .card-copy p{margin-bottom:14px}body[data-page="index"] .education .card-copy a{margin-top:0}}
/* A shared rhythm for the homepage and content-page families. */
body[data-page="index"] .viewport-photo{position:relative;overflow:hidden}
body[data-page="index"] .viewport-photo svg{display:block;position:absolute;inset:0;width:100%;height:100%}
body[data-page="index"] .hero>.viewport-photo{position:absolute;inset:0;aspect-ratio:auto;width:100%;height:100%}
body[data-page="index"] .hero>.photo:after{background:linear-gradient(90deg,#081d32 0%,#081d32ed 45%,#081d3299 59%,transparent 78%)}
body[data-page="index"] .education .card>.viewport-photo{aspect-ratio:16/8!important}
body[data-page="index"] .gallery,body[data-page="index"] main>.international{max-width:1340px;margin:auto;padding:38px 4%;gap:30px;align-items:stretch;grid-template-columns:1fr 1fr}
body[data-page="index"] .gallery>.viewport-photo,body[data-page="index"] main>.international>.viewport-photo{aspect-ratio:auto!important;align-self:stretch;min-height:270px}
body[data-page="index"] .gallery>.copy,body[data-page="index"] main>.international>.copy{padding:16px 10px 15px;align-self:center;min-width:0}
body[data-page="index"] .copy h2{font-size:clamp(29px,2.4vw,35px);line-height:1.2;margin:12px 0 18px}
body[data-page="index"] .copy p{font-size:15px;line-height:1.85;margin:0 0 14px}
body[data-page="index"] .blue>.section{max-width:1340px;padding:38px 4%;gap:32px!important;align-items:stretch}
body[data-page="index"] .blue .viewport-photo{aspect-ratio:auto!important;min-height:340px;align-self:stretch}
body[data-page="index"] .blue h2{font-size:clamp(29px,2.4vw,35px);line-height:1.2;margin:12px 0 18px}
body[data-page="index"] .themes div{padding:13px 0;display:flex;align-items:center;gap:18px;font-size:15px;line-height:1.5}
body[data-page="index"] .themes b{margin:0;font-size:28px;flex-shrink:0}
body[data-page="index"] .band{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:42px;padding:34px max(4%,calc((100% - 1230px)/2));align-items:center}
body[data-page="index"] .band h2{font-size:31px;line-height:1.2;margin:0 0 14px}
body[data-page="index"] .band .steps{gap:15px;align-items:flex-start;font-size:14px;line-height:1.5}
body[data-page="index"] .strip{max-width:1340px;margin:auto;padding:16px 4%;gap:0;grid-template-columns:repeat(4,minmax(0,1fr))}
body[data-page="index"] .strip a{font-size:14px;line-height:1.6;min-width:0}
.esas-inner-page .inner-card-grid,.esas-inner-page .programme-main{align-items:stretch}
.esas-inner-page .content-panel{height:auto;min-width:0;overflow-wrap:break-word}
.esas-inner-page .content-panel h2{font-size:25px;line-height:1.3}
.esas-inner-page .content-panel p{line-height:1.85}
.esas-inner-page .programme-sidebar .content-panel{height:auto}
.esas-inner-page .pathway-grid{align-items:stretch}
.esas-inner-page .pathway-card{display:flex;flex-direction:column;min-width:0}
.esas-inner-page .pathway-card h2{font-size:26px;line-height:1.3;min-height:2.6em}
.esas-inner-page .pathway-card .programme-link:last-child{margin-top:auto}
.esas-inner-page .laboratory-grid{align-items:stretch}
.esas-inner-page .laboratory-card{display:flex;flex-direction:column;align-items:flex-start}
.esas-inner-page .laboratory-card .programme-link{flex:1;display:block;width:100%}
.esas-admissions-page .admissions-programme-grid{align-items:stretch}
.esas-admissions-page .admissions-card{display:flex;flex-direction:column}
.esas-admissions-page .admissions-card h3{min-height:2.7em;margin-bottom:19px}
.esas-admissions-page .admissions-card .tuition-table-wrap{margin-top:auto;width:100%;min-width:0}
.international-page .international-format-grid,.international-page .international-labs,.international-page .international-networks{align-items:stretch}
.international-page .international-lab,.international-page .international-network{display:flex;flex-direction:column}
.international-page .international-lab .inline-link,.international-page .international-network .inline-link{margin-top:auto;align-self:flex-start}
.international-page .international-steps h3{min-height:2.7em}
@media(max-width:1000px){body[data-page="index"] .band{grid-template-columns:1fr;gap:20px}.esas-inner-page .pathway-card h2{min-height:0}}
@media(max-width:850px){body[data-page="index"] .gallery,body[data-page="index"] main>.international,body[data-page="index"] .blue>.section{grid-template-columns:1fr;padding:30px 5%;gap:23px!important}body[data-page="index"] .gallery>.viewport-photo,body[data-page="index"] main>.international>.viewport-photo{min-height:0;aspect-ratio:16/8!important}body[data-page="index"] .blue .viewport-photo{min-height:0;aspect-ratio:16/9!important}body[data-page="index"] .gallery>.copy,body[data-page="index"] main>.international>.copy{padding:0}body[data-page="index"] .strip{grid-template-columns:repeat(2,minmax(0,1fr))}.esas-admissions-page .admissions-card h3{min-height:0}}
@media(max-width:600px){body[data-page="index"] .hero>.viewport-photo{inset:0;opacity:.5}body[data-page="index"] .hero-copy{padding-bottom:35px}body[data-page="index"] .hero>.photo:after{background:linear-gradient(90deg,#081d32e6,#081d3280)}body[data-page="index"] .strip{padding:12px 4%}body[data-page="index"] .strip a{padding:10px;font-size:13px}body[data-page="index"] .education .card>.viewport-photo{aspect-ratio:16/8!important}body[data-page="index"] .band{padding:28px 5%}body[data-page="index"] .band .steps{display:grid;grid-template-columns:1fr 1fr;gap:18px}.international-page .international-steps h3{min-height:0}}
@media(min-width:1100px){body[data-page="index"] .education>.grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}body[data-page="index"] .education .card-copy{padding:18px 19px 20px}body[data-page="index"] .education .card-copy h3{font-size:20px;line-height:1.3;min-height:3.9em;flex:1}body[data-page="index"] .education .card-copy p{font-size:11px}body[data-page="index"] .education .card-copy a{margin-top:0}}
