/* Article headings and language controls share one accent. */
:root { --article-accent: #0193a7; }
.article-page {
  --language-accent: #007d8e;
  --language-on-accent: #fff;
  --language-link: #006c7a;
  --language-hover: #e1f3f6;
}
.article-page .language-switch {
  background: #f2fafb;
  border-color: #cce8ec;
}
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  width: max-content;
  padding: 3px;
  margin: .75rem 0;
  border: 1px solid #dbe7e5;
  border-radius: 999px;
  background: #f4f8f7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .02em;
  vertical-align: middle;
}
.language-switch a,
.language-switch-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 32px;
  padding: 0 10px;
  box-sizing: border-box;
  border-radius: 999px;
  white-space: nowrap;
}
.language-switch a {
  color: var(--language-link, #386460);
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.language-switch a:hover { color: var(--language-link, #005f59); background: var(--language-hover, #e3eeeb); }
.language-switch a:focus-visible { outline: 2px solid var(--language-link, #00818a); outline-offset: 2px; }
.language-switch-current { color: var(--language-on-accent, #fff); background: var(--language-accent, #006c70); }
#header .language-switch {
  position: absolute;
  right: 52px;
  top: -4px;
  margin: 0;
  z-index: 4;
  background: rgba(255, 255, 255, .96);
  border-color: rgba(255, 255, 255, .65);
  box-shadow: 0 2px 10px rgba(0, 45, 48, .08);
}
.site-navigation { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1.5rem; margin: 1rem 0; }
.site-navigation a { color: #00818a; }
.nav .site-navigation { margin-top: min(25vh, 200px); font-size: 18px; }
.nav .language-switch { display: flex; margin: 1rem auto; }
.empty-posts { min-height: 55vh; padding: 100px 24px 50px; text-align: center; }
.empty-posts h1 { font-size: 2rem; margin-bottom: 1.5rem; }
.empty-posts p { margin-top: 2rem; color: #555; }
.footer .language-switch { margin-top: 0; }

@media (max-width: 600px) {
  #header > div { margin-left: 20px; margin-right: 20px; }
  #header .text-logo { font-size: 24px; }
  #header .language-switch { right: 42px; top: -3px; }
  .language-switch a, .language-switch-current { min-height: 36px; padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .language-switch a { transition: none; }
}
