/* An accessible language disclosure, sized for both header layouts. */
.language-picker { position: relative; flex-shrink: 0; }
#header .language-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  min-width: 126px;
  min-height: 46px;
  padding: .55rem .8rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff19, #ffffff0b);
  border: 1px solid #c3e8fc66;
  color: #f0faff;
  font-size: .9375rem;
  font-weight: 600;
  box-shadow: inset 0 1px 0 #ffffff12;
  direction: inherit;
  transition: background .18s, border-color .18s;
}
#header .language-trigger:hover,
#header .language-trigger[aria-expanded="true"] { background: #ffffff24; border-color: #a7e3ff; }
.language-globe { flex: 0 0 auto; color: #9adfff; }
.language-chevron { width: 7px; height: 7px; border-inline-end: 1.5px solid currentColor; border-block-end: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-inline-start: .125rem; transition: transform .18s; }
[aria-expanded="true"] .language-chevron { transform: rotate(225deg) translate(-2px, -1px); }
.language-panel {
  position: absolute;
  inset-block-start: calc(100% + 12px);
  inset-inline-end: 0;
  z-index: 100;
  width: 262px;
  max-width: calc(100vw - 2rem);
  padding: .5rem;
  border: 1px solid #b3dbf244;
  border-radius: 18px;
  background: #102b48;
  color: #eff8ff;
  box-shadow: 0 20px 55px #020e2580, inset 0 1px 0 #ffffff0d;
}
.language-panel-heading { padding: .6rem .75rem .8rem; border-bottom: 1px solid #9ac9e526; margin-bottom: .4rem; }
.language-panel-heading > span { font-size: .875rem; font-weight: 700; color: #a7e2ff; }
.language-panel-heading p { margin: .2rem 0 0; font-size: .875rem; color: #bacee0; line-height: 1.6; }
.language-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 66px;
  padding: .65rem .75rem;
  margin: .15rem 0;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #f2f8ff;
  text-align: start;
  cursor: pointer;
  transition: background .18s, border-color .18s;
}
.language-option:hover { background: #ffffff0c; }
.language-option[aria-pressed="true"] { border-color: #64bce658; background: linear-gradient(100deg, #3780ac44, #26628d22); }
.language-monogram { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border: 1px solid #8ac5e538; background: #071d315c; color: #b5e7ff; border-radius: 10px; font-size: .875rem; font-weight: 700; }
.language-option-name { display: flex; flex: 1; flex-direction: column; gap: .125rem; }
.language-option-name strong { font-size: 1rem; font-weight: 600; line-height: 1.5; }
.language-option-name small { font-size: .8125rem; color: #b3c8da; line-height: 1.4; }
.language-check { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #092c45; background: #8edaff; font: 700 .875rem var(--font-latin); opacity: 0; }
[aria-pressed="true"] .language-check { opacity: 1; }
#header .language-option:focus-visible { outline: 2px solid #a5e5ff; outline-offset: -2px; }
@media (max-width: 600px) {
  #header .language-trigger { min-width: 106px; padding: .5rem .6rem; gap: .45rem; }
  .language-globe { width: 18px; height: 18px; }
  .language-panel { width: 248px; }
}
@media (prefers-reduced-motion: reduce) {
  .language-trigger, .language-option, .language-chevron { transition: none; }
}
