/* A minimal language control that inherits the existing adaptive navigation colours. */
#masthead .bb-language-menu>a,#side-nav .bb-language-menu>a{white-space:nowrap}
#masthead .bb-language-link:focus-visible,#side-nav .bb-language-link:focus-visible{outline:2px solid currentColor;outline-offset:5px}
html:lang(zh-Hans) body{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","Microsoft YaHei",sans-serif}
html:lang(zh-Hans) .entry-content :is(h1,h2,h3){letter-spacing:0!important;line-height:1.24!important}
html:lang(zh-Hans) .entry-content :is(.eyebrow,.bb-chapter,.bb-de-eyebrow,.bb-ft-eyebrow){letter-spacing:.05em!important}
html:lang(zh-Hans) .entry-content p{word-break:normal;overflow-wrap:break-word}
html:lang(zh-Hans) #bb-hub-architecture .bb-ha-tag{letter-spacing:0}
html:lang(zh-Hans) #bb-farm-network .country-label{letter-spacing:.04em}
html:lang(zh-Hans) #bb-systems-comparison .bb-system-concept{letter-spacing:0}
/* The globe uses the same navigation type and colours as the adjacent Systems submenu. */
.bb-language-menu{position:relative;list-style:none}
.bb-language-dropdown{position:relative;color:inherit}
.bb-language-dropdown summary{list-style:none;display:flex;align-items:center;justify-content:center;width:40px;min-height:44px;cursor:pointer;color:inherit}
.bb-language-dropdown summary::-webkit-details-marker{display:none}
.bb-language-dropdown summary svg{display:block;width:22px;height:22px}
.bb-language-dropdown summary:focus-visible,.bb-language-options a:focus-visible{outline:2px solid currentColor;outline-offset:4px}
.bb-language-dropdown:not([open])>.bb-language-options{display:none!important}
.bb-language-dropdown[open]>.bb-language-options{display:block!important;opacity:1!important;visibility:visible!important;transform:none!important}
#masthead .bb-language-options{left:auto;right:0;min-width:130px;text-align:left}
.bb-language-options a[aria-current="page"]::after{content:"✓";display:inline-block;font-size:.75em;margin-left:14px;opacity:.65}
#side-nav .bb-language-menu{position:fixed!important;left:28px;bottom:30px;margin:0!important;padding:0!important;z-index:4}
#side-nav .bb-language-dropdown summary{justify-content:flex-start;width:44px}
#side-nav .bb-language-options{position:absolute!important;left:0!important;right:auto!important;top:auto!important;bottom:calc(100% + 10px)!important;min-width:150px;margin:0!important;padding:8px 0!important;border:0!important;border-radius:10px;background:#171717!important;box-shadow:0 8px 30px #0004;text-align:left}
#side-nav .bb-language-options a{display:block!important;padding:10px 16px!important;font-size:18px!important;line-height:1.4!important;color:#eee!important}
#side-nav .bb-language-options a:hover{color:#fff!important;background:#242424}
@media(max-width:979px){#side-nav .navbar-nav{padding-bottom:90px!important}}
html:lang(es) .entry-content p{overflow-wrap:break-word}
html:lang(es) #bb-hub-architecture .bb-ha-tag{letter-spacing:0;font-size:clamp(10px,.75vw,14px)}

#masthead .bb-language-options a[aria-current="page"]::after,#side-nav .bb-language-options a[aria-current="page"]::after{content:"✓"!important;display:inline-block!important;position:static!important;width:auto!important;height:auto!important;background:none!important;transform:none!important;margin-left:14px!important;opacity:.65!important}

#masthead .bb-language-dropdown summary,#side-nav .bb-language-dropdown summary{width:auto;min-width:62px;gap:8px;justify-content:flex-start}
.bb-language-current{font:inherit;line-height:1;white-space:nowrap}
#masthead .bb-language-dropdown summary svg,#side-nav .bb-language-dropdown summary svg{width:22px;height:22px;flex:0 0 22px}

/* Align text with the globe, and use the measured typography of sibling navigation links. */
#masthead .bb-language-options{left:0!important;right:auto!important;top:calc(100% + 10px)!important;width:max-content!important;min-width:0!important;max-width:none!important;padding:0!important;text-align:left!important}
#masthead .bb-language-options a{padding:6px 0!important;white-space:nowrap}
#masthead .bb-language-dropdown summary,#side-nav .bb-language-dropdown summary,#masthead .bb-language-options a,#side-nav .bb-language-options a{font-family:var(--bb-language-family,inherit)!important;font-size:var(--bb-language-size,inherit)!important;font-weight:var(--bb-language-weight,400)!important;line-height:var(--bb-language-line,1.8)!important;letter-spacing:var(--bb-language-spacing,normal)!important}

/* Mobile language choices rise directly above the globe as a plain navigation list. */
#side-nav .bb-language-options{background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important;padding:0!important;min-width:0!important;width:max-content!important;bottom:calc(100% + 12px)!important}
#side-nav .navbar-nav .bb-language-options a{padding:6px 0!important;white-space:nowrap;color:inherit!important;background:transparent!important}
#side-nav .navbar-nav .bb-language-options a:hover,#side-nav .navbar-nav .bb-language-options a:focus-visible{background:transparent!important;color:#fff!important}

/* Desktop follows the actual Field/Hub submenu metrics; current language is boxed. */
@media(min-width:980px){
 #masthead .bb-language-current{display:none!important}
 #masthead .bb-language-dropdown summary{width:22px!important;min-width:22px!important;gap:0!important}
 #masthead .navbar-nav .bb-language-options a{position:relative;width:max-content!important;padding:var(--bb-language-padding,10px 0)!important;margin:var(--bb-language-margin,0)!important}
 #masthead .navbar-nav .bb-language-options a[aria-current="page"]::after{content:none!important;display:none!important}
 #masthead .navbar-nav .bb-language-options a[aria-current="page"]::before{content:""!important;display:block!important;position:absolute!important;inset:5px -8px!important;border:1px solid currentColor!important;border-radius:3px!important;background:transparent!important;pointer-events:none}
}

@media(min-width:980px){
 #masthead .bb-language-dropdown summary{width:20px!important;min-width:20px!important;justify-content:center!important}
 #masthead .bb-language-dropdown summary svg{width:20px!important;height:20px!important;flex:0 0 20px!important}
 #masthead .navbar-nav .bb-language-dropdown[open]>.bb-language-options{left:50%!important;right:auto!important;transform:translateX(-50%)!important;text-align:center!important}
 #masthead .navbar-nav .bb-language-options>li>a{margin:0 auto!important;text-align:center!important}
}

@media(min-width:980px){
 #masthead .bb-language-dropdown summary svg{width:18px!important;height:18px!important;flex:0 0 18px!important}
}
