/* Override header styles to match article page */
.topbar {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  padding: 0 16px !important;
  height: 64px !important;
  min-height: 64px !important;
  background: black !important;
  z-index: 100 !important;
}

.brand {
  font-size: 30px !important;
  font-family: "Yellowtail", cursive !important;
  font-weight: 700 !important;
  transform: translateY(-3px) !important;
  line-height: 1 !important;
}

.nav {
  gap: 16px !important;
  margin-left: 0 !important;
  margin-top: 0 !important;
  color: inherit !important;
  font-size: inherit !important;
}

.nav a {
  color: #cbd5e1 !important;
}

.tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Translation Widget */
.lang {
  position: relative;
}

.lang-btn {
  border: 1px solid #1d2738;
  background: #111827;
  color: #e5e7eb;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: 110%;
  min-width: 230px;
  background: #0b1220;
  border: 1px solid #1d2738;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  padding: 6px;
  display: none;
  z-index: 2000;
}

.lang-menu.open {
  display: block;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: #e2e8f0;
  cursor: pointer;
  text-align: left;
}

.lang-item:hover {
  background: #111827;
}

.lang-flag img {
  width: 18px;
  height: 18px;
  display: block;
}

.lang-name {
  white-space: nowrap;
}

/* Hide Google Translate UI */
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
}

.goog-text-highlight {
  background: inherit !important;
  box-shadow: none !important;
}

.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

body {
  top: 0 !important;
}

#gt-hidden {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  overflow: hidden;
}