/* Bethammi V28. Header accessibility & mission/vision editorial cards only. */
.v17-mission-card .v17-mission-quote{font-size:clamp(17px,1.5vw,21px);line-height:1.56;margin-top:16px;margin-bottom:24px;max-width:48ch;text-wrap:pretty}
.v17-mission-card .v17-details{margin-top:18px}
/* Let longer translated desktop labels occupy two tidy lines rather than opening a mobile menu. */
@media (min-width:1121px){
 .site-header.nav-fit-compact .menu-toggle{display:none!important}
 .site-header .nav-row{gap:clamp(5px,.65vw,12px)}
 .site-header .brand{min-width:0!important;max-width:195px;gap:7px;flex-shrink:0}
 .site-header .brand img{width:clamp(36px,3.1vw,44px);height:clamp(36px,3.1vw,44px);flex-basis:clamp(36px,3.1vw,44px)}
 .site-header .brand strong{font-size:clamp(17px,1.4vw,20px)}
 .site-header .main-nav,.site-header.nav-fit-compact .main-nav{position:static!important;display:flex!important;flex:1 1 auto;align-items:stretch;justify-content:flex-end;gap:0;min-width:0;width:auto!important;max-height:none!important;overflow:visible!important;margin-left:auto!important;padding:0!important;box-shadow:none!important;border:0!important;background:transparent!important;flex-direction:row!important;}
 .site-header .nav-item,.site-header.nav-fit-compact .nav-item{height:auto;min-width:0;width:auto;display:flex;align-items:center}
 .site-header .nav-item>a,.site-header.nav-fit-compact .nav-item>a{white-space:normal!important;text-align:center;line-height:1.15;font-size:clamp(10px,.83vw,12.5px)!important;padding:20px clamp(2px,.38vw,7px)!important;overflow-wrap:normal;word-break:normal}
 .site-header .nav-extras{flex:0 0 auto;gap:clamp(3px,.42vw,7px);margin-left:0}
 .site-header .nav-donate{font-size:10px;padding:9px 9px}
 .site-header .language-select{display:flex!important;visibility:visible!important}
 .site-header .language-select select{min-width:43px;max-width:none}
 .site-header .menu-toggle{display:none!important}
 .site-header .nav-item.active:after{bottom:0}
}
/* On phones and tablets the language switcher is always OUTSIDE the burger menu. */
@media(max-width:1120px){
 .site-header .nav-row{width:min(1180px,94%);display:flex;flex-wrap:nowrap;align-items:center;gap:6px;min-width:0;}
 .site-header .brand{flex:0 1 auto;min-width:0;max-width:220px;margin-right:auto;gap:7px}
 .site-header .brand span{min-width:0}
 .site-header .brand strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .site-header .nav-extras{display:flex;align-items:center;flex:0 0 auto;order:2;margin-left:0;gap:6px;min-width:0}
 .site-header .nav-donate{display:none!important}
 .site-header .language-select{display:flex!important;align-items:center;visibility:visible!important;opacity:1!important;flex:0 0 auto;min-width:49px;z-index:2}
 .site-header .language-select select{display:block!important;visibility:visible!important;opacity:1!important;color:var(--text);min-width:49px;width:49px;max-width:49px;font-size:12px;font-weight:800;padding:6px 2px;min-height:38px;border:1px solid var(--border);border-radius:7px;background:var(--panel);}
 .site-header .theme-toggle{flex:0 0 63px;width:63px;}
 .site-header .menu-toggle{display:flex;order:3;flex:0 0 40px;margin:0;width:40px;height:42px;}
 .site-header .main-nav{z-index:80}
}
@media(max-width:460px){
 .site-header .nav-row{width:96%;gap:4px}
 .site-header .brand{max-width:none;gap:4px}
 .site-header .brand img{width:38px;height:38px;flex-basis:38px}
 .site-header .brand strong{font-size:16px}
 .site-header .brand small{font-size:6px;letter-spacing:0}
 .site-header .nav-extras{gap:4px}
 .site-header .theme-toggle{flex-basis:53px;width:53px;transform:scale(.92);transform-origin:center}
 .site-header .language-select{min-width:45px}
 .site-header .language-select select{min-width:45px;width:45px;max-width:45px;padding:5px 1px;font-size:11px}
 .site-header .menu-toggle{flex-basis:36px;width:36px;}
}
@media(max-width:370px){
 .site-header .brand img{width:34px;height:34px;flex-basis:34px}
 .site-header .brand strong{font-size:15px}
 .site-header .brand small{display:none}
 .site-header .theme-toggle{flex-basis:48px;width:48px;transform:scale(.87)}
 .site-header .language-select{display:flex!important}
 .site-header .language-select select{min-width:42px;width:42px;max-width:42px}
 .site-header .menu-toggle{flex-basis:34px;width:34px}
}

/* Bethammi language flags - EN, FR, RW */
.site-header .language-select select {
  min-width: 86px !important;
  width: 86px !important;
  max-width: 86px !important;
  padding: 6px 5px !important;
  font-family: system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

/* Compact language selector on mobile phones */
@media (max-width: 460px) {
  .site-header .language-select {
    min-width: 74px !important;
  }

  .site-header .language-select select {
    min-width: 74px !important;
    width: 74px !important;
    max-width: 74px !important;
    font-size: 11px !important;
    padding: 5px 2px !important;
  }
}

/* Extra-small phones */
@media (max-width: 370px) {
  .site-header .language-select select {
    min-width: 68px !important;
    width: 68px !important;
    max-width: 68px !important;
    font-size: 10px !important;
  }
}

