/* Language menu (DE / FR / IT / EN) in the header: a small pill with the current language that opens a short list. */
.langmenu { position: relative; }
.langmenu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  border: 1px solid #d3ddea;
  border-radius: 999px;
  box-sizing: border-box;
  height: 36px;
  padding: 0 10px 0 12px;
  cursor: pointer;
  user-select: none;
}
/* "Sign in" next to it has the same height and type size, on desktop and on phones. */
.top .btn.navbtn, .top .btn.navbtn:hover { min-height: 36px; height: 36px; padding: 0 14px; font-size: 13px; }
.langmenu summary::-webkit-details-marker { display: none; }
.langmenu summary:hover { border-color: #b9cfee; color: var(--accent); }
.langmenu .chev { transition: transform 0.15s ease; }
.langmenu[open] .chev { transform: rotate(180deg); }
.langmenu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  min-width: 168px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid #e6ecf4;
  border-radius: 14px;
  box-shadow: 0 12px 32px -12px rgba(16, 40, 80, 0.25);
}
.langmenu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 14px; color: var(--body); text-decoration: none; }
.langmenu a b { width: 20px; font-size: 12px; font-weight: 600; color: var(--faint); }
.langmenu a:hover { background: var(--wash); color: var(--ink); }
.langmenu a[aria-current='true'] { color: var(--accent); font-weight: 600; }
.langmenu a[aria-current='true'] b { color: var(--accent); }
.top nav .langmenu { flex: none; }
/* Header between phone and wide desktop: the four section links do not fit next to logo, sign-in and language
   (French and Italian labels are the longest), so they hide below 1080px instead of wrapping or overflowing. */
.top .navlink { white-space: nowrap; }
@media (max-width: 1080px) {
  .top .navlinks { display: none; }
}

/* Footer on phones: the links first, the copyright line last. */
@media (max-width: 640px) {
  .foot .wrap { flex-direction: column; align-items: flex-start; gap: 18px; }
  .foot .footlinks { order: 1; margin-left: 0; gap: 12px 22px; }
  .foot .footbrand { order: 2; }
}
@media (max-width: 370px) {
  .langmenu summary { padding: 0 8px 0 10px; }
  .top .btn.navbtn, .top .btn.navbtn:hover { padding: 0 12px; }
}
