/* Language selector - quiet text control; does not fight site chrome */

.shx-lang {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 60;
}

.shx-lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2rem;
  padding: 0.2rem 0.15rem;
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
  color: #64748b;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s ease;
}

.shx-lang__btn:hover,
.shx-lang__btn:focus-visible {
  color: #0b1c30;
  outline: none;
}

.shx-lang__btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(0, 102, 138, 0.25);
}

.shx-lang__caret {
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.65;
  transition: transform 0.15s ease;
}

.shx-lang__btn[aria-expanded='true'] .shx-lang__caret {
  transform: rotate(180deg);
}

.shx-lang__menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 9.5rem;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  border-radius: 0.375rem;
  border: 1px solid rgba(189, 200, 209, 0.55);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(11, 28, 48, 0.08);
}

.shx-lang__menu[hidden] {
  display: none;
}

.shx-lang__option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.65rem;
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
  color: #334155;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.shx-lang__option:hover,
.shx-lang__option:focus-visible {
  background: #f1f5f9;
  color: #0b1c30;
  outline: none;
}

.shx-lang__option[aria-current='true'] {
  color: #00668a;
  font-weight: 600;
}

/* Compact mobile: code row, not a second mega-menu */
.shx-lang--mobile {
  width: 100%;
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(189, 200, 209, 0.4);
}

.shx-lang--mobile .shx-lang__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.45rem;
}

.shx-lang--mobile .shx-lang__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.shx-lang--mobile .shx-lang__option {
  min-height: 2.25rem;
  min-width: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(189, 200, 209, 0.55);
  border-radius: 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shx-lang--mobile .shx-lang__option[aria-current='true'] {
  border-color: rgba(0, 102, 138, 0.45);
  background: #eef6fb;
}

/* Marketing header: sit quietly beside CTA */
nav [data-shx-lang-desktop] {
  display: inline-flex;
  align-items: center;
}

/* Governance Index - right cluster: lang + CTA + hamburger */
.ix-nav-end {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.ix-nav-end .ix-nav-cta {
  justify-self: auto;
}

.ix-nav-end .ix-menu-btn {
  justify-self: auto;
}

/* Executive header - brand left, lang + CTA right */
.dr-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
  flex-shrink: 0;
}

.shx-lang-slot-dr {
  display: inline-flex;
  align-items: center;
}

/* Assessment / pitch - corner, no sticky strip */
.shx-lang-fixed {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 70;
}

.shx-lang-fixed .shx-lang__btn {
  padding: 0.35rem 0.5rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(189, 200, 209, 0.45);
  border-radius: 0.375rem;
  box-shadow: 0 2px 8px rgba(11, 28, 48, 0.06);
}

