/* Compact bilingual selector: works with existing light and twilight themes. */
.language-picker{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;border:1px solid #b88a8c;border-radius:999px;background:#fff7f4;color:#17474a;padding:7px 10px;font-weight:700}
.language-picker select{appearance:auto;min-width:83px;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer}
.language-picker select:focus-visible{outline:2px solid #19464a;outline-offset:3px;border-radius:3px}
html[data-theme="twilight"] .language-picker{background:#304347;color:#f0eee9;border-color:#b88a8c}
@media(max-width:1000px){.language-picker{margin-left:auto}}
@media(max-width:650px){.language-picker{padding:6px 5px;gap:2px;font-size:12px}.language-picker select{min-width:70px}.language-picker .language-icon{font-size:14px}.site-header .nav-wrap{gap:5px}.site-header .theme-toggle{padding:8px 7px}.site-header .pill-btn{padding:9px 7px}}

/* On narrow phones, keep language at top right without crowding the other actions. */
@media(max-width:650px){
 .site-header .nav-wrap{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;height:auto;min-height:70px;padding-top:7px;padding-bottom:7px;column-gap:8px;row-gap:5px}
 .site-header .brand{grid-column:1;grid-row:1;min-width:0;margin-right:0}
 .site-header .language-picker{grid-column:2;grid-row:1;justify-self:end;margin:0}
 .site-header .theme-toggle{grid-column:1;grid-row:2;justify-self:start}
 .site-header .pill-btn{grid-column:2;grid-row:2;justify-self:end;width:auto;max-width:none}
}

/* Reserve room for language controls without pushing the desktop header off-screen. */
@media(min-width:1121px){
 .site-header .nav-wrap{gap:12px}
 .site-header .nav-links{gap:15px;font-size:13px}
 .site-header .pill-btn{padding:12px 16px;font-size:13px}
 .site-header .brand-copy strong{font-size:22px}
 .site-header .brand-copy small{max-width:235px;font-size:7px;line-height:1.25}
 .site-header .brand-mark{width:46px;height:46px;flex-shrink:0}
}
@media(min-width:1001px) and (max-width:1120px){
 .site-header .nav-links{display:none}
 .site-header .nav-wrap{gap:14px}
}

/* Accessible native select menus in both color schemes.
   Explicit option colors prevent pale-on-pale text in browser/OS popups. */
.language-picker select{color-scheme:light;color:#17474a}
.language-picker select option{background-color:#fff7f4;color:#173f42;font-weight:600}
html[data-theme="twilight"] .language-picker select{color-scheme:dark;color:#f7f2e9}
html[data-theme="twilight"] .language-picker select option{background-color:#1c3439;color:#f8f5ef;font-weight:600}
html[data-theme="twilight"] .language-picker select option:checked{background-color:#41646a;color:#ffffff}

/* Desktop: keep navigation links grouped; align tools together on the right. */
@media(min-width:1121px){
 .site-header .nav-wrap{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:clamp(15px,1.6vw,24px);
 }
 .site-header .nav-links{
  display:flex;
  flex:0 1 auto;
  width:auto;
  min-width:0;
  justify-content:flex-start;
  align-items:center;
  gap:clamp(19px,2vw,29px);
  white-space:nowrap;
  font-size:13px;
  margin-right:auto;
 }
 .site-header .language-picker{margin:0}
 .site-header .theme-toggle,.site-header .pill-btn{white-space:nowrap;flex-shrink:0}
}
@media(min-width:651px) and (max-width:1120px){
 .site-header .nav-wrap{justify-content:flex-end;gap:clamp(14px,2vw,24px)}
 .site-header .language-picker{margin-left:0}
}


/* MOBILE SINGLE-ROW NAV — 2026-11-14. All controls on one short row. */
@media(max-width:650px){
 .site-header .nav-wrap{display:flex!important;flex-wrap:nowrap!important;justify-content:space-between!important;align-items:center!important;gap:5px!important;height:62px!important;min-height:62px!important;padding-top:5px!important;padding-bottom:5px!important;}
 .site-header .nav-links,.site-header .brand{display:none!important;}
 .site-header .theme-toggle{order:1!important;justify-self:auto!important;flex:0 0 auto!important;font-size:11px!important;padding:8px 7px!important;}
 .site-header .language-picker{order:2!important;justify-self:auto!important;margin:0!important;flex:0 1 auto!important;font-size:11px!important;padding:6px 5px!important;}
 .site-header .language-picker select{min-width:62px!important;font-size:11px!important;}
 .site-header .pill-btn{order:3!important;justify-self:auto!important;flex:0 0 auto!important;max-width:none!important;padding:9px 10px!important;font-size:10.5px!important;white-space:nowrap!important;}
}
@media(max-width:350px){.site-header .pill-btn{padding:8px 6px!important;font-size:9.5px!important}.site-header .language-picker{padding:5px 4px!important}.site-header .theme-toggle{font-size:10px!important;padding:7px 5px!important}}
