/* EN / SO language switch as links to the same page in the other language (partials/lang-switch.blade.php, App\Support\SnuSite\Locale).
   The same look the buttons had (style.css, portal.css, snu-header.css), for <a aria-current>. Kept outside assets/, which export.py regenerates. */
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: #dbe6f2; font-size: .75rem; font-weight: 700; padding: .2rem .65rem; border-radius: 999px; text-decoration: none; line-height: 1.4; }
.lang-switch a[aria-current="true"] { background: var(--gold); color: var(--navy-900); }
.site-header .lang-switch a { color: #fff; font-family: var(--font-ui); border-radius: 8px; }
.site-header .lang-switch a[aria-current="true"] { background: #fff; color: var(--navy); }
.site-header.mega-open .lang-switch a, .site-header.is-stuck .lang-switch a { color: var(--navy); }
.site-header.mega-open .lang-switch a[aria-current="true"], .site-header.is-stuck .lang-switch a[aria-current="true"] { background: var(--navy); color: #fff; }
.snuh .snuh-lang a { min-width: 34px; height: 28px; padding: 0 8px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--snuh-lang-text, rgba(255, 255, 255, .85)); background: none; }
.snuh .snuh-lang a[aria-current="true"] { background: var(--snuh-lang-on-bg, var(--snuh-white)); color: var(--snuh-lang-on-text, var(--snuh-green-900)); }
.snuh .snuh-lang a:hover:not([aria-current="true"]) { color: var(--snuh-util-text, var(--snuh-white)); background: var(--snuh-util-hover, rgba(255, 255, 255, .14)); }
.snuh .snuh-lang a:focus-visible, .lang-switch a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.m-lang a { color: var(--navy); padding: .45rem 1rem; font-size: .85rem; }
.m-lang a[aria-current="true"] { background: var(--navy); color: #fff; }
/* Somali words run longer: headings and buttons wrap instead of overflowing */
html[lang="so"] h1, html[lang="so"] h2, html[lang="so"] h3 { overflow-wrap: break-word; hyphens: auto; }
/* Somali labels in the header's top band are longer: on narrower desktops they get less padding and a smaller size, so they never run into the logo */
@media (min-width: 1024px) and (max-width: 1279px) {
  html[lang="so"] .snuh .snuh-utility__link { padding-left: 6px; padding-right: 6px; font-size: 12.5px; }
  html[lang="so"] .snuh .snuh-utility { gap: 2px; }
}
/* The main header's section names in Somali are longer (Xarumaha iyo Machadyada, Xiriirka Caalamiga…): as on the faculty
   websites (snu-header.css), long ones take two lines on desktops, and narrower desktops get tighter items */
@media (min-width: 64em) {
  html[lang="so"] .snuh:not(.snuh--fac) .snuh-item { flex: none; }
  html[lang="so"] .snuh:not(.snuh--fac) .snuh-trigger { white-space: normal; line-height: 1.15; text-align: left; }
  html[lang="so"] .snuh:not(.snuh--fac) .snuh-trigger > span { max-width: 8em; min-width: min-content; }
}
@media (min-width: 64em) and (max-width: 89.9375em) {
  html[lang="so"] .snuh:not(.snuh--fac) { --snuh-item-pad: 9px; --snuh-item-size: 14px; }
  html[lang="so"] .snuh:not(.snuh--fac) .snuh-trigger { gap: 4px; }
}
