/* ===== Cover Page ===== */
section.cover {
  background: var(--cover-background-color) !important;
  border-top: 6px solid var(--theme-color);
  border-bottom: 1px solid var(--sidebar-border-color);
}
section.cover .mask {
  display: none !important;
}
section.cover .cover-main {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
section.cover .cover-main > p:last-child a {
  border-radius: 4px;
  padding: 10px 28px;
  font-weight: 600;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
section.cover img {
  width: 120px;
  border-radius: 6px;
}

/* ===== Language Switcher ===== */
.lang-switcher {
  position: fixed;
  top: 12px;
  right: 80px;
  z-index: 100;
  display: flex;
  gap: 4px;
  background: var(--sidebar-background);
  border: 1px solid var(--sidebar-border-color);
  border-radius: 6px;
  padding: 3px;
  font-size: 13px;
}
.lang-switcher a {
  padding: 4px 10px;
  border-radius: 4px;
  text-decoration: none;
  color: var(--sidebar-nav-link-color);
  transition: all 0.15s ease;
}
.lang-switcher a.active {
  background: var(--theme-color);
  color: var(--theme-color-foreground);
}
.lang-switcher a:hover:not(.active) {
  background: var(--table-head-background);
}

/* ===== Dark Mode Toggle ===== */
.theme-toggle {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 100;
  background: var(--sidebar-background);
  border: 1px solid var(--sidebar-border-color);
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: all 0.15s ease;
}
.theme-toggle:hover {
  background: var(--table-head-background);
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--theme-color);
  outline-offset: 3px;
}
