/* Language dropdown shared by every kleron.pl page. Markup is generated by
   i18n/build.py; --dark matches the homepage, --light the Tailwind privacy page. */
.lang-menu { position: relative; flex: 0 0 auto; }
.lang-menu__button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 11px; border: 1px solid; border-radius: 999px;
  font: inherit; font-size: 13px; letter-spacing: 0.06em; line-height: 1;
  cursor: pointer; transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}
.lang-menu__button:focus-visible { outline: 2px solid #ED5BB9; outline-offset: 3px; }
.lang-menu__flag { display: block; width: 20px; height: 14px; border-radius: 2px; flex: 0 0 auto; }
.lang-menu__chevron { width: 10px; height: 6px; transition: transform 180ms ease; }
.lang-menu__button[aria-expanded="true"] .lang-menu__chevron { transform: rotate(180deg); }
.lang-menu__list {
  /* Above the cookie banner (consent.js, z-index 10000): the visitor opened
     this list on purpose, and it closes as soon as they pick a language. */
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 10001;
  min-width: 180px; margin: 0; padding: 6px; list-style: none; border-radius: 12px;
}
.lang-menu__list[hidden] { display: none; }
.lang-menu__list a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  font-size: 14px; letter-spacing: normal; text-decoration: none; white-space: nowrap;
}
.lang-menu__list a:focus-visible { outline: 2px solid #ED5BB9; outline-offset: -2px; }

.lang-menu--dark .lang-menu__button { color: #B4C6DA; border-color: rgba(151, 194, 238, 0.28); background: rgba(7, 27, 57, 0.5); }
.lang-menu--dark .lang-menu__button:hover { color: #F6FBFF; border-color: rgba(255, 61, 188, 0.6); }
.lang-menu--dark .lang-menu__flag { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); }
.lang-menu--dark .lang-menu__list { background: #07152D; border: 1px solid rgba(151, 194, 238, 0.19); box-shadow: 0 18px 50px rgba(0, 3, 12, 0.5); }
.lang-menu--dark .lang-menu__list a { color: #B4C6DA; }
.lang-menu--dark .lang-menu__list a:hover { color: #F6FBFF; background: rgba(237, 91, 185, 0.1); }
.lang-menu--dark .lang-menu__list a[aria-current="page"] { color: #FF6DCF; }

.lang-menu--light .lang-menu__button { color: #475569; border-color: #E2E8F0; background: #FFFFFF; }
.lang-menu--light .lang-menu__button:hover { color: #0F172A; border-color: #4F46E5; }
.lang-menu--light .lang-menu__flag { box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.14); }
.lang-menu--light .lang-menu__list { background: #FFFFFF; border: 1px solid #E2E8F0; box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12); }
.lang-menu--light .lang-menu__list a { color: #334155; }
.lang-menu--light .lang-menu__list a:hover { color: #0F172A; background: #F1F5F9; }
.lang-menu--light .lang-menu__list a[aria-current="page"] { color: #4F46E5; font-weight: 600; }

/* Narrow phones: the flag alone identifies the language (the button's
   aria-label still names it in full). */
@media (max-width: 420px) {
  .lang-menu__code { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lang-menu__button, .lang-menu__chevron { transition: none; }
}
