/* ============================================================
   LANGUAGE SELECTOR (NNA-15)
   A globe + language code in the header next to the account and
   search icons, opening a short list of languages; the same list
   as a row of chips at the foot of the slide-out menu on phones.
   Gold on hover, like the rest of the header chrome.
   ============================================================ */
#main-header .lang-switch {
  position: relative;
  display: flex;
  align-items: center;
}

#main-header .lang-switch-btn {
  /* style.css gives every <button> a 200px minimum width */
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px 0 10px;
  border-radius: 19px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
#main-header .lang-switch-btn:hover,
#main-header .lang-switch-btn[aria-expanded="true"] {
  background: rgba(193, 145, 20, 0.16);
  border-color: rgba(193, 145, 20, 0.5);
}
#main-header .lang-switch-btn:focus-visible {
  outline: 2px solid #c19114;
  outline-offset: 2px;
}
#main-header .lang-switch-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex: 0 0 auto;
}

#main-header .lang-switch-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 170px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(10, 11, 14, 0.97);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  z-index: 120;
}
#main-header .lang-switch-menu[hidden] {
  display: none;
}
#main-header .lang-switch-menu li {
  margin: 0;
}
#main-header .lang-switch-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #e8e8e8;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
#main-header .lang-switch-menu a:hover,
#main-header .lang-switch-menu a:focus-visible {
  background: rgba(193, 145, 20, 0.16);
  color: #fff;
  outline: none;
}
#main-header .lang-switch-menu a.current {
  color: #c19114;
  font-weight: 700;
}
#main-header .lang-switch-menu a.current::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c19114;
}

/* Slide-out menu: the languages as chips under the links */
.desktop-menu .menu-langs {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  width: 100%;
}
.desktop-menu .menu-langs-label {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.desktop-menu .menu-langs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.desktop-menu .menu-langs-list a {
  display: inline-flex;
  width: auto;
  margin: 0;
  padding: 7px 13px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0;
  color: #e8e8e8;
}
.desktop-menu .menu-langs-list a.current {
  border-color: #c19114;
  color: #c19114;
  font-weight: 700;
}

/* Phones: the header keeps only the globe, in the same 30px circle as the
   other header icons; the language list is also in the slide-out menu. */
@media screen and (max-width: 768px) {
  #main-header .lang-switch-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  #main-header .lang-switch-btn svg {
    width: 15px;
    height: 15px;
  }
  #main-header .lang-switch-code {
    display: none;
  }
  #main-header .lang-switch-menu {
    right: -40px;
  }
}

/* A notice at the top of a page whose content is not yet translated
   (legal documents awaiting the professional translation). */
.i18n-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 24px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(193, 145, 20, 0.45);
  background: rgba(193, 145, 20, 0.10);
  color: inherit;
  font-size: 14px;
  line-height: 1.55;
  /* Sits among the article's dateline styles; keep it plain text. */
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  text-align: left;
}
.i18n-notice::before,
.i18n-notice::after {
  content: none;
}
.i18n-notice svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  fill: #c19114;
}

/* Title Case is an English convention. French, Portuguese and Spanish write
   headlines and labels in sentence case, so the capitalize rules in
   style.css / mobile.css are switched off on the translated pages. */
html:not([lang="en"]) #weather-bar,
html:not([lang="en"]) #weather-bar span,
html:not([lang="en"]) .page .breadcrumb span,
html:not([lang="en"]) .single-post .sec1 .article h2,
html:not([lang="en"]) .single-post .related h3,
html:not([lang="en"]) .single-post .related .grid5 .product .info,
html:not([lang="en"]) .single-post .related .grid5 .product .title,
html:not([lang="en"]) .home .archive-cards .info {
  text-transform: none;
}
