.language-picker {
  position: relative;
  flex: 0 0 auto;
}

.language-picker > summary {
  list-style: none;
  cursor: pointer;
}

.language-picker > summary::-webkit-details-marker {
  display: none;
}

.language-picker ul {
  position: absolute;
  z-index: 1;
  inset-block-start: calc(100% + 7px);
  inset-inline-end: 0;
  display: grid;
  gap: 2px;
  min-width: max-content;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--white, #fffdf6);
  color: var(--ink, #151411);
  border: 1px solid var(--line, #d7cec0);
  border-radius: 14px;
  box-shadow: 0 8px 24px #14121024;
}

.language-picker li a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.language-picker li a:hover,
.language-picker li a:focus-visible,
.language-picker li a[aria-current='page'] {
  background: var(--bg, #f4e9d8);
}

[dir='rtl'] .header-actions {
  margin-left: 0;
  margin-inline-start: auto;
}

[lang='zh-Hans'] .landing {
  font-family: Onest, 'PingFang SC', 'Noto Sans CJK SC', 'Microsoft YaHei', sans-serif;
}

[lang='ar'] .landing {
  font-family: Onest, 'Noto Sans Arabic', 'Geeza Pro', Tahoma, sans-serif;
}

[dir='rtl'] .hero h1,
[dir='rtl'] .article-hero h1,
[dir='rtl'] h2 {
  letter-spacing: normal;
  line-height: 1.18;
}

@media (max-width: 550px) {
  .language-picker {
    position: static;
  }

  .language-picker ul {
    inset-block-start: calc(100% + 2px);
    inset-inline-end: 16px;
  }
}
