/* Navbar language picker.
 *
 * Its own file because the control lives in BOTH shells — the marketing
 * chrome (public_base.html → marketing.css) and the app chrome
 * (base.html → custom.css) — which share no stylesheet. Duplicating the rules
 * into each would let the two copies drift.
 *
 * Everything else is stock Bootstrap dropdown; only the flag and the
 * form-inside-a-dropdown-item need help.
 */

.language-switcher__flag {
  display: block;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  flex: 0 0 auto;
}

/* Each menu entry is a <form> so the choice can be POSTed. Without this the
 * form's block box adds its own padding and the items stop lining up with a
 * normal dropdown's. */
.language-switcher .dropdown-menu form {
  margin: 0;
}

/* The <button> inside carries .dropdown-item, so strip the button chrome and
 * let it fill the row like the <a> it visually replaces. */
.language-switcher .dropdown-menu .dropdown-item {
  width: 100%;
  border: 0;
  background: none;
  text-align: start;
  cursor: pointer;
}

.language-switcher .nav-link {
  cursor: pointer;
}

/* The collapsed mobile navbar stacks items full-width; keep the trigger from
 * centring on its own row while the rest of the nav is left-aligned. */
@media (max-width: 767.98px) {
  .language-switcher .dropdown-menu {
    border: 0;
    padding-inline-start: 0.5rem;
  }
}
