/* Chinese reading and content-aware layouts; source content remains in ACF. */
@layer stm-chinese {
html[lang^="zh"] body.stm-reference-pages {--rp-muted:#526c82!important}
html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-filter-row button[aria-pressed="false"] {color:#49677f!important}

html[lang^="zh"] body .stm-respdf-card-body h2 {font-size:clamp(21px,1.65vw,28px)!important;line-height:1.5!important;overflow-wrap:anywhere!important;margin:18px 0!important}
html[lang^="zh"] body .stm-respdf-card-body {padding:24px!important}
html[lang^="zh"] body .stm-respdf-card {border-radius:6px!important}
html[lang^="zh"] body .stm-respdf-summary {font-size:16px!important;line-height:1.8!important}
html[lang^="zh"] body.stm-official-brand.stm-reference-home .stm-rh-header .stm-rh-nav>a,
html[lang^="zh"] body.stm-official-brand.stm-reference-home .stm-rh-header .stm-rh-nav summary {font-size:15px!important;line-height:1.5!important}
html[lang^="zh"] body.rp-page-legacy main {padding-top:var(--stm-header-height,84px)!important}
html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-muted,
html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-heading .rp-muted,
html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-product-card .rp-muted {font-size:16px!important;line-height:1.8!important}
html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-filter-row,
html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-filter-meta,
html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-task-options button,
html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-intent-filters button,
html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-hot button {font-size:14px!important;line-height:1.6!important}
html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-filter-row button {min-height:36px!important;padding:6px 13px!important;font-size:14px!important}
html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-filter-row {grid-template-columns:120px minmax(0,1fr)!important;gap:12px!important;margin-bottom:12px!important}
html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-chips span {font-size:12px!important;line-height:1.5!important}
html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-product-card:not([hidden]) {display:flex!important;flex-direction:column!important}
html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-product-card>.rp-product-photo {flex:none!important}
html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-product-card>div {display:flex!important;flex:1!important;flex-direction:column!important;gap:10px!important;padding:20px!important}
html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-product-card>div>p {margin:0!important}
html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-product-card>div>.rp-link {margin-top:auto!important;padding-top:10px!important;min-height:40px!important;align-content:center!important}
html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-product-card .rp-chips {margin:0 0 6px!important}
html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-challenge-grid[data-item-count="3"] {grid-template-columns:repeat(3,minmax(0,1fr))!important}
html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-challenge-grid[data-item-count="2"] {grid-template-columns:repeat(2,minmax(0,1fr))!important}
html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-challenge-grid[data-item-count="1"] {grid-template-columns:1fr!important}
html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-overview-points {grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important}
html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-consult-float {position:fixed!important;inset:auto 24px 24px auto!important;display:flex!important;align-items:center!important;gap:10px!important;width:auto!important;min-height:48px!important;padding:10px 16px!important;border-radius:6px!important;box-shadow:0 4px 20px #062e5126!important;z-index:30!important}
html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-consult-float>span {display:none!important}
html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-consult-float>strong {padding:0!important;background:none!important;color:inherit!important;font-size:14px!important;white-space:nowrap!important}
html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-consult-float>i {font-size:20px!important;margin:0!important}
html[lang^="zh"] body.stm-reference-home .stm-rh-about .stm-rh-about-grid {grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)!important;grid-template-areas:"title image" "description image" "stats stats"!important;gap:24px 6%!important;align-items:start!important}
html[lang^="zh"] body.stm-reference-home .stm-rh-about .stm-rh-about-title {grid-area:title!important}
html[lang^="zh"] body.stm-reference-home .stm-rh-about .stm-rh-about-title h2 {font-size:clamp(32px,2.8vw,48px)!important;line-height:1.4!important}
html[lang^="zh"] body.stm-reference-home .stm-rh-about .stm-rh-about-desc {grid-area:description!important;max-width:42em!important;margin:0!important}
html[lang^="zh"] body.stm-reference-home .stm-rh-about .stm-rh-about-image {grid-area:image!important;position:relative!important;inset:auto!important;align-self:stretch!important;min-height:300px!important;clip-path:none!important;border-radius:6px!important;overflow:hidden!important}
html[lang^="zh"] body.stm-reference-home .stm-rh-about .stm-rh-about-image img {position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important}
html[lang^="zh"] body.stm-reference-home .stm-rh-about .stm-rh-stats {grid-area:stats!important;margin-top:12px!important}
html[lang^="zh"] body.stm-reference-home .stm-rh-footer a,
html[lang^="zh"] body.stm-reference-home .stm-rh-footer p {font-size:14px!important;line-height:1.8!important}
html[lang^="zh"] body.stm-reference-pages .stm-rp [hidden] {display:none!important}
html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-spec-grid th,
html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-spec-grid td {font-size:16px!important;line-height:1.8!important;padding:14px 18px!important}
html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-spec-tabs button {font-size:15px!important;min-height:44px!important}
html[lang^="zh"] body.stm-reference-pages .stm-rp.rp-metrics>.rp-wrap {grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important}
html[lang^="zh"] body.stm-reference-pages .stm-rp.rp-metrics .rp-metric-text strong {font-size:18px!important;line-height:1.6!important}
html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-readmore p,
html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-overview-points p,
html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-mission-preview p {font-size:16px!important;line-height:1.8!important}
html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-link {font-size:14px!important}
html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-breadcrumb {font-size:13px!important}
@media(max-width:767px){
 html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-overview-points {grid-template-columns:1fr!important}
 html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-consult-float {display:none!important}

 html[lang^="zh"] body.stm-reference-pages .stm-rp.rp-metrics>.rp-wrap {grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-spec-grid th,
 html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-spec-grid td {font-size:14px!important;padding:12px!important}

 html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-filter-row {grid-template-columns:1fr!important;gap:6px!important;margin-bottom:20px!important}
 html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-filter-row button {min-height:40px!important}
 html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-challenge-grid[data-item-count] {grid-template-columns:1fr!important}
 html[lang^="zh"] body.stm-reference-home .stm-rh-about .stm-rh-about-grid {grid-template-columns:1fr!important;grid-template-areas:"title" "description" "stats"!important;gap:20px!important}
 html[lang^="zh"] body.stm-reference-home .stm-rh-about .stm-rh-about-image {display:none!important}
 html[lang^="zh"] body.stm-reference-pages .stm-rp .rp-consult-float {right:16px!important;bottom:16px!important}
}
@media(prefers-reduced-motion:reduce){html[lang^="zh"] body.stm-reference-pages .stm-rp *,html[lang^="zh"] body .stm-rh * {scroll-behavior:auto!important}}
}

/* Editorial product overview: full source copy once; capabilities remain in their own tabs. */
@layer stm-chinese {
@media(min-width:1101px){
html[lang^="zh"] body.stm-reference-pages.stm-ui-refined .rp-overview.stm-overview-editorial>.rp-wrap{grid-template-columns:minmax(180px,1fr) minmax(0,3fr)!important;align-items:start!important;gap:4%!important}
html[lang^="zh"] body.stm-reference-pages.stm-ui-refined .rp-overview.stm-overview-editorial h2{margin:0!important;font-size:clamp(24px,2vw,34px)!important;line-height:1.4!important}
html[lang^="zh"] body.stm-reference-pages.stm-ui-refined .rp-overview.stm-overview-editorial p{max-width:70ch!important;margin:0!important;line-height:1.85!important}
}
html[lang^="zh"] body.stm-reference-pages.stm-ui-refined.stm-official-brand .rp-result-card>div:not(:empty){background:#062a40ed!important;padding:12px 16px!important;left:0!important;right:0!important;bottom:0!important}
html[lang^="zh"] body.stm-reference-pages.stm-ui-refined.stm-official-brand .rp-result-card>div h3{margin:0!important;font-size:clamp(15px,1.05vw,20px)!important;line-height:1.45!important;color:#fff!important}
html[lang^="zh"] body.stm-reference-pages.stm-ui-refined.stm-official-brand .rp-result-card>div p{margin:4px 0 0!important;color:#cee4f2!important}
}
