/* Landing language picker — custom list (native <select> options ignore dark theme). */

.landing-page .landing-locale-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.landing-page .landing-locale-dropdown {
  position: relative;
}

.landing-page .landing-locale-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  min-width: 9.5rem;
  max-width: 11.5rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 200, 50, 0.28);
  border-radius: 999px;
  background: rgba(12, 10, 8, 0.88);
  color: rgba(255, 253, 248, 0.94);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.landing-page .landing-locale-trigger:hover {
  border-color: rgba(255, 190, 29, 0.55);
  background: rgba(255, 190, 29, 0.1);
}

.landing-page .landing-locale-trigger:focus-visible {
  outline: none;
  border-color: rgba(255, 190, 29, 0.85);
  box-shadow: 0 0 0 3px rgba(255, 190, 29, 0.2);
}

.landing-page .landing-locale-trigger-label {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.landing-page .landing-locale-chevron {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: rgba(255, 190, 29, 0.9);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.landing-page .landing-locale-dropdown.is-open .landing-locale-chevron {
  transform: rotate(180deg);
}

.landing-page .landing-locale-listbox {
  position: absolute;
  z-index: 60;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 100%;
  width: max-content;
  max-width: min(16rem, 92vw);
  padding: 0.35rem;
  border: 1px solid rgba(255, 190, 29, 0.35);
  border-radius: 14px;
  background: #12100d;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.landing-page .landing-locale-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(18rem, 60vh);
  overflow: auto;
}

.landing-page .landing-locale-option {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  color: rgba(255, 253, 248, 0.92);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
}

.landing-page .landing-locale-option:hover,
.landing-page .landing-locale-option:focus-visible {
  background: rgba(255, 190, 29, 0.14);
  color: #ffbe1d;
  outline: none;
}

.landing-page .landing-locale-option.is-active {
  background: rgba(255, 190, 29, 0.22);
  color: #ffbe1d;
}

.landing-page .landing-locale-panel {
  width: 100%;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-page .landing-locale-panel-caption {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 253, 248, 0.52);
}

.landing-page .landing-locale-panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.landing-page .landing-locale-panel-list .landing-locale-option {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 900px) {
  .landing-page .header-end .landing-locale-menu {
    display: none;
  }
}

@media (min-width: 901px) {
  .landing-page .landing-locale-panel {
    display: none;
  }
}

