/* 50-locale-pill.css
 *
 * Language / locale switcher pill. Compact, neutral on light surface, with
 * an on-dark variant for hero-overlay topbars.
 *
 * Consolidates two prior shell-scoped pills that did the same job:
 *   - .auth-locale-pill           (features/auth.css)
 *   - .shell-marketing-topbar-locale (components/44-shell-marketing.css)
 *
 * Replaces both. The marketing shell still owns its `.on-dark` override
 * (see 44-shell-marketing.css) because that scoping is shell-specific.
 *
 * Markup:
 *   <button class="locale-pill">FR
 *     <span class="locale-pill-chevron" aria-hidden="true">
 *       <svg><use href="#icon-chevron-down"/></svg>
 *     </span>
 *   </button>
 */

.locale-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border-radius: 999px;
  border: 1px solid var(--divider);
  background: var(--surface);
  font-family: var(--font);
  font-size: var(--font-size-caption);
  font-weight: 700;
  letter-spacing: var(--letter-spacing-label);
  color: var(--muted);
  cursor: pointer;
  transition: background var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard);
}

.locale-pill:hover {
  background: var(--surface-soft);
  color: var(--text);
  border-color: var(--border);
}

.locale-pill:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.locale-pill-chevron {
  display: inline-flex;
  align-items: center;
  color: currentColor;
}

.locale-pill-chevron svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
