/* Language switcher (i18n Phase 0): header globe + burger row.
   Extracted from app.css so the guest auth layout (Auth/_layout.php) can load the
   switcher chrome without pulling in the whole app stylesheet. Loaded by both
   layouts/main.php and Auth/_layout.php — edit here, not in app.css. */
.lang-switcher { position: relative; }
.lang-switcher summary { list-style: none; }
.lang-switcher summary::-webkit-details-marker { display: none; }
.lang-globe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-globe:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.lang-switcher[open] .lang-globe { background: rgba(255, 255, 255, 0.14); color: #fff; }
.lang-globe svg { width: 18px; height: 18px; }
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  /* Логический отступ, а не right: глобус стоит у края по направлению письма, и при
     RTL он у ЛЕВОГО края. Меню шире глобуса (min-width 150px против 34px), поэтому
     привязка к физически правому краю уводила бы его за пределы экрана. */
  inset-inline-end: 0;
  min-width: 150px;
  background: #fff;
  border: 1px solid var(--border, #e5e3de);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(35,33,31, 0.16);
  padding: 6px;
  z-index: 300;
}
.lang-menu form { margin: 0; }
.lang-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text, #2e2c29);
  font: inherit;
  font-size: 14px;
  text-align: start;
  cursor: pointer;
}
.lang-opt:hover { background: rgba(11, 110, 149, 0.08); }
.lang-opt.on { font-weight: 700; color: var(--brand, #7db521); }
.lang-check { font-size: 12px; }
.menu-lang-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 18px 4px;
}
.menu-lang-form { margin: 0; }
.menu-lang-opt {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.menu-lang-opt:hover { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.menu-lang-opt.on { background: rgba(255, 255, 255, 0.16); color: #fff; font-weight: 600; }
