.language-switcher {
  position: absolute;
  top: 50%;
  right: clamp(5.8rem, 8vw, 8.5rem);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.24rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.44);
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  transform: translateY(-50%);
  pointer-events: auto;
}

.language-switcher button {
  min-width: 2.15rem;
  min-height: 1.85rem;
  padding: 0.25rem 0.48rem;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  font: 700 0.72rem/1 Geometria, Arial, sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.language-switcher button:hover,
.language-switcher button:focus-visible {
  color: #fff;
}

.language-switcher button[aria-pressed="true"] {
  color: #070707;
  background: #fff;
}

.language-switcher-menu { display: none; }

html[lang="el"] .language-switcher button {
  font-family: Arial, sans-serif;
}

@media (min-width: 901px) {
  .language-switcher {
    top: 38px;
    right: max(
      var(--pad),
      calc((100vw - var(--sidebar) - 1250px) / 2 + var(--pad))
    );
    padding: 0.16rem;
  }

  .language-switcher button {
    min-width: 2rem;
    min-height: 1.6rem;
    padding: 0.2rem 0.4rem;
    font-size: 0.68rem;
  }
}

html[lang="fr"] .hero h1,
html[lang="el"] .hero h1 {
  max-width: min(1080px, calc(100vw - var(--sidebar) - 72px));
  white-space: normal;
}

html[lang="el"] .hero h1 {
  font-size: clamp(1.9rem, 2.9vw, 3rem);
}

html[lang="el"] .hero h1 span {
  font-family: "Segoe UI Light", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
}

html[lang="el"] .site-nav a {
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -.025em;
}

html[lang="el"] :is(h1, h2) {
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* Keep the translated role list as light as the original Latin version. */
html[lang="el"] .identity-roles li {
  font-family: "Segoe UI Light", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
}

html[lang="el"] .article-hero h1 {
  max-width: 900px;
  font-size: clamp(38px, 4.6vw, 68px);
  line-height: .92;
}

@media (max-width: 900px) {
  .language-switcher {
    position: absolute;
    top: 50%;
    right: auto;
    bottom: auto;
    left: calc(50% + clamp(54px, 16.5vw, 67px));
    flex-direction: column;
    align-items: stretch;
    padding: 0.18rem;
    transform: translate(-50%, -50%);
    background: rgba(8, 8, 8, 0.9);
  }

  .language-switcher button {
    display: grid;
    place-items: center;
    min-width: 2.65rem;
    min-height: 1.75rem;
    padding: 0.34rem 0.58rem;
    font-size: 0.7rem;
    text-align: center;
  }

  .language-switcher:not(.is-open) button:not([aria-pressed="true"]) {
    display: none;
  }

  .language-switcher button[aria-pressed="true"] {
    position: relative;
    color: #fff;
    background: transparent;
  }

  .language-switcher button[aria-pressed="true"]::after {
    display: none;
  }

  .language-switcher.is-open {
    top: 0.65rem;
    z-index: 40;
    transform: translateX(-50%);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  }

  .language-switcher.is-open button[aria-pressed="true"] {
    color: #070707;
    background: #fff;
  }

  .language-switcher-menu {
    display: flex;
    gap: 0.45rem;
    margin-top: 2rem;
    pointer-events: auto;
  }

  .language-switcher-menu button {
    min-width: 3rem;
    min-height: 2.35rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    font: 700 0.78rem/1 Geometria, Arial, sans-serif;
    cursor: pointer;
  }

  .language-switcher-menu button[aria-pressed="true"] {
    color: #070707;
    background: #fff;
  }

  .site-header .wordmark img {
    width: clamp(132px, 40vw, 162px);
  }

  html[lang="el"] .hero h1 {
    max-width: 100%;
    font-size: clamp(27px, 7.9vw, 32px);
  }

  html[lang="el"] .article-hero h1 {
    font-size: clamp(28px, 8.2vw, 38px);
    line-height: .94;
    letter-spacing: -.045em;
  }

  html[lang="el"] :is(
    .tips-hero h1,
    .contact-heading h1,
    .story-hero-tagline,
    .partners-hero-tagline,
    .coaching-hero-tagline,
    .book-hero-tagline
  ) {
    max-width: 100%;
    font-size: clamp(27px, 7.8vw, 36px);
    line-height: .94;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .language-switcher button { transition: none; }
}
