/* V4.1.5 services card grid: five-across on wide desktop, 3+2 on mid widths.
   Loaded only on the six services index pages (zh/en/es/ja/ko/ru), after elc-v413.
   Below 1021px the v401 breakpoints (2 columns, then 1) stay untouched. */
@media (min-width:1280px){
  body.v26-app .elc401-services-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
  .elc401-service img{height:auto;aspect-ratio:55/37;object-fit:cover}
  .elc401-service>div{padding:13px 13px 14px;gap:8px}
  .elc401-service h3{font-size:17px;line-height:1.4}
  .elc401-service p{font-size:12.5px;line-height:1.65}
  .elc401-linkrow{padding-top:10px}
  .elc401-linkrow a{font-size:12.5px}
}
@media (min-width:1021px) and (max-width:1279px){
  body.v26-app .elc401-services-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
  .elc401-service img{height:auto;aspect-ratio:55/37;object-fit:cover}
}

/* design-fix-20261111 — hero/logo/body-image layout unification. Append-only override (no content change, no old rule removed). Source note: build/assets is the source layer — no out-of-build copy of these CSS files exists; the nightly story generator writes HTML only and does not regenerate CSS. */
/* 1) Header logo: 50px desktop / 40px mobile, width auto, contain (no stretch) */
header .brand-logo,.topbar .brand-logo,body.v26-app .topbar .brand.elc405-brand img.brand-logo{height:50px!important;width:auto!important;max-width:100%!important;max-height:50px!important;object-fit:contain!important;object-position:left center!important;aspect-ratio:auto!important}
@media(max-width:720px){header .brand-logo,.topbar .brand-logo,body.v26-app .topbar .brand.elc405-brand img.brand-logo{height:40px!important;max-height:40px!important}}
/* 2) Homepage hero: content-driven (copy + background image column, no sidebar cards) — tighten spacing instead of a fixed height so no copy is cropped */
body.v26-app .v26-home .v26-hero-grid{min-height:0!important}
body.v26-app .v26-home .v26-hero-copy{padding:24px 26px 20px 4px!important}
body.v26-app .v26-home .v26-hero h1{margin:8px 0!important;font-size:clamp(26px,2.4vw,38px)!important;line-height:1.25!important}
body.v26-app .v26-home .v26-hero .age-note{margin:6px 0 0!important}
body.v26-app .v26-home .v26-hero .elc-p0{margin:10px 0 4px!important}
body.v26-app .v26-home .v26-hero .elc-p0>p{margin-bottom:6px!important}
@media(min-width:831px){body.v26-app .v26-home .v26-hero .elc-p0 .elc-theme1+p{font-size:clamp(24px,3vw,34px)!important}}
body.v26-app .v26-home .v26-hero-image{min-height:200px!important;max-height:300px!important;background-size:cover!important}
@media(max-width:830px){body.v26-app .v26-home .v26-hero-copy{padding:18px 0 14px!important}body.v26-app .v26-home .v26-hero-image{min-height:140px!important;max-height:170px!important}}
/* 3) Inner page heroes: aim <=34vh desktop / <=26vh mobile; text heroes keep min-height semantics (spacing tightened, text never cropped) */
.city-hero{min-height:300px!important}
.city-hero-text{padding:22px 0!important}
.city-hero h1{font-size:clamp(30px,3.4vw,46px)!important;margin:8px 0!important}
.city-hero p{line-height:1.6!important}
.city-hero .elc-p0{margin:10px 0 4px!important}
.city-hero .elc-p0>p{margin-bottom:6px!important}
.nationwide-hero{min-height:0!important;padding:20px 0 22px!important}
.nationwide-hero h1{font-size:clamp(26px,2.6vw,36px)!important}
.v330-service-hero{margin:16px 0!important}
.v330-service-hero img{max-height:264px!important}
body.v26-app .elc310-article-hero img{height:300px!important;max-height:300px!important;object-fit:cover!important}
.elc405-membership-hero,.elc404-events-hero{min-height:0!important}
.elc404-events-hero{padding:20px 22px!important}
@media(max-width:760px){.city-hero{min-height:210px!important}.city-hero-text{padding:16px 0!important}body.v26-app .elc310-article-hero img{height:210px!important;max-height:210px!important}.v330-service-hero img{max-height:200px!important}}
/* 4) Body images: cap oversize at 68vh, cover-crop instead of stretching; deliberate contain cases (logos, service-hero) keep contain */
main img,article img,figure img{max-height:68vh;object-fit:cover}
main img.brand-logo,main img[src*="logo"],.v330-service-hero img{object-fit:contain!important}
