/*
 * The language switch and the language blocks, shared by every page. Colors come from the
 * page's own variables (site.css).
 */

/* Only the selected language's blocks show. */
[data-l] { display: none; }
html[data-lang="tr"] [data-l="tr"],
html[data-lang="en"] [data-l="en"] { display: block; }

/* Within a heading or the footer they sit in the line. */
html[data-lang="tr"] span[data-l="tr"],
html[data-lang="en"] span[data-l="en"] { display: inline; }

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 14px;
  margin-bottom: 18px;
  font-size: 13px;
}

.lang-switch a {
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  cursor: pointer;
}

.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { color: var(--accent); border-bottom-color: var(--accent); }
