.lang-switch {
  position: relative;
  display: flex;
  direction: ltr;
  margin: 0 0 12px;
}

.lang-row {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  direction: ltr;
}

.lang-row > a,
.lang-globe,
.lang-current {
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 6px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 10px;
  font-weight: 500;
}

.lang-row > a.on,
.lang-globe[aria-expanded="true"] {
  background: var(--accent-wash);
  border-color: var(--accent);
  color: var(--text);
}

.lang-globe,
.lang-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.lang-current {
  display: none;
  font-weight: 600;
}

.lang-ico,
.lang-chev,
.lang-tick {
  display: block;
  flex: none;
}

.lang-drop {
  display: none;
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  right: 0;
  min-width: 11rem;
  padding: 6px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.lang-switch.is-open .lang-drop {
  display: grid;
}

.lang-drop a {
  display: block;
  padding: 8px 16px;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  text-align: start;
  font-weight: 500;
}

.lang-drop a:hover,
.lang-sheet a:hover {
  background: var(--accent-wash);
}

.lang-sheet {
  display: none;
}

.lang-switch.is-button .lang-row,
.lang-switch.is-button .lang-drop {
  display: none;
}

.lang-switch.is-button .lang-current {
  display: inline-flex;
}

.lang-switch.is-button.is-open .lang-sheet {
  display: flex;
}

.lang-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.45);
  align-items: flex-end;
  justify-content: center;
}

.lang-sheet-back {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  padding: 0;
}

.lang-sheet-panel {
  position: relative;
  z-index: 1;
  width: min(32rem, 100%);
  max-height: min(85vh, 44rem);
  overflow: auto;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 8px 8px 20px;
}

.lang-sheet-handle {
  width: 36px;
  height: 4px;
  margin: 6px auto 8px;
  border-radius: 99px;
  background: #cbd5e1;
}

.lang-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 8px 4px;
}

.lang-sheet-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.lang-sheet-x {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}

.lang-group {
  margin: 14px 12px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.lang-sheet a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  margin: 0 4px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.lang-sheet a.on {
  background: var(--accent-wash);
}

.lang-sheet a .lang-tick {
  margin-inline-start: auto;
  color: var(--accent);
}

.suggest[hidden] {
  display: none !important;
}

.suggest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding: 8px 16px;
  background: #f0f9ff;
  border-bottom: 1px solid var(--line);
  direction: ltr;
}

.suggest a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.suggest button {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}

.crawl-langs {
  display: none;
}

@media (max-width: 899px) {
  .lang-row,
  .lang-switch.is-open .lang-drop {
    display: none;
  }

  .lang-current {
    display: inline-flex;
  }

  .lang-switch.is-open .lang-sheet {
    display: flex;
  }

  body:has(.lang-switch.is-open) {
    overflow: hidden;
  }
}

:root:lang(el) {
  --sans: "Noto Sans", "Plus Jakarta Sans", "Noto Sans Hebrew", "Noto Sans Arabic", "Noto Sans SC", "Noto Sans Devanagari", "Nirmala UI", system-ui, sans-serif;
}

:root:lang(ja) {
  --sans: "Plus Jakarta Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans Hebrew", "Noto Sans Arabic", "Noto Sans SC", "Noto Sans Devanagari", "Nirmala UI", system-ui, sans-serif;
}

:root:lang(ko) {
  --sans: "Plus Jakarta Sans", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans Hebrew", "Noto Sans Arabic", "Noto Sans SC", "Noto Sans Devanagari", "Nirmala UI", system-ui, sans-serif;
}
