/* Almaty content only. The shared cover/header/footer/homepage are not restyled. */
.miras-editorial-body:has(.miras-almaty-content){padding-block:0 40px!important;background:#fff}
.miras-editorial-content:has(.miras-almaty-content){width:min(var(--miras-page-wide),100%);max-width:none}
.miras-almaty-content{font-size:16px;font-weight:300;line-height:1.375;color:#333;isolation:isolate}
.miras-almaty-content :where(.wp-block-group,p,h2,h3,h4,h5,h6,figure,ul,ol,li){margin:0;max-width:none;min-width:0;padding:0;border-radius:0;box-shadow:none}
.miras-almaty-content :where(h2,h3,h4,h5,h6){font-family:inherit;font-weight:700;color:#153052;letter-spacing:-.025em;text-wrap:pretty}
.miras-almaty-content :where(h2,h3,h4,h5,h6)::before,.miras-almaty-content :where(h2,h3,h4,h5,h6)::after{content:none!important}
.miras-almaty-content :where(p){font-weight:300;line-height:1.375}
.miras-almaty-content :where(ul,ol){padding-left:20px;list-style-position:outside}
.miras-almaty-content :where(ul){list-style-type:square}
.miras-almaty-content :where(li){padding:0 0 0 2px;margin-bottom:8px}
.miras-almaty-content li::marker{color:#c8a34a}
.miras-almaty-content li::before{content:none!important}
.miras-almaty-content a{color:#244f76;text-underline-offset:3px}
.miras-almaty-content :where(.wp-block-image){width:100%}
/* Give section photographs space after copy, lists and fact grids. Inline
   spacing chosen in the block editor continues to take precedence. */
.miras-almaty-content .wp-block-group:has(> .wp-block-heading:first-child) > .wp-block-image:not(:first-child){margin-block-start:clamp(24px,2.5vw,32px)}
.miras-almaty-content :where(.wp-block-image img){display:block;width:100%;height:auto;max-width:100%;border-radius:4px;object-position:var(--am-object-position,50% 50%)}
.miras-almaty-content :where(.wp-block-image[style*="aspect-ratio"] img){height:100%}
.miras-almaty-content figure.miras-almaty-float-media{float:none;width:100%;margin:0 0 24px}
@media(min-width:640px){.miras-almaty-content figure.miras-almaty-float-media{float:right;width:min(50%,32rem);margin:0 0 24px 40px}}
@media(min-width:1024px){.miras-almaty-content figure.miras-almaty-float-media{margin-left:56px}}
@media(min-width:1280px){.miras-almaty-content figure.miras-almaty-float-media{width:min(52%,38rem)}}
.miras-almaty-content .miras-almaty-icon{display:block;flex:none;width:22px;height:22px;color:#315576}
.miras-almaty-content .miras-almaty-map{display:block;width:100%;height:420px;border:0;border-radius:6px}
.miras-almaty-content .miras-almaty-table{overflow-x:auto;margin-block:20px}
.miras-almaty-content .miras-almaty-table table{width:100%;border-collapse:collapse}
.miras-almaty-content .miras-almaty-table :where(td,th){padding:14px 16px;border:1px solid #e2e7ec;vertical-align:top}
.miras-almaty-content .miras-almaty-table th{background:#153052;color:white;text-align:left}
.miras-almaty-content .miras-almaty-disclosure{padding:0;background:none;border:0;border-bottom:1px solid #e5e7eb;border-radius:0;margin:0}
.miras-almaty-content .miras-almaty-disclosure summary{padding:18px 36px 18px 0;font-weight:650;color:#153052;cursor:pointer;list-style:none;position:relative}
.miras-almaty-content .miras-almaty-disclosure summary::after{content:'+';position:absolute;right:8px;top:18px;background:none;border:0;width:auto;height:auto;color:#153052}
.miras-almaty-content .miras-almaty-disclosure[open] summary::after{content:'−'}
.miras-almaty-content .miras-almaty-disclosure> :not(summary){margin-bottom:16px}
.miras-almaty-content .miras-almaty-tabs{margin-top:28px}
.miras-almaty-content .miras-almaty-tablist{display:flex;overflow:auto;gap:8px;border-bottom:1px solid #ddd;margin-bottom:28px}
.miras-almaty-content .miras-almaty-tablist button{flex:1;min-width:max-content;padding:14px 18px;color:#153052;font-family:inherit;font-size:14px;font-weight:600;line-height:1.4;border:0;border-bottom:2px solid transparent;background:transparent;cursor:pointer}
.miras-almaty-content .miras-disclosure__clip{overflow:hidden;margin:0}
.miras-almaty-content .miras-disclosure__content{display:flow-root;padding:0 32px 18px 0}
.miras-almaty-content .miras-disclosure__content> :not(:last-child){margin-bottom:14px}
.miras-almaty-content .miras-almaty-tablist button[aria-selected=true]{border-bottom-color:#153052}
.miras-almaty-content [hidden]{display:none!important}
.miras-almaty-content .miras-almaty-button .wp-block-button__link{background:#d3aa40;color:#153052;border-radius:0;border:1px solid #d3aa40;padding:13px 22px}
.miras-almaty-content :focus-visible{outline:2px solid #d3aa40;outline-offset:4px}
.miras-almaty-news-copy p{margin-bottom:20px}
.miras-almaty-calendar{padding-block:40px}
.miras-almaty-calendar h2{margin:32px 0 18px}
.miras-almaty-date-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.miras-almaty-date-grid h3{margin-bottom:8px}
.miras-almaty-events{overflow:auto}
.miras-almaty-events table{width:100%;border-collapse:collapse}
.miras-almaty-events :where(td,th){text-align:left;padding:16px;border-bottom:1px solid #e3e7eb}
.miras-almaty-calendar-tools{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}
.miras-almaty-calendar-tools input{border:1px solid #ccd5df;padding:10px;font:inherit;color:#153052}
@media(max-width:767px){.miras-almaty-content{overflow-wrap:break-word}.miras-almaty-date-grid{grid-template-columns:1fr}.miras-almaty-content .miras-almaty-map{height:340px}.miras-almaty-content .wp-block-group{flex-wrap:wrap}.miras-almaty-content .miras-almaty-tablist button{min-width:0;padding-inline:12px;white-space:normal;overflow-wrap:anywhere}}
@media(prefers-reduced-motion:no-preference){.miras-almaty-tab-panel:not([hidden]){animation:miras-almaty-panel-in 180ms ease-out}@keyframes miras-almaty-panel-in{from{opacity:.6}to{opacity:1}}}

/* Client review: keep captured content aligned to the page-cover grid. */
.miras-page--about-nnef-foundation .miras-editorial-body:has(.miras-almaty-content){
    padding-top:clamp(28px,3vw,40px)!important;
}
.miras-page--about-vacancies .miras-almaty-content .am-043980209e{
    margin-bottom:clamp(24px,2.5vw,32px);
}
.miras-page--academics-educational-program .am-f21b73cea8:has(.am-87536c5782){
    padding-top:16px;
}
.miras-page--academics-educational-program .miras-almaty-content > .am-8231465ffe{
    padding-bottom:16px;
}
.miras-page--academics-educational-program .am-dcba7f4201{
    text-align:center;
}
.miras-page--academics-educational-program .am-dcba7f4201 .wp-block-buttons{
    justify-content:center;
}
.miras-page--academics-guidance-counselor .miras-almaty-content .am-f21b73cea8 > .am-54dc1609c2,
.miras-page--academics-high-school .miras-almaty-content .am-d542d07eb4 > .am-6c7fef95ba,
.miras-page--for-alumni .miras-almaty-content .am-f21b73cea8 > .am-54dc1609c2{
    padding-inline:0;
}
.miras-page--academics-high-school .am-d3dadcfead{
    border-left:0;
    padding-left:20px;
    list-style-type:square;
}
.miras-page--parents-association .miras-almaty-content .am-db3462b6bf{
    margin-bottom:24px;
}
.miras-page--for-alumni .miras-almaty-content > .am-8231465ffe{
    padding-bottom:0;
}
.miras-page--for-alumni .miras-almaty-content .am-f21b73cea8{
    padding-top:16px;
}
.miras-page--campus-life-sjwp-kazakhstan .miras-almaty-content p.am-8fd5ae6747,
.miras-page--campus-life-sjwp-kazakhstan .miras-almaty-content p.am-a45eca6a31{
    font-weight:300;
}

/* Programme navigation uses the same grid as the cover and adjacent sections.
   Semantic classes isolate these defaults from the captured per-card offsets. */
.miras-almaty-content .wp-block-group.miras-almaty-programme-stages > .miras-almaty-programme-content{
    padding-inline:0;
}
.miras-almaty-content .miras-almaty-programme-stages .miras-almaty-programme-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-auto-rows:1fr;
    gap:24px;
}
.miras-almaty-content .miras-almaty-programme-stages .miras-almaty-programme-card{
    position:relative;
    display:flex;
    flex-direction:column;
    height:auto;
    border:1px solid #e8ecf0;
    border-radius:16px;
    background:#fff;
}
.miras-almaty-content .miras-almaty-programme-card > .miras-almaty-programme-card-body{
    display:flex;
    flex:1;
    flex-direction:column;
    gap:12px;
    padding:clamp(24px,2vw,32px);
}
.miras-almaty-content .miras-almaty-programme-card-body > :is(p,h3,.wp-block-group){
    margin:0;
}
.miras-almaty-content .miras-almaty-programme-card-body > .miras-almaty-programme-cta{
    display:flex;
    align-items:center;
    gap:8px;
    margin-block-start:auto;
    padding:12px 0 0;
    color:#244f76;
    font-size:14px;
    font-weight:500;
    line-height:20px;
    letter-spacing:0;
    text-transform:none;
}
.miras-almaty-content .miras-almaty-programme-cta p{
    margin:0;
    color:inherit;
    font:inherit;
}
.miras-almaty-content .miras-almaty-programme-cta a{
    display:inline-flex;
    align-items:center;
    min-height:44px;
    color:inherit;
    text-decoration:none;
}
.miras-almaty-content .miras-almaty-programme-cta .miras-almaty-icon{
    width:20px;
    height:20px;
    margin:0;
    color:inherit;
}
/* One real editable link and one keyboard stop per card; no JS navigation.
   Do not stretch it in Gutenberg, where the other blocks must remain editable. */
.miras-editorial-content .miras-almaty-programme-cta a::after{
    content:"";
    position:absolute;
    inset:0;
    z-index:1;
    border-radius:16px;
}
.miras-editorial-content .miras-almaty-programme-card:hover{
    border-color:#c6a044;
}
.miras-editorial-content .miras-almaty-programme-card:hover .miras-almaty-programme-cta a{
    text-decoration:underline;
    text-underline-offset:4px;
}
.miras-editorial-content .miras-almaty-programme-card:has(a:focus-visible){
    outline:2px solid #b38b2e;
    outline-offset:4px;
}
.miras-editorial-content .miras-almaty-programme-cta a:focus-visible{
    outline:none;
}
@media(max-width:767px){
    .miras-almaty-content .miras-almaty-programme-stages .miras-almaty-programme-grid{
        grid-template-columns:minmax(0,1fr);
        grid-auto-rows:auto;
    }
}
