/* Existing site: alignment and responsive layout corrections only. */
:where(main,section,form,article,h2,h3,div)[id]{scroll-margin-top:128px}
/* Long explanatory copy belongs below its heading, not in a narrow tall column. */
.layout-long-head{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:20px!important}
.layout-long-head>p{width:100%;max-width:78ch!important;margin:0!important}
.layout-long-head>div{min-width:0}
/* Archive cards share image boundaries, text gutters and action baselines. */
.blog-card:not([hidden])>a{display:flex;flex-direction:column;height:100%;min-width:0}
.blog-card .blog-card-image{height:clamp(175px,24vw,250px)!important;flex:none}
.blog-card .blog-card-body{display:flex;flex:1;flex-direction:column;padding:24px!important;min-width:0}
.blog-card .blog-card-body>.blog-read,.blog-card .blog-card-body>span:last-child{display:block;margin-top:auto!important;padding-top:18px}
.blog-card .blog-card-body>p{margin-bottom:0}
.en-blog-card>a{display:flex;flex-direction:column;height:100%;min-width:0}
.en-blog-card-body{display:flex;flex:1;flex-direction:column;min-width:0}
.en-blog-card-body>.en-blog-read{margin-top:auto;padding-top:18px}
/* Four items form two even rows. Keep the existing three/six-item grids. */
@media(min-width:641px){.kids-format-grid:has(>:nth-child(4):last-child),.tv-page .cu-event-grid.tv-service-grid:has(>:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:851px){.en-card-grid:has(>:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Timeline markers sit on the actual center line (42px column gap). */
@media(min-width:601px){.about-timeline>.about-milestone::after{right:-26px}.about-timeline>.about-milestone:nth-child(even)::after{right:auto;left:-25px}}
/* Balanced final rows on tablet; the last item keeps the same content. */
@media(min-width:641px) and (max-width:900px){.kids-story-grid>:last-child:nth-child(3){grid-column:1/-1}.stage-timeline:has(>:nth-child(5):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}.stage-timeline>:last-child:nth-child(5){grid-column:1/-1}}
@media(min-width:601px) and (max-width:900px){.meta-feature-grid>:last-child:nth-child(3){grid-column:1/-1}}
@media(min-width:601px) and (max-width:850px){.en-card-grid>:last-child:nth-child(3){grid-column:1/-1}}
@media(max-width:850px){.about-work-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.about-work-grid>:last-child:nth-child(5){grid-column:1/-1}.en-service .en-timeline>:last-child:nth-child(5){grid-column:1/-1}}
@media(max-width:700px){.blog-card .blog-card-image{height:230px!important}.blog-card .blog-card-body{padding:20px!important}}
/* Center a menu only when it fits; short screens can reach every link. */
#mob,#mobile-menu{overscroll-behavior:contain}
@media(max-height:700px){#mob,#mobile-menu{justify-content:flex-start!important;padding-top:80px!important;padding-bottom:32px!important}}
/* Avoid long card headings forcing a grid column wider than its track. */
.blog-card,.en-blog-card,.kids-format-card,.cu-event-card,.en-card{min-width:0}
/* Legacy archive cards carried their own margins, weights and line heights. */
.blog-card{border-radius:0!important}
.blog-card .blog-card-body>div:first-child{margin-bottom:0!important}
.blog-card .blog-card-body>h2{font-weight:600!important}
.blog-card .blog-card-body>p{margin-top:10px!important;font-size:13px!important;line-height:1.8!important}
.blog-card .blog-card-body>.blog-read,.blog-card .blog-card-body>span:last-child{display:flex!important;align-items:center;gap:9px;font-size:10px!important;line-height:1.5!important;font-weight:700!important;color:#e9bd64!important}
/* The article page already clears the fixed 68px header. */
.article-page>.article-hero{padding-top:72px;padding-bottom:48px}
@media(max-width:600px){.article-page>.article-hero{padding-top:52px;padding-bottom:40px}}
.blog-card .blog-card-body>span:last-child i{display:inline-flex;align-items:center;font-size:12px!important;line-height:1!important}
.blog-card .blog-card-body>span:last-child svg{width:12px;height:12px}

@media(min-width:641px) and (max-width:900px){.stage-timeline>:nth-child(2n)::after{display:none!important}.stage-timeline>:nth-child(3)::after{display:block}}
.blog-card .blog-card-body>span:last-child{min-height:43px!important}

/* Center the bounded home descriptions inside their full-width grid cells. */
@media(max-width:1199px){#stage .col-copy>.col-promo{justify-self:center;margin-inline:auto;width:100%}}
