/* GENERATED from design-system/css/header-controls.css by scripts/sync-landing-tokens.sh.
   Do not edit: change the source and re-run the script. */

/* Header controls: ThemeToggle and LanguageSelect, the same pair landing's
   header shows. Every app and landing use this one file. landing/ links a
   generated copy (scripts/sync-landing-tokens.sh), so edit only this file.

   Both controls take their height from --header-control-h (34px unless a
   container sets it; landing's header uses 39px), so the pair always lines
   up. */

/* ---------- Theme toggle (ThemeToggle) ---------- */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: var(--header-control-h, 34px);
  height: var(--header-control-h, 34px);
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: transparent;
  color: var(--slate-gray);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.theme-toggle:hover {
  color: var(--signal-blue);
  border-color: var(--signal-blue);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
}

/* ---------- Language spinner (LanguageSelect) ---------- */

.lang-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

/* Chevron: the native arrow is hidden by appearance: none. */
.lang-select::after {
  content: "";
  position: absolute;
  right: 9px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--slate-gray);
  border-bottom: 1.5px solid var(--slate-gray);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.lang-select select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-sizing: border-box;
  height: var(--header-control-h, 34px);
  margin: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
  color: var(--signal-blue);
  background: var(--pebble);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 0 20px 0 10px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.lang-select select:hover {
  border-color: var(--signal-blue);
}

/* The open list is drawn by the OS; keep its rows legible in dark mode. */
.lang-select option {
  color: var(--ink-navy);
  background: var(--paper);
}
