/* Accessible, persistent language choices above the main menu. */
.mast > .wrap { justify-content: space-between; }
.language-switch { display: inline-flex; flex: 0 0 auto; gap: 2px; align-items: center; background: #edf5ee; padding: 3px; border: 1px solid #d1e4d7; border-radius: 10px; font-size: .875rem; line-height: 1.15; }
.language-switch a { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; padding: 5px 9px; color: #153c30; text-decoration: none; border-radius: 7px; font-weight: 700; white-space: nowrap; }
.language-switch a[aria-current="true"] { background: #105841; color: #fff; }
.language-switch a:not([aria-current]):hover { background: #d9ebde; }
.language-switch a:focus-visible { outline: 2px solid #216345; outline-offset: 2px; }
html[lang="rw"] .ribbon .nav > a, html[lang="rw"] .ribbon .resource-menu > summary { white-space: normal; overflow-wrap: anywhere; text-align: center; line-height: 1.23; }
html[lang="rw"] .home-page .hero h1 { font-size: clamp(2.1rem, 4.7vw, 4rem); }
@media (max-width: 440px) {
  .mast > .wrap { column-gap: 7px; row-gap: 7px; padding-block: 7px; }
  .language-switch a { min-height: 42px; padding-inline: 7px; }
  html[lang="rw"] .home-page .hero h1 { font-size: clamp(2rem, 9vw, 2.9rem); }
}

.jali-language-fallback{max-width:74rem;margin:0 auto;padding:.7rem 1rem;background:#edf5ee;color:#153c30}
@media(max-width:350px){.mast>.wrap{flex-wrap:wrap}.language-switch{max-width:100%}}
