/* Language switching for the mofumofu-tenki privacy page.
   Kept in an external file because the Worker sends `style-src 'self'` with no
   unsafe-inline: as an inline <style> block these rules were dropped, and the
   page rendered Japanese and English stacked on top of each other. */

.lang-switch {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 1.5rem;
}

.lang-switch button {
  font: inherit;
  cursor: pointer;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  line-height: 1;
  transition: opacity 0.15s ease;
}

.lang-switch button:hover {
  opacity: 0.7;
}

/* Show only the active language */
html[lang="ja"] [data-lang="en"] {
  display: none;
}

html[lang="en"] [data-lang="ja"] {
  display: none;
}
