/* Original Xinshengda logo/footer remain rendered by the existing theme. */
@media(min-width:992px) and (hover:hover) and (pointer:fine){
 .af-header.xsd-native-navigation .af-bar{gap:clamp(6px,.8vw,16px);flex-wrap:nowrap}
 .xsd-native-navigation #af-navigation{min-width:0}
 .af-header.xsd-native-navigation #af-navigation>ul{flex-wrap:nowrap;gap:clamp(6px,.8vw,16px)}
 .af-header.xsd-native-navigation #af-navigation>ul>.af-nav-item>a{padding-block:4px;font-size:var(--xsd-native-nav-type,clamp(12px,1.25vw,21px));white-space:nowrap}
}
@media(min-width:992px) and (max-width:1399px) and (hover:hover) and (pointer:fine){.af-header.xsd-native-navigation{--xsd-native-nav-type:13px}}
@media(min-width:992px) and (max-width:1699px){.af-header.xsd-native-navigation .af-search-trigger [data-ard-edit]{display:none}.af-header.xsd-native-navigation .af-search-trigger{padding:12px!important;flex:none}}
@media(min-width:992px) and (max-width:1199px) and (hover:hover) and (pointer:fine){
 .af-header.xsd-native-navigation .af-bar{gap:6px}
 .af-header.xsd-native-navigation #af-navigation>ul{gap:4px}
 .af-header.xsd-native-navigation .af-search-trigger{padding:8px!important}
 .xsd-native-navigation .xsd-list-open{padding-inline:6px;gap:4px;font-size:12px}
 .xsd-native-navigation .xsd-list-open>span:not(.xsd-list-count){position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
}
@media(max-width:991px),(min-width:992px) and (hover:none) and (pointer:coarse){
 .af-header.xsd-native-navigation{--af-sitebar-height:76px}
 .af-header.xsd-native-navigation .af-bar{display:flex!important;align-items:center;gap:4px;height:76px!important;min-height:0;padding-block:0;flex-wrap:nowrap}
 .af-header.xsd-native-navigation .af-logo{flex:none;margin-right:auto;gap:8px;font-size:23px}
 .af-header.xsd-native-navigation .af-logo .af-logo-mark{width:34px!important}
 .xsd-native-navigation .af-mobile-toggle{flex:none;width:24px}
 .xsd-native-navigation .af-mobile-toggle span{width:22px}
 .xsd-native-navigation .af-language-slot,.xsd-native-navigation .af-search-trigger{flex:none}
 .af-header.xsd-native-navigation .ard-language-menu>summary{font-size:0!important;gap:2px}
 .af-header.xsd-native-navigation .language-flag-en,.af-header.xsd-native-navigation .language-flag-es,.af-header.xsd-native-navigation .language-flag-pt{width:18px;min-width:18px;height:13px}
 .af-header.xsd-native-navigation .af-search-trigger{padding:8px!important}
 .xsd-native-navigation .xsd-list-slot{flex:none;width:auto!important;order:4}
 .xsd-native-navigation .xsd-list-open{padding-inline:4px;gap:2px;font-size:10.5px}
 .xsd-native-navigation .xsd-list-open>span:not(.xsd-list-count){position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
 .af-header.xsd-native-navigation #af-navigation{top:76px;max-height:calc(100svh - 76px)}
}
@media(max-width:359px){.af-header.xsd-native-navigation .af-logo{font-size:18px;gap:5px}.af-header.xsd-native-navigation .af-logo .af-logo-mark{width:24px!important}}

/* Keep visual order aligned with the moved DOM nodes, on desktop and mobile. */
.af-header.xsd-native-navigation .af-language-slot{order:2}
.af-header.xsd-native-navigation .xsd-list-slot{order:3}
.af-header.xsd-native-navigation .af-search-trigger{order:4}
