/* ==========================================================================
   Component — Language switcher + language suggestion bar
   ==========================================================================
   Shared by all three brands. Reads only semantic tokens
   (--color-on-dark, --color-accent, --color-surface-dark) and --font-mono /
   --font-body, so load it after the brand token file.

   .lang-switcher      EN · NL · TR links, rendered by _includes/lang-switcher.njk.
                       Sits in .header-inner after .header-nav (dark header).
   .lang-switcher--light  variant for light backgrounds (privacy page).
   .lang-suggest       dismissible bar injected by js/lang-suggest.js on English
                       pages when the browser prefers Dutch or Turkish.
   ========================================================================== */

/* Switcher ---------------------------------------------------------------- */

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: -6px; /* align the last label's text with the header edge */
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lang-switcher a,
.lang-switcher a:visited {
  padding: 6px;
  line-height: 1;
  color: var(--color-on-dark);
  opacity: 0.6;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.lang-switcher a:hover,
.lang-switcher a:focus-visible {
  opacity: 1;
  color: var(--color-accent);
}

.lang-switcher a[aria-current="page"] {
  opacity: 1;
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* Keep the page nav next to the switcher on the right, instead of centred
   between the brand mark and the switcher. */
.header-inner > .header-nav {
  margin-left: auto;
}

@media (max-width: 720px) {
  /* Headers stack into a column here: brand, nav, then the switcher. */
  .header-inner > .header-nav {
    margin-left: 0;
  }
  .lang-switcher {
    margin-right: 0;
    margin-left: -6px;
  }
}

/* Doubled class so page-level link colours (e.g. .privacy-container a) don't win. */
.lang-switcher.lang-switcher--light a,
.lang-switcher.lang-switcher--light a:visited {
  color: var(--color-surface-dark);
}
.lang-switcher.lang-switcher--light a:hover,
.lang-switcher.lang-switcher--light a:focus-visible,
.lang-switcher.lang-switcher--light a[aria-current="page"] {
  color: var(--color-accent);
  text-decoration: none;
}

/* Suggestion bar ---------------------------------------------------------- */

.lang-suggest {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 52px 10px 16px;
  background: var(--color-accent);
  color: var(--color-surface-dark);
  font-family: var(--font-body, sans-serif);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.lang-suggest p {
  margin: 0;
}

.lang-suggest a,
.lang-suggest a:visited {
  margin-left: 8px;
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.lang-suggest button {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
