.language-switcher {
  position: relative;
  flex: none;
  color: #514c5a;
  font-size: 12px;
  line-height: 1.5;
}

.language-switcher summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary:hover { background: #efebf5; }
.language-switcher svg { width: 19px; height: 19px; flex: none; }
.language-switcher[open] > summary { background: #efebf5; }

.language-switcher ul {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  min-width: 154px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid #e7e0ef;
  border-radius: 12px;
  box-shadow: 0 12px 32px #2115311a;
}

.language-switcher li a {
  display: block;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 13px;
  white-space: nowrap;
}

.language-switcher li a:hover,
.language-switcher a[aria-current="true"] { color: #6744c2; background: #f2eef8; }
.plugin-header { position: relative; z-index: 30; }
.help-language { display: flex; justify-content: flex-end; padding-top: 22px; }

html:lang(en) .hero h1 {
  font-size: clamp(50px, 6.5vw, 88px);
  max-width: 1000px;
  margin-inline: auto;
  line-height: 1.08;
}

@media (max-width: 1050px) {
  .nav-links { display: none; }
  .nav > .button-small { margin-left: auto; }
}

@media (max-width: 700px) {
  .language-current { display: none; }
  .language-switcher summary { gap: 3px; padding: 7px 4px; }
  .nav { gap: 10px; }
  html:lang(en) .hero h1 { font-size: clamp(40px, 10vw, 64px); white-space: normal; }
  html:lang(en) .hero-content { padding-top: 48px; }
  html:lang(en) .hero-content p { font-size: 15px; }
  html:lang(en) .intro h2 .gradient-text { font-size: clamp(28px, 7.6vw, 44px); }
}

@media (max-width: 520px) {
  .plugin-nav > div a[href="./"] { display: none; }
  .plugin-nav { gap: 10px; }
  .plugin-nav .wordmark { flex: none; font-size: 20px; gap: 6px; }
  .plugin-nav .wordmark img { width: 26px; height: 26px; }
  .plugin-nav > div { margin-left: auto; font-size: 11px; gap: 12px; }
}

@media (max-width: 380px) {
  .nav { gap: 6px; }
  .nav .wordmark { flex: none; font-size: 17px; gap: 5px; }
  .nav .button-small { font-size: 9px; padding: 8px 10px; gap: 4px; }
}
