/* Same compact language tags on the shop and all manuals. */
:root { --sg-language-height: 50px; }
.sg-language-bar { position:sticky; top:0; z-index:1001; width:100%; background:#fff; color:#263c36; border-bottom:1px solid #e6ece9; font-family:system-ui,-apple-system,"Segoe UI",sans-serif; box-sizing:border-box; }
.sg-language-bar__inner { display:flex; justify-content:flex-end; align-items:center; gap:10px; padding:6px 24px; max-width:1600px; margin:0 auto; min-height:49px; box-sizing:border-box; }
.sg-language-bar__label { color:#66736d; font-size:12px; line-height:1.3; font-weight:700; text-transform:uppercase; flex-shrink:0; }
.sg-language-bar__list { display:flex; gap:4px; align-items:center; overflow-x:auto; scrollbar-width:thin; padding:2px; }
.sg-language-bar .sg-language-bar__tag { appearance:none; display:inline-flex; align-items:center; justify-content:center; min-width:38px; height:36px; padding:0 8px; flex-shrink:0; border:1px solid #e5eeea; border-radius:5px; background:#fff; color:#263c36; font:600 13px/1 system-ui,-apple-system,"Segoe UI",sans-serif; text-decoration:none; cursor:pointer; box-sizing:border-box; box-shadow:none; margin:0; letter-spacing:0; }
.sg-language-bar .sg-language-bar__tag:hover { background:#edf4f0; border-color:#8db3a2; }
.sg-language-bar .sg-language-bar__tag--active { background:#f0f1e6; border-color:#bacd93; box-shadow:inset 0 0 0 1px #e5d9ac; color:#213f33; }
.sg-language-bar .sg-language-bar__tag:focus-visible { outline:3px solid #217da3; outline-offset:2px; }
.sg-language-bar__status:empty { display:none; }
.sg-language-bar__status { display:block; font-size:12px; padding:4px 16px; text-align:right; }
html:has(#sg-language-bar) .language-flags, html:has(#sg-language-bar) #gt_float_wrapper, html:has(#sg-language-bar) .gtranslate_wrapper, html:has(#sg-language-bar) .sg-languages, html:has(#sg-language-bar) h2:has(+ .sg-languages) { display:none!important; }
html:has(#sg-language-bar) .navbar--fixed-top { top:var(--sg-language-height); }
html:has(#sg-language-bar) .sg-header { top:0; }
html:has(#sg-language-bar) { scroll-padding-top:calc(var(--sg-language-height) + 90px); }
html:has(#sg-language-bar) .theme-doc-sidebar-container { top:var(--sg-language-height); }
html:has(#sg-language-bar) .theme-doc-sidebar-container .menu { padding-top:0.5rem; }
html:has(#sg-language-bar) .theme-doc-toc-desktop .table-of-contents { top:calc(var(--ifm-navbar-height,60px) + var(--sg-language-height) + 1rem); }
.admin-bar .sg-language-bar { top:32px; }
@media(max-width:782px) { .admin-bar .sg-language-bar {top:46px;} }
@media(max-width:700px) {
  .sg-language-bar__inner { padding:5px 10px; gap:6px; justify-content:flex-start; }
  .sg-language-bar__label { font-size:10px; }
  .sg-language-bar__list { min-width:0; }
  .sg-language-bar .sg-language-bar__tag { min-width:35px; height:36px; padding:0 7px; }
}
@media print { .sg-language-bar {display:none!important;} html:has(#sg-language-bar){--sg-language-height:0px;} }
