/* Language switch of the main pages (see assets/js/language.js). */
.language-menu { position: relative; margin-right: 10px; font: 14px/1.4 Arial, Helvetica, sans-serif; }
.language-menu > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 20px; color: var(--nav-color, #fff); font-weight: 700; cursor: pointer; list-style: none; }
.language-menu > summary::-webkit-details-marker { display: none; }
.language-menu > summary:hover, .language-menu[open] > summary { border-color: var(--nav-hover-color, #75AE3D); }
.language-menu > summary:focus-visible, .language-menu a:focus-visible { outline: 3px solid #B8501C; outline-offset: 2px; }
.language-menu > ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 1000; min-width: 150px; margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 8px; box-shadow: 0 6px 24px rgba(0, 0, 0, .2); }
.language-menu a { display: block; padding: 8px 12px; border-radius: 5px; color: #1f1f1f; text-decoration: none; }
.language-menu a:hover { background: #f0f5ef; color: #0A6732; }
.language-menu a[aria-current] { background: #0A6732; color: #fff; font-weight: 700; }
@media (max-width: 1200px) { .header .language-menu { order: 2; } }
/* On phones the switch moves into the navigation menu, so the header keeps its room. */
.language-links { display: none; }
@media (max-width: 575px) {
  .header .language-menu { display: none; }
  .navmenu .language-links { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 20px; border-top: 1px solid #e5e5e5; }
  .navmenu .language-links a { padding: 6px 10px; border-radius: 5px; color: #0A6732; font: 700 14px/1.4 Arial, Helvetica, sans-serif; }
  .navmenu .language-links a[aria-current] { background: #0A6732; color: #fff; }
}
/* Translated call-to-action labels are longer than "Learn More". */
@media (max-width: 400px) { .header .cta-btn, .header .cta-btn:focus { margin-right: 6px; padding: 6px 12px; } }
/* Header buttons keep their size and label on one line instead of being squeezed by the menu. */
.header .map-btn, .header .language-menu, .header .cta-btn { flex-shrink: 0; white-space: nowrap; }
/* Between 1200 and 1399 px the container is 1140 px wide: tighten the full menu so it fits on one row
   next to the language switch. Below 1200 px the menu becomes the hamburger. */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .header .logo .sitename { font-size: 24px; }
  .navmenu > ul > li { padding: 15px 7px; }
  .header .cta-btn, .header .cta-btn:focus { padding: 8px 18px; }
}
@media print { .language-menu { display: none; } }
html.language-pending body { visibility: hidden; }
