/* BG-WEB-46: language chooser, scoped and neutral */
.bg-lang-switch{position:relative;z-index:40;flex:0 0 auto;align-self:center;font:600 12px/1.4 'Segoe UI',Arial,sans-serif;color:#243440}
.bg-lang-switch>summary{list-style:none;display:grid;grid-template-columns:16px auto 12px;align-items:center;justify-content:center;gap:6px;border:1px solid #c5b08b;border-radius:3px;padding:8px 11px;min-width:79px;min-height:44px;cursor:pointer;background:#fcfaf6}
.bg-lang-switch>summary::-webkit-details-marker{display:none}
.bg-lang-switch>summary::marker{content:''}
.bg-lang-switch>summary:hover{background:#eee6d8}
.bg-lang-switch>summary:focus-visible,.bg-lang-switch a:focus-visible{outline:3px solid #9d783d;outline-offset:2px}
.bg-lang-globe{color:#91703d;font-size:16px;font-weight:400;line-height:1;display:flex;align-items:center;justify-content:center}
.bg-lang-code{display:flex;align-items:center;justify-content:center;line-height:1}
.bg-lang-chevron{display:block;width:12px;height:12px;align-self:center;justify-self:center;margin:0;color:#8c714b;transform-origin:center}
.bg-lang-switch[open] .bg-lang-chevron{transform:rotate(180deg)}
.bg-lang-switch ul{position:absolute;top:calc(100% + 6px);right:0;z-index:50;list-style:none;margin:0;padding:6px;min-width:185px;border:1px solid #c8bba5;background:#fbf9f4;box-shadow:0 15px 38px #111e2c25}
.bg-lang-switch li{margin:0;padding:0}
.bg-lang-switch li a,.topbar nav .bg-lang-switch li a{display:block;box-sizing:border-box;line-height:1.4;color:#243440;text-decoration:none!important;border:0!important;padding:10px 12px;min-height:42px;font:500 12px/1.6 'Segoe UI',Arial,sans-serif;white-space:nowrap}
.bg-lang-switch li a:hover,.topbar nav .bg-lang-switch li a:hover{background:#ece2d2}
.bg-lang-switch a[aria-current="page"]{background:#f0e4ce;color:#765728;font-weight:700}
.bg-lang-draft-banner{max-width:1200px;margin:20px auto 0;padding:13px 20px;border:1px solid #e0cfad;background:#faf4e8;color:#51452e;font:13px/1.6 'Segoe UI',Arial,sans-serif}
.bg-lang-draft-banner strong{font-weight:700}
.bg-lang-draft-banner a{color:#775631;text-underline-offset:3px}
@media(max-width:720px){.bg-lang-switch{margin-left:auto}.bg-lang-switch ul{right:0}.bg-lang-draft-banner{margin-inline:16px}}

.bg-lang-status{margin:10px auto 0!important;padding:7px 12px!important;border:0!important;border-bottom:1px solid #e2dacc!important;background:transparent!important;font:11px/1.5 'Segoe UI',Arial,sans-serif!important;color:#786e60!important;max-width:1200px}


/* BG-WEB-48: prevent the masthead from clipping an opened language menu.
   Keep the original hero clipping while the switch is closed. */
body:has(.bg-lang-switch[open]) header.masthead {
  overflow: visible !important;
  z-index: 500 !important;
}
body:has(.bg-lang-switch[open]) header.masthead .topbar {
  z-index: 501 !important;
}
