/* com_events EE/EN switcher. Loaded only on pages whose article has both .article-ee and .article-en.
   The language is <html data-ev-lang="en">; no attribute = Estonian (default). */
html:not([data-ev-lang="en"]) .ev-i18n[lang="en"],
html[data-ev-lang="en"] .ev-i18n[lang="et"],
html:not([data-ev-lang="en"]) .article-en,
html[data-ev-lang="en"] .article-ee {
  display: none !important;
}
/* Overrides an inline style="display:none" on the English block. */
html[data-ev-lang="en"] .article-en {
  display: block !important;
}

.ev-langflags {
  /* First child of the article, floated right: the title wraps beside the flags instead of running under them. */
  float: right;
  display: flex;
  gap: 5px;
  margin: 4px 0 8px 12px;
  position: relative;
  z-index: 2;
}
.ev-langflags button {
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  line-height: 0;
  cursor: pointer;
}
.ev-langflags img {
  width: 30px;
  height: auto;
  border: solid 1px;
}
.ev-langflags button[aria-pressed="false"] img {
  opacity: .75;
}
.ev-langflags button:hover img,
.ev-langflags button:focus-visible img {
  opacity: 1;
}
