/* Final multilingual layout guard. The language control is part of normal page flow. */
#tdLanguageHost{width:min(1160px,calc(100% - 28px));margin:12px auto 4px;display:flex;align-items:center;justify-content:flex-start;position:relative!important;z-index:20;min-height:42px}
#tdLanguageHost .tdLanguageSwitcher,#tdLanguageHost .tdLanguageSwitcherInline,#tdLanguageHost .tdLanguageSwitcherFloating{position:static!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;transform:none!important;margin:0!important;z-index:auto!important;box-shadow:0 6px 20px rgba(15,23,42,.08)!important;flex:0 0 auto}
body.modalOpen #tdLanguageHost{z-index:0}

/* Foreign-language copy must be allowed to grow vertically instead of colliding. */
html:not([lang="zh-CN"]) :is(.homeFeature,.productTaskCard,.tdHomeReviewCard,.memberCard,.row,.pricePlan,.pricingGroupTabs button,.pricingGroupCapacity,.membershipHead,.membershipBody,.purchaseAction,.tdRedeemCard,.card,.toolbar){height:auto!important;max-height:none!important}
html:not([lang="zh-CN"]) :is(.productTaskCopy,.homeFeature,.tdHomeReviewCopy,.tdHomeReviewDue,.rowCopy,.memberHead>div,.pricePlan,.pricingGroupCapacity,.membershipHead>div,.tdRedeemHead>div){min-width:0!important}
html:not([lang="zh-CN"]) :is(.productTaskCopy strong,.productTaskCopy small,.homeFeatureKicker,.homeFeature strong,.homeFeature span,.tdHomeReviewCopy span,.tdHomeReviewCopy strong,.tdHomeReviewCopy p,.tdHomeReviewDue span,.rowTitle,.rowDesc,.memberEyebrow,.memberTitle,.memberDate,.usageText,.trialTitle,.trialDesc,.priceBadge,.priceName,.pricePeriod,.priceDesc,.priceValueNote,.pricePlanCheck,.capacityList,.capacityNote,.pricingGroupTabs b,.pricingGroupTabs span,.membershipTitle,.membershipSub,.membershipStageTitle,.purchaseFineprint,.purchaseNotice,.tdRedeemTitle,.tdRedeemDesc,.tdStudySub,.tdStudyTitle,.retentionNotice,.smartHistoryMeta,.smartHistoryEmpty){white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;word-break:normal!important;line-height:1.4!important}
html:not([lang="zh-CN"]) .productTaskCard{align-items:flex-start!important;grid-auto-rows:auto!important}
html:not([lang="zh-CN"]) .productTaskCopy{align-self:stretch!important}
html:not([lang="zh-CN"]) .productTaskCopy strong{min-height:0!important}
html:not([lang="zh-CN"]) .homeFeature{align-content:start!important}
html:not([lang="zh-CN"]) .tdHomeReviewCard{align-items:center!important;row-gap:12px!important}
html:not([lang="zh-CN"]) .tdHomeReviewCopy p{margin-top:6px!important}
html:not([lang="zh-CN"]) .pricingGrid{align-items:stretch!important;grid-auto-rows:auto!important}
html:not([lang="zh-CN"]) .pricePlan{display:flex!important;flex-direction:column!important;align-items:stretch!important}
html:not([lang="zh-CN"]) .priceDesc{min-height:0!important}
html:not([lang="zh-CN"]) .capacityList{padding-inline-start:20px!important}
html:not([lang="zh-CN"]) .pricingGroupTabs button{min-height:72px!important;padding:12px 10px!important}
html:not([lang="zh-CN"]) .membershipSheet{overflow-x:hidden!important}
html:not([lang="zh-CN"]) .membershipBody>*{min-width:0!important}

@media(max-width:760px){
 #tdLanguageHost{width:calc(100% - 20px);margin:8px auto 2px;min-height:38px}
 #tdLanguageHost .tdLanguageSwitcher{max-width:100%!important;padding:5px 6px!important}
 #tdLanguageHost .tdLanguageSwitcher label{display:inline!important;font-size:10.5px!important}
 #tdLanguageHost .tdLanguageSwitcher select{min-width:104px!important;max-width:150px!important;font-size:11px!important}
 html:not([lang="zh-CN"]) .productTaskGrid,html:not([lang="zh-CN"]) .homeFeatureStrip{grid-template-columns:1fr!important}
 html:not([lang="zh-CN"]) .productTaskCard{min-height:0!important;padding:14px!important}
 html:not([lang="zh-CN"]) .tdHomeReviewCard{grid-template-columns:1fr!important;text-align:left!important;padding:16px!important}
 html:not([lang="zh-CN"]) .tdHomeReviewActions{width:100%!important;display:grid!important;grid-template-columns:1fr!important}
 html:not([lang="zh-CN"]) .pricingGroupTabs{grid-template-columns:1fr!important}
 html:not([lang="zh-CN"]) .pricingGrid{grid-template-columns:1fr!important}
 html:not([lang="zh-CN"]) .membershipHead{padding:16px!important}
 html:not([lang="zh-CN"]) .membershipBody{padding-inline:14px!important}
 html:not([lang="zh-CN"]) .purchaseAction{padding-inline:0!important}
}
