/* Homepage narrative only. Original navigation, product family and footer styles remain untouched. */
html:root body#empire-type-e-china.empire-type-e #home-main .r7-company-intro .il-hero-grid {
  display:block!important;
}
html:root body#empire-type-e-china.empire-type-e #home-main .r7-company-intro .il-hero-copy {
  max-width:950px;
}
html:root body#empire-type-e-china.empire-type-e #home-main .r7-company-intro {
  padding-block:34px!important;
}
html:root body#empire-type-e-china.empire-type-e #home-main .r7-advantage-grid {
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:24px!important;
  margin:24px 0 0!important;
}
html:root body#empire-type-e-china.empire-type-e #home-main .r7-advantage-grid article {
  min-width:0;
}
html:root body#empire-type-e-china.empire-type-e #home-main .r7-advantage-grid h3 {
  font-size:21px!important;
  line-height:1.3!important;
  margin:0 0 8px!important;
}
html:root body#empire-type-e-china.empire-type-e #home-main .r7-advantage-grid p {
  font-size:17px!important;
  line-height:1.5!important;
  margin:0!important;
}
html:root body#empire-type-e-china.empire-type-e #home-main .r7-industry-grid {
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:20px!important;
}
html:root body#empire-type-e-china.empire-type-e #home-main .r7-industry-card {
  display:flex!important;
  flex-direction:column!important;
  min-width:0;
  margin:0!important;
  background:#fff!important;
  border:1px solid var(--il-line);
  color:var(--il-ink)!important;
  text-decoration:none!important;
}
html:root body#empire-type-e-china.empire-type-e #home-main .r7-industry-card img {
  width:100%!important;
  height:auto!important;
  aspect-ratio:16/10;
  object-fit:cover!important;
  display:block!important;
}
html:root body#empire-type-e-china.empire-type-e #home-main .r7-industry-card h3 {
  font-size:20px!important;
  line-height:1.3!important;
  margin:0!important;
  padding:14px 16px!important;
  min-height:54px;
}
html:root body#empire-type-e-china.empire-type-e #home-main .r7-industry-card:hover {
  border-color:var(--il-blue);
}
html:root body#empire-type-e-china.empire-type-e #home-main #certifications .r7-quality-link {
  font-size:17px!important;
  line-height:1.4!important;
  margin:20px 0 0!important;
}
html:root body#empire-type-e-china.empire-type-e #home-main .r7-factory-scope {
  max-width:980px;
  margin:0 0 24px!important;
}
html:root body#empire-type-e-china.empire-type-e #home-main .r7-factory-grid {
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:24px!important;
}
html:root body#empire-type-e-china.empire-type-e #home-main .r7-factory-group {
  min-width:0;
}
html:root body#empire-type-e-china.empire-type-e #home-main .r7-factory-group>h3 {
  font-size:21px!important;
  line-height:1.3!important;
  margin:0 0 14px!important;
  min-height:2.6em;
}
html:root body#empire-type-e-china.empire-type-e #home-main .r7-factory-pair {
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:18px!important;
}
html:root body#empire-type-e-china.empire-type-e #home-main .r7-factory-photo {
  margin:0!important;
  min-width:0;
  background:#fff!important;
  border:1px solid var(--il-line);
}
html:root body#empire-type-e-china.empire-type-e #home-main .r7-factory-photo img {
  display:block!important;
  width:100%!important;
  height:auto!important;
  aspect-ratio:4/3;
  object-fit:contain!important;
  background:#fff!important;
}
html:root body#empire-type-e-china.empire-type-e #home-main .r7-factory-photo figcaption {
  font-size:17px!important;
  line-height:1.4!important;
  padding:14px 16px!important;
  min-height:3.8em;
}
html:root body#empire-type-e-china.empire-type-e #home-main .r7-factory-actions {
  margin-top:24px!important;
}
html:root body#empire-type-e-china.empire-type-e #home-main #project .project-grid {
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
@media(max-width:640px) {
  html:root body#empire-type-e-china.empire-type-e #home-main .r7-company-intro {padding-block:26px!important}
  html:root body#empire-type-e-china.empire-type-e #home-main .r7-advantage-grid {grid-template-columns:minmax(0,1fr)!important;gap:18px!important}
  html:root body#empire-type-e-china.empire-type-e #home-main .r7-industry-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  html:root body#empire-type-e-china.empire-type-e #home-main .r7-industry-card:first-child {grid-column:1/-1}
  html:root body#empire-type-e-china.empire-type-e #home-main .r7-industry-card:first-child img {aspect-ratio:2.2}
  html:root body#empire-type-e-china.empire-type-e #home-main .r7-industry-card h3 {font-size:17px!important;padding:12px!important;min-height:68px}
  html:root body#empire-type-e-china.empire-type-e #home-main .r7-industry-card:first-child h3 {min-height:0}
  html:root body#empire-type-e-china.empire-type-e #home-main .r7-factory-grid {grid-template-columns:minmax(0,1fr)!important;gap:26px!important}
  html:root body#empire-type-e-china.empire-type-e #home-main .r7-factory-group>h3 {min-height:0;margin-bottom:12px!important;font-size:21px!important}
  html:root body#empire-type-e-china.empire-type-e #home-main .r7-factory-pair {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  html:root body#empire-type-e-china.empire-type-e #home-main .r7-factory-photo figcaption {padding:10px!important;font-size:16px!important;min-height:4.7em}
  html:root body#empire-type-e-china.empire-type-e #home-main #project .project-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html:root body#empire-type-e-china.empire-type-e #home-main #project .project-card:first-child {grid-column:1/-1}
}

/* Role cards only: let paragraph content determine height before the link row. */
html:root body.empire-type-e:is(#top,#empire-type-e-china) #home-main #project .project-grid {
  grid-template-rows:none!important;
  grid-auto-rows:auto!important;
  align-items:stretch!important;
}
html:root body.empire-type-e:is(#top,#empire-type-e-china) #home-main #project .project-card {
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  grid-row:auto!important;
  grid-template-rows:none!important;
  row-gap:14px!important;
}
html:root body.empire-type-e:is(#top,#empire-type-e-china) #home-main #project .project-card>:is(svg,h3,p,a) {
  position:static!important;
  inset:auto!important;
  grid-row:auto!important;
  grid-column:auto!important;
  align-self:stretch!important;
  flex:0 0 auto!important;
  max-height:none!important;
  margin-block:0!important;
}
html:root body.empire-type-e:is(#top,#empire-type-e-china) #home-main #project .project-card>:is(h3,p,a) {
  height:auto!important;
  min-height:0!important;
}
html:root body.empire-type-e:is(#top,#empire-type-e-china) #home-main #project .project-card>a {
  min-height:44px!important;
  margin-top:auto!important;
}
@media(max-width:360px) {
  html:root body.empire-type-e:is(#top,#empire-type-e-china) #home-main #project .project-grid {
    grid-template-columns:minmax(0,1fr)!important;
  }
  html:root body.empire-type-e:is(#top,#empire-type-e-china) #home-main #project .project-card {
    grid-column:auto!important;
  }
}
